apeiros changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
DroidBurgundy has quit [Remote host closed the connection]
threedee_ has quit [Read error: Connection reset by peer]
threedee_ has joined #ruby
flashpoint9 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
roamingdog has joined #ruby
futabachannel has joined #ruby
<Radar> chris349: :git => 'https://github.com/rails/rails'
<Radar> and as matheusmoreira suggested.
<Radar> You could also define a custom git source if you don't want to type the whole thing out: http://bundler.io/git.html#custom-git-sources
flashpoint9 has joined #ruby
phantompain has quit [Ping timeout: 256 seconds]
roamingdog has quit [Ping timeout: 246 seconds]
lel has quit [Read error: Connection reset by peer]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
skweek has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
EasyCo_ has quit [Quit: Connection closed for inactivity]
weemsledeux has joined #ruby
<matheusmoreira> is it really a good idea to be pulling source code from implicit locations? I think its good to always specify the exact URL
whathappens has quit [Client Quit]
allcentury has joined #ruby
aalmenar has joined #ruby
aalmenar has joined #ruby
aalmenar has quit [Changing host]
aalmenar_ has quit [Ping timeout: 250 seconds]
threedee_ has quit [Ping timeout: 246 seconds]
binaryplease has quit [Quit: binaryplease]
pawnbox has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
<nofxx> matheusmoreira, agreed... also with new bundler you need some allow_insecure config, forcing https
<nofxx> it is naive thinking git:// is not secure but, anyways....
threedee_ has joined #ruby
gusrub__ has joined #ruby
gusrub_ has quit [Read error: Connection reset by peer]
cloaked1 has joined #ruby
cloaked1 has joined #ruby
cloaked1 has quit [Changing host]
triangles2 has joined #ruby
Asher has quit [Quit: Leaving.]
triangles has quit [Ping timeout: 260 seconds]
smlocal has quit []
byte512 has quit [Ping timeout: 248 seconds]
JeanCarloMachado has quit [Ping timeout: 245 seconds]
nonnatus has joined #ruby
JeanCarl1Machado has quit [Ping timeout: 265 seconds]
threedee_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 258 seconds]
dnicole has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nonnatus has quit [Ping timeout: 244 seconds]
ruid has joined #ruby
ruid has joined #ruby
ruid has quit [Changing host]
koooge has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
shinnya has quit [Ping timeout: 256 seconds]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
koooge has joined #ruby
rfoust has joined #ruby
dnicole has quit [Ping timeout: 240 seconds]
nettoweb has quit [Client Quit]
rfoust has quit [Client Quit]
rfoust has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
SCHAAP137 has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
lel has joined #ruby
_sfiguser has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
roamingdog has joined #ruby
jenrzzz has joined #ruby
matp has quit [Quit: Bye!]
matp has joined #ruby
jcao219 has joined #ruby
nankyokusei has joined #ruby
pawnbox has quit [Ping timeout: 265 seconds]
roamingdog has quit [Ping timeout: 245 seconds]
Ropeney has joined #ruby
ziarkaen has joined #ruby
SteenJobs has joined #ruby
flashpoint9 has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
blackbombay_ has joined #ruby
smtudor has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
weemsledeux has joined #ruby
blackbombay has quit [Ping timeout: 256 seconds]
jhack has quit [Quit: jhack]
ziarkaen has quit [Ping timeout: 244 seconds]
_sfiguser has joined #ruby
tyang_ has joined #ruby
augcesar has quit [Quit: Connection closed for inactivity]
spiette_ has joined #ruby
spiette_ is now known as simonp
simonp is now known as spiette_
jenrzzz has joined #ruby
marr has quit [Ping timeout: 246 seconds]
harfangk has joined #ruby
flashpoint9 has quit []
dnicole has joined #ruby
roamingdog has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
roamingdog has quit [Remote host closed the connection]
SeepingN has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
dnicole has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 252 seconds]
moei has quit [Quit: Leaving...]
dnicole has joined #ruby
railssmith has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
dnicole has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
TheHodge has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
r3vDev has joined #ruby
igniting has quit [Ping timeout: 260 seconds]
tubuliferous_ has joined #ruby
xall_ has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
ruid has quit [Quit: Leaving]
Lann has joined #ruby
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Lann> Could someone help me try to figure out the ruby way of doing this. I have a sitemap generator with a node with id = "future pages". I need to search the json structure for that key then replace that with 2 or more pages (no this is not homework, i'm making a sitemap generator app :-)). https://gist.github.com/minusreality/cd6f3d04554567c6f4aa224d7a5e3665
splud has quit [Quit: splud]
<Lann> The problem is previous_level.push(new_link) makes the modified sitemap contain an empty hash at the end
SteenJobs has quit [Quit: SteenJobs]
blackbombay has joined #ruby
<Lann> I think the gist of my problem is trying to deal with a situation where other languages would pass by reference
<adam12> so return the new value and use assignment
djbkd has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
<adam12> hash_sitemap = expand_node_id_like(nil, hash_sitemap, "future-pages")
djbkd has joined #ruby
<Lann> hmmmmm
<adam12> or make it an instance level variable
blackbombay_ has quit [Ping timeout: 248 seconds]
djbkd has quit [Remote host closed the connection]
<Lann> adam12: thanks i'll try those approaches
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
pokalyis has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
igniting has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
tyang has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall_ has quit [Ping timeout: 250 seconds]
tyang_ has quit [Ping timeout: 268 seconds]
jzigmund has quit [Ping timeout: 256 seconds]
al2o3-cr has quit [Quit: WeeChat 1.6]
mikecmpbll has joined #ruby
<chrisseaton> I'd like to count the number of true values in an array, so I'm thinking of filtering by the identity function and then counting. Does Ruby have an identity method? I can't find it but I think I remember it being mentioned sometime.
pokalyis has quit [Read error: Connection reset by peer]
pokalyis has joined #ruby
smtudor has quit [Ping timeout: 260 seconds]
futabachannel has quit [Quit: Leaving...]
rfoust has joined #ruby
<blackbombay> chrisseaton: why not count with a block?
Guest43 has quit [Quit: Textual IRC Client: www.textualapp.com]
<chrisseaton> { |x| x } ? Well I could but isn't that what the core library is for?
<blackbombay> arr.count(&:itself)
allcentury has quit [Ping timeout: 246 seconds]
<chrisseaton> Ah! #itself, thanks. I was searching for 'identity'.
al2o3-cr has joined #ruby
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
blackbombay_ has joined #ruby
blackbombay has quit [Ping timeout: 245 seconds]
pokalyis has quit [Read error: Connection reset by peer]
swills has quit [Ping timeout: 260 seconds]
pokalyis has joined #ruby
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
Channel6 has joined #ruby
<adam12> Anybody using/used drb in production?
roamingdog has joined #ruby
Madplatypus has joined #ruby
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Ping timeout: 252 seconds]
roamingdog has quit [Ping timeout: 240 seconds]
dviola has quit [Quit: WeeChat 1.6]
d^sh_ has quit [Ping timeout: 240 seconds]
d^sh has joined #ruby
pawnbox has joined #ruby
jhack has joined #ruby
railssmith has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
<matheusmoreira> itself? another method I didn't know about... that's awesome
DroidBurgundy has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
ruby-lang689 has joined #ruby
Felipe__ has joined #ruby
boadie has joined #ruby
banisterfiend has joined #ruby
spiette_ has quit [Read error: Connection reset by peer]
boadie has left #ruby [#ruby]
<ruby-lang689> Hi guys; I have an interview question and I don't understand it at all: In ruby, what build in values or primitives are considered false? in other words; that it returns false if they are used in an expresion that expects a boolean variable
<ruby-lang689> I hope you can help me :)
<adam12> This is easily googleable, no?
govg has quit [Ping timeout: 268 seconds]
swills has joined #ruby
tyang has quit [Read error: Connection reset by peer]
<blackbombay_> ruby-lang689: nil and false. everything else is considered true.
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby-lang689> Thank you @blackbomay_
optiz0r has quit [Ping timeout: 252 seconds]
CloCkWeRX has quit [Ping timeout: 246 seconds]
Xaitec has joined #ruby
DroidBurgundy has quit [Remote host closed the connection]
sylario has quit [Quit: Connection closed for inactivity]
konsolebox has joined #ruby
ruby-lang689 has quit [Ping timeout: 260 seconds]
spligak has quit [Read error: Connection reset by peer]
DroidBurgundy has joined #ruby
nankyokusei has joined #ruby
Xaitec has quit [Remote host closed the connection]
maloik31 has joined #ruby
ziarkaen has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
hanmac has quit [Ping timeout: 258 seconds]
DroidBurgundy has quit [Ping timeout: 265 seconds]
pokalyis has joined #ruby
pawnbox has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
SeepingN has quit [Ping timeout: 252 seconds]
CloCkWeRX has joined #ruby
bumao has quit [Ping timeout: 250 seconds]
maloik has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 268 seconds]
ziarkaen has quit [Ping timeout: 258 seconds]
bumao has joined #ruby
spiette_ has joined #ruby
spiette_ has quit [Remote host closed the connection]
cyphase has quit [Ping timeout: 260 seconds]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Lann> recursive functions++
cyphase has joined #ruby
<Lann> I dont understand why I cant use Hash.new("something" => "value") in a recursive function because it ends up being an empty hash, but i can use {"something": "value"}
swills has quit [Ping timeout: 252 seconds]
pokalyis has joined #ruby
hanmac has joined #ruby
jschoolcraft has quit [Quit: peace]
<blackbombay_> Lann: the .new() argument is the default value, it doesn't initialize the hash.
<Lann> hehehe
<Lann> still impressed that i could get this recursive function working from barely knowing ruby
<blackbombay_> ya recursion is koo
<Lann> i dont understand recursion because i dont understand recursion
creat has joined #ruby
i8igmac has quit [Ping timeout: 260 seconds]
Jayson_Virissimo has joined #ruby
creat has quit [Ping timeout: 258 seconds]
<matheusmoreira> also notable is the fact that 0 is true. might trip up C friends.
nanoz has joined #ruby
bluOxigen has joined #ruby
SteenJobs has joined #ruby
roamingdog has joined #ruby
pawnbox has joined #ruby
bitri has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
pawnbox has quit [Ping timeout: 248 seconds]
bitri has quit [Client Quit]
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chris349 has quit [Ping timeout: 258 seconds]
jackjackdripper1 has quit [Quit: Leaving.]
Guest66 has quit [Quit: Guest66]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
jackjackdripper has joined #ruby
yfeldblum has joined #ruby
jorrin has joined #ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
bmurt has joined #ruby
arescorpio has quit [Quit: Leaving.]
optiz0r has joined #ruby
r3vDev has quit [Ping timeout: 250 seconds]
yfeldblum has quit [Quit: Leaving...]
Jayson_Virissimo has quit []
gusrub__ has quit [Remote host closed the connection]
gix has quit [Ping timeout: 256 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
gix has joined #ruby
JoshS has joined #ruby
gusrub_ has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
palms has joined #ruby
roamingdog has joined #ruby
jhack has quit [Quit: jhack]
govg has joined #ruby
jaguarmagenta has joined #ruby
allcentury has joined #ruby
roamingdog has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
SeepingN has quit [Disconnected by services]
SeepingN_ has joined #ruby
SeepingN_ has quit [Client Quit]
SteenJobs has quit [Quit: SteenJobs]
SteenJobs has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
buglessdr has joined #ruby
railssmi_ has joined #ruby
nankyokusei has joined #ruby
buglessdr2 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
railssmith has quit [Ping timeout: 246 seconds]
aupadhye has joined #ruby
dnicole has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
ziarkaen has joined #ruby
saneax-_-|AFK is now known as saneax
SteenJobs has quit [Quit: SteenJobs]
nanoz has quit [Read error: Connection reset by peer]
XV8 has joined #ruby
ziarkaen has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
tdy has joined #ruby
gusrub_ has quit [Remote host closed the connection]
sarbs has joined #ruby
conta has joined #ruby
chare has joined #ruby
<chare> omg
<chare> trump
<chare> omg...
conta has quit [Ping timeout: 248 seconds]
buglessdr2 has quit [Ping timeout: 258 seconds]
chare has left #ruby [#ruby]
aupadhye has quit [Ping timeout: 256 seconds]
buglessdr has quit [Ping timeout: 258 seconds]
tectonic has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
pawnbox has quit [Remote host closed the connection]
gusrub_ has joined #ruby
Joufflu has joined #ruby
aupadhye has joined #ruby
Channel6 has quit [Quit: Leaving]
tectonic has quit []
ur5us_ has joined #ruby
xall has joined #ruby
ur5us has quit [Ping timeout: 252 seconds]
jaguarmagenta has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
zukin has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
_sfiguser has quit [Ping timeout: 260 seconds]
AndrewIsHere has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
AndrewIsHere has quit [Ping timeout: 248 seconds]
pawnbox has joined #ruby
jorrin has quit [Quit: Leaving]
ur5us_ has quit [Remote host closed the connection]
ur5us has joined #ruby
palms has quit [Ping timeout: 260 seconds]
_sfiguser has joined #ruby
BillSussman has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 268 seconds]
zukin has quit [Quit: leaving]
DroidBurgundy has joined #ruby
siovene has joined #ruby
chare has joined #ruby
<chare> OMG
<chare> TRUMP
xall has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
pandaant has joined #ruby
<baweaver> chare: Are you here for a Ruby question?
igniting has quit [Ping timeout: 240 seconds]
<baweaver> if not, please take all offtopic discussion to #ruby-offtopic
vuoto has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<Lann> How do people think in terms of recursive functions. I've been a dev forever and they still give me headaches. i'm wondering if there's some trick that i dont know
<baweaver> In order to understand recursion....
chare has quit [Quit: Page closed]
<baweaver> you must first understand recursion
djbkd has quit [Ping timeout: 268 seconds]
<baweaver> !mute chare
<baweaver> probably a troll. Anyways...
<baweaver> On a more serious note, do you really want to learn recursion?
<baweaver> Lann ^
<baweaver> Because if you really want to go down that rabbit hole fully, learn Haskell
<Ropeney> I was expecting something better then that :(
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has joined #ruby
<baweaver> Ropeney: like?
<baweaver> If you really want to do it in Ruby, reimplement every single method on Enumerable using only reduce
<Ropeney> I didn't have something better, but still was waiting in anticipation for something :)
<baweaver> After you get about halfway through that, look up what Tail Call Optimization is
<baweaver> and realize what you've just learned.
weemsledeux has joined #ruby
<baweaver> start with the easy ones like: map, filter, select, reject, flat_map
<hanmac> in ruby iteration mostly feels better than recursion imo
<baweaver> ah, but what is reduce exactly?
pawnbox has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
<baweaver> or rather to say, how does reduce work in other languages? (hint: It's often called foldLeft)
igniting has joined #ruby
<baweaver> hanmac ^
<baweaver> Ropeney ^
<hanmac> baweaver: oh do you mean me wit the reduce? i prefer inject ;P
<baweaver> silly semantics aside
<baweaver> where does reduce come from? How is it normally implemented
<baweaver> Why is that important in Ruby?
<baweaver> When you find yourself answering those questions you're very far along in understanding the core of recursion.
<baweaver> I'd explain it in more detail, but depriving someone of that aha moment is just mean.
<hanmac> baweaver: isnt reduce done with iteration instead of recursion?
<baweaver> Oh it is
<baweaver> Look up what Tail Call Optimization is
pawnbox has joined #ruby
<baweaver> and realize that Reduce is pretty much Tail Call Recursion.
lxsameer has joined #ruby
lel has quit [Ping timeout: 268 seconds]
allcentury has quit [Ping timeout: 260 seconds]
r3vDev has joined #ruby
blaxter has joined #ruby
lacour has quit [Quit: Leaving]
qwertyco has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso> baweaver: Oi Haskell.
Joufflu has quit [Quit: Leaving]
<dminuoso> We just got a really funny application. Guy left out the application letter and just send a CV with some random certificates attached to it - he also listed Haskell, Go and Rust amongst languages he was comfy with.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gingray has joined #ruby
<djellemah> Lann: let's say "iterate" is what we call working through a collection one item at a time. Recursion is the answer to the question "how do you iterate when using a language that has no loop constructs?" Loop constructs being for, while, until etc.
c0mrad3 has joined #ruby
xall has quit [Ping timeout: 246 seconds]
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobun_ has joined #ruby
cpruitt has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yardenbar has joined #ruby
djbkd has joined #ruby
charliesome has joined #ruby
dionysus69 has joined #ruby
xall has joined #ruby
cpruitt has quit [Read error: Connection reset by peer]
gusrub_ has quit [Remote host closed the connection]
anisha has joined #ruby
dionysus69 has quit [Client Quit]
cpruitt has joined #ruby
dionysus69 has joined #ruby
conta1 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nankyokusei has joined #ruby
Felipe__ has quit [Quit: Leaving]
aryaching has joined #ruby
yardenbar has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
symm- has quit [Ping timeout: 245 seconds]
ziarkaen has joined #ruby
symm- has joined #ruby
ziarkaen has quit [Ping timeout: 246 seconds]
ta_ has quit [Remote host closed the connection]
lenwood has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore has joined #ruby
symm- has quit [Ping timeout: 258 seconds]
gizless has quit [Ping timeout: 265 seconds]
gizless has joined #ruby
jshjsh has joined #ruby
gizmore|2 has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
gizmore has quit [Ping timeout: 260 seconds]
JoshS has quit [Ping timeout: 246 seconds]
jaguarmagenta has joined #ruby
gizmore has joined #ruby
A124 has quit [Ping timeout: 252 seconds]
linduxed has joined #ruby
iwmrby has joined #ruby
pawnbox has quit [Remote host closed the connection]
gizless has quit [Ping timeout: 252 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
gizmore|2 has quit [Ping timeout: 250 seconds]
firstdayonthejob has joined #ruby
r3vDev has quit [Read error: Connection reset by peer]
jaguarmagenta has quit [Ping timeout: 268 seconds]
troulouliou_div2 has joined #ruby
last_staff has joined #ruby
Ishido has joined #ruby
firstdayonthejob has quit [Ping timeout: 265 seconds]
hahuang65 has joined #ruby
kith has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
hs366 has joined #ruby
sanmi has joined #ruby
r3vDev has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AndrewIsHere has joined #ruby
TomyWork has joined #ruby
hightower2 has quit [Ping timeout: 248 seconds]
lenwood has quit [Ping timeout: 256 seconds]
quazimodo has quit [Ping timeout: 265 seconds]
davix has quit [Quit: WeeChat 1.6]
AndrewIsHere has quit [Ping timeout: 245 seconds]
marr has joined #ruby
andikr has joined #ruby
CalimeroTeknik has quit [Ping timeout: 265 seconds]
Burgestrand has joined #ruby
Dimik has joined #ruby
nickjj_ has joined #ruby
roamingdog has joined #ruby
nickjj has quit [Ping timeout: 265 seconds]
Cohedrin has joined #ruby
brendan- has joined #ruby
CalimeroTeknik has joined #ruby
anisha has joined #ruby
toretore has joined #ruby
roamingdog has quit [Ping timeout: 256 seconds]
govg has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
_djbkd has joined #ruby
pragmaticus has joined #ruby
jcao219 has quit [Ping timeout: 245 seconds]
Darmani has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 250 seconds]
aganov has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
SesMan has joined #ruby
Dimik has quit []
_djbkd has quit [Ping timeout: 260 seconds]
r3vDev has quit [Quit: Leaving.]
demophoon has left #ruby ["obai"]
bocaneri has joined #ruby
doublemalt__ has joined #ruby
pawnbox has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
cpruitt has quit [Quit: cpruitt]
antgel has joined #ruby
quazimodo has joined #ruby
Dimik has joined #ruby
jaguarmagenta has joined #ruby
mark_66 has joined #ruby
yardenbar has joined #ruby
anisha has quit [Quit: Leaving]
arnonhongklay has quit [Ping timeout: 244 seconds]
masterasia has quit [Ping timeout: 248 seconds]
sanmi has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
jolamb has quit [Quit: ZNC - http://znc.in]
Burgestrand has quit [Quit: Textual IRC Client: www.textualapp.com]
sludge has joined #ruby
masterasia has joined #ruby
teclator has joined #ruby
nofxx_ has joined #ruby
theRoUS has quit [Ping timeout: 256 seconds]
anisha has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 246 seconds]
aidalgol has joined #ruby
aidalgol is now known as Guest84589
flying has joined #ruby
sludge has quit [Remote host closed the connection]
sludge has joined #ruby
Guest84589 is now known as aidalgol
edwinvdgraaf has joined #ruby
Madplatypus has joined #ruby
ferr has joined #ruby
UserJosh has joined #ruby
sludge has quit [Remote host closed the connection]
sludge has joined #ruby
<Bish> what does rack do to determine mime type?
pawnbox has joined #ruby
jshjsh has quit [Ping timeout: 246 seconds]
djbkd has quit []
Chair has joined #ruby
Bish has quit [Ping timeout: 250 seconds]
Bish has joined #ruby
pandaant has quit [Remote host closed the connection]
agit0 has quit [Quit: zzzZZZ….]
Silthias has joined #ruby
Bish has quit [Ping timeout: 268 seconds]
roamingdog has joined #ruby
Bish has joined #ruby
jsrn_ has joined #ruby
Silthias1 has joined #ruby
quazimodo has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
Silthias has quit [Ping timeout: 265 seconds]
nankyokusei has joined #ruby
roamingdog has quit [Ping timeout: 256 seconds]
govg has joined #ruby
ocbtec has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
bigkevmcd has joined #ruby
elaptics has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
astrobun_ has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 248 seconds]
miqlas-H has joined #ruby
aryaching has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<apeiros> Bish: request or response?
<Bish> response
<Bish> i have a own handler for zip files, where zip files get extracted in memory, and i want the mime type to behave like the usual rack application
agit0 has joined #ruby
<Bish> guess it's Rack::Mime.mime-type(File.extname(filename))
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
moei has joined #ruby
ziarkaen has joined #ruby
<Bish> rack docs are horrible
gizmore has quit [Ping timeout: 244 seconds]
<Bish> also is there a shortcut to get the file part of a path?
gizmore has joined #ruby
<Bish> it's basename ;;
ur5us has quit [Remote host closed the connection]
ziarkaen has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
jud has quit [Quit: Leaving]
Immune has quit [Ping timeout: 268 seconds]
<apeiros> I'd expect it to default to something (maybe text/html) unless you pass it a header. I could imagine that it does a dynamic default based on the pathname in the url (e.g. .html -> text/html, .css -> …)
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
<apeiros> but IMO it's not racks duty to infer a mime-type.
gizmore has joined #ruby
gizmore has quit [Remote host closed the connection]
gizmore has joined #ruby
Moosashi has joined #ruby
Silthias has joined #ruby
marr has quit [Ping timeout: 260 seconds]
Rumbles has joined #ruby
Silthias1 has quit [Ping timeout: 245 seconds]
jud has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
Moosashi has quit [Client Quit]
bluOxigen has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
Immune has joined #ruby
Beams has joined #ruby
pawnbox has joined #ruby
qwertyco has quit [Quit: Leaving]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
jaiks has quit [Quit: Leaving]
jaiks has joined #ruby
biberu has joined #ruby
miqlas-H has joined #ruby
nofxx_ has quit [Ping timeout: 250 seconds]
Moosashi has joined #ruby
banisterfiend has joined #ruby
nettoweb has joined #ruby
JeanCarloMachado has joined #ruby
rfoust has joined #ruby
JeanCarl1Machado has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
gregf_ has joined #ruby
palms has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
Beams has quit [Quit: .]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
palms has quit [Ping timeout: 260 seconds]
nadir has quit [Quit: Connection closed for inactivity]
agit0 has quit [Ping timeout: 260 seconds]
Beams has joined #ruby
Terens has joined #ruby
aryaching has joined #ruby
<jokke> hi
<jokke> how can i set the global random object that's being used by Kernel.rand?
<jokke> ah seems that i can't
<apeiros> you did read the Kernel.rand docs, yes?
<jokke> yes
<apeiros> last paragraph too?
<apeiros> second last actually
<jokke> See also Random#rand.?
<jokke> oh
<jokke> you mean #srand?
<apeiros> yes
<jokke> oooh
<jokke> nice!
<jokke> that's exactly what i was looking for
<apeiros> good thing it's documented ;-p
<jokke> i dismissed #srand in my head for being secure random
<apeiros> I think the s is for seed
Beams has quit [Client Quit]
<jokke> yes
<jokke> now it makes more sens :D
<jokke> e
workmad3 has joined #ruby
mluts has joined #ruby
Beams has joined #ruby
pawnbox has quit [Remote host closed the connection]
govg has quit [Ping timeout: 248 seconds]
ricer2 has joined #ruby
beawesomeinstead has quit [Ping timeout: 250 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
ricer2 has quit [Ping timeout: 258 seconds]
lxsameer has quit [Quit: WeeChat 1.5]
beawesomeinstead has joined #ruby
pokalyis has joined #ruby
vuoto has quit [Quit: Lost terminal]
vuoto has joined #ruby
ricer2 has joined #ruby
nhhc has joined #ruby
blaxter has quit [Quit: foo]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
flyingX has joined #ruby
vuoto has quit [Remote host closed the connection]
Moosashi has quit [Quit: Moosashi]
vuoto has joined #ruby
tubuliferous_ has quit [Ping timeout: 248 seconds]
flying has quit [Ping timeout: 250 seconds]
r3vDev has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
marr has joined #ruby
claudiuinberlin has joined #ruby
tvw has quit [Ping timeout: 246 seconds]
JeanCarl1Machado has quit [Ping timeout: 256 seconds]
JeanCarloMachado has quit [Ping timeout: 245 seconds]
claudiuinberlin has quit [Ping timeout: 256 seconds]
iwmrby has quit [Quit: WeeChat 1.6]
pawnbox has joined #ruby
aryaching has quit [Quit: Bye]
jolamb has joined #ruby
Ishido has quit [Read error: Connection reset by peer]
<Bish> >> weigh_obj = [{chance:0.2,value:1},{chance:0.4,value:2},{chance:0.6,value:3},{chance:0.8,value:4},{chance:1,value:5}]; count = Hash.new 0; 1000000.times { count[weigh_obj.bsearch { |x| x[:chance] > rand }[:value]]+=1 };count
<ruby[bot]> Bish: # => {3=>361356, 4=>319326, 5=>79911, 2=>191279, 1=>48128} (https://eval.in/674731)
<Bish> somethings wrong with this algorithm?
aryaching has joined #ruby
<Bish> (it's weighted random picking)
jenrzzz has quit [Ping timeout: 252 seconds]
Ishido has joined #ruby
<Bish> seems to me it's not very accurate
sanmi has joined #ruby
jenrzzz has joined #ruby
nettoweb1 has joined #ruby
aidalgol has quit [Quit: zZZzZZZzzzz]
Ropeney has joined #ruby
nettoweb has quit [Ping timeout: 256 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
nowhereman has quit [Ping timeout: 260 seconds]
Ropeney has quit [Client Quit]
<apeiros> you realize that rand is invoked every. single. time. bsearch yields?
<apeiros> Bish: ^
7YUAAKWO6 has joined #ruby
6A4AAATV9 has joined #ruby
<apeiros> (mind you, I haven't yet pondered whether the underlying algorithm is correct)
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sanmi has quit [Ping timeout: 244 seconds]
<apeiros> given the result with that rand snafu fixed, I'd say the idea behind that algorithm is wrong too :)
jaruga___ has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
anisha_ has joined #ruby
rajdesai has joined #ruby
<apeiros> or I'm misunderstanding the idea behind the 'chance' value. I understand it as total = 3.0, so {chance:0.2,value:1} means 1 should appear 6.6…% of the time. {chance:1.0,value:5} should appear 33.3…% of the time.
anisha has quit [Ping timeout: 265 seconds]
claudiuinberlin has joined #ruby
xall has joined #ruby
Moosashi has joined #ruby
sanmi has joined #ruby
phaza has quit [Read error: Connection reset by peer]
kimegede has joined #ruby
Beams has quit [Quit: .]
phaza has joined #ruby
sanmi has quit [Client Quit]
mluts has quit [Ping timeout: 244 seconds]
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
minimalism has quit [Quit: minimalism]
flyingX has quit [Remote host closed the connection]
jahmalz has joined #ruby
jahmalz has quit [Max SendQ exceeded]
Madplatypus has quit [Quit: Connection closed for inactivity]
flying has joined #ruby
jahmalz has joined #ruby
nankyokusei has joined #ruby
rajdesai has quit [Remote host closed the connection]
rajdesai has joined #ruby
Moosashi has quit [Quit: Moosashi]
djbkd has joined #ruby
xall has quit [Ping timeout: 240 seconds]
Beams has joined #ruby
koooge has quit [Quit: Leaving...]
nankyokusei has quit [Ping timeout: 260 seconds]
rajdesai has quit [Ping timeout: 246 seconds]
djbkd has quit [Ping timeout: 260 seconds]
Beams has quit [Quit: .]
jenrzzz has quit [Ping timeout: 250 seconds]
jshjsh has joined #ruby
vuoto has quit [Remote host closed the connection]
rlex has joined #ruby
Beams has joined #ruby
balazs has quit [Ping timeout: 268 seconds]
XV8 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
UserJosh has quit [Ping timeout: 260 seconds]
saneax is now known as saneax-_-|AFK
balazs has joined #ruby
cbetta has quit [Quit: Connection closed for inactivity]
charliesome has joined #ruby
roamingdog has joined #ruby
Beams has quit [Ping timeout: 252 seconds]
roamingdog has quit [Ping timeout: 256 seconds]
r3vDev has quit [Ping timeout: 250 seconds]
blackbombay_ has quit [Ping timeout: 256 seconds]
nowhereman has joined #ruby
gingray has quit [Ping timeout: 268 seconds]
sdothum has joined #ruby
Filiphe has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chris2 has quit [Ping timeout: 245 seconds]
bluOxigen has quit [Ping timeout: 252 seconds]
balazs has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
nickjj_ is now known as nickjj
pragmaticus has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
AndrewIsHere has joined #ruby
Beams has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
rajdesai has joined #ruby
mluts has joined #ruby
AndrewIsHere has quit [Ping timeout: 258 seconds]
hev has joined #ruby
vondruch_ has joined #ruby
tomphp has joined #ruby
konsolebox has quit [Quit: Leaving]
sparch has joined #ruby
chris2_ has joined #ruby
vondruch has quit [Ping timeout: 256 seconds]
miqlas-H has quit [Ping timeout: 265 seconds]
miqlas-H has joined #ruby
iwmrby has joined #ruby
CloCkWeRX has quit [Ping timeout: 248 seconds]
hev has quit [Quit: Leaving]
hev has joined #ruby
neeraj has joined #ruby
jgnagy has quit [Remote host closed the connection]
neeraj has quit [Quit: Leaving]
sludge has quit [Ping timeout: 244 seconds]
sludge has joined #ruby
strigonLeader has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nadir has joined #ruby
spectrum has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
balazs has joined #ruby
XV8 has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
chris2_ is now known as chris2
hev has quit [Quit: Leaving]
[spoiler] has joined #ruby
interpolate has joined #ruby
tomphp has quit [Ping timeout: 244 seconds]
herbmillerjr has quit [Quit: Konversation terminated!]
[spoiler] has quit [Client Quit]
[spoiler] has joined #ruby
tomphp has joined #ruby
roamingdog has joined #ruby
jenrzzz has joined #ruby
dviola has joined #ruby
Rickmasta has joined #ruby
centrx has joined #ruby
farmic has joined #ruby
farmic has quit [Client Quit]
roamingdog has quit [Ping timeout: 265 seconds]
vondruch has joined #ruby
farmic has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
vondruch_ has quit [Ping timeout: 240 seconds]
anisha_ has quit [Quit: This computer has gone to sleep]
neeraj has joined #ruby
jmignault has joined #ruby
Madplatypus has joined #ruby
neeraj has left #ruby [#ruby]
iwmrby has quit [Quit: WeeChat 1.6]
rajdesai has quit []
jmignault has quit [Ping timeout: 260 seconds]
[spoiler] has quit [Quit: Cheers!]
[spoiler] has joined #ruby
brendan- has joined #ruby
pokalyis has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GinoManWorks has joined #ruby
jmignault has joined #ruby
zofrex has left #ruby ["o/"]
Ishido has quit [Remote host closed the connection]
kith_ has joined #ruby
creat has joined #ruby
Puffball_ has quit [Remote host closed the connection]
Ishido has joined #ruby
kith has quit [Ping timeout: 256 seconds]
synthroid has joined #ruby
Puffball has joined #ruby
nankyokusei has joined #ruby
CloCkWeRX has quit [Ping timeout: 245 seconds]
johnmilton has joined #ruby
pawnbox has quit [Remote host closed the connection]
r3vDev has joined #ruby
djbkd has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
diego2 has joined #ruby
gingray has joined #ruby
pawnbox has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
diego2 has quit [Changing host]
diego2 has joined #ruby
diego2 is now known as dviola
dviola has quit [Client Quit]
diego2 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
diego2 is now known as dviola
djbkd has quit [Ping timeout: 260 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
dhollinger has quit [Ping timeout: 250 seconds]
jaguarmagenta has joined #ruby
<Bish> apeiros: shit.
<Bish> im an idiot
<adaedra> no you aren't.
<Bish> thats nice
<adaedra> MINASWAN
CloCkWeRX has joined #ruby
<Bish> i never understood that term
<Bish> what does it mean
<adaedra> Matz Is Nice And So We Are Nice
farmic has quit [Quit: Changing server]
rfoust has joined #ruby
<Bish> ahh
<adaedra> (But in reality, so, you just aren't an idiot. People make mistakes.)
jaguarmagenta has quit [Ping timeout: 244 seconds]
<Bish> i never should've gotten into IT, that was a mistake
<Bish> it's so depressing
<adaedra> It can be rough sometimes
<toretore> it's difficult, but one of the better professions you can have all things considered
<adaedra> also, "IT" is so diverse
<Bish> well, i would prefer being a trash-guy don't know how those are called in english
<Bish> statistics suggest they're the happiest people
<Bish> while it is all the way down at the bottom
<Bish> s/it/IT
<toretore> i doubt there is anything to prove that
<adaedra> I won't say I'm happy because that would be a lie, but I don't think it's linked to IT tbh.
<Bish> well it's statistics, there is no proofin that, but actually it sounds reasonable to me
<adaedra> Also, 127.3% of statistics are made up.
<Bish> yeah that's what i meant with "there is no proof in that"
<toretore> i am unhappy because i hate humanity, nothing to do with my profession specifically
<Bish> well, that is there additionally, yeah
<adaedra> :|
<adaedra> Hate is useless
<Bish> but not being able to sleep because you have some sort of problem which is totally random
<Bish> is something that i would prefer not to have
<adaedra> It's another problem if that affects your sleep
<Bish> well my brain is like that, i cannot go home from work
<Bish> and stop thinking about a bug
millerti has joined #ruby
miqlas-H has quit [Ping timeout: 256 seconds]
<adaedra> Don't get too worked over such a simple thing
<toretore> most programmers are like that
<adaedra> (I know, easier said than done)
<Bish> (i am not talking about that rand thing)
<adaedra> Programming is not easy, but it can also be loads of fun
<Bish> yeah, i just started having my first github account and working on a full-web-solution for myself, that is pretty fun, but doing startup work is something completely different
DroidBurgundy has quit [Ping timeout: 245 seconds]
pawnbox has quit [Remote host closed the connection]
<Xeago> Given in `encode': "\xC3" on US-ASCII (Encoding::InvalidByteSequenceError), is it trying to encode \xC3 as US-ASCII or from US-ASCII?
<Bish> the string is in us-acii and \c3 does not seem to be a valid char in there
<Bish> well i might be wrong.
<Bish> >> x = "\xc3".force_encoding("US-ASCII"); x.encoding
<ruby[bot]> Bish: # => #<Encoding:US-ASCII> (https://eval.in/674891)
<Bish> because this seems to work
tyang has joined #ruby
<Bish> Xeago: what exactly is the method encode doing
xall has joined #ruby
<toretore> force_encoding doesn't validate anything, as implied by its name
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Bish> but shouldn't printing it or snything fail
roamingdog has joined #ruby
<adaedra> >> x = "\xc3".force_encoding("US-ASCII"); puts x
<ruby[bot]> adaedra: # => � ...check link for more (https://eval.in/674901)
<adaedra> ¯\_(ツ)_/¯
dhollinger has joined #ruby
_sfiguser has quit [Ping timeout: 250 seconds]
<toretore> Xeago: you need to provide more context to get better answers
last_staff has quit [Quit: last_staff]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d0nn1e has quit [Ping timeout: 268 seconds]
AndrewIsHere has joined #ruby
xall has quit [Ping timeout: 248 seconds]
Silthias1 has joined #ruby
d0nn1e has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
Silthias2 has joined #ruby
harfangk has joined #ruby
aupadhye has quit [Ping timeout: 248 seconds]
Silthias has quit [Ping timeout: 268 seconds]
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndrewIsHere has quit [Ping timeout: 256 seconds]
Silthias1 has quit [Ping timeout: 252 seconds]
r3vDev has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DroidBurgundy has joined #ruby
tomphp has joined #ruby
c355e3b has joined #ruby
6A4AAATV9 has quit [Ping timeout: 246 seconds]
7YUAAKWO6 has quit [Ping timeout: 268 seconds]
_sfiguser has joined #ruby
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhack has joined #ruby
feelx has quit [Read error: Connection reset by peer]
tomphp has quit [Ping timeout: 246 seconds]
siovene has quit [Quit: Connection closed for inactivity]
bluOxigen has joined #ruby
augcesar has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
pokalyis has joined #ruby
bluOxigen has quit [Ping timeout: 250 seconds]
<Xeago> Sorry for being gone for a bit, it's happening in a Hash#to_json. Which is done here https://github.com/mackwic/slack-rtmapi/blob/master/lib/slack-rtmapi/client.rb#L37
bluOxigen has joined #ruby
<toretore> even here i can't escape slack
<Xeago> hehe
jgnagy has joined #ruby
<Xeago> Sorry - work mandates slack :x
<toretore> Xeago: where does `data` come from?
DroidBurgundy has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
DroidBurgundy has quit [Client Quit]
<Xeago> The pagerduty api returns unicode (\u00E4 for ä), somewhere something happens and then answer={:message=>"Some-name-with-a-umlaut \xC3\xA4 is on call at 2016-10-31 12:00:00 UTC."}
jerme has joined #ruby
<toretore> 1) are you sure it's utf-8 2) is is marked appropriately as utf-8?
jgnagy has quit [Ping timeout: 268 seconds]
<Xeago> what I get from pagerduty is proper utf-8. When it gets to the #reply in rtm_adapter.rb it's unknown, but the representation has changed. (from \u00E4 to \xC3\xA4) which is the same byte representation but it prints differently.
davidt has joined #ruby
<Xeago> unknown to me*
jgt has joined #ruby
<Xeago> Given that the printed representation changes, the encoding has changed, I believe.
bmurt has joined #ruby
<Xeago> The #bytes remain the same.
Tempesta has quit [Quit: See ya!]
GinoManWorks has quit [Read error: Connection reset by peer]
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
<toretore> >> "\u00E4".force_encoding('US-ASCII')
<ruby[bot]> toretore: # => "\xC3\xA4" (https://eval.in/674928)
<toretore> somewhere it's being tagged as ascii
<toretore> the data is the same, the only thing that's changing is which encoding the string object is tagged as
allcentury has joined #ruby
<Xeago> Ok, and I suppose to_json is supposed to convert this back into UTF-8, which will fail.
<Xeago> "\u00E4".force_encoding('US-ASCII').encode('UTF-8')
<Xeago> >> "\u00E4".force_encoding('US-ASCII').encode('UTF-8')
<ruby[bot]> Xeago: # => "\xC3" on US-ASCII (Encoding::InvalidByteSequenceError) ...check link for more (https://eval.in/674930)
<Xeago> Thanks! :D
<toretore> nothing is, or needs to be, converted
<Xeago> I'll chase this through my code then, thanks Bish and toretore
<toretore> but yes, logically it's what's happening, you just have to find out where it's changing from utf-8 to us-ascii
<Bish> toretore: sounds like a quote from a marvel movie
vuoto has joined #ruby
pokalyis has joined #ruby
PlasmaStar has quit [Ping timeout: 265 seconds]
jhack has quit [Quit: jhack]
<toretore> yes, ">> "\u00E4".force_encoding('US-ASCII')" is definitely something captain america would say
A124 has joined #ruby
<Bish> >> "\u00e4".pronounce
<ruby[bot]> Bish: # => undefined method `pronounce' for "ä":String (NoMethodError) ...check link for more (https://eval.in/674932)
<Bish> :(
PlasmaStar has joined #ruby
millerti has joined #ruby
cpruitt has joined #ruby
Tempesta has joined #ruby
ruby-Primax has joined #ruby
skweek has joined #ruby
ruby-Primax has quit [Client Quit]
jaruga___ has quit [Ping timeout: 245 seconds]
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
i8igmac has joined #ruby
pokalyis has joined #ruby
vuoto has quit [Remote host closed the connection]
SteenJobs has joined #ruby
conta1 has quit [Quit: conta1]
Filiphe has quit [Remote host closed the connection]
conta has joined #ruby
pawnbox has joined #ruby
jobewan_away has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
jobewan_away is now known as jobewan
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SteenJobs has quit [Ping timeout: 258 seconds]
amclain has joined #ruby
XV8 has quit [Quit: Textual IRC Client: www.textualapp.com]
pokalyis has joined #ruby
<apeiros> encodings - never ending source of developer confusion.
SteenJobs has joined #ruby
<apeiros> >> "\xC3\xA4" == "\u00e4" # Xeago
<ruby[bot]> apeiros: # => true (https://eval.in/674949)
<apeiros> failing to display sequences as characters means something in your chain of string -> output on screen is not treating it as utf-8 anymore
<apeiros> one reason e.g. telling ruby it was binary:
<apeiros> >> "H\u00e4gar is a nice guy".b
<ruby[bot]> apeiros: # => "H\xC3\xA4gar is a nice guy" (https://eval.in/674951)
<apeiros> though, puts will print it as ä again, because it'll just write the bytes as-is to the output device, which doesn't care what ruby thinks which encoding it was using.
gingray has quit [Ping timeout: 248 seconds]
mordof has joined #ruby
<mordof> is ruby's size method on strings O(n)?
saneax-_-|AFK is now known as saneax
<adaedra> I'd say it's O(1), it surely keeps the size stored
strigonLeader has quit [Read error: Connection reset by peer]
<adaedra> But that's a guess
<apeiros> mordof: depends on the encoding
swills has joined #ruby
<apeiros> variable-byte encodings like utf-8 are indeed O(n)
<apeiros> .bytesize is O(1)
stan has quit [Remote host closed the connection]
<mordof> ok, so use bytesize for getting large string size
<apeiros> no
<mordof> no?
aegis3121 has joined #ruby
<apeiros> use bytesize if you want to know how many bytes there are.
<apeiros> use size if you want to know how many characters there are.
cdg_ has joined #ruby
<apeiros> different things.
cdg has quit [Ping timeout: 258 seconds]
<mordof> right - bytes is more accurate for what i want anyway.. but it's just for a rough thing either way
<apeiros> then yes, use bytesize. it'll be both faster and more correct ;-)
<mordof> apeiros: we have some API calls that can return huge amounts of data, and i'm putting a limit in there so they can only return a certain amount of data within a given period
<mordof> bytesize is best
SteenJobs has quit [Quit: SteenJobs]
<mordof> thanks :)
blackwind_123 has joined #ruby
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Quit: Leaving.]
grug is now known as FODMEME
allcentury has quit [Ping timeout: 265 seconds]
stan has joined #ruby
pokalyis has joined #ruby
brendan- has joined #ruby
sepp2k has joined #ruby
shinnya has joined #ruby
nankyokusei has joined #ruby
saneax is now known as saneax-_-|AFK
saneax-_-|AFK is now known as saneax
SteenJobs has joined #ruby
FODMEME is now known as grug
Madplatypus has joined #ruby
cpruitt has quit [Quit: cpruitt]
allcentury has joined #ruby
maloik has joined #ruby
djbkd has joined #ruby
nankyokusei has quit [Ping timeout: 268 seconds]
ferr has quit [Quit: WeeChat 1.5]
i8igmac has quit [Ping timeout: 248 seconds]
machinewar has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
jsrn__ has joined #ruby
djbkd has quit [Ping timeout: 256 seconds]
maloik31 has quit [Ping timeout: 258 seconds]
agit0 has joined #ruby
rippa has joined #ruby
jsrn_ has quit [Ping timeout: 240 seconds]
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
akitada has joined #ruby
pokalyis has joined #ruby
Beams has quit [Quit: .]
nettoweb has joined #ruby
yoshi has joined #ruby
yoshi is now known as Guest56892
agit0 has quit [Quit: I'm off]
QpQ4 has joined #ruby
saneax is now known as saneax-_-|AFK
cpruitt has joined #ruby
aegis3121 has quit [Read error: Connection reset by peer]
Beams has joined #ruby
saneax-_-|AFK is now known as saneax
aegis3121 has joined #ruby
codfection has joined #ruby
cpruitt has quit [Client Quit]
phaza_ has joined #ruby
unreal_ is now known as unreal
et09 has joined #ruby
<et09> is there an equivalent to mkdir -p foo/bar/baz for objects
<et09> i mean, hashes
phaza has quit [Ping timeout: 240 seconds]
<Nilium> No, but you could write one.
<et09> OK
<ytti> i've written something like that https://github.com/ytti/asetus
kimegede has quit [Quit: Linkinus - http://linkinus.com]
<Nilium> It's the sort of thing I'd probably just write myself instead of pulling in a gem for.
<et09> yeah
bayed has joined #ruby
<ytti> yeah it's hella simple
<et09> mid doing it already
nhhc has quit [Quit: Leaving]
<et09> inject and call with the reference being passed or something like that
ta_ has quit [Remote host closed the connection]
<adaedra> Can surely be done just with Hash.new
<adaedra> ah no, less automatic :|
fbt has joined #ruby
QpQ4 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<fbt> So. How do *you* drop privileges in your ruby programs :3
<adaedra> which privileges?
<fbt> User privileges.
<adaedra> UNIX?
<fbt> The classic «if you run this as root, drop privileges and become another user»
jerme has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<fbt> Yep
<adaedra> There's surely a setuid somewhere
<adaedra> &ri setuid
<fbt> Yeah, that one is good.
<dminuoso> fbt: The proper way would be to educate users.
triangles3 has joined #ruby
jerme has joined #ruby
<dminuoso> fbt: Let your program refuse to execute if ran with root uid.
<fbt> I've found Process.uid= in some tutorial and instantly broke the thing
Chair is now known as Couch
<fbt> You also have to reset groups
<fbt> dminuoso, what about dropping privileges for workers?
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fbt> fork do Process::Sys.setuid(uid) ...
JeanCarloMachado has joined #ruby
<adaedra> fbt: according to the header, http://ruby-doc.org/core-2.3.1/Process.html#method-c-uid-3D is the one you should use
<fbt> Then you also have to set euid too.
<fbt> Well I mean it's not a big deal. Just don't forget about it.
triangles2 has quit [Ping timeout: 248 seconds]
GodFather has joined #ruby
<fbt> Oh, and suid
<fbt> When Process::Sys.setuid(uid) would set all three
<adaedra> Not sure about that
<fbt> At least on linux it sets all three.
<adaedra> Looks like it's just a call to C setuid(2)
<fbt> And that sets all three, yes
<adaedra> uid= does a setuid() too
<fbt> I've tested it literally a few minutes ago
<fbt> It won't set euid
GinoManWorks has joined #ruby
<adaedra> ah no, I misread, it's a fallback
<fbt> Just open irb and see for yourself
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fbt> so yeah, *now you know too* :D
<adaedra> I usually don't change uids from ruby tho
<fbt> And that won't reset your groups, so you have to do that too
JeanCarl1Machado has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meshsmith has joined #ruby
<fbt> Eh, I just have a concept in my head that would most likely have a master process running as root and workers running as a user
govg has joined #ruby
atmosx has joined #ruby
weemsledeux has joined #ruby
<fbt> Did a quick google and was surprised that uid= won't set euid. And euid= won't set uid.
aegis3121 has quit [Read error: Connection reset by peer]
<fbt> Assumed it should be just a call to setuid. Nope :D
aegis3121 has joined #ruby
<adaedra> You have the source in the doc
<fbt> Yeah, yeah, I've looked it up after it didn't do what I assumed
<adaedra> uid= actually has several methods it can call depending on what's available
tvsutton_ has quit [Quit: Quit]
codfection has quit [Remote host closed the connection]
weemsledeux has quit [Client Quit]
tuxaddicted has quit [Ping timeout: 260 seconds]
malconis has joined #ruby
watersoul_ has quit [Ping timeout: 256 seconds]
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hs366 has quit [Ping timeout: 245 seconds]
saneax is now known as saneax-_-|AFK
saneax-_-|AFK is now known as saneax
<eam> fbt: behavior varies between systems, not at the ruby level but at the system level
ChiefAlexander has joined #ruby
<Guest56892> Might Thread.new {ffi_call_that_blocks_forever} somehow starve the garbage collector ?
<eam> fbt: I wrote a simple gem to collect this behavior and drop privs for blocks, if you're interested: https://rubygems.org/gems/elvis
<fbt> Ooh
pokalyis has joined #ruby
saneax is now known as saneax-_-|AFK
<fbt> I was going to do that myself at some point
Helheim has quit [Remote host closed the connection]
nettoweb has joined #ruby
Helheim has joined #ruby
Beams has quit [Quit: .]
TomyWork has quit [Ping timeout: 256 seconds]
watersoul has joined #ruby
Beams has joined #ruby
Snowy has joined #ruby
aganov has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 252 seconds]
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
davix has joined #ruby
exxi has joined #ruby
davidt has quit []
<exxi> what's the difference between ruby and ruby on rails ?
<eam> exxi: ruby on rails is a set of libraries for ruby
saneax-_-|AFK is now known as saneax
<havenwood> exxi: Ruby is a language and Rails is a Rack adapter gem.
<exxi> ruby of rails is for web dev am i correct ?
<havenwood> exxi: Yup, Rails is a web app framework.
gregf_ has quit [Quit: Page closed]
<exxi> cool :)
<exxi> learning ruby must be fun :)
<exxi> is it similar to python ?
* mordof isn't familiar enough with python to make that distinction
<centrx> They are similar in some ways, but Ruby is more powerful/expressive and cooler
<centrx> more consistent interface
<centrx> actual object-orientation
<mordof> i feel like it'd be more accurate to say Ruby is closer to javascript than to python
<mordof> ignoring syntax obviously
<exxi> cool :)
bovis has joined #ruby
AndrewIsHere has joined #ruby
<chris2> i'd consider that an insult :P
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mordof> the ruby to js comment?
<chris2> yes :)
<mordof> i just meant in relative regards to python
<chris2> and i'm not sure one could say that even
<mordof> not in it's fullest
<chris2> the oo system of python and ruby is much more similar than js
<chris2> at least pre-es6
<centrx> yeah I don't see any connection between Ruby and JS
<chris2> except ruthless monkeypatching by the community, i dont either :P
<mordof> lol, fair enough
<aegis3121> Ruby has functional qualities.
<chris2> and a bazillion gem deps :D
pokalyis has joined #ruby
AndrewIsHere has quit [Client Quit]
saneax is now known as saneax-_-|AFK
<mordof> i got that impression mainly because i come from a js background.. and after reading about how ruby determines method locations and stuff, going up the chain.. it seemed like the style of how objects are in js was similar to ruby
saneax-_-|AFK is now known as saneax
<mordof> there's a lot more to languages than just that, which i didn't really think about what i was considering similarities/differences
<centrx> mordof: that's how method dispatch works in most languages
<mordof> centrx: then it's pretty clear how much i know about these things :) lol. i'll avoid making that statement in the future
saneax is now known as saneax-_-|AFK
saneax-_-|AFK is now known as saneax
blackjid has quit [Ping timeout: 258 seconds]
tpendragon has quit [Ping timeout: 258 seconds]
brent__ has joined #ruby
preyalone has joined #ruby
<centrx> JS is actually a pretty unique language because of "prototype" objects
machinewar has quit []
Unforgiven has joined #ruby
Unforgiven has left #ruby [#ruby]
<hanmac> havenwood: i personally like the optimation of Array#max, Array#min ;P
saneax is now known as saneax-_-|AFK
tubuliferous_ has joined #ruby
saneax-_-|AFK is now known as saneax
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
dopamean_ has joined #ruby
conta has quit [Ping timeout: 260 seconds]
saneax is now known as saneax-_-|AFK
saneax-_-|AFK is now known as saneax
hightower2 has joined #ruby
saneax is now known as saneax-_-|AFK
saneax-_-|AFK is now known as saneax
mark_66 has quit [Remote host closed the connection]
hightower3 has quit [Ping timeout: 256 seconds]
thisirs has joined #ruby
phantompain has joined #ruby
kent\n has quit [Quit: No Ping reply in 180 seconds.]
xall has joined #ruby
saneax is now known as saneax-_-|AFK
saneax-_-|AFK is now known as saneax
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
peteykun has joined #ruby
antgel has quit [Remote host closed the connection]
saneax is now known as saneax-_-|AFK
saneax-_-|AFK is now known as saneax
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 256 seconds]
saneax is now known as saneax-_-|AFK
saneax-_-|AFK is now known as saneax
Asher has joined #ruby
flying has quit []
saneax is now known as saneax-_-|AFK
agit0 has joined #ruby
aegis3121 has quit [Ping timeout: 248 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
jerme has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jerme has joined #ruby
[Butch] has joined #ruby
<apeiros> !kick sagax stop that
sagax was kicked from #ruby by ruby[bot] [stop that]
atmosx has quit [Ping timeout: 260 seconds]
yardenbar has quit [Ping timeout: 250 seconds]
<Xeago> I've been chasing this encoding bug I'm experiencing (from a few hours ago), it happens at a `ERB.new(template, nil, '>').result(binding).strip`. How can one instruct erb to consider the template UTF-8 and thus output in UTF-8?
jmignault has quit [Ping timeout: 252 seconds]
agit0 has quit [Quit: zzzZZZ….]
edwinvdgraaf has quit [Ping timeout: 248 seconds]
<Xeago> I've not seen things in the docs for setting encodings for ERB's, there's a encoding read-property, but how does on set it? :#
agit0 has joined #ruby
<apeiros> lets hope eval-in has erb:
<apeiros> >> ERB.new("\u00e4", nil, ">").result(binding).strip.encoding
<ruby[bot]> apeiros: # => uninitialized constant ERB (NameError) ...check link for more (https://eval.in/674989)
<apeiros> >> require 'erb'; ERB.new("\u00e4", nil, ">").result(binding).strip.encoding
<ruby[bot]> apeiros: # => #<Encoding:UTF-8> (https://eval.in/674990)
<apeiros> Xeago: seems ERB in current ruby doesn't change encodings…
<Xeago> Hmm, there might be some amgic going on with how it gets the template
<Xeago> I'll dig there
<apeiros> Xeago: you might have a substitution which inserts non-utf-8
claudiuinberlin has quit [Remote host closed the connection]
pragmaticus has joined #ruby
<apeiros> hm, though seems ERB does the right thing there too and coerces…
jsrn__ has quit [Quit: Leaving]
<Xeago> I think the File#read call will output US-ASCII
<apeiros> well, verify it? :) add `p tenc: template.encoding` or somesuch
<apeiros> File.read will use Encoding.default_external/_internal if no explicit encoding was passed via arguments
mluts has quit [Ping timeout: 246 seconds]
Rumbles has quit [Ping timeout: 268 seconds]
machinewar has joined #ruby
<machinewar> does irb process listen on any port?
agit0 has quit [Quit: zzzZZZ….]
sagax has joined #ruby
Terens has quit [Ping timeout: 246 seconds]
<sagax> I did not do anything and did not write, why ban me?
SteenJobs has quit [Quit: SteenJobs]
agit0 has joined #ruby
<apeiros> sagax: permanent nick changes
<sagax> 0_o
<sagax> i used only one nick - sagax
agit0 has quit [Client Quit]
<adam12> what's a permanent nick change?
<adam12> machinewar: Why would irb listen on a port?
jshjsh has quit [Ping timeout: 240 seconds]
<sagax> and my nick is registered
<Xeago> What is the difference between Encoding.default_external/_internal? Their documentation is identical
<apeiros> adam12: repeated, all the time
<apeiros> sagax: pm
<adam12> apeiros: I still don't get it ;\ no matter.
Fernando-Basso has quit [Ping timeout: 260 seconds]
<apeiros> Xeago: _external is what ruby assumes to be the encoding of IO outside of ruby, _internal is what you want to work with ruby internally
<apeiros> whoops. turned out I kicked the wrong one. should have been saneax-_-|AFK, not sagax. my apologies.
SCHAAP137 has joined #ruby
<adam12> That makes more sense now.
nankyokusei has joined #ruby
<apeiros> tab complete and didn't notice :<
<adam12> :\
Terens has joined #ruby
<baweaver> apeiros: you have failed this channel.
<baweaver> !qkick apeiros
apeiros was kicked from #ruby by ruby[bot] [kickable offense, see http://ruby-community.com/pages/user_rules]
<chris2> opwars!
<adam12> hah
apeiros has joined #ruby
* apeiros grumbles and swings fist in baweaver's general direction
* baweaver chuckles
<apeiros> ;-)
<baweaver> :P
nankyokusei has quit [Ping timeout: 256 seconds]
igniting has quit [Ping timeout: 248 seconds]
synthroid has quit [Remote host closed the connection]
blackbombay_ has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
claudiuinberlin has joined #ruby
Guest56892 has quit [Quit: Page closed]
claudiuinberlin has quit [Client Quit]
lxsameer has joined #ruby
agit0 has joined #ruby
<machinewar> adam12: not sure, some repls do so was curious if IRB did
<adam12> machinewar: I don't believe IRB does. pry-remote maybe.
<machinewar> adam12: kk thanks. Do you know if there's any way to communicate with an irb session externally
<adam12> machinewar: what's your use case?
<machinewar> lots, but an example would be executing code in irb from vim
<adam12> I'm not sure of irb internals but maybe you can just require IRB and eval, for that scenario.
<machinewar> kk thanks
<adam12> There is also druby (drb), but might be less useful.
tdy has quit [Ping timeout: 256 seconds]
agit0 has quit [Ping timeout: 252 seconds]
<adam12> Some people have been known to make drb just eval everything
nowhereman has quit [Remote host closed the connection]
nowhereman has joined #ruby
synthroid has joined #ruby
synthroi_ has joined #ruby
tdy has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
synthroid has quit [Ping timeout: 260 seconds]
swills has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Ping timeout: 260 seconds]
igniting has joined #ruby
kirun has joined #ruby
pawnbox has quit [Remote host closed the connection]
SteenJobs has joined #ruby
JoshS has joined #ruby
CHICKU has joined #ruby
CHICKU has quit [Client Quit]
andikr has quit [Remote host closed the connection]
jcao219 has joined #ruby
SteenJobs has quit [Client Quit]
centrx has quit [Remote host closed the connection]
pawnbox has joined #ruby
Couch has quit [Ping timeout: 265 seconds]
muelleme has joined #ruby
SteenJobs has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gizmore has quit [Ping timeout: 260 seconds]
gizmore has joined #ruby
SeepingN has joined #ruby
SteenJobs has quit [Client Quit]
synthroid has joined #ruby
phaza has joined #ruby
SteenJobs has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
phaza_ has quit [Ping timeout: 248 seconds]
vuoto has joined #ruby
synthroi_ has quit [Ping timeout: 268 seconds]
blaxter has joined #ruby
Beams has quit [Quit: .]
blaxter has quit [Client Quit]
armyriad has quit [Quit: Leaving]
bmurt has joined #ruby
nahra has quit [Ping timeout: 265 seconds]
tpendragon has joined #ruby
nofxx has joined #ruby
akitada has quit [Quit: Connection closed for inactivity]
blackjid has joined #ruby
railssmi_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vectorman87 has joined #ruby
phantompain has quit [Ping timeout: 260 seconds]
muelleme has quit [Ping timeout: 265 seconds]
jcao219 has quit [Ping timeout: 250 seconds]
threedee has joined #ruby
gusrub_ has joined #ruby
claudiuinberlin has joined #ruby
gusrub_ has quit [Client Quit]
firstdayonthejob has joined #ruby
aufi has quit [Ping timeout: 268 seconds]
gusrub_ has joined #ruby
creat has quit [Ping timeout: 246 seconds]
aryaching has joined #ruby
jgnagy has joined #ruby
d10n-work has joined #ruby
davidt has joined #ruby
igniting has quit [Ping timeout: 256 seconds]
djbkd has joined #ruby
triangles3 has quit [Quit: Leaving]
phantompain has joined #ruby
jgnagy has quit [Ping timeout: 265 seconds]
troys has joined #ruby
Dimik has joined #ruby
jahmalz has quit [Ping timeout: 260 seconds]
mostlybadfly has joined #ruby
pwnd_nsfw has joined #ruby
konsolebox has joined #ruby
DLSteve has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
mello has joined #ruby
ta_ has joined #ruby
JoshS has quit [Ping timeout: 265 seconds]
phantompain has quit [Ping timeout: 258 seconds]
vuoto has quit [Quit: Lost terminal]
GodFather has quit [Ping timeout: 268 seconds]
JoshS has joined #ruby
phaza_ has joined #ruby
splud has joined #ruby
chris349 has joined #ruby
igniting has joined #ruby
phaza has quit [Ping timeout: 244 seconds]
dogweather has joined #ruby
psmolen has quit [Ping timeout: 256 seconds]
firstdayonthejob has quit [Quit: WeeChat 1.6]
psmolen has joined #ruby
phantompain has joined #ruby
dcluna has joined #ruby
vectorman87 has quit [Ping timeout: 260 seconds]
railssmith has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
firstdayonthejob has joined #ruby
d3d1rty has quit [Ping timeout: 252 seconds]
tomphp has joined #ruby
machinewar has left #ruby [#ruby]
chrisja has joined #ruby
kent\n has joined #ruby
konsolebox has quit [Quit: Leaving]
kent\n has quit [Remote host closed the connection]
kent\n has joined #ruby
ta_ has quit [Remote host closed the connection]
symm- has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Salih has joined #ruby
tomphp has joined #ruby
tvsutton has joined #ruby
gingray has joined #ruby
exxi has quit [Quit: Leaving]
cdg_ has quit [Ping timeout: 256 seconds]
SeepingN has joined #ruby
marxarelli has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
brent__ has quit [Quit: Connection closed for inactivity]
nankyokusei has joined #ruby
conta has joined #ruby
elaptics has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 265 seconds]
mmarconm has joined #ruby
kent\n has quit [Remote host closed the connection]
roamingdog has quit [Read error: Connection reset by peer]
kent\n has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
lindylex has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
<lindylex> Help me resolve the number of arguments error please. https://gist.github.com/anonymous/e3f55332903944509c1a4820b71d686b
JoshS has quit [Ping timeout: 248 seconds]
roamingdog has quit [Remote host closed the connection]
bocaneri has quit [Remote host closed the connection]
roamingdog has joined #ruby
tomphp has joined #ruby
roamingdog has quit [Remote host closed the connection]
<hanmac> lindylex: you forgot the initialize methods
<vktec> lindylex: You need to define an initialize method taking one argument on your Number class
roamingdog has joined #ruby
<lindylex> Can you show me this? I am new to the language. I am studying "Understanding Computation".
roamingdog has quit [Ping timeout: 252 seconds]
TheCubeLord has joined #ruby
TheCubeLord has quit [Changing host]
TheCubeLord has joined #ruby
lenwood has joined #ruby
mmarconm has quit [Quit: WeeChat 1.0.1]
<vktec> Urk, the indentation didn't work very well there...
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dopamean_ has quit [Quit: WeeChat 1.3]
sparch has quit [Ping timeout: 250 seconds]
kent\n has quit [Ping timeout: 260 seconds]
kent\n has joined #ruby
TheCubeLord has quit [Ping timeout: 248 seconds]
hotpancakes has joined #ruby
<lindylex> vktex: I wonder why this book write the code this way? It is missing much of what you have done.
troys is now known as troys_
<lindylex> Thanks for the help.
mikecmpbll has joined #ruby
biberu has quit [Read error: Connection reset by peer]
djbkd has quit [Remote host closed the connection]
ur5us has joined #ruby
djbkd has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
dogweather has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
djbkd has quit [Ping timeout: 240 seconds]
splud_ has joined #ruby
aryaching has quit [Quit: Bye]
dionysus69 has joined #ruby
bustiz has joined #ruby
bustiz is now known as tapas
<tapas> hello
<havenwood> tapas: hi
chris3492 has joined #ruby
splud has quit [Ping timeout: 248 seconds]
splud_ is now known as splud
<tapas> I want to start a process ( a ruby program) and wait until it sends a response. then since I know that it started to ignore it
aryaching has joined #ruby
<tapas> after that I could check a pid file/ log
<tapas> How can I achieve that?
chris349 has quit [Ping timeout: 258 seconds]
ChiefAlexander has quit [Quit: Leaving...]
vuoto has joined #ruby
Snowy has quit [Ping timeout: 246 seconds]
aegis3121 has joined #ruby
<apeiros> tapas: with which part are you having issues?
Cohedrin has joined #ruby
whathappens has joined #ruby
djbkd has joined #ruby
davix has quit [Quit: WeeChat 1.6]
Snowy has joined #ruby
thisirs has quit [Ping timeout: 258 seconds]
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Terens has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 244 seconds]
millerti has quit [Quit: Textual IRC Client: www.textualapp.com]
muelleme has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
rfoust has quit [Read error: Connection reset by peer]
rfoust has joined #ruby
conta has joined #ruby
<tapas> apeiros the part of how to wait for response
anjen has joined #ruby
anjen has quit [Client Quit]
roamingdog has joined #ruby
mluts has joined #ruby
lenwood has quit [Ping timeout: 258 seconds]
dogweather has quit [Ping timeout: 256 seconds]
roamingdog has quit [Ping timeout: 245 seconds]
centrx has joined #ruby
hotpancakes has quit [Remote host closed the connection]
dogweather has joined #ruby
hotpancakes has joined #ruby
<apeiros> tapas: on what "channel" do you wait for a response? the process' stdout? something else?
ule has quit [Quit: leaving]
vikaton has joined #ruby
pragmaticus has quit [Remote host closed the connection]
emilkarl has joined #ruby
nowhereman has quit [Ping timeout: 260 seconds]
ule has joined #ruby
whathappwns has joined #ruby
Snowy has quit [Remote host closed the connection]
Snowy has joined #ruby
hotpancakes has quit []
Guest48263 has quit [Quit: -= A click to real life biatches!!! =-]
Snowy has quit [Ping timeout: 252 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
symm-_ has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
symm- has quit [Ping timeout: 260 seconds]
chris34928 has joined #ruby
futilegames has joined #ruby
emilkarl has joined #ruby
zapcode has joined #ruby
symm-_ has quit [Client Quit]
mluts has quit [Ping timeout: 265 seconds]
chris349 has joined #ruby
chris3492 has quit [Ping timeout: 260 seconds]
whathappens has quit [Quit: Leaving...]
chris34928 has quit [Ping timeout: 256 seconds]
dogweather has quit [Ping timeout: 258 seconds]
marxarelli has joined #ruby
jahmalz has joined #ruby
<tapas> apeiros. Maybe with spawn I could achieve that with stdout
<tapas> but stdout solution seems
<tapas> noob to me
hightower3 has joined #ruby
cdg has joined #ruby
muelleme has quit [Ping timeout: 246 seconds]
lindylex has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
phantompain has quit [Ping timeout: 258 seconds]
dogweather has joined #ruby
aegis3121 has quit [Read error: Connection reset by peer]
aegis312_ has joined #ruby
minimalism has joined #ruby
<havenwood> exit
dnicole has quit [Remote host closed the connection]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnicole has joined #ruby
<centrx> You cannot exit
<apeiros> br.exit?
riffraff has joined #ruby
jahmalz has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
<havenwood> AuthorizationError: parliament has not approved this exit
ta_ has joined #ruby
dnicole has quit [Ping timeout: 245 seconds]
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
Madplatypus has joined #ruby
conta has quit [Ping timeout: 256 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
claudiuinberlin has quit []
nowhereman has joined #ruby
phantompain has joined #ruby
marxarelli is now known as marxarelli|afk
<mordof> tapas: you need a more complex solution before it's considered acceptable?
marxarelli|afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marxarelli has joined #ruby
<mordof> you could set up a redis server, and have a node process watch a channel on the redis server, and when that message gets sent over the channel, for the node process to write to a sql database, where another node process polls the sql database, and then once it receives the message to write a message to a file, where another process waits for the fi
<mordof> le to appear, and then sends a signal to your main process
jenrzzz has joined #ruby
* mordof likes coming up with insane solutions
roamingdog has joined #ruby
nofxx has quit [Ping timeout: 258 seconds]
<mordof> the second node process could be written in bash, just to increase complexity
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has quit [Ping timeout: 245 seconds]
larissa has joined #ruby
troys_ is now known as troys
mello has quit [Quit: Lost terminal]
kith_ is now known as kith
SeepingN has joined #ruby
rfoust has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha_ has joined #ruby
SeepingN has quit [Read error: Connection reset by peer]
mordof has left #ruby [#ruby]
SeepingN has joined #ruby
bmurt has joined #ruby
sepp2k has quit [Quit: Leaving.]
johnmilton has quit [Remote host closed the connection]
Synthead has joined #ruby
tyang has quit [Ping timeout: 248 seconds]
futilegames has quit [Quit: futilegames]
boombox_ has joined #ruby
meshsmith has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
nahra has joined #ruby
Salih has quit [Read error: Connection reset by peer]
pragmaticus has joined #ruby
synthroid has quit []
Synthead has quit [Quit: Synthead]
dionysus69 has quit [Ping timeout: 252 seconds]
vuoto has quit [Remote host closed the connection]
tw1sted_ is now known as tw1sted
tw1sted has quit [Changing host]
tw1sted has joined #ruby
Synthead has joined #ruby
boombox_ has quit [Remote host closed the connection]
mixdev23 has quit [Quit: Leaving]
zerowaitstate has joined #ruby
nofxx has joined #ruby
Salih has joined #ruby
Salih has quit [Changing host]
Salih has joined #ruby
Salih has quit [Max SendQ exceeded]
Salih has joined #ruby
dogweather has quit [Ping timeout: 240 seconds]
dogweather has joined #ruby
nettoweb1 has joined #ruby
nettoweb has quit [Ping timeout: 256 seconds]
_sfiguser has quit [Ping timeout: 258 seconds]
toretore has quit [Ping timeout: 252 seconds]
riffraff has quit [Quit: This computer has gone to sleep]
zerowaitstate has quit [Quit: leaving]
p0p0pr37 has quit [Read error: Connection reset by peer]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
p0p0pr37 has joined #ruby
<bovis> if you're up for a real challenge, maybe inputting all the code for mordof's insanity could be done on punch cards
djellemah has quit [Ping timeout: 244 seconds]
dcluna has quit [Remote host closed the connection]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
lxsameer has quit [Quit: WeeChat 1.6]
teclator has quit [Ping timeout: 268 seconds]
GinoManWorks has quit [Quit: Leaving]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Terens has joined #ruby
djbkd has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
_sfiguser has joined #ruby
jerme has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Salih has quit [Quit: Leaving]
jgnagy has joined #ruby
symm- has joined #ruby
jgnagy has quit [Ping timeout: 260 seconds]
bovis has quit [Quit: leaving]
phaza has joined #ruby
centrx has quit []
llua is now known as llua|localhost
phaza_ has quit [Ping timeout: 246 seconds]
Darmani has joined #ruby
llua|localhost is now known as llua
dogweather has quit [Ping timeout: 258 seconds]
roamingdog has joined #ruby
dogweather has joined #ruby
zapcode has quit [Ping timeout: 256 seconds]
pokalyis has joined #ruby
jerme has joined #ruby
Immune has joined #ruby
roamingdog has quit [Ping timeout: 244 seconds]
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
augcesar has quit [Quit: Connection closed for inactivity]
rfoust has joined #ruby
hotpancakes has joined #ruby
zapcode has joined #ruby
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
edwinvdgraaf has joined #ruby
jerme has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
djellemah has joined #ruby
cpruitt has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
marxarelli is now known as marxarelli|afk
swills has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
djbkd has quit [Quit: My people need me...]
allcentury has quit [Ping timeout: 256 seconds]
dogweather has quit [Remote host closed the connection]
doublemalt__ has quit [Ping timeout: 260 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
frmendes has joined #ruby
zapcode has quit [Read error: Connection reset by peer]
zapcode has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
kirun_ has joined #ruby
kirun has quit [Ping timeout: 256 seconds]
vali has quit [Ping timeout: 245 seconds]
jhack has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Butch] has quit [Quit: I'm out . . .]
saneax-_-|AFK is now known as saneax
GodFather has joined #ruby
nankyokusei has joined #ruby
aegis312_ has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
pragmaticus has quit [Ping timeout: 244 seconds]
cpruitt has quit [Quit: cpruitt]
tomphp has joined #ruby
hahuang61 has joined #ruby
kirun_ has quit [Quit: Konversation terminated!]
hahuang65 has quit [Ping timeout: 250 seconds]
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 265 seconds]
hotpancakes has quit []
jgnagy has joined #ruby
raeoks has joined #ruby
CloCkWeRX has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
firstdayonthejob has quit [Ping timeout: 268 seconds]
troys is now known as troys_
yuung_ has joined #ruby
<yuung_> does Open3.popen3 fork a new process, like system does?
gingray has quit [Ping timeout: 256 seconds]
JeanCarl1Machado has quit [Ping timeout: 260 seconds]
JeanCarloMachado has quit [Ping timeout: 268 seconds]
pokalyis has joined #ruby
theery has joined #ruby
18WAAQDFZ has joined #ruby
92AAAHZ6V has joined #ruby
smlocal has joined #ruby
d3d1rty has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
yuung_ has quit [Quit: leaving]
Terens has quit [Ping timeout: 265 seconds]
theery has quit [Remote host closed the connection]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
gizmore has quit [Ping timeout: 260 seconds]
gizmore has joined #ruby
jhack has quit [Quit: jhack]
theery has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
c0mrad3 has quit [Quit: Connection closed for inactivity]
jobewan has quit [Ping timeout: 268 seconds]
dogweather has joined #ruby
koooge has joined #ruby
marxarelli|afk is now known as marxarelli
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dogweather has quit [Ping timeout: 258 seconds]
nettoweb has joined #ruby