baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
nobitanobi has joined #ruby
athan has quit [Read error: Connection reset by peer]
deconfigured has joined #ruby
yfeldblu_ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
commmmodo has joined #ruby
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
athan has joined #ruby
Takle has quit [Remote host closed the connection]
deconfigured has quit [Ping timeout: 256 seconds]
elsimate has joined #ruby
Sid05 has joined #ruby
oo_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
n80 has joined #ruby
oo_ has joined #ruby
elsimate has quit [Remote host closed the connection]
knut has joined #ruby
tunaCanBruh has quit [Ping timeout: 244 seconds]
jottr has quit [Ping timeout: 264 seconds]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby
mjwhitta has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
Aswebb_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jhebden has joined #ruby
krisquigley has joined #ruby
tyfighter has quit [Quit: tyfighter]
josephndenton has joined #ruby
cmckee has joined #ruby
freerobby has joined #ruby
Kricir has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Aswebb_ has quit [Ping timeout: 245 seconds]
freerobby has quit [Client Quit]
tjohnson has quit [Quit: Connection closed for inactivity]
snath has quit [Ping timeout: 245 seconds]
perturbation has quit [Quit: back later]
krisquigley has quit [Ping timeout: 240 seconds]
SOLDIERz has joined #ruby
bricker has quit [Quit: leaving]
josephndenton has quit [Ping timeout: 250 seconds]
kayloos has joined #ruby
triple_b has joined #ruby
Deithrian has quit [Ping timeout: 264 seconds]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_ixti_ has quit [Quit: WeeChat 1.0.1]
kalusn has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
kayloos has quit [Remote host closed the connection]
OrbitalKitten has joined #ruby
kalusn has joined #ruby
snath has joined #ruby
penzur has quit [Remote host closed the connection]
penzur has joined #ruby
penzur has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 264 seconds]
LudicrousMango has joined #ruby
SOLDIERz has quit [Ping timeout: 256 seconds]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
riotjones has joined #ruby
mrmargolis has quit [Remote host closed the connection]
kalusn has quit [Ping timeout: 245 seconds]
Channel6 has joined #ruby
cmckee has quit [Quit: cmckee]
riotjones has quit [Ping timeout: 245 seconds]
recurrence has quit [Quit: recurrence]
mib_mib has joined #ruby
codeFiend has joined #ruby
dc has joined #ruby
Vile` has quit [Ping timeout: 245 seconds]
codeFiend is now known as aeontech
fandi has quit [Read error: Connection reset by peer]
<mib_mib>
hi - using ruby 2.1 - i have a method like : def mymethod(arg1, argkey: ['default1','default2'], &blk) ... end, and when i try to call it with a block, the blk param is always nil - is this a symptom of how i'm using named params?
mjwhitta has quit [Quit: leaving]
icbm has quit [Quit: Leaving]
amclain has joined #ruby
atomi has joined #ruby
dc has quit [Remote host closed the connection]
<mib_mib>
scratch that, it was me missing an 'end' basically and it being interpreted wrong
Vile` has joined #ruby
Aova has quit [Read error: Connection reset by peer]
DadoCe has joined #ruby
jhebden has quit [Ping timeout: 264 seconds]
hamakn has joined #ruby
baweaver has quit [Remote host closed the connection]
tvw has quit []
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
sinkensabe has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
Aova has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
DadoCe has quit [Ping timeout: 264 seconds]
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
deric_skibotn has quit [Ping timeout: 252 seconds]
ninjazach has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
sinkensabe has quit [Ping timeout: 250 seconds]
hamakn has joined #ruby
mroach has joined #ruby
lethjakm1 has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
blackoperat has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
cpt_yossarian has quit [Read error: Connection reset by peer]
CpuID2 has joined #ruby
CpuID2 has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
lethjakm1 has quit [Ping timeout: 246 seconds]
hamakn_ has quit [Read error: Connection reset by peer]
cmckee has joined #ruby
hamakn has joined #ruby
iliketurtles has joined #ruby
danzilio has quit [Quit: baiiiii!]
perturbation has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
vozcelik has joined #ruby
blackoperat has quit [Quit: blackoperat]
silkfox has quit [Ping timeout: 252 seconds]
hamakn has quit [Read error: Connection reset by peer]
blackoperat has joined #ruby
hamakn has joined #ruby
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
blackoperat has quit [Client Quit]
Musashi007 has joined #ruby
blackoperat has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
mib_mib has quit [Ping timeout: 246 seconds]
jerematic has joined #ruby
checkit has quit [Ping timeout: 264 seconds]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
pengin has joined #ruby
nii236|irssi has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
ARCADIVS has quit [Quit: ARCADIVS]
hamakn has joined #ruby
hamakn_ has quit [Read error: Connection reset by peer]
<mathstuf>
hi, i have two stdout streams from Open3.popen; what is the best way to merge both together into a single stream (one after another)?
mitchellhenke has joined #ruby
lethjakm1 has quit [Ping timeout: 245 seconds]
blackoperat has quit [Ping timeout: 256 seconds]
towski_ has quit [Remote host closed the connection]
mathstuf has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
dc has joined #ruby
kp666 has joined #ruby
danmanstx has joined #ruby
penzur has joined #ruby
pdoherty has joined #ruby
penzur has quit [Read error: Connection reset by peer]
penzur has joined #ruby
danzilio has quit [Quit: baiiiii!]
penzur has quit [Read error: Connection reset by peer]
mathstuf has joined #ruby
livingstn has quit []
SOLDIERz has quit [Ping timeout: 250 seconds]
penzur has joined #ruby
Kricir has joined #ruby
penzur has quit [Read error: Connection reset by peer]
jhebden has joined #ruby
Troy^ has joined #ruby
penzur has joined #ruby
penzur has quit [Read error: Connection reset by peer]
hmsimha has quit [Ping timeout: 252 seconds]
penzur has joined #ruby
penzur has quit [Read error: Connection reset by peer]
knut has quit [Ping timeout: 255 seconds]
pdoherty has quit [Ping timeout: 250 seconds]
hmsimha has joined #ruby
phutchins has quit [Ping timeout: 252 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
lethjakm1 has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dimaursu16 has quit [Ping timeout: 255 seconds]
danmanstx has quit [Ping timeout: 245 seconds]
Aova has quit [Read error: Connection reset by peer]
oleo is now known as Guest14469
oleo__ has joined #ruby
lethjakm1 has quit [Ping timeout: 246 seconds]
tyfighter has quit [Quit: tyfighter]
mathstuf has left #ruby [#ruby]
Guest14469 has quit [Ping timeout: 265 seconds]
selaruvich has joined #ruby
sinkensabe has joined #ruby
wallerdev has joined #ruby
athan has joined #ruby
Aova has joined #ruby
swgillespie has joined #ruby
nii236|irssi has joined #ruby
StreetlampSalad has joined #ruby
lightstalker has joined #ruby
Musashi007 has quit [Quit: Musashi007]
sinkensabe has quit [Ping timeout: 252 seconds]
Kricir has quit [Remote host closed the connection]
ItSANgo_ has quit [Quit: Leaving...]
Kricir has joined #ruby
Sid05 has quit [Quit: Sid05]
krz has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
EvanFreeman has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
commmmodo has quit [Quit: commmmodo]
lrocknrolmarc has joined #ruby
rocknrollmarc has joined #ruby
goshdarnyou has joined #ruby
Kricir has quit [Ping timeout: 256 seconds]
nii236|irssi has quit [Ping timeout: 252 seconds]
jhebden has quit [Ping timeout: 255 seconds]
marcdel has joined #ruby
lethjakm1 has joined #ruby
fmcgeough has joined #ruby
oo_ has quit [Remote host closed the connection]
amystephen has quit [Ping timeout: 244 seconds]
mbrumbelow has joined #ruby
rbennacer has quit [Ping timeout: 252 seconds]
EvanFreeman has quit [Ping timeout: 244 seconds]
fedalto has quit [Quit: leaving]
rocknrollmarc has quit [Ping timeout: 250 seconds]
lrocknrolmarc has quit [Ping timeout: 264 seconds]
selaruvich has quit [Ping timeout: 244 seconds]
lethjakm1 has quit [Ping timeout: 252 seconds]
_djbkd has quit [Read error: Connection reset by peer]
triple_b has joined #ruby
fmcgeough has quit [Ping timeout: 264 seconds]
m00zy has joined #ruby
<m00zy>
hi
BigRonnieRon has joined #ruby
<m00zy>
I have following code using mechanize to post form auth and to download the file - http://pastie.org/9891086
Aswebb_ has joined #ruby
<m00zy>
my problem is it dies on first entry from CSV and doesn't go ahead anymore with other entries
hmsimha has quit [Ping timeout: 252 seconds]
<m00zy>
it dies because first entry in CSV is not accessible
<m00zy>
I would like to ignore this and continue with other entries from the csv
jenrzzz has quit [Ping timeout: 264 seconds]
n008f4g_ has quit [Ping timeout: 240 seconds]
lampd1 has quit [Remote host closed the connection]
<m00zy>
the error is: `rescue in connection_for': connection refused: 10.101.165.25:80 (Net::HTTP::Persistent::Error)
<diegoviola>
I need to parse some files that have tabular data, like columns of data with tabs
<diegoviola>
how do I go into doing this please?
krisquigley has joined #ruby
lioninawhat has joined #ruby
ajaiswal has joined #ruby
Aswebb_ has quit [Ping timeout: 252 seconds]
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nb_bez___ has quit [Quit: Connection closed for inactivity]
krisquigley has quit [Ping timeout: 246 seconds]
Wolland has joined #ruby
Wolland has quit [Client Quit]
lethjakm1 has joined #ruby
totimkopf has quit [Read error: Connection reset by peer]
tmtwd has joined #ruby
neersighted has quit [Quit: Updating details, brb]
neersighted has joined #ruby
mikepack has quit [Remote host closed the connection]
neersighted has quit [Client Quit]
neersighted has joined #ruby
selaruvich has joined #ruby
lethjakm1 has quit [Ping timeout: 245 seconds]
Musashi007 has joined #ruby
Lemur has joined #ruby
adriancb has joined #ruby
pwnz0r has joined #ruby
sindork has quit [Ping timeout: 265 seconds]
riotjones has joined #ruby
seanmarcia has quit [Ping timeout: 265 seconds]
rbennacer has joined #ruby
Hijiri has quit [Ping timeout: 246 seconds]
brixen has quit [Ping timeout: 246 seconds]
krz has joined #ruby
ItSANgo has joined #ruby
DanKnox has quit [Ping timeout: 252 seconds]
SirFunk has quit [Ping timeout: 272 seconds]
Kovensky has quit [Ping timeout: 264 seconds]
blackoperat has joined #ruby
sptq has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
Gnubie_ has quit [Ping timeout: 264 seconds]
astrobunny has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 264 seconds]
CpuID2 has quit [Quit: This computer has gone to sleep]
commmmodo has joined #ruby
jenrzzz has joined #ruby
rbennacer has quit [Remote host closed the connection]
x77686d has joined #ruby
lethjakm1 has joined #ruby
blackoperat has quit [Quit: blackoperat]
tus has quit []
yosafbridge has quit [Ping timeout: 252 seconds]
DEA7TH has quit [Ping timeout: 246 seconds]
crdpink has joined #ruby
SOLDIERz has joined #ruby
braincrash has quit [Quit: bye bye]
astrobunny has joined #ruby
dixie__ has joined #ruby
<dixie__>
Hello, World!
zzzbra has joined #ruby
lethjakm1 has quit [Ping timeout: 245 seconds]
Guest46487 has quit [Ping timeout: 264 seconds]
Lorn has quit [Ping timeout: 256 seconds]
xybre has quit [Ping timeout: 245 seconds]
phutchins has joined #ruby
braincrash has joined #ruby
seanmarcia has joined #ruby
Gnubie_ has joined #ruby
yosafbridge has joined #ruby
mitchellhenke has joined #ruby
<selaruvich>
dixie__
SirFunk has joined #ruby
<selaruvich>
puts "Hello World"
sptq has joined #ruby
mumblerit has joined #ruby
DanKnox has joined #ruby
<dixie__>
selaruvich: yes?
xybre has joined #ruby
brixen has joined #ruby
mumblerit is now known as Guest23651
soxet has quit [Ping timeout: 252 seconds]
sindork has joined #ruby
Lorn has joined #ruby
JoshGlzBrk has joined #ruby
<selaruvich>
how are you dixie__
Kovensky has joined #ruby
Wolland has joined #ruby
enterprisedc has quit [Quit: enterprisedc]
sudog has quit [Ping timeout: 250 seconds]
SOLDIERz has quit [Ping timeout: 245 seconds]
phutchins has quit [Ping timeout: 240 seconds]
enterprisedc has joined #ruby
<dixie__>
selaruvich: fantastic. yourself?
uptownhr has joined #ruby
arescorpio has quit [Excess Flood]
Sawbones has joined #ruby
Aova has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
<selaruvich>
alright yo
astrobunny has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
dimaursu16 has joined #ruby
Cache_Money has joined #ruby
pwnz0r has quit [Remote host closed the connection]
lethjakm1 has joined #ruby
anaeem1_ has joined #ruby
sinkensabe has joined #ruby
Aova has joined #ruby
cjim_ has joined #ruby
_djbkd has joined #ruby
davedev2_ has joined #ruby
startupality has quit [Quit: startupality]
jerematic has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
StreetlampSalad has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 246 seconds]
vdamewood has joined #ruby
_djbkd has quit [Client Quit]
anaeem1 has joined #ruby
yosafbridge has quit [Ping timeout: 245 seconds]
tyfighter has joined #ruby
lethjakm1 has quit [Ping timeout: 252 seconds]
selaruvich has quit [Ping timeout: 250 seconds]
sinkensabe has quit [Ping timeout: 264 seconds]
lioninawhat has quit [Quit: Leaving...]
shum has quit [Quit: WeeChat 1.1.1]
soxet has joined #ruby
x77686d has quit [Quit: x77686d]
p3ery has quit [Quit: (null)]
jerematic has quit [Ping timeout: 265 seconds]
longfeet has quit [Ping timeout: 244 seconds]
lioninawhat has joined #ruby
towski_ has joined #ruby
piotrj has joined #ruby
waynerade has joined #ruby
oo_ has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
lethjakm1 has joined #ruby
Hijiri has joined #ruby
oo_ has quit [Ping timeout: 250 seconds]
philwantsfish has joined #ruby
dixie__ has quit [Ping timeout: 255 seconds]
scripore has quit [Quit: This computer has gone to sleep]
StreetlampSalad has joined #ruby
lethjakm1 has quit [Ping timeout: 250 seconds]
n80 has quit [Quit: n80]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
sinequanon has joined #ruby
scripore has joined #ruby
tubuliferous has quit [Read error: Connection reset by peer]
cjim_ has quit [Read error: Connection reset by peer]
cjim__ has joined #ruby
jlast has quit [Remote host closed the connection]
jlast has joined #ruby
tyfighter has quit [Quit: tyfighter]
Musashi007 has quit [Quit: Musashi007]
craigp has quit [Remote host closed the connection]
zacstewart has quit [Remote host closed the connection]
oo_ has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
cmckee has quit [Quit: cmckee]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
uptownhr has quit [Quit: uptownhr]
Ivision has joined #ruby
astrobunny has joined #ruby
piotrj has quit [Ping timeout: 245 seconds]
lethjakm1 has joined #ruby
apurcell has quit [Quit: Be back later ...]
piotrj has joined #ruby
StreetlampSalad has quit []
uptownhr has joined #ruby
astrobunny has quit [Ping timeout: 245 seconds]
lethjakm1 has quit [Ping timeout: 265 seconds]
thatslifeson has joined #ruby
x1337807x has joined #ruby
apurcell has joined #ruby
aapole has quit [Ping timeout: 255 seconds]
jefus has quit [Ping timeout: 255 seconds]
krz has quit [Quit: WeeChat 1.0.1]
oo_ has quit [Remote host closed the connection]
piotrj has quit [Read error: Connection reset by peer]
<blizzy>
so, when I have ruby classes, it'll say something like #<FooBar:0x204af28>. Python has __unicode__, to make it read better. is there something like that for Ruby?
<apeiros_>
shock_one: start by subtracting 1, then 2 from the result etc.
lrocknrolmarc has quit [Ping timeout: 244 seconds]
rocknrollmarc has quit [Ping timeout: 244 seconds]
psy_ has joined #ruby
<shock_one>
I want something like this. foo(50, size: 5..10) # => [5,7,12,3, 21, 2]
psy_ has quit [Max SendQ exceeded]
psy_ has joined #ruby
piotrj has quit []
lampd1 has quit [Remote host closed the connection]
marcdel has quit []
craigp has quit [Ping timeout: 245 seconds]
livathinos has quit [Ping timeout: 250 seconds]
Grumelo has joined #ruby
<apeiros_>
shock_one: yes, what I said allows you to implement that.
mroach has joined #ruby
Guest76 has joined #ruby
wallerdev has joined #ruby
msgodf has joined #ruby
Aswebb_ has joined #ruby
Deithrian has joined #ruby
jhebden has quit [Ping timeout: 265 seconds]
<shock_one>
I'm not sure I understood you. So, a pseudo code like this will generate the sequence you recommend, what's next? [1..].take_while(array.sum <= total)
lrocknrolmarc has joined #ruby
lele has joined #ruby
lele|m has quit [Quit: bye!]
<apeiros_>
shock_one: so if you don't understand an answer, you just ignore it?
mroach has quit [Client Quit]
jenrzzz has joined #ruby
rylev has joined #ruby
krisquigley has joined #ruby
<shock_one>
I'm sorry, I didn't mean anything like that. Just wanted to make sure we're speaking about the same thing.
viki_ has quit [Quit: Connection closed for inactivity]
<catsoup>
potentially a threading error over multiple http connections
shum1 has quit [Remote host closed the connection]
jhebden has joined #ruby
tokik has quit [Ping timeout: 255 seconds]
scripore has joined #ruby
gfawcettpq has joined #ruby
rkgudboy has quit [Read error: Connection reset by peer]
josephcs has quit [Remote host closed the connection]
abuzze has quit [Remote host closed the connection]
josephcs has joined #ruby
rkgudboy has joined #ruby
Spami has quit [Ping timeout: 240 seconds]
Spami_ has joined #ruby
lrocknrolmarc has joined #ruby
abuzze has joined #ruby
Axy has quit [Read error: Connection timed out]
lampd1 has joined #ruby
Axy has joined #ruby
abuzze_ has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
eka has joined #ruby
livathin_ has joined #ruby
<gizmore>
i am still having troubles installing rbenv on debian... i assume the PATH is not set when "rbenv init" is evaluated. Does anyone know if bashrc or profile is loaded first?
lrocknrolmarc has quit [Ping timeout: 264 seconds]
<shevy>
I assume profile gets loaded first
lampd1 has quit [Ping timeout: 264 seconds]
<gizmore>
thank you... i will try this first then :)
LudicrousMango has joined #ruby
livathinos has quit [Ping timeout: 245 seconds]
lanemeyer has joined #ruby
pdoherty has joined #ruby
<gizmore>
shevy: thanks again... it worked like you said
quimrstorres has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
Wolland has joined #ruby
LudicrousMango has quit [Ping timeout: 245 seconds]
quimrstorres has joined #ruby
In-Runner has joined #ruby
<In-Runner>
4, Is true that Bill Gates is gay ?
<shevy>
gizmore \o/
<shevy>
In-Runner learn ruby man, help us dethrone perl and python
<catsoup>
never gonna happen :-)
<leafybasil>
shevy: too late, perl 6 end of 2015
<gizmore>
dethrone_ruby unless In-Runner.paused?
<catsoup>
the internet is stuck together with perl
<leafybasil>
say goodbye to your beloved rubby
Rollabunna has joined #ruby
sigurding has quit [Quit: sigurding]
Takle_ has quit [Remote host closed the connection]
pdoherty has quit [Ping timeout: 265 seconds]
Aova has quit [Read error: Connection reset by peer]
<shevy>
leafybasil yeah that is like the year of the desktop linux
last_staff has joined #ruby
Wolland has quit [Ping timeout: 250 seconds]
Ridley5 is now known as zzz_Ridley
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has quit [Quit: This computer has gone to sleep]
jhebden has quit [Ping timeout: 264 seconds]
Aova has joined #ruby
reinaldob_ is now known as reinaldob
Troy^ has joined #ruby
rocknrollmarc has quit [Ping timeout: 264 seconds]
In-Runner has quit []
lrocknrolmarc has joined #ruby
Takle has joined #ruby
rocknrollmarc has joined #ruby
<apeiros_>
ak-uk: with quotes
Ivision has quit [Read error: Connection reset by peer]
<apeiros_>
Gemfile is ruby code, so it must be valid ruby syntax.
m00zy has joined #ruby
Ivision has joined #ruby
Troy^ has quit [Client Quit]
<ak-uk>
I tried that but it didn't help
<apeiros_>
ak-uk: I don't know what "didn't help" means.
<ak-uk>
trying things with mysql - testing server so doesnt matter so much which db engine I use
zzz_Ridley is now known as Ridley5
blackmes1 has joined #ruby
<ak-uk>
as in, I still get the same error :)
llrocknromarc has joined #ruby
<apeiros_>
ak-uk: you run it with `bundle exec` and running `bundle list` lists the gem?
diegoviola has joined #ruby
lrocknrolmarc has quit [Ping timeout: 250 seconds]
<apeiros_>
ak-uk: dude, use a paste service which doesn't have 5s time limits…
max96at|off is now known as max96at
<apeiros_>
ak-uk: anyway, assuming it's the correct gem you've added, then it's a bug in the software you're using
<apeiros_>
(and you should report it)
rkgudboy has quit [Read error: Connection reset by peer]
<apeiros_>
it either misreports the error (e.g. loading the gem causes an exception and it swallows that and just says "not installed" instead of the actual error), or it misreports which gem it needs.
last_staff has quit [Quit: last_staff]
<ak-uk>
ok thanks
rkgudboy has joined #ruby
sandelius has joined #ruby
rocknrollmarc has quit [Ping timeout: 250 seconds]
sandelius has quit [Client Quit]
tkuchiki has quit [Ping timeout: 245 seconds]
sandelius has joined #ruby
SOLDIERz has joined #ruby
llrocknromarc has quit [Ping timeout: 245 seconds]
jerematic has joined #ruby
llrocknromarc has joined #ruby
Ridley5 is now known as zzz_Ridley
jottr has joined #ruby
kirun has quit [Remote host closed the connection]
jlast has joined #ruby
SOLDIERz has quit [Ping timeout: 245 seconds]
jerematic has quit [Ping timeout: 244 seconds]
last_staff has joined #ruby
Wolland has joined #ruby
diegoviola has quit [Remote host closed the connection]
kirun has joined #ruby
quimrstorres has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
llrocknromarc has quit [Ping timeout: 264 seconds]
mostlybadfly has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
fabrice31_ has quit [Remote host closed the connection]
maximski has joined #ruby
jlast has joined #ruby
DouweM has joined #ruby
ponga has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 264 seconds]
postmodern has quit [Quit: Leaving]
DouweM has quit [Read error: Connection reset by peer]
DouweM has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
jhebden has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
woodsleaf has joined #ruby
sigurding has joined #ruby
Grumelo has quit []
jenrzzz has quit [Ping timeout: 264 seconds]
arup_r has quit [Remote host closed the connection]
<shevy>
"One thing to note about Biopython is that it often provides multiple ways of ?doing the same thing.? Things have improved in recent releases, but this can still be frustrating as in Python there should ideally be one right way to do something."
hemanth is now known as Guest8927
havenwood has joined #ruby
jlast has joined #ruby
<Bacta>
Well that's Biopython ;)
jerematic has quit [Ping timeout: 250 seconds]
<Bacta>
I might be asked to do a couple of days work for this position I'm applying for. They do Rails.
<Bacta>
But will probably be up against other candidates with years of Ruby/Rails experience. So a little worried that my "great developers transcend languages" thing won't cut it..
n1lo has quit [Quit: Leaving]
roshanavand has joined #ruby
jouty1 is now known as jouty
avril14th has quit [Remote host closed the connection]
jouty has quit [Changing host]
jouty has joined #ruby
Wolland has joined #ruby
SOLDIERz has quit [Ping timeout: 250 seconds]
giuseppesolinas has joined #ruby
antgel has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
rkgudboy has quit [Ping timeout: 240 seconds]
Xeago_ has joined #ruby
jlast has joined #ruby
rkgudboy has joined #ruby
MasterPiece has joined #ruby
blackmes1 has quit [Ping timeout: 264 seconds]
Wolland has quit [Ping timeout: 250 seconds]
Xeago has quit [Ping timeout: 250 seconds]
TheKruex has quit []
psy_ has quit [Remote host closed the connection]
<last_staff>
Bacta: depends on what they're needing tho
<last_staff>
if they're looking for a developer, the statement holds true, and they should know it
cpt_yossarian has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 245 seconds]
<last_staff>
if they're looking for a programmer, on the other hand...
<arup_r>
shevy: 47 users in #spree I can see. I asked one question no reply till 1 hour.. hehehe #ruby is best and #rubyonrails
<shevy>
cool
<shevy>
47 idlers
<last_staff>
what's spree?
<arup_r>
all other IRC channels are dying
<shevy>
here you have 920 of them!
<arup_r>
Gen
<arup_r>
m
<arup_r>
last_staff: You can earn money using it
mats_ has joined #ruby
<arup_r>
shevy: Humm
Ivision_ has joined #ruby
<shevy>
Bacta I find python and ruby very similar, also with similar niches. the main difference is the philosophy. ruby is more like - do as it pleases you, hence why people can often omit () parens, freely alias to other methods, can decide whether to use blocks or not and so forth
Grumelo has quit [Remote host closed the connection]
<mats_>
hi everyone, quick question, I am starting with bundler, but when trying to do a bundle install I get the following error:
WillAmes has quit [Remote host closed the connection]
<mats_>
Could not find gem 'pp (>= 0) ruby' in the gems available on this machine.
<mats_>
I was under the impression that the idea of bundler was to get all the required gems even if they were not installed
fabrice31 has joined #ruby
<mats_>
anyone has experienced this before?
<machty>
is there something about POST requests that prevent streamed responses?
antgel has quit [Ping timeout: 250 seconds]
revoohc has quit [Client Quit]
<last_staff>
so what, is it open-source, or does one have to pay?
<last_staff>
I got confuzzled because of the "Try it free" on spreecommerce.com
<last_staff>
if that's what spree is
Ivision has quit [Ping timeout: 240 seconds]
anaeem1 has quit [Remote host closed the connection]
<Bacta>
last_staff: Do programmers even exist anymore?
DaniG2k has quit [Quit: leaving]
<last_staff>
I've worked with several people who keep to a programmer's mindset, so i'd say 'yes' to that....yes
Kharma has joined #ruby
<last_staff>
"worked with" = worked with, within the last 3 years
dtscode- has joined #ruby
pika_pika has joined #ruby
revoohc has joined #ruby
Akagi201 has quit []
blackmes1 has joined #ruby
rkgudboy has quit [Ping timeout: 256 seconds]
<last_staff>
i say it's the old way of looking at "people who can program" - they put 'fancy' titles in the ads, like sw engineer and such, but are really looking for programmers within a special field
sambao21 has joined #ruby
einarj has quit [Remote host closed the connection]
<last_staff>
and same thing the other way around, i.e., 'programmer' as a title in the ad, but are really looking for a sw engineer (i.e., a developer)
<apeiros_>
ah where's that pic of interview questions vs. first day on the job…
lethjakm1 has joined #ruby
siso has joined #ruby
lampd1 has joined #ruby
Bacta has quit [Quit: Leaving]
brb3 has joined #ruby
livathin_ has quit []
thatslifeson_ has quit [Ping timeout: 246 seconds]
TheRealPygo has quit [Ping timeout: 246 seconds]
lrocknrolmarc has joined #ruby
lethjakm1 has quit [Ping timeout: 246 seconds]
bigkevmcd has quit [Quit: Outta here...]
mats_ has quit [Ping timeout: 240 seconds]
krzkrz has quit [Ping timeout: 264 seconds]
lampd1 has quit [Ping timeout: 255 seconds]
red_horned_rihno has joined #ruby
lioninawhat has joined #ruby
red_horned_rihno has quit [Max SendQ exceeded]
red_horned_rihno has joined #ruby
mats_ has joined #ruby
<last_staff>
can't find it
red_horned_rihno has quit [Max SendQ exceeded]
red_horned_rihno has joined #ruby
pdoherty has joined #ruby
<last_staff>
i remember seeing such a picture, about the prospects of what to expect on the first day - green fields...blue, sunny skies...rainbows....unicorns....a port of gold with a sleeping leprechaun at the side of it...
nii236|irssi has quit [Remote host closed the connection]
blackmes1 has quit [Ping timeout: 240 seconds]
<last_staff>
i.e., "during the interview"
zacstewart has joined #ruby
pygospa has joined #ruby
Ivision_ has quit [Remote host closed the connection]
<last_staff>
and then on the "first day on the job"-side, the devil himself lashing out with a steel whip, or something, and suited-up four-eyes running around in panic...computers lying in lava pits...and so on
krzkrz has joined #ruby
Axy has quit [Read error: Connection timed out]
nii236|irssi has joined #ruby
<last_staff>
i roflmao when I saw that one, figuratively speaking
jimms has quit [Remote host closed the connection]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Aova has quit [Read error: Connection reset by peer]
arup_r has quit []
bigkevmcd has joined #ruby
maximski has quit []
<DefV>
no-one roflmao's non-figuratively
pdoherty has quit [Ping timeout: 255 seconds]
aclearman037 has joined #ruby
jimms has joined #ruby
Timgauthier has joined #ruby
nii236|irssi has quit [Client Quit]
LudicrousMango has joined #ruby
lethjakm1 has joined #ruby
<last_staff>
and here I was trying to avoid snappy feedbacks on how it's impossible to actually roflmao... >: (
tus has joined #ruby
<last_staff>
xD
oo_ has quit [Remote host closed the connection]
Aova has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
<shevy>
who is doing an interview
<shevy>
I wanna video tape it
ghostpl has quit [Remote host closed the connection]
<Timgauthier>
no
lethjakm1 has quit [Ping timeout: 245 seconds]
rubytor has joined #ruby
lanemeyer has joined #ruby
daynaskully has quit [Quit: quit]
<shevy>
hehe
russt has joined #ruby
russt has quit [Client Quit]
athan has joined #ruby
oleo has joined #ruby
selaruvich has joined #ruby
silkfox has joined #ruby
lrocknrolmarc has quit [Ping timeout: 250 seconds]
lioninawhat has quit [Remote host closed the connection]
patricknegri has joined #ruby
ghostpl has joined #ruby
fmcgeough has joined #ruby
penzur has joined #ruby
quimrstorres has quit [Remote host closed the connection]
riotjones has quit [Remote host closed the connection]
<machty>
is it possible to convert a Net/HTTP response into an IO object without first saving it to a file? i'd basically like to be able to call a blocking `.each_line` on the request body
<havenwood>
shevy: more stackoverflow questions
Ivision has joined #ruby
<oddmunds>
shevy: not in github projects
dstarh has joined #ruby
mengu has quit [Remote host closed the connection]
<oddmunds>
ruby scores low on stack overflow, because ruby was not in a community/support vacuum before stack overflow arrived (like C# was)
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
jlast has quit [Ping timeout: 245 seconds]
jlast has joined #ruby
waynerade has joined #ruby
SOLDIERz has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
jlast_ has joined #ruby
Morkel has quit [Quit: Morkel]
apurcell has quit [Ping timeout: 246 seconds]
Wolland has quit [Ping timeout: 245 seconds]
rubytor_ has joined #ruby
rubytor has quit [Ping timeout: 264 seconds]
jlast has quit [Ping timeout: 245 seconds]
waynerade has quit [Ping timeout: 240 seconds]
lethjakm1 has joined #ruby
livingstn has joined #ruby
dblessing has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
jlast_ has quit [Ping timeout: 245 seconds]
<Timgauthier>
i hope to see ruby replace all of the instances of corperate use in Java
BTRE has quit [Read error: Connection reset by peer]
athan has quit [Read error: Connection timed out]
IrishGringo has joined #ruby
<shevy>
but java is faster!
shredding has quit [Quit: shredding]
main has joined #ruby
dblessing has quit [Read error: Connection reset by peer]
lethjakm1 has quit [Ping timeout: 265 seconds]
<reprazent>
machty: maybe you could try wrapping the body in a StringIO: StringIO.new(req.body) ?
mozzarella has quit [Ping timeout: 245 seconds]
athan has joined #ruby
shredding has joined #ruby
<machty>
reprazent: the problem is eof gets flipped the first time you read to the end of the string (even if more data is coming)
<pontiki>
i question the conclusion drawn. neither of the measures presented indicate anything about future importance of the given language
shredding has quit [Client Quit]
tier has joined #ruby
jespada has joined #ruby
paradoja has quit [Remote host closed the connection]
<reprazent>
machty: Because the body is not loaded entirely at this point?
BTRE has joined #ruby
scripore has joined #ruby
<epitron>
Lol, "number of people who need help with a language" as a benchmark of popularity
<machty>
reprazent: confirm, net/http has a streaming body version that sends progressive chunks to a block you pass in
<epitron>
More like benchmark of suckularity, am I right?
PaulCapestany is now known as PaulCape_
<machty>
reprazent: and much of the point of this is to start processing right away to keep memory usage low
rubytor has joined #ruby
<machty>
given my constraints it's better to process slowly and drop packets then to put a large chunk of stuff in memory
sankaber has joined #ruby
<pontiki>
they aren't claiming the ranking is a popularity ranking, but "potential future adoption trends"
<epitron>
Sounds like you want a queue, not a string io
<epitron>
pontiki: php: language of the future!
mozzarella has joined #ruby
jeremati_ has joined #ruby
paradoja has joined #ruby
<pontiki>
they're trying to measure a social decision-making process based upon countable artifacts that really have no correlation
<machty>
epitron: not really, i just want the incoming object to conform to IO object so that i can do things like call `each_line` on it without having to implement my own buffering, etc
rubytor_ has quit [Ping timeout: 264 seconds]
<epitron>
machty: string io isn't for streaming like that
Pharaoh2 has joined #ruby
phale has joined #ruby
<epitron>
String io seems like one of those old neglected corners of ruby
<phale>
what's the difference between sys.recv and recv?
Pharaoh2 has quit [Max SendQ exceeded]
<epitron>
machty: what network library are you using?
spyderman4g63 has joined #ruby
<machty>
epitron: net/http
Pharaoh2 has joined #ruby
<epitron>
phale: that... Looks like python
jerematic has quit [Ping timeout: 264 seconds]
<machty>
the problem is i think for my grand scheme to work i need to use threads
<epitron>
machty: you should try using the http gem
<epitron>
It's very steamy
basichash has quit [Ping timeout: 245 seconds]
<epitron>
Streamy
<epitron>
No threads necessary
<phale>
epitron: still though
<phale>
i use sys.recv on certain sockets and it works
<phale>
if i use recv on the socket it wont work
<phale>
not on all, but some
lethjakm1 has joined #ruby
bjornar has quit [Ping timeout: 246 seconds]
llrocknromarc has joined #ruby
anaeem1 has joined #ruby
startupality has joined #ruby
xymbol has joined #ruby
einarj has joined #ruby
<phale>
so..
jimms has quit [Remote host closed the connection]
lethjakm1 has quit [Ping timeout: 245 seconds]
allcentury has joined #ruby
<phale>
is sys.recv nonblocking as opposed to recv?
codecop has quit [Quit: Išeinu]
pontiki has quit [Remote host closed the connection]
dblessing has joined #ruby
juanpablo_ has joined #ruby
<phale>
excuse me, not sys.rec
Aova has quit [Read error: Connection reset by peer]
<phale>
recv*
<phale>
but TCPSocket.recv(n)
raphaelss has joined #ruby
mkaesz has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
quimrstorres has joined #ruby
kp666 has quit [Remote host closed the connection]
josephcs has quit [Quit: (null)]
ponga has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
adriancb has joined #ruby
jlast has joined #ruby
jenrzzz has joined #ruby
xaxisx has joined #ruby
xaxisx has quit [Read error: Connection reset by peer]
scripore has joined #ruby
riotjones has joined #ruby
jerius has joined #ruby
<sonOfRa>
I want our Icinga to run some rake tasts on a rails application, and I'm wondering what the best way to set error codes is, in ruby. Basically, I want to be able to set an error code, and return a single line back to icinga (0 is OK, 1 is warning, 2 critical, 3 unknown). Should I just puts "status message" and then exit 0/1/2/3?
IrishGringo has quit [Read error: Connection reset by peer]
IrishGringo has joined #ruby
rubytor has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rubytor has joined #ruby
zenith_ has joined #ruby
Aswebb_ has quit []
davedev24_ has joined #ruby
riotjones has quit [Ping timeout: 245 seconds]
josephndenton has joined #ruby
werelivinginthef has joined #ruby
Guest12953 has quit [Quit: Leaving...]
zzzbra has quit [Ping timeout: 250 seconds]
lethjakm1 has joined #ruby
ponga has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
_maes_ has joined #ruby
SOLDIERz has joined #ruby
nateberkopec has joined #ruby
Wolland has joined #ruby
jzigmund_ has quit [Quit: leaving]
jzigmund has joined #ruby
Ellypse_ has joined #ruby
<havenwood>
sonOfRa: warn "status message"
Ellypse_ has quit [Client Quit]
ponga has quit [Remote host closed the connection]
lethjakm1 has quit [Ping timeout: 245 seconds]
<havenwood>
sonOfRa: `abort` doesn't let you pick the exit status, but otherwise is a `warn` and `exit 1` rolled into one
<sonOfRa>
abort is guaranteed to have an exit status of 1?
EvanFreeman has joined #ruby
<sonOfRa>
That'd probably do for now, everything these scripts currently detect are warnings, not real errors anyways
banister has joined #ruby
<hfp_work>
Hey guys, what is :symbol, -> ` in Ruby?
banister has quit [Max SendQ exceeded]
pdoherty has joined #ruby
<hfp_work>
sorry `:symbol, ->`
Vivex has quit [Ping timeout: 255 seconds]
zenith_ has quit [Remote host closed the connection]
<havenwood>
hfp_work: a Symbol literal, comma then what looks like the start of a stabby lambda
Wolland has quit [Ping timeout: 255 seconds]
cassianoleal has joined #ruby
DaniG2k has joined #ruby
psy_ has joined #ruby
Macaveli has quit [Ping timeout: 246 seconds]
it0a has joined #ruby
fryguy9 has joined #ruby
jlast_ has joined #ruby
DEA7TH has joined #ruby
<apeiros_>
hfp_work: a syntax error because it's an incomplete expression (rest as havenwood says)
ki0 has joined #ruby
<apeiros_>
you probably should paste the full expression
IrishGringo has quit [Read error: Connection reset by peer]
anaeem1 has quit [Quit: Leaving...]
basichash has joined #ruby
zenith_ has joined #ruby
seitensei has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 245 seconds]
_br_- has quit [Ping timeout: 264 seconds]
<ddv>
hfp_work: lambda
<ddv>
oh sorry
<ddv>
didn't read my backlog
roshanavand1 has joined #ruby
tokik has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
SOLDIERz has quit [Ping timeout: 265 seconds]
maximski has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby
_br_ has joined #ruby
IrishGringo has joined #ruby
tjohnson has joined #ruby
lethjakm1 has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
fryguy9 has quit [Quit: Leaving.]
ghostpl has quit [Remote host closed the connection]
fryguy9 has joined #ruby
sinkensabe has joined #ruby
vasilakisfil has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<vasilakisfil>
is there a way to initialize a hash that raises an error when trying to access a key that doens't exist ?
scripore has joined #ruby
<workmad3>
>> h = Hash.new {raise "Key doesn't exist"}; h[:uh_oh]
<izzol>
What is the best way to check if the file is exist?
<izzol>
Create new def ?
<izzol>
and more that load_file to there?
<izzol>
or I can do something in initialize?
Squarepy has quit [Remote host closed the connection]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
stef204 has quit [Ping timeout: 250 seconds]
<apeiros_>
File.exist?
maximski has joined #ruby
triple_b has joined #ruby
maximski has quit [Max SendQ exceeded]
sinkensabe has quit [Ping timeout: 252 seconds]
zacstewart has quit [Remote host closed the connection]
maximski has joined #ruby
mrmargolis has joined #ruby
Aova has quit [Read error: Connection reset by peer]
snath has joined #ruby
<izzol>
apeiros_: I know that I can use File.exist. Sorry, wrong question ;-)
<izzol>
My question is where :-)
<izzol>
Can I use it somehow in initialize?
scripore has quit [Quit: This computer has gone to sleep]
<izzol>
or only in new def ?
<apeiros_>
you can use it wherever you want
tkuchiki has quit [Ping timeout: 245 seconds]
marcdel has quit []
<izzol>
ok but I think initialize is wrong place when I need to check if file exist and if not create it.
<izzol>
There will be one/two conditions.
<izzol>
I'm not sure.
lethjakm1 has joined #ruby
basichash has quit [Ping timeout: 240 seconds]
abuzze has joined #ruby
fabrice31 has quit [Remote host closed the connection]
Aova has joined #ruby
Takle has quit [Remote host closed the connection]
apeiros_ has quit []
riotjones has joined #ruby
dstarh has joined #ruby
stef204 has joined #ruby
lethjakm1 has quit [Ping timeout: 246 seconds]
St1gma has quit [Ping timeout: 250 seconds]
dimaursu16 has quit [Remote host closed the connection]
dimaursu16 has joined #ruby
<waxjar>
izzol: raise an exception in initialize if the error doesn't exist?
ta_ has joined #ruby
ghr has quit [Read error: No route to host]
<hoelzro>
at that point, why not just like YAML.load_file raise it?
ghr has joined #ruby
MasterPieceF has joined #ruby
<izzol>
hoelzro: raise sounds ok, I will try :)
riotjones has quit [Ping timeout: 264 seconds]
<waxjar>
s/error/file/
pabloh has joined #ruby
tus has joined #ruby
dfinninger has quit [Remote host closed the connection]
scripore has joined #ruby
slushie|| has quit [Quit: leaving]
ta_ has quit [Ping timeout: 252 seconds]
dfinninger has joined #ruby
pardusf has quit [Ping timeout: 245 seconds]
lzx has joined #ruby
arup_r has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
chrishough has joined #ruby
ta_ has joined #ruby
PierreRambaud has quit [Remote host closed the connection]
Takle has joined #ruby
<surs>
Hi, I'm trying to execute a poweshell command from ruby: system("powershell (New-Object System.Net.Webclient).DownloadString("http://foo")
Lewix has joined #ruby
Lewix has joined #ruby
parduse has joined #ruby
momomomomo has joined #ruby
banister has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<surs>
powershell complains about a missing ")", when I execute (New-Object System.Net.Webclient).DownloadString("http://foo") directly in ps, it works fine
<shevy>
did you try to move the second method above?
<gregf__>
__chris: class Foo; def self.foo; puts "Foo";end; class<<self; alias_method :baz, :foo;end; end ; Foo.baz
Lemur has quit [Remote host closed the connection]
cpt_yossarian has quit [Ping timeout: 265 seconds]
poguez_ has joined #ruby
<yxhuvud>
__chris: the method must exist when it is aliased. That is not the case in your class
<gregf__>
oh well, shevy++
Xiti has joined #ruby
Flowrhent has quit [Client Quit]
yellowgh0st has joined #ruby
jimms has quit [Ping timeout: 264 seconds]
Flowrhent has joined #ruby
<__chris>
shevy, gregf__ thanks. moving the alias at the bottom of the class worked.
<shevy>
\o/
wottam has joined #ruby
<gregf__>
__chris: you need to move the alias to after the method
<gregf__>
did you know that?
<__chris>
ah, so it should go directly after the static method?
<gregf__>
righto
<__chris>
This is done at each alias as well I assume.
<yxhuvud>
__chris: files in ruby are evaluated from top to down. That includes class bodies.
<__chris>
Ah ok. I thought it was hoisted
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<__chris>
thank you
<yxhuvud>
no hoisting in ruby.
blackmes1 has quit [Quit: WeeChat 1.1]
jxpx777 has quit [Quit: Leaving...]
sigurding_ has joined #ruby
oetjenj has joined #ruby
<yxhuvud>
but note that it is usually only an issue for code that is actually executing. You are free to define methods that call each other in any order you want to
ta_ has quit [Ping timeout: 252 seconds]
<yxhuvud>
as long as everything is defined when the methods are first called.
sigurding has quit [Ping timeout: 255 seconds]
sigurding_ is now known as sigurding
<__chris>
thanks for dropping the knowledge on me.
trufflesnout has quit [Quit: Leaving...]
georgesmith has quit [Quit: georgesmith]
Pharaoh2 has joined #ruby
zachrab has joined #ruby
diranged has joined #ruby
<diranged>
Whats the syntax to split a string (foo=bar=baz) on the first '=' only and get effectively 'foo' and then 'bar=baz'?
Takle has quit [Remote host closed the connection]
Axy has quit [Read error: Connection reset by peer]
ellisTAA has joined #ruby
<Diabolik>
jhass
<Diabolik>
12.to_s.chars.map(&:to_i)
__chris has quit [Ping timeout: 250 seconds]
<Diabolik>
how can i access the array this dumps the numbers in
<wallerdev>
wtf
<ellisTAA>
i’m trying to convert strings and integers to binary .. so i’ve read to us something like .to_i(base) or .to_s(base) but i dont get wth base is?
fryguy9 has joined #ruby
<wallerdev>
lol
dc has joined #ruby
<Diabolik>
hi wallerdev
sambao21 has joined #ruby
<Diabolik>
im trying to split a number into its digits
<wallerdev>
binary is base 2
<Diabolik>
so i can add them together
oleo has quit [Quit: Verlassend]
<jhass>
Diabolik: you get it returned by your map call
<wallerdev>
bases are the number of digits you get to use before you have a "tens place"
<wallerdev>
so in binary you have 0, 1, 10, 11, 100, 101, etc
<wallerdev>
you only get 2 digits to work with
<jhass>
assign it to a variable
<wallerdev>
decimal which is what humans use is base 10
<wallerdev>
so you get 0-9 then 10 and start over
jxpx777 has joined #ruby
momomomomo has joined #ruby
oleo has joined #ruby
Guest15 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
banister has joined #ruby
zacstewart has joined #ruby
maximski has quit []
xymbol has joined #ruby
mbeasley has quit [Quit: WeeChat 0.4.2]
mbeasley has joined #ruby
<waxjar>
you can also use String#% (sprintf) to get the binary representation of a number
<ellisTAA>
wallerdev: so the base is always 2 or the base can vary up to 9 or something else?
<wallerdev>
the base can be anything
skj3gg has quit [Quit: welp, see you later.]
<|work>
Cause you know it's all about dat base, 'bout dat base.
<jhass>
Diabolik: not really, you want to map the names out yes, but then look at Array#join and Array#pop
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgt has joined #ruby
kristian-aalborg has joined #ruby
<kristian-aalborg>
hi ppl
ptrrr has quit [Quit: ptrrr]
tunaCanBruh has quit [Ping timeout: 256 seconds]
ptrrr has joined #ruby
ptrrr has quit [Client Quit]
<kristian-aalborg>
sorry... I had nokogiri/libxml working a few days ago, but now I get the dreaded error: WARNING: Nokogiri was built against LibXML version 2.9.2, but has dynamically loaded 2.9.1
<kristian-aalborg>
I can't remember how I fixed it :(
zachrab has quit [Remote host closed the connection]
<jhass>
how about you just update your libxml2 this time
last_staff has joined #ruby
ldnunes has quit [Quit: Leaving]
PaulCape_ has quit []
Aova has quit [Read error: Connection reset by peer]
xymbol has quit [Quit: Be back later ...]
zachrab has joined #ruby
PaulCapestany has joined #ruby
pontiki has joined #ruby
ellisTAA has left #ruby [#ruby]
codeFiend has quit [Quit: codeFiend]
momomomomo has quit [Ping timeout: 250 seconds]
allcentury has quit [Ping timeout: 246 seconds]
snockerton has quit [Quit: leaving]
zenith_ has joined #ruby
yellowgh0st has quit [Quit: yellowgh0st]
Aova has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
zachrab has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
<kristian-aalborg>
hi jhass
davedev2_ has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
cphrmky has joined #ruby
yellowgh0st has joined #ruby
ta_ has joined #ruby
aclearman037 has joined #ruby
momomomomo has joined #ruby
mkaesz has quit [Remote host closed the connection]
Megtastique has quit []
zachrab has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
momomomomo has quit [Client Quit]
tunaCanBruh has joined #ruby
mLF has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
cmckee has quit [Quit: cmckee]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachrab has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby
yellowgh0st has quit [Quit: yellowgh0st]
startupality has joined #ruby
vdamewood has quit [Quit: Computer has gone to sleep.]
sambao21 has quit [Quit: Computer has gone to sleep.]
allcentury has joined #ruby
_honning_ has quit [Ping timeout: 245 seconds]
brb3 has quit [Quit: ZZZzzz…]
crazydiamond has joined #ruby
paulfm_ has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
momomomomo has joined #ruby
philwantsfish has quit [Read error: Connection reset by peer]
Darryl___ has quit [Quit: Connection closed for inactivity]
MasterPieceF has quit [Remote host closed the connection]
Aova has joined #ruby
baweaver has joined #ruby
daveomcd has joined #ruby
<daveomcd>
is "ends_with?" not a valid method for a string object in ruby?
zachrab has quit [Ping timeout: 252 seconds]
Musashi007 has joined #ruby
<wallerdev>
end_with
<wallerdev>
its named dumb
<daveomcd>
wallerdev, doh! thanks
<wallerdev>
lol
<bricker>
wallerdev: dumbly*
<wallerdev>
haha
<bricker>
:)
quimrstorres has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
pdoherty has quit []
freerobby has joined #ruby
netuoso has joined #ruby
werelivinginthef has joined #ruby
<shevy>
daveomcd a simple way to memorize is by asking the right question: "object, do you end_with xyz?" - in other words, to ask a singular object about the data it has
Troy^ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nucatus has quit [Remote host closed the connection]
quimrstorres has joined #ruby
<wallerdev>
or just class String; def ends_with?(x); self.end_with?(x); end end
<wallerdev>
maybe a comment # fixes dumb naming
<wallerdev>
i guess could just do alias_method haha
<netuoso>
Given this code example: http://pastebin.com/QdRUAHyY : how can i add call an upcase function in the manner showed on line 13 ?
Narzew has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
giuseppesolinas has joined #ruby
yellowgh0st has joined #ruby
baweaver has quit [Ping timeout: 255 seconds]
<wallerdev>
what the heck
<wallerdev>
is line 1
<wallerdev>
is that pseudocode
<wallerdev>
haha
<netuoso>
i meant module
<netuoso>
i typed it out
<netuoso>
my bad
<daveomcd>
shevy, good note! thanks
devbug has joined #ruby
Takle has quit [Remote host closed the connection]
<wallerdev>
what is accumulate supposed to do
<wallerdev>
it just returns self
<wallerdev>
kinda pointless
<netuoso>
... that wasnt the question tho
<netuoso>
that was example code, which yeah, returns itself if nothing is done on it
<netuoso>
but im asking how to make it return the upcase version given the call on line 13
<netuoso>
its for an exercise
<wallerdev>
you could do %w(hello world).accumulate.map(&:upcase)
<netuoso>
they asked not to use map or collect
erenrich has joined #ruby
<netuoso>
suggested reduce instead
dfinninger has quit [Remote host closed the connection]
erenrich has left #ruby [#ruby]
<netuoso>
but i dont see how to make the (&:upcase) work
<wallerdev>
what is accumulate supposed to do
giuseppesolinas has quit [Client Quit]
<wallerdev>
whats the expected result
zacstewart has joined #ruby
<netuoso>
accumulate is supposed to do what map does
<netuoso>
expected result of line 13 is ["HELLO", "WORLD"]
<netuoso>
if i implemented the &:upcase
arescorpio has joined #ruby
<netuoso>
i just dont get that part, its simple im sure
<wallerdev>
if it just does what map does theres no reason to use reduce haha, thats weird
<netuoso>
ruby newb <--
<wallerdev>
reduce returns a single value
<netuoso>
let me paste you my readme
<wallerdev>
&:upcase is the same as passing in { |x| x.upcase }
<netuoso>
that may help out
<netuoso>
hm ok i think that clears it a little actually
<wallerdev>
so you need to work with the block passed in
<weaksauce>
I tried to use it the other day Diabolik but it's broken for 4.x
jottr has joined #ruby
Kricir has quit [Ping timeout: 264 seconds]
<Diabolik>
you get rake aborted?
<Senjai>
Diabolik: !use
<helpa>
Diabolik: Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
zacstewart has joined #ruby
tyfighter has joined #ruby
devdazed has joined #ruby
Sawbones_ has quit [Ping timeout: 264 seconds]
russt has quit [Quit: russt]
<Diabolik>
what Senjai
<Diabolik>
i apologise
tyfighter has quit [Remote host closed the connection]
<Senjai>
Diabolik: Its cool, its better just to say, When attempting to use x, I get this problem. Here is the relevant code:
tier has joined #ruby
juanpablo_ has quit [Quit: (null)]
jenrzzz has joined #ruby
juanpablo_ has joined #ruby
jenrzzz_ has quit [Ping timeout: 256 seconds]
freerobby has joined #ruby
Aova has quit [Read error: Connection reset by peer]
tier has quit [Read error: No route to host]
Sid05 has quit [Quit: Sid05]
tier has joined #ruby
russt has joined #ruby
Kricir has joined #ruby
zachrab has quit [Remote host closed the connection]