<boom__>
how long should the pickaxe book take a beginner?
Vovko_ has quit [Remote host closed the connection]
meatherly has joined #ruby
SCommette has joined #ruby
agent_white has quit [Quit: leaving]
agent_white has joined #ruby
mgberlin has joined #ruby
jprovazn has quit [Ping timeout: 252 seconds]
kukyakya has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
<centrx>
boom__, There is no speed limit
<csmrfx>
boom__: week to months
<boom__>
i feel this book is taking longer than others I have done
mitt3ns has joined #ruby
<mitt3ns>
ping
<csmrfx>
well, to get through it in a month takes proper focus
agent_white has quit [Client Quit]
agent_white has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
xerox357 has joined #ruby
toastynerd has joined #ruby
duggiefresh has quit [Ping timeout: 240 seconds]
agent_white has quit [Client Quit]
mitt3ns has quit [Client Quit]
sarmiena_ has quit [Quit: sarmiena_]
agent_white has joined #ruby
troyready has quit [Ping timeout: 252 seconds]
duggiefresh has joined #ruby
<snkcld>
what does =~ do different than ==, for arrays?
Jamo has quit [Ping timeout: 264 seconds]
<bricker`LA>
snkcld: they are two totally different methods
<agent_white>
snkcld: One is comparison, one is regex.
Vovko has joined #ruby
aspires has joined #ruby
<bricker`LA>
snkcld: for Array, =~ returns nil
<bricker`LA>
and for almost every other object for that matter
<bricker`LA>
except String and Regexp
Jamo has joined #ruby
troyready has joined #ruby
Hanmac has joined #ruby
petey has joined #ruby
<bricker`LA>
snkcld: == checks if the two arrays are the same
Slavox is now known as Slavox|AFK
Hanmac1 has quit [Ping timeout: 240 seconds]
<boom__>
centrx, i understand there is no due date. I am looking to set personal goals
xerox357 has quit [Remote host closed the connection]
<csmrfx>
how many hours you think you can do every day
JBreit has quit [Read error: Connection reset by peer]
<snkcld>
oh sorry, its an rspec thing
<csmrfx>
boom__: ^
<snkcld>
thanks though
xerox357 has joined #ruby
<Radar>
how long is a piece of String?
zcreative has joined #ruby
<csmrfx>
snkcld: are you familiar with ri
<bricker`LA>
Radar: which piece?
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Radar>
bricker`LA: a set of all possible Strings
<bricker`LA>
42?
mgberlin has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
toastynerd has joined #ruby
<boom__>
Touche csmrfx
cjsarette has quit [Ping timeout: 245 seconds]
<boom__>
and the grinding starts
meatherly has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
xerox357 has quit [Ping timeout: 265 seconds]
SCommette has quit [Quit: SCommette]
JBreit has joined #ruby
<csmrfx>
boom__: good luck
<csmrfx>
not to put you off, but I never finished that book
<csmrfx>
I just made small apps that solved a real problem I had
<csmrfx>
actually, I did do couple of the first chapters
<csmrfx>
2k5 baby
<dragun0v>
when you have a local gem server, how do you ensure your machines are talking to that gemservers? What configurations are required for that to work?
Jetchisel has quit [Quit: "Unfortunately time is always against us" -- *Morpheus*]
nari has quit [Ping timeout: 265 seconds]
<pipework>
dragun0v: rubygems have things called sources.
saarinen has quit [Quit: saarinen]
toastynerd has joined #ruby
gea has joined #ruby
<gea>
I'm setting up a bit coin payment system on sinatra
aspires has quit []
<gea>
does anyone have any experience with the api and a project of this sort?
sensen has joined #ruby
<dragun0v>
Right now.. I do see that there is a .gemrc file with sources configured however I don't see it contacting that gemserver when I try to install a gem
cjsarette has joined #ruby
<dragun0v>
pipework: i used --verbose and --debug to see if it contacting
mois3x has joined #ruby
duggiefresh has quit [Ping timeout: 252 seconds]
meatherly has joined #ruby
Jetchisel has joined #ruby
Voodoofish4301 has quit [Quit: Leaving.]
toastynerd has quit [Remote host closed the connection]
<dragun0v>
pipework: also when I list gem sources, i do not see this configured source
invinceable has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
lyanchih has quit [Quit: lyanchih]
toastynerd has joined #ruby
lyanchih_ has joined #ruby
aspires has joined #ruby
agarie has quit [Quit: Leaving...]
gea has quit [Quit: gea]
kukyakya has joined #ruby
yubrew has quit [Read error: Operation timed out]
pu22l3r has quit [Ping timeout: 240 seconds]
Celm_ has joined #ruby
navyant24 has joined #ruby
toastynerd has quit [Remote host closed the connection]
toastynerd has joined #ruby
Celm has quit [Ping timeout: 244 seconds]
kevinykchan has joined #ruby
morenoh149 has quit [Ping timeout: 240 seconds]
caesura has quit [Quit: Leaving]
MrJoshua has quit [Remote host closed the connection]
nari has joined #ruby
Celm_ has quit [Remote host closed the connection]
binaryhat has joined #ruby
itadder has joined #ruby
kevinykchan has quit [Client Quit]
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
caesura has joined #ruby
sensen has quit [Quit: Lost terminal]
Celm has joined #ruby
rahult has quit [Quit: Back to the world of zombies]
Salve has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
nathansoz has quit [Ping timeout: 244 seconds]
mikepack has joined #ruby
nathansoz has joined #ruby
localredhead has joined #ruby
lw has quit [Quit: b]
havenwood has joined #ruby
Trevoke has joined #ruby
<localredhead>
/join #rails
Celm has quit [Ping timeout: 240 seconds]
<csmrfx>
naw
alvaro_o has quit [Quit: Ex-Chat]
Salve has quit [Ping timeout: 265 seconds]
jcs222 has quit [Read error: Operation timed out]
jcs222 has joined #ruby
Andrevan has joined #ruby
Trevoke has quit [Ping timeout: 265 seconds]
zcreative has quit [Quit: Computer has gone to sleep.]
eka has quit [Ping timeout: 264 seconds]
eka has joined #ruby
Kricir has quit [Remote host closed the connection]
ItSANg___ has quit [Quit: Leaving...]
griffind_ has quit [Quit: Computer has gone to sleep.]
mary5030 has quit [Remote host closed the connection]
existensil has quit [Ping timeout: 244 seconds]
binaryhat has quit [Quit: Leaving]
mgberlin has joined #ruby
jcs222 has quit [Remote host closed the connection]
mary5030 has joined #ruby
jcs222 has joined #ruby
axl_ has joined #ruby
achru has joined #ruby
yacks has joined #ruby
sski has quit [Remote host closed the connection]
sensen has joined #ruby
jonahR has joined #ruby
sski has joined #ruby
swapna has quit [Quit: Leaving]
ItSANgo has joined #ruby
cjsarette has quit [Ping timeout: 245 seconds]
jonahR has quit [Client Quit]
localredhead has quit [Ping timeout: 264 seconds]
cjsarette has joined #ruby
toastynerd has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
reset has joined #ruby
SCommette has joined #ruby
navyant24 has quit [Quit: navyant24]
Andrevan has quit [Ping timeout: 240 seconds]
jcs222 has quit [Remote host closed the connection]
jcs222 has joined #ruby
timonv has joined #ruby
funburn has joined #ruby
sski has quit [Ping timeout: 244 seconds]
mansi has joined #ruby
jdguzman has joined #ruby
vlad_starkov has joined #ruby
mary5030 has quit [Remote host closed the connection]
codeFiend has joined #ruby
funburn has quit [Ping timeout: 240 seconds]
jcs222 has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 240 seconds]
mansi has quit [Ping timeout: 253 seconds]
timonv has quit [Ping timeout: 265 seconds]
jcs222 has joined #ruby
evenix has quit [Remote host closed the connection]
existensil has joined #ruby
marcgg_ has joined #ruby
marcgg has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
eka has quit [Ping timeout: 265 seconds]
navyant24 has joined #ruby
Hanmac1 has joined #ruby
jcs222 has quit [Remote host closed the connection]
jcs222 has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
kukyakya has quit [Remote host closed the connection]
Kricir has joined #ruby
eka has joined #ruby
carif has quit [Ping timeout: 244 seconds]
kukyakya has joined #ruby
meatherly has quit [Remote host closed the connection]
meatherly has joined #ruby
bradhe has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 240 seconds]
dragun0v has quit [Remote host closed the connection]
zcreative has joined #ruby
jcs222 has quit [Remote host closed the connection]
MattStratton has quit [Ping timeout: 240 seconds]
jcs222 has joined #ruby
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
hermanmunster has quit [Remote host closed the connection]
TrickY1 has quit [Ping timeout: 252 seconds]
kevinykchan has joined #ruby
hermanmunster has joined #ruby
davedev24 has quit [Remote host closed the connection]
jcs222 has quit [Ping timeout: 240 seconds]
thomasxie has joined #ruby
jcs222 has joined #ruby
ekinmur has quit []
radic has quit [Ping timeout: 244 seconds]
psmolen has joined #ruby
<cashnguns>
I was messing around with IRB and i got an error that kind of confused me. Anyone shed some light on this? TypeError: can't convert Time into time interval
hermanmunster has quit [Ping timeout: 240 seconds]
ScalaIrcClient has quit [Remote host closed the connection]
Salve has quit [Ping timeout: 240 seconds]
lyanchih_ has quit [Quit: lyanchih_]
axsuul has joined #ruby
Trevoke has quit [Ping timeout: 240 seconds]
rationalrevolt has joined #ruby
jcs222 has quit [Ping timeout: 240 seconds]
jcs222 has joined #ruby
fgo has joined #ruby
evenix has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
segmond has quit [Ping timeout: 265 seconds]
aspires has quit []
jcs222 has quit [Ping timeout: 240 seconds]
robert_ has quit [Read error: Connection reset by peer]
derek_c has joined #ruby
fridim__ has quit [Read error: Operation timed out]
aspires has joined #ruby
jonahR has quit [Quit: jonahR]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
JBreit has quit [Read error: Connection reset by peer]
jlast has quit [Remote host closed the connection]
jcs222 has joined #ruby
polydius has joined #ruby
robbyoconnor has joined #ruby
sarmiena_ has joined #ruby
hiyosi has joined #ruby
freerobby has quit [Quit: Leaving.]
hornairs has quit [Read error: Operation timed out]
rationalrevolt has quit [Remote host closed the connection]
rationalrevolt has joined #ruby
recurrence has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
JBreit has joined #ruby
rational` has joined #ruby
davedev24 has joined #ruby
robert_ has joined #ruby
jcs222 has quit [Ping timeout: 252 seconds]
ageis_ is now known as ageis
lw has joined #ruby
jcs222 has joined #ruby
butblack has quit [Quit: butblack]
hiyosi has quit [Ping timeout: 265 seconds]
segmond has joined #ruby
rational` has quit [Remote host closed the connection]
rational` has joined #ruby
snuffeluffegus has quit [Ping timeout: 240 seconds]
Senjai has quit [Read error: Connection reset by peer]
rationalrevolt has quit [Ping timeout: 244 seconds]
joelroa has joined #ruby
sparrovv has joined #ruby
butblack has joined #ruby
jcs222 has quit [Ping timeout: 252 seconds]
jamto11 has joined #ruby
jcs222 has joined #ruby
Aquilo has joined #ruby
rational` has quit [Remote host closed the connection]
hornairs has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
sparrovv has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
bluOxigen has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
jcs222 has quit [Ping timeout: 240 seconds]
jcs222 has joined #ruby
aspires has quit []
Foo2 has joined #ruby
yubrew has joined #ruby
sdouglas has joined #ruby
thomasxie has quit [Remote host closed the connection]
segmond has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 240 seconds]
wiku5_ has quit [Quit: WeeChat 0.4.1]
wiku5_ has joined #ruby
jcs222 has quit [Ping timeout: 265 seconds]
cashnguns has quit [Quit: I'm just an old fashioned cowboy]
lxsameer has quit [Ping timeout: 240 seconds]
jcs222 has joined #ruby
mansi has quit [Remote host closed the connection]
alexju has joined #ruby
segmond has joined #ruby
lxsameer has joined #ruby
quatron has quit [Ping timeout: 244 seconds]
agent_white has quit [Quit: leaving]
mgberlin has quit [Remote host closed the connection]
wiku5_ has quit [Client Quit]
sdouglas has quit [Remote host closed the connection]
wiku5_ has joined #ruby
sailias has joined #ruby
jcs222 has quit [Remote host closed the connection]
jcs222 has joined #ruby
hermanmunster has quit [Remote host closed the connection]
ScalaIrcClient has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
agent_white has joined #ruby
<wiku5_>
happy March 6th!
<centrx>
Hip hip hooray!
lw has quit [Quit: s]
Aryasam has quit [Ping timeout: 265 seconds]
Aryasam has joined #ruby
<boom__>
its 9:03PM
<boom__>
still the 5th
koell has quit [Read error: No route to host]
<segmond>
it's always 9:03pm somewhere
tomshafer has quit []
Deele has joined #ruby
sincereness has quit [Ping timeout: 245 seconds]
SCommette has quit [Quit: SCommette]
yasushi has joined #ruby
diegoviola has quit [Remote host closed the connection]
<havenwood>
Remember remember the 5th of Marchtimber.
Celm has joined #ruby
jcs222 has quit [Ping timeout: 240 seconds]
jcs222 has joined #ruby
Salve has joined #ruby
sensen has quit [Ping timeout: 264 seconds]
lyanchih has joined #ruby
caesura has quit [Quit: Leaving]
butblack has left #ruby [#ruby]
r0bby has joined #ruby
Trevoke has joined #ruby
robbyoconnor has quit [Ping timeout: 264 seconds]
<centrx>
Thu Sep 7492 00:11:01 EST 1993
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
Salve has quit [Ping timeout: 240 seconds]
jcs222 has quit [Remote host closed the connection]
boom__ has quit [Remote host closed the connection]
jcs222 has joined #ruby
<agent_white>
Wed Mar 5 22:11:58 MST 2014
<agent_white>
centrx: What is the future like?
timonv has joined #ruby
<centrx>
It is the endless past...
noober3 has joined #ruby
Trevoke has quit [Ping timeout: 244 seconds]
<agent_white>
Damn. I hate Wednesdays.
jcs222 has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
jcs222 has joined #ruby
vlad_starkov has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
Celm has quit [Remote host closed the connection]
itadder has quit [Remote host closed the connection]
Celm has joined #ruby
mikepack has quit [Remote host closed the connection]
Andrevan has joined #ruby
r0bby has quit [Quit: Konversation terminated!]
Celm has quit [Ping timeout: 244 seconds]
butblack has joined #ruby
i_s has quit [Ping timeout: 264 seconds]
duggiefresh has quit [Ping timeout: 240 seconds]
hornairs has quit [Quit: hornairs]
Aryasam has quit [Ping timeout: 265 seconds]
DrCode has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
The_NetZ has joined #ruby
not_a_guest has joined #ruby
<The_NetZ>
hey; I can't seem to find a ruby 2.1.1 installer for windows, any suggestions? Its for a non-techie person, so compiling from source isn't an option :P
jcs222 has quit [Ping timeout: 240 seconds]
hiyosi has joined #ruby
freerobby has quit [Quit: Leaving.]
jcs222 has joined #ruby
<centrx>
Whoa, people still use that?
<centrx>
Why can't he use 2.0?
<The_NetZ>
centrx: I don't see one for that either... maybe I missed it.
<havenwood>
The_NetZ: 2.0.0-p451 is indeed out. The two bugs that prevented 2.1.0 from being released with ruby-installer have been fixed in 2.1.1, so there should be a forthcoming release.
<nikkos>
I have a problem with an exersice
<The_NetZ>
ah
<nikkos>
i write an employee's wages app and i created two methods: overtime_hours and normal_hours
<The_NetZ>
does the rubyinstaller come with developement headers (eg, ruby.h) ?
<nikkos>
the problem is that each method alone work but not together
yasushi has quit [Remote host closed the connection]
<The_NetZ>
havenwood: many thanks, I suppose 2.0 is good enough for the moment, lol. I'm just operating on arch linux, and our testing repo has 2.1.1, so I was hoping to match my contributor to the ruby I'm using, but I don't think there is enough difference between the two to make or break him, lol.
achru has quit [Remote host closed the connection]
achru has joined #ruby
Senjai`work has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
Senjai`work is now known as Senjai
Senjai has joined #ruby
Senjai has quit [Changing host]
davedev24 has quit [Ping timeout: 264 seconds]
<centrx>
nikkos, Your methods are changing the state of the worker, stored in the @hours instance variable
<centrx>
nikkos, So #normal_hours does not merely return "normal hours" so you can print, it changes @hours for the worker object, and that state is retained in the future path of the workers object
joelroa has quit [Ping timeout: 240 seconds]
davy_ has quit [Remote host closed the connection]
phansch has joined #ruby
<nikkos>
centrx: So you suggest to create a new variable, for example @normal_hours ?
phansch has quit [Client Quit]
kitak has quit [Read error: Connection reset by peer]
kotakotakota has quit [Ping timeout: 244 seconds]
<centrx>
nikkos, What is the #normal_hours method supposed to do?
<nikkos>
centrx: thank you very much
dapz is now known as dapz_
kitak has joined #ruby
ebwise has quit [Ping timeout: 244 seconds]
<nikkos>
i found the solution
noober3 has left #ruby [#ruby]
<centrx>
Okay
<nikkos>
i create a new variable @normal_hours and it works
makara has joined #ruby
butblack has joined #ruby
ehc has joined #ruby
tjr9898 has joined #ruby
jprovazn has joined #ruby
butblack has quit [Client Quit]
jamto11 has quit [Remote host closed the connection]
St_Marx has joined #ruby
havenwood has quit [Remote host closed the connection]
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
havenwood has joined #ruby
rationalrevolt has joined #ruby
hermanmunster has joined #ruby
vlad_starkov has joined #ruby
<centrx>
nikkos, You can also use local variables, without the @
ScalaIrcClient has quit [Ping timeout: 252 seconds]
thomasxie has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
rationalrevolt has quit [Remote host closed the connection]
m4n1f3st0 has joined #ruby
chrisseaton has quit []
tvw has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
dzhulk has quit [Quit: Leaving.]
wiku5_ has quit [Quit: WeeChat 0.4.1]
pierre1_ has joined #ruby
mikepack has quit [Remote host closed the connection]
<nikkos>
centrx: yes you are right
Salve has joined #ruby
* Hanmac
was right before it was cool ;P
krz has joined #ruby
heftig has quit [Quit: Quitting]
Trevoke has joined #ruby
yfeldblum has joined #ruby
Salve has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
kukyakya has quit [Remote host closed the connection]
Trevoke has quit [Ping timeout: 240 seconds]
supersym has quit [Quit: WeeChat 0.4.3]
aganov has joined #ruby
yacks has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
sigurding has joined #ruby
kukyakya has joined #ruby
jefflyne has quit [Ping timeout: 264 seconds]
tjr9898 has quit [Remote host closed the connection]
yacks has joined #ruby
craigp has joined #ruby
havenwood has joined #ruby
jefflyne has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
dzhulk has joined #ruby
ScalaIrcClient has joined #ruby
jefflyne has quit [Read error: Connection reset by peer]
kenneth has joined #ruby
hiyosi has joined #ruby
Atww has quit [Ping timeout: 264 seconds]
yubrew has joined #ruby
senayar has joined #ruby
jefflyne has joined #ruby
himsin has joined #ruby
senayar has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 244 seconds]
andy__ has quit [Remote host closed the connection]
andy__ has joined #ruby
vlad_starkov has joined #ruby
anarang has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
yubrew has quit [Ping timeout: 240 seconds]
mgberlin has quit [Remote host closed the connection]
Vovko has quit [Remote host closed the connection]
<Steve445>
is there something special about your setup
<Steve445>
what was it
slowcon_ has quit [Quit: slowcon_]
davy_ has quit [Read error: No route to host]
davy_ has joined #ruby
<The_NetZ>
ok, suppose I have an array; I am attempting to use script.each { |s| \ file.open("filename described from the 1st element of the array") \ do stuff \ file.close }; is there some method I'm missing here? I'm currently using s.at(1).to_s to describe the filename
glu has joined #ruby
glu has quit [Client Quit]
apeiros has quit [Remote host closed the connection]
senayar has quit [Remote host closed the connection]
apeiros has joined #ruby
tvw has quit []
tvw has joined #ruby
slowcon_ has joined #ruby
toastynerd has joined #ruby
timonv has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
senayar has joined #ruby
omegahm has quit [Ping timeout: 245 seconds]
davy_ has quit [Ping timeout: 264 seconds]
dumdedum has joined #ruby
lodeston_ has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
srawlins has joined #ruby
hermanmunster has quit [Ping timeout: 252 seconds]
codeitagile has quit [Remote host closed the connection]
codeitagile has joined #ruby
senayar has quit [Remote host closed the connection]
mois3x has quit [Quit: mois3x]
toastynerd has quit [Remote host closed the connection]
codeFiend has quit [Quit: codeFiend]
bal has joined #ruby
monkegjinni has quit []
renderful has quit [Remote host closed the connection]
JasmeetQA has quit [Read error: Connection reset by peer]
jph98 has joined #ruby
senayar has joined #ruby
banek has joined #ruby
Shidash has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
yubrew has joined #ruby
monkegjinni has joined #ruby
timonv has joined #ruby
fgo has quit [Remote host closed the connection]
JasmeetQA has joined #ruby
apeiros has joined #ruby
hiyosi has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
Dreamer3 has quit [Ping timeout: 240 seconds]
amclain has quit [Quit: Leaving]
sigurding has quit [Read error: Connection reset by peer]
hiyosi has quit [Ping timeout: 240 seconds]
omegahm has joined #ruby
davy_ has joined #ruby
polydius has quit [Quit: EOF]
Macaveli has joined #ruby
senayar has quit [Remote host closed the connection]
senayar has joined #ruby
Dreamer3 has joined #ruby
davy_ has quit [Ping timeout: 252 seconds]
Vovko has joined #ruby
mikepack has quit [Remote host closed the connection]
northfurr has quit []
yacks has quit [Remote host closed the connection]
shvelo has joined #ruby
havenwood has quit [Remote host closed the connection]
NovapaX has joined #ruby
CaptainJet has quit []
andy___ has joined #ruby
<The_NetZ>
question; is it possible to read in an array from a text file in ruby? example, foo contains a ruby array, can I read that in and then perform operations based on the contents of the array?
andy___ is now known as Guest9396
thomasxie has left #ruby [#ruby]
yarou has quit [Remote host closed the connection]
sigurding has joined #ruby
<apeiros>
The_NetZ: ruby is touring complete, you can do pretty much everything.
<apeiros>
*turing
<apeiros>
see File.readlines
<The_NetZ>
apeiros: hrm... I could use that, eh?
lsmola has joined #ruby
sailias has quit [Ping timeout: 244 seconds]
Shidash has quit [Ping timeout: 252 seconds]
thomasxie has joined #ruby
Umschwung has joined #ruby
sigurding has quit [Read error: Connection reset by peer]
Umschwung has quit [Max SendQ exceeded]
claymore has joined #ruby
agjacome has quit [Ping timeout: 240 seconds]
ephemerian has joined #ruby
codeitagile has quit [Quit: Leaving.]
Guest9396 has quit [Ping timeout: 265 seconds]
davy_ has joined #ruby
codeitagile has joined #ruby
jph98 has quit [Quit: jph98]
<The_NetZ>
apeiros: I seem to have found what I need, thanks :P
davy_ has quit [Ping timeout: 252 seconds]
phantomtiger has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
ahawkins has joined #ruby
gaussblurinc has joined #ruby
ScalaIrcClient has joined #ruby
postmodern has quit [Quit: Leaving]
davy_ has joined #ruby
browndawg has joined #ruby
grzywacz has joined #ruby
yacks has joined #ruby
ScalaIrcClient has quit [Ping timeout: 264 seconds]
hfp has quit [Ping timeout: 245 seconds]
joelroa has joined #ruby
JasmeetQA has joined #ruby
davy_ has quit [Ping timeout: 244 seconds]
nari has quit [Ping timeout: 244 seconds]
JasmeetQA1 has joined #ruby
leonidlm has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
Salve has joined #ruby
joelroa has quit [Ping timeout: 244 seconds]
browndawg has joined #ruby
JasmeetQA has quit [Ping timeout: 252 seconds]
predator217 has quit [Ping timeout: 264 seconds]
skaflem has joined #ruby
blackmesa has joined #ruby
tylersmi_ has quit [Remote host closed the connection]
thomasxie has quit [Remote host closed the connection]
Salve has quit [Ping timeout: 244 seconds]
tylersmith has joined #ruby
monkegjinni has quit [Remote host closed the connection]
nhhagen has joined #ruby
thomasxie has joined #ruby
davy_ has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
ndrei has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
tylersmith has quit [Ping timeout: 265 seconds]
yubrew has joined #ruby
whomp has quit [Ping timeout: 265 seconds]
davy_ has quit [Ping timeout: 240 seconds]
hfp has joined #ruby
agent_white has quit [Quit: leaving]
phansch has quit [Quit: WeeChat 0.4.2]
agent_white has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
predator117 has joined #ruby
thomasxie has quit [Remote host closed the connection]
thomasxie has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
derek_c has quit [Quit: Leaving]
kenneth has joined #ruby
jsilver has quit [Read error: Connection reset by peer]
jsilver_ has joined #ruby
pimpthink has quit [Ping timeout: 264 seconds]
sdouglas has quit [Remote host closed the connection]
ScalaIrcClient has joined #ruby
jxport has quit [Ping timeout: 244 seconds]
kwertie has quit [Ping timeout: 245 seconds]
LiohAu has joined #ruby
davy_ has joined #ruby
sparrovv has joined #ruby
morenoh149 has quit [Read error: Connection reset by peer]
jxport has joined #ruby
pimpthink has joined #ruby
kwertie has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
phantomtiger has quit [Quit: phantomtiger]
sparrovv has quit [Remote host closed the connection]
Faris has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: leaving]
guyz has quit [Ping timeout: 240 seconds]
davy_ has quit [Ping timeout: 265 seconds]
monkegjinni has joined #ruby
einarj has joined #ruby
YamakasY has joined #ruby
Guest46316 has quit [Ping timeout: 240 seconds]
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby
lurch_ has joined #ruby
digifiv5e has joined #ruby
digifiv5e is now known as Guest33982
Guest46316 has joined #ruby
Lewix has quit [Remote host closed the connection]
Xeago has joined #ruby
nikkos has quit [Quit: Computer has gone to sleep.]
francisfish has quit [Read error: Operation timed out]
camilasan has joined #ruby
skaflem has quit [Quit: Leaving]
pierre1_ has quit [Quit: Leaving]
sk87 has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
davy_ has joined #ruby
thomas314 has quit [Quit: Connection closed for inactivity]
slowcon_ has quit [Quit: slowcon_]
<Waheedi>
ANYONE HERE
<tobiasvl>
wow yes
fumk has joined #ruby
bluepojo has joined #ruby
davy_ has quit [Ping timeout: 264 seconds]
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
JasmeetQA1 has quit [Quit: Leaving.]
evenix has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 241 seconds]
AlexRussia has joined #ruby
Waheedi has quit [Quit: Waheedi]
Advocation has joined #ruby
greenarrow has joined #ruby
nvrch has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
carraroj has joined #ruby
davy_ has joined #ruby
alexju has quit [Remote host closed the connection]
razibog has joined #ruby
relix has joined #ruby
Vovko has quit [Remote host closed the connection]
dzhulk1 has joined #ruby
nikkos has joined #ruby
elaptics`away is now known as elaptics
prc has quit [Quit: Leaving.]
prc1 has joined #ruby
Faris has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
dzhulk has quit [Ping timeout: 240 seconds]
thomasxie has left #ruby [#ruby]
cs02rm0 has joined #ruby
visof has joined #ruby
klaut_ has quit [Remote host closed the connection]
Guest33982 has quit [Ping timeout: 240 seconds]
echevemaster has quit [Quit: Leaving]
digifiv5e_ has joined #ruby
joelroa has joined #ruby
infoget has joined #ruby
poguez has quit [Quit: Connection closed for inactivity]
Salve has joined #ruby
arietis has joined #ruby
roolo has joined #ruby
andrewlio has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
AlSquire has joined #ruby
yubrew has joined #ruby
dzhulk1 has quit [Quit: Leaving.]
nikkos has quit [Quit: Computer has gone to sleep.]
prc1 has quit [Ping timeout: 244 seconds]
dzhulk has joined #ruby
dzhulk1 has joined #ruby
browndawg has quit [Read error: Connection timed out]
Salve has quit [Ping timeout: 240 seconds]
francisfish has joined #ruby
browndawg has joined #ruby
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
timonv has joined #ruby
mikecmpbll has joined #ruby
kukyakya has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
guilleiguaran has quit [Quit: Connection closed for inactivity]
tedstriker has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
itadder has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
nomenkun has joined #ruby
hiyosi has joined #ruby
inversesquarelaw has quit [Ping timeout: 240 seconds]
timonv_ has joined #ruby
supersym has joined #ruby
ikaros has joined #ruby
hiyosi has quit [Ping timeout: 264 seconds]
shaunbaker has joined #ruby
TuxLyn has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
davy_ has joined #ruby
tobago has joined #ruby
<TuxLyn>
Hey guys, I'm trying to generate json from two-dimensional array then write it all to file. Creating array worked. So is generating json on output but when I write it to file only last entry saved.
Elhu has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
e4xit has quit [Read error: Connection reset by peer]
lolmaus_ has joined #ruby
e4xit has joined #ruby
lolmaus has quit [Ping timeout: 265 seconds]
ndrei has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
davy_ has quit [Ping timeout: 240 seconds]
e4xit has quit [Read error: Connection reset by peer]
browndawg has quit [Read error: Connection timed out]
calleerlandsson has joined #ruby
klaut_ has joined #ruby
e4xit has joined #ruby
klaut_ has quit [Remote host closed the connection]
browndawg has joined #ruby
klaut_ has joined #ruby
dweeb_ has joined #ruby
MarcWeber has left #ruby [#ruby]
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 265 seconds]
<apeiros>
TuxLyn: is that your question?
<TuxLyn>
apeiros, yeah :)
julian` has joined #ruby
<TuxLyn>
basicly what I've done is created array
<TuxLyn>
like
<apeiros>
TuxLyn: well, I kinda miss the part that is a question in that question
<apeiros>
I also miss almost all relevant information, most importantly your code.
<TuxLyn>
array = [ ['time', '...'], ['item', '...] ] now I've used JSON.generate on it.
<TuxLyn>
to create json format
<TuxLyn>
well I can't give code sorry not yet :)
sk87 has joined #ruby
<apeiros>
please, paste a minimal, reproducable example of your code. preferably on gist.github.com
whomp has joined #ruby
<TuxLyn>
ok let me try few more things first
<apeiros>
TuxLyn: then write code which you can give, which exhibits your problem.
<TuxLyn>
basickly
yasushi has joined #ruby
davy_ has joined #ruby
<apeiros>
do you tell your car mechanic "sorry, can't show you my car, but please solve its problem!" too?
<TuxLyn>
in php I would do > $json[] = json_encode($array); then I can access that anywhere.
vlad_starkov has quit [Remote host closed the connection]
<TuxLyn>
how can I store whole array in > json = JSON.generate(array)
<TuxLyn>
even when I use @ and $
<TuxLyn>
I only get last entry
timonv_ has quit [Remote host closed the connection]
<apeiros>
that's a profound misunderstanding
<apeiros>
@ and $ only change the scope of the variable
<apeiros>
they have absolutely no influence on what can or can't be assigned to them.
<TuxLyn>
yes I need to access it outside rows.each
<apeiros>
yeah, really, gist some code.
<TuxLyn>
ok I'll play with it some more and if I hit a wall I'll reply thanks
aagdbl has joined #ruby
shredding has joined #ruby
smathieu has joined #ruby
yasushi has quit [Ping timeout: 240 seconds]
eka has joined #ruby
davy_ has quit [Ping timeout: 252 seconds]
Xeago_ has joined #ruby
mojjojo has quit [Quit: mojjojo]
mojjojo has joined #ruby
<TuxLyn>
apeiros, you know any php ?
smathieu has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 240 seconds]
<apeiros>
TuxLyn: I try to suppress any memories of it
<TuxLyn>
apeiros, the reason I'm asking is the only way for me explain what I'm trying to do is by showing you in php :)
<apeiros>
TuxLyn: it's not.
ndrei has quit [Ping timeout: 244 seconds]
<TuxLyn>
ok np
<apeiros>
all you have to do is: code, show example input, expected output, actual output.
rdark has joined #ruby
<apeiros>
that "show" should have gone in front of "code"… rearranging sentences--
pfg has joined #ruby
pfg has quit [Max SendQ exceeded]
TMM has joined #ruby
<TuxLyn>
I'll figure it out eventually ^_^ thanks for trying to help
TMM has quit [Remote host closed the connection]
TMM has joined #ruby
pfg has joined #ruby
<dweeb_>
I want my method to be able to handle filepath, url or io object. is there a good way to do that? Should I simply check if the object responds_to? :read otherwise I use the open() method?
zeeraw has joined #ruby
<apeiros>
dweeb_: personally I don't like that. I'd provide three different methods, potentially wrapping a common underlying method
<apeiros>
dweeb_: but if you really want to, then yes, test for the behavior you need
yubrew has joined #ruby
Zespre has quit [Quit: leaving]
joelroa has joined #ruby
<dweeb_>
apeiros: hmm, ok thanks
Vovko has joined #ruby
pfg has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dweeb_>
apeiros: What names would you give to the methods?
Zunonia has quit [Quit: Computer has gone to sleep.]
<apeiros>
given that I don't even know what your method does, how should I come up with one? :)
blackmesa has joined #ruby
<apeiros>
probably: _from_path, _from_io, _from_readable, or somesuch
<dweeb_>
apeiros: :) i was just curious
Salve has joined #ruby
Zespre has joined #ruby
ndrei has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
vlad_starkov has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
shvelo has quit [Ping timeout: 264 seconds]
lkba has quit [Ping timeout: 240 seconds]
joelroa has quit [Ping timeout: 265 seconds]
timonv has joined #ruby
pavelz has joined #ruby
<pavelz>
hi, I have a small question, how is that .methods does not return a method but that method is available to be called on the object? there is no method missing. I am comparing Numeric and Rational classes.
Vovko has quit [Ping timeout: 265 seconds]
<apeiros>
pavelz: did you check the whole ancestry?
Salve has quit [Ping timeout: 252 seconds]
<apeiros>
pavelz: if it's in Numeric/Rational, you can also just tell us at which method you're looking
ScalaIrcClient has quit [Remote host closed the connection]
speed2 has joined #ruby
<pavelz>
marshal_dump for example. I did: b = Numeric.new.methods.sort ... and a = 1.to_r.methods .. and a - b, returned some syms but they are not missing from Numeric. so I wonder why would Numeric.new.methods would not list those methods in .methods call
lolmaus_ has quit [Quit: No Ping reply in 180 seconds.]
<bro>
what the fuck
<bro>
is it new?
<pavelz>
heh
lolmaus has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
browndawg has quit [Read error: Connection timed out]
<apeiros>
bro: no, existed back in 1.8, over 10 years ago.
browndawg has joined #ruby
<bro>
´~_~`
<LiohAu>
Can I do something like that in ruby ? : def set_security_code(security_code, confirmation_code = security_code)
<apeiros>
LiohAu: did you just try it?
<apeiros>
LiohAu: you know, fire up irb, define a method like that, call it and see?
<apeiros>
(or better yet, pry instead of irb)
<LiohAu>
no I did not
yasushi has joined #ruby
<apeiros>
then I suggest you do
cs02rm0 has quit [Ping timeout: 240 seconds]
<LiohAu>
well it works
<apeiros>
*thumbs up*, good :)
charliesome has joined #ruby
mengu has quit [Remote host closed the connection]
<apeiros>
LiohAu: generally, if you have "can I do X" type of questions - just go and try. and if it doesn't work, come back here and ask. don't forget to tell us what you tried.
joonty has quit [Ping timeout: 244 seconds]
nari has joined #ruby
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mojjojo has quit [Quit: mojjojo]
peterellisjones has joined #ruby
charlies_ has quit [Ping timeout: 264 seconds]
joonty has joined #ruby
jcs222 has quit [Quit: leaving]
davy_ has joined #ruby
lyanchih has quit [Quit: lyanchih]
mattmcclure has quit [Quit: Connection closed for inactivity]
<TuxLyn>
apeiros, I got it buddy :) All I needed is to use "push" ^_^
<TuxLyn>
apeiros, the only thing I still need is to actually create associative array and not just regular array ^_^
davy_ has quit [Ping timeout: 244 seconds]
prc has joined #ruby
<shevy>
these be called hashes TuxLyn
terence has joined #ruby
kennym has left #ruby [#ruby]
spider-mario has joined #ruby
Advocation has joined #ruby
lyanchih_ has joined #ruby
vlad_starkov has quit []
marcdel has joined #ruby
Mongey has joined #ruby
<terence>
hi guys, what does class << self mean?
compleatang has joined #ruby
workmad3 has joined #ruby
popl has joined #ruby
popl has joined #ruby
kaliya has joined #ruby
browndawg has quit [Read error: Connection timed out]
davy_ has joined #ruby
<shevy>
terence it extends the current instance; you can make a class method that way; class Foo; class << self; def test; puts 'hi'; end; end; Foo.test
browndawg has joined #ruby
pfg has joined #ruby
yasushi has quit [Remote host closed the connection]
<terence>
shevy: if I type this: class Foo; def test; puts 'hi'; end; end; Foo.test , what's the difference?
ndrei has quit [Ping timeout: 240 seconds]
<shevy>
terence that is a syntax error what you show here
deadlock_ has quit [Read error: Connection reset by peer]
moneydouble has joined #ruby
davy_ has quit [Ping timeout: 264 seconds]
xlogic has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
Advocation has joined #ruby
richardc has joined #ruby
joelroa has joined #ruby
foredoomed has joined #ruby
mengu has joined #ruby
lyanchih_ has quit [Ping timeout: 264 seconds]
Salve has joined #ruby
itadder has joined #ruby
jaxxstorm has left #ruby [#ruby]
<shevy>
is jquery the most popular among the javascript thingies?
ndrei has joined #ruby
browndawg has quit [Read error: Connection timed out]
joelroa has quit [Read error: Operation timed out]
davy_ has joined #ruby
nateberkopec has joined #ruby
achru_ has quit [Remote host closed the connection]
browndawg has joined #ruby
nolic has joined #ruby
achru has joined #ruby
richardc has quit [Remote host closed the connection]
itadder_ has joined #ruby
Salve has quit [Ping timeout: 265 seconds]
itadder has quit [Ping timeout: 244 seconds]
<TuxLyn>
apeiros, figured it all out now ^_^ just needed to use array << { 'key' => 'value', 'key' => 'value' } then json = JSON.generate(array) and write it all to file.json ;-)
davy_ has quit [Ping timeout: 240 seconds]
<TuxLyn>
apeiros, this json has [{ in beginning and }] throught but still parses fine
dawkirst has quit [Ping timeout: 264 seconds]
jxf has joined #ruby
richardc has joined #ruby
sleetdrop has joined #ruby
achru has quit [Remote host closed the connection]
Atw has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cs02rm0 has joined #ruby
zeeraw has joined #ruby
davidcollom is now known as davidcollom_afk
blackmesa has joined #ruby
sk87 has joined #ruby
thomasxie has joined #ruby
compleatang has quit [Remote host closed the connection]
whomp has quit [Ping timeout: 264 seconds]
compleatang has joined #ruby
thomasxie has quit [Read error: Connection reset by peer]
cs02rm0 has quit [Ping timeout: 240 seconds]
chrismcg has joined #ruby
thomasxie has joined #ruby
moneydouble has quit [Quit: Leaving.]
supersym has quit [Quit: WeeChat 0.4.3]
francisfish has joined #ruby
davedev24 has joined #ruby
visof has quit [Quit: Reconnecting]
visof has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
davidcollom_afk is now known as davidcollom
kitak has quit [Remote host closed the connection]
mourest has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
Elhu has quit [Read error: Connection reset by peer]
karupanerura is now known as zz_karupanerura
roolo has quit [Quit: Leaving...]
pedda has joined #ruby
claymore has quit [Ping timeout: 265 seconds]
Elhu has joined #ruby
infoget has quit [Quit: Leaving.]
sk87 has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
lolmaus has quit [Ping timeout: 265 seconds]
visof has quit [Ping timeout: 264 seconds]
<hackeron>
hey, question about eventmachine - is there anyway to print a warning if the reactor is being blocked by anything? - how would one know if a library is blocking the reactor?
zeeraw has joined #ruby
TuxLyn has quit [Quit: Leaving]
claymore has joined #ruby
razibog has quit [Quit: Leaving.]
zeeraw has quit [Client Quit]
zeeraw has joined #ruby
lolmaus has joined #ruby
itadder_ has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 244 seconds]
JohnBat26 has quit [Remote host closed the connection]
itadder has joined #ruby
tkuchiki has joined #ruby
banek has quit [Remote host closed the connection]
andrewlio has quit [Remote host closed the connection]
nvrch has quit [Quit: nvrch]
bro is now known as DickIsFree
JohnBat26 has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
yubrew has joined #ruby
shredding has quit [Quit: shredding]
cs02rm0 has joined #ruby
roolo has joined #ruby
quatron has joined #ruby
claymore has quit [Ping timeout: 264 seconds]
Guedes has joined #ruby
sski has joined #ruby
Guedes has joined #ruby
Guedes has left #ruby [#ruby]
thomasxie has quit [Remote host closed the connection]
yeticry has joined #ruby
thomasxie has joined #ruby
yubrew has quit [Ping timeout: 265 seconds]
senayar has quit [Remote host closed the connection]
dapz_ has quit [Ping timeout: 240 seconds]
cs02rm0 has quit [Ping timeout: 240 seconds]
therod has joined #ruby
therod has quit [Client Quit]
moneydouble has joined #ruby
axsuul has quit [Ping timeout: 265 seconds]
infoget has joined #ruby
senayar has joined #ruby
leonidlm has joined #ruby
Mon_Ouie has joined #ruby
browndawg has quit [Read error: Connection timed out]
senayar has quit [Remote host closed the connection]
IceDragon has joined #ruby
grzywacz has quit [Ping timeout: 240 seconds]
JasmeetQA has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
joelroa has joined #ruby
claymore has joined #ruby
m1lt0n_ has quit [Quit: leaving]
sepp2k has joined #ruby
griffindy has joined #ruby
moneydouble has quit [Quit: Leaving.]
Salve has joined #ruby
chipotle has quit [Quit: cya]
tjr9898 has joined #ruby
shvelo has quit [Ping timeout: 244 seconds]
joelroa has quit [Ping timeout: 265 seconds]
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Salve_ has joined #ruby
sk87 has joined #ruby
Salve has quit [Ping timeout: 264 seconds]
Megtastique has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
sarmiena_ has quit [Quit: sarmiena_]
<shevy>
hmm
richardc has quit [Read error: Connection reset by peer]
davy_ has joined #ruby
richardc has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chrismcg is now known as zz_chrismcg
francisfish has quit [Remote host closed the connection]
davy_ has quit [Ping timeout: 265 seconds]
pr0ggie has joined #ruby
banek has joined #ruby
kotakotakota has joined #ruby
browndawg has quit [Read error: Connection timed out]
richardc has quit [Read error: Connection reset by peer]
sski has quit [Remote host closed the connection]
richardc has joined #ruby
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<weeb1e>
Oh great, more encoding pains
<weeb1e>
Anyone here happen to have dealt with correctly handling utf-8 encoding for other languages?
axsuul has joined #ruby
Deele has quit [Ping timeout: 265 seconds]
<weeb1e>
I may not be able to understand Russian or Chinese, but I can see that the encoding for the text I'm handling is completely screwed
senayar_ has joined #ruby
_bart has quit [Remote host closed the connection]
linojon has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<weeb1e>
When I do that with my input string received over UDP I get: "\xD0" from ASCII-8BIT to UTF-8
dayepa has joined #ruby
mostlybadfly has joined #ruby
<weeb1e>
(an exception)
axsuul has quit [Ping timeout: 244 seconds]
francisfish has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
<terence>
Hi guys, if I don't use self or class << self in the class/module to define a method, then what can I do with this method, just use this method inside the class/module?
tjr9898 has quit [Remote host closed the connection]
davy_ has quit [Ping timeout: 240 seconds]
Advocation has quit [Quit: Advocation]
tjr9898 has joined #ruby
<weeb1e>
terence: Without pretending self, class << or ClassName. it is an instance method
<weeb1e>
It can only be used from the instance level, once an instance has been initialized
<itadder>
is lynda.com worth it to pay for ruby course
<Tocacar>
shevy: where would I find my gem file on Windows?
<itadder>
I think I will start with my project maybe in the next two week
<shevy>
itadder he likes drama. Not sure why he abandoned ruby, he moved to python, but I think he is more a C coder. C hackers in general are less dependent on scripting languages
<itadder>
ahh
<shevy>
Tocacar can you start IRB? in general, "gem env", or in irb: system "gem env" should give you info
kaldrenon has joined #ruby
Mongey has joined #ruby
<itadder>
I want ruby to be the first lang I learn
<itadder>
so I can learn others
<shevy>
Tocacar all gems are downloaded to a cache/ and gem/ subdirectory, you just need to find that; it is usually somewhere in $SITE_DIR/ path prefix of ruby install
<itadder>
damn I am late to work
<itadder>
I stayed until 8 pm yesterday
<itadder>
Guess what my boss never thought of saying oh do You want me to buy you pizza
<itadder>
or some dinner
<itadder>
thi sis the first job, I stayed late that they never asked or provided that
<Geniack>
i think we working in the same office dude
<Tocacar>
oh yes, thanks a million shevy
mojjojo has joined #ruby
<itadder>
I done trade floor before that we did a great job
<itadder>
and got food
<itadder>
Geniack: yea my office is cheap
<itadder>
and they love to rush
<nhmood>
how would you go about writing a test (with rspec) that expects an output to stdout
<Geniack>
naw that aint my office then :P
<itadder>
the provider for the trade platform just finished the 64 bit widnows 7 version of thier software last week
<itadder>
or two weeks ago I should say
<Geniack>
no windows installations over her
<itadder>
and we have until march 25 to finish windows xp upgrade to 7
<Geniack>
e
<itadder>
good
<itadder>
Geniack: I went to constant contact last month and they all use ruby and macs
<maasha>
Hey, what is needed to update a percentage number in the same spot output to a terminal window?
<itadder>
they get a lot of work done
davy_ has quit [Ping timeout: 240 seconds]
gbt has joined #ruby
<maasha>
curses seems like overkill?
<itadder>
they mostly in the terminal, emacs, and or realacs or sublime
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Raboo has joined #ruby
Megtastique has quit []
Tocacar has left #ruby [#ruby]
<Geniack>
itadder: did you know, if you're a google employee you have to come up with a good reason to NOT use macs
<Geniack>
google is the biggest mac customer
<itadder>
Geniack: yea I saw that podcast
<shevy>
maasha tried to flush yet via ansi escape codes?
<itadder>
Geniack: yea I heard that
<itadder>
Geniack: I want to go to one of google mac monthly admin meetup
<apeiros>
cina: you can create as many IOs as you want. but it won't be the stdin.
<itadder>
not sure why but the ruby community are nice people
<apeiros>
cina: there's only one stdin. and to that stdin, piping looks the same as user-input.
mojjojo has quit [Client Quit]
<itadder>
super smart also
guilleiguaran has joined #ruby
davidcollom is now known as davidcollom_afk
mojjojo has joined #ruby
stringoO has joined #ruby
iamdoo2 has quit []
<itadder>
okay I must realy go
browndawg has quit [Read error: Connection timed out]
<itadder>
Geniack: do you shutdown your maac before you move from one place to the other
iamdoo2 has joined #ruby
<itadder>
or sleep mode
<apeiros>
sleep
<d00n>
print "50%\r" ; sleep 10 ; print "51%\r" ;
<apeiros>
I almost never shut mine down
<shevy>
yeah
<itadder>
I was told if I walk for a long while my mac sleeps is is what killed my harddrive
<itadder>
I don't have the ssd
<maasha>
shevy: thanks
<shevy>
the curse of *nix based OS
<shevy>
rebooting is scary
<itadder>
LOL
<cina>
apeiros: ok, thanks
<shevy>
I want to try out the latest gobolinux .iso but I have to reboot :\ (and backup everything before...)
<itadder>
I had a linux server linux yellowdog on my old old mac running for 2 years with out reboot
<apeiros>
itadder: that doesn't make sense to me. afaik there's no difference to the HD between sleeping and shutdown.
<itadder>
until one day my mom was cleaning my room when I was a teen
<itadder>
and she dissconnected it
deadlock_ has joined #ruby
<Geniack>
itadder: i do not use ANY apple products :)
<shevy>
it would be nice if rebooting would be different
<maasha>
d00n: ah, neat.
<itadder>
okay I need to put this to sleep
chrisseaton has quit [Ping timeout: 241 seconds]
<itadder>
I told my cowoker I will be late this AM,
<chridal>
any good channels for basic API design / REST talk?
nowthatsamatt has joined #ruby
<itadder>
I am still stuck at learning blocks and methods :(
<d00n>
maasha: \r will just carriage return, without the new line. cheap/easy way to keep printing on same line (Just don't use puts which will output the \n)
itadder has quit [Remote host closed the connection]
yasushi has quit [Remote host closed the connection]
<chridal>
I'm wondering; do REST APIs respond to a POST? for instance if it was successfully created?
<maasha>
d00n: yeah, its not real pretty since the cursor is displayed at the beginning of the line.
a-priori has joined #ruby
davidcollom_afk is now known as davidcollom
<chridal>
and say, you did GET /user/:username, and it didn't find that user? Do you send them a HTTP status code then?
<apeiros>
status code and a body explaining that it wasn't found
fedesilv_ has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
<apeiros>
the explanation being in the requested format (json, xml, html, …)
<terence>
when :: is used at the begin, what does it mean? For example, ::NMatrix::BLAS.xxx
ndrei has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<chridal>
so, I'd go 404 Not Found, with JSON {'error': 'not found'}?
<shevy>
terence top level scope; there must be some parent class or module called that way
<apeiros>
and #rubyonrails, #sinatra might be good channels
<apeiros>
not sure whether roar has its own
<shevy>
terence otherwise, you could never find that parent NMatrix thing
mlpinit has joined #ruby
fedesilva has quit [Ping timeout: 240 seconds]
davy_ has joined #ruby
<apeiros>
chridal: something along that, yes
<chridal>
thanks a lot!
<d00n>
maasha: yeah I never said pretty, but is also doesn't have the overhead of curses. you can just most the \r to beginnng of the next oner.
<d00n>
err s/most/move/
<d00n>
so that way cursor is at end of line…..
duggiefresh has quit [Remote host closed the connection]
cs02rm0 has joined #ruby
duggiefresh has joined #ruby
Speed has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
aagdbl has quit [Quit: This computer has gone to sleep]
fedesilv_ has quit [Ping timeout: 240 seconds]
dayepa has quit [Quit: dayepa]
tjr9898 has quit [Remote host closed the connection]
jsilver has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
jsilver_ has quit [Read error: Connection reset by peer]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<maasha>
d00n: so are there alternatives to \r and curses?
fgo_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
<d00n>
maasha: for doing screen manipulation stuff? not sure, I don't do much with ncurses, and Don't care too much about purty :) (sorry)
cs02rm0 has quit [Ping timeout: 264 seconds]
mojjojo has quit [Quit: mojjojo]
banister has joined #ruby
tylershipe has joined #ruby
duggiefresh has quit [Ping timeout: 264 seconds]
sk87 has joined #ruby
Revokee has joined #ruby
rmorello has joined #ruby
Revokee has left #ruby [#ruby]
danshultz has joined #ruby
monkegjinni has quit [Remote host closed the connection]
enebo has joined #ruby
makara has quit [Ping timeout: 265 seconds]
mojjojo has joined #ruby
soc42 has quit [Remote host closed the connection]
browndawg has joined #ruby
jeregrine has joined #ruby
<terence>
shevy: if I use rb_define_class to define class "NMatrix", and use rb_define_module_under to define module "BLAS" under "NMatrix", and define a method "cblas_gemv" under BLAS using rb_define_method, then is it right to call "cblas_gemv" using NMatrix::BLAS.gemv ?
Buck has left #ruby ["Leaving"]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
nhmood: if it has +x, it doesn't belong into lib
platzhirsch has joined #ruby
<shevy>
terence, on the C level, the API should be something like: rb_define_singleton_method(rb_cDir, "open", dir_s_open, -1);
<apeiros>
terence: if it was a class, yes. but it's a module. so you'd have to include it into a class, instantiate that, and call it then on that instance.
<itadder>
I am in the lincon tunnel
<itadder>
on my way to work
<platzhirsch>
How would you name a method used for registering a callback which is executed during a certain point in iteration?
dik_dak has joined #ruby
<itadder>
so cool
<platzhirsch>
register_callback, add_callback,...
<shevy>
platzhirsch register_callback()
<itadder>
on a 3g connection in the tunnel in a bus
<platzhirsch>
alright
<apeiros>
platzhirsch: << ;-)
<platzhirsch>
<< sweet haha
<shevy>
I even have a method called _
<apeiros>
platzhirsch: depends on what it does.
<shevy>
all it does is append to the main @ivar
camilasan has joined #ruby
<apeiros>
platzhirsch: e.g., define_filter, if the callback is used to filter the data
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
<apeiros>
platzhirsch: but you didn't give us that information. "it's called during an iteration". tells us nothing.
paulfm has joined #ruby
<apeiros>
ary.callback { |x| x+1 }.callback { |x| x < 1 }.callback { |x| puts x }
camilasan has quit [Read error: Connection reset by peer]
<platzhirsch>
apeiros: list of words are parsed by the class and they can be iterated with .next_word, now I add a callback handler for a certain word, which is executed if the word is met
<terence>
shevy: Hmm, right! Finally I'm trying to understand singleton method and I did!
camilasan has joined #ruby
kotakotakota has quit [Ping timeout: 240 seconds]
camilasan has quit [Read error: Connection reset by peer]
<apeiros>
platzhirsch: on_<condition> do … end
<nhmood>
apeiros: great, thanks for the help
<apeiros>
e.g. on_word_match "certain word" do … end
camilasan has joined #ruby
davy_ has joined #ruby
zachallett has joined #ruby
<terence>
apeiros: So if I switch back to rb_define_singleton_method, then I can call like I wrote the first time
<apeiros>
terence: yes. minus the typo ;-)
camilasan has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
<platzhirsch>
apeiros: really? I just thought of adding a method which passes a proc to a hash and maps it to the word and in each .next_word this is checked
yacks has quit [Ping timeout: 264 seconds]
camilasan has joined #ruby
browndawg has quit [Read error: Connection timed out]
<terence>
apeiros: like the second time :-P
<apeiros>
platzhirsch: yeah. think of it, what information does "register_callback" convey?
camilasan has quit [Read error: Connection reset by peer]
<apeiros>
see the map/select/each example above
<apeiros>
it matters what the callback is used for
<apeiros>
that you register a callback is useless information IMO
camilasan has joined #ruby
prc has quit [Quit: Leaving.]
browndawg has joined #ruby
<apeiros>
so the name should state what the callback is used for instead.
prc has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
itadder has quit [Ping timeout: 265 seconds]
<platzhirsch>
ah ok
camilasan has joined #ruby
<apeiros>
platzhirsch: of course, with more concrete code, better answers can be given :-)
camilasan has quit [Read error: Connection reset by peer]
* apeiros
off for commute
kevind has joined #ruby
apeiros has quit [Remote host closed the connection]
camilasan has joined #ruby
rudisimo has joined #ruby
Kricir has joined #ruby
apeiros has joined #ruby
Aryasam has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
alexju has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
camilasan has joined #ruby
Hamburglr has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
jonno11 has joined #ruby
camilasan has joined #ruby
andrewlio has quit [Remote host closed the connection]
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
jamesto11 has joined #ruby
himsin has quit [Quit: himsin]
camilasan has quit [Read error: Connection reset by peer]
<jamesto11>
what is **_ as the last argument of a methods parameters do?
<shevy>
(offline mode: enter name=value pairs on standard input)
camilasan has joined #ruby
pu22l3r has joined #ruby
<shevy>
jamesto11 that looks weird
<shevy>
are you sure that it is **_ and that it works
<jamesto11>
yes it is someone elses code
<jamesto11>
and it works
arietis has quit [Quit: Computer has gone to sleep.]
AdmirableSnackba has quit [Quit: Connection closed for inactivity]
<platzhirsch>
.on_word(word, proc) { puts 'should be illegal' }
<toretore>
oh, no stdout
yubrew has joined #ruby
davy_ has joined #ruby
fgo_ has quit [Read error: No route to host]
fgo has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti>
Hi
duggiefresh has joined #ruby
hiyosi has quit [Ping timeout: 252 seconds]
zz_jrhorn424 is now known as jrhorn424
yacks has joined #ruby
tvw has quit []
kernelpanik has joined #ruby
<kernelpanik>
Hi guys! is the repo gem server reachable?
jobewan has joined #ruby
davy_ has quit [Ping timeout: 244 seconds]
yubrew has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
<kernelpanik>
ah ok I have read above
<GeorgesLeYeti>
Is it possible to split and keep the split value
fgo has quit [Ping timeout: 252 seconds]
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
shaunbaker has quit [Ping timeout: 240 seconds]
rococo has joined #ruby
browndawg has quit [Read error: Connection timed out]
marcgg has joined #ruby
<GeorgesLeYeti>
EG: "Hello\nWorld" i want to split \n into ["Hello\n", "World"]. Btw the possition of \n can be at the begining and at the end. So if I have "\nHello" => ["\n", "Hello"]
tjr9898 has joined #ruby
shaunbaker has joined #ruby
browndawg has joined #ruby
JohnBat26 has quit [Read error: Operation timed out]
ehc has joined #ruby
Wolland has quit [Remote host closed the connection]
Mongey has quit [Quit: Mongey]
tylershi_ has joined #ruby
Trevoke has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
marcgg_ has quit [Ping timeout: 252 seconds]
hornairs has joined #ruby
casheew has joined #ruby
casheew_ has quit [Read error: Connection reset by peer]
thomasxie has joined #ruby
<terence>
I have already defined the class and module and method in C, but Ruby still says method undefined.
phutchins has quit [Ping timeout: 240 seconds]
tylershipe has quit [Ping timeout: 240 seconds]
<shevy>
terence have you tried the minimal examples first and use the Init_* methods?
mansi_ has joined #ruby
Mongey has joined #ruby
m4n1f3st0 has quit [Quit: m4n1f3st0]
mary5030 has joined #ruby
<shevy>
GeorgesLeYeti, if you split you lose a little bit of information
<shevy>
x = "Hello\nWorld".split "\n" # => ["Hello", "World"]
<terence>
shevy: Yes, I have the Init_* method, and NMatrix::BLAS is ok
tagrudev has quit [Remote host closed the connection]
byprdct has joined #ruby
<candelabra>
if I know I have to do something say, one million times, would it be faster to do 1000000.times or while i<1000000
crystal77 has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
mengu has quit []
andy___ has joined #ruby
terence has quit [Ping timeout: 245 seconds]
andy___ is now known as Guest59100
Guest59100 has quit [Read error: Connection reset by peer]
rippa has joined #ruby
<Trevoke>
candelabra: it's definitely more idiomatic to use 1_000_000.times
Sawbones has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has joined #ruby
freerobby has joined #ruby
keen__ has joined #ruby
razrunelord has joined #ruby
diegoviola has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
richardc has quit [Remote host closed the connection]
gbt has quit [Quit: Leaving...]
<razrunelord>
Is there a difference in the time complexity between a hash and a set?
<Trevoke>
razrunelord: A Set needs to ensure that each item is unique. A Hash is a key-value pair. The answer is yes. A better answer requires a better question.
<Trevoke>
I don't know what operation you're talking about, and I don't know what your priorities or your concerns are, so it's hard to give you a good answer.
<razrunelord>
Trevoke: Lets say I only need a lookup reference, which is better to use? Hash vs set
<browndawg>
candelabra: run a benchmark upto 10E6. A simple fixnum increment is faster on my machine when I use a while loop.
<LiohAu>
in this method call, is ruby transforming everything in the parantheses into an hash : fill_form(username_field => username, password_field => password) (the method is defined like this : "def fill_form(form_items) .. end")
yasushi has quit [Remote host closed the connection]
<Trevoke>
razrunelord: this might just be because I don't understand you, but I don't think a set is even an option (unless an array is also an option for you). Lookup reference sounds a lot like key-value pair to me.
CorySimmons has quit [Quit: Zzz...]
fgo has joined #ruby
dawkirst has joined #ruby
<Trevoke>
razrunelord: could you give me a small example of what you are trying to do?
<razrunelord>
Trevoke: Consider a set of urls and I need to have a reference of all the visited urls, should I push all the visited urls in a set or use the visited urls as the key for a hash and set the value as true.
<razrunelord>
Trevoke: I am thinking set, but just want to get a second opinion
axsuul has quit [Ping timeout: 240 seconds]
nath_schwarz has joined #ruby
grvgr has joined #ruby
<Trevoke>
razrunelord: Do you have concerns regarding how long it takes to find out whether a particular URL has been used? How big is your data set? For such questions, the answer is either "it doesn't matter" or "run a benchmark", unfortunately.
andrewlio has quit [Quit: Leaving.]
sepp2k has quit [Read error: Connection reset by peer]
thomas314 has joined #ruby
<razrunelord>
Trevoke: Ok, I will try running a benchmark but if the hash is going to be a boolean hash, a set seems more intuitive. Thanks for the help!
<apeiros>
Trevoke: you're mistaken
Nirgali42 has quit [Ping timeout: 241 seconds]
Advocation has joined #ruby
fgo has quit [Remote host closed the connection]
<Trevoke>
apeiros: What do you mean?
<apeiros>
razrunelord, Trevoke: a Set is internally just a Hash with all values being true
<shevy>
LiohAu ruby sort of cheats, the is only a single argument, a hash; but ruby allows you to omit the {} there
sdouglas has joined #ruby
<apeiros>
razrunelord, Trevoke: a Set therefore has *exactly* the same time complexity as a Hash
<shevy>
LiohAu in general, when you see a => character, you can be sure that it is a hash
St_Marx has quit [Quit: Ex-Chat]
<LiohAu>
shevy: so if I add another argument to the fill_form method definition, it won't be an hash anymore right?
andrewlio has joined #ruby
failshell has joined #ruby
<Trevoke>
apeiros: That's pretty amazing. I had no idea. I've only ever compared Array and Set before, never Set and Hash.
tvw has joined #ruby
<LiohAu>
shevy: i mean it will be 2 hashes
<shevy>
LiohAu can you give a specific example, it could be a syntax error what you try ;-)
<LiohAu>
shevy: the example I wrote, was a syntax error ^^
<shevy>
hehe
<razrunelord>
thanks apeiros, why isn't it a part of ruby core then?
<shevy>
LiohAu that example ^^^ works. now how do you want to add another argument exactly?
<apeiros>
razrunelord: why? because you don't want to type `require 'set'`?
<LiohAu>
With this call : fill_form(username_field => username, password_field => password) and this method definition : "def fill_form(form_items) .. end", I have 1 Hash, if I change the method definition to "def fill_form(form_items, second_param) .. end" it will be 2 hashes right ?
axl_ has joined #ruby
<shevy>
it will be two arguments
<shevy>
nowhere does it have to be two hashes
<Trevoke>
razrunelord, apeiros a quick benchmark reveals that has is faster than set for insertions.
<Trevoke>
s/has/hash
<shevy>
LiohAu the ruby parser is constrained to allow dropping of {} only as last argument, as far as I know
<LiohAu>
You said the " => " symbol means it will create an hash no? :D
<shevy>
LiohAu yes
<apeiros>
Trevoke: "faster" != "different time complexity"
<shevy>
LiohAu but not everywhere
<apeiros>
Trevoke: and yes, of course, Set has additional method calls, so its constant overhead is larger.
<shevy>
LiohAu most everywher else it will be a syntax error :)
<apeiros>
Trevoke: however, open set.rb and see for yourself - it's just a Hash.
CorySimmons has joined #ruby
<shevy>
LiohAu if you keep on using the {}, it won't be a syntax error
<Trevoke>
apeiros: Your logic is not exactly accurate. "faster" does not imply "different time complexity" but it COULD indicate a different time complexity.
<shevy>
k and no more two arguments to your method :D
nhhagen_ has joined #ruby
Kricir has joined #ruby
<LiohAu>
ok, so I really had made a mistake when I wrote everywhere hashes without the { }
<shevy>
apeiros do you still think that ruby should allow more than one block to a method?
browndawg has quit [Read error: Connection timed out]
* shevy
uncovers teenager sins of apeiros
<LiohAu>
It worked because ruby is smart, but it was a mistake, If I decided to add 2nd parameter to the fill_form method, I would have encountered weird bugs
<shevy>
well
evenix has joined #ruby
<LiohAu>
anyway, now I understood, thx :)
<shevy>
you should not need two parameters there
lw has quit [Quit: s]
<apeiros>
Trevoke: I did not make any conclusions. I made a statement. and that statement is correct. faster is NOT the same as different time complexity.
<shevy>
you could just pass one hash as argument, and fetch the value from the hash from it LiohAu
evenix has quit [Remote host closed the connection]
<shevy>
def foo(i)
yasushi has joined #ruby
renderful has joined #ruby
<shevy>
if i.is_a? Hash # or omit this here... and .has_key? :css_class, -> change the css class in use
RaCx has quit [Quit: Computer has gone to sleep.]
twiceaday has quit [Ping timeout: 240 seconds]
<apeiros>
Trevoke: but if you feel all emotional about this, fine. I'm out. I already said everything which is to say.
evenix has joined #ruby
<LiohAu>
yes you're right
<Trevoke>
apeiros: faster does not imply different time complexity. I admit your statement is basically accurate, but I find that it implies a strict negation.
twiceaday has joined #ruby
<apeiros>
"basically"
<apeiros>
Trevoke: whatever
<shevy>
haha :D
SCommette has joined #ruby
nhhagen has quit [Ping timeout: 240 seconds]
<shevy>
come on guys, don't stop now ... I have a lot of popcorn to eat...
cina has joined #ruby
<apeiros>
shevy: I already said I'm out. sorry if I won't entertain you.
nhhagen_ has quit [Ping timeout: 240 seconds]
davy_ has quit [Ping timeout: 244 seconds]
<Trevoke>
shevy: fundamentally, I agree with him. I think we're saying the same thing. There was just an abrupt change to a mostly mathematical form of communication, and I get nervous about potentially misleading statements. Something about SIWOTI, and all that, of course.
<workmad3>
Trevoke: the problem is that speed is pretty much immaterial to time complexity... if method A is slower than method B, you need to analyse the time complexity to discover which one will grow at which rate, and it method A is faster than method B the same is also true
Speed has left #ruby ["WeeChat 0.4.3"]
Kricir has quit [Remote host closed the connection]
<Trevoke>
workmad3: That is true. And I agree with that completely.
rayners has joined #ruby
Kricir has joined #ruby
<workmad3>
Trevoke: so the statement 'A is faster than B' tells you nothing about potential time complexity and does nothing to reduce the amount of work you still need to do to discover time complexity
<workmad3>
Trevoke: you may as well say A requires more bananas than B
codeitagile has quit [Remote host closed the connection]
<Trevoke>
workmad3: agreed
yasushi has quit [Ping timeout: 240 seconds]
<workmad3>
Trevoke: hell, even if A and B took exactly the same time in your single measurement, you'd still have no information on time complexity... great fun, eh? :D
<Trevoke>
workmad3: Ah, but there you assume I made a single measurement
<Trevoke>
:p
<shevy>
god workmad is getting old!
Nirgali42 has joined #ruby
Celm has joined #ruby
<Trevoke>
If we're going to throw snowballs at each other, let me get you a compass and a protractor so we can properly calculate vectors!
blackmesa has joined #ruby
timonv has quit [Remote host closed the connection]
quatron has quit [Quit: ChatZilla 0.9.90.1 [Firefox 27.0.1/20140212131424]]
<Trevoke>
But can we assume gravity is 10m/s^2 ? This whole 9.2 thing is way too hard.
<workmad3>
Trevoke: if you'd made multiple measurements and drawn conclusions from them, you'd have been more precise than 'A is faster than B' ;)
RaCx has joined #ruby
<Trevoke>
workmad3: I was trying to be helpful without being mathematically precise. For better or for worse, I'm at a day job.
<workmad3>
Trevoke: tbh, gravity == 10 is within acceptable error tolerances for a lot of applications ;)
<workmad3>
Trevoke: as is pi == 3...
<Xeago_>
all of you are wrong, when talking about … complexity
<Xeago_>
you have to specify what complexity form you are measuring
<Xeago_>
there are differences in them, you have worst-case, best-case and more
<Trevoke>
Xeago_: We're always talking about Big-O :p
<Trevoke>
Xeago_: but thanks for chiming in, this wasn't precise enough
<shevy>
I have a Big-O!
<workmad3>
Xeago_: true... I assumed average-case time-complexity in Big-O notation
<Trevoke>
shevy: I only have younger siblings :/
<apeiros>
Trevoke: lets also use π=3, those infinite digits after the separator is annoying too
<Xeago_>
workmad3: that statement is contradictory
<workmad3>
Xeago_: hmm... my algorithms at uni did big-O notation for worst, best and average...
<apeiros>
na, big-O is not worst case, that's what, theta or something?
<Trevoke>
apeiros: You're right. Stupid Greeks. Why did they have to bother with weird numbers like that. Can we say e=2 as well? And i = 0?
jonno11 has joined #ruby
<workmad3>
Xeago_: big-O just isolates the pre-dominant term in the analysis
smathieu has joined #ruby
calleerlandsson has quit [Ping timeout: 265 seconds]
<Xeago_>
Big-O is worstcase, also known by the theta sign, yes
foysavas has joined #ruby
davy_ has joined #ruby
<apeiros>
then qsort would be O(n^2) and hash access O(n) ;-)
<Xeago_>
hmm
<Xeago_>
seems I am wrong for recent academic usecases :'(
* Xeago_
poof!
* Trevoke
examines curiously this puff of logic.
<foysavas>
anyone know how easy it is to log to stdout (or similar) from inside a execjs runtime?
peterellisjones has quit [Quit: Leaving.]
xerox357_ has joined #ruby
monkegjinni has joined #ruby
griffindy has joined #ruby
Nirgali42 has quit [Quit: leaving]
thomas314 is now known as thomas3141592653
davy_ has quit [Read error: No route to host]
geggam has joined #ruby
toastynerd has joined #ruby
davy_ has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
stringoO has quit [Quit: stringoO]
<apeiros>
hm, WP says 'upper bound', which I'd understand as 'worst case' too… odd
peterellisjones has joined #ruby
Kricir has quit [Remote host closed the connection]
tedstriker has quit [Ping timeout: 240 seconds]
smathieu has quit [Ping timeout: 264 seconds]
<Xeago_>
<3
yacks has quit [Ping timeout: 265 seconds]
<workmad3>
apeiros: big-O is the upper-bound/limiting factor of a formula
<Xeago_>
my faith in education has been restored
nouitfvf has joined #ruby
<kapowaz>
is there any way of specifying a gem group from your Gemfile to use when running `bundle exec` ?
Senjai has quit [Quit: WeeChat 0.3.7]
<workmad3>
apeiros: but the worst-case of an algorithm and the average-case of an algorithm can be provided by different formulae
<apeiros>
ah, true
claymore has quit [Read error: Operation timed out]
xerox357 has quit [Ping timeout: 265 seconds]
<apeiros>
that's what happens when you use stuff and forget about its roots…
<workmad3>
yup :)
<apeiros>
too long since academia :D
redlines has quit [Ping timeout: 244 seconds]
zeeraw has joined #ruby
<workmad3>
apeiros: it's also what happens when you mix up different levels... big-O is indeed the 'worst-case' for an individual formula :)
MattStratton has quit [Ping timeout: 240 seconds]
<workmad3>
but when you're dealing with multiple formulae, you can get the big-O notation for each of them and compare
<Trevoke>
Just a note, guys, kapowaz actually asked a question.. :)
davy_ has quit [Ping timeout: 240 seconds]
<kapowaz>
thanks Trevoke
<Trevoke>
And I don't know the answer.
<kapowaz>
I didn't want to be an ass about it… but yeah ;)
Hanmac has joined #ruby
St_Marx has joined #ruby
<kapowaz>
all evidence I've found suggests no, but that doesn't make sense to me… nobody would want to have all gems in a single group like that, but then maybe they assume you'll run tasks through rake and specify groups that way
bry4n_ has joined #ruby
toastynerd has quit [Remote host closed the connection]
<workmad3>
kapowaz: don't think there is... #bundler would be able to tell you conclusively, but afaik what groups are loaded are controlled by the Bundler.setup call within an app
joonty_ has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
larsam has quit [Read error: Connection reset by peer]
<kapowaz>
it would seem to me that it'd make sense to allow specifying a gem group to bundle exec too
Hanmac1 has quit [Ping timeout: 264 seconds]
<workmad3>
kapowaz: not particularly... lets say you had an app that used a :cli group for a binary command
<workmad3>
kapowaz: and then in your bundle exec call you said to use a :web group...
maasha has quit [Ping timeout: 245 seconds]
<kapowaz>
go on
<workmad3>
kapowaz: well, think about it... which group should be used in that situation?
renderful has quit [Remote host closed the connection]
<workmad3>
kapowaz: cli? web? both?
<Trevoke>
kapowaz: have you tried something like RACK_ENV="cli" bundle exec ? I mean, most of the code I see around loading the groups dynamically loads specific groups based on some other, external variable that doesn't really depend on Bundler.
monkegjinni has quit [Remote host closed the connection]
fgo has joined #ruby
yacks has joined #ruby
joonty has quit [Ping timeout: 244 seconds]
<Trevoke>
workmad3: What I would _want_ in that situation is all the gems not in a group, in addition to the gems in the group specified on the command line.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<kapowaz>
workmad3: I don't follow, that seems like a purposefully ambiguous choice
<kapowaz>
the scenario I see is like my own, i.e. I have a bunch of gems I use exclusively for CLI actions, unrelated to the app itself
<kapowaz>
I don't want these gems to be included in the application that's bundled for deployment
<workmad3>
kapowaz: it's ambiguous because you're wanting the groups to be used in two different ways... groups are intended for the application to control what it loads in certain circumstances, not for an end-user to control what gets loaded
<kapowaz>
not sure why it makes any difference whether it's the app or the user making that choice?
<kapowaz>
how would you approach the scenario I mention above?
<kapowaz>
for the record, I wouldn't have multiple groups — I'd have gems that are intended to be included in the app for deployment in the default group (i.e. ungrouped) and then gems related to CLI tasks in their own group
<kapowaz>
Trevoke: yeah, although it only seems to allow you to exclude, not specifically include
<workmad3>
kapowaz: it makes a difference because the application is what knows about what's required in different circumstances... by allowing the user to control it, you allow for the application to be easily set up with dependencies that don't make sense
heftig has joined #ruby
<Trevoke>
kapowaz: Bundler.require(:default, :development) seems to choose how you include.
renderful has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
<Trevoke>
kapowaz: My guess is that Bundler.require(:cli) would just load the gems inside the :cli group
<kapowaz>
trouble is that's no use, since the CLI tool isn't a ruby program
fgo has quit [Ping timeout: 240 seconds]
<kapowaz>
well, it's foreman, being executed inside a bash script
<kapowaz>
the bash script includes `bundle exec foreman --some options`
<Trevoke>
kapowaz: And now we go back to execjs, apparently. So you're telling me that a rake task launches a bash script which launches foreman?
<kapowaz>
there's no rake task :)
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
joelroa has quit [Read error: Operation timed out]
<Trevoke>
Oh my bad. Well, why don't you give up and agree that you're working with JS and do something in JS-land?
ahawkins has quit [Remote host closed the connection]
<kapowaz>
because I'm not?
lw has joined #ruby
duggiefresh has quit [Read error: Connection reset by peer]
snath has joined #ruby
sk87 has joined #ruby
<kapowaz>
maybe I'm misunderstanding some part of the toolchain, but I don't see where you're getting that from
jwest has quit [Quit: WeeChat 0.4.1]
duggiefresh has joined #ruby
DrShoggoth has joined #ruby
<kapowaz>
my understanding was foreman was written in ruby (not that this is important, it's a black box for my purposes)
vlad_starkov has joined #ruby
<workmad3>
kapowaz: the flipside - why does it matter if the load-path for executing foreman contains all the gems in the Gemfile?
<Trevoke>
kapowaz: You're starting from a bash script, which then shells out to ANOTHER bash script to launch a ruby script which launches another ruby script?
<Trevoke>
well, not a bash script but another bash shell
<kapowaz>
workmad3: I don't care if the load path contains all the gems for the foreman task, because they're *all* required for the foreman task in this case. It's the flip side of this where I want to exclude them, i.e. when I deploy a simple rack-based app (I don't need any of these for that situation)
<kapowaz>
Trevoke: because it took me 30 seconds to write it, and it works
S0da has quit [Remote host closed the connection]
<workmad3>
kapowaz: ok... so in that situation when you deploy, you install with 'bundle install --without :bad-groups'
<kapowaz>
this is a primarily static HTML demo, I'm adding rack so I can deploy it to heroku to show the client
<Trevoke>
kapowaz: are you counting the time you're spending in this chatroom as part of the time it took you to write it?
DaniG2k has quit [Quit: leaving]
<workmad3>
drop the : there, sorry
<kapowaz>
Trevoke: that's not helpful
jwest has quit [Client Quit]
<Trevoke>
kapowaz: what workmad3 said
claymore has joined #ruby
inversesquarelaw has joined #ruby
<Trevoke>
kapowaz: it's not immediately helpful, and it was a bit curt. I'm sorry about that.
<Trevoke>
kapowaz: but it is something you should consider.
<kapowaz>
workmad3: I've never explicitly bundle installed when deploying with heroku, is that something that's easily done?
Advocation has quit [Quit: Advocation]
<kapowaz>
Trevoke: adding Rake to this mix would make it 100x more complex
<workmad3>
kapowaz: oh, on heroku there's an env var you can set to exclude bundler groups on installation, I believe
mehlah has quit [Quit: Leaving...]
<kapowaz>
workmad3: perfect
<workmad3>
kapowaz: the heroku guides should tell you what it is ;)
renderful has quit [Remote host closed the connection]
<kapowaz>
I'll look into that, thanks
camilasan has quit [Remote host closed the connection]
andy___ has joined #ruby
<workmad3>
kapowaz: important to note though - that's still making the groups part of the application, it's just excluding certain runnable options from a deployment ;)
foysavas has quit [Quit: Page closed]
andy___ is now known as Guest52757
camilasan has joined #ruby
<kapowaz>
probably less than ideal, but meh
tylersmith has joined #ruby
<kapowaz>
mostly I wanted to learn if it was possible to do what I wanted, and the answer appears to be ‘why would you even do that?’
camilasan has quit [Read error: Connection reset by peer]
reduct has joined #ruby
reduct has left #ruby [#ruby]
camilasan has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
<Trevoke>
kapowaz: I suspect there are other ways to think about the problem which help you get the result you want; maybe something to keep in mind for a rainy day :)
<workmad3>
kapowaz: no, the answer was 'no, afaik you can't do that, because bundler groups are application information, not user information'
<kapowaz>
fwiw Trevoke, I've used this bash script and variations thereof when building static HTML prototypes using rake-pipeline successfully for quite a while, turning it into a set of Rake tasks always struck me as overkill
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
zachallett has quit []
<kapowaz>
basically it's a bash script because unless you manually remove the old temporary files, sometimes when you fire up foreman again you can get errors (particularly if the content resides inside a dropbox, and isn't entirely in sync)
<kapowaz>
removing the old cruft ensures it runs idempotently
<workmad3>
kapowaz: I can see exactly *why* you'd want to, it's just that bundler groups aren't the appropriate mechanism ;) if it's CLI tools that aren't part of the application, I'd keep them out of the Gemfile... if they're part of the application, I'd put them into a ':cli' or a ':build' group and exclude them on deployments that don't require it
Vovko has joined #ruby
zachallett has joined #ruby
<kapowaz>
workmad3: foreman only invokes rake-pipeline, it doesn't depend on it
<kapowaz>
so you need to be able to specify the dependencies *somehow*
postmodern has joined #ruby
<workmad3>
kapowaz: foreman != your application
<kapowaz>
well, then by your own logic that means they should be in a bundler group ;)
CorySimmons has quit [Quit: Zzz...]
<workmad3>
kapowaz: from what you've since said, I'd probably agree... but my point is that whether to load them or not is an application concern, not a user concern ;)
CorySimmons has joined #ruby
CorySimmons has quit [Max SendQ exceeded]
timonv_ has joined #ruby
kevinykchan has joined #ruby
<kapowaz>
I think the issue here stems from the fact I'm trying to use a Gemfile for two distinct purposes, one of which is a(n admittedly very simple) ruby application, the other is a command-line ruby toolchain
CorySimmons has joined #ruby
gaussblurinc has quit [Quit: Leaving.]
mehlah has joined #ruby
<kapowaz>
how does bundler behave if you have another Gemfile residing in a subdir somewhere?
<workmad3>
kapowaz: that's not normally an issue... the toolchain sounds like the application requirements to build itself
<kapowaz>
kind of
Notte has joined #ruby
<kapowaz>
they're dependencies for the development environment, not production
<workmad3>
kapowaz: so yeah, I'd put it into a :build group and exclude that group when deploying somewhere that doesn't need to build things
<kapowaz>
that's it, really
rbartos has joined #ruby
andrewlio has quit [Remote host closed the connection]
Vovko has quit [Ping timeout: 240 seconds]
dweeb_ has quit [Quit: Computer has gone to sleep.]
<kapowaz>
I think in this case I'll just do it with all the gems, it's not a real production deployment so much as a client demo
<kapowaz>
annoying but hey.
dEPy has joined #ruby
gaussblurinc has joined #ruby
ValicekB has joined #ruby
andrewlio has joined #ruby
shaunbaker has joined #ruby
ZoanthusR has joined #ruby
nhhagen has joined #ruby
jwest has joined #ruby
Notte has quit [Remote host closed the connection]
senayar_ has quit [Remote host closed the connection]
mjuszczak has left #ruby [#ruby]
phansch has quit [Quit: WeeChat 0.4.2]
senayar has joined #ruby
fgo has joined #ruby
gaussblurinc has quit [Client Quit]
binaryhat has joined #ruby
camilasan has quit []
_maes_ has joined #ruby
willb1 has quit [Ping timeout: 240 seconds]
redlines has joined #ruby
richardc has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
Symbiosisz has joined #ruby
sentinal8473 has quit [Read error: Connection reset by peer]
carneiro has quit []
nouitfvf_ has joined #ruby
soc42 has joined #ruby
heftig has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 252 seconds]
kpshek has joined #ruby
richardc has joined #ruby
nouitfvf has quit [Ping timeout: 244 seconds]
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
Czupa has joined #ruby
binaryhat has quit [Quit: Leaving]
<itadder>
hi
dzhulk has joined #ruby
g0bl1n has joined #ruby
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
pu22l3r_ has joined #ruby
ziro` has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
<snkcld>
hi
<ziro`>
is there a rake channel?
malkomalko has joined #ruby
monkegjinni has joined #ruby
Squarepy has quit [Quit: Leaving]
endash has quit [Read error: No route to host]
cHarNe2 has joined #ruby
josemota has joined #ruby
willb1 has joined #ruby
arubincloud has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
<josemota>
hello everyone, I have a question: how can I use database_cleaner with Minitest::Unit using transactions in sqlite3?
<josemota>
I am not being able to accomplish this. I've tried to refine Minitest::Unit with setup and teardown methods and use DatabaseCleaner.start/clean
<cHarNe2>
hi guys, i use NET::HTTP to register for a couple of asyncron subscription, can i have an open NET::HTTP that responds to the requests or shout i do that with sinatra or something similar?
<josemota>
no success.
endash has joined #ruby
Kricir has joined #ruby
NovapaX has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdouglas has quit [Remote host closed the connection]
timonv_ has joined #ruby
Senjai`work has joined #ruby
Senjai`work has quit [Changing host]
Senjai`work has joined #ruby
Trevoke has quit [Ping timeout: 240 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
wiku5_ has joined #ruby
<itadder>
oh
Hanmac1 has joined #ruby
crome has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
mark_locklear has joined #ruby
Trevoke has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
foredoomed has joined #ruby
albedoa has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lw has quit [Quit: s]
timonv_ has quit [Remote host closed the connection]
evenix_ has joined #ruby
zcreative has quit [Remote host closed the connection]
m4n1f3st0 has quit [Ping timeout: 240 seconds]
zcreative has joined #ruby
zeeraw has joined #ruby
evenix_ has quit [Remote host closed the connection]
Xeago_ has quit [Remote host closed the connection]
evenix_ has joined #ruby
Kricir has quit [Ping timeout: 265 seconds]
evenix has quit [Read error: Connection reset by peer]
arietis has joined #ruby
zeeraw has quit [Client Quit]
bradhe has joined #ruby
IceDragon_ has joined #ruby
foredoomed has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 240 seconds]
IceDragon has quit [Ping timeout: 265 seconds]
Solnse has joined #ruby
m4n1f3st0 has joined #ruby
IceDragon_ is now known as IceDragon
Trevoke has quit [Ping timeout: 264 seconds]
kpshek has quit []
blackmesa has joined #ruby
larsam has joined #ruby
toastynerd has joined #ruby
enebo has quit [Quit: enebo]
koell has joined #ruby
<rdark>
How can I get PTY to interact with stdout, whilst redirecting stdout to /dev/null
CorySimmons has quit [Quit: Zzz...]
sparrovv has joined #ruby
sparrovv has quit [Remote host closed the connection]
<shime>
someone whispered to me: "Object.any_instance.stub is a smell.", but didn't provide any references :( can you folks help?
<lilltiger>
In a module, how do I alias a function that uses "self" like -- module a def self.B end end -- and then: --- module a alias self.B_org self.B def self.B end end --- the self isent allowed in the alias, so how to do it?
bradhe has quit [Remote host closed the connection]
<lilltiger>
rdark: aliases dont allow "self." in them, while the module I want to overload has self.function
<Rylee>
With OptionParser how would I get the last two arguments of something like... __FILE__ -t 12 --target aji irc.rylee.me 6125
<Rylee>
>?
bradhe has joined #ruby
DreamingRainne has joined #ruby
<lilltiger>
ahh maybe alias_method is what i need
cina has joined #ruby
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby
sdouglas has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
TMM has quit [Quit: Ex-Chat]
axsuul has joined #ruby
iamdoo2 has quit [Read error: Connection reset by peer]
malkomalko has quit []
nathanso_ has joined #ruby
timonv_ has joined #ruby
<shevy>
hmmm
Wolland has joined #ruby
<shevy>
lilltiger that seems not sound as explanation - class << self; alias bla ble; end should always work too
<shevy>
I simply do not understand when I really and absolutely need alias_method
baroquebobcat has joined #ruby
m4n1f3st0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grs has quit [Ping timeout: 240 seconds]
maletor_ has joined #ruby
nathansoz has quit [Ping timeout: 241 seconds]
sailias has joined #ruby
<csmrfx>
Rylee: whats wrong with ARGV
zeeraw has joined #ruby
<lilltiger>
shevy: maybe I dont need it, maybe it's the class << self i'm lacking
bradhe has quit [Ping timeout: 252 seconds]
atno__ has joined #ruby
<Rylee>
csmrfx, I was just wondering if there's a way using OptionParser which seems tailored to, yknow, parsing options
<lilltiger>
shevy: i'm new to ruby so I dont know how it works
fgo has joined #ruby
<shevy>
lilltiger class << self should work for class methods, including aliases; the context of self is different inside of a class << self extension
axsuul has quit [Ping timeout: 265 seconds]
maletor has quit [Ping timeout: 264 seconds]
atno has quit [Ping timeout: 264 seconds]
lw has quit [Quit: s]
<shevy>
it still feels clunky to do so, compared to just being able to do alias foo bar :\
<csmrfx>
shevy why dont you read the latter link
hiyosi has joined #ruby
<csmrfx>
shevy: what does it say after the first example?
<shevy>
csmrfx yeah I read it and my question is - where do I need it? the link you gave simply speaks of keeping old references. In when i write ruby, I can not remember having needed that
f0ster has joined #ruby
zachallett has joined #ruby
<csmrfx>
need "it"?
<shevy>
yeah
<shevy>
alias_method
<csmrfx>
whats it
<shevy>
the lesser used of the two
codezomb has joined #ruby
mansi has quit [Remote host closed the connection]
bradhe has joined #ruby
<csmrfx>
well, what does it say about alias_method under the first example?
<shevy>
"Alias_method use the value of self during runtime which may be a subclass where the call is lexically located."
<csmrfx>
and whats in the next paragraph titled "Conclusion"
mansi has joined #ruby
ylluminate has quit [Quit: Bye!]
<shevy>
"Alias_method can be used in Rails to define action with duplicated content and remove duplicated code."
toastynerd has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<csmrfx>
and: It is possible with alias_method to reopen a class, override a method call and you can still use the original call. In order to maintain backward compatibility alias_method are used in plugins, extensions, deprecating variables.
<shevy>
cool
<shevy>
none of that I need
Umschwung has joined #ruby
Umschwung has quit [Max SendQ exceeded]
Mongey has quit [Quit: Mongey]
<shevy>
deprecating variables?
<shevy>
like for what :P
fgo has quit [Ping timeout: 240 seconds]
michael_lee has joined #ruby
hiyosi has quit [Ping timeout: 240 seconds]
<lilltiger>
shevy: thanks, it was the class bit
<shevy>
lilltiger \o/
toastynerd has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
smathieu has joined #ruby
toastynerd has joined #ruby
mansi_ has joined #ruby
ktosiek has joined #ruby
<csmrfx>
shevy note where alias or alias_method lives?
banister has joined #ruby
Waheedi has joined #ruby
lw has joined #ruby
<shevy>
csmrfx where do they live?
hobodave has joined #ruby
mansi has quit [Ping timeout: 265 seconds]
<csmrfx>
$ ri alias_method
toastynerd has quit [Remote host closed the connection]
<csmrfx>
ri - your best friend in the ruby world
<csmrfx>
or at least your friend
yarou has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
francisfish has quit [Remote host closed the connection]
duggiefresh has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
RaCx has quit [Quit: Computer has gone to sleep.]
lolmaus has joined #ruby
mark_locklear has quit [Ping timeout: 264 seconds]
<DreamingRainne>
Hi. I'd like to make a basic console-type GUI for sending commands to a (local) network script that does its listening in an IO.select loop. Any advice on the best approach to take so it can receive the commands from that? (Open TCPSockets over localhost, for example?) (This'll be written with Ruby/GTK, for the record.)
<csmrfx>
you mean something like midnight commander
<csmrfx>
+?
pel_daniel has joined #ruby
<DreamingRainne>
Well, "console" in a general sense, not in a bash/xterm sense. Something I can type commands into and it'll receive them even when it's busy waiting on IO.select.
<csmrfx>
I believe unix like would be to have a server and then commands to stuff its socket with
zcreative has joined #ruby
<csmrfx>
also, I would just jruby
<csmrfx>
it sound very interesting, I wish I had more help for you
duggiefresh has quit [Ping timeout: 264 seconds]
smathieu has quit [Remote host closed the connection]
hornairs has quit [Write error: Broken pipe]
<DreamingRainne>
Yeah, I saw UNIXServer/UNIXSocket when looking in the documents. It looks like something that might work, I could pass the socket alongside the TCPSockets in IO.select.
Wolland has quit [Remote host closed the connection]
<DreamingRainne>
That's one approach to take, but I was just wondering about other possible approaches for this sort of thing, or whether maybe that's a good one after all.
mansi_ has quit [Read error: Connection reset by peer]
<DreamingRainne>
I remember doing this with DCC chat once, and could control it from XChat, although I'd like to make my own separate program to control it from.
Johnny has joined #ruby
<Johnny>
hi
Wolland has joined #ruby
Johnny is now known as Guest83913
<Guest83913>
hello fellow rubyers
jlebrech has quit [Quit: Konversation terminated!]
einarj has quit [Remote host closed the connection]
<Guest83913>
csmrfx: of course i googled... its google that brought me here too :(
<toretore>
i've been meaning to write something like a "process control interface" for a while
<csmrfx>
Guest83913: if you do not know what it means you need to google it more
<DreamingRainne>
toretore: Indeed, and that's what I'm after, something I can feed to IO.select. The menu has many things it can eat; I'm just considering which to order.
<itadder>
wow this person in this video just comments a whole bunch of line of code
Hobogrammer_ has joined #ruby
peterellisjones has quit [Quit: Leaving.]
<csmrfx>
toretore: re-write linux? why
<itadder>
is comments something frawned upon in ruby code
<itadder>
only use it to document
<Guest83913>
csmrfx: ok taken your advice... ill google but can i get in touch with anyone if I am really stuck
greenarrow has quit [Quit: 500]
rbartos has quit [Remote host closed the connection]
michael_lee has quit [Ping timeout: 264 seconds]
rbartos has joined #ruby
<csmrfx>
Guest83913: heroku already provides answer to your q
<DreamingRainne>
TCP, Unix, etc. Be nice if one could make a sort of fake IO object that select could eat from. <shrug>
mahlon has joined #ruby
<toretore>
DreamingRainne: there's signals, but that's kind of limited
sdouglas has quit [Remote host closed the connection]
<toretore>
you can make "fake" io objects with pipes and to_io afaik
EmpowerNe has joined #ruby
axsuul has joined #ruby
<DreamingRainne>
toretore: Yeah, I'd rather not do that, yank it out of the loop, if possible to avoid. So far, UNIXSocket is looking good.
sdouglas has joined #ruby
mahlon has quit [Client Quit]
m4n1f3st0 has joined #ruby
<toretore>
DreamingRainne: you shoud be queueing your signals anyway
<Guest83913>
csmrfx: yep I tried all that... heroku says hash bang has to be there it was already there
duggiefresh has joined #ruby
<csmrfx>
ok think about it more...
<toretore>
otherwise you could corrupt the state of your program
<DreamingRainne>
toretore: Ah, I was wondering about that (pipes). Might be good if the UI is in the same process. So IO.select can get input from those?
<csmrfx>
Guest83913: read what does it say after the hash bang?
aspires has quit []
<toretore>
yup, pipes work with select
Hanmac1 has joined #ruby
ziyadb_ has quit [Quit: Connection closed for inactivity]
RaCx has joined #ruby
<toretore>
afaik IO.select will use to_io to get the actual fd
cocotton has joined #ruby
rbartos has quit [Remote host closed the connection]
rbartos has joined #ruby
<toretore>
DreamingRainne: named pipes is also an alternative.. but i would probably go with a unix or tcp socket
<cocotton>
Hey guys, I'm trying to find a gem that will allow me to do such a thing as "curl -X..." in a script. Yet I can't seem to find one. Anyone knows if such a thing existsÉ
<toretore>
you mean like net/http?
<Guest83913>
csmrfx: it should be just ruby ...am i right?
<EmpowerNe>
Hello everyone, I want to talk with you about a way to have a blog and make money from it from your home without selling products or thing like this . That`s why I invite you to watch the video to learn more. winblog.fr/?id=empirecroteau
EmpowerNe has quit [Killed (idoru (Spam is off topic on freenode.))]
Hanmac has quit [Ping timeout: 240 seconds]
GeorgesLeYeti has quit [Quit: Quitte]
aspires has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
<shevy>
hmm Object.send :include, Foo seems to work inside of a method; is there another way, inside of a method?
<toretore>
what?
pu22l3r has joined #ruby
g0bl1n has quit [Quit: Ex-Chat]
<itadder>
what is arr.map! do
john_____ has joined #ruby
<csmrfx>
Guest83913: $ which ruby shows you where your ruby is
sdouglas has quit [Ping timeout: 265 seconds]
<havenwood>
itadder: a pirate's map?
<certainty>
itadder: the same as .map but it mutates the receiver
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<itadder>
thanks
<csmrfx>
Guest83913: the error says that the command was not found, so whichever ruby you have, it's not where the script/app/slug thinks it is
<itadder>
oh take each out of array and so something
Elhu_ has quit [Quit: Computer has gone to sleep.]
<DreamingRainne>
I guess I'm leaning toward UNIXSocket at this point. It takes a filename; does that file have to exist, and if so, does it have to be a specific type of file (like a named FIFO)? Or is it just an identifier?
<shevy>
toretore hmm to include a module into Object at runtime
<itadder>
each element of a data structure and preform some procedure
<itadder>
AHH
<csmrfx>
Guest83913: now you need to either change the script to point to a real ruby executable, or install a missing ruby
<itadder>
thanks
cloud|nix has joined #ruby
cloud|nix has quit [Client Quit]
<toretore>
shevy: what's your goal here?
<havenwood>
itadder: #map! is like #map but as is the convention for bang! methods it modifies the reciever
<certainty>
itadder: you can think of it as mapping a function accross an array
<shevy>
toretore I need another way; the current one works fine but it looks not elegant
<Guest83913>
csmrfx: hmm cool ill figure this out i guess... thanks for your help... :)
<csmrfx>
Guest83913: try with the exact ruby version in the error (after the which)
<itadder>
certainty: oh neat
<toretore>
shevy: for what purpose?
<Guest83913>
csmrfx: yep
<csmrfx>
Guest83913: perhaps you have the right ruby executable, but the path is incorrect
Kricir has joined #ruby
yfeldblum has joined #ruby
<shevy>
toretore making a module available at the base level at runtime depending on methods called; so that a method like foo() can work in a .rb file when someone calls this or that method
stringoO has joined #ruby
<csmrfx>
I believe it is time for my daily jog now!
rbartos has quit [Ping timeout: 265 seconds]
<csmrfx>
bbl
alexju has quit [Ping timeout: 241 seconds]
<shevy>
csmrfx in the snow?!?! :(
<csmrfx>
alas, snow has melted as it is the warmest feb in century
<shevy>
hmm good point, also warmest here
workmad3 has quit [Read error: Operation timed out]
Alina-malina has quit [Read error: Connection reset by peer]
<Rylee>
Is there a way to non-essentially require a gem? Use case is that I want to check if Paint is installed, and if it is, use it to colorize log lines, but if not, then just carry on with uncolored log lines.
<certainty>
itadder: also generally you might want to avoid .map! unless you know that it's safe to use (one example would be a fresh array that is not used outside of the scope that you use the .map! in)
<itadder>
oh
arietis has quit [Quit: Computer has gone to sleep.]
<certainty>
Rylee: one way is to require it and rescue a potential LoadError
m1lt0n_ has quit [Quit: leaving]
joelroa has joined #ruby
mojjojo has quit [Quit: mojjojo]
Zesty has joined #ruby
<Rylee>
hm
<Rylee>
okay
Alina-malina has joined #ruby
xaq has joined #ruby
sarmiena_ has joined #ruby
<shevy>
not very elegant :)
ndrei has quit [Ping timeout: 264 seconds]
<shevy>
I think you can obtain a list of all gems installed via Gem:: somehow
<DreamingRainne>
No less elegant than when it raises an exception when it doesn't exist, I think.
Shidash has joined #ruby
cina has quit [Ping timeout: 244 seconds]
danman has joined #ruby
nanoyak has joined #ruby
mahlon has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
havenwood has quit []
<shevy>
well when you require it, it may load up stuff into the environment or?
<DreamingRainne>
One thing I remember learning is that it's better to just do something as though it'll work and handle it if it doesn't, rather than testing first. Like, open the file and rescue Errno::ENOENT rather than doing File.exist? first (maybe it gets deleted between exist? and File.new).
cina has joined #ruby
geggam_ has joined #ruby
<shevy>
I always check if a file exist before trying to read it
<certainty>
i don't
andrewlio has quit [Ping timeout: 264 seconds]
<shevy>
you use 4 extra lines for begin/rescue?
<certainty>
you always have to take care of the errors
xaq has quit [Ping timeout: 240 seconds]
<certainty>
having a File.exists? line doesn't change that
geggam has quit [Ping timeout: 252 seconds]
<shevy>
k so you have to use begin/rescue checks everywhere
GaryOak_ has joined #ruby
<DreamingRainne>
If you just try to open it: if it does exist, you have it in one fell swoop. If you test File.exist? first, it may well have been deleted between the exist? and the open: it's not atomic.
aspires has quit []
<shevy>
DreamingRainne sure, in that case my code will continue to run but will simply assume that the file does not exist
xerox357_ has quit [Remote host closed the connection]
<DreamingRainne>
And if it did, the exception will fly over your head even though you were willing to deal with it.
xerox357 has joined #ruby
<DreamingRainne>
Unless you begin/rescue anyway, in which case you might as well just do that in the first place.
<shevy>
certainty do you have a large ruby project online somewhere, like on github?
mallu has joined #ruby
Es0teric has joined #ruby
roolo has quit [Quit: Leaving...]
<certainty>
shevy: no. My biggest projects are internal to my company. Most of my code is on github but i don't think there is much ruby
<mallu>
hi, i'm new to ruby and still learning. how can I tell ruby not to ext it even if a command failed with exit 1?
m4n1f3st0 has joined #ruby
<cocotton>
toretore Yes that seem to be it, yet I'm not certain how to pass a custom request method
<shevy>
mallu you mean to ignore exit() call?
<cocotton>
toretore: ^
enebo has joined #ruby
<shevy>
mallu you might be able to rescue SystemExit, not sure though
<mallu>
yes
<DreamingRainne>
Besides, you don't necessarily need to handle it at the level it's opened from. Maybe I want to spawn an object that reads its data from a file. The object's File.new is unadorned: it lets exceptions pass to the caller, which can, in turn, choose how to deal with it.
xerox357_ has joined #ruby
xerox357 has quit [Read error: Connection reset by peer]
<certainty>
mallu: yes you can rescue that
<Sawbones>
I did it!
<shevy>
Sawbones did what
<certainty>
it!
<Sawbones>
I've convinced my boss to switch over to Rails
<certainty>
oh oh
<shevy>
from?
<mallu>
can you please tell how to do it?
<Sawbones>
I've been planning the change over for awhile now
<Sawbones>
CakePHP 1.3
<shevy>
mallu hmm off the top of my head perhaps try.... begin; def foo; exit; end; rescue SystemExit; puts 'DO NOT LEAVE!'; end
<DreamingRainne>
So after the File.new, the object is free to simply pretend it worked: if it didn't, it wouldn't even reach the "after" part. Exceptions can be quite elegant.
tyfighter has joined #ruby
xcv has joined #ruby
robmozart_ has quit []
<certainty>
sure they allow you to seperate concerns and provide non local exits
<shevy>
mallu try this :D loop {; begin; exit; puts "never get here"; rescue SystemExit; puts "rescued a SystemExit exception"; end; }
iamdoo2 has joined #ruby
<DreamingRainne>
As can rescuing them. Part of the reason for raising an exception is to allow a caller to rescue it if it can handle the problem in question.
shime has quit [Ping timeout: 252 seconds]
<shevy>
and he has no other choice but to handle it
<mallu>
ok will try that
lazyguru has joined #ruby
<mallu>
thanks
robmozart_ is now known as robmozart
centrx has joined #ruby
<certainty>
As an aside, beside conditions Common Lisp has also an abstraction called restarts. This way you can give the client different strategies to handle exceptional cases
<certainty>
not the same as ruby's retry
yarou has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
xcv has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
xcv has joined #ruby
francisfish has joined #ruby
<shevy>
how does erlang handle this?
<shevy>
if it would not have such an awful language :(
<shevy>
erm, *syntax
<yxhuvud>
certainty: there is also 'redo'
Guest83913 has quit [Quit: Page closed]
_bart has quit [Remote host closed the connection]
crystal77 has quit [Quit: Computer has gone to sleep.]
* DreamingRainne
can never remember which is which between "redo" and "retry". :<
<itadder>
okay
vlad_starkov has joined #ruby
grvgr has joined #ruby
sjkaliski has joined #ruby
gigetoo has quit [Remote host closed the connection]
xcv has quit [Read error: Connection reset by peer]
SCommette has joined #ruby
heftig has joined #ruby
Hanmac1 has quit [Ping timeout: 265 seconds]
<certainty>
yxhuvud: yupp, also not the same
<cocotton>
I'm trying to use the net::http class to perform an action similar to `curl -XDELETE myhost/deletethis`, yet I'm not too sure what method/object to use in the class. Anyone got a little hint of what I should be looking at??
larsam has quit [Quit: larsam]
gigetoo has joined #ruby
andrewlio has joined #ruby
<certainty>
shevy: what do you mean? Accessing files?
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<banister>
apeiros yo
lurch_ has joined #ruby
<banister>
certainty check out mulligan
Hanmac has joined #ruby
sepp2k1 has joined #ruby
recurrence has joined #ruby
<banister>
certainty i think that's a gem to bring restarts to ruby
SCommette has quit [Client Quit]
sepp2k has quit [Ping timeout: 265 seconds]
<banister>
is there a nice ruby (or rails) method to turn "hello little man" into "Hello Little Man"
fgo has joined #ruby
xerox357_ has quit [Remote host closed the connection]
rdark has quit [Quit: leaving]
centrx has quit [Quit: All this computer hacking is making me thirsty]
tjr9898 has quit [Read error: Connection reset by peer]
tjr9898_ has joined #ruby
xerox357 has joined #ruby
<banister>
ah it's titlecase
hiyosi has joined #ruby
codeFiend has joined #ruby
<gr33n7007h>
banister, "hello little man".split.map {|n| n.capitalize }.join(" ")
aspires has joined #ruby
<gr33n7007h>
any good
<banister>
gr33n7007h thx, i went with the rails method instead ;)
<gr33n7007h>
banister, thought you might :)
<banister>
;)
SCommette has joined #ruby
rmorello has joined #ruby
<shevy>
certainty hmm no, error handling in general, like rescuing faulty or failing code
<certainty>
banister: doesn't seem to have any code yet?
<DreamingRainne>
Or "map(&:capitalize)" in there. Fun little trick. Hehe.
<certainty>
shevy: i don't know the details, apart from failing early and loud. I have heard though that it get's clumbsy soon due to weired scoping issues, but that's rumors
xerox357 has quit [Read error: Connection reset by peer]
<cocotton>
Anyone how to specify a request method different from get or post, with the net:http class?
DrShoggoth has joined #ruby
shinobi_one has joined #ruby
senayar_ has quit [Remote host closed the connection]
<banister>
certainty pry-rescue excites me.
sotoj has joined #ruby
<banister>
certainty i've used it a lot, it's awesome
<certainty>
banister: of course it does ;)
compleatang has joined #ruby
Sawbones has quit []
pietr0 has quit [Quit: pietr0]
mojjojo has joined #ruby
<certainty>
banister: it's a nice thing to have. Together with restarts one could build functionality similar to CL's debugger, which presents you a list of available restarts when a condition was signaled
CaptainJet has joined #ruby
pietr0 has joined #ruby
rezzack has quit [Quit: Leaving.]
_bart has joined #ruby
njection has quit []
njection has joined #ruby
cocotton has quit [Quit: Page closed]
carraroj has quit [Quit: Konversation terminated!]
pu22l3r_ has joined #ruby
vlad_sta_ has joined #ruby
richardc has quit [Remote host closed the connection]
andrewlio has quit [Quit: Leaving.]
vlad_starkov has quit [Read error: No route to host]
crystal77 has joined #ruby
smathieu has joined #ruby
jzig has joined #ruby
geggam_ is now known as geggam
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
sdouglas has joined #ruby
rootshift has joined #ruby
smathieu_ has joined #ruby
pu22l3r has quit [Ping timeout: 265 seconds]
vim_shim has joined #ruby
carraroj has joined #ruby
Elhu has joined #ruby
mojjojo has quit [Quit: mojjojo]
sailias has quit [Quit: Leaving.]
smathieu has quit [Ping timeout: 264 seconds]
felixflores has joined #ruby
sailias has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
kung has joined #ruby
momigi has quit [Read error: Connection reset by peer]
<certainty>
i read that it allowed you to open an irb session which could presumably be replaced with a pry session
compleatang has quit [Remote host closed the connection]
<banister>
certainty ya
doubleemms has quit [Quit: doubleemms]
CorySimmons has quit [Quit: Bye!]
decoponio has quit [Quit: Leaving...]
yfeldblu_ has quit [Remote host closed the connection]
lurch_ has quit [Quit: lurch_]
RaCx has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
Waheedi has quit [Ping timeout: 240 seconds]
RaCx has joined #ruby
momigi has quit [Ping timeout: 264 seconds]
pietr0 has joined #ruby
mojjojo has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
sarmiena_ has quit [Quit: sarmiena_]
alexju has joined #ruby
rbartos has quit [Remote host closed the connection]
doubleemms has joined #ruby
skkeeper has joined #ruby
shadoi1 has quit [Quit: Leaving.]
rbartos has joined #ruby
pothibo has joined #ruby
Waheedi has joined #ruby
smathieu_ has quit [Remote host closed the connection]
<certainty>
banister: mulligan uses continuations. My memory bad, but haven't there been issues with continuations leaking memory in the past? Is that still the case?
<certainty>
+is
Alina-malina has quit [Ping timeout: 240 seconds]
f0ster has quit [Remote host closed the connection]
<shevy>
a solved problem is a good problem, so \o/
mansi_ has joined #ruby
<awc737>
lol thanks for your help shevy
<awc737>
I didn't read the complete error message
dzhulk has quit [Quit: Leaving.]
<csmrfx>
data bags? weiird
<shevy>
I am amazed you could infer the error actually :D
mansi has quit [Ping timeout: 265 seconds]
<awc737>
csmrfx: learning the ever so complex Chef
jackneill has joined #ruby
<awc737>
shevy: it was actually the most descriptive message ever lol, it helps to read: http://laravel.io/bin/xY4B
sdwrage has quit [Quit: This computer has gone to sleep]
cs02rm0 has joined #ruby
charliesome has joined #ruby
mrjensen has joined #ruby
kpshek has joined #ruby
<shevy>
I still can't see much hahaha, perhaps you are just more used to this display, but to my eyes, everything feels alien there... the pastie, the code, chef ...
maletor has joined #ruby
wiku5_ has quit [Ping timeout: 240 seconds]
<shevy>
the error is at default.rb 33 ?
sandelius has joined #ruby
SCommette has joined #ruby
alvaro_o has joined #ruby
<Rylee>
Is there a way to do this?
<Rylee>
case $options.thread_max_behavior
<Rylee>
when :cycle or :cycle_quit
<awc737>
haha
<shevy>
yeah Rylee
<shevy>
you chain via , there
<Rylee>
oh, so
<shevy>
when :cycle, :cycle_quit
<Rylee>
alright, thanks!
sandelius has left #ruby [#ruby]
reset has joined #ruby
<awc737>
what pastie do ruby mongers use shevy
<shevy>
I think most use gist, I like pastie.org (well the old one... the new one is not as good )
SHyx0rmZ has joined #ruby
tylershi_ has quit [Read error: Connection reset by peer]
evenix_ has quit [Read error: Connection reset by peer]
Kneferilis has quit [Read error: Connection reset by peer]
claymore has quit [Ping timeout: 265 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
evenix has joined #ruby
Alina-malina has joined #ruby
yubrew has joined #ruby
m4n1f3st0 has joined #ruby
vim_shim has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
motto has joined #ruby
clamstar has joined #ruby
CorySimmons has quit [Quit: Zzz...]
Alina-malina has quit [Read error: Connection reset by peer]
aspires has quit []
ndrei has quit [Ping timeout: 264 seconds]
lw has joined #ruby
nhhagen has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
shinobi_one has quit [Quit: shinobi_one]
bluepojo has quit [Ping timeout: 265 seconds]
mallu has quit [Quit: Page closed]
Symbiosisz has quit [Quit: Leaving]
aeio has joined #ruby
Symbiosisz has joined #ruby
einarj has joined #ruby
jayne_ has joined #ruby
Atww has joined #ruby
sdouglas has quit [Remote host closed the connection]
k03ll has joined #ruby
sdouglas has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mlpinit has quit [Remote host closed the connection]
m4n1f3st_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
Paradox has quit [Ping timeout: 265 seconds]
xerox357_ has quit [Remote host closed the connection]
m4n1f3st0 has quit [Ping timeout: 265 seconds]
m8 has quit [Ping timeout: 265 seconds]
mjc_ has quit [Ping timeout: 265 seconds]
jayne has quit [Read error: Connection reset by peer]
Atw has quit [Remote host closed the connection]
koell has quit [Quit: So say we all!]
lfox has quit [Ping timeout: 265 seconds]
jrhorn424 has quit [Ping timeout: 265 seconds]
frem has joined #ruby
existensil has quit [Ping timeout: 265 seconds]
mordocai has quit [Remote host closed the connection]
lfox has joined #ruby
mordocai has joined #ruby
jrhorn424 has joined #ruby
Geniack has quit [Ping timeout: 265 seconds]
mlpinit has joined #ruby
aef has quit [Ping timeout: 265 seconds]
jabular_ has quit [Ping timeout: 265 seconds]
emdub has quit [Ping timeout: 265 seconds]
frem has quit [Changing host]
frem has joined #ruby
Paradox has joined #ruby
jabular has joined #ruby
emdub has joined #ruby
artgoeshere has quit [Ping timeout: 265 seconds]
mjc_ has joined #ruby
Geniack has joined #ruby
stevegschool is now known as stytown
artgoeshere has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
inam has quit []
aef has joined #ruby
MattStratton has quit [Write error: Connection reset by peer]
mlpinit_ has joined #ruby
dkamioka has joined #ruby
motto has quit [Quit: Sto andando via]
nhhagen has quit [Ping timeout: 240 seconds]
sdouglas has quit [Ping timeout: 244 seconds]
IceyEC has joined #ruby
einarj has quit [Remote host closed the connection]
MattStratton has joined #ruby
rmorello has quit [Remote host closed the connection]
senayar has joined #ruby
xerox357 has joined #ruby
xerox357 has quit [Remote host closed the connection]
mlpinit has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
grvgr has joined #ruby
itadder has quit [Remote host closed the connection]
rmorello has joined #ruby
grvgr has quit [Client Quit]
wiku5_ has quit [Ping timeout: 264 seconds]
grzywacz has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 0.4.3]
markisonfire has joined #ruby
chrisseaton has joined #ruby
xerox357 has joined #ruby
axsuul has quit [Ping timeout: 265 seconds]
shinobi_one has joined #ruby
picca has joined #ruby
vim_shim has joined #ruby
phantomtiger has quit [Quit: phantomtiger]
shime has joined #ruby
Alina-malina has joined #ruby
CorySimmons has joined #ruby
CorySimmons has quit [Client Quit]
dzhulk has joined #ruby
CorySimmons has joined #ruby
oso96_2000 is now known as oso|away
mordocai has quit [Remote host closed the connection]
sdouglas has joined #ruby
Advocation has quit [Quit: Advocation]
mordocai` has joined #ruby
frem has quit [Ping timeout: 265 seconds]
MindfulMonk has quit [Ping timeout: 265 seconds]
seich has quit [Ping timeout: 265 seconds]
mordocai` has left #ruby [#ruby]
joelroa has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
yo61 has quit [Ping timeout: 265 seconds]
shime has quit [Ping timeout: 244 seconds]
Waheedi has quit [Quit: Waheedi]
artgoeshere has quit [Ping timeout: 265 seconds]
jeregrine has quit [Ping timeout: 265 seconds]
mbff- has quit [Ping timeout: 265 seconds]
maZtah has joined #ruby
frem has joined #ruby
Waheedi has joined #ruby
mbff has joined #ruby
kpshek has quit []
nhhagen has joined #ruby
artgoeshere has joined #ruby
mbff is now known as Guest65897
yo61 has joined #ruby
maZtah is now known as maZtah
MindfulMonk has joined #ruby
Klumben has quit [Ping timeout: 265 seconds]
xlogic has quit [Remote host closed the connection]
zenojis has quit [Quit: No Ping reply in 180 seconds.]
seich- has joined #ruby
maZtah has quit [Changing host]
maZtah has joined #ruby
Jetchisel has joined #ruby
zenojis has joined #ruby
Klumben has joined #ruby
aspires has joined #ruby
joelroa has quit [Ping timeout: 240 seconds]
jeregrine has joined #ruby
mikepack has joined #ruby
mahagon has joined #ruby
rootshift has joined #ruby
digifiv5e_ has quit [Changing host]
digifiv5e_ has joined #ruby
digifiv5e_ is now known as digifiv5e
Elhu has quit [Quit: Computer has gone to sleep.]
skaflem has quit [Quit: Leaving]
RaCx has joined #ruby
picca has left #ruby [#ruby]
wiku5_ has joined #ruby
bradhe has quit [Remote host closed the connection]
shvelo has quit [Ping timeout: 240 seconds]
xaq_ has quit [Remote host closed the connection]
shredding has joined #ruby
rbartos has quit [Remote host closed the connection]
rbartos has joined #ruby
mahagon has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
mansi_ has quit [Remote host closed the connection]
mansi has joined #ruby
rbartos has quit [Ping timeout: 240 seconds]
charles81_ is now known as charles81
wiku5_ has quit [Quit: WeeChat 0.4.1]
sdouglas has quit [Remote host closed the connection]
wiku5_ has joined #ruby
axl_ has quit [Quit: axl_]
Kricir has quit []
mansi has quit [Ping timeout: 264 seconds]
YamakasY has quit [Ping timeout: 240 seconds]
mrjensen has joined #ruby
<mostlybadfly>
Has anyone here started Ruby later on like at 30 and made a career with it?
<awc737>
30 is young
<terrellt>
One should not make a career of a language.
<yxhuvud>
people change languages all the time. a more relevant question is if anyone here started to program after 30.
fgo has joined #ruby
klaut_ has joined #ruby
<mostlybadfly>
Yeah true
vlad_starkov has joined #ruby
<mostlybadfly>
Well this is my first experience with programming and I'm 31
nanoyak has joined #ruby
Elhu has joined #ruby
<mostlybadfly>
Not happy with my job. I'm just having fun with it and enjoy learning it so that's most important right now I guess
caveat- has quit [Ping timeout: 245 seconds]
cina has quit [Remote host closed the connection]
hiyosi has joined #ruby
mansi has joined #ruby
phantomtiger has joined #ruby
mikepack_ has joined #ruby
<banister>
mostlybadfly some companies specialize in people who are making a career change into programming, and can more or less guarantee a junor-level/internship position if you successfully complete their course
fgo has quit [Ping timeout: 264 seconds]
<banister>
mostlybadfly check out generalassemb.ly
<banister>
for example, ther'es a few others too
mark_locklear has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
timonv_ has quit [Remote host closed the connection]
hiyosi has quit [Ping timeout: 244 seconds]
mikepack has quit [Ping timeout: 240 seconds]
<mostlybadfly>
Thanks banister
mansi has quit [Ping timeout: 240 seconds]
sigurding has joined #ruby
<mostlybadfly>
I'll need to explore these options. Just sick of not doing anything creative or challenging
sotoj has quit [Ping timeout: 265 seconds]
<sigurding>
guys, short question. I have a small method in a unit test, which should not be tested. How do I achieve that? (it is a helper method, for other test methods)
bluOxigen has quit [Ping timeout: 240 seconds]
echevemaster has joined #ruby
m__s has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
Jetchisel has quit [Ping timeout: 252 seconds]
mansi has joined #ruby
mansi has quit [Remote host closed the connection]
meatherly has quit [Remote host closed the connection]
mansi has joined #ruby
meatherly has joined #ruby
tvw has joined #ruby
meatherl_ has joined #ruby
caveat- has joined #ruby
ndrei has quit [Ping timeout: 252 seconds]
cescalante has joined #ruby
thumpba_ has joined #ruby
rbartos has joined #ruby
meather__ has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
meatherly has quit [Ping timeout: 244 seconds]
meatherl_ has quit [Ping timeout: 240 seconds]
caveat- has quit [Ping timeout: 240 seconds]
<redlines>
which library is most popularly used for inspecting video files in Ruby?
randomnick_ has joined #ruby
<redlines>
rvideo doesn't work for me and rmovie is 8 years deprecated
mansi has joined #ruby
caveat- has joined #ruby
<fveillette>
quick question: if i have a hashe that 5 key/value and an other hashe that have the same 5 key/value but with an extra 1 so 6 total. how i can evaluate if the 5 key value are the same in both hashes and not removing the 6th key of the second hashe
sambao21 has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
rbartos has quit [Ping timeout: 254 seconds]
dblessing has quit [Read error: Connection reset by peer]
<DreamingRainne>
fveillette: In that case, maybe something like: otherhash.merge(firsthash) == otherhash
thumpba_ has quit [Remote host closed the connection]
platzhirsch has joined #ruby
dblessing has joined #ruby
<fveillette>
DreamingRainne: will try that
<fveillette>
thanks :)
<DreamingRainne>
Or more explicitly in a loop like: firsthash.all?{|(key,value) otherhash[key] == value}
<DreamingRainne>
Er, |(key,value)|
Faris has quit [Ping timeout: 240 seconds]
sotoj has joined #ruby
caveat- has quit [Remote host closed the connection]
<jhass>
no need for the parens, |key, value| works just fine
snuffeluffegus has joined #ruby
<apeiros>
fveillette: it's hash, not hashe ;-)
havenwood has joined #ruby
<fveillette>
:)
chrisseaton has quit []
caveat- has joined #ruby
Wolland has quit []
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
mary5030 has quit [Remote host closed the connection]
xerox357 has quit [Remote host closed the connection]
razrunelord has joined #ruby
<fveillette>
merge method works!
<fveillette>
thanks guy
mary5030 has joined #ruby
xerox357 has joined #ruby
bradhe has joined #ruby
cina has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<fveillette>
last stupid question is it true ruby on rails will not be support anymore and because of that ruby will die...
tvw has quit []
<popl>
fveillette: How high are you right now?
<fveillette>
lol
<DreamingRainne>
I've never used Rails, and Ruby's alive and well as far as I'm concerned.
sputnik13 has joined #ruby
<fveillette>
my co-worker told me that :)
<fveillette>
that the language will die because of this
<popl>
How high is your coworker?
<fveillette>
i code in ruby because i'm using chef...
<fveillette>
so nothing rails related lol
<apeiros>
your coworker is full of shit and either trolling you mightily or an utter nutter :)
<havenwood>
fveillette: Ruby is used in space, on supercomputers, etc - it is fine. Rails isn't going anywhere.
meather__ has quit [Remote host closed the connection]
<fveillette>
lol ok :)
<fveillette>
will share your answer with them lol
jjbohn has quit [Quit: Leaving...]
jonnyro has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
sputnik13 has quit [Client Quit]
jcs222 has joined #ruby
xerox357_ has joined #ruby
xerox357 has quit [Read error: Connection reset by peer]
grzywacz has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
ndrei has joined #ruby
sputnik13 has joined #ruby
kpshek has joined #ruby
elaptics`away is now known as elaptics
momigi_ has quit [Remote host closed the connection]
<shevy>
fveillette rails overshadowed ruby but ruby existed before rails
xerox357_ has quit [Client Quit]
momigi has joined #ruby
niftyn8 has quit [Ping timeout: 252 seconds]
xerox357 has joined #ruby
armyriad has quit [Read error: Operation timed out]
<shevy>
fveillette so when rails will die, there will still be people who used ruby with or without rails
<havenwood>
Rails was unfortunately named, at least the "Ruby on" part. Makes no sense. :P
<shevy>
probably marketing tactic to use that name
<GaryOak_>
and lots of people are now using gems just to push out command line apps
<shevy>
hmm
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<shevy>
indeed, I do that a lot
axsuul has joined #ruby
meatherly has joined #ruby
axsuul has quit [Max SendQ exceeded]
larissa has joined #ruby
joelroa has joined #ruby
axsuul has joined #ruby
mrjensen has quit []
axsuul has quit [Max SendQ exceeded]
<slash_nick>
which gems do you guys use for that?
axsuul has joined #ruby
shredding has quit [Quit: shredding]
pitzips has joined #ruby
axsuul has quit [Max SendQ exceeded]
<m__s>
can someone help me with nokogiri? im trying to get pressure from page
<m__s>
but it gives me all 'pressure' values, how to get pressure from 'first day' for example for only '2014-03-06'
axsuul has quit [Max SendQ exceeded]
tobago has quit [Remote host closed the connection]
momigi has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Ping timeout: 240 seconds]
agjacome has quit [Quit: leaving]
<DreamingRainne>
One of the relatively big things I use it for is Ruby/GTK programs for my own use. Or scripts and bots for IRC. Even if Rails derails Ruby, all the Ruby stuff that already exists will still do so.
stytown has quit [Quit: stytown]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
incade_ has quit [Quit: leaving]
<Hanmac>
m__s: you mean like this? pressure = url.css("div[class='weather'] span[class='pressure']").first.text #=> "Ciśnienie: 1026.5hPa"
mando has quit [Read error: Connection reset by peer]
ms_2911_ has joined #ruby
razrunelord has quit [Remote host closed the connection]
claymore has joined #ruby
benzrf has joined #ruby
joelroa has quit [Ping timeout: 264 seconds]
<benzrf>
hey
sethen has quit [Ping timeout: 240 seconds]
crystal77 has quit [Quit: Computer has gone to sleep.]
<benzrf>
is there a built-in two-way hash data structure?
lw has quit [Ping timeout: 268 seconds]
<tobiasvl>
no
momigi has joined #ruby
<jhass>
There's Hash#invert though
<DreamingRainne>
benzrf: No, but you could always just add them in pairs. Or make your own class that does so.
<Hanmac>
m__s: or do you want: pressure = url.css("div[class='weather'] span[class='pressure'] span[class='size']").first.text #=> "1026.5hPa"
cina has quit [Ping timeout: 240 seconds]
<benzrf>
DreamingRainne: :[
<DreamingRainne>
class MirrorHash;def []=(key,value);@data[key]=value;@data[value]=key;end stuff like that. Should be pretty easy.
<DreamingRainne>
Maybe subclass Hash so it can be used like one, I dunno.
<benzrf>
:|
m__s has quit [Ping timeout: 252 seconds]
<ms_2911_>
Hanmac, first element is ok, but I want to get values for example Kasprowy Wierch and Łomnica. I can't use something like element[20] and element[30] because sometimes you have weather for 5 days, and sometimes for only 4 or 3, thats why I would like to get all pressure values for current day
<benzrf>
shit like deletion thoraxe
<benzrf>
*tho
<benzrf>
:\
momigi has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
<DreamingRainne>
def delete(key); @data.delete(@data.delete(key)); end
cina has joined #ruby
* DreamingRainne
shrugs.
lw has joined #ruby
momigi has joined #ruby
axsuul has quit [Max SendQ exceeded]
stytown has joined #ruby
<ms_2911_>
Hanmac, before I realized that weather sometimes is for 5 days and sometimes only for 4 days, i was using value like pressure[20] and pressure[30], but it's only working when I have weather for 5 days
<DreamingRainne>
Not sure exactly what kind of structure you're after. In any case, it should be easy enough to write up a class like that. Maybe a bit tedious, but easy.
DaniG2k has joined #ruby
thisirs has joined #ruby
rbartos has joined #ruby
<Hanmac>
ms_2911_: "Zakopane" are regions / places right?
<ms_2911_>
yes
ms_2911_ is now known as m__s
dkamioka_ has joined #ruby
<m__s>
and I want to get only two regions
andrewlio has joined #ruby
<m__s>
Kasprowy Werch and Łomnica
Jetchisel has joined #ruby
<m__s>
so at least how to get first values f rom those two regions -.-V
dkamioka has quit [Ping timeout: 241 seconds]
crystal77 has joined #ruby
momigi has quit [Read error: Connection reset by peer]
momigi has joined #ruby
petey has quit [Ping timeout: 265 seconds]
prc has joined #ruby
thumpba_ has joined #ruby
Krajsnick has joined #ruby
jph98 has joined #ruby
banek has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
Elhu has joined #ruby
[gmi] has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
fgo has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
axsuul has joined #ruby
agjacome has joined #ruby
axsuul has quit [Max SendQ exceeded]
ndrei has quit [Read error: Operation timed out]
sigurding has quit [Quit: sigurding]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
Xuisce has joined #ruby
thumpba_ has quit [Ping timeout: 240 seconds]
evenix_ has joined #ruby
hiyosi has joined #ruby
armyriad has joined #ruby
tylershipe has quit [Remote host closed the connection]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
tylershipe has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
Faris has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
yekta has joined #ruby
Brando753 has quit [Ping timeout: 264 seconds]
<Hanmac>
m__s: i used this: url.css("table[class='meteotable']").each_with_object({}) {|m,h| h[m.css(".meteostation").text] = m.css(".meteocell:first").css("td > span").each_with_object({}) {|e,h| h[e["class"]]=e.text } }
Krajsnick has quit [Remote host closed the connection]
einarj has joined #ruby
Elhu has joined #ruby
[gmi] has joined #ruby
pu22l3r has quit [Ping timeout: 265 seconds]
rylinaux has joined #ruby
DaniG2k has quit [Ping timeout: 244 seconds]
YamakasY has joined #ruby
kirun has quit [Quit: Client exiting]
[gmi] has quit [Read error: Connection reset by peer]
smathieu has quit [Remote host closed the connection]
popl has quit [Quit: Touch the frog.]
smathieu has joined #ruby
chrisseaton has joined #ruby
mordocai has joined #ruby
boomstack has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
DaniG2k has joined #ruby
centrx has joined #ruby
Axsuul_ has joined #ruby
smathieu_ has joined #ruby
Axsuul_ has quit [Max SendQ exceeded]
IceyEC has quit [Quit: IceyEC]
claymore has quit [Quit: Leaving]
zachallett has quit [Remote host closed the connection]
shvelo has quit [Remote host closed the connection]
momigi has quit [Read error: Connection reset by peer]
vim_shim has quit [Remote host closed the connection]
stringoO has quit [Quit: stringoO]
gilcosson has quit []
rootshift has joined #ruby
[gmi] has joined #ruby
momigi has joined #ruby
jjbohn has joined #ruby
smathieu has quit [Ping timeout: 240 seconds]
existensil has joined #ruby
jim0thy_ has quit [Read error: Connection reset by peer]
danshultz has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 240 seconds]
m4n1f3st_ has quit []
smathieu_ has quit [Remote host closed the connection]
smathieu has joined #ruby
shredding has joined #ruby
jjbohn has quit [Client Quit]
blackmesa has quit [Ping timeout: 252 seconds]
kayloos has joined #ruby
jjbohn has joined #ruby
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
RaCx has joined #ruby
smathieu has quit [Ping timeout: 252 seconds]
shredding has quit [Quit: shredding]
nanoyak has joined #ruby
duggiefresh has quit [Remote host closed the connection]
klaut_ has quit [Remote host closed the connection]
lukec has joined #ruby
rudisimo has quit []
letskij has joined #ruby
meatherly has quit [Remote host closed the connection]
axsuul has joined #ruby
YamakasY has quit [Remote host closed the connection]
meatherly has joined #ruby
havenwood has quit [Remote host closed the connection]
YamakasY has joined #ruby
yekta has quit [Quit: yekta]
Elhu has quit [Quit: Computer has gone to sleep.]
monkegjinni has joined #ruby
sparrovv has joined #ruby
zerun0 has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
kpshek has quit []
duggiefresh has joined #ruby
Megtastique has quit []
tcstar has joined #ruby
blandflakes has quit [Quit: Page closed]
Megtastique has joined #ruby
failshel_ has joined #ruby
doubleemms has quit [Quit: doubleemms]
zerun0 has joined #ruby
letskij has quit [Ping timeout: 252 seconds]
dzhulk has quit [Quit: Leaving.]
Hanmac has quit [Ping timeout: 264 seconds]
meatherly has quit [Ping timeout: 243 seconds]
alexju has quit [Remote host closed the connection]
p8952 has quit [Ping timeout: 240 seconds]
nisstyre has joined #ruby
tvw has joined #ruby
hermanmunster has joined #ruby
tcstar has quit [Client Quit]
YamakasY_ has joined #ruby
shinobi_one has joined #ruby
failshell has quit [Ping timeout: 244 seconds]
YamakasY has quit [Ping timeout: 252 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
joelroa has joined #ruby
bilbo_swaggins has joined #ruby
failshel_ has quit [Ping timeout: 240 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Hanmac has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
grs has quit [Ping timeout: 240 seconds]
<bilbo_swaggins>
what recommendation would you guys have for a decent, self-taught programmer to get mentoring once he encounters legitimately hard problems involving differential equations or genetic algorithms or other esoteric knowledge?
Elhu has joined #ruby
<bilbo_swaggins>
books have done me fine, but I'm looking for advice on tutoring resources for adults no longer in college
axsuul has quit [Ping timeout: 244 seconds]
Hanmac1 has quit [Ping timeout: 265 seconds]
<DreamingRainne>
bilbo_swaggins: My guess would be right here :P at least for the programming side, and channels about the fields in question. Putting the two together is up to you.
sailias has quit [Ping timeout: 265 seconds]
<centrx>
bilbo_swaggins, One idea is go to the office hours at your local university and don't give them any reason to believe you are not a student :)
<centrx>
bilbo_swaggins, Also, since we are on IRC, visit #math
joelroa has quit [Ping timeout: 244 seconds]
armyriad has joined #ruby
jcs222 has quit [Quit: leaving]
fgo has joined #ruby
sjkaliski has quit [Quit: Leaving...]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
Mon_Ouie has joined #ruby
axsuul has joined #ruby
niftyn8 has joined #ruby
petey has joined #ruby
<shevy>
is bilbo from the hobbits
axsuul has quit [Max SendQ exceeded]
oso|away is now known as oso96_2000
grs has joined #ruby
griffindy has quit [Quit: Computer has gone to sleep.]
<shevy>
bilbo_swaggins I hate math, the only thing that really helped me was to solve problems with paper and pencil
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
snuffeluffegus has quit [Quit: Leaving]
sputnik13 has joined #ruby
kevind_ has joined #ruby
chrisseaton has quit []
stytown has quit [Quit: stytown]
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
kevind has quit [Ping timeout: 264 seconds]
kevind_ is now known as kevind
armyriad has quit [Ping timeout: 244 seconds]
relix has joined #ruby
asteros has joined #ruby
rootshift has joined #ruby
armyriad has joined #ruby
axsuul has joined #ruby
asteros has quit [Client Quit]
axsuul has quit [Max SendQ exceeded]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaldreno_ has quit [Remote host closed the connection]
23LAAKQI0 has joined #ruby
23LAAKQI0 has quit [Max SendQ exceeded]
phantomtiger has quit [Quit: phantomtiger]
axsuul has joined #ruby
p8952 has joined #ruby
axsuul has quit [Max SendQ exceeded]
kaldrenon has joined #ruby
axsuul has joined #ruby
axsuul has quit [Max SendQ exceeded]
<centrx>
Darn, another doofus who asks a question and then disappears.
<fraterlaetus>
I want each of the columns to map to rows
<fraterlaetus>
ideas?
<fraterlaetus>
I tried zip
<RubyPanther>
Gaddel: the same number of references get juggled either way, with the same number of operations. That's assuming you consider the parens to be free
philcrissman has quit [Remote host closed the connection]
foredoomed has quit [Ping timeout: 240 seconds]
lmickh has quit [Remote host closed the connection]
<RubyPanther>
Jdubs: If that is decimation, then he still has 1821547884456835506 HP. I recommend a more powerful weapon.
vlad_starkov has joined #ruby
* fraterlaetus
shows off his leaky artery.
yfeldblum has quit [Remote host closed the connection]
<fraterlaetus>
lesson learned.
<Gaddel>
fraterlaetus: you should be able to do `Hash.[] array1.zip(array2)`