apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
Kricir_ has quit [Remote host closed the connection]
mekhami has quit [Quit: Leaving]
omosoj has quit [Ping timeout: 240 seconds]
VanillaGoat_ has quit [Ping timeout: 258 seconds]
Kricir has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
cicloid is now known as aCicloid
attamusc has quit [Quit: Connection closed for inactivity]
omosoj has joined #ruby
justin_pdx has quit [Quit: justin_pdx]
thoolihan has quit [Ping timeout: 258 seconds]
lw has quit [Quit: s]
hellangel7 has joined #ruby
pu22l3r has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
kobain has quit [Read error: Connection timed out]
kobain has joined #ruby
EasyCo has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
vyorkin has quit [Quit: WeeChat 1.0.1]
thoolihan has joined #ruby
<ramfjord> totimkopf: what are you hoping recipe_for_cake will be?
<ramfjord> ditto for recipe_for_chicken
<ramfjord> name error because they aren't defined anywhere
reinaldob has quit [Remote host closed the connection]
<totimkopf> ramfjord: ah, true, I guess the code wasn't supposed to work
<totimkopf> I thought that it would magically do something with the @recipes array...
<totimkopf> the book does hint that it should do something other than error
ixti has quit [Ping timeout: 240 seconds]
softaco_s has quit [Remote host closed the connection]
goodenough has joined #ruby
aspires has quit []
<ramfjord> totimkopf: could it have defined those earlier? They seem to need to respond to :main_ingredient, so it would make sense if the book defined a Recipe class earlier
kaspergrubbe has quit [Remote host closed the connection]
ghr has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
pu22l3r has quit [Remote host closed the connection]
_whitelogger__ has quit [Excess Flood]
_whitelogger__ has joined #ruby
manzo has quit [Ping timeout: 260 seconds]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
aspires has joined #ruby
spicerack has joined #ruby
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
fabrice31 has joined #ruby
x77686d has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
<totimkopf> ramfjord: possible
Spami has quit [Quit: This computer has gone to sleep]
sepp2k1 has joined #ruby
skolman_ has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 265 seconds]
ephemerian has quit [Quit: Leaving.]
skolman_ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger__ has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
backsorry has joined #ruby
skolman has joined #ruby
skolman_ has quit [Remote host closed the connection]
jasooon has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
IceDragon has quit [Ping timeout: 260 seconds]
fabrice31 has quit [Ping timeout: 260 seconds]
_whitelogger__ has joined #ruby
goodenough has quit [Remote host closed the connection]
zz_karupa is now known as karupa
goodenough has joined #ruby
weemsledeux has joined #ruby
IceDragon has joined #ruby
weemsledeux has joined #ruby
Nigel_ is now known as G
zorak8 has joined #ruby
mikepack has quit [Remote host closed the connection]
<shevy> code code code
<shevy> we need less code
sailias has joined #ruby
ph8 has quit [Ping timeout: 244 seconds]
jasooon has quit [Ping timeout: 272 seconds]
goodenough has quit [Ping timeout: 244 seconds]
thagomizer has quit [Quit: Leaving.]
goodenough has joined #ruby
<ramfjord> shevy: that's what high level languages are for, right?
<shevy> ramfjord well, one still writes quite a lot of code in them
_whitelogger__ has quit [Excess Flood]
_whitelogger__ has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enebo has quit [Quit: enebo]
Kricir has joined #ruby
Spami has joined #ruby
<shevy> *specify
<shevy> I'd like to specifcy code differently
maletor has joined #ruby
_whitelogger__ has joined #ruby
pu22l3r has joined #ruby
charliesome has joined #ruby
x77686d has quit [Quit: x77686d]
reinaldob has joined #ruby
<shevy> do you guys do rather this:
<shevy> hey
<shevy> foo = array[0]
<shevy> or
<shevy> foo = array.first
<shevy> ?
oo_ has joined #ruby
goodenough has joined #ruby
AmBienCeD has quit [Read error: Connection reset by peer]
goodenough has quit [Remote host closed the connection]
GriffinHeart has quit [Remote host closed the connection]
ph8 has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
_whitelogger__ has joined #ruby
reinaldob has quit [Ping timeout: 260 seconds]
<havenwood> shevy: i prefer a method without arguments, except for example for uniformity like [0] when it's next to [1] and [2]
Aova has joined #ruby
goodenough has quit [Ping timeout: 260 seconds]
softaco_s has joined #ruby
sevenseacat has joined #ruby
mesamoo has joined #ruby
Kricir has quit [Remote host closed the connection]
KC9YDN has quit [Ping timeout: 255 seconds]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
fuhgeddaboudit has joined #ruby
_whitelogger__ has joined #ruby
sailias has quit [Quit: Leaving.]
justinmburrous has joined #ruby
doodlehaus has quit [Remote host closed the connection]
gsd has joined #ruby
lw has joined #ruby
hamakn has joined #ruby
rubie has joined #ruby
coderdad has joined #ruby
lw has joined #ruby
klaut_ has quit [Remote host closed the connection]
lw has joined #ruby
<rubie> hi all: im having a hard time wrapping my head around calling functions in different methods, not sure why this goes into an infinite loop would someone mind taking a look? https://gist.github.com/gabrie30/4aff1e53ee867dbf2143
Wolland has joined #ruby
ferr has joined #ruby
_whitelogger__ has quit [Ping timeout: 260 seconds]
jhass is now known as jhass|off
elektronaut has quit [Ping timeout: 260 seconds]
_whitelogger__ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
bklane has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
bklane has joined #ruby
bklane has joined #ruby
pu22l3r has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
mrsolo has joined #ruby
tyll has joined #ruby
king313 has quit [Quit: .]
tyll has quit [Ping timeout: 258 seconds]
Wolland has quit [Ping timeout: 255 seconds]
elektronaut has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
spyderman4g63 has quit [Read error: Connection reset by peer]
_whitelogger__ has joined #ruby
fuhgeddaboudit has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> havenwood so you would use .first in the example above?
elektronaut has joined #ruby
<havenwood> shevy: yeah, i would
GriffinHeart has joined #ruby
spyderman4g63 has quit [Ping timeout: 240 seconds]
omosoj has quit [Ping timeout: 240 seconds]
jasooon has joined #ruby
melik has quit [Quit: (null)]
<shevy> ok
spyderman4g63 has joined #ruby
weemsledeux has joined #ruby
weemsledeux has joined #ruby
jhass|off is now known as jhass
reinaldob has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
qmfnp has joined #ruby
mrsolo has joined #ruby
drkyro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
omosoj has joined #ruby
spyderman4g63 has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
zorak8 has quit [Ping timeout: 250 seconds]
zorak8 has joined #ruby
skolman has quit [Remote host closed the connection]
omosoj has quit [Client Quit]
aCicloid is now known as cicloid
skolman_ has joined #ruby
kiely is now known as kawaiibot
tylersmith has joined #ruby
kawaiibot is now known as kiely
NoNMaDDeN has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 240 seconds]
_whitelogger__ has quit [Ping timeout: 260 seconds]
_whitelogger__ has joined #ruby
coderdad has quit [Remote host closed the connection]
<afhammad> rubie: you are doing "if true" instead of "if prime?(i)"
boombadaroomba has joined #ruby
<afhammad> rubie: "if true" will always be true, i will never increment, hence infinite loop
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rubie> i thought this would check if_prime(i) to be true
mrsolo has left #ruby ["Leaving"]
hellangel7 has quit [Remote host closed the connection]
<rubie> ahhh
<rubie> but wouldn't go on to the next step
<afhammad> no, you can either do "if prime?(i)" or "if prime?(i) == true"
tkuchiki has joined #ruby
<rubie> oh gotcha so it never goes to i +=1
skolman_ has quit [Ping timeout: 245 seconds]
AlexRussia has quit [Ping timeout: 240 seconds]
aspires has quit []
skolman_ has joined #ruby
<rubie> perfect thank you!
<afhammad> rubie: :)
fuhgeddaboudit has joined #ruby
boombadaroomba has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
tvw has quit [Ping timeout: 260 seconds]
yetanotherdave has quit [Ping timeout: 240 seconds]
mikeg has joined #ruby
Jessica123 has joined #ruby
cleopatra has quit [Ping timeout: 272 seconds]
<shevy> lol
<shevy> rubie, now that was a slipup you must remember for the rest of your life:
<shevy> if true
tokik has joined #ruby
<shevy> "Hey, I thought it would check for the size of the universe, and return 42!"
SpaceKookie has quit [Ping timeout: 260 seconds]
_whitelogger__ has quit [Excess Flood]
_whitelogger__ has joined #ruby
<rubie> lol, yes that is something i won't ever forget
<shevy> \o/
ghr has quit [Ping timeout: 250 seconds]
SpaceKookie has joined #ruby
<rubie> newbs....
coderdad has joined #ruby
badhatter has quit [Read error: Connection reset by peer]
cicloid is now known as aCicloid
wallerdev has quit [Quit: wallerdev]
zorak8 has quit [Ping timeout: 265 seconds]
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
tlarevo has joined #ruby
afhammad has quit []
sailias has joined #ruby
sailias has quit [Client Quit]
maletor has joined #ruby
bentanweihao has joined #ruby
havenwood has quit [Remote host closed the connection]
monkeypatch has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
bricker`work has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
mikepack has joined #ruby
zeroNones has joined #ruby
livingstn has quit [Ping timeout: 256 seconds]
_whitelogger___ has joined #ruby
aquatty has quit [Remote host closed the connection]
levisbakalinsky is now known as levisbakalinsky|
jack_rabbit has quit [Ping timeout: 260 seconds]
emmesswhy has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
levisbakalinsky| has quit [Ping timeout: 250 seconds]
_whitelogger___ has joined #ruby
SpaceKookie has joined #ruby
robbyoconnor has joined #ruby
zorak8 has quit [Ping timeout: 260 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
hamakn has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arescorpio has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
patrick99e99 has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby
CodeBunny has quit [Ping timeout: 250 seconds]
AlexRussia has quit [Remote host closed the connection]
softaco_s has quit [Remote host closed the connection]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
crazydiamond has quit [Ping timeout: 272 seconds]
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
goshdarnyou has joined #ruby
brahmadpk has joined #ruby
bentanweihao has joined #ruby
jimbach has quit [Remote host closed the connection]
bentanweihao has quit [Read error: Connection reset by peer]
mistermocha has quit [Remote host closed the connection]
jimbach has joined #ruby
Kricir has quit [Remote host closed the connection]
_whitelogger___ has joined #ruby
zorak8 has joined #ruby
tyll_ has joined #ruby
dx7 has joined #ruby
Takle has joined #ruby
coderdad has quit [Remote host closed the connection]
bmurt has joined #ruby
Jessica123 has quit [Ping timeout: 246 seconds]
tyll has quit [Ping timeout: 244 seconds]
jimbach has quit [Ping timeout: 260 seconds]
hamakn has joined #ruby
cndiv has quit [Ping timeout: 246 seconds]
jasooon has quit [Ping timeout: 272 seconds]
a_ has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
bigmac_ has joined #ruby
djbkd has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 272 seconds]
mistermocha has quit [Remote host closed the connection]
bmurt has quit []
ajk1 has joined #ruby
fabrice31 has joined #ruby
Asher has quit [Quit: Leaving.]
jimbach has joined #ruby
NoNMaDDeN has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ad_boot has quit [Quit: ad_boot]
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
mistermocha has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
Scotteh_ has quit [Ping timeout: 244 seconds]
gja has joined #ruby
tejas has joined #ruby
oinkon has quit [Ping timeout: 244 seconds]
gja has quit [Changing host]
gja has joined #ruby
tejas has joined #ruby
tejas has quit [Changing host]
NoNMaDDeN has quit [Ping timeout: 255 seconds]
pu22l3r has joined #ruby
ghr has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
maestrojed has joined #ruby
bentanweihao has quit [Remote host closed the connection]
Scotteh_ has joined #ruby
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
tejas has quit [Ping timeout: 265 seconds]
livingstn has quit [Ping timeout: 256 seconds]
gja has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
rshetty has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
bentanweihao has joined #ruby
justinmburrous has quit [Remote host closed the connection]
justinmburrous has joined #ruby
brahmadpk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
softaco_s has joined #ruby
mikepack has quit [Remote host closed the connection]
justinmburrous has quit [Ping timeout: 258 seconds]
radic has quit [Disconnected by services]
radic_ has joined #ruby
Asher has joined #ruby
brahmadpk has joined #ruby
softaco_s has quit [Ping timeout: 265 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
jordsmi has quit [Quit: Connection closed for inactivity]
skolman_ has joined #ruby
softaco_s has joined #ruby
rshetty has quit [Remote host closed the connection]
spacemud has quit [Ping timeout: 240 seconds]
_whitelogger___ has joined #ruby
gizmore has joined #ruby
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
bentanweihao has quit []
rshetty has joined #ruby
gja has joined #ruby
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
t_mmyv has joined #ruby
skolman_ has quit [Ping timeout: 272 seconds]
Kricir has joined #ruby
spacemud has joined #ruby
mordocai has quit [Read error: Connection reset by peer]
drPoggs has quit [Ping timeout: 260 seconds]
_whitelogger___ has joined #ruby
_2easy has quit [Ping timeout: 260 seconds]
bentanweihao has joined #ruby
drPoggs has joined #ruby
_2easy has joined #ruby
_2easy has quit [Changing host]
_2easy has joined #ruby
poweratom_ has joined #ruby
gja has quit [Ping timeout: 250 seconds]
bklane has quit [Ping timeout: 240 seconds]
coderdad has joined #ruby
_shrine is now known as _cake
jasooon has joined #ruby
crazydiamond has joined #ruby
poweratom_ has quit [Remote host closed the connection]
oinkon has joined #ruby
softaco_s has quit [Remote host closed the connection]
coderdad has quit [Remote host closed the connection]
mary5030 has joined #ruby
rshetty has quit [Remote host closed the connection]
echooo has joined #ruby
rshetty has joined #ruby
spicerack has joined #ruby
davasaurous has joined #ruby
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has quit [Quit: Leaving.]
brahmadpk has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
KC9YDN has quit [Ping timeout: 258 seconds]
rshetty has quit [Ping timeout: 260 seconds]
tbrock has joined #ruby
ajk1 has quit [Quit: Leaving.]
x77686d has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
gja has joined #ruby
doodlehaus has joined #ruby
MeMoCooL has quit []
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
tejas has joined #ruby
nopc0de has quit [Ping timeout: 240 seconds]
krz has joined #ruby
sevvie has quit [Ping timeout: 240 seconds]
niftylettuce has joined #ruby
doodlehaus has quit [Ping timeout: 258 seconds]
x77686d has quit [Ping timeout: 246 seconds]
Eiam has joined #ruby
ki0 has joined #ruby
djbkd has joined #ruby
t_mmyv has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
tejas has quit [Client Quit]
gja has quit [Quit: This computer has gone to sleep]
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby
skolman_ has joined #ruby
skolman_ has quit [Remote host closed the connection]
skolman_ has joined #ruby
jimbach has quit [Ping timeout: 260 seconds]
_whitelogger___ has joined #ruby
rubie has quit [Quit: Page closed]
gja has joined #ruby
gja has joined #ruby
KC9YDN has joined #ruby
djbkd has quit [Quit: My people need me...]
skolman_ has quit [Ping timeout: 272 seconds]
braincrash has joined #ruby
<shevy> ideas?
<shevy> it's time to make ruby more kick ass
<shevy> ok guys
klmlfl has joined #ruby
icebourg has joined #ruby
starkhalo has quit [Read error: Connection reset by peer]
icebourg has quit [Read error: Connection reset by peer]
icebourg has joined #ruby
tlarevo has quit [Remote host closed the connection]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
starkhalo has joined #ruby
matchaw has quit [Read error: Connection reset by peer]
<benzrf> static typing!!!!!!1
matchaw_ has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
virtualize has joined #ruby
<shevy> well that is one idea
<shevy> problem is that it is orthogonal to dynamic typing
koderok has joined #ruby
koderok has quit [Client Quit]
<shevy> I would not know of a language that has managed to combine both approaches
jrhe_ has quit [Quit: Connection closed for inactivity]
adamsilver has joined #ruby
echooo1 has joined #ruby
<adamsilver> why it says no match here: http://rubular.com/r/4F461BBFHi
justinmburrous has joined #ruby
skolman_ has joined #ruby
rshetty has joined #ruby
<shevy> so (?=[a-z]+) alone matches
<shevy> however when you make it into: (?=[a-z]+)(:)
phutchins has joined #ruby
<shevy> it no longer matches
echooo has quit [Ping timeout: 244 seconds]
SpaceKookie has joined #ruby
<shevy> when you turn it into: ([a-z]+)(:)
<shevy> it matches
<shevy> so the culprit must logically be the ?=
<shevy> what does ?= mean adamsilver
baash05 has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
nopc0de has joined #ruby
<adamsilver> shevy: lookahead
skolman_ has quit [Remote host closed the connection]
rpag has joined #ruby
skolman_ has joined #ruby
Kricir has quit [Remote host closed the connection]
KC9YDN has quit [Quit: Windows 8.1 LoL]
rshetty has quit [Remote host closed the connection]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
skolman_ has quit [Remote host closed the connection]
skolman has joined #ruby
<benzrf> wow what with this (:) it almost looks like youre writing haskell
SpaceKookie has quit [Ping timeout: 260 seconds]
ki0 has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 255 seconds]
<adamsilver> heh
iamjarvo has joined #ruby
_whitelogger___ has joined #ruby
softaco_s has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
neersighted has joined #ruby
programmerq has quit [Ping timeout: 272 seconds]
Synthbread has joined #ruby
Lewix has quit [Remote host closed the connection]
bentanweihao has quit [Read error: Connection reset by peer]
dopiee has quit [Remote host closed the connection]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
JoshGlzBrk has joined #ruby
justinmburrous has quit [Remote host closed the connection]
tbrock has joined #ruby
segmond has joined #ruby
davasaurous has quit [Remote host closed the connection]
jimbach has joined #ruby
ferr has quit [Ping timeout: 250 seconds]
softaco_s has quit [Remote host closed the connection]
nheinrich has joined #ruby
aCicloid is now known as cicloid
goodenough has joined #ruby
jimbach has quit [Ping timeout: 260 seconds]
programmerq has joined #ruby
tbrock has quit [Quit: Textual IRC Client: www.textualapp.com]
klmlfl has quit [Remote host closed the connection]
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
zorak8 has quit [Read error: Connection reset by peer]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
arup_r has joined #ruby
Kricir has joined #ruby
justinmburrous has joined #ruby
Azure has quit [Ping timeout: 265 seconds]
cicloid is now known as aCicloid
patrick99e99 has joined #ruby
davasaurous has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
Synthbread has quit [Read error: Connection reset by peer]
Synthbread has joined #ruby
duncannz has joined #ruby
x77686d has joined #ruby
schaerli has joined #ruby
patrick99e99 has quit [Ping timeout: 260 seconds]
devan94_ has joined #ruby
bricker`work has joined #ruby
Lucky__ has joined #ruby
arescorpio has quit [Excess Flood]
echooo has joined #ruby
brahmadpk has joined #ruby
IceDragon has quit [Ping timeout: 255 seconds]
lw has quit [Quit: s]
x77686d has quit [Ping timeout: 260 seconds]
echooo1 has quit [Ping timeout: 260 seconds]
fabrice31 has joined #ruby
doug1 has joined #ruby
b1nd has joined #ruby
echooo1 has joined #ruby
doug1 has quit [Client Quit]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
Kricir has quit [Remote host closed the connection]
echooo has quit [Ping timeout: 260 seconds]
SpaceKookie has quit [Ping timeout: 260 seconds]
Kricir has joined #ruby
devdazed has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
benzrf is now known as benzrf|offline
SpaceKookie has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
x77686d has joined #ruby
devdazed has quit [Client Quit]
Channel6 has quit [Ping timeout: 240 seconds]
almostworking has joined #ruby
rshetty has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
icebourg_ has joined #ruby
almostworking has left #ruby [#ruby]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
nopc0de has quit [Ping timeout: 265 seconds]
icebourg has quit [Ping timeout: 260 seconds]
x1337807x has joined #ruby
x77686d has quit [Ping timeout: 240 seconds]
larissa has quit [Quit: Leaving]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devan94_ has quit [Ping timeout: 244 seconds]
fandi has joined #ruby
JoshGlzBrk has joined #ruby
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
x1337807x has quit [Ping timeout: 258 seconds]
gja has joined #ruby
jasooon has quit [Ping timeout: 260 seconds]
adamsilver has left #ruby [#ruby]
IceDragon has joined #ruby
x1337807x has joined #ruby
manzo has quit [Ping timeout: 240 seconds]
tejas has joined #ruby
Synthbread has quit [Remote host closed the connection]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
kaspergrubbe has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
NoNMaDDeN has joined #ruby
SpaceKookie has joined #ruby
nonks has quit [Ping timeout: 244 seconds]
Scotteh_ has joined #ruby
x1337807x has joined #ruby
ghr has joined #ruby
nopc0de has joined #ruby
jasooon has joined #ruby
Channel6 has joined #ruby
spicerack has quit [Read error: Connection reset by peer]
Scotteh_ has quit [Read error: Connection reset by peer]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Andrevan has quit [Quit: WeeChat 0.4.4-dev]
x1337807x has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Ping timeout: 244 seconds]
_whitelogger___ has joined #ruby
leslie has quit [Ping timeout: 260 seconds]
leslie has joined #ruby
leslie is now known as Guest24456
NoNMaDDeN has quit [Ping timeout: 255 seconds]
_whitelogger___ has joined #ruby
ki0 has joined #ruby
x1337807x has quit [Ping timeout: 255 seconds]
zorak8 has joined #ruby
mistermocha has quit [Remote host closed the connection]
NoNMaDDeN has joined #ruby
nrsk has joined #ruby
ki0 has quit [Ping timeout: 246 seconds]
oinkon has quit [Ping timeout: 272 seconds]
jasooon has quit [Ping timeout: 260 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
twoshot_ has quit [Ping timeout: 240 seconds]
oinkon has joined #ruby
_whitelogger___ has joined #ruby
x1337807x has joined #ruby
jimbach has joined #ruby
JoshGlzBrk has joined #ruby
anaeem1_ has quit [Quit: Leaving...]
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
anaeem1 has joined #ruby
zorak8 has quit [Ping timeout: 246 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
arup_r has quit [Quit: Leaving.]
mary5030 has quit [Ping timeout: 260 seconds]
goodenough has quit [Remote host closed the connection]
elektronaut has quit [Ping timeout: 260 seconds]
x1337807x has quit [Ping timeout: 260 seconds]
jimbach has quit [Ping timeout: 258 seconds]
elektronaut has joined #ruby
spicerack has joined #ruby
x1337807x has joined #ruby
AndroUser466 has joined #ruby
Blizzy has quit [Ping timeout: 255 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
Aova has quit []
lampd1 has quit [Remote host closed the connection]
nonks has joined #ruby
_whitelogger___ has joined #ruby
Blizzy has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
virtualize has quit [Quit: Leaving...]
tlarevo has joined #ruby
x1337807x has quit [Ping timeout: 240 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
duncannz has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
doodlehaus has joined #ruby
tejas has quit [Quit: This computer has gone to sleep]
gja has quit [Quit: This computer has gone to sleep]
tejas has joined #ruby
gja has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
tejas has quit [Client Quit]
gja has quit [Client Quit]
programmerq has quit [Ping timeout: 245 seconds]
doodlehaus has quit [Ping timeout: 265 seconds]
armyriad has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
Channel6 has quit [Remote host closed the connection]
elektronaut has quit [Ping timeout: 260 seconds]
jhass is now known as jhass|off
_whitelogger___ has joined #ruby
elektronaut has joined #ruby
tejas has joined #ruby
gja has joined #ruby
programmerq has joined #ruby
bluOxigen has joined #ruby
adv_ has quit [Read error: Connection reset by peer]
shortCircuit__ has joined #ruby
djbkd has joined #ruby
aCicloid is now known as cicloid
nonks has quit [Ping timeout: 255 seconds]
x77686d has joined #ruby
x77686d has quit [Client Quit]
emmesswhy has quit [Quit: Leaving]
Lewix has joined #ruby
Takle has quit [Ping timeout: 255 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
skolman has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
gja has quit [Ping timeout: 244 seconds]
tejas has quit [Ping timeout: 260 seconds]
skolman has joined #ruby
tejas has joined #ruby
northfurr has joined #ruby
rshetty has quit []
psy has quit [Quit: Leaving]
kyb3r_ has joined #ruby
_whitelogger___ has joined #ruby
boombadaroomba has joined #ruby
blueOxigen has joined #ruby
rshetty has joined #ruby
psy has joined #ruby
skolman has quit [Ping timeout: 272 seconds]
bluOxigen has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
cicloid is now known as aCicloid
SouL has quit [Ping timeout: 240 seconds]
boombadaroomba has quit [Ping timeout: 246 seconds]
oleo__ has quit [Quit: Verlassend]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
ghr has joined #ruby
NoNMaDDeN has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
Blizzy has quit [Ping timeout: 255 seconds]
timonv_ has quit [Ping timeout: 245 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
Spami has joined #ruby
emmesswhy has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
jimbach has joined #ruby
Guest24456 has quit [Ping timeout: 260 seconds]
AndroUser466 has quit [Quit: AndroUser466]
timonv_ has joined #ruby
_whitelogger___ has quit [Ping timeout: 260 seconds]
_whitelogger___ has joined #ruby
Fire-Dragon-DoL has joined #ruby
leslie has joined #ruby
jimbach has quit [Ping timeout: 245 seconds]
elektronaut has joined #ruby
Guest32120 has joined #ruby
<zmyrgel> morning
<zmyrgel> I need a bit of debugging help for my script
_whitelogger___ has joined #ruby
<zmyrgel> the gist is bit out-dated but the problem is in the parse_zip_file
emmesswhy has quit [Quit: Leaving]
<zmyrgel> the script crashes with err: No such file or directory - N:/939204.SAA (Errno::ENOENT)
hmsimha has joined #ruby
nonks has joined #ruby
<zmyrgel> I'm a bit puzzled by that as the parse_zip_file method should be extracting the file from the zip and creating it under N:/ drive
brahmadpk has quit [Ping timeout: 244 seconds]
coderdad has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
northfurr has joined #ruby
kamilc__ has joined #ruby
sandelius has joined #ruby
goodenough has joined #ruby
nonks has quit [Ping timeout: 255 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
JohnBat26 has joined #ruby
tagrudev has joined #ruby
bmurt has joined #ruby
xcyclist has quit [Ping timeout: 246 seconds]
arup_r has joined #ruby
Aova has joined #ruby
oinkon has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
neoxquick has quit [Read error: Connection reset by peer]
nheinrich has quit []
havenwood has joined #ruby
djbkd has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
starkhalo has quit [Ping timeout: 260 seconds]
davasaurous has quit [Remote host closed the connection]
davasaurous has joined #ruby
fabrice31 has joined #ruby
SpaceKookie has joined #ruby
<tagrudev> certainty, ping
Lewix has quit [Quit: Leaving...]
diegoviola has quit [Read error: Connection reset by peer]
tejas has quit [Read error: No route to host]
patrick99e99 has joined #ruby
<zmyrgel> hmm, seems to be issue with network drive, it doesn't seem to be mounted when the script is run
fabrice31 has quit [Ping timeout: 250 seconds]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
jack_rabbit has joined #ruby
devan94_ has joined #ruby
patrick99e99 has quit [Ping timeout: 245 seconds]
_whitelogger___ has joined #ruby
Haiiro|Away is now known as Haiiro
gvenkat has joined #ruby
alem0lars has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
lukeholder has joined #ruby
softaco_s has joined #ruby
abuzze has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nrsk has quit [Remote host closed the connection]
x77686d has joined #ruby
lolmaus has joined #ruby
Haiiro is now known as Haiiro|Away
abuzze has quit [Ping timeout: 265 seconds]
arup_r_ has joined #ruby
gvenkat has quit [Quit: Leaving]
codecop has joined #ruby
SouL has joined #ruby
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
bal has joined #ruby
xymbol has joined #ruby
arup_r has quit [Ping timeout: 265 seconds]
rdark has joined #ruby
devan94_ has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
reinaldob has joined #ruby
nrsk has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
bthesorceror has quit [Ping timeout: 240 seconds]
icebourg_ has quit []
Deejay has joined #ruby
nrsk has joined #ruby
Deejay is now known as Guest57284
Photism has quit [Quit: Leaving]
tejas has joined #ruby
dx7 has quit [Remote host closed the connection]
gja has quit [Ping timeout: 258 seconds]
reinaldob has quit [Ping timeout: 255 seconds]
dx7_ has joined #ruby
jimbach has joined #ruby
_whitelogger___ has joined #ruby
ghr has joined #ruby
dx7_ has quit [Remote host closed the connection]
vinleod has joined #ruby
matchaw_ has quit [Ping timeout: 272 seconds]
bmurt has quit []
Macaveli has joined #ruby
agent_white has quit [Ping timeout: 255 seconds]
davasaurous has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
jimbach has quit [Ping timeout: 240 seconds]
agent_white has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
KC9YDN has joined #ruby
SpaceKookie has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
_whitelogger___ has joined #ruby
bmurt has joined #ruby
bmurt has quit [Client Quit]
bmurt has joined #ruby
bmurt has quit [Client Quit]
kiely is now known as kiely_elsewhere
SpaceKookie has quit [Ping timeout: 260 seconds]
_whitelogger___ has joined #ruby
srnty has joined #ruby
klaut has joined #ruby
softaco_s has quit [Remote host closed the connection]
tejas has quit [Ping timeout: 255 seconds]
srnty has quit [Remote host closed the connection]
Morkel has joined #ruby
SpaceKookie has joined #ruby
backsorry has quit [Remote host closed the connection]
awestroke has joined #ruby
nonks has joined #ruby
abuzze has joined #ruby
echevemaster has quit [Quit: Leaving]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
mistermocha has quit [Remote host closed the connection]
OffTheRails has joined #ruby
oinkon has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
<arup_r_> Why the below is giving 8 ? I am expecting it to give as 2
<arup_r_> >> ((17 - 1 ) / 4 * 2) || 0
<eval-in__> arup_r_ => 8 (https://eval.in/206526)
<sevenseacat> basic mathematics?
<havenwood> >> 16 / 4 * 2
elektronaut has joined #ruby
<eval-in__> havenwood => 8 (https://eval.in/206527)
lampd1 has joined #ruby
<arup_r_> >> (2 - 1 ) / 4 * 2 || 0
<eval-in__> arup_r_ => 0 (https://eval.in/206528)
jheg has joined #ruby
<arup_r_> >> (2 - 1 ) / 4 * 2 || 50
<eval-in__> arup_r_ => 0 (https://eval.in/206529)
jheg has quit [Client Quit]
<arup_r_> Ok.. Got it
fabrice31 has joined #ruby
backsorry has joined #ruby
User458764 has joined #ruby
Guest57284 has quit [Quit: Computer has gone to sleep.]
adac has joined #ruby
oinkon has quit [Ping timeout: 272 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
lampd1 has quit [Ping timeout: 260 seconds]
Synthbread has quit [Quit: Leaving]
OffTheRails has quit [Ping timeout: 246 seconds]
x77686d has quit [Quit: x77686d]
kwd has joined #ruby
gkd67 has joined #ruby
ptrrr has joined #ruby
Guest92908 has quit [Ping timeout: 250 seconds]
nonks has quit [Ping timeout: 255 seconds]
ptrrr has quit [Client Quit]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
pasv has joined #ruby
pasv is now known as Guest3814
doodlehaus has joined #ruby
IceDragon has quit [Quit: Space~~~]
gauke has joined #ruby
st1gma has joined #ruby
Xeago has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
mijicd has joined #ruby
larsam has quit [Quit: No Ping reply in 60 seconds.]
vshan has joined #ruby
doodlehaus has quit [Ping timeout: 258 seconds]
<vshan> hello
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
HelperW has joined #ruby
rbrs has joined #ruby
st1gma has quit [Quit: st1gma]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
vshan has quit [Client Quit]
nonks has joined #ruby
<havenwood> hi
anarang has joined #ruby
rshetty has quit [Remote host closed the connection]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
suffice_ has quit [Quit: leaving]
Soda has quit [Remote host closed the connection]
suffice has joined #ruby
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oinkon has joined #ruby
echooo1 has quit [Ping timeout: 250 seconds]
sandelius has joined #ruby
echooo has joined #ruby
timonv_ has joined #ruby
djbkd has quit [Remote host closed the connection]
SpaceKookie has quit [Ping timeout: 260 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
jimbach has joined #ruby
oinkon has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
nrsk has quit [Remote host closed the connection]
jacobat has joined #ruby
tylersmith has quit [Remote host closed the connection]
SpaceKookie has joined #ruby
tylersmith has joined #ruby
SouL has quit [Read error: No route to host]
MeMoCooL has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
nrsk has joined #ruby
ramfjord has joined #ruby
jimbach has quit [Ping timeout: 272 seconds]
bagackiz has joined #ruby
tylersmith has quit [Ping timeout: 258 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
ghr has joined #ruby
niftylettuce has quit [Quit: Connection closed for inactivity]
tvw has joined #ruby
ramfjord has quit [Ping timeout: 265 seconds]
<shevy> havenwood my brother!
<shevy> I am going to adopt you
<shevy> and keep you as my house mascot
<shevy> next to my old cat lady
<havenwood> shevy: you can't keep a cat lady as a pet!
<shevy> well she is more like the owner here
<havenwood> aha
<shevy> but I am allowed to use nearby spaces provided that food and lodging is otherwise ok
Takle has joined #ruby
terlar has joined #ruby
bmurt has quit []
ghr has quit [Ping timeout: 246 seconds]
MeMoCooL has quit []
MeMoCooL has joined #ruby
francisfish has joined #ruby
bricker`work has quit [Quit: leaving]
gtc has quit [Ping timeout: 258 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
gelbander has quit [Read error: Connection reset by peer]
gelbande_ has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
a_ has joined #ruby
arup_r_ has quit [Remote host closed the connection]
francisfish has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
arup_r has joined #ruby
MeMoCooL is now known as M3M0CooL
M3M0CooL has quit []
gtc has joined #ruby
rkalfane has joined #ruby
gelbande_ has left #ruby [#ruby]
M3M0CooL has joined #ruby
rkalfane has quit [Client Quit]
vt102 has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Ping timeout: 250 seconds]
Avahey has quit [Quit: Connection closed for inactivity]
doev has joined #ruby
M3M0CooL has quit [Client Quit]
alex88 has joined #ruby
swilr has joined #ruby
blackmes1 has joined #ruby
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
psy has quit [Quit: Leaving]
hmsimha has quit [Ping timeout: 272 seconds]
sigurding has joined #ruby
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<sigurding> good morning, is there any way to avoid the installation of ruby-dev when using JSON in ruby?
lolmaus has quit [Quit: Konversation terminated!]
jack_rabbit has quit [Ping timeout: 255 seconds]
Spleeze has quit [Ping timeout: 250 seconds]
justinmburrous has quit [Remote host closed the connection]
mkaesz has joined #ruby
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
blackmes1 has quit [Ping timeout: 255 seconds]
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
elektronaut has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
Takle has joined #ruby
yfeldblum has joined #ruby
rocknrollmarc has joined #ruby
rbrs has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
timonv_ has quit [Ping timeout: 255 seconds]
Spleeze has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
psy has joined #ruby
roolo has joined #ruby
Pupeno has joined #ruby
Silent__ has quit [Ping timeout: 250 seconds]
bweston92 has joined #ruby
vinleod has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Ping timeout: 264 seconds]
ta has quit [Remote host closed the connection]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
a_ has quit [Ping timeout: 260 seconds]
olivier_bK has joined #ruby
jimbach has joined #ruby
timonv^ has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
timonv_ has joined #ruby
kedare has joined #ruby
Deejay has joined #ruby
Deejay is now known as Guest28393
vinleod has joined #ruby
joonty has joined #ruby
timonv^ has joined #ruby
oinkon has joined #ruby
jbueza has joined #ruby
Pupeno_ has joined #ruby
jimbach has quit [Ping timeout: 265 seconds]
timonv_ has quit [Ping timeout: 272 seconds]
mityaz has quit [Ping timeout: 250 seconds]
mityaz has joined #ruby
oinkon has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
AFKGeek has joined #ruby
Pupeno has quit [Ping timeout: 265 seconds]
_whitelogger___ has joined #ruby
elaptics`away is now known as elaptics
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rippa has joined #ruby
northfurr has quit [Quit: northfurr]
r2i has joined #ruby
techsethi has joined #ruby
justinmburrous has joined #ruby
ki0 has joined #ruby
codezomb has joined #ruby
User458764 has quit [Ping timeout: 260 seconds]
decoponio has joined #ruby
einarj has joined #ruby
govg has quit [Remote host closed the connection]
rpag has joined #ruby
justinmburrous has quit [Ping timeout: 265 seconds]
techsethi has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Quit: Lost terminal]
rpag has quit [Ping timeout: 245 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
qba73 has joined #ruby
Guest28393 has quit [Quit: Computer has gone to sleep.]
bentanweihao has joined #ruby
ki0 has quit []
techsethi has joined #ruby
<bentanweihao> hi all!
timonv^ has quit [Remote host closed the connection]
dumdedum has joined #ruby
ki0 has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
andrewlio has joined #ruby
Atttwww has quit [Ping timeout: 258 seconds]
<r2i> hello
Spami has joined #ruby
SpaceKookie has joined #ruby
king313 has joined #ruby
king313 has joined #ruby
mengu has joined #ruby
startupality has joined #ruby
r2i has left #ruby [#ruby]
hellangel7 has joined #ruby
exile-bot-2 has joined #ruby
rshetty has joined #ruby
goodenough has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
startupality has quit [Client Quit]
lolmaus has joined #ruby
User458764 has joined #ruby
lkba has quit [Ping timeout: 258 seconds]
hamakn has joined #ruby
Scotteh_ has quit [Quit: Later, folks]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
ephemerian has joined #ruby
mrcloud has joined #ruby
<mrcloud> hello. Does anyone know how to check the number of arguments in slop?
elektronaut has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
rshetty_ has joined #ruby
ta has joined #ruby
_whitelogger___ has joined #ruby
shredding has joined #ruby
lampd1 has joined #ruby
WormDrink has joined #ruby
zeroNones has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
dumdedum has quit [Ping timeout: 244 seconds]
exile-bot-2 has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
eka has joined #ruby
_whitelogger___ has joined #ruby
exile-bot-2 has joined #ruby
lampd1 has quit [Ping timeout: 272 seconds]
ephemerian has quit [Quit: Leaving.]
exile-bot-2 has quit [Remote host closed the connection]
garbanotas has quit [Ping timeout: 240 seconds]
exile-bot-2 has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
bbloom_ has quit [Ping timeout: 258 seconds]
exile-bot-2 has joined #ruby
tejas has quit [Ping timeout: 260 seconds]
exile-bot-2 has quit [Remote host closed the connection]
timonv_ has joined #ruby
exile-bot-2 has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
maasha has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
arup_r has joined #ruby
tejas has joined #ruby
exile-bot-2 has joined #ruby
TejasDinkar has joined #ruby
gja has quit [Ping timeout: 272 seconds]
Aaaal has joined #ruby
sandelius has quit [Ping timeout: 260 seconds]
exile-bot-2 has quit [Remote host closed the connection]
<maasha> anyone up for a little challenge? -> rewrite String#scanf to be truly fast and awesome
exile-bot-2 has joined #ruby
doodlehaus has joined #ruby
rbrs has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
ephemerian has joined #ruby
exile-bot-2 has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
bbloom has joined #ruby
exile-bot-2 has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vinleod has quit [Quit: Computer has gone to sleep.]
AndroUser has joined #ruby
tejas has quit [Quit: This computer has gone to sleep]
TejasDinkar has quit [Quit: This computer has gone to sleep]
ta_ has joined #ruby
havenwood has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AndroUser has quit [Client Quit]
doodlehaus has quit [Ping timeout: 240 seconds]
x77686d has joined #ruby
x77686d has quit [Client Quit]
gja has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
vinleod has joined #ruby
tejas has joined #ruby
Xeago_ has joined #ruby
dumdedum has joined #ruby
jimbach has joined #ruby
ta has quit [Ping timeout: 258 seconds]
a_ has joined #ruby
noop has joined #ruby
mikecmpbll has joined #ruby
a_ has quit [Client Quit]
tejas has quit [Client Quit]
gja has quit [Client Quit]
tlarevo_ has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
rshetty_ has quit [Remote host closed the connection]
<rpag> mrcloud, ARGV.size ?
Soda has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
<mrcloud> rpag: *facepalm* ... Im stupid xD Thank you
rdark has quit [Quit: leaving]
tfitts has joined #ruby
<rpag> youre welcome
jimbach has quit [Ping timeout: 260 seconds]
tfitts has quit [Read error: Connection reset by peer]
tlarevo has quit [Ping timeout: 265 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
sevenseacat has quit [Remote host closed the connection]
mbuf has joined #ruby
lolmaus has quit [Remote host closed the connection]
lolmaus has joined #ruby
Axy has joined #ruby
oinkon has joined #ruby
ixti has joined #ruby
awestroke has quit [Remote host closed the connection]
exile-bot-2 has quit [Remote host closed the connection]
<mbuf> is there a recommended approach to archive log files created using Logger in Windows?
SpaceKookie has quit [Ping timeout: 260 seconds]
exile-bot-2 has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
oinkon has quit [Ping timeout: 258 seconds]
marr has joined #ruby
reinaldob has joined #ruby
SpaceKookie has joined #ruby
gja has joined #ruby
tejas has joined #ruby
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
ad_boot has joined #ruby
_izz_ has left #ruby [#ruby]
exile-bot-2 has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
reinaldob has quit [Ping timeout: 272 seconds]
startupality has joined #ruby
Takle has quit [Remote host closed the connection]
SpaceKookie has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
duncannz has quit [Remote host closed the connection]
tejas has quit [Quit: This computer has gone to sleep]
gja has quit [Quit: This computer has gone to sleep]
thsig has joined #ruby
<pontiki> mbuf: if you use the full set of parameters on Logger.new, you can roll log files automatically: http://www.rubydoc.info/stdlib/logger/Logger:initialize
<mbuf> pontiki, I am able to roll log files, but, I would like to take a dump of the log files, every day
<pontiki> what does that mean?
iinzg has quit [Ping timeout: 258 seconds]
<mbuf> pontiki, I have @logger = Logger.new(file, 10, 1024 * 1024)
<pontiki> ok?
<pontiki> are you talking about emulating linux's logrotate thing?
<mbuf> pontiki, so, I get about 10 logs, but, that keeps rotating right? like a circular buffer
duncannz has joined #ruby
<mbuf> pontiki, I want to take a snapshot of the 10 log files every day, zip them and store them to a different network folder (say)
<rpag> "Number of old log files to keep, or frequency of rotation (daily, weekly or monthly)."
sinkensabe has joined #ruby
backsorry has quit [Remote host closed the connection]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<pontiki> i don't know how one does that sort of thing on windows, sorry
tfitts has joined #ruby
<mbuf> rpag, keeping the old files will occupy disk space, I just want to take a copy of the log files, and copy them to a different folder, say a network drive
<mbuf> rpag, log rotation will override the log files, right?
rshetty has joined #ruby
<pontiki> if you use the numeric shift_age, yes
echooo1 has joined #ruby
<sigurding> good morning, is there any way to avoid the installation of ruby-dev when using JSON in ruby?
timonv_ has quit [Remote host closed the connection]
<pontiki> if you set it to 10, there will only ever be at most 11 log files (1 current, 10 old)
<rpag> sigurding, use a pure-ruby parser
iinzg has joined #ruby
<sigurding> rpag: which would be?
echooo has quit [Ping timeout: 260 seconds]
<rpag> maybe https://rubygems.org/gems/json_pure or google around
tejas has joined #ruby
gja has joined #ruby
<rpag> json lib ships with ruby btw so you shouldnt need ruby-dev unless youre installing the gem and compiling C srcs
AlexRussia has quit [Ping timeout: 240 seconds]
gja has joined #ruby
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<sigurding> rpag: ok from which version on?
<rpag> 1.9+ as far as i know
jimmyy has quit [Ping timeout: 240 seconds]
mrcloud has quit [Quit: Page closed]
startupality has quit [Quit: startupality]
tejas has quit [Client Quit]
gja has quit [Client Quit]
workmad3 has joined #ruby
gkra has quit [Ping timeout: 244 seconds]
Pupeno_ has quit [Quit: Leaving...]
choke has quit [Ping timeout: 260 seconds]
iiinzg has joined #ruby
hamakn has quit [Remote host closed the connection]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
jimmyy has joined #ruby
jimmyy has quit [Max SendQ exceeded]
ujjain has quit [Changing host]
ujjain has joined #ruby
rossgeesman has joined #ruby
jimmyy has joined #ruby
<sigurding> rpag: hm I am using require “json” but it forces me to install make/ruby-dev on ubuntu, when doing bundle install
bayed has joined #ruby
_whitelogger___ has joined #ruby
<workmad3> sigurding: it sounds like you've got one of them in your Gemfile for this project
Cork has quit [Ping timeout: 248 seconds]
iinzg has quit [Ping timeout: 260 seconds]
xiq_ has quit [Read error: Connection reset by peer]
xiq__ has joined #ruby
<pontiki> workmad3: o/
<workmad3> pontiki: </sarcasm>? ;)
gja has joined #ruby
tejas has joined #ruby
cibs has quit [Ping timeout: 276 seconds]
<pontiki> well, no, not in that case :/
<rpag> sigurding, yes it sounds like what workmad3 says, you've got "json" gem in your Gemfile
minecoins_ has joined #ruby
rbrs has quit [Ping timeout: 255 seconds]
Wolland has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<tmoore> sigurding: why don't you want to install ruby-dev?
rshetty has quit [Read error: Connection reset by peer]
top4o has joined #ruby
<sigurding> tmoore: I like it, when my gems have a minimum footprint
Cork has joined #ruby
startupality has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
rossgeesman has quit [Ping timeout: 255 seconds]
kwd has quit [Read error: Connection reset by peer]
rshetty_ has quit [Remote host closed the connection]
echooo has joined #ruby
kwd has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
fella7s has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
timonv_ has joined #ruby
KC9YDN has quit [Ping timeout: 255 seconds]
patrick99e99 has joined #ruby
exile-bot-2 has joined #ruby
echooo1 has quit [Ping timeout: 244 seconds]
_whitelogger___ has joined #ruby
User458764 has quit [Ping timeout: 255 seconds]
echooo1 has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
bentanweihao has quit [Remote host closed the connection]
decoponio has quit [Read error: Connection reset by peer]
minecoins has quit [*.net *.split]
eshy has quit [*.net *.split]
minecoins_ is now known as minecoins
sigurding has quit [Quit: sigurding]
alem0lars has quit [Ping timeout: 272 seconds]
echooo has quit [Ping timeout: 260 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
jimbach has joined #ruby
decoponio has joined #ruby
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
exile-bot-2 has quit [Ping timeout: 240 seconds]
bulters has joined #ruby
arup_r has quit [Remote host closed the connection]
<bulters> hi! Question: I want to define a module (empty) based on a string (say "MyNamespace")
eshy has joined #ruby
agjacome has joined #ruby
drPoggs has quit [Ping timeout: 260 seconds]
jimbach has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
<bulters> and later on execute some code in that module based on the same string... any ideas how to pull this off without resorting to eval(all_the_things)?
drPoggs has joined #ruby
bMalum has joined #ruby
startupality has quit [Quit: startupality]
Takle has joined #ruby
devan94_ has joined #ruby
startupality has joined #ruby
cibs has joined #ruby
_whitelogger___ has joined #ruby
duncannz has quit [Remote host closed the connection]
<rpag> const_set(str, Module.new {}) im not sure about the last part
choke has joined #ruby
Macaveli has quit [Ping timeout: 260 seconds]
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
<rpag> maybe module_eval
ltd has joined #ruby
GeorgesLeYeti has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
GeorgesLeYeti has quit [Read error: Connection reset by peer]
GeorgesLeYeti has joined #ruby
hamakn has joined #ruby
a_ has joined #ruby
<a_> array.find(:predicate?) # returns the first element where element.predicate? is true -- how can I best return the first element where predicate?(element) is true, instead ?
mengu has joined #ruby
mengu has joined #ruby
<rpag> use a block
oinkon has joined #ruby
<a_> rpag: wasn't sure if there was a shorter way of doing it
<aep> dependency.rb:298:in `to_specs': Could not find 'bundler' (>= 0) among 14 total gem(s) (Gem::LoadError)
<aep> any idea why i get this when starting sinatra from systemd instead of shell?
<rpag> there's not
_whitelogger___ has joined #ruby
<aep> ruby is from the system, bundler as a gem
Takle_ has quit [Remote host closed the connection]
<aep> so i added ~/.gem/ruby/2.1.0/bin/ to the path
<tmoore> a_: sorry I think that should be array.find(&method(:predicate?))
Guest32120 has quit [Ping timeout: 260 seconds]
leslie has joined #ruby
<tmoore> aep ~ is probably a different directory for you than the user systemd is running as (presumably root)
bMalum has quit [Ping timeout: 245 seconds]
<lolmaus> Is there syntactic sugar to reduce "foo = defined? bar ? bar ? baz" to something like "foo = bar || baz", that would not fail if "bar" is not defined?
<aep> tmoore: both root
<aep> oh wait, systemd might screw up HOME
<aep> that's probably it
<workmad3> lolmaus: don't write code that condititionally defines local variables? :/
<a_> tmoore: awesome - how does that work?
doodlehaus has joined #ruby
<tmoore> method(:predicate?) searches for a method named :predicate? in the current scope
timonv_ has quit [Ping timeout: 244 seconds]
<tmoore> you can also call it on an object some_object.method(:foo) looks for a method called :foo on some_object
<tmoore> it returns a proc that calls the method on whatever arguments you pass it
<tmoore> then &proc converts the proc to a block
<aep> yep that was it, thanks tmoore ~
<tmoore> no worries... glad it's working :-)
<workmad3> tmoore: it returns a Method object rather than a Proc btw
<bulters> rpag: thanks, will try it out
justinmburrous has joined #ruby
<tmoore> ah right yes thanks workmad3
bMalum has joined #ruby
<rpag> what does '~' on its own mean?
<workmad3> rpag: binary not iirc,
<workmad3> tmoore: or, if you wanted to unify the terms, procs and methods are both callables ;)
<tmoore> and &object actually calls object.to_proc and converts that to a block I think
Muon has joined #ruby
<rpag> i mean on IRC :)
<lolmaus> workmad3: i was gonna use it in Rails for instance variables defined from controller. And Rails would not crash on an undefined variable somehow. E.g. `puts @undefined_var || "foo"` woult print "foo" in Rails.
<rpag> instance variable look up doesnt raise a NameError just returns nil
<rpag> aep, what does '~' mean as a smiley?
<workmad3> lolmaus: that's ruby not throwing exceptions on undefined instance variables
<workmad3> lolmaus: which has always been the case
<lolmaus> workmad3: rpag: oooh, thank you.
<workmad3> lolmaus: that's not rails
charliesome has joined #ruby
<workmad3> rpag: no idea on IRC ;)
charliesome has quit [Quit: zzz]
rdark has joined #ruby
Takle has joined #ruby
gkra has joined #ruby
<aep> rpag: i mistyped !
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<rpag> oh okay, i seen someone else do it and i presumed it was a thing
<workmad3> aep: y u no use a mac? :(
<aep> probably they mistyped :P
blackmes1 has quit [Ping timeout: 245 seconds]
<workmad3> aep: it's great how the specific typos people make can reveal stuff about their kb layout and their hardware ;)
<workmad3> aep: the top-left key of the main block on all the macs I've seen has been the crazy § character rather than a ~
<rpag> §
<aep> workmad3: because i work on embedded devices. with ruby. its awesome
<workmad3> aep: :D
<aep> actually i have a mac next to me and the layout is the same
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<rpag> ± and § here
Muon has left #ruby ["Dimension Door."]
fabrice31 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
GeorgesLeYeti has joined #ruby
GeorgesLeYeti has quit [Ping timeout: 260 seconds]
Aova has quit [Quit: See ya]
_whitelogger___ has joined #ruby
<toretore> §± is where it's at
<workmad3> aep: aha, a different kb layout :)
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
Takle has quit [Read error: Connection reset by peer]
<aep> dunno. inherited the thing. i assumed its standard
Takle has joined #ruby
kaspergrubbe has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<tobiasvl> wow, caret on 6. I guess the NO keyboard is pretty weird then, we have & there.
jottr has joined #ruby
<workmad3> tobiasvl: it's ^ on 6 and & on 7 for british
iiinzg has quit [Ping timeout: 272 seconds]
<workmad3> also, I have 3 different ways of producing §... §, alt+§, and alt+6...
fabrice31 has quit [Ping timeout: 260 seconds]
timonv_ has joined #ruby
doev has quit [Quit: Verlassend]
kaspergrubbe_ has quit [Ping timeout: 240 seconds]
St_Marx has quit [Ping timeout: 264 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
tejas has quit [Quit: This computer has gone to sleep]
ctp has joined #ruby
kantakt has joined #ruby
alem0lars has joined #ruby
CaptainHeavy has joined #ruby
zarubin has joined #ruby
Xeago_ has joined #ruby
fabrice31 has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tokik has quit [Ping timeout: 255 seconds]
horrror has joined #ruby
horrror is now known as hrrz
workmad3 is now known as wm3|away
<hrrz> hey, i'm trying to make a postgres query using ruby, i'm doing an "where in" query but i fail to pass an array
<hrrz> here's my loc: @conn.exec("select * from tags where lower(title) in ($1)", keys)
<hrrz> as keys = ["title1", "title2"] etc..
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
tejas has joined #ruby
Xeago has quit [Ping timeout: 258 seconds]
kwd_ has joined #ruby
<hrrz> PG.connect object
nrsk has quit [Ping timeout: 256 seconds]
<toretore> hrrz: what is @conn ?
nrsk has joined #ruby
<toretore> from where?
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jacobat has quit [Ping timeout: 240 seconds]
kwd has quit [Read error: Connection reset by peer]
alem0lars has quit [Quit: AFK..]
_whitelogger___ has joined #ruby
sk87 has joined #ruby
jhass|off is now known as jhass
fella5s has joined #ruby
lampd1 has joined #ruby
Aova has quit [Remote host closed the connection]
roolo has quit [Remote host closed the connection]
renderful has joined #ruby
roolo has joined #ruby
Aova has joined #ruby
zeroNones has joined #ruby
<hrrz> toretore: pg gem
<Aova> morning :)
NoNMaDDeN has quit [Remote host closed the connection]
zarubin has quit [Quit: Leaving.]
zarubin has joined #ruby
reinaldob has joined #ruby
psy has quit [Quit: Leaving]
_whitelogger___ has joined #ruby
lampd1 has quit [Ping timeout: 265 seconds]
<toretore> hrrz: well, first of all, it looks like it expects an array of params as its second argument
<toretore> so your array should be the first element of this array
roolo has quit [Ping timeout: 260 seconds]
jimbach has joined #ruby
<hrrz> so how can i pass all the elements of the array?
renderful has quit [Ping timeout: 260 seconds]
zarubin has quit [Client Quit]
zarubin has joined #ruby
wm3|away is now known as workmad3
wethu has quit [Quit: This computer has gone to sleep]
shredding has quit [Quit: shredding]
Soda has quit [Remote host closed the connection]
Aova has quit [Quit: See ya]
jottr has quit [Ping timeout: 255 seconds]
jhass is now known as jhass|off
Aova has joined #ruby
St_Marx has joined #ruby
jimbach has quit [Ping timeout: 265 seconds]
nrsk has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
anaeem___ has joined #ruby
anaeem___ has quit [Remote host closed the connection]
zarubin has quit [Quit: Leaving.]
anaeem1_ has joined #ruby
<maasha> What is the fastest way to parse a CSV table so that data types are automagically converted? ie. not everything as strings, but integers as Fixnum and floats as Float etc.?
<maasha> It turns out to be non-trivial
anaeem1 has quit [Read error: Connection reset by peer]
<maasha> scanf is no-go -> too slow. Same with Integer and Float.
doodlehaus has quit [Remote host closed the connection]
ad_boot has quit [Quit: ad_boot]
alem0lars has joined #ruby
<workmad3> maasha: I believe you can pass an array of converters to CSV.new
zarubin has joined #ruby
startupality has quit [Quit: startupality]
jhass|off is now known as jhass
<workmad3> maasha: I believe what happens is that CSV attempts to use each converter in turn and the first non-error is determined as the converted result... but I'm not confident on that so you should probably check it out ;)
startupality has joined #ruby
ferr has joined #ruby
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
Takle has quit [Remote host closed the connection]
iinzg has joined #ruby
mbuf has left #ruby ["Leaving"]
<workmad3> maasha: however, if it's a case of the conversions are too slow... not sure what to suggest there... you're dealing with string-parsing operations after all
<maasha> workmad3: I suppose what I am after is an updated version of scanf!
tejas has quit [Quit: This computer has gone to sleep]
gja has quit [Quit: This computer has gone to sleep]
<maasha> like the C version of sscanf
<tobiasvl> yeah, I was interpreting the problem as it being too slow to check for type in every field, which is not surprising, so converters should help with that (it'll know what converter to apply to each field)
<hrrz> toretore: how can i pass the entire array? u know?
gja has joined #ruby
charliesome has joined #ruby
tejas has joined #ruby
gja has joined #ruby
tejas has joined #ruby
gja has quit [Changing host]
autonomousdev has joined #ruby
<maasha> hrrz: you need a ruby book
wethu has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
<hrrz> maasha: how about giving a tip rather than a useless comment?
<maasha> useless comment? - I'd bet you that many people in here would say this is the best piece of advice you will get today.
<workmad3> maasha: looks like your tips aren't desired anymore :P
nrsk has joined #ruby
<maasha> hrrz: I can suggest you a book, if you like.
Takle has joined #ruby
<tobiasvl> !book
<tobiasvl> BOOK IT
<hrrz> maasha: you probably feel very good with yourself
<workmad3> hrrz: seeing as it's the pg gem you're dealing with btw, it may behoove you to look up the docs for that gem
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
lw has joined #ruby
<workmad3> hrrz: if you're looking for specifics, I'd suggest you look through the gem docs for how to pass arrays to prepared statements
jacobat has joined #ruby
x77686d has joined #ruby
x77686d has quit [Client Quit]
<workmad3> hrrz: which is another way of saying 'read some stuff about it' like maasha's suggestion, but saying 'read about the thing you're using' rather than 'read about ruby' ;)
<a_> tmoore: a.find(&method(:predicate?)) <- why does #call get invoked, as Method expects?
<hrrz> workmad3: it is a bit more useful
<tmoore> a_: so the & prefix converts it to a block, passed to find
<workmad3> tmoore: & also calls .to_proc btw
<tmoore> yep as I mentioned above :-)
psy has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
<workmad3> tmoore: so I'm gonna guess that Method#to_proc produces a proc equivalent to proc{|*args| method(:whatever).call(*args)} ;)
zeroNones has joined #ruby
wethu has quit [Client Quit]
fella6s has joined #ruby
<tmoore> then inside find, when it yields to the block, it calls the proc
<workmad3> tmoore: which, if true, makes it clearer how it works :)
<hrrz> and it has less pretentious %
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
Wolland has quit [Remote host closed the connection]
<tmoore> sounds about right
tvw has quit []
fella5s has quit [Ping timeout: 260 seconds]
hamakn has quit [Remote host closed the connection]
ad_boot has joined #ruby
startupality has quit [Quit: startupality]
<workmad3> hrrz: btw, getting sarky and insulting back to regulars who give fairly normal advice to a question that, taken on its own, is a fairly trivial ruby question is likely to make people rather snappy and grumpy ;)
<txdv> >> 22 ** 22
<eval-in__> txdv => 341427877364219557396646723584 (https://eval.in/206605)
<txdv> >> 22 ** 22 ** 22
<eval-in__> txdv => /tmp/execpad-0ffdb13e3de7/source-0ffdb13e3de7:2: warning: in a**b, b may be too big ... (https://eval.in/206606)
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<hrrz> workmad3: we can argue on the 'normal advice' he suggested. But this isn't a fairly trivial ruby question, i'm sorry. It is a a PG gem question that by it docs seems that it has no normal way of receiving array as input, and i asked maybe there's a ruby way to manipulate the input so it fits the docs
<workmad3> hrrz: yes... but that context was over 30 minutes ago in the scrollback
<hrrz> so ?
<workmad3> hrrz: so in isolation, your question was trivial
<workmad3> hrrz: and that's the question that maasha answered with 'maybe you should read up on ruby a bit'
<workmad3> hrrz: i.e. your repeat of the question didn't mention that it was pg... and that context was quite distant temporally
jxf has quit [Ping timeout: 244 seconds]
<hrrz> my secondary question was a follow up question and i was directing it to the person who helped me at the begining
gja has quit [Quit: This computer has gone to sleep]
startupality has joined #ruby
fella7s has joined #ruby
tejas has quit [Quit: This computer has gone to sleep]
<hrrz> the 'maybe you should read up on ruby a bit' answer was unrelated, sarky, snappy and grumpy without even understanding the context
_whitelogger___ has joined #ruby
<workmad3> hrrz: right... but it did come after an almost identical, undirected, context-free repeat of the same question about 10 minutes previously
tkuchiki has joined #ruby
justinmburrous has joined #ruby
fella5s has joined #ruby
<DefV> aww
<DefV> I missed all the drama?
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<workmad3> hrrz: and hell, I'm not trying to get into a big argument here... just pointing out that getting pretty insulting back isn't exactly going to ingratiate you with people :P
<rpag> DefV, no, you can scroll back!
<tobiasvl> hey guys, what did I miss
<DefV> I live in the moment!
<rpag> haha
otakbeku has joined #ruby
<txdv> I thought everyone programming ruby is a nice person
jespada has joined #ruby
<rpag> tobiasvl, something about postgres & ruby
<hrrz> me too
roolo has joined #ruby
<txdv> but then I remembered that humans are assholes
<workmad3> txdv: nah, just the ones that the @hats haven't kicked out of here ;)
<workmad3> txdv: or the ones like me who hide a towering, arrogant ego behind a thin veneer of civility ;)
<txdv> everyone is an selfish asshole
<workmad3> txdv: s/an/a/
fella7s has quit [Ping timeout: 240 seconds]
<txdv> Good luck having a hang out with 881 people :D
<rpag> workmad3, hahahaha
<txdv> yeah, an asshole, a selfish asshole
<workmad3> rpag: that would require people to put on clothes...
<txdv> If i type it out loud while thinking, I get it sometimes wrong.
<rpag> when is irc gonna move to google hangouts & webcam
<rpag> i think thats part of the problem
rbrs has joined #ruby
tkuchiki has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
justinmburrous has quit [Ping timeout: 244 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
bMalum has quit [Quit: bMalum]
<workmad3> rpag: you could always go and set up a public 'ruby drop-in' hangout ;)
<workmad3> rpag: people join, ask a ruby question, insult you a bit and then leave ;)
fandi has quit [Remote host closed the connection]
<rpag> sounds great! on it!
otakbeku has quit [Ping timeout: 272 seconds]
larissa has joined #ruby
fella5s has quit [Ping timeout: 260 seconds]
<rpag> read all of this: http://www.seebs.net/c/c_tcn4e.html , because #bored
<workmad3> rpag: I expect to see it set up after lunch ;)
blueOxigen has quit [Read error: Connection reset by peer]
NoNMaDDeN has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
<bulters> i love the insulting part
bluOxigen has joined #ruby
<bulters> would be nice to be on the receiving end of said insults
<bulters> as some kind of psychological hardening scheme... maybe have people pay to be an insultee or something
<rpag> if you want to be insulted like a pro, join #c
<rpag> #ruby is usually way more mellow :)
fella5s has joined #ruby
<bulters> rpag: my c flamebaits are a bit rusty
hrrz has left #ruby [#ruby]
<bulters> all I remember from uni is that using void*'s is considered a best-practice to do everything
txdv has quit [Ping timeout: 244 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
Takle has quit [Remote host closed the connection]
nfk has joined #ruby
doodlehaus has joined #ruby
Xeago has joined #ruby
Dwarf has quit [Ping timeout: 260 seconds]
ferr has quit [Ping timeout: 240 seconds]
fella6s has joined #ruby
banister has joined #ruby
GeorgesLeYeti has quit [Ping timeout: 246 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
fella5s has quit [Ping timeout: 250 seconds]
devan94_ has quit [Remote host closed the connection]
starkhalo has joined #ruby
Xeago_ has quit [Ping timeout: 272 seconds]
Aaaal has quit [Quit: Aaaal]
nonks has quit [Ping timeout: 240 seconds]
<workmad3> bulters: go to #c and suggest that it's best practice to roll your own memory management by grabbing a huge void* array on program startup and then simply dealing with that internally ;)
Akagi201 has joined #ruby
Akagi201 has quit [Remote host closed the connection]
<rpag> or just say 'hello'
<rpag> that usually does it
<workmad3> heh
jimbach has joined #ruby
<workmad3> I've not been to #c
<rpag> ah im overreacting of course
<bulters> wouldn't it be way nicer to suggest that you require help devising a partitioning scheme for said block of memory into chunks large enough to hold one result set from a not-to-be-named large scientific experiment which involves throwing really small things against each other
Dwarf has joined #ruby
Aaaal has joined #ruby
Akagi201_ has joined #ruby
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<bulters> (disclaimer: i worked for an institution that contributes to one of said experiments)
GeorgesLeYeti has joined #ruby
tlarevo has joined #ruby
tlarevo_ has quit [Ping timeout: 260 seconds]
<bulters> damn.. #c actually has "Be civil" in the topic...
<bulters> Guess #ruby consists of savages
qmfnp has joined #ruby
jimbach has quit [Ping timeout: 272 seconds]
GeorgesLeYeti has quit [Client Quit]
KC9YDN has quit [Read error: Connection reset by peer]
{xenomorph} has quit [Ping timeout: 260 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
havenwood has joined #ruby
<workmad3> bulters: #rubyonrails has MINASWAN in the /topic
<workmad3> bulters: but not here, for some reason :(
<workmad3> or #ruby-lang
kantakt has quit []
{xenomorph} has joined #ruby
patrick99e99 has joined #ruby
fsapo has joined #ruby
<workmad3> bulters: of course, you can be civil while also being a pretentious, arrogant jackass ;)
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
kantakt has joined #ruby
northfurr has joined #ruby
nrsk has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doodlehaus has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
VanillaGoat_ has joined #ruby
sepp2k has joined #ruby
Deejay has joined #ruby
ldnunes has joined #ruby
Deejay is now known as Guest79882
patrick99e99 has quit [Ping timeout: 260 seconds]
gja has joined #ruby
tejas has joined #ruby
Aaaal has quit [Ping timeout: 240 seconds]
VanillaGoat__ has quit [Ping timeout: 265 seconds]
gauke_ has joined #ruby
luckyruby has quit [Remote host closed the connection]
gauke has quit [Ping timeout: 245 seconds]
gauke_ is now known as gauke
jhass is now known as jhass|off
spyderman4g63 has joined #ruby
wethu has joined #ruby
<bulters> workmad3: isn't that a requirement to 'contribute' on #rubyonrails ???
<workmad3> bulters: by 'contribute' do you mean 'answer questions from ignorant peons'?
bluenemo has joined #ruby
<bulters> workmad3: yes
<workmad3> bulters: well, I'm there right now doing just that ;)
bluenemo has joined #ruby
dblessing has joined #ruby
Guest79882 has quit [Quit: Computer has gone to sleep.]
<bulters> also lurking on #haskell, but I'm afraid to contribute since I don't have a Phd....
<bulters> let me help you out with that ;-)
qmfnp has joined #ruby
_whitelogger___ has joined #ruby
Deejay_ has joined #ruby
jacobat has quit [Ping timeout: 272 seconds]
gja has quit [Quit: This computer has gone to sleep]
Takle has joined #ruby
tejas has quit [Quit: This computer has gone to sleep]
CaptainHeavy has quit [Ping timeout: 255 seconds]
jhass|off is now known as jhass
aclearman037 has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
doodlehaus has joined #ruby
jacobat has joined #ruby
SpaceKookie has joined #ruby
larissa has quit [Quit: Leaving]
krz has quit [Quit: WeeChat 1.0.1]
fantazo has joined #ruby
doodlehaus has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
aef has joined #ruby
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
max96at|off is now known as max96at
tejas has joined #ruby
rshetty has quit [Remote host closed the connection]
User458764 has quit [Ping timeout: 255 seconds]
paulfm has joined #ruby
larissa has joined #ruby
<mostlybadfly> Hey I'm an ignorant peon:p
gja has joined #ruby
shredding has joined #ruby
<bulters> same here
<bulters> I use Rails for work...
<workmad3> mostlybadfly: ok, stand right there while I'm rude and condescending to you ;)
spastorino has joined #ruby
<bulters> but get paid to do research on other stuff ;-)
<mostlybadfly> I'm trying to get to a place where I can
<mostlybadfly> Lol workmad3
<bulters> mostlybadfly: join a small company, and code your ass up the chain, give yourself a nice title and job description which involves research and trying stuff out to gain a competitive advantage...
jimmyy has quit [Ping timeout: 260 seconds]
jimmyy has joined #ruby
<mostlybadfly> Yeah I need to get outta here
grzywacz has joined #ruby
Squarepy has joined #ruby
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mostlybadfly> bulters: been trying to find a job that'll let me do just that
<zwischenzug> hello, i'm trying to do byte manipulation in ruby and it's starting to drive me crazy....wondering if someone could help me out
<mostlybadfly> Seems like here all they ever go with are bootcamp grads or the many people with prior experience
justinmburrous has joined #ruby
<bulters> zwischenzug: what are you trying to accomplish?
<zwischenzug> i'm trying to implement the following: A = MSB(64, B) ^ t where t = (n*j)+i. a is a bitstring, and t is an int
northfurr has quit [Quit: northfurr]
startupality has joined #ruby
<zwischenzug> and i'm trying to xor them together
<banister> zwischenzug nerd
phutchins has joined #ruby
<zwischenzug> so far i have (caution: this is really ugly): a = b.slice(0..6) + [(b[7].ord ^ t).to_s(16)].pack("h*")
kwd_ has quit [Read error: Connection reset by peer]
{xenomorph} has quit [Ping timeout: 260 seconds]
<zwischenzug> sorry.....it's actually: a = b.slice(0..6) + [(b[7].ord ^ t).to_s(16)].pack("H*")
endzyme has joined #ruby
<zwischenzug> but this doesn't work, because at the end, if the hex string is single digit, and it gets packed into H*, the endian-ness gets flipped
<zwischenzug> >> ["9"].pack("H*").unpack("H*")
<eval-in__> zwischenzug => ["90"] (https://eval.in/206618)
<zwischenzug> >> ["a9"].pack("H*").unpack("H*")
<eval-in__> zwischenzug => ["a9"] (https://eval.in/206619)
<zwischenzug> that doesn't work, because it breaks double-digit hex strings
{xenomorph} has joined #ruby
jhass is now known as jhass|off
<eval-in__> zwischenzug => ["09"] (https://eval.in/206620)
<zwischenzug> >> ["9"].pack("h*").unpack("H*")
<bulters> use h*?
<eval-in__> zwischenzug => ["9a"] (https://eval.in/206621)
doev has joined #ruby
<zwischenzug> >> ["a9"].pack("h*").unpack("H*")
<endzyme> are there any good materials online around best practices for installing ruby based applications on an OS. Example, looking to package a grape-api app so it can be installed and startable as a service. Currently using fpm but having concerns on how required gems get installed and included.
justinmburrous has quit [Ping timeout: 260 seconds]
<workmad3> endzyme: you could look up omnibus
techsethi has quit [Quit: techsethi]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<workmad3> endzyme: pretty much, yeah
benzrf|offline is now known as benzrf
<zwischenzug> i need something that returns ["09"] and ["a9"] respectively (or an entirely different approach since this seems like a huge hack)
<endzyme> workmad3: have you used it before? Im curious if it's hard to maintain
jasooon has joined #ruby
<workmad3> endzyme: I've not created my own omnibus packages... I've installed the chef packages, which are omnibus and it makes installation pretty damn easy :)
<workmad3> endzyme: afaik, the creation of the packages is geared around being scriptable pretty easily though, so it shouldn't be problematic to maintain
<endzyme> workmad3: cool - thanks! I'll poke around -
Xeago_ has joined #ruby
ferr has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
a_ has quit [Ping timeout: 272 seconds]
tejas has quit [Quit: This computer has gone to sleep]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
kwd has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
rshetty has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
SpaceKookie has joined #ruby
livingstn has joined #ruby
Xeago has quit [Ping timeout: 255 seconds]
Aaaal has joined #ruby
{xenomorph} has joined #ruby
sk87 has joined #ruby
northfurr has joined #ruby
txdv has joined #ruby
jasooon has quit [Ping timeout: 255 seconds]
jimmyhoughjr has joined #ruby
<machty> sanity check: does Ruby internally trap all (non-terminating) signals, and _then_ check if the running ruby code has registered trap handlers?
jhass|off is now known as jhass
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<machty> i'm asking because i just realized that even if you don't trap a signal, a SignalException will be raised
<machty> i was previously expecting the process to terminate if you didn't trap it for, say, SIGINT
<machty> but Ruby gives you one last chance to catch it as a raised exception
<machty> sorry, talking out loud here, it's my ah ha moment of the day
jimbach has joined #ruby
bal has quit [Quit: bal]
SpaceKookie has quit [Ping timeout: 260 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
autonomousdev has joined #ruby
einarj_ has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
techsethi has joined #ruby
bal has joined #ruby
einarj has quit [Read error: Connection reset by peer]
jimbach has quit [Ping timeout: 260 seconds]
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
AlexRussia has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
lampd1 has joined #ruby
Scorchin has joined #ruby
Takle has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
mosez has quit [Ping timeout: 245 seconds]
SpaceKookie has joined #ruby
jimmyhoughjr has joined #ruby
oinkon has joined #ruby
ferr has quit [Ping timeout: 265 seconds]
qmfnp has joined #ruby
ferr has joined #ruby
xymbol has quit [Quit: Be back later ...]
Aaaal has quit [Quit: Aaaal]
xymbol has joined #ruby
dawkirst has joined #ruby
siwica has joined #ruby
lampd1 has quit [Ping timeout: 255 seconds]
<siwica> what the most elegant way of iterating from the 2nd to the (n-2)th element of a collection which has n elements?
cassianoleal has joined #ruby
benzrf is now known as benzrf|offline
<banister> siwica what kind of collection
workmad3 is now known as wm3|away
<banister> siwica but typically: [1..-2]
geekbri has joined #ruby
xymbol has quit [Ping timeout: 245 seconds]
gja has joined #ruby
gja has joined #ruby
tejas has joined #ruby
<siwica> oh sorry. any that mixes in enumerable
tejas has quit [Changing host]
tejas has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
mkaesz has joined #ruby
mkaesz has quit [Remote host closed the connection]
anaeem1 has quit [Remote host closed the connection]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
tier has joined #ruby
tlarevo has quit [Ping timeout: 240 seconds]
coderdad has joined #ruby
postmodern has quit [Quit: Leaving]
benzrf|offline is now known as benzrf
anarang has quit [Quit: Leaving]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mkaesz has quit [Ping timeout: 272 seconds]
jacobat_ has joined #ruby
endzyme has left #ruby [#ruby]
sevenseacat has joined #ruby
drkyro has joined #ruby
tlarevo has joined #ruby
beef-wellington has joined #ruby
jacobat has quit [Ping timeout: 246 seconds]
hmsimha has joined #ruby
tkuchiki has joined #ruby
twohlix has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
toretore has quit [Ping timeout: 272 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
tokik has joined #ruby
taptapdan has quit [Quit: taptapdan]
allcentu1 has joined #ruby
luckyrub_ has joined #ruby
lw has quit [Ping timeout: 246 seconds]
mosez has joined #ruby
sailias has joined #ruby
hamakn has joined #ruby
timonv_ has quit [Remote host closed the connection]
jacobat_ has quit [Ping timeout: 255 seconds]
_whitelogger___ has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com)]
jimbach has joined #ruby
nonks has joined #ruby
rbrs has quit [Remote host closed the connection]
tourne has joined #ruby
doodlehaus has joined #ruby
C0deMaver1ck_ is now known as C0deMaver1ck
top4o has quit [Ping timeout: 265 seconds]
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
St_Marx has joined #ruby
{xenomorph} has quit [Ping timeout: 260 seconds]
bulters has quit [Ping timeout: 272 seconds]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerius has joined #ruby
nrsk has quit [Ping timeout: 256 seconds]
timonv_ has joined #ruby
jerius has quit [Client Quit]
jerius has joined #ruby
nonks has quit [Ping timeout: 240 seconds]
{xenomorph} has joined #ruby
arup_r has quit []
gwb3_ has joined #ruby
rshetty has quit [Remote host closed the connection]
gwb3_ has left #ruby [#ruby]
St_Marx has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
gwb3 has quit [Remote host closed the connection]
x77686d has joined #ruby
justinmburrous has joined #ruby
xymbol has joined #ruby
ursooperduper has joined #ruby
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
shredding has quit [Quit: shredding]
oleo has joined #ruby
ChoiKyuSang has joined #ruby
jacobat has joined #ruby
a_ has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
kaspergrubbe has quit [Read error: Connection reset by peer]
leslie has quit [Ping timeout: 260 seconds]
kaspergrubbe has joined #ruby
Guest51224 has joined #ruby
schaerli has quit [Remote host closed the connection]
justinmburrous has quit [Ping timeout: 258 seconds]
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
tourne has quit [Quit: Leaving]
bMalum has quit [Client Quit]
xaxisx has joined #ruby
_whitelogger___ has quit [Ping timeout: 260 seconds]
_whitelogger___ has joined #ruby
xaxisx has quit [Client Quit]
kiely_elsewhere is now known as kiely
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
gwb3 has joined #ruby
gwb3 is now known as coderwill
phutchins has quit [Ping timeout: 240 seconds]
Takle_ has quit [Remote host closed the connection]
coderwill has quit [Client Quit]
CaptainHeavy has joined #ruby
GPH|work has joined #ruby
egray_ has joined #ruby
Channel6 has joined #ruby
phat4life has joined #ruby
sk87 has joined #ruby
<phat4life> how to crash your computer: type ('1.' + ('9' * 99999999999999)).to_f in irb. My mac was using 8GB of swap before I killed ruby
jasooon has joined #ruby
coderwill has joined #ruby
tlarevo has quit [Ping timeout: 255 seconds]
lukeholder has quit [Read error: Connection reset by peer]
wethu has quit [Ping timeout: 244 seconds]
havenwood has joined #ruby
twohlix_ has joined #ruby
tier_ has joined #ruby
<shevy> awesome man
<shevy> I let my cat program
aCicloid is now known as cicloid
Scotteh has joined #ruby
jacobat has quit [Ping timeout: 255 seconds]
twohlix has quit [Ping timeout: 272 seconds]
jasooon has quit [Ping timeout: 265 seconds]
bulters has joined #ruby
tier has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
anaeem1_ has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
mesamoo has quit [Quit: Konversation terminated!]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
nrsk has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
bulters has quit [Ping timeout: 255 seconds]
Es0teric has joined #ruby
charliesome has quit [Quit: zzz]
tadayoshi has joined #ruby
joonty has quit [Ping timeout: 272 seconds]
yeticry has quit [Read error: Connection reset by peer]
tier_ has quit [Remote host closed the connection]
SpaceKookie has joined #ruby
allcentu1 has quit [Ping timeout: 260 seconds]
tadayoshi has quit [Client Quit]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
startupality has quit [Quit: startupality]
devdazed has joined #ruby
doev has quit [Quit: Verlassend]
tadayoshi has joined #ruby
Channel6 has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
acmehandle has joined #ruby
allcentu1 has joined #ruby
<acmehandle> Can I ask rails questions here?
<acmehandle> Or is there another channel for that?
Soda has joined #ruby
benzrf|offline is now known as benzrf
yeticry has joined #ruby
<tobiasvl> acmehandle: #rubyonrails
Xeago has joined #ruby
drjfreez1 is now known as drjfreeze
patrick99e99 has joined #ruby
tier has joined #ruby
acmehandle has quit [Quit: Leaving]
<tobiasvl> dawkirst: no
<dawkirst> is it good practice to indent everything underneath `private`?
Takle has joined #ruby
phat4life has quit [Quit: phat4life]
Xeago_ has quit [Ping timeout: 272 seconds]
<dawkirst> tobiasvl: thanks
_whitelogger___ has joined #ruby
patrick99e99 has quit [Ping timeout: 240 seconds]
mleone has joined #ruby
<shevy> dawkirst it is bad because elsewhere in the code you would not have indent
<shevy> class Foo
<shevy> def bla
<shevy> end
<shevy> private
<shevy> def lala
mary5030 has quit [Remote host closed the connection]
<shevy> end
<tobiasvl> yeah. there's no "end" to the private scope
<shevy> there is no end to cats either
<dawkirst> shevy, tobiasvl, makes a lot of sense
<tobiasvl> dawkirst: btw, for reference. there's no official style guide but there are some popular ones like https://github.com/bbatsov/ruby-style-guide and https://github.com/styleguide/ruby
<shevy> I am not quite awake yet ...
<shevy> and the moebius strip is also moving an end
<shevy> *missing
<shevy> erm
zeroNones has joined #ruby
mijicd has quit [Quit: leaving]
qmfnp has joined #ruby
ndrei has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
SpaceKookie has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
nrsk has quit [Ping timeout: 256 seconds]
kaspergrubbe has joined #ruby
thsig has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
thsig has joined #ruby
RaCx has joined #ruby
wm3|away has quit [Ping timeout: 246 seconds]
Aaaal has joined #ruby
SpaceKookie has joined #ruby
<waxjar> i always unindent the call to private by one level
havenwood has joined #ruby
xymbol has quit [Quit: Be back later ...]
<dawkirst> tobiasvl: thanks for the links
<tobiasvl> waxjar: heathen
hellangel7 has quit [Ping timeout: 240 seconds]
Dwarf has quit [Ping timeout: 265 seconds]
RaCx has quit [Client Quit]
RaCx_ has quit [Ping timeout: 260 seconds]
oo_ has quit [Ping timeout: 260 seconds]
larsam has joined #ruby
kantakt has quit []
thsig has quit [Ping timeout: 260 seconds]
AFKGeek has quit [Ping timeout: 244 seconds]
Squarepy has quit [Quit: Leaving]
AFKGeek has joined #ruby
enebo has joined #ruby
wm3|away has joined #ruby
jimmyy has quit [Ping timeout: 258 seconds]
Kricir has joined #ruby
Guest36937 has joined #ruby
rocknrollmarc has quit [Ping timeout: 240 seconds]
tadayoshi has quit []
St_Marx has joined #ruby
cicloid is now known as aCicloid
awestroke has joined #ruby
jlast has joined #ruby
nerium has joined #ruby
<nerium> Anyone knows a good way of downloading chunks of a stream?
<nerium> I’ve an infitive stream that I want to get chunks from
nrsk has joined #ruby
a_ has quit [Ping timeout: 258 seconds]
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
<geekbri> Is there perhaps a way in ruby to get a list of all forked processes from a parent without just recording the pids as your fork them?
yfeldblum has joined #ruby
matchaw has joined #ruby
ad_boot has joined #ruby
<linduxed> so i've looked around for a bit and i'm wondering: is there some way to have a variable be impossible to reassign?
_whitelogger___ has quit [Excess Flood]
_whitelogger___ has joined #ruby
shortCircuit__ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
toretore has joined #ruby
<shevy> waxjar that hurts my eyes man!
drPoggs has quit [Ping timeout: 260 seconds]
<shevy> waxjar can you put the above code into an additional top namespace please? :>
kiely is now known as kiely_elsewhere
lukeholder has joined #ruby
<shevy> I wanna see how it looks ;P
rkalfane has joined #ruby
drPoggs has joined #ruby
<waxjar> constants print a warning when you reassign them, i think that's the best you can do
ajk1 has joined #ruby
northfurr has quit [Quit: northfurr]
<shevy> actually here would be an alternative
<shevy> end; private :super_secret_private_method
<shevy> but nobody wants to do that
yfeldblum has quit [Ping timeout: 258 seconds]
<txdv> >> "shevy " * 100
<eval-in__> txdv => "shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy shevy sh ... (https://eval.in/206694)
<shevy> txdv \o/
<waxjar> i like that you can do private def x ... end now, but that rules out 1.9 :(
softaco_s has joined #ruby
<wm3|away> waxjar: also rules out 2.0
wm3|away is now known as workmad3
a_ has joined #ruby
ismell has joined #ruby
thsig has joined #ruby
<shevy> wow
<shevy> look txdv, I got my own module ^^^
<shevy> I feel kinda iconic now
<shevy> like Paris Hilton
<rpag> waxjar, do you want your code to look like java or sth? :P
<ismell> hey, does anyone know the name of that site that allowed you to specify javascript libs in y our Gemfile?
justinmburrous has joined #ruby
mengu has quit []
gja has quit [Quit: This computer has gone to sleep]
tejas has quit [Quit: This computer has gone to sleep]
livathinos has joined #ruby
tagrudev has quit [Remote host closed the connection]
<waxjar> rpag: nope, i tend to skip over the private if i don't do it this way :p
_whitelogger___ has joined #ruby
<waxjar> it's no worse than the rescue blocks in a method, imo
techsethi has quit [Quit: techsethi]
elektronaut has quit [Ping timeout: 260 seconds]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ismell> thats what I was looking for
justinmburrous has quit [Ping timeout: 260 seconds]
jimmyhoughjr has joined #ruby
bweston92 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sysTemz- has joined #ruby
jasooon has joined #ruby
Xeago has quit [Remote host closed the connection]
elektronaut has joined #ruby
<shevy> yeah waxjar I hate rescue blocks inside of a method as well
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
xaxisx has joined #ruby
sysTemz- has quit [Client Quit]
<shevy> I like specific indent for being/rescues
<shevy> waxjar but now that you showed one of your atrocities
<shevy> I'm gonna show you one of mine
<waxjar> lol
Xeago has joined #ruby
<shevy> waxjar watch in awe please -> http://pastie.org/9652773
charliesome has joined #ruby
devdazed has quit [Read error: No route to host]
mary5030 has joined #ruby
<waxjar> good lord! that'll trip you up
qmfnp has joined #ruby
<shevy> the reason is actually twofold
<shevy> my brain can not really deal well with multiple indents
<waxjar> doesn't your text editor indent for you?
<shevy> I really have to constantly press the space button
RaCx has joined #ruby
<shevy> I could use tab->2 spaces but that somehow does not work well for me, the tab key is out of my hand's reach
gregf has quit [Quit: WeeChat 1.0.1]
Dwarf has joined #ruby
<workmad3> shevy: how can you be too lazy to indent? your editor does that for you, surely!
<shevy> and I am lazy
jhass is now known as jhass|off
<shevy> workmad3 my editor is a bit better than notepad
<shevy> waxjar nope
<shevy> I have to hit the space button all the time :)
<workmad3> shevy: doesn't sound like it's much better :P
<shevy> well actually, I can copy/paste two ' '
jacobat has joined #ruby
<shevy> workmad3 it's simple!
<waxjar> get sublime! def [tab] fill in method name [tab] fill in method by
jasooon has quit [Ping timeout: 250 seconds]
<workmad3> shevy: does it cry if you try to feed it multi-byte utf8?
<shevy> nah
<shevy> I only get weird characters shown
<shevy> but since I don't use utf, I eliminate those, then save into ISO
<shevy> 8815 or something like that
<workmad3> shevy: you're one of the reasons we can't have nice things :(
<shevy> wat!
pu22l3r has joined #ruby
<workmad3> shevy: ISO8859-1 is an awful encoding :(
<shevy> oh that
<shevy> it's simple!
pu22l3r has quit [Remote host closed the connection]
oinkon has quit [Ping timeout: 260 seconds]
sk87 has joined #ruby
<workmad3> shevy: not particularly...
startupality has joined #ruby
<workmad3> shevy: it contains no way to say which code-page you're using
<shevy> all the time I spent into UTF just to get the snowman working...
pu22l3r has joined #ruby
<workmad3> shevy: so 8859-1 and 8859-2, and 8859-X are indistinguishable
xymbol has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
tejas has joined #ruby
tejas has joined #ruby
<shevy> I think that is great
<shevy> nobody has to spend time what to think really
<shevy> unlike UTF 16!
<shevy> hmm... actually I use 8859-1 consistently
<workmad3> shevy: right... but I asked about utf-8, not 16 :P
<workmad3> shevy: utf-8 and ascii interoperate below byte values of 127 :P
<shevy> well UTF-16 has a higher number than UTF-8 so it must be better than 16
<shevy> ascii is indeed a bit too limited these days
kiely_elsewhere is now known as kiely
<workmad3> shevy: why not screw it all and go UTF-32 everywhere then?
<shevy> dunno
<shevy> I wait for UTF-64
csmrfx has joined #ruby
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<shevy> so that aliens also are included into the language
<workmad3> shevy: get rid of multi-byte characters and get all the characters you could ever want!
<shevy> csmrfx we had a python user the other day
<workmad3> shevy: pretty sure 'aliens' are already included... I believe there's a section of unicode marked for klingon ;)
<shevy> who referred to that no-content article above
<csmrfx> lol
<csmrfx> its like a hot-rod mechanic wrote an article on which guitars are best for classical music
djstorm has joined #ruby
dx7 has joined #ruby
softaco_s has quit [Remote host closed the connection]
<shevy> well there are crappy guitars
jhass|off is now known as jhass
<shevy> I know because I bought one of them :(
{xenomorph} has quit [Ping timeout: 260 seconds]
<workmad3> csmrfx: and then based his opinions on what a particular rock-star decided to use ;)
<shevy> also, playing piano is much simpler than playing the guitar, I found that out as well
bulters has joined #ruby
* csmrfx buys a new bass guitar every 3 months
dh64 has joined #ruby
<shevy> what happens to your old bass guitar?
gregf has joined #ruby
<csmrfx> if its good it sits on the stand
{xenomorph} has joined #ruby
_whitelogger____ has joined #ruby
anaeem1 has joined #ruby
treehug88 has joined #ruby
roger_rabbit has joined #ruby
Dwarf has quit [Ping timeout: 260 seconds]
elektronaut has joined #ruby
maasha has quit [Ping timeout: 246 seconds]
it0a has joined #ruby
<shevy> there could be zombies in pubs
<shevy> I learned that from shaun of the dead
<shevy> plus, my british accent
<workmad3> shevy: I dread to think what your british accent is likey :P
<workmad3> *like
lampd1 has quit [Ping timeout: 250 seconds]
Xeago has quit [Read error: Connection reset by peer]
tvw has joined #ruby
Xeago has joined #ruby
Guest51224 has quit [Quit: Have you ever tried to eat a clock? It's very time consuming.]
mahtennek has quit []
anaeem1 has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
reinaldob has quit []
aCicloid is now known as cicloid
devdazed has joined #ruby
<shevy> likey blimey slimey
_whitelogger____ has joined #ruby
xaxisx has quit [Quit: xaxisx]
naftilos76 has joined #ruby
msmith_ has joined #ruby
klmlfl has joined #ruby
kwd has quit [Quit: Sleeping now. ZZZzzz…]
bal has quit [Quit: bal]
<naftilos76> hiyosi, i am using daemons gem to make my ruby script a daemon but i cannot find a way to get the pid number of the process although i can see the pid number in tasks manager in ubuntu. The pid file is nowhere to find. The dir of the script does not contain anything and the /var/run/ does not either. Can anybody help?
gja has quit [Quit: This computer has gone to sleep]
tejas has quit [Quit: This computer has gone to sleep]
charliesome has quit [Quit: zzz]
<naftilos76> That was to everyone in the channel
heftig has quit [Quit: heftig]
heftig has joined #ruby
DrShoggoth has joined #ruby
softaco_s has joined #ruby
Takle has joined #ruby
drawingthesun has joined #ruby
ndrei has quit [Ping timeout: 272 seconds]
<gizmore> naftilos76: maybe Thread.current.inspect has it?
__Grabarz__ has joined #ruby
__Grabarz__ has left #ruby [#ruby]
<suy> >> Process.pid
<eval-in__> suy => 18932 (https://eval.in/206732)
sevenseacat has quit [Quit: Leaving.]
<suy> naftilos76: that above is helpful?
<naftilos76> no sorry
<naftilos76> i have no idea what that means
fabrice31 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
garbanotas has joined #ruby
gja has joined #ruby
tejas has joined #ruby
<naftilos76> basically at some point in the script i do Daemons.daemonize and then the script ia a daemon
roolo has joined #ruby
<gizmore> now we can hardcode the const PID = 18932 :P
<gizmore> Process.pid is the process id of current process
roolo has quit [Read error: Connection reset by peer]
shredding has joined #ruby
<naftilos76> i tried var = Daemons.daemonize and wrote its' contents in a file
sinkensabe has quit [Remote host closed the connection]
<workmad3> naftilos76: try doing 'Daemons.daemonize(:dir_mode => :system)'
bthesorceror has joined #ruby
<naftilos76> the content of var was DEFAULT
<suy> naftilos76: I mean, Process.pid contains... the pid of the process, no?
_whitelogger____ has joined #ruby
_whitelogger____ has joined #ruby
<naftilos76> suy: Thanks man, simple as that Process.pid did the job
<naftilos76> i want that so that i can terminate at any time
renderful has quit [Remote host closed the connection]
parduse has quit []
oinkon has joined #ruby
AFKGeek has quit [Quit: Leaving]
wottam has joined #ruby
IceDragon has joined #ruby
parduse has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
banister has joined #ruby
shredding has quit [Quit: shredding]
renderful has joined #ruby
jottr has joined #ruby
<olivier_bK> can i sign in on website with nokogiri it's possible ?
bigkevmcd has quit [Ping timeout: 240 seconds]
xaxisx has joined #ruby
_whitelogger____ has joined #ruby
jobewan has joined #ruby
mikepack has joined #ruby
mistermocha has joined #ruby
yfeldblu_ has quit [Ping timeout: 255 seconds]
Xeago has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naftilos76 has quit [Quit: Αποχώρησε]
_whitelogger____ has joined #ruby
parduse has quit []
paulfm has quit []
chrishough has joined #ruby
maroloccio has joined #ruby
tkuchiki has quit [Remote host closed the connection]
parduse has joined #ruby
_whitelogger____ has quit [Excess Flood]
_whitelogger____ has joined #ruby
tkuchiki has joined #ruby
rshetty has joined #ruby
sinkensabe has joined #ruby
tier_ has joined #ruby
msmith_ has quit [Read error: Connection reset by peer]
jacobat_ has joined #ruby
CaptainHeavy has quit [Remote host closed the connection]
msmith_ has joined #ruby
jasooon has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
bthesorceror has quit [Quit: Reconnecting]
bthesorceror has joined #ruby
tkuchiki_ has joined #ruby
HelperW has quit [Quit: (null)]
tkuchiki_ has quit [Remote host closed the connection]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki_ has joined #ruby
egray_ has quit [Quit: This computer has gone to sleep]
tkuchiki has quit [Ping timeout: 244 seconds]
olivier_bK has quit [Ping timeout: 244 seconds]
jacobat has quit [Ping timeout: 258 seconds]
tier has quit [Ping timeout: 245 seconds]
doev has joined #ruby
larissa has quit [Quit: Leaving]
_whitelogger has joined #ruby
Takle has joined #ruby
parduse has joined #ruby
drawingthesun has quit [Quit: Leaving]
gsd has joined #ruby
startupality has joined #ruby
xaxisx has quit [Client Quit]
i_s has joined #ruby
kantakt has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
tier_ has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 244 seconds]
blackmes1 has joined #ruby
Xeago has quit [Remote host closed the connection]
Xiti has joined #ruby
carraroj has joined #ruby
sevvie has joined #ruby
benzrf is now known as benzrf|offline
thagomizer has joined #ruby
_whitelogger has joined #ruby
nobitanobi has joined #ruby
ta_ has quit [Remote host closed the connection]
jeer has joined #ruby
a_ has quit [Ping timeout: 246 seconds]
<jeer> Does anyone know if there is an alternative to SSLv3 for rest_client?
jlast has quit [Remote host closed the connection]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jeer> 3rd party product we paid for decided to dump SSLv3 with zero notice/notification and now we have a warehouse of employees with nothing to do because of this.
<jeer> Sidenote, Bigcommerce is cancerous.
qba73 has quit []
AlexRussia has quit [Ping timeout: 272 seconds]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
multi_io has joined #ruby
multi_io_ has quit [Read error: Connection reset by peer]
shazaum has joined #ruby
rossgeesman has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
bigkevmcd has joined #ruby
rossgeesman has quit [Client Quit]
qmfnp has joined #ruby
Wolland has joined #ruby
Wolland has quit [Client Quit]
rossgeesman has joined #ruby
stoneforge has joined #ruby
hellangel7 has joined #ruby
crunk_bear has joined #ruby
reinaldob has joined #ruby
klmlfl has quit [Remote host closed the connection]
<axilla> jeer: tls
klmlfl has joined #ruby
alex88 has quit [Quit: Leaving...]
<jeer> but does rest_client support tls?
<axilla> all of the rest clients our app integrates with switched to tls, and turned off sslv3
<axilla> oh not sure about rest_client?
<axilla> sorry
Kricir has joined #ruby
stoneforge has quit [Remote host closed the connection]
<jeer> Yeah, I don't think the dependency chain we have has a solution for this unfortunately.
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codeurge has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
{xenomorph} has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
banister has joined #ruby
ghostmoth has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
banister has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
spyderman4g63 has quit [Remote host closed the connection]
speakingcode is now known as brandon-walsh
<workmad3> jeer: it looks like you can pass an :ssl_version to the rest-client constructor
spyderman4g63 has joined #ruby
livathinos has quit [Remote host closed the connection]
<workmad3> jeer: valid values are held in OpenSSL::SSL::SSLContext::METHODS
<workmad3> jeer: I'd suggest using :TLSv1_2 if possible
{xenomorph} has joined #ruby
Scotteh has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SpaceKookie has joined #ruby
timonv_ has quit [Remote host closed the connection]
cndiv has joined #ruby
a_ has joined #ruby
skolman_ has joined #ruby
cndiv is now known as Guest56905
Guest56905 is now known as cndiv_wfh
kantakt has quit []
skolman_ has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 260 seconds]
skolman has joined #ruby
skolman has quit [Remote host closed the connection]
skolman_ has joined #ruby
Hobogrammer has joined #ruby
<jeer> Looking for exact syntax now. Thanks for the lead, work.
benzrf|offline is now known as benzrf
DrShoggoth has quit [Quit: Leaving]
maroloccio has quit [Quit: WeeChat 0.4.3]
cndiv_ has joined #ruby
cndiv_wfh has quit [Quit: WeeChat 0.4.3]
samuel02 has joined #ruby
Xeago_ has joined #ruby
benzrf is now known as benzrf|offline
HelperW has joined #ruby
brandon-walsh is now known as speakingcode
kamilc__ has quit [Quit: Leaving...]
troyready has joined #ruby
tylersmith has joined #ruby
SCHAAP137 has joined #ruby
benzrf|offline is now known as benzrf
jacobat has joined #ruby
beef-wellington has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 260 seconds]
RichardLitt has joined #ruby
freerobby has joined #ruby
tokik has quit [Ping timeout: 272 seconds]
jimmyhoughjr has joined #ruby
cndiv_ is now known as cndiv
rocknrollmarc has joined #ruby
lw has joined #ruby
sinkensabe has quit [Remote host closed the connection]
x1337807x has joined #ruby
beef-wellington has joined #ruby
zeroNones has joined #ruby
ad_boot has quit [Quit: ad_boot]
dawkirst has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
itspots has joined #ruby
justinmburrous has joined #ruby
icebourg has joined #ruby
Gunni has quit [Ping timeout: 250 seconds]
patrick99e99 has joined #ruby
terlar has quit [Ping timeout: 272 seconds]
explodes has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
lsmola has quit [Ping timeout: 250 seconds]
stunder has joined #ruby
elektronaut has joined #ruby
<explodes> I doubt this is the best channel for it, but I don't know where to start. I'm on OSX 10.9, I used homebrew to install openssl. Recently, I upgraded to 1.0.1j, and now using the CLI to connect to Heroku breaks talking about SSL errors.
jasooon has joined #ruby
Takle has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
justinmburrous has quit [Ping timeout: 246 seconds]
weemsledeux has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
x77686d has joined #ruby
jlast has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
abstrakt has joined #ruby
banister has joined #ruby
oinkon has quit [Ping timeout: 260 seconds]
renderful has joined #ruby
ndrei has joined #ruby
Gunni has joined #ruby
jasooon has quit [Ping timeout: 258 seconds]
xaxisx has joined #ruby
freerobby has quit [Quit: Leaving.]
rbrs has joined #ruby
benzrf is now known as benzrf|offline
pskosinski has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Haiiro|Away is now known as Haiiro
centrx has joined #ruby
Kricir has quit [Remote host closed the connection]
xaxisx has quit [Client Quit]
Kricir has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Es0teric_ has joined #ruby
ndrei has quit [Read error: No route to host]
oinkon has joined #ruby
ad_boot has joined #ruby
Morkel has quit [Quit: Morkel]
Kricir has quit [Ping timeout: 255 seconds]
kenneth has joined #ruby
Kricir has joined #ruby
gkra has quit [Quit: leaving]
carraroj has quit [Ping timeout: 250 seconds]
ephemerian has quit [Quit: Leaving.]
chrisja has joined #ruby
techsethi has joined #ruby
gkra has joined #ruby
ndrei has joined #ruby
fsapo has quit [Remote host closed the connection]
lsmola has joined #ruby
Es0teric_ has quit [Client Quit]
chrisja has quit [Client Quit]
Xeago has joined #ruby
fsapo has joined #ruby
renderful has quit [Remote host closed the connection]
grzywacz has quit [Ping timeout: 265 seconds]
rocknrollmarc has quit [Ping timeout: 255 seconds]
tier has joined #ruby
lkba has joined #ruby
renderfu_ has joined #ruby
xaxisx has joined #ruby
benzrf|offline is now known as benzrf
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
cicloid is now known as aCicloid
lampd1_ has joined #ruby
bricker`work has joined #ruby
phrozen77 has joined #ruby
xaxisx has quit [Client Quit]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
devdazed has quit [Quit: Computer has gone to sleep.]
<mistermocha> question about class vars ... my understanding is that @somevar should be accessible throughout the class, but what about on the instance? (ex https://gist.github.com/mistermocha/5dc34f962bc55ce48109 ... see comments)
phrozen77 has joined #ruby
phrozen77 has quit [Changing host]
elaptics is now known as elaptics`away
Ankhers has joined #ruby
aCicloid is now known as cicloid
lampd1_ has quit [Ping timeout: 244 seconds]
<Hanmac> mistermocha: hm it does works for me
ptrrr has joined #ruby
<Hanmac> hm sorry
boombadaroomba has joined #ruby
<mistermocha> Hanmac: ??? yeah that's weird ... I would expect that to work, but I get errors on those puts statements.
fabrice31 has joined #ruby
<mistermocha> Hanmac: I read up on attr_accessors, but the docs I found said that I needed to do @@two_at_symbols ... and I just wanted to understand more
Xeago_ has joined #ruby
<Hanmac> mistermocha: you need attr_reader or attr_accessor
<mistermocha> thanks!
<Hanmac> NO ... attr_* functions has NOTHING todo with @@vars
klmlfl has quit [Remote host closed the connection]
* mistermocha nods
<Hanmac> let me guess you come somehow from Rails right?
<mistermocha> no, I've been exclusively a python dev for the last several years, and exclusively perl for several years prior
justin_pdx has joined #ruby
<mistermocha> I'm just picking up ruby
francisfish has quit [Remote host closed the connection]
twohlix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerius has quit []
<mistermocha> speaking of python... inheriting from object brings about the full datamodel, which has tons of fun built-in hooks for overriding basic methods on functions. Is there similar practice in ruby?
kaspergrubbe has joined #ruby
<j2p2> yeah
Xeago has quit [Ping timeout: 260 seconds]
<j2p2> ruby's kind of a lawless land as far as objects go, you can redefine anything anywhere
fabrice31 has quit [Ping timeout: 255 seconds]
<gregf_> o_O
<mistermocha> I get that, it's a matter of finding out what built-ins are there with new objects that I can override
<mistermocha> e.g., is there an analogous iterable feature that can be overridden in ruby?
spyderman4g63 has joined #ruby
<mistermocha> and if so, how do I?
lw has quit [Quit: s]
tjsousa has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 260 seconds]
jerius has joined #ruby
wallerdev has joined #ruby
mrfoto has joined #ruby
t_mmyv has joined #ruby
doev has quit [Ping timeout: 258 seconds]
hadifarnoud has joined #ruby
havenwood has quit [Remote host closed the connection]
<hadifarnoud> how can I install a gem globally? I use rbenv
yfeldblum has joined #ruby
mikecmpbll has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> mistermocha: ppl just use #each usually
nerium has quit [Quit: nerium]
<benzrf> >> [1, 2, 3].each {|n| puts n}
<eval-in__> benzrf => 1 ... (https://eval.in/206774)
havenwood has joined #ruby
<benzrf> bbl
Haiiro is now known as Haiiro|Away
<benzrf> you'll get a shitload of handy methods like #map
<benzrf> mistermocha: altho
<benzrf> if you define each like that and then mix in Enumerable
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benzrf is now known as benzrf|offline
lukeholder has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
tejas has quit [Quit: This computer has gone to sleep]
WormDrink has quit [Ping timeout: 260 seconds]
lukeholder has quit [Client Quit]
Haiiro|Away is now known as Haiiro
mityaz has quit [Quit: Leaving]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 244 seconds]
twohlix has joined #ruby
ad_boot has quit [Quit: ad_boot]
jhass is now known as jhass|off
jhass|off is now known as jhass
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kenndel has joined #ruby
sailias has quit [Read error: Connection reset by peer]
sailias has joined #ruby
HelperW has quit [Quit: (null)]
segfalt has joined #ruby
nanoyak has joined #ruby
kenndel_ has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 255 seconds]
nerium has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
nerium has quit [Client Quit]
nonks has joined #ruby
elektronaut has joined #ruby
Aaaal has quit [Quit: Aaaal]
jottr has quit [Read error: Connection reset by peer]
alem0lars has quit [Quit: AFK..]
lbwski has joined #ruby
phutchins has joined #ruby
jottr has joined #ruby
DivineEn1ity has quit [Quit: leaving]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
xaxisx has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
iamjarvo has joined #ruby
djbkd has joined #ruby
echooo has joined #ruby
rbrs has quit [Remote host closed the connection]
<havenwood> hadifarnoud: rbenv is hardcoded to a local user install as far as i know, though you can jump though a series of hoops to get a multi-user install location i wouldn't suggest it
<hadifarnoud> havenwood: is there anything I should add to my PATH?
ghr has quit [Read error: Connection reset by peer]
jhass is now known as jhass|off
Guest36937 has quit [Remote host closed the connection]
<havenwood> hadifarnoud: maybe considering swapping out rbenv for chruby: https://github.com/postmodern/chruby#readme
ghr has joined #ruby
rkalfane has joined #ruby
echooo1 has quit [Ping timeout: 272 seconds]
DivineEntity has joined #ruby
<hadifarnoud> havenwood: I don't know anything about chruby. you know how I can fix this?
echooo1 has joined #ruby
<havenwood> hadifarnoud: sudo ruby-install will default to installing in /opt/rubies, which is automatically detected by chruby
<havenwood> hadifarnoud: I guess first off, do you need to switch Rubies or are you just trying to install latest stable?
<havenwood> hadifarnoud: What OS/Distro?
xaxisx has quit [Client Quit]
klmlfl has joined #ruby
klmlfl has quit [Remote host closed the connection]
<hadifarnoud> yep
echooo has quit [Ping timeout: 246 seconds]
<havenwood> hadifarnoud: heh, shims...
<hadifarnoud> havenwood: oops. I had to do "rbenv rehash"
<havenwood> hadifarnoud: Still not available to other users, or was that not what you were shooting for and I just misunderstood?
xaxisx has joined #ruby
niftylettuce has joined #ruby
zeroNones has joined #ruby
<havenwood> hadifarnoud: there should be an #rbenv channel that just chants the mantra: rbenv rehash
jacobat has quit [Ping timeout: 250 seconds]
ghr has quit [Ping timeout: 258 seconds]
<hadifarnoud> :D looks like I have to havenwood
cndiv has quit [Ping timeout: 240 seconds]
<havenwood> hadifarnoud: that's rbenv's fault
<hadifarnoud> havenwood: gem should do it automatically. seems stupid that I have to do it for every install
<havenwood> hadifarnoud: so use chruby :P
schaerli has joined #ruby
doodlehaus has quit [Ping timeout: 272 seconds]
<havenwood> hadifarnoud: You can always easily point chruby at your rbenv rubies, but easy to build em with ruby-install: https://github.com/postmodern/ruby-install#readme
<hadifarnoud> havenwood: cool
dawkirst has joined #ruby
goodenough has joined #ruby
levisbakalinsky has joined #ruby
xaxisx has quit [Client Quit]
thumpba has quit []
noop has joined #ruby
jhass|off is now known as jhass
klmlfl has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
zeroNones has quit [Ping timeout: 240 seconds]
klmlfl has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qhartman has joined #ruby
thumpba has joined #ruby
Snerf_ has joined #ruby
gsd has joined #ruby
jheg has joined #ruby
renderful has joined #ruby
SpaceKookie has joined #ruby
Snerf_ has left #ruby [#ruby]
ki0 has quit [Ping timeout: 255 seconds]
jack_rabbit has joined #ruby
thsig_ has joined #ruby
ta has joined #ruby
Snerf_ has joined #ruby
cndiv has joined #ruby
Takle has joined #ruby
bMalum has joined #ruby
renderfu_ has quit [Ping timeout: 255 seconds]
parduse has quit []
parduse has joined #ruby
thsig has quit [Ping timeout: 272 seconds]
xaxisx has joined #ruby
kirun has joined #ruby
rshetty has quit [Remote host closed the connection]
Snerf_ has quit [Read error: Connection reset by peer]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xaxisx has quit [Client Quit]
jbueza has joined #ruby
ctp has joined #ruby
renderful has quit [Remote host closed the connection]
Hightower666 has joined #ruby
Hobogrammer has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
goodenough has quit [Read error: Connection reset by peer]
roolo_ has joined #ruby
matled has quit [Remote host closed the connection]
p8952 has joined #ruby
enebo has quit [Read error: Connection reset by peer]
matled has joined #ruby
BradPitt_ has quit [Read error: Connection reset by peer]
goodenough has joined #ruby
enebo has joined #ruby
cephalostrum has quit [Ping timeout: 260 seconds]
peeja has quit [Ping timeout: 260 seconds]
benlakey has quit [Ping timeout: 260 seconds]
arup_r has joined #ruby
Meeh has quit [Quit: No Ping reply in 180 seconds.]
einarj_ has quit [Remote host closed the connection]
BradPitt_ has joined #ruby
Xeago has joined #ruby
rdark has quit [Remote host closed the connection]
Kilo`byte has quit [Ping timeout: 260 seconds]
Sawbones has joined #ruby
Meeh has joined #ruby
roolo has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
lw has joined #ruby
benlakey has joined #ruby
lw has quit [Max SendQ exceeded]
Kilo`byte has joined #ruby
cephalostrum has joined #ruby
peeja has joined #ruby
Xiti` has joined #ruby
lw has joined #ruby
aspires has quit []
Xiti` has quit [Read error: Connection reset by peer]
aspires has joined #ruby
lw has quit [Read error: Connection reset by peer]
xaxisx has joined #ruby
Xeago_ has quit [Ping timeout: 272 seconds]
lw has joined #ruby
virtualize has joined #ruby
freerobby has joined #ruby
twohlix has quit [Ping timeout: 245 seconds]
Xiti has quit [Ping timeout: 245 seconds]
diegoviola has joined #ruby
ctp has quit [Read error: Connection reset by peer]
nobitanobi has quit [Remote host closed the connection]
ctp has joined #ruby
p8952 has quit [Ping timeout: 246 seconds]
ghr has joined #ruby
zeroNones has joined #ruby
tier_ has joined #ruby
a_ has quit [Read error: Connection reset by peer]
gregf has quit [Quit: WeeChat 1.0.1]
klmlfl has joined #ruby
Rollabunna has quit [Quit: Leaving...]
ctp has quit [Client Quit]
klmlfl has quit [Remote host closed the connection]
ndrei has joined #ruby
Zackio has quit [Ping timeout: 244 seconds]
<mistermocha> I'm confused... shouldn't rubydoc stdlib show documentation for standard libs? http://www.rubydoc.info/stdlib/mathn/2.0.0/frames
Zackio has joined #ruby
klmlfl has joined #ruby
doev has joined #ruby
nerium has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
tier has quit [Ping timeout: 255 seconds]
jdj_dk has quit [Remote host closed the connection]
tier_ has quit [Remote host closed the connection]
jdj_dk has joined #ruby
devdazed has joined #ruby
xaxisx has quit [Quit: xaxisx]
a_ has joined #ruby
zeroNones has quit [Ping timeout: 260 seconds]
tier has joined #ruby
goodenough has quit [Remote host closed the connection]
x45t has joined #ruby
tier has quit [Remote host closed the connection]
doev has quit [Ping timeout: 258 seconds]
x77686d has quit [Quit: x77686d]
AlexRussia has joined #ruby
maestrojed has joined #ruby
renier has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
bayed has quit [Quit: Connection closed for inactivity]
Takle has joined #ruby
a_ has quit [Ping timeout: 265 seconds]
ismell has left #ruby [#ruby]
renderful has joined #ruby
<renier> hey, maybe someone here can throw me a hint. I use puma for a webserver. Does anyone know how to configure the ssl protocols? This is to guard against the poodle openssl vulnerability. You have to disable SSLv3. has anyone done this with any of the usual ruby web servers? (thin, puma, unicorn, etc.)
tier has joined #ruby
TeresaP has joined #ruby
yetanotherdave has joined #ruby
<wallerdev> then just handle it there
zeroNones has joined #ruby
<wallerdev> i usually put something like nginx in front
schaerli has quit [Remote host closed the connection]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<renier> wallerdev, right. I'm going to have to, unless there is a way to handle it in ruby's server config
alem0lars has joined #ruby
rkalfane has joined #ruby
<TeresaP> Is there a way to use String.ends_with? with wildcards?
jhass is now known as jhass|off
<renier> TeresaP, use a regexp
anaeem1_ has joined #ruby
<TeresaP> guh
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
anaeem1_ has quit [Read error: Connection reset by peer]
xaxisx has joined #ruby
anaeem1_ has joined #ruby
<renier> TeresaP, s = "this is the end" ; s =~ /end$/
rossgeesman has quit [Remote host closed the connection]
{xenomorph} has quit [Ping timeout: 260 seconds]
lolmaus has quit [Quit: Konversation terminated!]
moloch is now known as zly
tier has quit [Remote host closed the connection]
zly has quit [Changing host]
zly has joined #ruby
Hightower666 has quit [Ping timeout: 246 seconds]
rossgees_ has joined #ruby
wottam has quit [Ping timeout: 240 seconds]
{xenomorph} has joined #ruby
zeroNones has quit [Client Quit]
matt___ has joined #ruby
tier has joined #ruby
zeroNones has joined #ruby
benzrf|offline is now known as benzrf
jxf has quit [Remote host closed the connection]
jhass|off is now known as jhass
aspires has quit [Ping timeout: 260 seconds]
jao1337 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
jao1337 has joined #ruby
aspires has joined #ruby
justin_pdx has quit [Ping timeout: 272 seconds]
Bira has joined #ruby
wottam has joined #ruby
bulters has joined #ruby
jordsmi has joined #ruby
SCHAAP137 has joined #ruby
jao1337 has quit [Remote host closed the connection]
patrick99e99 has quit [Quit: Lost terminal]
Takle has quit [Remote host closed the connection]
SirFunk has quit [Ping timeout: 240 seconds]
matt___ has left #ruby [#ruby]
sindork has quit [Ping timeout: 245 seconds]
Gnubie__ has quit [Quit: No Ping reply in 180 seconds.]
a_ has joined #ruby
Xiti has joined #ruby
jao1337 has joined #ruby
mrfoto has quit []
luckyrub_ has quit [Ping timeout: 255 seconds]
SCHAAP137 has joined #ruby
sindork has joined #ruby
SCHAAP137 has quit [Excess Flood]
jao1337 has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
Gnubie_ has joined #ruby
SCHAAP137 has joined #ruby
heftig has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Excess Flood]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
freerobby has joined #ruby
sptq has quit [Ping timeout: 272 seconds]
SirFunk has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
gja has joined #ruby
gja has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
heftig has joined #ruby
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
Takle has joined #ruby
SCHAAP137 has joined #ruby
RaCx_ has joined #ruby
SCHAAP137 has quit [Excess Flood]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
gccostabr has quit [Quit: See you later!]
RaCx has quit [Ping timeout: 265 seconds]
RaCx_ is now known as RaCx
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Excess Flood]
wottam has quit [Ping timeout: 255 seconds]
kaspergrubbe has joined #ruby
siwica1 has joined #ruby
sptq has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
justin_pdx has joined #ruby
tejas has joined #ruby
robbyoconnor has quit [Ping timeout: 255 seconds]
Haiiro is now known as Haiiro|Away
Photism has joined #ruby
RaCx has joined #ruby
ad_boot has joined #ruby
nobitanobi has joined #ruby
RaCx has quit [Client Quit]
nanoyak has joined #ruby
justinmburrous has joined #ruby
a_ has quit [Ping timeout: 260 seconds]
paulfm has joined #ruby
RaCx has joined #ruby
aclearma_ has joined #ruby
elektronaut has joined #ruby
xaxisx has quit [Quit: xaxisx]
gja has quit [Quit: This computer has gone to sleep]
tejas has quit [Client Quit]
elektronaut has quit [Ping timeout: 260 seconds]
siwica has quit [Ping timeout: 255 seconds]
arup_r has quit [Quit: Leaving.]
lmickh has quit [Remote host closed the connection]
aclearman037 has quit [Ping timeout: 244 seconds]
ursooperduper has quit [Quit: Textual IRC Client: www.textualapp.com]
tier has quit [Read error: Connection reset by peer]
jhass is now known as jhass|off
ramfjord has joined #ruby
ad_boot has quit [Client Quit]
tier has joined #ruby
jasooon has joined #ruby
doodlehaus has joined #ruby
xaxisx has joined #ruby
p8952 has joined #ruby
justinmburrous has quit [Ping timeout: 272 seconds]
c107 has joined #ruby
p8952 has quit [Client Quit]
spicerack has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
Kricir has quit [Remote host closed the connection]
Haiiro|Away is now known as Haiiro
Kricir has joined #ruby
RaCx has quit [Ping timeout: 260 seconds]
xaxisx has quit [Client Quit]
shevy has quit [Ping timeout: 240 seconds]
jasooon has quit [Ping timeout: 260 seconds]
roolo_ has quit [Remote host closed the connection]
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
DLSteve has joined #ruby
roolo has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Bira has quit [Remote host closed the connection]
jhass|off is now known as jhass
Avahey has joined #ruby
qmfnp has joined #ruby
tejas has joined #ruby
cndiv has quit [Ping timeout: 240 seconds]
levisbakalinsky is now known as levisbakalinsky|
levisbakalinsky| is now known as levisbakalinsky
levisbakalinsky is now known as levisbakalinsky|
levisbakalinsky| is now known as levisbakalinsky
levisbakalinsky is now known as levisbakalinsky|
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
Kricir has quit [Ping timeout: 240 seconds]
sindork has quit [Ping timeout: 272 seconds]
rossgees_ has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
crdpink2 has quit [Quit: q term]
rossgeesman has joined #ruby
roolo has quit [Ping timeout: 240 seconds]
zeroNones has joined #ruby
p8952 has joined #ruby
sindork has joined #ruby
jao1337 has joined #ruby
jao1337 has quit [Excess Flood]
p8952 has quit [Client Quit]
dumdedum has quit [Ping timeout: 272 seconds]
JohnBat26 has joined #ruby
fabrice31 has joined #ruby
agjacome has quit [Quit: leaving]
ylluminarious has joined #ruby
levisbakalinsky| has quit [Ping timeout: 258 seconds]
Blizzy has joined #ruby
p8952 has joined #ruby
p8952 has left #ruby [#ruby]
aspires has quit []
jjasonclark has joined #ruby
gccostabr has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
skolman_ has quit [Remote host closed the connection]
levisbakalinsky has joined #ruby
skolman_ has joined #ruby
zeroNone_ has joined #ruby
ursooperduper has joined #ruby
shevy has joined #ruby
zeroNones has quit [Ping timeout: 260 seconds]
RaCx has joined #ruby
olivier_bK has joined #ruby
lampd1_ has joined #ruby
OffTheRails has joined #ruby
wottam has joined #ruby
lw has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crdpink has joined #ruby
lw has joined #ruby
RaCx_ has joined #ruby
zeroNone_ has quit [Client Quit]
rainfyre has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
zeroNones has joined #ruby
skolman_ has quit [Ping timeout: 246 seconds]
lw has quit [Read error: Connection reset by peer]
p8952 has joined #ruby
ghr has joined #ruby
RaCx has quit [Ping timeout: 255 seconds]
lampd1_ has quit [Ping timeout: 246 seconds]
tier has quit [Remote host closed the connection]
heftig has quit [Ping timeout: 260 seconds]
skolman has joined #ruby
SpaceKookie has joined #ruby
TestTestTest has joined #ruby
lw has joined #ruby
cmoneylulz has joined #ruby
RaCx_ has quit [Ping timeout: 255 seconds]
lw has joined #ruby
heftig has joined #ruby
jhass is now known as jhass|off
wottam has quit [Ping timeout: 260 seconds]
renderfu_ has joined #ruby
hmsimha has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 245 seconds]
tier has joined #ruby
AlSquire has joined #ruby
maletor has joined #ruby
TestTestTest has quit [Quit: Page closed]
olivier_bK has quit [Ping timeout: 260 seconds]
bklane has joined #ruby
startupality has joined #ruby
tier has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 272 seconds]
Kricir has quit [Remote host closed the connection]
cmoneylulz has quit [Quit: WeeChat 0.4.2]
Kricir has joined #ruby
zeroNones has joined #ruby
Ankhers has quit [Remote host closed the connection]
lw has joined #ruby
startupality has quit [Client Quit]
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
RaCx has joined #ruby
lw has quit [Client Quit]
anaeem1 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
jhass|off is now known as jhass
Sawbones has left #ruby [#ruby]
nanoyak has quit [Quit: Computer has gone to sleep.]
klmlfl_ has joined #ruby
pskosinski_ has joined #ruby
rossgeesman has quit [Remote host closed the connection]
Kricir_ has joined #ruby
Kricir has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
entrenador has joined #ruby
pskosinski has quit [Ping timeout: 240 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
klmlfl has quit [Ping timeout: 240 seconds]
geekbri has quit []
banister has quit [Read error: Connection reset by peer]
hadifarnoud has quit [Ping timeout: 258 seconds]
banister has joined #ruby
chrishough has joined #ruby
aspires has joined #ruby
aclearma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Haiiro is now known as Haiiro|Away
aclearman037 has joined #ruby
xaxisx has joined #ruby
kamilc__ has joined #ruby
havenwood has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
sevvie has quit [Ping timeout: 244 seconds]
Pumukel has joined #ruby
havenwood has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
ivmx has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
lw has joined #ruby
sanguisdex has quit [Ping timeout: 260 seconds]
<gizmore> i got a funny idea... turn two balance queries (one user +=, one user -=) into a single write query statement without creating additional data
danijoo has joined #ruby
cndiv has joined #ruby
banister_ has joined #ruby
jhass is now known as jhass|off
banister has quit [Read error: Connection reset by peer]
<gizmore> oh nvm... i feel a bit dumb now
gauke has joined #ruby
M3M0CooL has joined #ruby
blackmes1 has joined #ruby
<csmrfx> because this is neither rails nor db channel?
francisfish has joined #ruby
jespada has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
mikeg has joined #ruby
RaCx has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agjacome has joined #ruby
AlexRussia has joined #ruby
jimmyhoughjr has joined #ruby
Bira has joined #ruby
tvw has quit []
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier has joined #ruby
ivmx has left #ruby [#ruby]
renderfu_ has quit [Remote host closed the connection]
gravy_ has left #ruby [#ruby]
lbwski has quit [Ping timeout: 255 seconds]
renderful has joined #ruby
gravy_ has joined #ruby
rbrs has joined #ruby
awestroke has quit [Remote host closed the connection]
taptapdan has joined #ruby
jerius_ has joined #ruby
jhass|off is now known as jhass
lfox has joined #ruby
sanguisdex has joined #ruby
sanguisdex has left #ruby [#ruby]
benwoody has quit [Quit: benwoody]
Lewix has joined #ruby
lfox has quit [Client Quit]
twohlix has joined #ruby
jerius has quit [Ping timeout: 255 seconds]
cicloid is now known as aCicloid
levisbakalinsky has quit [Ping timeout: 258 seconds]
renderful has quit [Ping timeout: 255 seconds]
benwoody has joined #ruby
kombi has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
rocknrollmarc has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kombi> "Could not find rack(~>1.1.0) amongst[...rack-1.4.5...]" <- am I missing something?
nobitanobi has joined #ruby
Kruppe has joined #ruby
jasooon has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
aCicloid is now known as cicloid
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
paulfm has quit [Ping timeout: 272 seconds]
atomi has quit [Remote host closed the connection]
<csmrfx> kombi: pastie complete errors or forget trying to get help
robbyoconnor has joined #ruby
<csmrfx> or who knows, maybe some competent psychic also competent with rack is here
levisbakalinsky has joined #ruby
renderful has joined #ruby
paulfm has joined #ruby
bklane has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
jasooon has quit [Ping timeout: 258 seconds]
benzrf|offline is now known as benzrf
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
RichardLitt has quit [Quit: RichardLitt]
noop has quit [Ping timeout: 260 seconds]
<kombi> ..that being the complete error message, I just can't make head or tail of it...
RaCx has joined #ruby
robbyoconnor has quit [Ping timeout: 265 seconds]
banister_ is now known as banisterfiend
paulfm has quit [Client Quit]
beiter has joined #ruby
beiter has quit [Client Quit]
anaeem1 has quit [Remote host closed the connection]
<kombi> csmrfx: a much higher version of rack is clearly among them..
Soda has joined #ruby
GPH|work has quit [Ping timeout: 260 seconds]
<csmrfx> well
<csmrfx> clearly it is not a version of rack that your bundler understands
<csmrfx> or, what is generating that error
Darryl has quit [Quit: Connection closed for inactivity]
<csmrfx> perhaps I need to consult a psychic here as well?
Akagi201 has joined #ruby
techsethi has quit [Quit: techsethi]
paulfm has joined #ruby
<csmrfx> kombi are you sure you want help? perhaps you just want to tease us with this guessing game of your problem
<csmrfx> (or perhaps this is an excercise for psychics)
<kombi> cwmrfx: absolutely not, and I whish I could consult with a psychic for these kind of problems myself..
<csmrfx> anyway, I think I'll rather go read on music-theory than guess at your probs
<csmrfx> good luck!
monsieurp has quit [Quit: Lost terminal]
postmodern has joined #ruby
bklane has joined #ruby
BadQuanta has joined #ruby
monsieurp has joined #ruby
monsieurp has quit [Changing host]
monsieurp has joined #ruby
<kombi> csmrfx: c7 #11 b13
M3M0CooL has quit []
francisfish has quit [Remote host closed the connection]
Akagi201_ has quit [Ping timeout: 250 seconds]
kobain has joined #ruby
<banisterfiend> apeiros ping
<kombi> csmrfx: what kind of information can I provide so it is possible to untangle for a ruby-knower? (which I am not)
a_ has joined #ruby
<kombi> csmrfx: btw I recommend "The Rest Is Noise" by Alex Ross
vieq has quit [Ping timeout: 244 seconds]
lw has quit [Quit: s]
RaCx has quit [Quit: Computer has gone to sleep.]
jerius_ has quit []
levisbakalinsky has quit [Ping timeout: 258 seconds]
jerius has joined #ruby
nanoyak has joined #ruby
sinkensabe has joined #ruby
wottam has joined #ruby
mistermocha has joined #ruby
AlexRussia has quit [Remote host closed the connection]
levisbakalinsky has joined #ruby
ghr has joined #ruby
icarus has joined #ruby
AlexRussia has joined #ruby
segfalt has quit [Quit: Connection closed for inactivity]
skolman has quit [Remote host closed the connection]
rh1n0 has joined #ruby
skolman has joined #ruby
m8 has joined #ruby
{xenomorph} has quit [Ping timeout: 260 seconds]
bklane has quit [Remote host closed the connection]
nobitanobi has quit []
wottam has quit [Ping timeout: 250 seconds]
{xenomorph} has joined #ruby
bklane has joined #ruby
chrishou_ has joined #ruby
chrishou_ has quit [Client Quit]
nonks has joined #ruby
chrishou_ has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
djbkd has quit [Remote host closed the connection]
rh1n0 has quit [Client Quit]
ghr has quit [Ping timeout: 272 seconds]
tier_ has joined #ruby
chrishough has quit [Ping timeout: 255 seconds]
dawkirst has quit [Remote host closed the connection]
RaCx has joined #ruby
skolman has quit [Ping timeout: 255 seconds]
lw has joined #ruby
xaxisx has quit [Quit: xaxisx]
tier has quit [Ping timeout: 240 seconds]
russt has joined #ruby
skolman_ has joined #ruby
gregf has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bklane has quit [Remote host closed the connection]
zorak8 has joined #ruby
tejas has quit [Ping timeout: 240 seconds]
<csmrfx> kombi: well, to enable others to help you
Xeago has quit [Remote host closed the connection]
bklane has joined #ruby
claymore has quit [Quit: Leaving]
chrishou_ has quit [Ping timeout: 240 seconds]
a_ has quit [Ping timeout: 260 seconds]
thsig has joined #ruby
RaCx has quit [Ping timeout: 260 seconds]
TejasDinkar has joined #ruby
tejas has joined #ruby
<shevy> kombi this means you can not have the given gem installed
<csmrfx> ^ this should happen *every* time someone asks help with code, IMO
chrishough has joined #ruby
<csmrfx> you would at the least need to describe what you are trying to do, which version of ruby, what OS, which libraries involved, pastie errors, source code, at the least the snippet that causes the error
gja has quit [Ping timeout: 265 seconds]
<kombi> csmrfx: fair point! Just found out that one can install a specific version of a gem
<shevy> the problem lies in when authors specify specific version like rack (~> 1.1.0)
<shevy> in my opinion this is almost always abused
rossgeesman has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
<shevy> they specify a restriction on usage of their gem
<csmrfx> how do you mean "abused"?
<csmrfx> "misused"?
shazaum has quit [Quit: Leaving]
bklane has quit [Ping timeout: 246 seconds]
thsig_ has quit [Ping timeout: 246 seconds]
<kombi> csmrfx: but it seems I've gotten past that, now fighting with errors from Redmine (a project managment tool based on R'n'R)
xaxisx has joined #ruby
rossgeesman has quit [Ping timeout: 245 seconds]
a_ has joined #ruby
lw has quit [Quit: s]
Bira has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
x77686d has joined #ruby
bluenemo has quit [Quit: Verlassend]
x77686d has quit [Client Quit]
leizzer has joined #ruby
gsd has joined #ruby
mistermocha has quit [Remote host closed the connection]
<csmrfx> kombi: great
Haiiro|Away is now known as Haiiro
tier_ has quit [Remote host closed the connection]
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
<csmrfx> kombi: I'll read the Ross book later, I have yet to finish the intro to chromatic jazz theory, solfege and sightreading book
jimmyhoughjr has joined #ruby
ctp has joined #ruby
twohlix has quit [Ping timeout: 260 seconds]
GPH|work has joined #ruby
entrenador has quit [Quit: Textual IRC Client: www.textualapp.com]
Es0teric_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
RaCx has joined #ruby
TejasDinkar has quit [Quit: This computer has gone to sleep]
tejas has quit [Quit: This computer has gone to sleep]
eka has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RaCx has quit [Quit: Computer has gone to sleep.]
allcentu1 has quit [Read error: Connection reset by peer]
sinequanon has joined #ruby
ghr has joined #ruby
allcentu1 has joined #ruby
jeer has quit [Ping timeout: 255 seconds]
RichardLitt has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
TeresaP has quit [Ping timeout: 246 seconds]
ghr has quit [Ping timeout: 258 seconds]
mistermocha has joined #ruby
duncan1 is now known as dfedde
skolman_ has quit [Remote host closed the connection]
qmfnp has joined #ruby
lw has joined #ruby
skolman_ has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hackeron has quit [Ping timeout: 245 seconds]
hackeron has joined #ruby
jasooon has joined #ruby
tier has joined #ruby
Dwarf has joined #ruby
Deejay_ has joined #ruby
skolman_ has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
xymbol has quit [Quit: Be back later ...]
fabrice31 has joined #ruby
<sterns> Hello, Server A is going to dump a list of 10,000 URLs (HTML pages) that need to be fetched into a mysql database. An array of worker servers will be configured to work that queue. Is ruby+Nokogiri one of the better solutions for the worker servers to perform this task? And secondly, is there a go-to solution for monitoring a work queue like this?
djbkd has joined #ruby
User458764 has joined #ruby
spyderman4g63 has joined #ruby
skolman_ has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
Gadgetoid_ has joined #ruby
boombadaroomba has joined #ruby
eka has joined #ruby
<ramfjord> sterns: have you heard of Resque?
kombi has quit [Quit: ircII EPIC4-2.10.1 -- Are we there yet?]
<ramfjord> backed by redis, not mysql, but it comes with a cool monitor and management of worker pools
<sterns> ramfjord: no, thanks, I'll check it out
jjasonclark has quit [Quit: jjasonclark]
sinkensabe has joined #ruby
<ramfjord> I've also found mechanize (https://github.com/sparklemotion/mechanize) to be a lot nicer than the standard Net::HTTP
<epitron> mechanize is great
<ramfjord> which, for instance, doesn't follow redirects automatically
<epitron> it does need a lot of cleanup though, and they should really change their HTTP backend
levisbakalinsky has quit [Ping timeout: 244 seconds]
jimmyhoughjr has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<epitron> (i recommend the 'http' gem :)
<epitron> the documentation needs work too
jasooon has quit [Ping timeout: 255 seconds]
<ramfjord> "This Gem has the worst name in the history of SEO"
<ramfjord> haha, no kidding
<ramfjord> I've never heard of http, might check it out myself
spyderman4g63 has quit [Ping timeout: 258 seconds]
ta has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
bulters has quit [Ping timeout: 265 seconds]
User458764 has quit [Ping timeout: 240 seconds]
ta has quit [Read error: Connection reset by peer]
<epitron> it's much nicer than Net::HTTP
lw has quit [Quit: s]
<epitron> one really nice thing is that it streams the HTTP response
skullz has joined #ruby
<epitron> (it has a streaming HTTP protocol parser)
<pipework> Faraday is my favorite.
<epitron> faraday doesn't do streaming though
<pipework> I don't know if it streams the response though, haven't looked.
<epitron> it's surprisingly rare for them to implement that, in ruby, for some reason
Es0teric_ has quit [Quit: Computer has gone to sleep.]
<epitron> despite how easy it is to do with ruby blocks :)
<epitron> http.get().each_chunk {|data| ... }
mistermocha has quit [Remote host closed the connection]
<epitron> oh yeah, this is what bugged me about mechanize's redirects: "agent.redirect_ok = false"
Notte has joined #ruby
Gadgetoi- has joined #ruby
Gadgetoid_ has quit [Ping timeout: 244 seconds]
<epitron> what an annoying option to remember
<skullz> Hey guys, how can I get the element that has the lowest price from those who have the biggest quantity?
<csmrfx> you mean, the value
<skullz> This is the hash, @total = {6=>{:price=>#<BigDecimal:5a2c178,'0.5458E2',18(27)>, :quantity=>2, :products_by_meta=>{218=>1004}}, 5=>{:price=>#<BigDecimal:59dfcb0,'0.438E2',18(27)>, :quantity=>2, :products_by_meta=>{218=>1971}}}
<epitron> agent.redirects = true; agent.follow_redirects = false; so much simpler
klmlfl_ has quit [Remote host closed the connection]
phrozen77 has quit [Ping timeout: 260 seconds]
<csmrfx> skullz: are you familiar with "ri"?
zeroNones has joined #ruby
zeroNones has quit [Max SendQ exceeded]
<epitron> skullz: i think you need a distance metric, since you have two dimensions now
<skullz> csmrfx: nope
klmlfl has joined #ruby
<ramfjord> or just sort by price -> total
{xenomorph} has quit [Ping timeout: 260 seconds]
<epitron> a simple distance metric is to come up with some common units
<epitron> then do euclidean distance
<csmrfx> ok you want to install "ri", open your terminal, and type "ri Enumerable", "ri Enumerable#sort_by" -- and perhaps "ri Hash" too
<epitron> (euclidean distance: sqrt(x**2 + y**2))
SCHAAP137 has joined #ruby
<ramfjord> coll.sort { |a,b| a[:quantity] = b[:quantity] ? b[:price] <=> a[:price] : a[:quantity] <=> b[:quantity] }
<ramfjord> ==*
<epitron> ramfjord: that's just a hierarchical sort
{xenomorph} has joined #ruby
<epitron> coll.sort_by { |a| [a[:quantity], a[:price]] }
<epitron> same thing :)
<ramfjord> price sort needs to be lower first
<ramfjord> quantity sort nees to be higher first
<epitron> coll.sort_by { |a| [a[:quantity], -a[:price]] }
<skullz> exactly!
<csmrfx> hehe, great to see #ruby still has bright and helpful people!
<epitron> i think you want a distance metric, though
<ramfjord> good point
<epitron> throw a negative sign in there!
<ramfjord> mmm
pskosinski_ is now known as pskosinski
ptrrr has quit [Quit: ptrrr]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phrozen77 has joined #ruby
<skullz> epitron: is that number theory?
<epitron> no, it's just geometry
<skullz> mmm
<epitron> imagine a plane
<epitron> price on one axis, quantity on the other
literary has joined #ruby
<literary> Never mind.
<epitron> you want to find everything in one corner of the graph
jjasonclark has joined #ruby
<literary> Figured it out.
literary has quit [Client Quit]
<epitron> right? :)
<sterns> ramfjord: resque looks perfect! I'm not using mysql yet, so redis will be fine. Do you have experience with any of the providers listed here : http://en.wikipedia.org/wiki/Redis
alvaro_o has joined #ruby
ta has quit [Read error: Connection reset by peer]
<skullz> yeah
n_blownapart has joined #ruby
<epitron> so, you could graph it
<skullz> Are you talking about simplex on 2d?
<epitron> OR, you could come up with a formula that finds the distance between points
qmfnp has joined #ruby
luckyruby has joined #ruby
<epitron> aka. a distance metric
ta has joined #ruby
<epitron> then you can sort by distance from that ideal point
<ramfjord> sterns: I've used redistogo
<ramfjord> it's fin
<epitron> (the ideal point being the corner you want)
<ramfjord> e
jjasonclark has quit [Client Quit]
<csmrfx> the reason why I simply referred to ri -docs -- the metric I can only guess at
tier has quit [Remote host closed the connection]
qmfnp has quit [Client Quit]
<ramfjord> epitron: why does hierarchical sort not work?
tier has joined #ruby
<epitron> ramfjord: because it's not weighing both values at the same time
<csmrfx> which is better? 1000 of the $1 items or 400 of the $3 items?
rh1n0 has joined #ruby
<sterns> epitron: ramfjord: Do you feel that the other solutions you mentioned are superior to nokogiri for the HTML fetching? All I'm doing with the files at the moment is writing them to disk and possibly into a RDB of some kind later.
<ramfjord> but he needs to prefer weighing quantity to weighing price
<ramfjord> I don't think it will help you donwload files
mleone has joined #ruby
<epitron> ramfjord: so he wants to buy a lot of something, and he doesn't care what it costs?
<ramfjord> sterns: nokogiri is a html parsing library?
<epitron> sterns: mechanize is is better than nokogiri, because it includes nokogiri :)
<csmrfx> sterns: I once made a scraper for a huge bunch of websites with nokogiri
<csmrfx> it worked fine
fsapo has quit [Remote host closed the connection]
<epitron> mechanize is nokogiri PLUS
nanoyak has quit [Quit: Lates.]
tier_ has joined #ruby
ohwhoa has joined #ruby
<ramfjord> "how can I get the element that has the lowest price from those who have the biggest quantity?
<csmrfx> hm, maybe I used open-uri
<sterns> ramfjord: epitron: sorry, I meant to refer to typhoeus / hydra
jimmyy has joined #ruby
benwoody has quit [Quit: benwoody]
<sterns> which is what I'm using now
jimmyy has quit [Max SendQ exceeded]
<epitron> hydra is good if you wanna go nuts with downloads
<sterns> too many gem names!
<skullz> Indeed I should be using something more clever... but it's ok for a MVP
jimmyy has joined #ruby
jimmyy has joined #ruby
<epitron> skullz: i still think you want to at least want a function that weights quantity and price
<csmrfx> actually, your problem is simply to define a clean metric
<skullz> the problem is, I need the most products I can get
<epitron> -want to
<ohwhoa> How to install unpacked ruby gem into system rubygems (without bundler and path option), also I need to put it in list when I type gem list. One solution is to install gem and then replace, but this is so shitty.
livcd has joined #ruby
<csmrfx> epitron: did you use bundler?
jdj_dk has quit [Remote host closed the connection]
jdj_dk has joined #ruby
wottam has joined #ruby
<sterns> epitron: Yes, I appreciate the concurrent request etc offered by typhoes / hydra. I'm not married to using ruby for this purpose. Do you think that hydra is one of the best solutions available for this purpose, regardless of language/stack?
jdj_dk has quit [Remote host closed the connection]
<epitron> skullz: instead of giving the user a sorted list, you could graph all the values
ta_ has joined #ruby
<epitron> skullz: then let them pick from a region in the chart... d3 is good for that
<livcd> Hey guys. What is the best way to interact with a website's elements ? Like logging,clicking on buttons etc
paulfm has quit []
tier has quit [Ping timeout: 245 seconds]
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<csmrfx> livcd: you mean, "scrape" a site?
<skullz> epitron: I'm plotting this data on a table (request from client...)
<ramfjord> skullz: If you just want an easy solution for the moment, try the code epitron or I pasted
aclearman037 has quit []
jhass is now known as jhass|off
<livcd> csmrfx: yeah basically
ta has quit [Read error: Connection reset by peer]
startupality has joined #ruby
<epitron> sterns: i dunno... i haven't used it. downloading a lot of stuff quickly is not usually the bottleneck :) you can always throw threads at the problem in ruby
<csmrfx> livcd: how about you read on nokogiri?
<epitron> skullz: tell the client you found a better solution :)
<epitron> skullz: or do both! :D
<csmrfx> livcd: unless you need a headless browser?
<csmrfx> for testing purposes theres many things
paulfm has joined #ruby
<skullz> both seems better (;
<epitron> skullz: d3 takes a couple minutes to make work if you already have a data table
codecop has quit [Remote host closed the connection]
tier has joined #ruby
<csmrfx> livcd: for testing sites selenium is common, theres headless browsers like capybara
<skullz> then it's just to pick up the right chart
sevvie has joined #ruby
wottam has quit [Ping timeout: 250 seconds]
tier_ has quit [Ping timeout: 246 seconds]
Deejay_ has quit [Quit: Computer has gone to sleep.]
boombadaroomba has quit [Remote host closed the connection]
<livcd> csmrfx: i don't think so...i need to interact with a web application which gets a stream of "items" and then i want to click on a button and fill certain forms
RaCx has joined #ruby
<sterns> epitron: I don't know if I'll be able to do it, but I'm hoping to be able to scale up downloading 10000 pages in about 15 seconds. I can currently do about 3000 in 15 seconds now with a single non-optimized server.
bklane has joined #ruby
DrShoggoth has joined #ruby
mallu has joined #ruby
decoponio has quit [Quit: Leaving...]
<livcd> csmrfx: i have been googling and found anemone and mechanize but came here to ask what's "best" for what i am trying to do
<livcd> csmrfx: yeah well read my statement above ^^
<csmrfx> (google scraping with ruby)
softaco_s has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
<sterns> epitron: the current server is also the main web server. jamming a bunch of requests through my main interface is not good for business
Haiiro is now known as Haiiro|Away
<csmrfx> livcd: well I've used nokogiri and mechanize
levisbakalinsky has joined #ruby
DrShoggoth has quit [Read error: Connection reset by peer]
<mallu> is it possible to tell erb(template) file to ignore a line?
<csmrfx> may be theres a new shiny thing out there
DrShoggoth has joined #ruby
<csmrfx> mallu: you mean - comment
gregf has quit [Quit: WeeChat 1.0.1]
<livcd> csmrfx: ok i guess i will read about nokogiri and mechanize and try to build up something :-) thanks for help !
<csmrfx> I suggest you try following that tutorial linked above!
jhass|off is now known as jhass
<livcd> csmrfx: right ! though i think that code in that tut is python and not ruby lol!
<csmrfx> wow, you're right
qmfnp has joined #ruby
<csmrfx> I should stick to stackoverflow
levisbakalinsky has quit [Ping timeout: 260 seconds]
<shevy> hehehe
<shevy> that's how ruby loses
<shevy> ruby hackers link in python articles :>
<csmrfx> lol I wish I was a ruby hacker
<csmrfx> I'm more of a "ruby geezer" - like the char from Fast Show
Kricir_ has quit [Remote host closed the connection]
<zenspider> nokogiri ships with plenty of examples and is well documented...
Gadgetoi- has quit [Quit: ZNC - http://znc.in]
ta_ has quit [Ping timeout: 246 seconds]
JoshGlzBrk has joined #ruby
Gadgetoid_ has joined #ruby
sevvie has quit [Ping timeout: 260 seconds]
<csmrfx> "I'm a little bit waayy, a little bit wooah, a little bit woosh.. I'm a geezer! I will hack anything!" https://www.youtube.com/watch?v=I8_U0q1jpzo#t=17
klmlfl has quit [Remote host closed the connection]
ohwhoa has quit [Quit: woah!]
klmlfl has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti! | http://www.ido.li]
Gadgetoid_ has quit [Client Quit]
ldnunes has quit [Quit: Leaving]
Gadgetoid_ has joined #ruby
ta has joined #ruby
carraroj has joined #ruby
benzrf is now known as benzrf|offline
atomi has joined #ruby
<j2p2> livcd: you might want to check out watir
sevvie has joined #ruby
Gadgetoid_ is now known as Gadgetoid
<j2p2> eh, I guess if you don't need to interact with it that probably isn't necessary though
<a_> csmrfx: haha, love that vid
kaspertidemann has joined #ruby
gregf has joined #ruby
paulfm has quit []
softaco_s has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nonks has quit [Ping timeout: 246 seconds]
<csmrfx> a_: Fast Show had some fun chars... and its fun to be an open source geezer, and nick code from every place possible!
rocknrollmarc has quit [Ping timeout: 265 seconds]
justin_pdx has quit [Quit: justin_pdx]
failshell has joined #ruby
justin_pdx has joined #ruby
qmfnp has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
rh1n0 has quit [Ping timeout: 240 seconds]
carraroj has quit [Quit: Konversation terminated!]
pu22l3r has quit [Ping timeout: 260 seconds]
OffTheRails has quit [Ping timeout: 240 seconds]
boombadaroomba has joined #ruby
sevvie has quit [Ping timeout: 260 seconds]
cicloid is now known as aCicloid
skolman_ has quit [Remote host closed the connection]
ghr has joined #ruby
livcd has quit [Quit: Lost terminal]
SpaceKookie has quit [Ping timeout: 260 seconds]
adac has quit [Ping timeout: 265 seconds]
explodes has quit [Ping timeout: 246 seconds]
skolman has joined #ruby
skolman_ has joined #ruby
xaxisx has quit [Quit: xaxisx]
bulters has joined #ruby
SpaceKookie has joined #ruby
jerius has quit []
Aaaal has joined #ruby
skolman has quit [Remote host closed the connection]
<shevy> I hate bugs
beef-wellington has quit [Ping timeout: 265 seconds]
skolman_ has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
<csmrfx> I love them, wouldn't have work without
Azure has joined #ruby
whatasunnyday has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
elektronaut has quit [Ping timeout: 260 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
<whatasunnyday> Hi! Does anyone know how I can get the string generated by a template in Sinatra?
elektronaut has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
ad_boot has joined #ruby
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ursooperduper has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
{xenomorph} has quit [Ping timeout: 260 seconds]
justinmburrous has joined #ruby
jasooon has joined #ruby
<whatasunnyday> csmrfx, not exactly sure what you mean but i think so
klmlfl has quit [Remote host closed the connection]
<csmrfx> whatasunnyday: can you yield the template?
klmlfl has joined #ruby
bbloom has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
<csmrfx> hm, are you using slim?
govg has joined #ruby
skolman_ has quit [Ping timeout: 260 seconds]
bbloom has joined #ruby
bklane has quit [Remote host closed the connection]
<whatasunnyday> just erb
govg is now known as Guest18385
<csmrfx> I'm hardly knowledgeable here...
{xenomorph} has joined #ruby
govg_ has joined #ruby
Guest18385 has quit [Client Quit]
<csmrfx> ...but erb handlers should return a string if I'm not mistaken?
bklane has joined #ruby
riceandbeans has quit [Ping timeout: 250 seconds]
GPH|work has quit [Ping timeout: 260 seconds]
<abstrakt> csmrfx, I think the potential issue is he doesn't want the stuff that looks like erb to be interpreted
<abstrakt> he may want the raw text version of the file
<abstrakt> in which case, whatasunnyday you'll need to serve those basically as static assets
AlSquire has quit [Quit: This computer has gone to sleep]
nonks has joined #ruby
Stalkr_ has joined #ruby
jasooon has quit [Ping timeout: 245 seconds]
<abstrakt> whatasunnyday, or you could try using the EJS gem to precompile them and serve that instead, either way the files will probably/basically go somewhere in your public/static assets folder
<whatasunnyday> Sorry, let me clarify. erb :index returns a page and I just want the page as a string. Precompiling is pretty much what I want to do so I'll check out EJS.
justinmburrous has quit [Ping timeout: 250 seconds]
jheg has joined #ruby
mistermocha has joined #ruby
<csmrfx> weird, I thought erb :index would return the page as a string 8D
AlSquire has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
ta_ has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
<abstrakt> csmrfx, erb templates and ejs templates use the same basic <% %> syntax
SpaceKookie has joined #ruby
ta has quit [Read error: Connection reset by peer]
<abstrakt> csmrfx, meaning erb will strip out the <% %>
tfitts has quit [Read error: Connection reset by peer]
kaspergrubbe_ has joined #ruby
tfitts has joined #ruby
<abstrakt> whatasunnyday, incidentally i think there's a sinatra plugin for this
<whatasunnyday> abstrakt, o rly
<csmrfx> ok for some reason I didn't see the javascript mention
<abstrakt> csmrfx, if he wants to deliver the <% etc so that javascript can use that for templating instead, he'll need to use some other method of delivery
mistermocha has quit [Remote host closed the connection]
VanillaGoat_ has quit [Ping timeout: 246 seconds]
riceandbeans has joined #ruby
<abstrakt> whatasunnyday, hmm, no maybe not... I think you'll just need to use a background/watch task to run the compile task when your EJS files change
<abstrakt> whatasunnyday, rails has automagic integration with EJS
<whatasunnyday> okay cool, i can manage that
kaspergr_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
gtc has quit [Quit: kill -9 gtc]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
icarus has quit [Remote host closed the connection]
eka has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
kaspergrubbe_ has quit [Read error: No route to host]
kirun has quit [Quit: Client exiting]
aCicloid is now known as cicloid
crunk_bear has joined #ruby
JoshGlzBrk has quit [Quit: Textual IRC Client: www.textualapp.com]
Azure has quit [Quit: Blue Sky Fish]
jrhe_ has joined #ruby
melik has joined #ruby
benzrf|offline is now known as benzrf
gtc has joined #ruby
andrewlio has quit [Quit: Leaving.]
Xeago has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
<mallu> csmrfx we are using chef template for managing a config file. When a particular service restart it update this config file which cause chef to update the file again during chef-client run. I was hoping that somehow I can have chef template ignore the lines the service update on the config file
<mallu> csmrfx
<abstrakt> mallu, ask #chef ?
<abstrakt> or is it #opscode
Pumukel has quit [Quit: ChatZilla 0.9.91 [Firefox 32.0.3/20140924083558]]
<mallu> I was hoping that there is a way in ruby to ignore lines in erb
doodlehaus has quit [Remote host closed the connection]
<csmrfx> well
skolman_ has joined #ruby
kenneth has joined #ruby
<csmrfx> since you cannot comment them, how about using separate files
<shevy> hmm we have .uniq
<shevy> but do we have the opposite of it? as in, one that returns only those entries that are duplicates?
wottam has joined #ruby
bklane has joined #ruby
bklane has quit [Remote host closed the connection]
<shevy> let me check that
<shevy> that does not work :(
<shevy> no
<shevy> oh
bklane has joined #ruby
<csmrfx> well isn't that just array minus the uniques
max96at is now known as max96at|off
bklane has quit [Read error: Connection reset by peer]
<shevy> >> array = %w( abc def ghi abc ); array - array.uniq
<eval-in__> shevy => [] (https://eval.in/206885)
<csmrfx> does drop return the dropped ones?
<shevy> hmm
<csmrfx> ie. drop if not uniq
bklane has joined #ruby
j2p2 has quit [Ping timeout: 255 seconds]
Bira has joined #ruby
<shevy> not sure how to use that
<shevy> drop wants an Integer it seems
<csmrfx> how about map?
wottam has quit [Ping timeout: 255 seconds]
aspires has quit []
levisbakalinsky has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
Asher has joined #ruby
<shevy> hmm
<shevy> I remember I must have some code somewhere that does that...
coderdad has quit [Remote host closed the connection]
momomomomo has joined #ruby
softaco_s has quit [Remote host closed the connection]
coderdad has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has joined #ruby
<csmrfx> >> ar = [1,2,3,4,5,6,6,7,7]; ar.detect { |it| ar.count(it) > 1 }
<eval-in__> csmrfx => 6 (https://eval.in/206886)
<csmrfx> gosh
KC9YDN has joined #ruby
<csmrfx> >> ar = [1,2,3,4,5,6,6,7,7]; ar.map { |it| ar.count(it) > 1 }
<eval-in__> csmrfx => [false, false, false, false, false, true, true, true, true] (https://eval.in/206887)
weemsledeux has joined #ruby
<csmrfx> and so on...
rbrs has quit [Remote host closed the connection]
<csmrfx> lol
<eval-in__> a_ => [6, 7] (https://eval.in/206890)
<csmrfx> >> ar = [1,2,3,4,5,6,6,7,7]; ar.map { |it| ar.count(it) > 1 }.uniq
<eval-in__> csmrfx => [false, true] (https://eval.in/206888)
<csmrfx> and maybe uniq on top
<a_> >> array = [1,2,3,4,5,6,6,7,7]; array.find_all { |it| array.count(it) > 1 }
<a_> >> array = [1,2,3,4,5,6,6,7,7]; array.find_all { |it| array.count(it) > 1 }.uniq
<csmrfx> eyah
<eval-in__> a_ => [6, 6, 7, 7] (https://eval.in/206889)
<epitron> >> [1,2,3,4,5,6,6,7,7].group_by{|e| e}.select {|k,ks| ks.size > 1}.map{|k,ks| k}
<eval-in__> epitron => [6, 7] (https://eval.in/206891)
yfeldblum has quit [Ping timeout: 260 seconds]
<csmrfx> select should work with the a_'s, too
<epitron> oh wait, this is rails 2.1
<epitron> >> [1,2,3,4,5,6,6,7,7].group_by{|e| e}.select {|k,ks| ks.size > 1}.keys
<eval-in__> epitron => [6, 7] (https://eval.in/206892)
<epitron> s/rails/ruby/ lol
<epitron> :D
Takle has quit [Remote host closed the connection]
tfitts has quit [Ping timeout: 255 seconds]
klmlfl_ has joined #ruby
coderdad has quit [Ping timeout: 246 seconds]
<csmrfx> lol I'm still on 1.9.3
Dwarf has quit [Ping timeout: 265 seconds]
JaMz- has joined #ruby
apeiros_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
n_blownapart has quit []
weemsledeux has quit [Ping timeout: 250 seconds]
CodeBunny has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
<mallu> how can I generate date like this in erb? Thu Oct 16 15:07:45 PDT 2014
apeiros has quit [Ping timeout: 240 seconds]
<benzrf> strftime probls
klmlfl has quit [Ping timeout: 244 seconds]
Eiam has joined #ruby
<a_> epitron: that is probably the most efficient way of doing it
JaMz- has left #ruby [#ruby]
kaspertidemann has quit []
justin_pdx has quit [Quit: justin_pdx]
JaMz has joined #ruby
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<epitron> a_: slightly more efficient would be where the values were just counters
justin_pdx has joined #ruby
Asher has quit [Quit: Leaving.]
jhass is now known as jhass|off
<epitron> >> counts = Hash.new(0); [1,2,3,4,5,6,6,7,7].each{|e| counts[e] += 1}; counts.select {|k,v| v > 1}.keys
<eval-in__> epitron => [6, 7] (https://eval.in/206893)
ferr has quit [Remote host closed the connection]
ozzloy has joined #ruby
CodeBunny has quit [Quit: CodeBunny needs a carrot. Be back later.]
leizzer has quit [Quit: WeeChat 0.4.2]
nonks has quit [Ping timeout: 250 seconds]
davasaurous has joined #ruby
dte has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
momomomomo has joined #ruby
thagomizer has quit [Quit: Leaving.]
jottr has quit [Ping timeout: 265 seconds]
Dwarf has joined #ruby
jottr has joined #ruby
<csmrfx> got fortress?
klmlfl_ has quit [Remote host closed the connection]
m8 has quit [Quit: Sto andando via]
spicerack has joined #ruby
northfurr has joined #ruby
klmlfl has joined #ruby
DrShoggoth has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
kith has quit [Read error: Connection reset by peer]
Lewix has quit [Quit: Leaving...]
kith has joined #ruby
jhass|off is now known as jhass
<shevy> csmrfx cool, I don't think I have used .find_all before
softaco_s has joined #ruby
<epitron> isn't find_all just select?
_fumk has joined #ruby
whoojemaflip has quit [Read error: Connection reset by peer]
<shevy> is it???
<shevy> don't say that man :(
whoojemaflip has joined #ruby
c107 has quit [Ping timeout: 260 seconds]
ghr has joined #ruby
_fumk has joined #ruby
volty has joined #ruby
<shevy> csmrfx tricked me
<shevy> you are right
<shevy> damn
_fumk has quit [Max SendQ exceeded]
Aaaal has quit [Read error: Connection reset by peer]
zenspider has quit [Ping timeout: 260 seconds]
<epitron> haha
Aaaal has joined #ruby
<epitron> it looks like there is a difference
<epitron> find_all works in enumerators
<epitron> and returns enumerators
atmosx has quit [Ping timeout: 264 seconds]
tanath__ has quit [Ping timeout: 264 seconds]
danguita has quit [Ping timeout: 264 seconds]
fumk has quit [Ping timeout: 255 seconds]
<epitron> no wait..
jlast has quit [Remote host closed the connection]
ramfjord has joined #ruby
nonks has joined #ruby
<shevy> if it looks like a duck
<shevy> and walks like a duck
jlast has joined #ruby
sinequanon has quit []
<epitron> oh, i was looking at the source to Array#select and Enumerable#find_all
fumk has joined #ruby
St_Marx has quit [Ping timeout: 264 seconds]
havenwood has quit [Ping timeout: 264 seconds]
end_guy has quit [Ping timeout: 264 seconds]
boombadaroomba has quit [Read error: Connection reset by peer]
certainty has quit [Ping timeout: 258 seconds]
<epitron> Enumerable#select is identical to Enumerable#find_all
zorak8 has quit [Ping timeout: 246 seconds]
<epitron> Array#select is slightly different, and Array#find_all is just Enumerable#find_all
zarubin has quit [Ping timeout: 258 seconds]
fabrice31 has quit [Ping timeout: 272 seconds]
FL1SK has quit [Ping timeout: 272 seconds]
qhartman has quit [Ping timeout: 260 seconds]
jerematic_ has quit [Ping timeout: 260 seconds]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
Aaaal has quit [Client Quit]
zenspider has joined #ruby
certainty has joined #ruby
ryao has joined #ruby
fumk has joined #ruby
ryao has quit [Ping timeout: 272 seconds]
MatthewsFace has quit [Ping timeout: 272 seconds]
fumk has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
KC9YDN has quit [Quit: Windows 8.1 LoL]
c107 has joined #ruby
fumk has quit [Max SendQ exceeded]
MatthewsFace has joined #ruby
FL1SK has joined #ruby
qhartman has joined #ruby
tfitts has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
emocakes has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
zarubin has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
jasooon has joined #ruby
jerematic_ has joined #ruby
<northfurr> dumb question… If i upgrade to yosemite will I have to setup RVM and ruby versions again
claw has joined #ruby
<DLSteve> northfurr, no
<claw> hey there anybody has a quick tip on how to generate a alphanumeric range ?
<DLSteve> northfurr, All my CLI stuff stransfered over.
ryao has quit [Ping timeout: 244 seconds]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
<northfurr> awesome
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
<northfurr> thanks DLSteve
ryao has joined #ruby
<DLSteve> northfurr, np, yah I had a lot of bash aliases and vagrant setups so I was worried myself.
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
msmith_ has quit [Remote host closed the connection]
JaMz has quit []
jimbach has quit [Remote host closed the connection]
mistermocha has joined #ruby
<volty> >> ('a1'..'a9').to_a
<eval-in__> volty => ["a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9"] (https://eval.in/206910)
jimbach has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
boombadaroomba has joined #ruby
fumk has joined #ruby
jasooon has quit [Ping timeout: 250 seconds]
davasaurous has quit [Remote host closed the connection]
yfeldblum has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
momomomomo has quit [Quit: momomomomo]
bklane has quit [Remote host closed the connection]
fumk has joined #ruby
rkalfane has joined #ruby
fumk has quit [Max SendQ exceeded]
hmsimha has joined #ruby
bklane has joined #ruby
chrishough has quit [Ping timeout: 265 seconds]
davasaur_ has joined #ruby
jimbach has quit [Ping timeout: 265 seconds]
whatasunnyday has quit [Quit: Leaving]
jobewan has quit [Quit: Leaving]
codeurge has joined #ruby
havenwood has joined #ruby
treehug88 has quit []
ramfjord has quit [Ping timeout: 240 seconds]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
dte has quit []
toretore has quit [Quit: This computer has gone to sleep]
Gadgetoid has quit [Quit: ZNC - http://znc.in]
chrishough has joined #ruby
fumk has joined #ruby
bklane has quit [Ping timeout: 246 seconds]
Notte has quit [Remote host closed the connection]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
jordsmi has quit [Quit: Connection closed for inactivity]
cicloid is now known as aCicloid
mistermocha has quit [Remote host closed the connection]
fumk has joined #ruby
bklane has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
bklane has quit [Remote host closed the connection]
bklane has joined #ruby
Gadgetoid has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
fumk has joined #ruby
SpaceKookie has joined #ruby
AlexRussia has quit [Ping timeout: 246 seconds]
djstorm has quit [Ping timeout: 272 seconds]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
aCicloid is now known as cicloid
northfurr has quit [Quit: northfurr]
fumk has joined #ruby
abstrakt has quit [Quit: Leaving]
thumpba has quit []
bulters has quit [Ping timeout: 240 seconds]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
Soda has quit [Remote host closed the connection]
lw has joined #ruby
lw has quit [Max SendQ exceeded]
fumk has joined #ruby
lampd1 has joined #ruby
fumk has quit [Max SendQ exceeded]
elektronaut has quit [Ping timeout: 260 seconds]
lw has joined #ruby
northfurr has joined #ruby
fumk has joined #ruby
maletor has quit [Read error: Connection reset by peer]
elektronaut has joined #ruby
dte has joined #ruby
chrishough has quit [Ping timeout: 260 seconds]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
davasaur_ has quit [Remote host closed the connection]
Atttwww has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
Azure has joined #ruby
dte is now known as mxrguspxrt
ramfjord has joined #ruby
wottam has joined #ruby
fumk has joined #ruby
devdazed has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
lampd1 has quit [Ping timeout: 272 seconds]
weemsledeux has joined #ruby
renderful has quit [Remote host closed the connection]
jeer has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
renderful has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
wottam has quit [Ping timeout: 255 seconds]
vieq has joined #ruby
Snerf_ has joined #ruby
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
nonks has quit [Ping timeout: 260 seconds]
renderful has quit [Remote host closed the connection]
fumk has joined #ruby
fumk has quit [Max SendQ exceeded]
dhardison has joined #ruby
sevvie has joined #ruby
mistermocha has joined #ruby
magikfx has joined #ruby
chrishough has joined #ruby
fumk has joined #ruby
mistermocha has quit [Remote host closed the connection]
coderdad has joined #ruby
fumk has joined #ruby
<mallu> how can I escape : ?
<mallu> I want to be able to do Time.now.strftime('%a' '%b' '%d' '%H':'%M':'%S' '%Z' '%Y') in a template but it doesn't like : between hour, minute and second
<zenspider> it doesn't like it because it isn't valid ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
mattmcclure has joined #ruby
northfurr has quit [Quit: northfurr]
<mallu> ok.. so how can I do it?
<zenspider> mallu: why do you have many single quoted strings there?
<csmrfx> mallu do you have ri installed?
<mallu> zenspider it was complaining without it
<csmrfx> $ ri Time.strftime is helpful
stunder has quit [Quit: Screw you guys I'm going home]
sailias has joined #ruby
coderdad has quit [Remote host closed the connection]
coderdad has joined #ruby
<mallu> no ri
<volty> >> Time.now.strftime("'%a' '%b' '%d' '%H':'%M':'' '%Z' '%Y'")
<eval-in__> volty => "'Thu' 'Oct' '16' '23':'05':'\u0013' 'UTC' '2014'" (https://eval.in/206919)
coderdad has quit [Remote host closed the connection]
<csmrfx> >> Time.strftime("This is now %T")
<csmrfx> >> Time.now.strftime("This is now %T")
<csmrfx> lol typical of me
bthesorceror has quit [Ping timeout: 258 seconds]
<zenspider> mallu: "it" == ruby. you need to learn the language to use it.
davasaurous has joined #ruby
<volty> wasn't there and advanced regex gem ?
sepp2k has quit [Read error: Connection reset by peer]
<zenspider> as you can see what volty put above, that's prolly not what you want
<volty> an
<zenspider> which means you need to write your string correctly... basic ruby syntax
<zenspider> volty: prolly many. what do you need?
goodenough has joined #ruby
havenwood has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
<csmrfx> my irb returns => "This is now 02:08:10"
jimbach has joined #ruby
sepp2k has joined #ruby
<volty> zenspider: https://eval.in/206920, done but I wonder if there is some stuff with which I can write (almost) one-liners. etc etc
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> volty: key = cont[/^Keys=(.*)$/, 1]
<benzrf> ^K
<volty> that one I forgot
<volty> yap
<zenspider> y = keys.split(...).map { |k| [k, url] }
drkyro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<zenspider> also: for the love of god... no tabs. use 2 spaces per indent
<ghostmoth> haha
<volty> cat & paste prob.; thx
<dhardison> i'm totally new to ruby and i need to write some test cases for this function: http://pastebin.com/3HKhVRGT what's the quickest way for me to get started?
statis has left #ruby [#ruby]
Haiiro|Away is now known as Haiiro
<csmrfx> dhardison: read a ruby book?
levisbakalinsky has quit [Ping timeout: 272 seconds]
jimbach has quit [Ping timeout: 265 seconds]
Raboo has quit [Ping timeout: 258 seconds]
<dhardison> csmrfx: that's a good idea but i need to get it done in a few hours
<csmrfx> perhaps, see a ruby video?
freerobby has quit [Quit: Leaving.]
<zenspider> volty: https://eval.in/206921
<zenspider> smells like homework
Raboo has joined #ruby
<dhardison> more like an interview question
j2p2 has joined #ruby
hmsimha has quit [Ping timeout: 240 seconds]
<csmrfx> "Introduction to Ruby"
<zenspider> dhardison: assuming you can ferret out what inject and reject mean, you should be able to write test cases on paper immediately
<volty> zenspider: thx, but you cannot apply merge to an enumerator. Anyway the idea is right
<dhardison> i think i got that part down - i read up on that, but the test case stuff i'm reading about loading up what sounds to me a lot of libraries to do it
<zenspider> that's horribly written code, btw
<dhardison> lol
<zenspider> if that is homework, I'd question where it is coming from
<volty> eh?
russt has quit [Quit: russt]
<zenspider> volty: wasn't sure what y was in this ... oh, now I see it. :P
<zenspider> you can do << tho ?
<volty> i am expert for rudeful teachers :)
jottr has quit [Ping timeout: 265 seconds]
<volty> yes, same as yield
<zenspider> dhardison: loading up what exactly?
Takle has joined #ruby
<dhardison> i downloaded rubymine and there's just a lot of folders and what not
<dhardison> and i'm questioning how much of that i actually need.
<zenspider> none of it
<zenspider> obviously. most of us don't use rubymine
<zenspider> if you have ruby installed, that's all you need
<zenspider> any text editor will work. terminal to run.
jhass is now known as jhass|off
SpaceKookie has quit [Ping timeout: 260 seconds]
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
<dhardison> csmrfx: thanks for the video - im watching it now btw
<csmrfx> I would install irb and ri
<csmrfx> code examples past 8 minutes
jheg has quit [Quit: jheg]
cicloid is now known as aCicloid
sailias has quit [Quit: Leaving.]
heftig has quit [Ping timeout: 260 seconds]
<csmrfx> (irb so you can test whatever, and ri to show docs)
<volty> irb, ri, a nice quickref, and, above all, a nice book
Takle_ has joined #ruby
heftig has joined #ruby
tkuchiki has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
SpaceKookie has joined #ruby
_whitelogger has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
weemsledeux has joined #ruby
sbar_ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
pu22l3r has quit [Remote host closed the connection]
_whitelogger has joined #ruby
tkuchiki has quit [Remote host closed the connection]
pu22l3r has joined #ruby
tkuchiki has joined #ruby
blackmes1 has quit [Quit: WeeChat 1.0.1]
sepp2k has joined #ruby
echevemaster has joined #ruby
sailias has joined #ruby
davasaurous has quit [Remote host closed the connection]
wald0 has joined #ruby
<volty> so, is there something advanced that can slurp into arrays ^Keys=(.*)$ and ^Query=(.*)$? (I am just curious what is out there, in the world of the gems).
phrozen77 has quit [Ping timeout: 260 seconds]
hmsimha has joined #ruby
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
jhass|off is now known as jhass
<csmrfx> whats "slurp"
garbanotas has quit [Ping timeout: 272 seconds]
<zenspider> volty: I've given you everything you need to do that in one line
phrozen77 has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
<zenspider> text[/regexp/, 1].split(/,/)
larissa has joined #ruby
c107 has quit [Remote host closed the connection]
fella7s has joined #ruby
<volty> zenspider: I said at the beginning that I do not have problems -- that I am just curious
ghr has quit [Ping timeout: 240 seconds]
<volty> I already modified my code (and thanked you)
sailias has quit [Client Quit]
emmesswhy has joined #ruby
KC9YDN has joined #ruby
boombadaroomba has left #ruby [#ruby]
goodenough has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 272 seconds]
icebourg has quit []
<csmrfx> ri slurp
<csmrfx> Nothing known about .slurp
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
sailias has joined #ruby
jasooon has joined #ruby
<volty> i do not talk to strict context ppl, sorry csmrfx :)
nonks has quit [Ping timeout: 250 seconds]
thisguy133 has left #ruby [#ruby]
thisguy133 has joined #ruby
levisbakalinsky has joined #ruby
fella6s has quit [Ping timeout: 245 seconds]
<zenspider> volty: so I'd add a method parse_keys(text, regexp) to wrap it up and make it obvious what it is for
weemsledeux has quit [Quit: Textual IRC Client: www.textualapp.com]
KC9YDN has quit [Client Quit]
thisguy123 has joined #ruby
<volty> no no, i found it how, working on it (for fun, since tired and lazy)
<thisguy123> is there a rails channel?
<volty> cont.scan /^(Keys|Query)=(.*)$/
_whitelogger has joined #ruby
x77686d has joined #ruby
<apeiros_> thisguy123: no. #rubyonrails is the rails channel. aka #ror and #rails
jasooon has quit [Ping timeout: 260 seconds]
nonks has joined #ruby
<apeiros_> pong banisterfiend. sorry, was (and still am) cleaning my home office room :-S
graft has quit [Ping timeout: 255 seconds]
sedai has joined #ruby
davasaurous has joined #ruby
<thisguy123> i get sent to ##namespace when i try to join #rubyonrails
<thisguy123> sry, kind of an IRC noob
apeiros_ is now known as apeiros
sevvie has quit [Ping timeout: 250 seconds]
Takle_ has quit [Read error: Connection reset by peer]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
pu22l3r_ has joined #ruby
<zenspider> volty: that's not going to give you what you want...
<apeiros> thisguy123: you need to have your nick registered to join #ror
<apeiros> thisguy123: /msg nickserv help register
<thisguy123> thnx
thisguy123 has left #ruby [#ruby]
thisguy123 has joined #ruby
thisguy123 has left #ruby [#ruby]
thisguy123 has joined #ruby
hellangel7 has joined #ruby
<thisguy123> still can't get in to #ror, I'm registered
x77686d has quit [Ping timeout: 272 seconds]
<volty> zenspider: i'm fine, cont.scan(/^(Keys|Query)=(.*)$/).to_h, and will see after how to handle multiple keys
davasaurous has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 255 seconds]
<csmrfx> maybe try with ##
pu22l3r has quit [Ping timeout: 246 seconds]
ad_boot has quit [Quit: ad_boot]
davedev24_ has quit [Read error: Connection reset by peer]
<volty> (i'm going to collect them)
davedev24_ has joined #ruby
<apeiros> thisguy123: registered and authenticated?
elektronaut has quit [Ping timeout: 260 seconds]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
mikeg has quit [Remote host closed the connection]
<thisguy123> yep, it says I'm logged in
<apeiros> hm, then you should be able to join
thisguy123 has left #ruby ["ruby"]
elektronaut has joined #ruby
thisguy123 has joined #ruby
thisguy123 is now known as thisguy1234
devdazed has quit [Quit: Bye]
bentanweihao has joined #ruby
startupality has quit [Quit: startupality]
_fumk has joined #ruby
_fumk has quit [Max SendQ exceeded]
kaspergr_ is now known as kaspergrubbe
davasaurous has joined #ruby
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
djbkd has quit [Remote host closed the connection]
jnylen has quit [Quit: WeeChat 1.0]
thisguy1234 has left #ruby [#ruby]
Bira has joined #ruby
fumk has quit [Ping timeout: 255 seconds]
sevvie has joined #ruby
jerematic_ has quit [Ping timeout: 272 seconds]
benwoody has joined #ruby
dx7_ has joined #ruby
thisguy123 has joined #ruby
bentanweihao has quit [Remote host closed the connection]
<volty> i can't remember if there, and how if there: e.reduce(...) i receive { |accum, obj|, obj is a pair (an array), i want { |accum, k, v| but do not remember the syntax (if there at all)
<thisguy123> It looks like im joining #ror then getting kicked back to a NickServ window? does that help at all?
fumk has joined #ruby
benwoody has quit [Client Quit]
dx7_ has quit [Remote host closed the connection]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
<ramfjord> volty: I'm pretty sure there's no such method, but its only a little line to do
skolman_ has joined #ruby
djbkd has joined #ruby
skolman_ has quit [Remote host closed the connection]
lampd1 has joined #ruby
bklane has quit [Remote host closed the connection]
{xenomorph} has quit [Ping timeout: 260 seconds]
jhass is now known as jhass|off
_whitelogger has joined #ruby
fumk has quit [Max SendQ exceeded]
AlexRussia has joined #ruby
fumk has joined #ruby
<zenspider> volty: { |acc, (k, v)| ... }
<volty> ramfjord: thx, I remember there was talking about the syntax on how to do it directly in the params list, but maybe it was dropped, or my memory spoiled
<volty> zen
DLSteve has quit [Quit: Leaving]
<dhardison> what would you consider doing to improve the following function: http://pastebin.com/3HKhVRGT
<dhardison> (what i pasted earlier basically)
<volty> yes, there was, and remained
<dhardison> chaining it together?
dx7_ has quit [Ping timeout: 250 seconds]
a_ has quit [Ping timeout: 245 seconds]
jerematic_ has joined #ruby
wottam has joined #ruby
<zenspider> dhardison: lots. writing it idiomatically would be a start.
qhartman has quit [Quit: Ex-Chat]
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
skolman_ has quit [Ping timeout: 258 seconds]
<zenspider> dhardison: but as I said before: smells like homework
ad_boot has joined #ruby
<dhardison> interview question
a_ has joined #ruby
bklane has quit [Ping timeout: 260 seconds]
sailias has quit [Quit: Leaving.]
<zenspider> dhardison: same thing.
* csmrfx checks
<zenspider> where are you interviewing? and what sort of position?
<csmrfx> "would I qualify for the job"
<dhardison> just a general developer but apparently they use ruby for something
<csmrfx> B)
<dhardison> hehe
<zenspider> and if I improve the code, do _I_ get the job?
<volty> at the _|_ :)
mary5030 has joined #ruby
<dhardison> not sure, there's other requirements too such as understanding tcp/ip
<dhardison> this is where i'm lacking though
<dhardison> so maybe -- you should apply
<dhardison> :)
jhass|off is now known as jhass
<zenspider> where is it?
thisguy123 has left #ruby [#ruby]
bthesorceror has joined #ruby
<dhardison> i'll tell you after i'm done applying :)
<banisterfiend> dhardison for a start don't give your variables such demented names
<zenspider> sorry... hayduke
<zenspider> heyduke
nonks has joined #ruby