mercwithamouth has quit [Ping timeout: 265 seconds]
siwica has quit [Ping timeout: 245 seconds]
siwica has joined #ruby
<it_tard>
arp, already was walking to the bathroom when it came to me that he code won't catch files with 4 letter extensions...
havenwood has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 252 seconds]
marcdel has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
nateberkopec has quit [Quit: Leaving...]
soulcake has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
clov3r has joined #ruby
heidi has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
clov3r has quit [Read error: Connection reset by peer]
<volty>
just: if f =~ / \h{32} \. \w{3,4}/x
S0da has quit [Read error: Connection reset by peer]
_andyj_ has joined #ruby
<volty>
no need to check against 36 (or 37) length, the regexp does it already
b00stfr3ak has quit [Ping timeout: 268 seconds]
<volty>
just: if f =~ / \h{32} \. \w{3,4} /x # be spaceful
<_andyj_>
anyone help me understand why I get this ASCII-8BIT to UTF-8 when I have locale that looks sane? http://bpaste.net/show/141520/
randomnick_ has quit [Quit: Leaving]
Beoran_ has joined #ruby
gr33n7007h has quit [Quit: Changing server...]
_bart has quit [Remote host closed the connection]
Es0teric has joined #ruby
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
Beoran__ has quit [Ping timeout: 260 seconds]
Stygia has joined #ruby
Es0teric has quit [Max SendQ exceeded]
<volty>
_andyj_: try updating rdoc and reinstalling rails (if that is the case)
hogeo has joined #ruby
astrobunny has quit [Ping timeout: 265 seconds]
ner0x has quit [Quit: Leaving]
mansi has joined #ruby
volty has quit [Quit: Konversation terminated!]
bonnie has joined #ruby
hogeo has quit [Remote host closed the connection]
<bonnie>
salve
bonnie has left #ruby [#ruby]
hogeo has joined #ruby
Xeago has quit [Remote host closed the connection]
thesheff17 has quit [Ping timeout: 272 seconds]
jonathanwallace has quit [Read error: Connection reset by peer]
mercwithamouth has quit [Ping timeout: 272 seconds]
jonathanwallace has joined #ruby
astrobunny has joined #ruby
teapop has joined #ruby
heidi has joined #ruby
mercwithamouth has joined #ruby
hogeo has quit [Ping timeout: 272 seconds]
tkuchiki has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
niop has quit [Ping timeout: 272 seconds]
jonathanwallace has quit [Quit: WeeChat 0.4.1]
niop has joined #ruby
burlyscudd has joined #ruby
Hanmac has quit [Quit: Leaving.]
musty has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
Kelet has quit [Quit: Words do not express thoughts very well.]
tkuchiki has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Read error: Connection reset by peer]
[z`a`p] has joined #ruby
gsgdgdfgddfg has quit [Ping timeout: 272 seconds]
<[z`a`p]>
i need some help translating a few lines of ruby to python code. i will pay 10$ by paypal, please it's urgent
ssvo has joined #ruby
c0rn has joined #ruby
muxdemux has joined #ruby
asteros has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
fwmath has joined #ruby
Jetchisel has joined #ruby
forced_request has joined #ruby
havenwood has joined #ruby
Stalkr^ has joined #ruby
Xaitec has quit [Remote host closed the connection]
cody-- has joined #ruby
hogeo has joined #ruby
nari has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
jkline has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
cody-- has quit [Client Quit]
i_s has quit [Remote host closed the connection]
larissa has joined #ruby
julweber_ has joined #ruby
julweber_ has quit [Remote host closed the connection]
julweber_ has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
brennanMKE has joined #ruby
soba has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
sevenseacat has joined #ruby
julweber has quit [Ping timeout: 245 seconds]
burlyscudd has joined #ruby
clov3r has joined #ruby
julweber_ has quit [Ping timeout: 272 seconds]
brennanMKE has quit [Ping timeout: 260 seconds]
soba has quit [Ping timeout: 265 seconds]
jonathanwallace has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
Mars` has quit [Read error: Connection reset by peer]
Mars` has joined #ruby
tkuchiki has joined #ruby
soba has joined #ruby
mercwithamouth has joined #ruby
shevy has joined #ruby
<shevy>
wheeee
niop has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 265 seconds]
niop has joined #ruby
nari has quit [Ping timeout: 245 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
capnmalarkey has quit [Quit: capnmalarkey]
Monie_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brianpWins has quit [Quit: brianpWins]
DonRichie has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
fwmath has quit [Read error: Operation timed out]
Voodoofish430 has quit [Quit: Leaving.]
Shidash has quit [Ping timeout: 272 seconds]
Davey has joined #ruby
<bricker`LA>
Is there any reason why one of these is better/worse than the other? https://gist.github.com/bricker/7034919 I know using a hash in a constant is probably bad form, but I mean performance-wise
dhruvasagar has joined #ruby
pragmatism has quit [Quit: Peace]
danshultz has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
mmitchell has joined #ruby
Mars` has quit [Remote host closed the connection]
nateberkopec has joined #ruby
Mars` has joined #ruby
gmas has quit [Ping timeout: 245 seconds]
thesheff17 has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
<postmodern>
bricker`LA, i like the hash form better, compartmentalizes the data
Mars` has quit [Ping timeout: 272 seconds]
banisterfiend has joined #ruby
sambao21 has quit [Ping timeout: 245 seconds]
mansi has quit [Ping timeout: 260 seconds]
jonathanwallace has quit [Ping timeout: 272 seconds]
v0n has quit [Ping timeout: 272 seconds]
sambao21 has joined #ruby
renderful has quit [Read error: Connection reset by peer]
endash has joined #ruby
<sevenseacat>
so do i
Spami has joined #ruby
burlyscudd has quit [Quit: Leaving.]
samsonasu has quit [Quit: samsonasu]
DrShoggoth has joined #ruby
zeade has joined #ruby
zeade has quit [Client Quit]
rjhunter has joined #ruby
kakashiA1 has joined #ruby
heidi has quit [Quit: Leaving.]
justsee has joined #ruby
ewnd9 has joined #ruby
Stalkr^ has quit [Quit: Leaving...]
ldnunes has quit [Quit: Leaving]
kakashiAL has quit [Ping timeout: 240 seconds]
tylersmith has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 265 seconds]
nisstyre has joined #ruby
ShellFu is now known as ShellFu_afk
MisutoWolf has joined #ruby
Jdubs has joined #ruby
asteros has quit [Quit: asteros]
kakashiA1 is now known as kakashiAL
amacgregor_ has joined #ruby
fwmath has joined #ruby
NicolasTarzia has quit [Quit: Leaving]
t_p has joined #ruby
amacgregor__ has joined #ruby
ewnd9 has quit [Ping timeout: 249 seconds]
n_blownapart has joined #ruby
amacgregor has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Ping timeout: 245 seconds]
threesome has joined #ruby
dayepa1 has quit [Quit: dayepa1]
amacgregor_ has quit [Ping timeout: 246 seconds]
dayepa has joined #ruby
lembacon has joined #ruby
kil0byte has joined #ruby
jonahR has joined #ruby
nari has joined #ruby
vlad_starkov has joined #ruby
renderful has joined #ruby
heidi has joined #ruby
<MisutoWolf>
Ugh, this gem won't install on my system. :/
<MisutoWolf>
This is dumb.
<sevenseacat>
of course it is.
vlad_starkov has quit [Ping timeout: 252 seconds]
v0n has joined #ruby
Stygia has quit [Quit: Leaving]
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MisutoWolf>
I try to install bzip2-ruby, and I get this:
clov3r has quit [Remote host closed the connection]
clov3r has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
krz has joined #ruby
xargoon has joined #ruby
schaerli has quit [Remote host closed the connection]
schaerli has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
krz has quit [Read error: Connection reset by peer]
maletor has joined #ruby
mmitchell has joined #ruby
Spami has joined #ruby
b1nd__ has quit [Ping timeout: 260 seconds]
schaerli has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
Spami has quit [Client Quit]
b1nd__ has joined #ruby
havenwood has quit [Remote host closed the connection]
Spami has joined #ruby
sbos99 has joined #ruby
tharindu has joined #ruby
wallerdev has joined #ruby
Coolhand has quit [Ping timeout: 268 seconds]
mmitchell has quit [Ping timeout: 272 seconds]
zeade has quit [Quit: Leaving.]
zeade has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
Coolhand has joined #ruby
codenapper has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
julweber has quit [Remote host closed the connection]
julweber has joined #ruby
joshAnderson99 has joined #ruby
<joshAnderson99>
when using FileUtils.cp, dose it automatically create the destination directory, or does it need to have been created first with mkdir?
<joshAnderson99>
assume needs to be created but not clarified in docs
MisutoWolf has quit [Quit: WeeChat 0.4.1]
raphaelivan has joined #ruby
ssmithstone has quit [Ping timeout: 272 seconds]
julweber has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
julweber has joined #ruby
<joshAnderson99>
resolved
ewnd9 has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Ping timeout: 272 seconds]
raphaelivan has quit [Remote host closed the connection]
bradhe has joined #ruby
apeiros has quit [Remote host closed the connection]
bradhe has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
apeiros has joined #ruby
bradhe has joined #ruby
aganov has joined #ruby
RelAjO has joined #ruby
codeFiend has joined #ruby
DrShoggoth has joined #ruby
apeiros has quit [Ping timeout: 272 seconds]
ehc has quit [Quit: ehc]
rezzack has quit [Quit: Leaving.]
havenwood has quit [Remote host closed the connection]
io_syl has joined #ruby
gja has joined #ruby
bradhe has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
tharindu has quit [Quit: Leaving...]
claymore has joined #ruby
bradhe has joined #ruby
ioNull has quit [Ping timeout: 272 seconds]
AlSquire has joined #ruby
dash_ has joined #ruby
frustrum has quit [Ping timeout: 245 seconds]
ioNull has joined #ruby
sam113101 is now known as sam113101_afk
sam113101_afk is now known as sam113101
bradhe has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
raphaelivan has joined #ruby
raphaelivan has quit [Remote host closed the connection]
Elhu has joined #ruby
eightygrit has quit [Quit: eightygrit]
Elhu has quit [Client Quit]
raphaelivan has joined #ruby
saimaz has joined #ruby
WillAmes has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
Mon_Ouie has quit [Ping timeout: 272 seconds]
WillAmes has joined #ruby
Elhu has joined #ruby
ahawkins has joined #ruby
Monie has joined #ruby
rezzack has joined #ruby
Elhu has quit [Client Quit]
burlyscudd has joined #ruby
saimaz has quit [Remote host closed the connection]
raphaelivan has quit [Remote host closed the connection]
saimaz has joined #ruby
jonahR has joined #ruby
habanany has joined #ruby
Monie has quit [Ping timeout: 246 seconds]
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
zeade has quit [Quit: Leaving.]
funburn has quit [Quit: funburn]
zeade has joined #ruby
burlyscudd has quit [Ping timeout: 272 seconds]
saimaz has quit [Ping timeout: 252 seconds]
lewis has quit [Remote host closed the connection]
lewis has joined #ruby
gr33n7007h has joined #ruby
saimaz has joined #ruby
dzhulk has joined #ruby
larissa has quit [Quit: Leaving]
orien has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
thesheff17 has quit [Ping timeout: 272 seconds]
lewis has quit [Ping timeout: 272 seconds]
ewnd9 has joined #ruby
fgo has joined #ruby
claymore has quit [Ping timeout: 252 seconds]
ahawkins has quit [Ping timeout: 250 seconds]
habanany has quit [Remote host closed the connection]
tharindu has joined #ruby
dagobah has joined #ruby
lsmola has joined #ruby
ssmithstone has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
zz_michael_mbp is now known as michael_mbp
AlSquire has quit [Quit: This computer has gone to sleep]
pyrac has joined #ruby
robertjpayne has joined #ruby
zeade has quit [Quit: Leaving.]
jalcine_ is now known as jalcine
clov3r has joined #ruby
orien has joined #ruby
schaerli has joined #ruby
jprovazn has joined #ruby
amritanshu_RnD has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
Xeago has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
Shidash has joined #ruby
b1nd__ has quit [Ping timeout: 252 seconds]
kmckelvin has quit [Ping timeout: 265 seconds]
tjad has quit [Read error: Operation timed out]
orien has quit [Client Quit]
Jdubs has quit [Remote host closed the connection]
peterhu has quit [Ping timeout: 272 seconds]
alexju has quit [Remote host closed the connection]
blaxter has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
Jdubs has joined #ruby
alexju has joined #ruby
Jdubs has quit [Read error: Connection reset by peer]
Jdubs has joined #ruby
gstamp has joined #ruby
orien has joined #ruby
peterhu has joined #ruby
noop has joined #ruby
noop is now known as noopq
dhruvasagar has quit [Ping timeout: 252 seconds]
saimaz has quit [Remote host closed the connection]
adambeynon has joined #ruby
saimaz has joined #ruby
alexju has quit [Ping timeout: 265 seconds]
dhruvasagar has joined #ruby
gr33n7007h has quit [Remote host closed the connection]
bradhe has joined #ruby
JohnBat26 has joined #ruby
ssvo has quit [Ping timeout: 245 seconds]
soba_ has joined #ruby
soba has quit [Ping timeout: 272 seconds]
justsee has quit [Ping timeout: 272 seconds]
saimaz has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
ewnd9 has joined #ruby
soba has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
vpretzel has joined #ruby
ssvo has joined #ruby
postmodern has quit [Quit: Leaving]
Naoe-Kanno has joined #ruby
dhruvasagar has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
<weeb1e>
Anyone here ever used Mongoid with fibers? I am trying to figure out how to make it reuse sessions and not make a new one (and connection) for every query
saimaz has quit [Ping timeout: 272 seconds]
SHyx0rmZ has quit [Ping timeout: 245 seconds]
ioNull has quit [Ping timeout: 265 seconds]
ahawkins has joined #ruby
vpretzel has quit [Ping timeout: 260 seconds]
monkegjinni has joined #ruby
tatsuya_o has joined #ruby
Kar- has joined #ruby
avril14th has quit [Remote host closed the connection]
ewnd9 has quit [Remote host closed the connection]
alup has joined #ruby
ericmathison has quit [Ping timeout: 272 seconds]
<shevy>
joshAnderson99 unfortunately you must do so manually and create it
<joshAnderson99>
as discovered. ta
<shevy>
joshAnderson99 there exists FileUtils.mkdir_p() though which is a bit more convenient for creating dirs... and there is .cp_r() too I think, which is equivalent to cp -r
<joshAnderson99>
some nice options there i will have to explore
b1nd_ has joined #ruby
nerdman has joined #ruby
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
ahawkins_ has joined #ruby
ahawkins has quit [Disconnected by services]
ahawkins_ is now known as ahawkins
<shevy>
offline topic, but semi-related to ruby... since I need a new editor eventually
<shevy>
can I load files from the commandline into sublime editor?
coderhs has quit [Quit: Leaving]
schaerli has quit [Remote host closed the connection]
troessner has joined #ruby
schaerli has joined #ruby
soba has joined #ruby
colonolGron has joined #ruby
<s3itz>
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl or similar for your environment
<shevy>
aha, ok, that should then solve one thing, thanks s3itz
schaerli has quit [Ping timeout: 245 seconds]
b1nd_ has quit [Quit: Leaving]
ioNull has quit [Ping timeout: 245 seconds]
b1nd_ has joined #ruby
xefi_ has quit [Ping timeout: 245 seconds]
ioNull has joined #ruby
<s3itz>
np
s3itz has quit [Quit: g'nite]
peterhu has quit [Ping timeout: 245 seconds]
b1nd_ is now known as all
bradhe has joined #ruby
all is now known as b1nd_
lkba has quit [Read error: Connection reset by peer]
khushildep has quit [Quit: khushildep]
kmckelvin has joined #ruby
joonty_ has joined #ruby
samuel02 has joined #ruby
joonty_ has quit [Client Quit]
khushildep has joined #ruby
joonty has quit [Ping timeout: 268 seconds]
joonty_ has joined #ruby
timonv has joined #ruby
relix has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
jb41 has joined #ruby
Mars` has quit [Remote host closed the connection]
Mars` has joined #ruby
camilasan has joined #ruby
ranyip has joined #ruby
joonty_ is now known as joonty
lurch_ has joined #ruby
timonv_ has joined #ruby
kmckelvin has quit [Read error: Connection reset by peer]
ranyip has quit [Remote host closed the connection]
Mars` has quit [Ping timeout: 272 seconds]
Mattias has quit [Ping timeout: 268 seconds]
timonv has quit [Ping timeout: 252 seconds]
joshAnderson99 has quit [Quit: Leaving]
astrobunny has quit [Ping timeout: 265 seconds]
ioNull has quit [Ping timeout: 246 seconds]
saimaz has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
saimaz has quit [Read error: Operation timed out]
adambeynon has joined #ruby
tesuji has joined #ruby
cads has quit [Quit: Leaving]
ioNull has joined #ruby
astrobunny has joined #ruby
ranyip_ has joined #ruby
SilverKey has quit [Ping timeout: 246 seconds]
g0bl1n has joined #ruby
Ripp__ has quit []
Jdubs has quit [Remote host closed the connection]
tharindu has joined #ruby
Emmanuel_Chanel has quit [Read error: No route to host]
h_kon has quit [Remote host closed the connection]
pranny1 has joined #ruby
h_kon has joined #ruby
jonahR has quit [Quit: jonahR]
TMM has joined #ruby
<TMM>
d
<TMM>
whoops
<TMM>
stray key and enter, my apologies!
mrsolo has quit [Quit: This computer has gone to sleep]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
tharindu has quit [Ping timeout: 265 seconds]
tango_ has joined #ruby
pranny has quit [Ping timeout: 272 seconds]
narcan has joined #ruby
amacgregor__ has quit [Ping timeout: 246 seconds]
h_kon has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
<tango_>
hello. using 1.9.3p448 (debian unstable official package). I have a question about ARGF. I would like to process each line passed from the cli, skipping those that do no match some condition. so my first idea was to use ARGF.each_line { |line| ARGF.skip unless line.match(something) }, assuming this would skip to the next file. instead, I get an IOError because of closed stream. is it some incompatibility between each_line and skip or am I doing something
<tango_>
wrong?
gja has joined #ruby
Emmanuel_Chanel has joined #ruby
timonv_ has quit [Remote host closed the connection]
buibex has joined #ruby
<canton7>
you never told it to stop looping over lines in the first file in ARGF? I suspect that's probably your problem
niklasb has joined #ruby
Xeago has joined #ruby
<canton7>
you're aware that ARGF.skip skips to the next *file*, not the next line?
ShellFu_afk has quit [Ping timeout: 245 seconds]
denysonique has quit [Ping timeout: 245 seconds]
<tango_>
canton7: yeah, I want to skip to the next _file_ when the current file has a line that does not meet a certain criteria
carraroj has joined #ruby
moeSeth has quit [Ping timeout: 245 seconds]
Zespre has quit [Ping timeout: 245 seconds]
sensen has joined #ruby
<tango_>
so I'm processing files line-by-line, and as soon as I come across a line that does not meet a certain criteria it should switch to the next file, that's the logic
mostlybadfly has quit [Ping timeout: 245 seconds]
<canton7>
tango_, cool. yeah there's no way that #each_line knows to magically start again
mroth has quit [Ping timeout: 245 seconds]
pkondzior___ has quit [Ping timeout: 264 seconds]
pipework has quit [Ping timeout: 245 seconds]
Domon_ has quit [Ping timeout: 245 seconds]
ranyip_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
Hanmac has joined #ruby
fourqqq has quit [Ping timeout: 245 seconds]
<tango_>
well, each_line in ARGF goes through all the files, so I would expect it to get the first line of the next file as 'next line' after a skip
niftylettuce has quit [Ping timeout: 245 seconds]
octarine has quit [Ping timeout: 245 seconds]
guilleiguaran_ has quit [Ping timeout: 245 seconds]
geoffw8_ has quit [Ping timeout: 245 seconds]
<tango_>
at least, that's what I expected
nism-pi has joined #ruby
bwwrd has joined #ruby
burlyscudd has quit [Ping timeout: 255 seconds]
<canton7>
it's like saying a = [1, 2]; b = [3, 4]; current = a; current.each{ .... current = b } I guess. You don't actually change what you're iterating over
<canton7>
and anyway, looking at it, ARGF#each_line iterates over each line in *all files* anyway
<canton7>
not just the first file?
Norrin has quit [Ping timeout: 260 seconds]
mjc_ has quit [Quit: No Ping reply in 180 seconds.]
mjc_ has joined #ruby
<tango_>
canton7: specifically because each_line iterates over the lines of all files I was expecting the skip to allow it to skip to the next file within the loop
<tango_>
but it seems it doesn't work that way. meh
<bwwrd>
hey peeps, I can't figure out how to do this! I need to group my array of objects into batches of 3 or less (because the last batch may not make a total of 3). e.g. [1,2,3,4,5,6,7,8] => [[1,2,3], [4,5,6], [7,8]]
<canton7>
I think you're expecting way too much magic
workmad3 has joined #ruby
<canton7>
a general rule of thumb in any language: don't alter something as you're iterating over it
<tango_>
bwwrd: Array#partition ?
noopq has quit [Ping timeout: 272 seconds]
Martinez has quit [Ping timeout: 260 seconds]
<bwwrd>
ok, thanks i'll take a look
<tango_>
canton7: yeah, I'm just used to ruby usually doing what i mean 8-D
<arussel>
hoelzro: you're definitely right about writing it in ruby
astrobunny has quit [Ping timeout: 260 seconds]
<arussel>
can't I tell my multiline string not to extrapolate ?
havenwood has quit [Remote host closed the connection]
<hoelzro>
yeah
<hoelzro>
don't use ""
<hoelzro>
and I think you mean "interpolate" ;)
<arussel>
:-)
DanKnox is now known as DanKnox_away
allsystemsarego has joined #ruby
triptec has joined #ruby
<triptec>
hello
niklasb has quit [Ping timeout: 272 seconds]
<triptec>
I've made a weather api gem and I'm wondering if I should have code in the gem to help with testing
<hoelzro>
ahoy
<triptec>
as in being able to configure the gem to be in testing mode or somehting like that
<hoelzro>
hmm
jlebrech has joined #ruby
<hoelzro>
I myself prefer to avoid that kind of thing
<hoelzro>
because then you're not testing the code that will be running in the real world
<triptec>
yeah it doesn't sit really well with me
shevy has quit [Ping timeout: 272 seconds]
niklasb has joined #ruby
aryaching has joined #ruby
<triptec>
but I don't know how to do it, I'm testing the rails app using it and I'm wondering if I then should wrap the in some class in the rails app that I can mock
<triptec>
but that doesnt sit really good either
astrobunny has joined #ruby
carraroj has quit [Read error: Operation timed out]
<triptec>
well I have test that test the gem in the gem repo so the gem ist tested
blackmesa has quit [Ping timeout: 240 seconds]
<triptec>
and I think I'd like to mock the gem in the host app
<triptec>
but I don't know how to do it
plotter has quit [Read error: Operation timed out]
saimaz has joined #ruby
yfeldblum has joined #ruby
bradhe has joined #ruby
einarj has joined #ruby
maroloccio has quit [Ping timeout: 260 seconds]
v9r has quit [Ping timeout: 248 seconds]
zaargy has joined #ruby
mklappstuhl has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
saimaz has quit [Remote host closed the connection]
tharindu|away is now known as tharindu
maroloccio has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
astrobunny has quit [Ping timeout: 245 seconds]
shevy has joined #ruby
jibi has quit [Read error: Operation timed out]
v9r has joined #ruby
mikecmpbll has joined #ruby
astrobunny has joined #ruby
ehaliewicz has quit [Remote host closed the connection]
ehaliewicz has joined #ruby
peterhu has joined #ruby
_bart has joined #ruby
pedda has joined #ruby
heftig has joined #ruby
jibi has joined #ruby
peterhu has quit [Ping timeout: 265 seconds]
astrobunny has quit [Ping timeout: 246 seconds]
Kar- has quit [Ping timeout: 252 seconds]
jrhe has joined #ruby
Bry8Star{T2 has joined #ruby
maz-dev has quit [Write error: Broken pipe]
mercwithamouth has quit [Ping timeout: 252 seconds]
kizzx2 has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
astrobunny has joined #ruby
robertjpayne has quit [Remote host closed the connection]
h_kon has joined #ruby
nerdman has quit [Quit: leaving]
schaerli has joined #ruby
v9r has quit [Ping timeout: 252 seconds]
_bart has quit [Remote host closed the connection]
Zespre has joined #ruby
mroth has joined #ruby
fourqqq has joined #ruby
camilasan has quit [Remote host closed the connection]
pkondzior___ has joined #ruby
jalcine is now known as jalcine_
camilasan has joined #ruby
burlyscudd has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
tspike has joined #ruby
mostlybadfly has joined #ruby
ismlages has joined #ruby
moeSeth has joined #ruby
kitak has quit [Remote host closed the connection]
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
denysonique has joined #ruby
geoffw8_ has joined #ruby
Domon_ has joined #ruby
guilleiguaran_ has joined #ruby
octarine has joined #ruby
pipework has joined #ruby
niftylettuce has joined #ruby
v9r has joined #ruby
burlyscudd has quit [Ping timeout: 265 seconds]
kaspergrubbe has quit [Remote host closed the connection]
noopq has quit [Ping timeout: 260 seconds]
jibi has quit [Quit: .]
ehaliewicz has quit [Ping timeout: 265 seconds]
t_p has quit [Quit: Computer has gone to sleep.]
tspike has quit [Remote host closed the connection]
zoee has quit [Ping timeout: 252 seconds]
tspike has joined #ruby
sepp2k has joined #ruby
rahulkmr has quit [Read error: Connection reset by peer]
hogeo has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
hogeo has joined #ruby
rahulkmr has joined #ruby
lembacon has quit [Remote host closed the connection]
yacks has joined #ruby
hogeo has quit [Ping timeout: 265 seconds]
aagdbl1 has quit [Quit: Leaving.]
darth_chatri has joined #ruby
hogeo has joined #ruby
_bart has joined #ruby
noopq has joined #ruby
darth_chatri has quit [Client Quit]
darth_chatri has joined #ruby
tspike has quit [Ping timeout: 272 seconds]
darth_chatri has left #ruby [#ruby]
tspike has joined #ruby
darth_chatri has joined #ruby
h_kon has quit [Remote host closed the connection]
darth_chatri has quit [Client Quit]
sevenseacat has joined #ruby
aryaching_ has joined #ruby
aagdbl has joined #ruby
<shevy>
compiling compiling compiling
<shevy>
when will it ever stop!
vpretzel has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
<skoodge>
I would like to include a C binary as part of a gem in my bin/ directory, but ruby tries to execute this binary file as a ruby script. How can I tell rubygems to treat it as a binary file?
burlyscudd has quit [Read error: Connection reset by peer]
mansi has quit [Remote host closed the connection]
xjiujiu_ has joined #ruby
mansi has joined #ruby
ioNull has quit [Ping timeout: 265 seconds]
kaldrenon has joined #ruby
zerun0_ has joined #ruby
roadt__ has quit [Ping timeout: 252 seconds]
xjiujiu has quit [Ping timeout: 265 seconds]
Guest1779 has joined #ruby
peterhu has joined #ruby
alekst has joined #ruby
mansi has quit [Ping timeout: 252 seconds]
ioNull has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
MisutoWolf has joined #ruby
r0ber has quit [Quit: Saliendo]
<MisutoWolf>
So, i wrote this buffer class and socket class for this project I'm working on, and I have no idea how to unit test the socket one. I'm at a loss. :(
<MisutoWolf>
(I'm new to Rspec and stuff, honestly.)
<workmad3>
(that would have been more effective with an object that had instance variables :) )
tagrudev has quit [Quit: Me = Awesome]
vpretzel has joined #ruby
narcan has joined #ruby
<MisutoWolf>
I wish I could think of a small Ruby project to undertake that was genuinely useful.
<MisutoWolf>
I am so terrible at thinking of project ideas
krawchyk_ has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
devoldmx3 has joined #ruby
krz has quit [Quit: krz]
pyrac has quit [Quit: pyrac]
maz-dev has joined #ruby
aagdbl has quit [Quit: Leaving]
<Todd>
misutowolf, the main reason I got a job besides money was project ideas :P
teapop has left #ruby [#ruby]
<MisutoWolf>
:P
<MisutoWolf>
I sort of want to get into fiddling with network protocols and Ruby, because it seems interesting to me
devoldmx has quit [Ping timeout: 260 seconds]
iamjarvo_ has joined #ruby
<MisutoWolf>
I was going to write my own Source Engine query/rcon library
breakingthings has joined #ruby
aganov has quit [Quit: aganov]
<workmad3>
misutowolf: have you given up on that? :(
xjiujiu_ has quit [Quit: No Ping reply in 180 seconds.]
<MisutoWolf>
But then I ended up trying to port one instead, because I didn't really know what I was doing...and now I'm sort of stuck on that anyway, because I don't know how to test what I've written
<MisutoWolf>
Not really.
xjiujiu has joined #ruby
<MisutoWolf>
I have it open right now, sitting here...I just want to test the stuff that's done before I move on, I guess.
<MisutoWolf>
I think the answer is to mock a udp socket to act as a 'server' and then shove stuff into it at the wrapper
<MisutoWolf>
I just need to write down the functionality I need to test on paper (it'd probably help my thinking) and then figure out how to do it in rspec with mocking
maz-dev has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Ping timeout: 272 seconds]
tomzx_mac has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<MisutoWolf>
ROFL.
<MisutoWolf>
So apparently my copy of Chrome, coupled with FGLRX drivers has a pretty annoying (confirmed) bug.
jalcine is now known as jalcine_
<MisutoWolf>
If a page's title is longer than 24 characters, the title disappears from the tab it's on.
<MisutoWolf>
Anything under 24 is fine.
yfeldblum has quit [Ping timeout: 245 seconds]
jrhe has quit [Ping timeout: 265 seconds]
<MisutoWolf>
Ooh, I think I have a project idea. It's probably reinventing the wheel, but I'll get to play with sockets, so whatever :D
tharindu has joined #ruby
MrV has joined #ruby
duggiefresh has quit [Ping timeout: 272 seconds]
TorpedoSkyline has quit [Changing host]
TorpedoSkyline has joined #ruby
tharindu is now known as tharindu|away
devoldmx has joined #ruby
b1nd_ has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
b1nd__ has joined #ruby
mikecmpbll has joined #ruby
Soda has joined #ruby
blaxter has quit [Quit: foo]
user258467 has joined #ruby
astrobunny has quit [Ping timeout: 272 seconds]
eichenwald has joined #ruby
tharindu|away has quit [Ping timeout: 252 seconds]
h_kon_ has quit [Remote host closed the connection]
devoldmx3 has quit [Ping timeout: 248 seconds]
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
sayan has quit [Ping timeout: 252 seconds]
asobrasil has joined #ruby
mpeg has joined #ruby
kazuuu has joined #ruby
pyrac has joined #ruby
daxroc has joined #ruby
t_p has joined #ruby
Soda has quit [Ping timeout: 245 seconds]
astrobunny has joined #ruby
camilasan has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 245 seconds]
kofno has joined #ruby
camilasan has joined #ruby
Vivekananda_ has quit [Ping timeout: 260 seconds]
phantasm66 has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Changing host]
iamjarvo has quit [Ping timeout: 252 seconds]
peterhu has joined #ruby
sambao21 has joined #ruby
camilasan has quit [Remote host closed the connection]
<daxroc>
What's the ruby way to map an array of keys to an array of values ?
camilasan has joined #ruby
burlyscudd has joined #ruby
tesuji has quit [Read error: Connection reset by peer]
<daxroc>
* I've a fixed array of string keys I want to map to a "|" delimited string of values
wallerdev has joined #ruby
tesuji has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
helloworld has quit [Ping timeout: 245 seconds]
orionstein_away is now known as orionstein
devoldmx has quit [Ping timeout: 248 seconds]
orien has quit []
tylersmith has quit [Remote host closed the connection]
<ccooke>
daxroc: Assuming you have an array of keys and an array of values, with the values in the same order as the keys, you can do: Hash[ keys.zip(values) ]
<weeb1e>
While stripping down and changing a whole long of my base modular platform for a new app I just started, I realized I pretty much need Ruby 2.0... Unfortunately installing rvm is going to be too much of a pain, I have too many 1.9.3 dependant applications on the box this needs to run on
phantasm66 has quit [Client Quit]
<ccooke>
weeb1e: OS?
burlyscudd has quit [Ping timeout: 248 seconds]
<weeb1e>
Now I realize why I went overboard with crazy parsing and inspecting of modules when I implemented this many years ago :/
<weeb1e>
Linux ccooke
peterhu has quit [Ping timeout: 265 seconds]
<ccooke>
weeb1e: distro?weedistro?
<weeb1e>
Ubuntu
<ccooke>
dratted network
<ccooke>
weeb1e: there's a ruby2 ppa I'm using
<ccooke>
works very well
<weeb1e>
It would conflict with my global 1.9.3 installation
<ccooke>
no, it won't
eichenwald has quit [Changing host]
eichenwald has joined #ruby
Soda has joined #ruby
drumsrgr8forn8 has quit [Quit: Konversation terminated!]
thesheff17 has joined #ruby
<ccooke>
oh, hey. ruby2 is in the standard 13.10 package pool
<weeb1e>
Really? It installs all binaries, libs and gems to a separate location?
polaco_zZz is now known as polaco
thesheff17 has quit [Remote host closed the connection]
<weeb1e>
(And names the ruby binary differently?)
<ccooke>
weeb1e: Ubuntu/Debian have split everything out by its API version
Kar- has quit [Ping timeout: 272 seconds]
<ccooke>
weeb1e: so you can install the ruby1.9 alongisde ruby2.0
<ccooke>
try an apt-get install ruby2.0
monkegjinni has quit [Remote host closed the connection]
<weeb1e>
At the very least I'd expect the binaries to conflict (ruby, gem, bundler)
<ccooke>
I've been running it side-by-side on my boxes for months
tobago has quit [Remote host closed the connection]
<workmad3>
weeb1e: ruby2.0 gem2.0 :)
jlast has joined #ruby
monkegjinni has joined #ruby
<weeb1e>
I'd need to att a PPA, but I'm still scared it's gonna screw up my existing services :P
Gooder has joined #ruby
<weeb1e>
workmad3: What about bundler?
<ccooke>
weeb1e: no, it's entirely seperate. You use the alternatives system to control which versions get the "ruby", "gem", "irb" commands, etc
failshell has joined #ruby
<ccooke>
weeb1e: what version of ubuntu are you on?
<weeb1e>
A very old one
momomomomo has quit [Quit: momomomomo]
momomomomo_ is now known as momomomomo
<workmad3>
ah yeah, update-alternatives too...
<mr_red>
weeb1e: why are you so convinced that installing rvm is going to be too much of a pain?
<ccooke>
okay, then you'd probably be best off upgrading.
alexju has joined #ruby
<weeb1e>
ccooke: Then I will have to forget it
fgo has quit [Remote host closed the connection]
<ccooke>
weeb1e: in which case the PPA will work :-)
<weeb1e>
mr_red: Well it was somewhat of a pain when I tried it out many years ago, and I'm not clued up on how it affects an existing global ruby installation
jlast has quit [Remote host closed the connection]
<workmad3>
weeb1e: they've made the installation smoother, and it doesn't affect existing system ruby install
<workmad3>
s
jlast has joined #ruby
<weeb1e>
workmad3: Hmm, then perhaps it is worth a shot
<weeb1e>
I should probably figure out if it will solve my problems first though
<workmad3>
:)
<weeb1e>
Since I haven't used it yet, I don't have a total conprehensive knowledge of the new features
jrhe has joined #ruby
monkegjinni has quit [Ping timeout: 245 seconds]
gja__ has quit [Quit: This computer has gone to sleep]
nari has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
hamakn has quit [Remote host closed the connection]
devoldmx has joined #ruby
tharindu has joined #ruby
beilabs has quit [Ping timeout: 260 seconds]
hamakn has joined #ruby
<ccooke>
weeb1e: What's the 2.0 feature(s) you need, OOI?
<ccooke>
it's a nice update
kobain has joined #ruby
<weeb1e>
prepend for starters, I think
v0n has joined #ruby
<mr_red>
weeb1e: well without getting too much into detail, it's not a pain in the ass now
<mr_red>
weeb1e: and for what you want to do, rvm or rbenv are the best way to go, honestly.
mklappstuhl has joined #ruby
s0ber has quit [Remote host closed the connection]
<weeb1e>
I currently create a fake base module remove loading the read module/class, so that the real module/class can call class methods which are already defined, but in order to do that I need to know if it's a class or a module, and the superclass of it
<weeb1e>
*the real module/class
s0ber has joined #ruby
yfeldblum has joined #ruby
devoldmx3 has joined #ruby
<weeb1e>
mr_red: Well as long as it doesn't screw with my existing ruby installation I don't see the harm in giving it a shot
bradhe has joined #ruby
<daxroc>
ccooke: Like a glove! much appreciate it
beilabs has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
simplyaubs has quit [Quit: simplyaubs]
elux has joined #ruby
hamakn has quit [Ping timeout: 272 seconds]
rahulkmr has quit [Ping timeout: 272 seconds]
<Hanmac>
master question for all rubyists … find all objects within ruby core where obj.singleton_class.singleton_class? == false
<Hanmac>
or obj.class == obj.singleton_class
dhamidi has joined #ruby
thesheff17 has joined #ruby
bradhe has quit [Ping timeout: 248 seconds]
tomzx_mac has quit [Ping timeout: 272 seconds]
thesheff17 has quit [Remote host closed the connection]
andyj123 has joined #ruby
andyj123 has quit [Client Quit]
thesheff17 has joined #ruby
orien has quit [Quit: Computer has gone to sleep.]
devoldmx has joined #ruby
vlad_starkov has joined #ruby
kazuuu has quit [Read error: Connection reset by peer]
<weeb1e>
I had to remove some dead sources from apt sources to make rvm work but after that it worked without a hitch
b1nd_ has quit [Quit: Leaving]
kaspergrubbe has joined #ruby
b1nd_ has joined #ruby
g0bl1n has quit [Quit: g0bl1n]
xk_id has joined #ruby
devoldmx3 has quit [Ping timeout: 256 seconds]
interactionjaxsn has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
mary5030 has joined #ruby
gregorg_taf has joined #ruby
bean__ has joined #ruby
kil0byte_ has joined #ruby
mansi has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
fedalto has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
kil0byte has quit [Ping timeout: 245 seconds]
rahulkmr has joined #ruby
gregorg has quit [Ping timeout: 264 seconds]
drumsrgr8forn8 has joined #ruby
rainbyte has quit [Ping timeout: 248 seconds]
io_syl has joined #ruby
vpretzel has joined #ruby
mrsolo has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
krz has joined #ruby
nisstyre has quit [Read error: Connection reset by peer]
tjad has quit [Ping timeout: 246 seconds]
divi has joined #ruby
havenwood has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
ffranz has joined #ruby
DocDeath has quit [Read error: No route to host]
<kapowaz>
anyone here familiar with rack-rewrite? I'm trying to use it within my config.ru but it's seemingly being bypassed entirely and all requests are routing through to my app, declared further down. If I comment out my app being called, I get “RuntimeError: missing run or map statement”
<sevenseacat>
20,000 lines of shell script in rvm... man
<kapowaz>
so, I created a very basic config.ru with rack-rewrite to test things and it has the same messed up behaviour. Is rack-rewrite just broken when used with a config.ru?
<mikecmpbll>
haha.
Stalkr^ has joined #ruby
cody-- has joined #ruby
<sevenseacat>
and they're looking for a lot of money o.O
gyre007 has joined #ruby
alex__c2022 has joined #ruby
<weeb1e>
I do that kind of work for free for the community all the time :P
<weeb1e>
I should probably start making money at some point
bradhe has quit [Remote host closed the connection]
<weeb1e>
That is interesting
brennanMKE has quit [Remote host closed the connection]
bradhe has joined #ruby
brennanMKE has joined #ruby
<apeiros>
evaluates as x = nil | []
barratt has quit [Read error: Operation timed out]
<apeiros>
did you mean x ||= [] ?
<weeb1e>
I didn't know nil defined |()
stayarrr has quit [Quit: Leaving...]
shredding has quit [Quit: shredding]
Spami has joined #ruby
<weeb1e>
No, I did not, I just ran into it with some refactored code where the variable was not previously defined anymore, and was trying to figure out how |= on an undefined variable would be true
sambao21 has joined #ruby
scarolan_ has quit [Ping timeout: 268 seconds]
<weeb1e>
What on earth is the use case of nil | anthing
ehaliewicz has joined #ruby
scarolan has quit [Read error: Operation timed out]
<apeiros>
it's just that `anything | []` makes little sense
<apeiros>
because if it's nil, you get a boolean, if it's an array, you get the original array (uniqued, though), if it's anything else, it'll raise
<apeiros>
well, false/true probably act the same as nil and get a boolean as result
saarinen has joined #ruby
peterhu has joined #ruby
sensen has quit [Quit: leaving]
scarolan has joined #ruby
<weeb1e>
The argument wasn't an actual empty array, I just used that as a test case for the bot here
brennanMKE has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 272 seconds]
devoldmx3 has quit [Ping timeout: 272 seconds]
s2013_ has joined #ruby
<weeb1e>
I guess nil being interpreted as false makes slightly more sense
devoldmx has joined #ruby
<s2013_>
is there anyway to get only the title of a page using nokogiri without reading the entire content?
ceosam has joined #ruby
ceosam has quit [Remote host closed the connection]
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wchun has quit [Ping timeout: 240 seconds]
Vivekananda_ has joined #ruby
zeade has joined #ruby
brianpWins has quit [Ping timeout: 265 seconds]
jrhe has quit [Ping timeout: 272 seconds]
relix has joined #ruby
peterhu has quit [Ping timeout: 245 seconds]
<apeiros>
s2013_: use nokogiris sax parser
<s2013_>
hmm let me check what that is
banisterfiend has joined #ruby
whunt has joined #ruby
aryaching has quit []
brennanMKE has joined #ruby
iamjarvo has joined #ruby
<s2013_>
basically what would be the best way to just get title of over a 1000 pages
mathnode has quit [Remote host closed the connection]
ranyip has quit [Remote host closed the connection]
tabolario has joined #ruby
twoism has joined #ruby
terrellt has quit [Ping timeout: 264 seconds]
sbos99 has joined #ruby
DanKnox_away is now known as DanKnox
khushildep has quit [Ping timeout: 240 seconds]
carraroj has joined #ruby
newbiehacker has joined #ruby
i_s has joined #ruby
klaut has quit [Remote host closed the connection]
<apeiros>
s2013_: same answer
daxroc1 has joined #ruby
pothibo has quit [Quit: pothibo]
kevinykchan has quit [Quit: Computer has gone to sleep.]
lurch_ has joined #ruby
stkowski has quit [Quit: stkowski]
heidi has quit [Quit: Leaving.]
nobitanobi has joined #ruby
kevinykchan has joined #ruby
<nobitanobi>
Hi guys. Where can I find ruby writting conventions? Such us, if I should do a blank line after method declaration?
daxroc has quit [Ping timeout: 258 seconds]
Guest98722 has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<bean__>
most of the style guid is taken from bbatsov's anyways.
lfox has joined #ruby
ericmathison has joined #ruby
nobitanobi has quit [Ping timeout: 250 seconds]
<weeb1e>
I'll never agree with every single thing in any style guide, but for the most part that one is good
<weeb1e>
Especially for a beginner I guess
monkegjinni has quit [Remote host closed the connection]
monkegjinni has joined #ruby
kazuuu has joined #ruby
amacgregor has joined #ruby
pushpak has joined #ruby
iamjarvo has quit [Ping timeout: 272 seconds]
gmas has joined #ruby
Mars` has joined #ruby
Spami__ has joined #ruby
monkegjinni has quit [Ping timeout: 245 seconds]
Spami has quit [Ping timeout: 256 seconds]
Macaveli has joined #ruby
brennanMKE has quit [Remote host closed the connection]
brennanMKE has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
heidi has joined #ruby
c0rn has joined #ruby
mrsolo_ has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
Xeago has joined #ruby
ewnd9 has quit [Remote host closed the connection]
sambao21 has joined #ruby
ewnd9 has joined #ruby
brianpWins has joined #ruby
ewnd9 has quit [Remote host closed the connection]
ewnd9 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Senjai_ has joined #ruby
brennanMKE has quit [Ping timeout: 241 seconds]
tharindu is now known as tharindu|away
zarubin has quit [Ping timeout: 245 seconds]
CorpusCallosum has quit [Ping timeout: 256 seconds]
Xeago has quit [Ping timeout: 264 seconds]
<apeiros>
weeb1e: IMO it's only important to have a styleguide in your company. makes working together easier. even if you don't like some of the decisions in that styleguide.
maycon has quit [Quit: Saindo]
tharindu|away is now known as tharindu
<weeb1e>
apeiros: Yeah sure. For the vast majority of cases I strongly agree with the style guide anyway. It's just a few things that annoy me.
<weeb1e>
Such as indenting where on the same level as case
<apeiros>
heh
<apeiros>
I don't do that either
lukec has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
BraddPitt has quit [Ping timeout: 272 seconds]
ewnd9 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
tkuchiki has quit [Ping timeout: 240 seconds]
ewnd9 has joined #ruby
<weeb1e>
And then for in-line blocks, I adopted using method {|arg| bar } very early in my ruby history
<apeiros>
I preferred using if/then over just if, but in our company we voted on 'no `then`', so now I adopted that style :(
<weeb1e>
I feel the one less space does not decrease readability at all, but I do use a space there for multi-line do/end blocks
<apeiros>
I use `foo { |arg| bar }
<apeiros>
`
Senjai_ is now known as Senjai
Senjai has quit [Changing host]
Senjai has joined #ruby
<apeiros>
(haven't read the styleguide)
Davey has joined #ruby
<weeb1e>
Yeah, I think most people do, I actually find that decreases readability every so slightly
<weeb1e>
But that is just my opinion
raphaelivan has quit [Quit: Leaving.]
<weeb1e>
Especially if you nest two in-line blocks
<apeiros>
it's getting used to
gja has quit [Quit: This computer has gone to sleep]
<apeiros>
if you'd use the other style for a while, your opinion would likely change (same for all others if they'd use your style for a while)
jrhe has joined #ruby
<weeb1e>
I doubt it, I've been reading code using double spaced blocks for many years now, and writing code without that first space
BraddPitt has joined #ruby
<apeiros>
eh, it mainly changes with what you use yourself ;-)
<apeiros>
at least IME
<weeb1e>
I think my feelings about it are sort of related to methods, where you have do space between the bracket and arguments
<apeiros>
I've experienced it when changing indent style from tabs to 2-spaces
<apeiros>
I read 2-space indented code for years and disliked it
<weeb1e>
But I like compact code, so I'm happy with 1 less char if it doesn't decrease readability
<apeiros>
it changed after writing space-indented code for a few weeks
<havenwood>
TWO-SPACE SOFT TAB ALL THE THINGS \o/
* apeiros
tv
<weeb1e>
You used tabs?!! :o
<apeiros>
I still do for non-ruby
<havenwood>
for bash i do
<weeb1e>
I hope your editor converts those tabs to 4 spaces then
<weeb1e>
You should really never, ever use actual tabs, in any language
<havenwood>
when in Rome...
samsonasu has quit [Quit: samsonasu]
<weeb1e>
Tabs mostly become an issue with collaboration, which is why most people stopped using them many many years ago
jblack has quit [Quit: Lost terminal]
iamjarvo has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
raul782 has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
momomomomo has quit [Quit: momomomomo]
Macaveli has quit [Quit: Computer has gone to sleep.]
mva3212 has quit [Remote host closed the connection]
hid has joined #ruby
Mars` has quit [Ping timeout: 272 seconds]
hid has left #ruby [#ruby]
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
freezey has quit [Remote host closed the connection]
wchun has joined #ruby
k610 has quit [Ping timeout: 240 seconds]
dhruvasagar has quit [Ping timeout: 248 seconds]
julweber has quit [Remote host closed the connection]
mary5030_ has joined #ruby
julweber has joined #ruby
Mars` has joined #ruby
gja has joined #ruby
FL1SK has joined #ruby
<FL1SK>
Hi
<FL1SK>
can anyone help me
codecop has joined #ruby
<FL1SK>
im getting this error
<FL1SK>
NoMethodError - private method `split' called for nil:NilClass:
Clooth has joined #ruby
Macaveli has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
bean__ has quit [Quit: Computer has gone to sleep.]
tharindu has quit [Quit: Leaving...]
svector has joined #ruby
<Bofu2U>
FL1SK it means the variable you're doing it on is nil
carraroj has quit [Quit: Konversation terminated!]
boxmein has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
MrV_ has quit [Quit: MrV_]
freezey has quit [Remote host closed the connection]
swordsmanz has joined #ruby
interactionjaxsn has joined #ruby
monkegjinni has joined #ruby
ldnunes has quit [Quit: Leaving]
_JamieD_ has quit [Quit: _JamieD_]
peterhu has joined #ruby
Andrevan has joined #ruby
amacgregor has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
hello_world has quit [Ping timeout: 250 seconds]
barratt has quit [Read error: Connection reset by peer]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
DanBoy has quit [Ping timeout: 240 seconds]
astrobun_ has quit [Ping timeout: 272 seconds]
Macaveli has quit [Quit: Computer has gone to sleep.]
theoretick has joined #ruby
peterhu has quit [Ping timeout: 245 seconds]
bean__ has joined #ruby
Bry8Star{T2 has joined #ruby
burlyscudd has joined #ruby
newbiehacker has quit [Ping timeout: 248 seconds]
astrobunny has joined #ruby
epta has quit [Quit: leaving]
taion809 is now known as zzz_taion809
epta has joined #ruby
freezey has joined #ruby
Nogbit has joined #ruby
mrsolo has quit [Ping timeout: 240 seconds]
T__T has joined #ruby
saarinen has quit [Read error: Connection reset by peer]
saarinen has joined #ruby
b1nd_ has quit [Ping timeout: 272 seconds]
alvaro_o has joined #ruby
mansi has quit [Remote host closed the connection]
mansi has joined #ruby
acrussell has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
Mars` has joined #ruby
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
deception has quit [Quit: Goodbye]
julweber_ has joined #ruby
juarlex has quit [Ping timeout: 245 seconds]
tsykoduk is now known as zz_tsykoduk
julweber_ has quit [Remote host closed the connection]
theoretick has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dash_ has quit [Quit: dash_]
julweber has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
julweber has quit [Read error: Connection reset by peer]
theoretick has joined #ruby
theoretick is now known as theoretick_
julweber has joined #ruby
theoretick_ is now known as theoretick
Nogbit has left #ruby [#ruby]
i_s has quit [Ping timeout: 248 seconds]
jcromart_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vjt has joined #ruby
sambao21 has joined #ruby
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jerius has joined #ruby
barratt has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
Seich has quit [Ping timeout: 272 seconds]
OdNairy has joined #ruby
scarolan_ has joined #ruby
danshultz has joined #ruby
clov3r has quit [Remote host closed the connection]
clov3r has joined #ruby
scarolan has quit [Read error: Operation timed out]
<nobitanobi_>
Anybody knows if with Nokogiri it is possible to find the <img> that is positioned at the very top of the page? Not in the HTML but actually the image that is rendered at the very top?
i_s has joined #ruby
saarinen has quit [Quit: saarinen]
maletor has quit [Quit: Computer has gone to sleep.]
nisstyre has quit [Quit: Leaving]
ffranz has quit [Ping timeout: 240 seconds]
danshultz has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Ping timeout: 240 seconds]
robbyoconnor has joined #ruby
saarinen has joined #ruby
clov3r has quit [Ping timeout: 256 seconds]
banisterfiend has joined #ruby
clov3r has joined #ruby
swordsmanz has quit [Read error: Connection reset by peer]
simplyaubs has quit [Quit: simplyaubs]
swordsmanz has joined #ruby
akersof has joined #ruby
akersof has left #ruby ["Bene vixit, bene qui latuit."]
gyre007 has quit [Ping timeout: 272 seconds]
<ezkl>
nobitanobi_: It will correct the page and move it inside of body
raphaelivan has joined #ruby
<nobitanobi_>
ezkl: I think I didn't explain well myself. I'm trying to look for a Ruby tool that will let me scrap pages that are rendered, in a headless browser manner per say. So, instead of scrapping the HTML, I want to scrap the rendered page (as you could do with PhantomJS for example)
c0rn has joined #ruby
<shevy>
GUYS
<shevy>
I LOVE YOU ALL!
<sam113101>
I love you too
<sam113101>
<3
rgbdev has joined #ruby
mark_locklear has quit [Quit: Leaving]
xk_id has joined #ruby
danshultz has joined #ruby
<nobitanobi_>
wo, free love
<nobitanobi_>
hard to find these days
banisterfiend has quit [Quit: Computer has gone to sleep.]
<mr_red>
<3
petey_ has joined #ruby
banisterfiend has joined #ruby
ssmithstone has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
aspires has quit [Quit: sudo making a sandwich]
jb41 has joined #ruby
jb41_ has joined #ruby
kalleth_ is now known as kalleth
jb41_ has left #ruby [#ruby]
fuhgeddaboudit has quit [Ping timeout: 260 seconds]
i_s has quit [Remote host closed the connection]
pothibo has joined #ruby
Guest1779 has quit [Remote host closed the connection]
<nobitanobi_>
terrellt: yeah, as the article say, I am also concerned about scaling this... I am launching a shell command from my RoR app, everytime I want to parse a site...
robustus has quit [Ping timeout: 245 seconds]
sambao21 has quit [Ping timeout: 272 seconds]
muxdemux has quit [Remote host closed the connection]
<TorpedoSkyline>
havenwood ah beautiful, thanks! I need to read up more on threads… this will be the first time I use them
iamjarvo has quit [Ping timeout: 265 seconds]
<robert_>
are there any D-bus gems that have working service examples and support connecting via TCP/IP?
lurch_ has quit [Quit: lurch_]
iamjarvo_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
zerun0 has joined #ruby
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.0]
iamjarvo has quit [Ping timeout: 240 seconds]
i_s_ has joined #ruby
c0rn has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
gener1c has joined #ruby
i_s has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
i_s_ is now known as i_s
<apeiros>
havenwood: you omitted a way to clear it :)
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gener1c has quit [Remote host closed the connection]
<havenwood>
apeiros: kill the process! :P
dzhulk has joined #ruby
<apeiros>
that… clears a bit more than just the timeout or interval :-|
<havenwood>
hehe
_JamieD_ has quit [Quit: _JamieD_]
burlyscudd has quit [Quit: Leaving.]
RichardBaker has quit [Quit: RichardBaker]
* havenwood
googles how javascript does it...
<havenwood>
okay, so it should respond to clearInterval()?
Mars` has joined #ruby
<apeiros>
mdn is IMO the best source on JS
<apeiros>
clearTimeout and clearInterval, yes
user_ has joined #ruby
ssmithstone has quit [Ping timeout: 272 seconds]
<apeiros>
primitive way would be to kill the thread, but since ruby isn't single threaded like JS, you'd have to use mutex/conditionvariable to properly detect the thread already being running
<apeiros>
(alternative designs are certainly possible)
Senjai has quit [Ping timeout: 272 seconds]
tickner has joined #ruby
user_ has quit [Client Quit]
codenapper has quit [Quit: codenapper]
petey_ has quit [Remote host closed the connection]
jrhe has quit [Quit: jrhe]
dzhulk has quit [Quit: Leaving.]
petey_ has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
petey__ has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
petey_ has quit [Read error: Connection reset by peer]
simplyaubs has joined #ruby
fedalto has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
_bart has quit [Remote host closed the connection]
roflpox has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
kaspergrubbe has quit [Read error: Operation timed out]
momomomomo has quit [Quit: momomomomo]
railsbros_dirk has quit [Quit: railsbros_dirk]
bricker`away has joined #ruby
freezey_ has joined #ruby
Mars` has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
Mars` has joined #ruby
freezey_ has quit [Remote host closed the connection]
elux has quit [Quit: Bye!]
robbyoconnor has quit [Ping timeout: 272 seconds]
tvw has quit []
asteros has quit [Quit: asteros]
zigomir has quit [Quit: Leaving]
zigomir_ is now known as zigomir
<apeiros>
btw. havenwood, I think your implementation of interval is incorrect for cases where the yield takes a long time
hugohagogo has quit [Ping timeout: 245 seconds]
asteros has joined #ruby
hanoi has quit [Read error: Connection reset by peer]
mmm has quit [Read error: Connection reset by peer]
bean__ has quit [Quit: Computer has gone to sleep.]
sbos99 has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
<lewis>
dllama: what's the preferred way to write this - if foo; #dostuff;end; #do_that_either_way VS if foo; #dostuff #do_that;else; #do_that; end
IceyEC has quit [Quit: IceyEC]
theRoUS has joined #ruby
adambeynon has joined #ruby
RichardBaker has joined #ruby
<havenwood>
apeiros: ooh, another good point
RichardBaker has quit [Client Quit]
<havenwood>
apeiros: indeed it is wrong (assuming js actually does it right) ;p
mmm has joined #ruby
banghouse2 is now known as banghouse
freezey has joined #ruby
bean__ has joined #ruby
nkts has joined #ruby
yfeldblum has joined #ruby
kaldrenon has quit [Remote host closed the connection]
aspires has quit [Quit: sudo making a sandwich]
zarubin has joined #ruby
kugelschreiber has joined #ruby
vky has joined #ruby
kaldrenon has joined #ruby
aspires has joined #ruby
bean__ has quit [Client Quit]
<mgolisch>
whats some good template engine to use?
momomomomo has joined #ruby
boxmein has quit [Quit: [02:26.00] <Ristovski> mozzarella filofax fadget]
ssmithstone has joined #ruby
aspires has quit [Client Quit]
<havenwood>
i like markdown
kazuuu has quit [Remote host closed the connection]
<apeiros>
mgolisch: depends on from where you want to go to where
<mgolisch>
looked at haml and slim, and both look kinda cryptic
<mgolisch>
its for webdevelopment
<apeiros>
ok, so the target is html
kazuuu has joined #ruby
<mgolisch>
yeah
<apeiros>
I like haml a good bit there
<havenwood>
haml smaml
<apeiros>
don't know why you think it's cryptic
<apeiros>
the mapping is pretty straight forward
<apeiros>
the old dog would be ERB
<apeiros>
I wonder whether amrita still gets some love
<breakingthings>
havenwood: markdown for templating?
<breakingthings>
w0t
tjad has quit [Ping timeout: 240 seconds]
lsmola has quit [Ping timeout: 240 seconds]
<mgolisch>
erb would be html with ruby code in somekind of special tags right?
kaldrenon has quit [Ping timeout: 272 seconds]
<breakingthings>
yes
<breakingthings>
like de phps.
<mgolisch>
like asp or php
<breakingthings>
<%= rubby.codeses %>
<breakingthings>
haml isn't too crazy, it just looks weird at first.
<mgolisch>
yeah maybe i should have a look at that again
robbyoconnor has joined #ruby
breakingthings has quit []
c0rn has quit [Quit: Computer has gone to sleep.]
<mgolisch>
having done flask stuff mostly, liquid looks very similar to flasks jinja, but it doenst seem to be used often, so iam not sure its any good
stayarrr has quit [Quit: Leaving...]
deens has quit [Remote host closed the connection]
<havenwood>
dgarstang2: so you want to mirror the entirety of RubyGems?
<dgarstang2>
apeiros/havenwood: I have instances in several amazon regions. I don't want to have to manually sync the gems between servers running in each location.
thesheff17 has joined #ruby
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<dgarstang2>
And.. I don't want to have to mirror all of rubyforge at every location either
monkegjinni has joined #ruby
julweber has quit [Remote host closed the connection]
julweber has joined #ruby
terrellt has joined #ruby
chobbit has joined #ruby
<chobbit>
:O A whole channel for ruby
rgbdev has quit [Quit: rgbdev]
julweber has quit [Read error: Operation timed out]
<chobbit>
also they live in holes under the ground
interactionjaxsn has joined #ruby
frustrum has joined #ruby
asobrasil has left #ruby [#ruby]
<havenwood>
people ask if chruby is pronounced C-H-ruby or chuh-ruby, but the super sekret is to pronounce it like Chanukah...
beilabs has joined #ruby
<havenwood>
'huh-ruby'!
Jdubs has joined #ruby
<havenwood>
chobbit: More than one Ruby channel too, also #ruby-lang, etc. And then Rails land #rubyonrails.
* havenwood
hopes #ruby has more people than #rubyonrails.
<apeiros>
it has
<havenwood>
Woot, #ruby wins with 855!
interactionjaxsn has quit [Ping timeout: 248 seconds]
jonathanwallace has quit [Ping timeout: 245 seconds]
deens has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
tomzx_mac has joined #ruby
momomomomo has joined #ruby
obs has joined #ruby
theRoUS has quit [Ping timeout: 248 seconds]
<vky>
Hey all, I'm new to ruby and I'm trying to write a script that makes a https post request (with no verfication) to an api and then uses the cookie returned in subsequent post requests to that api. I'm got the first part working with rest-client, but can't figure out how to get the second part working.
failshel_ has joined #ruby
<shevy>
havenwood in general here are ~ +10% more people than on #rubyonrails, but #python is so much larger :(
barratt has quit [Quit: Leaving...]
atmosx has joined #ruby
zarubin has quit [Ping timeout: 272 seconds]
codecop has quit [Remote host closed the connection]
<havenwood>
ahaha, #python channel screams the rule: NO PROJECT EULER
momomomomo has quit [Quit: momomomomo]
<havenwood>
they must have more homework askers as well
failshel_ has quit [Ping timeout: 245 seconds]
<jblack>
vky: check out mechanize
deens has quit [Ping timeout: 240 seconds]
<jblack>
I use mechanize for most of my web scraping. it supports cookies, but isn't able to handle javascript
<jblack>
a lot of projects use mechanize + nokogiri
sailias has quit [Quit: Leaving.]
chobbit is now known as chobbit[zzz]
<chobbit[zzz]>
see you havenwood, thanks for being nice :D
jerius has quit [Read error: Operation timed out]
chobbit[zzz] is now known as chobbit
<havenwood>
chobbit[zzz]: have a good one, happy hacking (or sleeping i guess based on zzz's)!
<chobbit>
:p
<chobbit>
just a notification that im going to sleep, bai!
Xiti has joined #ruby
drumsrgr8forn8 has quit [Ping timeout: 265 seconds]
marcdel has joined #ruby
kaspergrubbe has joined #ruby
mlpinit has quit [Remote host closed the connection]
banisterfiend has joined #ruby
orionstein is now known as orionstein_away
vky has quit [Ping timeout: 245 seconds]
jkline has joined #ruby
DecidedlyAverage has quit [Ping timeout: 245 seconds]
DecidedlyAverage has joined #ruby
c0rn has joined #ruby
scarolan_ has quit [Ping timeout: 265 seconds]
brianpWins has quit [Quit: brianpWins]
Jetchisel has quit [Ping timeout: 260 seconds]
old has quit [Remote host closed the connection]
|PiP| has joined #ruby
kaspergrubbe has quit [Ping timeout: 272 seconds]
jbpros has quit [Quit: jbpros]
vky has joined #ruby
v0n has quit [Ping timeout: 272 seconds]
mercwithamouth has quit [Ping timeout: 248 seconds]
idoru has quit [Read error: Connection reset by peer]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cheos has joined #ruby
Vivekananda_ has quit [Ping timeout: 248 seconds]
marcdel has joined #ruby
monkegjinni has quit [Remote host closed the connection]
s00pcan has quit [Quit: Lost terminal]
petey__ has quit [Remote host closed the connection]
Kar- has quit [Ping timeout: 272 seconds]
mmitchell has quit [Remote host closed the connection]
s00pcan has joined #ruby
monkegjinni has joined #ruby
petey_ has joined #ruby
mmitchell has joined #ruby
Clooth has quit [Ping timeout: 265 seconds]
monkegjinni has quit [Read error: Operation timed out]
claymore has quit [Quit: Leaving]
burlyscudd has quit [Quit: Leaving.]
|PiP| has quit [Ping timeout: 248 seconds]
<vky>
jblack: I was trying that, but I'm doing more API calls than web scraping. I wasn't able to figure out how to use what's returned from a post call.
asteros has quit [Quit: asteros]
monkegjinni has joined #ruby
freezey has quit [Remote host closed the connection]
petey_ has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Remote host closed the connection]
thesheff17 has quit [Remote host closed the connection]
jbpros has joined #ruby
mmitchell has quit [Ping timeout: 272 seconds]
mixel has joined #ruby
ssvo_ has joined #ruby
kaspergrubbe has joined #ruby
hrs has joined #ruby
thesheff17 has joined #ruby
asteros has joined #ruby
pothibo has quit [Quit: pothibo]
kaspergrubbe has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
nisstyre has joined #ruby
lewis is now known as Lewix
Lewix has quit [Changing host]
Lewix has joined #ruby
<jblack>
With mechanize, the body is stored as a string.
julweber_ has quit [Remote host closed the connection]
julweber has joined #ruby
Jetchisel has joined #ruby
julweber has quit [Read error: Connection reset by peer]
julweber has joined #ruby
mmitchell has quit [Ping timeout: 245 seconds]
drumsrgr8forn8 has joined #ruby
<workmad3>
shevy: class << self; alias :whatever :other; end
<workmad3>
shevy: or if you're outside the class, class << ClassName; ...; end
<shevy>
oh wait
r0bby_ has quit [Read error: Connection reset by peer]
jb41__ has quit [Quit: leaving]
<shevy>
aaah
<shevy>
the second one works only outside the class?
<shevy>
for some reason, I don't like the class << self syntax
<atmosx>
Hello
<shevy>
atmosx!!!
<atmosx>
how's life workmad3 shevy ?
<workmad3>
shevy: you can use that inside the class too
tobyo has joined #ruby
<workmad3>
shevy: same as you can do 'def Foo.whatever' to define a class method inside the class
<shevy>
atmosx a bit better now, I caught the flu but it's now almost passed away
<workmad3>
shevy: it's just somewhat more annoying to change if you refactor and change a class name to something more descriptive :)
<shevy>
workmad3, ok... let's see
<workmad3>
atmosx: not too bad
<atmosx>
workmad3: nice
juarlex has joined #ruby
mrsolo has joined #ruby
lfox has quit [Quit: ZZZzzz…]
<workmad3>
atmosx: planning a competitive adventure game day with the wife tomorrow :) but also just found out a friend was in a car crash (they messaged us themselves on FB from the hospital though, so doesn't seem too bad)
Guest___ has joined #ruby
apeiros has quit [Remote host closed the connection]
<atmosx>
workmad3: wow
kazuuu has joined #ruby
apeiros has joined #ruby
<atmosx>
workmad3: busy day, what competitive adventure game is that?
<workmad3>
atmosx: well, we're going to both play Machinarium (single player)... the competitive bit is seeing who gets through it quickest :)
zachrab has joined #ruby
jblack has quit [Quit: Lost terminal]
<atmosx>
workmad3: nice one
Davey has quit [Quit: Computer has gone to sleep.]
orien has joined #ruby
sepp2k1 has joined #ruby
<atmosx>
shevy: did you start playing with rails?
<shevy>
atmosx no :(
thesheff17 has quit [Ping timeout: 256 seconds]
<shevy>
I got distracted by reinstalling the computer and learning for an exam
zz_tsykoduk is now known as tsykoduk
sepp2k has quit [Ping timeout: 272 seconds]
<atmosx>
I see
<atmosx>
I need to build something awfully big this time
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx>
and I'm a bit lost, but if it comes out something half-decnet could have many uses, even turn out somewhat actual product
vky has quit [Ping timeout: 245 seconds]
<atmosx>
I mean something you could sell as a service
asym has joined #ruby
<atmosx>
+ I need to start writing my thesis
CorpusCallosum has joined #ruby
<atmosx>
but I'm 100% I'll do it on sinatra
clov3r has quit [Remote host closed the connection]
* atmosx
download spead is at 666 kb/s (the number of the beast)