imperator2 changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || RubyConf 2013 at http://www.justin.tv/confreaks
datanoise has quit [Ping timeout: 272 seconds]
yfeldblu_ has quit [Ping timeout: 272 seconds]
myappleguy has joined #ruby-lang
dalzony has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
Coincidental has quit [Ping timeout: 245 seconds]
bradsmith has quit [Remote host closed the connection]
bradsmith has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
pw3 has quit [Ping timeout: 250 seconds]
Coincidental has joined #ruby-lang
jxpx777 has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
micalexander has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
bradsmith has quit [Ping timeout: 272 seconds]
<Elico> I have a small question regarding Threading.
vlad_starkov has joined #ruby-lang
<Elico> I want to run a helper that will do couple tests every 0.5 second
<Elico> but in a case of a need throw a thread to do couple things.
<Elico> like "run in a loop and if needed let something be done in the background"
<Elico> How would you do that without all the ".join" in the end?
micalexander has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
<Elico> a code example will help?
<drbrain> Thread.new do loop do sleep 0.5; do_something; end; end.join
<drbrain> ↑ will do something 0.5 seconds after it was done the last time
<drbrain> it will run until do_something raises an exception
<Elico> well the code is something like this:https://github.com/elico/squid-helpers/blob/master/squid_helpers/proxy_hb_check/proxystatcheck.rb
snarfmason has quit [Ping timeout: 272 seconds]
<drbrain> such tab
jxpx777 has quit [Quit: Leaving...]
<drbrain> Elico: you can while true or while 0 instead of the 1 == 1 comparison
<Elico> I want in it to have a method that will throw a url fetch trial
<Elico> never mind it for now.
<drbrain> "throw a url fetch trial"?
<Elico> yes a sec..
<Elico> I am testing a proxy,,
<Elico> so every 50 requests the helper gets it should throw a test of the proxy function
<drbrain> by throw do you mean "execute" or "run"?
<Elico> so a http request should run.
<Elico> run.... inside ruby
hogeo has joined #ruby-lang
<Elico> but the loop must continue.
<drbrain> in ruby, throw has a different meaning, so I was confused
jhulten has quit [Remote host closed the connection]
<Elico> OK
<Elico> I know that fork is an option..
<Elico> but I was fond of Thread
<drbrain> count = 0; loop do count += 1; Thread.new do http_request end if count % 50 == 0; … end
<Elico> and in code.. not oneliner..
<drbrain> replace ; with newline
cnivolle has quit [Remote host closed the connection]
<Elico> drbrain: am I right?
cnivolle has joined #ruby-lang
<drbrain> close
<Elico> OK
<drbrain> I omitted some newline
<drbrain> err, semicolons
<drbrain> add newline after "do" on line 2
<drbrain> remove newline after end on line 5
<drbrain> line 5 should read "end if count % 50 == 0"
<Elico> so the whole thread is depending on the if..
__butch__ has quit [Quit: Leaving.]
cnivolle has quit [Ping timeout: 252 seconds]
kfpratt has joined #ruby-lang
<Elico> code review!!
sevvie has quit [Ping timeout: 245 seconds]
<drbrain> yes, correct
<drbrain> the whole thread depends on the if
<Elico> nice!!
hogeo has quit [Remote host closed the connection]
<Elico> OK now it is simpler.
<Elico> so the thread has access to some global object if i'm not wrong..
hogeo has joined #ruby-lang
dingus_khan has joined #ruby-lang
<drbrain> the code inside the thread has the same scope as the code outside the thread, so yes
<Elico> and the loop will continue to run even if it is asleep..
cored has quit [Ping timeout: 240 seconds]
<Elico> let say "Thread.new do; sleep 10;end;
<Elico> "
hogeo_ has joined #ruby-lang
hogeo has quit [Read error: Connection reset by peer]
<Elico> there was something regarding fibers but i'm not in it now
<Elico> how simple will it be?
jinesh has quit [Ping timeout: 248 seconds]
CoreData has quit [Ping timeout: 245 seconds]
nigerianceo has quit []
<drbrain> this is not a task for fibers since you have to schedule them yourself
<drbrain> Thread.new do; sleep 10; end will sleep for ten seconds then stop
arooni-mobile__ has joined #ruby-lang
<Elico> OK
CoreData has joined #ruby-lang
<drbrain> a thread only creates an independent path of execution, nothing else
vlad_starkov has joined #ruby-lang
<Elico> well seems like it fit to me.
davispuh has quit [Remote host closed the connection]
dalzony has joined #ruby-lang
kek has joined #ruby-lang
jxie has joined #ruby-lang
kek has quit [Ping timeout: 264 seconds]
guns has quit [Quit: guns]
pw3 has joined #ruby-lang
dalzony has quit [Quit: Leaving.]
atrocitas has joined #ruby-lang
tkuchiki has joined #ruby-lang
tylersmith has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
charlespeach has joined #ruby-lang
jxpx777 has joined #ruby-lang
jinesh has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
myappleguy has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
datanoise has joined #ruby-lang
myappleguy has joined #ruby-lang
micalexander has joined #ruby-lang
Olipro has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 272 seconds]
bradsmith has joined #ruby-lang
mistym has quit [Quit: Leaving]
sevvie has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
Johz has quit [Quit: Leaving]
bradsmith has quit [Ping timeout: 272 seconds]
itsraining has joined #ruby-lang
jxpx777 has quit [Quit: Leaving...]
tenderlove has quit [Remote host closed the connection]
jxpx777 has joined #ruby-lang
rwk1 has joined #ruby-lang
mistym has joined #ruby-lang
iliketurtles has joined #ruby-lang
knu has quit [Ping timeout: 246 seconds]
nathanstitt has joined #ruby-lang
iliketurtles has quit [Client Quit]
nathanstitt has quit [Client Quit]
epichero has joined #ruby-lang
CaptainJet has quit []
CaptainJet has joined #ruby-lang
myappleguy has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby-lang
zz_michael_mbp is now known as michael_mbp
brianpWins has quit [Quit: brianpWins]
jxpx777 has quit [Quit: Leaving...]
sevvie_ has joined #ruby-lang
sevvie has quit [Ping timeout: 264 seconds]
dingus_khan has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
knu has joined #ruby-lang
kek has joined #ruby-lang
dingus_khan has quit [Ping timeout: 272 seconds]
charlespeach has left #ruby-lang [#ruby-lang]
diegoviola has joined #ruby-lang
iliketurtles has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
lun__ has joined #ruby-lang
kek has quit [Ping timeout: 264 seconds]
jxpx777 has joined #ruby-lang
saarinen has quit [Quit: saarinen]
sleepee has joined #ruby-lang
sevvie_ has quit [Ping timeout: 264 seconds]
lun__ has quit [Ping timeout: 264 seconds]
datanoise has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby-lang
havenwood has joined #ruby-lang
epichero has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
kurko_ has joined #ruby-lang
Oloryn_lt2 has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
Cakey has joined #ruby-lang
musty has joined #ruby-lang
yatish27 has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
arBmind1 has joined #ruby-lang
yfeldblum has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
hogeo_ has quit [Read error: Connection reset by peer]
hogeo has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
bantic has quit [Quit: bantic]
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
Barrin6 has joined #ruby-lang
bzalasky has joined #ruby-lang
myappleguy has joined #ruby-lang
kek has joined #ruby-lang
Coincidental has quit [Ping timeout: 246 seconds]
alekst has joined #ruby-lang
yfeldblum has joined #ruby-lang
nXqd has quit [Ping timeout: 245 seconds]
kek has quit [Ping timeout: 240 seconds]
ikrima has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
iliketurtles has joined #ruby-lang
ezkl has quit [Quit: QUIT!]
ezkl has joined #ruby-lang
ezkl has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
priodev has quit [Ping timeout: 240 seconds]
shinnya has quit [Ping timeout: 272 seconds]
kitak_ has joined #ruby-lang
Coincidental has joined #ruby-lang
kitak has quit [Ping timeout: 246 seconds]
dluv has quit [Ping timeout: 260 seconds]
priodev has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
GaelanAintAround has quit [Ping timeout: 245 seconds]
bzalasky has joined #ruby-lang
kurko__ has joined #ruby-lang
datanoise has joined #ruby-lang
kurko_ has quit [Ping timeout: 272 seconds]
pw3 has quit [Ping timeout: 250 seconds]
bzalasky has quit [Ping timeout: 245 seconds]
ezkl has quit [Quit: QUIT!]
ezkl has joined #ruby-lang
earthquake has joined #ruby-lang
dingus_khan has joined #ruby-lang
dingus_khan has quit [Ping timeout: 240 seconds]
toretore has quit [Quit: Leaving]
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
Coincidental has quit [Read error: Connection reset by peer]
sleepee has quit [Quit: Leaving]
Coincidental has joined #ruby-lang
tenderlove has joined #ruby-lang
bantic has joined #ruby-lang
io_syl has quit [Ping timeout: 272 seconds]
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
myappleguy has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
JoshuaPaling has joined #ruby-lang
datanoise has quit [Ping timeout: 272 seconds]
Coincidental has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
bzalasky has joined #ruby-lang
ItSANgo has quit [Quit: Leaving...]
Coincidental has quit [Ping timeout: 272 seconds]
alekst has quit [Quit: Leaving...]
kek has joined #ruby-lang
nertzy has joined #ruby-lang
diegoviola has quit [Ping timeout: 272 seconds]
kek has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Quit: zzzzz…..]
iliketurtles has joined #ruby-lang
knu has quit [Ping timeout: 245 seconds]
ItSANgo has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
ecnalyr has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
ecnalyr has quit [Read error: Connection reset by peer]
ecnalyr has joined #ruby-lang
Guest80501 has joined #ruby-lang
Guest80501 is now known as diegoviola
rwk1 has joined #ruby-lang
thelorax123 has quit [Remote host closed the connection]
thelorax123 has joined #ruby-lang
io_syl has joined #ruby-lang
musty has quit [Ping timeout: 245 seconds]
ItSANgo has quit [Quit: Leaving...]
datanoise has joined #ruby-lang
lun__ has joined #ruby-lang
ItSANgo has joined #ruby-lang
lun__ has quit [Ping timeout: 244 seconds]
kurko_ has joined #ruby-lang
kurko__ has quit [Ping timeout: 252 seconds]
earthquake has quit [Quit: earthquake]
vlad_starkov has joined #ruby-lang
ecnalyr has quit [Remote host closed the connection]
Nisstyre-laptop has joined #ruby-lang
ecnalyr has joined #ruby-lang
woollyams has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
kurko__ has joined #ruby-lang
io_syl has quit [Ping timeout: 240 seconds]
kurko_ has quit [Ping timeout: 272 seconds]
vlad_starkov has quit [Ping timeout: 244 seconds]
ecnalyr has quit [Ping timeout: 245 seconds]
jxpx777 has quit [Quit: Leaving...]
kurko_ has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
kurko__ has quit [Ping timeout: 245 seconds]
xcess_denied has joined #ruby-lang
itsraining has quit [Quit: itsraining]
earthquake has joined #ruby-lang
kek has joined #ruby-lang
Coincidental has joined #ruby-lang
jxpx777 has joined #ruby-lang
bantic has quit [Quit: bantic]
ledestin has quit [Ping timeout: 245 seconds]
kek has quit [Ping timeout: 246 seconds]
xcess_denied has quit [Quit: Leaving...]
Snibble has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
jxpx777 has quit [Quit: Leaving...]
jsullivandigs has joined #ruby-lang
tylersmith has joined #ruby-lang
iliketurtles has joined #ruby-lang
Coincidental has quit [Remote host closed the connection]
Snibble has quit [Quit: Leaving.]
Coincidental has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 245 seconds]
Coincidental has quit [Ping timeout: 246 seconds]
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
xcess_denied has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.2]
elcontrastador has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
albioner has joined #ruby-lang
jsullivandigs has joined #ruby-lang
brianpWins has joined #ruby-lang
Nisstyre-laptop is now known as nisstyre
achru has joined #ruby-lang
CaptainJet has quit []
sandeepk has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
zz_dlu has joined #ruby-lang
mucker has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
ecnalyr has joined #ruby-lang
bzalasky has quit [Ping timeout: 245 seconds]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
kek has joined #ruby-lang
io_syl has joined #ruby-lang
knu has joined #ruby-lang
kek has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
happydude has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
earthquake has quit [Quit: earthquake]
vlad_starkov has joined #ruby-lang
mistym has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
sevvie has joined #ruby-lang
Oak has joined #ruby-lang
mucker has quit [Remote host closed the connection]
Oak has left #ruby-lang [#ruby-lang]
Onixs_ has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
mucker has joined #ruby-lang
nertzy has quit [Quit: This computer has gone to sleep]
dhruvasagar has joined #ruby-lang
lun__ has joined #ruby-lang
mucker has quit [Ping timeout: 244 seconds]
lun__ has quit [Ping timeout: 240 seconds]
sevvie has quit [Ping timeout: 272 seconds]
happydude has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
nXqd has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
Onixs_ has quit [Ping timeout: 250 seconds]
mucker has joined #ruby-lang
dhruvasagar has joined #ruby-lang
dingus_khan has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
nXqd has quit [Ping timeout: 240 seconds]
xcess_denied has quit [Quit: Leaving...]
xcess_denied has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 245 seconds]
Barrin6 has quit [Quit: HydraIRC -> http://www.hydrairc.com <- \o/]
arooni-mobile__ has quit [Ping timeout: 245 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
hogeo has quit [Remote host closed the connection]
atrocitas has quit [Remote host closed the connection]
atrocitas has joined #ruby-lang
JonahR has quit [Quit: jonahR]
jinesh has quit [Quit: Konversation terminated!]
Boohbah has quit [Write error: Broken pipe]
Kabaka has quit [Remote host closed the connection]
elcontrastador has quit [*.net *.split]
JoshuaPaling has quit [*.net *.split]
rickhull1 has quit [*.net *.split]
lacrosse has quit [*.net *.split]
eval-in has quit [*.net *.split]
banisterfiend has quit [*.net *.split]
snafoo has quit [*.net *.split]
hakunin has quit [*.net *.split]
neaer has quit [*.net *.split]
Rylee has quit [*.net *.split]
neurodamage has quit [*.net *.split]
wudofyr has quit [*.net *.split]
dvorak has quit [*.net *.split]
sindork has quit [*.net *.split]
skinny_much has quit [*.net *.split]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
hogeo has joined #ruby-lang
kek has joined #ruby-lang
apeiros has quit [Ping timeout: 240 seconds]
kek has quit [Ping timeout: 240 seconds]
hogeo has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
pabs has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby-lang
dalzony has joined #ruby-lang
vmoravec has joined #ruby-lang
sandeepk has quit [Quit: Leaving...]
lun__ has joined #ruby-lang
snarfmason has joined #ruby-lang
pabs has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
Onixs has joined #ruby-lang
<Onixs> hello...
<Onixs> how do you define TargetVolume variable?
dalzony has quit [Quit: Leaving.]
woollyams has quit [Ping timeout: 252 seconds]
<Onixs> in bash, I usually do TargetVolume = $3
<Onixs> new to Ruby lang so i asked
dingus_khan has quit [Ping timeout: 272 seconds]
iliketurtles has quit [Quit: zzzzz…..]
sandeepk has joined #ruby-lang
crankharder has quit [Ping timeout: 244 seconds]
<havenwood> Onixs: In Ruby `TargetVolume` would be a Constant (by convention, being CamelCased it would specifically be a class or module). You should take a look at `@instance_variables` and `local_variables` (and the convention for for constants as variables is `CONSTANTS`).
babinho has quit [Quit: leaving]
<Onixs> Thanks for link havenwood. im on it now :)
<havenwood> Onixs: Avoid $global and @@class variables unless you really need em. A local or @instance variable will get you far! :)
dhruvasagar has quit [Ping timeout: 244 seconds]
<Onixs> its just a simple script im modifying for my needs.. copy FILE to TargetVolume
mistym has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<Onixs> damn. im not gettint it :(
macmartine has joined #ruby-lang
<zenspider> rawr
solars has joined #ruby-lang
sevvie has joined #ruby-lang
iliketurtles has joined #ruby-lang
kek has joined #ruby-lang
<Onixs> havenwoo : sorry for being a noob… in layman's term, how do i define variable to (e.g. /Volumes/DataHD
<Onixs> havenwood ^^
hogeo has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 244 seconds]
<Onixs> in which it will do like, cp FILE $TagretVolume
hhatch has joined #ruby-lang
sandeepk has quit [Quit: Leaving...]
kek has quit [Ping timeout: 252 seconds]
crankharder has joined #ruby-lang
<zenspider> var = "string value"
macmartine has quit [Remote host closed the connection]
<zenspider> not sure what you're trying to do or why... but that's a local variable assignment
<zenspider> @var = "string value"
<zenspider> is an instance variable assignment
<Onixs> zenspider in bash, $3 is always the Target. what is it in ruby?
<zenspider> Onixs: I have no fucking clue what you're on about.
xcess_denied has quit [Quit: Leaving...]
dhruvasagar has quit [Read error: Connection reset by peer]
<zenspider> $3 in bash is not always anything.
dhruvasagar has joined #ruby-lang
<Onixs> $3 represents the target regardless of the Volume Name
<zenspider> $3 in bash is the 3rd argument to whatever function is running
<Onixs> yes, it can also be a "third" arg though
<Onixs> but i mostly use it as target var
Mon_Ouie has quit [Ping timeout: 246 seconds]
RickHull has joined #ruby-lang
<zenspider> you're about 30 seconds from flipping my bozo-bit.
<zenspider> either: learn how to ask a question
<zenspider> or: show me some code and explain how it isn't working for you
<zenspider> and by show
<zenspider> I mean, use a paste service
<Onixs> ok...
<zenspider> gist, pastie, whatever
<Onixs> Thank you :)
DouweM has quit [Ping timeout: 264 seconds]
arBmind1 has quit [Quit: Leaving.]
albioner has quit [Quit: Laptop went to sleep. ZZZzzz…]
mistym has quit [Remote host closed the connection]
iliketurtles has quit [Quit: zzzzz…..]
nXqd has joined #ruby-lang
relix has joined #ruby-lang
<zenspider> oops. that was a ghost chili.
<zenspider> they really are hotter when you dehydrate them... less fruity and sweet
JoshuaPaling has joined #ruby-lang
<Onixs> zenspider this is a bash script https://gist.github.com/anonymous/7463019
<Onixs> i am interested with the SOURCE & TARGET var
<Onixs> on how to define it in Ruby
thelorax123 has quit [Remote host closed the connection]
albioner has joined #ruby-lang
nXqd has quit [Ping timeout: 245 seconds]
dagobah has joined #ruby-lang
<Onixs> so its dealing with 2 drives. 1 booted (source drive) and 1 taget drive
thelorax123 has joined #ruby-lang
yatish27 has joined #ruby-lang
<zenspider> consider the bozo bit flipped. I offered you two options and you chose neither.
xcess_denied has joined #ruby-lang
sandeepk has joined #ruby-lang
mdedetrich has joined #ruby-lang
<Onixs> how can i show you ruby script. i have yet to convert that to ruby. hence the question
h_kon has joined #ruby-lang
sevvie has quit [Read error: Connection reset by peer]
datanoise has joined #ruby-lang
relix has quit [Read error: Connection reset by peer]
relix_ has joined #ruby-lang
<jrobeson> Onixs, just google ruby cli arguments.
<jrobeson> it's quite similiar to how bash does it out of the box
<jrobeson> if you want options look into the optparse lib or one of its wrappers
rwk1 has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 245 seconds]
rwk1 has joined #ruby-lang
benlovell has joined #ruby-lang
dingus_khan has joined #ruby-lang
<Onixs> will do jrobeson Thanks
JoshuaPaling has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has quit []
rwk1 has quit [Ping timeout: 248 seconds]
dingus_khan has quit [Ping timeout: 252 seconds]
lun__ has quit [Remote host closed the connection]
Boohbah has joined #ruby-lang
lun__ has joined #ruby-lang
<ljarvis> yorickpeterse: please open an issue with repro and I'll fix it for you asap
slyphon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lun__ has quit [Ping timeout: 246 seconds]
<Onixs> dont be shy to tell me that you dont know
<Onixs> nextime
<zenspider> you assume OUR ignorance? when you can't even describe your problem on a ONE LINER you're trying to convert? that's rich
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby-lang
* zenspider goes back to eating ghost chili and watching tv
mdedetrich has quit [Quit: Computer has gone to sleep.]
cnivolle has joined #ruby-lang
dalzony has joined #ruby-lang
<ddfreyne> Onixs: source = ENV['src']; target = ENV['target']; system('cp', source, target)
<ddfreyne> and now you use env vars
kek has joined #ruby-lang
<jrobeson> DO WHAT Onixs
<jrobeson> fine.. don't ever expect me to offer anything again
<jrobeson> or try to point you in the right direction
<jrobeson> i thought zenspider was being a bit harsh on you.. but.. now..
<ljarvis> zenspider: dat ghost chilli
<jrobeson> i wasn't gonna write the program for you..
Nilium has quit [Ping timeout: 240 seconds]
kek has quit [Ping timeout: 240 seconds]
vpretzel_ has joined #ruby-lang
Asher1 has joined #ruby-lang
benlovel1 has joined #ruby-lang
jarednorman1 has joined #ruby-lang
dalzony1 has joined #ruby-lang
dalzony1 has quit [Client Quit]
ItSANgo has quit [Ping timeout: 240 seconds]
Cakey has quit [Ping timeout: 240 seconds]
Kuukunen- has joined #ruby-lang
rue|w has quit [Read error: Connection reset by peer]
arBmind has joined #ruby-lang
hakunin has joined #ruby-lang
eval-in has joined #ruby-lang
snafoo has joined #ruby-lang
Rylee has joined #ruby-lang
lacrosse has joined #ruby-lang
wudofyr has joined #ruby-lang
banisterfiend has joined #ruby-lang
neurodamage has joined #ruby-lang
skinny_much has joined #ruby-lang
dvorak has joined #ruby-lang
sindork has joined #ruby-lang
rue|w has joined #ruby-lang
lun__ has joined #ruby-lang
Boohbah has quit [Changing host]
Boohbah has joined #ruby-lang
vmoravec has quit [Changing host]
vmoravec has joined #ruby-lang
dalzony has quit [*.net *.split]
xcess_denied has quit [*.net *.split]
benlovell has quit [*.net *.split]
GaelanAintAround has quit [*.net *.split]
achru has quit [*.net *.split]
vpretzel has quit [*.net *.split]
flgr has quit [*.net *.split]
jarednorman has quit [*.net *.split]
Asher has quit [*.net *.split]
dabradley has quit [*.net *.split]
Mellett68 has quit [*.net *.split]
ericwood has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
GaelanAintAround has joined #ruby-lang
ericwood has joined #ruby-lang
Mellett68 has joined #ruby-lang
achru has joined #ruby-lang
flgr has joined #ruby-lang
dabradley has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
robonerd has quit [Remote host closed the connection]
robonerd has joined #ruby-lang
<yorickpeterse> morning
robonerd has quit [Max SendQ exceeded]
vlad_starkov has joined #ruby-lang
robonerd has joined #ruby-lang
kek has joined #ruby-lang
robonerd has quit [Max SendQ exceeded]
robonerd has joined #ruby-lang
ItSANgo has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 245 seconds]
tbuehlmann has joined #ruby-lang
benlovel1 has quit [Ping timeout: 246 seconds]
lun__ has quit [Remote host closed the connection]
mucker has quit [Remote host closed the connection]
sandeepk has quit [Quit: Leaving...]
lun__ has joined #ruby-lang
cnivolle has joined #ruby-lang
mucker has joined #ruby-lang
marr has joined #ruby-lang
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
kurko_ has quit [Quit: Computer has gone to sleep.]
<maloik> o/
judofyr has joined #ruby-lang
<ljarvis> hi
mucker has quit [Ping timeout: 241 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lun__ has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby-lang
<ljarvis> I wish ruby had something as good as godef
hogeo has joined #ruby-lang
<mikecmpbll> wats godef
ikrima has quit [Read error: Connection reset by peer]
cnivolle has quit [Read error: No route to host]
relix has joined #ruby-lang
cnivolle has joined #ruby-lang
<yorickpeterse> it's webscale
<ljarvis> it parses go code and can lookup symbols easily
achru has quit [Ping timeout: 272 seconds]
<mikecmpbll> :/
<ljarvis> ie, if im writing something go in vim and type gd over foo.Hello() it'll take me to the Hello() function inside of the lib i downloaded
<mikecmpbll> oh ok
achru has joined #ruby-lang
relix has quit [Client Quit]
ikrima has joined #ruby-lang
datanoise has joined #ruby-lang
<ljarvis> i removed my entire vim config accidentally and its the best thing i ever did
<ddfreyne> ljarvis: It's called Smalltalk
<yorickpeterse> that looks terrible
<yorickpeterse> you should be ashamed
<ljarvis> ddfreyne: heh yeah
<ljarvis> yorickpeterse: ill cut u bro
<ddfreyne> WTF is upwith the indentation
<yorickpeterse> also why the fuck didn't you have it in Git before?
<ljarvis> ddfreyne: the comments? i know :/
<yorickpeterse> also, how's Vundle?
<ljarvis> yorickpeterse: I did but it was 6 months old because i suck
<ljarvis> yorickpeterse: vundle is awesome
dhruvasagar has quit [Read error: Connection reset by peer]
<ddfreyne> I use Subltime Text these days
<ljarvis> as you can see I have no ~/.vim just a vimrc
<ddfreyne> :(
<ddfreyne> SORRY.
<yorickpeterse> how does Vundle handle updates for bundles, do you have to manually git pull them?
<yorickpeterse> ddfreyne: HERETIC
<ljarvis> ddfreyne: I used to use it too, it's good!
<ljarvis> yorickpeterse: no, you :BundleInstall! to update
dhruvasagar has joined #ruby-lang
<mikecmpbll> sublime is awesome.
<ljarvis> yorickpeterse: I dont check them in so there's not really any version control if I download these dotfiles in the future, but that's a problem I'll deal with then
<yorickpeterse> Ah, and by default it always downloads the latest version?
<ljarvis> yep
<yorickpeterse> nice
<ljarvis> so ticket that butthole when you update!
<yorickpeterse> Pathogen is starting to piss me off because I hate Git submodules
<ljarvis> tighten
<ljarvis> yeah that's basically the only reason I stopped using pathogen
<ljarvis> with vundle i ignore ~/.vim/bundle from git
<ljarvis> because fuck that
<ddfreyne> Yeah I am happy with Sublime
<ljarvis> ddfreyne: I really like it, I also nuked my settings when I removed 3 though (it throws all the shit in the same place)
<ljarvis> so that annoyed me
<ljarvis> and it doesn't get much love atm, i really hope it doesn't go down the pooper
<ljarvis> and control+p got really slow for me on massive projects :(
<yorickpeterse> Ctrl+P is terrible
<ljarvis> yorickpeterse: i hope you're not talking about the vim one
<yorickpeterse> "Oh lets fuzzy find that file because I don't know where it..OH, now I have to wait 15 minutes"
<yorickpeterse> I am
<ljarvis> uh
<yorickpeterse> it's slow as balls on large projects
<yorickpeterse> (the initial caching)
<ljarvis> it's incredibly fast for me, but I use ag
<ljarvis> no caching
lun__ has joined #ruby-lang
<ljarvis> no idea what -g '' is doing though
<ljarvis> ah pattern
yatish27 has quit [Remote host closed the connection]
jxie has quit [Ping timeout: 245 seconds]
yatish27 has joined #ruby-lang
UziMonkey has joined #ruby-lang
apeiros has joined #ruby-lang
sandeepk has joined #ruby-lang
ahf has quit [Remote host closed the connection]
<ljarvis> yorickpeterse: you think @trash.clear in parse() would solve your problem and not break everything?
<yorickpeterse> The former yes, the latter I have no idea
<yorickpeterse> tests? :P
<yorickpeterse> it works for me since that's what I'm doing in my tests
<ljarvis> ok, well yeah tests will catch if anything goes wrong, there's a lot of them. I'll play with it in a bit
<yorickpeterse> thanks
xcess_denied has joined #ruby-lang
kek_ has joined #ruby-lang
sevvie has joined #ruby-lang
sevvie has quit [Read error: Connection reset by peer]
datanoise has quit [Ping timeout: 248 seconds]
kek_ has quit [Ping timeout: 272 seconds]
barttenbrinke has joined #ruby-lang
gianlucadv has joined #ruby-lang
gix has quit [Quit: Client exiting]
<yorickpeterse> pretty funny that I rely on Rollbar errors to tell when something is running or not
<yorickpeterse> at least for our scrapers
<ljarvis> yorickpeterse: slop '~> 3.4', '>= 3.4.7'
benlovell has joined #ruby-lang
mistym has joined #ruby-lang
<yorickpeterse> <3
benlovell has quit [Client Quit]
benlovell has joined #ruby-lang
gix has joined #ruby-lang
adambeynon has joined #ruby-lang
rickhull1 has joined #ruby-lang
benlovell has quit [Client Quit]
mistym has quit [Ping timeout: 245 seconds]
rwk1 has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
ikrima has quit [Quit: Computer has gone to sleep.]
yatish27 has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
kleech has joined #ruby-lang
kleech has left #ruby-lang [#ruby-lang]
RickHull has quit [Quit: Leaving.]
rwk1 has quit [Remote host closed the connection]
DouweM has joined #ruby-lang
lun__ has quit [Remote host closed the connection]
lun__ has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
lun__ has quit [Ping timeout: 246 seconds]
ikrima has joined #ruby-lang
sepp2k has joined #ruby-lang
dangerousbeans has joined #ruby-lang
thelorax123 has quit [Remote host closed the connection]
kitak_ has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
ryez has quit [Quit: Page closed]
kitak has joined #ruby-lang
thelorax123 has joined #ruby-lang
kek_ has joined #ruby-lang
madb055 has quit [Ping timeout: 246 seconds]
elia has joined #ruby-lang
relix has joined #ruby-lang
jxie has joined #ruby-lang
Coincide_ has joined #ruby-lang
kek_ has quit [Ping timeout: 246 seconds]
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
Coincide_ has quit [Remote host closed the connection]
kek has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
h_kon has quit [Remote host closed the connection]
guns has joined #ruby-lang
Coincidental has quit [Ping timeout: 260 seconds]
albioner has quit [Quit: Laptop went to sleep. ZZZzzz…]
h_kon has joined #ruby-lang
<ljarvis> today is a bad day
thelorax123 has quit [Remote host closed the connection]
thelorax123 has joined #ruby-lang
<judofyr> ljarvis: make it better!
mucker has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
soba has quit [Ping timeout: 240 seconds]
judofyr has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
cnivolle has quit [Remote host closed the connection]
<ljarvis> good advice right there
arBmind1 has joined #ruby-lang
stamina has joined #ruby-lang
arBmind has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #ruby-lang
sandeepk has quit [Quit: Leaving...]
robonerd has quit [Remote host closed the connection]
<joonty> in soviet russia, day makes you
lun__ has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
mdedetrich has joined #ruby-lang
ahf has joined #ruby-lang
sandeepk has joined #ruby-lang
<yorickpeterse> So we had an ElasticSearch cluster fuckup...now Logstash is fucking up
<yorickpeterse> best week ever
kek has joined #ruby-lang
mucker has quit [Remote host closed the connection]
kek_ has joined #ruby-lang
guns has quit [Quit: guns]
kek_ has quit [Ping timeout: 260 seconds]
mucker has joined #ruby-lang
Nilium has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
mistym has joined #ruby-lang
arBmind1 has left #ruby-lang [#ruby-lang]
Olipro has joined #ruby-lang
mistym has quit [Ping timeout: 252 seconds]
nettsundere has joined #ruby-lang
ldnunes has joined #ruby-lang
Squarepy has joined #ruby-lang
rwk1 has joined #ruby-lang
barttenbrinke has joined #ruby-lang
solars has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby-lang
Squarepy has quit [Ping timeout: 272 seconds]
nettsundere has quit [Quit: nettsundere]
atrocitas has quit [Remote host closed the connection]
Squarepy has joined #ruby-lang
nettsundere has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
<Olipro> if I have a String object that is a sequence of bytes read in from a TCP socket, is there a way to "map" that into a structure that I've defined
<Olipro> (that's more efficient than manipulating it as an array and using unpack)
kitak_ has joined #ruby-lang
solars has joined #ruby-lang
tbuehlmann has quit [Ping timeout: 264 seconds]
hhatch has quit [Ping timeout: 240 seconds]
<yorickpeterse> dayum, Euruko 2014 CFP is already open
<ljarvis> Olipro: could you explain a bit more what you're trying to do?
<apeiros> Olipro: unpack is quite efficient
<apeiros> oh, cross poster
<ljarvis> sigh
<maloik> 'already' ? that's not really that quick is it
Olipro was kicked from #ruby-lang by apeiros [if you cross post, you're required to at least tell that in every channel where you cross post. thank you (this is only a kick, not a ban)]
nettsundere has quit [Quit: nettsundere]
Olipro has joined #ruby-lang
kitak has quit [Ping timeout: 246 seconds]
<yorickpeterse> maloik: I remember 2013 being later
<maloik> wtf 58 euro for a ticket? they must either have a massive audience or a ton of sponsors
<yorickpeterse> I don't like the Github PR system for this though :/
<yorickpeterse> 2013's system was much better
kitak_ has quit [Remote host closed the connection]
sandeepk_ has joined #ruby-lang
<maloik> it's not anonymous sadly
<maloik> ours will be
sandeepk has quit [Read error: Connection reset by peer]
<maloik> even more so than last year, when by the time we were done selecting talks we could recognize a couple of them just by the description
<yorickpeterse> heh
<ljarvis> maloik: you coming to bacon conf?
x0f has joined #ruby-lang
<yorickpeterse> Guess we need to hurry up with our Ruby changes so I can talk about that
<yorickpeterse> or maybe I should try again giving a talk about ruby-lint
<yorickpeterse> bacon conf?
elia has joined #ruby-lang
<maloik> ljarvis: I hope so yea... if I don't get to go by my employer I might propose I pay for the ticket or the stay myself
<yorickpeterse> oh shit, that's in London
<ljarvis> maloik: nice
nettsundere has joined #ruby-lang
<yorickpeterse> "BUT I'M VEGETARIAN...
<yorickpeterse> That’s awesome, we’d love to meat you! "
<yorickpeterse> ha
<ljarvis> if I lived closer to London I'd offer you a place, but it's like an hour away
<maloik> don't worry about it :) might end up trying airbnb for the first time
x0f_ has quit [Ping timeout: 240 seconds]
<yorickpeterse> ljarvis: m8 everybody lives in London
<ljarvis> srs
lun__ has quit [Remote host closed the connection]
rickhull1 has quit [Quit: Leaving.]
lun__ has joined #ruby-lang
ezkl has quit [Quit: QUIT!]
Asher1 has quit [Quit: Leaving.]
Asher has joined #ruby-lang
kek has quit [Remote host closed the connection]
lun__ has quit [Ping timeout: 265 seconds]
cnivolle has joined #ruby-lang
kek_ has joined #ruby-lang
bastilian has quit [Quit: Linkinus - http://linkinus.com]
xcess_denied has quit [Quit: Leaving...]
Asher has quit [Client Quit]
lun__ has joined #ruby-lang
valeri_ufo has joined #ruby-lang
kek_ has quit [Ping timeout: 272 seconds]
rwk1 has quit [Read error: Connection timed out]
sandeepk_ has quit [Quit: Leaving...]
sandeepk has joined #ruby-lang
bastilian has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 252 seconds]
rwk1 has joined #ruby-lang
retro|cz has joined #ruby-lang
sandeepk has quit [Quit: Leaving...]
supergeek has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
lun__ has quit [Remote host closed the connection]
supergeek has quit [Client Quit]
guns has joined #ruby-lang
smashwilson has joined #ruby-lang
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Client Quit]
nXqd has quit [Ping timeout: 272 seconds]
stamina has quit [Read error: Connection reset by peer]
supergeek has joined #ruby-lang
rwk1 has quit [Read error: Connection timed out]
Jaydeep has joined #ruby-lang
dangerousbeans has quit [Quit: :Q______________]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rwk1 has joined #ruby-lang
Asher has joined #ruby-lang
lun__ has joined #ruby-lang
rwk1 has quit [Read error: Operation timed out]
cnivolle has quit [Remote host closed the connection]
Squarepy_ has joined #ruby-lang
bzalasky has joined #ruby-lang
Squarepy has quit [Ping timeout: 246 seconds]
retro|cz has quit [Ping timeout: 260 seconds]
dangerousbeans has joined #ruby-lang
rwk1 has joined #ruby-lang
kek has joined #ruby-lang
SteveBenner9 has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby-lang
kek has quit [Ping timeout: 265 seconds]
barttenbrinke has quit [Remote host closed the connection]
barttenbrinke has joined #ruby-lang
Squarepy_ has quit [Ping timeout: 246 seconds]
jperry has quit [Remote host closed the connection]
barttenb_ has joined #ruby-lang
barttenbrinke has quit [Read error: Connection reset by peer]
rwk1 has quit [Read error: Operation timed out]
breakingthings has joined #ruby-lang
Asher has quit [Quit: Leaving.]
banister has joined #ruby-lang
nettsundere has quit [Quit: nettsundere]
banisterfiend has quit [Read error: Connection reset by peer]
jperry has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
mistym has joined #ruby-lang
banister has quit [Client Quit]
banisterfiend has joined #ruby-lang
bzalasky has joined #ruby-lang
lupine has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby-lang
vlad_starkov has joined #ruby-lang
lupine has joined #ruby-lang
mistym has quit [Ping timeout: 244 seconds]
bzalasky has quit [Ping timeout: 240 seconds]
rwk1 has joined #ruby-lang
myappleguy has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
lun___ has joined #ruby-lang
lun__ has quit [Ping timeout: 248 seconds]
supergeek has quit [Quit: Leaving]
vpretzel_ is now known as vpretzel
MaddinXx has joined #ruby-lang
h_kon has quit [Remote host closed the connection]
toretore has joined #ruby-lang
vinhbachsy has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
Asher has joined #ruby-lang
arooni-mobile__ has joined #ruby-lang
vladgh has joined #ruby-lang
<yorickpeterse> I SURE DO THUNDERBIRD TAKING MY LAPTOP DOWN AGAIN
<yorickpeterse> Had to force suspend it, log in in a different TTY and kill it. While it was completely locking up the laptop...
vladgh has quit [Client Quit]
vladgh has joined #ruby-lang
CoreData has quit [Ping timeout: 245 seconds]
vladgh has quit [Quit: leaving]
vladgh_ has joined #ruby-lang
vladgh_ has quit [Client Quit]
vladgh has joined #ruby-lang
benlovell has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
kek has joined #ruby-lang
sandeepk has joined #ruby-lang
yatish27 has joined #ruby-lang
Guest18577 has joined #ruby-lang
<maloik> I wish we had an interface/UX designer :(
<maloik> feel like this feature is going to turn out a mess simply because I can't envision a proper flow for it
<yorickpeterse> hire one
<maloik> not an option
<yorickpeterse> ...wat
kek has quit [Ping timeout: 272 seconds]
<yorickpeterse> "We need people" "We don't want to hire people" make a choice
<workmad3> yorickpeterse: they want to buy people?
nettsundere has joined #ruby-lang
<maloik> I don't decide on hiring, so if the bosses don't want to invest in this we're kind of stuck aren't we
<yorickpeterse> part of your job is to convince them they're wrong :)
<yorickpeterse> or just use Bootstrap
kek has joined #ruby-lang
<maloik> it's not the visual aspect
<maloik> also, I can understand the reasoning, the control panel just isn't the biggest focus right now
<momomomomo> maloik: Sometimes it helps to get a whiteboard and start scribbling - if it's not priority, then leave it for later
<maloik> this one's complicated, can't wrap my head around it
<maloik> anyway, back to debugging
shinnya has joined #ruby-lang
Guest18577 has quit [Ping timeout: 260 seconds]
datanoise has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
jxie has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby-lang
<yorickpeterse> maloik: take a poop, draw some boxes, then sit back behind your computer
nathanstitt has joined #ruby-lang
itsraining has joined #ruby-lang
slyphon has joined #ruby-lang
retro|cz has joined #ruby-lang
xcess_denied has joined #ruby-lang
bruno- has quit [Ping timeout: 252 seconds]
loincloth has joined #ruby-lang
stardiviner has quit [Ping timeout: 246 seconds]
mucker has quit [Remote host closed the connection]
mucker has joined #ruby-lang
stardiviner has joined #ruby-lang
matt_ has joined #ruby-lang
matt_ is now known as Guest94401
mucker has quit [Ping timeout: 252 seconds]
Guest94401 has quit [Client Quit]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
benwoody has joined #ruby-lang
bf4 has joined #ruby-lang
sandeepk has quit [Quit: Leaving...]
<ljarvis> take a poop on your bosses desk
<ljarvis> and tell him you need to hire a ux person
<ljarvis> otherwise his desk is now your toilet
<gnufied> *makes a mental note to not take advice from ljarvis*
<ljarvis> then every day it doesn't happen, take a poop in a different place in his office
<ljarvis> "got ya, did't think it would fit in your coffee mug eh?"
dhruvasa1ar has quit [Ping timeout: 260 seconds]
<maloik> lmao
<maloik> we're in an open space, I'm pretty sure I'd actually shoot myself in the foot doing that
<maloik> figuratively
vlad_starkov has quit [Remote host closed the connection]
<maloik> you'd have to be pretty stupid to shoot yourself in the foot for real while taking a dump
dhruvasa1ar has joined #ruby-lang
<maloik> I mean, who does that? you should never take the safety off while inside the bathroom
<ljarvis> you could shit yourself on the foot
<maloik> well... maybe
<maloik> probably still pretty hard
<ljarvis> i would say almost likely, if you're attempting to take a shit in a coffee cup
<maloik> maybe on your ankle
<maloik> but not on the front of your foot
<ljarvis> yeah maybe just some splatter
<maloik> unless you're crazy flexible
<ljarvis> weirdest image in my head right now
<maloik> only just now ?
<ljarvis> i always have weird images in my head, even during conversations that do not involve shitting on objects in and around your bosses desk
bruno- has joined #ruby-lang
nettsundere has quit [Quit: nettsundere]
bradsmith has joined #ruby-lang
sandeepk has joined #ruby-lang
thelorax123 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
arooni-mobile__ has quit [Ping timeout: 272 seconds]
thelorax123 has joined #ruby-lang
achru has quit [Remote host closed the connection]
achru has joined #ruby-lang
<yorickpeterse> ljarvis: are you a cat?
<yorickpeterse> (re pooping)
<yorickpeterse> you sound a lot like the average cat
nigerianceo has joined #ruby-lang
CoreData has joined #ruby-lang
<ljarvis> i am topcat
<yorickpeterse> alpha cat
<maloik> I've had cats for as long as I can remember, but I don't remember any of them shitting in my mugs
<maloik> maybe you need to train yours
<ljarvis> or.. maybe you need to train yours!
<yorickpeterse> maloik: that just means they're good at hiding it
<ljarvis> it took a long time to train the cats to shit in mugs
<ljarvis> but they got there
stardiviner has quit [Read error: Operation timed out]
Jaydeep has quit [Remote host closed the connection]
<maloik> :D
achru has quit [Ping timeout: 246 seconds]
arooni-mobile__ has joined #ruby-lang
itsraining has quit [Quit: itsraining]
nettsundere has joined #ruby-lang
CoreData has quit [Ping timeout: 245 seconds]
yfeldblum has joined #ruby-lang
nettsundere has left #ruby-lang [#ruby-lang]
rippa has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
zirconcode has joined #ruby-lang
micalexander has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
micalexander has joined #ruby-lang
retro|cz has quit [Read error: Operation timed out]
turnip has quit [Ping timeout: 248 seconds]
wallerdev has quit [Quit: wallerdev]
itsraining has joined #ruby-lang
micalexander has quit [Ping timeout: 244 seconds]
jsullivandigs has joined #ruby-lang
bantic has joined #ruby-lang
CoreData has joined #ruby-lang
CoreData has quit [Read error: Connection reset by peer]
thang has quit [Remote host closed the connection]
kek_ has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dhruvasa1ar has quit [Ping timeout: 272 seconds]
cnivolle has joined #ruby-lang
havenwood has joined #ruby-lang
cnivolle has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
slyphon has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby-lang
kek_ has quit [Ping timeout: 260 seconds]
momomomomo has quit [Quit: momomomomo]
<levifig> anybody with any experience with Radius servers and Ruby?
<levifig> wanting to write a ruby app that serves as the backend for a radius server
<levifig> and most radius gems seem to be outdated :X
<lupine> RADIUS is outdated ;)
<lupine> nah, just kidding. it's evil, but necessary
<levifig> that's what I keep thinking
<lupine> I'm not familiar with binding to it from ruby though, I'm afraid
dvorak has quit [Ping timeout: 272 seconds]
<levifig> lupine, are there alternatives to RADIUS?!
<lupine> depends on what you're using radius for
<levifig> like, I'm trying to use it simply as an interface for VPN authentication…
<cout> wow, i haven't heard of RADIUS in ages
<lupine> then you could use ldap
<levifig> :p
<levifig> hmm
<lupine> which is what we use for our openvpn server's username/password stage of auth
<lupine> I'm actually going to need to start running a radius server at home
<yorickpeterse> Fuck yeah, benchmarking in Kibana
<lupine> I don't want to, but I need to get away from WPA2-PSK
yatish27 has quit [Remote host closed the connection]
<yorickpeterse> ljarvis: also there's a joke about trains in that comment
<yorickpeterse> (in yours about cats)
itsraining has quit [Quit: itsraining]
itsraining has joined #ruby-lang
yatish27 has joined #ruby-lang
<levifig> lupine, ya
<lupine> if you can get away with it, ldap is easier
<lupine> there's even easier, again if you can get away with it - right down to usernames and passwords in flat files
slyphon has joined #ruby-lang
scampbell has joined #ruby-lang
sandeepk has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby-lang
momomomomo has joined #ruby-lang
enebo has joined #ruby-lang
myappleguy has quit [Ping timeout: 272 seconds]
wallerdev has joined #ruby-lang
myappleguy has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
<levifig> lupine, I'm using mikrotiks as the main devices on the network
<levifig> already have about ~100 actively connected for a max of ~230 that have VPN access (remote routers to our VPN concentrator)
<levifig> I know mikrotiks have RADIUS
yatish27 has joined #ruby-lang
<levifig> not sure about LDAP
<levifig> on the other hand, one could use LDAP as the RADIUS' backend
<yorickpeterse> HNNNNGNGGGG KIBANNAAA
<yorickpeterse> I'm creaming my pants here
<yorickpeterse> this is pretty darn awesome once you really get down to setting stuff up
rwk1 has quit [Remote host closed the connection]
mistym has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
itsraining has quit [Quit: itsraining]
elia has joined #ruby-lang
mistym has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
dvorak has joined #ruby-lang
vmoravec has quit [Quit: Leaving]
turnip has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
micalexander has joined #ruby-lang
rwk1 has joined #ruby-lang
kurko_ has joined #ruby-lang
yatish27 has joined #ruby-lang
slyphon has quit [Ping timeout: 246 seconds]
slyphon has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
yfeldblum has joined #ruby-lang
Cakey has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
MaddinXx has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
cored has joined #ruby-lang
yfeldblum has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
barttenb_ has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
banisterfiend is now known as banisterfiend`
loincloth has quit [Ping timeout: 246 seconds]
kek has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
mistym has joined #ruby-lang
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
cnivolle_ has joined #ruby-lang
CaptainJet has joined #ruby-lang
cnivolle_ has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
cnivolle_ has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
loincloth has joined #ruby-lang
yatish27 has joined #ruby-lang
cnivolle has quit [Ping timeout: 252 seconds]
MaddinXx has joined #ruby-lang
hogeo has quit [Ping timeout: 246 seconds]
big_ has joined #ruby-lang
myappleguy has left #ruby-lang [#ruby-lang]
kek has joined #ruby-lang
nXqd has quit [Ping timeout: 248 seconds]
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
slyphon has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby-lang
kek has quit [Ping timeout: 244 seconds]
jsullivandigs has quit [Ping timeout: 248 seconds]
jsullivandigs has joined #ruby-lang
macmartine has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
itsraining has joined #ruby-lang
achru has joined #ruby-lang
<ljarvis> D:
itsraining has quit [Client Quit]
itsraining has joined #ruby-lang
Randroid has joined #ruby-lang
sross07 has quit [Read error: Connection reset by peer]
bzalasky has quit [Remote host closed the connection]
benlovell has quit [Quit: leaving]
bzalasky has joined #ruby-lang
big_ has quit [Ping timeout: 250 seconds]
sross07 has joined #ruby-lang
arooni-mobile__ has quit [Ping timeout: 244 seconds]
bzalasky has quit [Ping timeout: 252 seconds]
achru has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 248 seconds]
sepp2k has quit [Quit: Konversation terminated!]
achru has joined #ruby-lang
hogeo has joined #ruby-lang
breakingthings has quit []
io_syl has quit []
achru has quit [Ping timeout: 260 seconds]
lun___ has quit [Remote host closed the connection]
lun__ has joined #ruby-lang
__butch__ has joined #ruby-lang
dagobah has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
Jaydeep has joined #ruby-lang
lun__ has quit [Ping timeout: 244 seconds]
arooni-mobile__ has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vinhbachsy has quit []
<zirconcode> I'm making a gem, and I have a mess with my requires
<zirconcode> I don't think so :(
Onixs has quit [Read error: Connection reset by peer]
<ljarvis> zirconcode: why do you think you're not?
sepp2k has joined #ruby-lang
Onixs has joined #ruby-lang
<zirconcode> I'm not sure if those requires are supposed to be in the .rb files where they're needed
<zirconcode> or if they're supposed to be outisde or inside the module
mistym has joined #ruby-lang
<toretore> i would put them only where needed
<toretore> that way they're independent of each other
<cored> hello all
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<cored> I'm back with same thing regarding mechanize
<toretore> and i wouldn't use require_relative, but assume that the PATH is properly set up
<zirconcode> and in the .gemspec runtime_dependancies I have to mention them all again right?
<cored> I found the way to submit the form
<ljarvis> zirconcode: it's personal preference ultimately, but they way you're doing it is not wrong
<cored> but now I want to retrieve some info from the new page
<zirconcode> ah thanks toretore, I like that thinking, sounds better than mine
<ljarvis> cored: page = form.submit(...); page.find ...
<cored> that's the code I have
<cored> that's what is returning the data
<cored> there are two tables inside that new page but when I do something like returned_page.search('//table') it just return the first one
<toretore> zirconcode: if it makes sense, make sure i can require 'yourlib/somefile' without having to require the whole thing
<ljarvis> cored: does it return a node list?
breakingthings has joined #ruby-lang
<ljarvis> cored: because the part of the code we're discussing isn't even in that gist
<cored> ljarvis: sure, that code just make the submit to the form
<cored> ljarvis: I will have another code to scrap it out, I'm testing how to do the scrap now
<zirconcode> toretore: ah I see, well that makes more sense than doing something just because it works~
<cored> which is something like returned_form.search('//table')
<ljarvis> cored: if you want help with that part, that's the part you should share :)
<ljarvis> cored: what does that return?
<cored> the first table
<ljarvis> zirconcode: fwiw require_relative is also fine
<ljarvis> but i generally agree
<ljarvis> cored: that's not helpful
<cored> there are two tables in the returned page
<ljarvis> cored: what *exactly* does it return
<cored> wait a sec
<zirconcode> is require_relative just not used, or is there a reason aswell?
<ljarvis> zirconcode: the reason is because . is no longer in the load path so it's a helper method for require File.expand_path('./#{the_file}', __FILE__)
<zirconcode> ljarvis: ah, thanks =)
iliketurtles has joined #ruby-lang
<ljarvis> cored: then nokogiri is only seeing 1 table in the page
iliketurtles has quit [Remote host closed the connection]
MaddinXx has quit [Remote host closed the connection]
sandeepk has quit [Ping timeout: 265 seconds]
<cored> ljarvis: which is weird
<ljarvis> cored: you can paste the html source if you want
<cored> ljarvis: why do you think that could happen?
<cored> malformed html
<cored> ?
<cored> ljarvis: sure, give me a sec
bjh13 has joined #ruby-lang
kek_ has joined #ruby-lang
shinnya has quit [Ping timeout: 272 seconds]
<ljarvis> => 3
<cored> hm
<cored> hm
<cored> the returned_form from the submit in mechanize is just returning one
<cored> maybe the problem is related to not having the entire page returned after the submit
Jaydeep has quit [Remote host closed the connection]
CoreData has joined #ruby-lang
kek_ has quit [Ping timeout: 246 seconds]
<cored> as far as I read mechanize overwrite the current form object
<cored> with the result after submit
<ljarvis> when someone makes a gem because you wont merge a 4 line change into a library https://github.com/duckinator/chronic-bang ooops
sross07 has quit [Read error: Connection reset by peer]
<ljarvis> duckinator: fwiw if more people spoke up i would have been forced into a corner a little more :D
ecnalyr has joined #ruby-lang
<ljarvis> and your example puts it into a little more context
<ljarvis> cored: it doesn't mutate the current form object, it just returns the page
<ljarvis> also in related news, i just dropped mechanize 2.7.4 \o/
<ljarvis> um .3
<ljarvis> i can't count
JonahR has joined #ruby-lang
elia has quit [Ping timeout: 260 seconds]
sross07 has joined #ruby-lang
yatish27 has quit [Remote host closed the connection]
vladgh has quit [Ping timeout: 272 seconds]
<zirconcode> what did I do wrong now: https://gist.github.com/ZirconCode/481d35b9faffc5f2a3e4
<ljarvis> zirconcode: again, . is not in the load path
<ljarvis> zirconcode: try require './scrapah'
<ljarvis> or require_relative
vlad_starkov has quit [Remote host closed the connection]
<zirconcode> require './scrapah' gives me syntax error
<zirconcode> Sorry if I'm a bit dense atm -_-
<ljarvis> no it doesn't
momomomomo has quit [Quit: momomomomo]
<ljarvis> oh right, that's a syntax error in your library
<ljarvis> ib/scrapah/extract.rb:10
<zirconcode> ohhh, haha thanks, I should've looked more carefully
<ljarvis> exception messages are good! :)
<zirconcode> hehe thanks for putting up with a slow newb =)
slyphon has joined #ruby-lang
heftig has quit [Ping timeout: 260 seconds]
heftig has joined #ruby-lang
Cakey has joined #ruby-lang
momomomomo has joined #ruby-lang
jhulten has joined #ruby-lang
io_syl has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 248 seconds]
loincloth has joined #ruby-lang
johnny_rugger has joined #ruby-lang
loincloth has quit [Ping timeout: 240 seconds]
arooni-mobile__ has quit [Ping timeout: 272 seconds]
momomomomo has quit [Quit: momomomomo]
workmad3 has quit [Ping timeout: 272 seconds]
Randroid has quit [Quit: Randroid]
loincloth has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
diraysexy has joined #ruby-lang
iliketurtles has joined #ruby-lang
MrZYX|off is now known as MrZYX
dangerousbeans has quit [Quit: KTHNXBAI]
nXqd has joined #ruby-lang
cnivolle_ has quit [Remote host closed the connection]
cnivolle has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
MaddinXx_ has quit [Remote host closed the connection]
MaddinXx_ has joined #ruby-lang
nomadicoder has joined #ruby-lang
nXqd has quit [Ping timeout: 246 seconds]
cnivolle has quit [Ping timeout: 252 seconds]
intellitech has quit [Quit: SMOKE BOMB!]
vsorlov has joined #ruby-lang
bruno- has quit [Ping timeout: 252 seconds]
iliketurtles has joined #ruby-lang
sevvie has joined #ruby-lang
momomomomo has joined #ruby-lang
bruno- has joined #ruby-lang
hahuang61 has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
<ljarvis> srsly
<ljarvis> we were just discussing this @ work
kek has joined #ruby-lang
<yorickpeterse> I *LOVE* this because I fucking hate MySQL
<yorickpeterse> This makes it much easier for me to advocate Pg at $WOKR
<yorickpeterse> * WORK
diraysexy has quit [Quit: Chatmosphere for Blackberry]
nisstyre has quit [Quit: Leaving]
dhruvasagar has quit [Ping timeout: 244 seconds]
MrZYX is now known as MrZYX|off
kek has quit [Ping timeout: 252 seconds]
Guest29309 has joined #ruby-lang
saarinen has joined #ruby-lang
Guest29309 is now known as diegoviola
CoreData has quit [Ping timeout: 240 seconds]
JonahR has quit [Quit: jonahR]
amerine has quit [Quit: Textual IRC Client: www.textualapp.com]
JonahR has joined #ruby-lang
Coincidental has joined #ruby-lang
RickHull has joined #ruby-lang
therealtesseract has joined #ruby-lang
JonahR has quit [Client Quit]
amerine has joined #ruby-lang
thelorax123 has quit [Write error: Broken pipe]
thelorax1231 has joined #ruby-lang
Shellcat has joined #ruby-lang
sepp2k has quit [Ping timeout: 260 seconds]
sepp2k has joined #ruby-lang
cnivolle has joined #ruby-lang
MrZYX|off is now known as MrZYX
<ljarvis> i created an instance to mess with
<ljarvis> and it wont connect
<ljarvis> yay rds
<yorickpeterse> security groups
<ljarvis> i did that first :D
<ljarvis> always catches me out
<ljarvis> i wonder if this is gonna effect heroku much
Cakey has joined #ruby-lang
dalegribble80 has joined #ruby-lang
vbatts has quit [Ping timeout: 245 seconds]
dalegribble80 has left #ruby-lang [#ruby-lang]
dalegribble80 has joined #ruby-lang
arooni-mobile has joined #ruby-lang
xcess_denied has quit [Quit: Leaving...]
Cakey has quit [Ping timeout: 252 seconds]
bryanl has joined #ruby-lang
momomomomo has joined #ruby-lang
CoreData has joined #ruby-lang
lun__ has joined #ruby-lang
havenwood has joined #ruby-lang
diegoviola has quit [Ping timeout: 248 seconds]
Coincidental has quit [Remote host closed the connection]
<zirconcode> why do flatten! and uniq! return nil if no changes were made, instead of the result?
Coincidental has joined #ruby-lang
mistym_ has joined #ruby-lang
lun__ has quit [Ping timeout: 265 seconds]
loincloth has quit [Remote host closed the connection]
dalegribble80 has quit [Quit: leaving]
<yorickpeterse> because no changes were made?
<zirconcode> but then I can't do array.uniq!.flatten!
<yorickpeterse> then do `array = array.uniq.flatten` ?
<yorickpeterse> there's nothing wrong with that
Coincide_ has joined #ruby-lang
<ljarvis> ^
<zirconcode> it's a bit longer =p
<ljarvis> it's easier to read
Coincidental has quit [Ping timeout: 272 seconds]
<ljarvis> put it inside a method that just does that, then it's even shorter
mistym_ has quit [Ping timeout: 252 seconds]
<zirconcode> maybe I'll do that =D
<zirconcode> is there a name for the act of compressing two methods into one until you are left with only one?
<zirconcode> recursively, for the entire program
<ljarvis> not sure i follow
<yorickpeterse> wat
<ljarvis> ^
<ljarvis> well put yorick
<zirconcode> I'm a bit tired >_>
<yorickpeterse> do you mean the actual source code of a method?
<yorickpeterse> or the data it spits out when called?
cored has quit [Ping timeout: 272 seconds]
<epitron> it sounds like he's talking about DRY
<epitron> except at an insane level
<zirconcode> yes, that explains it
<ljarvis> no it doesn't
MaddinXx_ has quit [Remote host closed the connection]
<epitron> implicit: it sounds to me like...
<zirconcode> hmm, so if you were to refactor your code into so many tiny methods until in the end you just have one left to call
<ljarvis> oh
<ljarvis> dat method overhead
loincloth has joined #ruby-lang
<ljarvis> but that's basically how all ruby programs work already
<epitron> zirconcode: you mean, you have many methods, but only one method as an entry point?
<ljarvis> look at IRB.start, Nokogiri.HTML etc
<epitron> it sounded like he was talking about reducing everything down to one method
<ljarvis> no
<ljarvis> "many tiny methods"
<zirconcode> yes many tiny methods, but tiny tiny like 2 line tiny
<ljarvis> so yeah what you said the first time epitron
<ljarvis> zirconcode: that's how everyone should write ruby
<epitron> rails likes to decompose everything into 2 line methods
<ljarvis> 3 lines and less per method
<epitron> \o/
<zirconcode> I must have gotten ruby "englightened" =p
<epitron> that might be too DRY to be able to read
<epitron> sometimes the code is a better descriptor than the name of the method
CoreData has quit [Ping timeout: 260 seconds]
<zirconcode> so you can actually go too DRY?
<ljarvis> i agree on a certain level, but in general keep methods that small is a great idea
johnny_rugger has quit [Quit: Textual IRC Client: www.textualapp.com]
<ljarvis> keeping*
<epitron> yeah. you just don't wanna overdo it
<epitron> like every rule, you have to know why it exists, and when to break it
<zirconcode> hmm, wish there were a rule of thumb for that
<ljarvis> there can't be
<ljarvis> because it depends on what you're writing
<epitron> the rule of thumb is to "know why every rule exists, and when to break it"
<epitron> of course, that rule of thumb has to be broken too
sevvie has quit [Read error: Connection reset by peer]
<epitron> there's no way you can know why every rule exists!
<epitron> god so many rules!
arooni-mobile has quit [Ping timeout: 248 seconds]
<zirconcode> is there a good book on this?
albioner has joined #ruby-lang
elia has joined #ruby-lang
albioner has quit [Ping timeout: 240 seconds]
<ljarvis> zirconcode: not really
<ljarvis> not this specifically
<ljarvis> i wouldn't be overly concerned about it
<ljarvis> you'll know when you need to clean up your code
robonerd has joined #ruby-lang
kek has joined #ruby-lang
rwk1 has quit [Remote host closed the connection]
rwk1 has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
albioner has joined #ruby-lang
vbatts has joined #ruby-lang
rwk1 has quit [Ping timeout: 246 seconds]
kek has quit [Ping timeout: 264 seconds]
albioner has quit [Client Quit]
Kabaka has joined #ruby-lang
cnivolle has quit [Read error: Connection reset by peer]
cnivolle has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
ninetyw has joined #ruby-lang
<ninetyw> helo
lun__ has joined #ruby-lang
<zirconcode> ninetyw: hello
<ninetyw> hey is there an equivalent in rb like perl -wT & perldoc cmd?
<ninetyw> tried ri but it says no more info this would mean that
<ninetyw> its simply not there..
relix has joined #ruby-lang
<ninetyw> any suggestions TIA
<yorickpeterse> re tiny methods
<yorickpeterse> NO
<yorickpeterse> that's dumb as hell
<sluukkonen> compressing many methods into one sounds like inlining (but that's generally a thing best left to a compiler)
<yorickpeterse> Doubt it would make much of a difference in Ruby either
charlespeach has joined #ruby-lang
<sluukkonen> (although I'm not sure about what 'compressing' means in this context)
momomomomo has quit [Quit: momomomomo]
Cakey has joined #ruby-lang
judofyr has joined #ruby-lang
<zirconcode> well I'm on the same page now XD
<ninetyw> guess not.. ri class+methods does not return anything to stdout
<ninetyw> not trying to start lang war just trying to know where
<ninetyw> equiv are if any for development. TIA
<judofyr> ninetyw: `ri` should give the same documentation as on http://ruby-doc.org/core-2.0.0/
turnip has quit [Ping timeout: 244 seconds]
Cakey has quit [Ping timeout: 252 seconds]
<ninetyw> && ruby -rdebug __FILE__ does equiv to perl -wT __FILE__
<judofyr> ninetyw: we have no idea what perl -wT does…
pr0ton has joined #ruby-lang
<ninetyw> its nice to quickly tell if you screwed up the class you
<ninetyw> just wrote..:)
<judofyr> -w is warn, -T is?
<ninetyw> T is taint mode
<zirconcode> I guess you could use irb to play around with the class?
<ninetyw> yeah -w is warn .. is nice to know from the compiler
<ninetyw> what is correct or not like ..
<judofyr> you can use `ruby -c __FILE__` to see if the syntax is correct
<judofyr> you can also just `ruby __FILE__` to see if it loads/runs correctly
<ninetyw> /some/path/perl -wT __FILE__ tells me ok thanks!
<judofyr> just use `ruby __FILE__` for Ruby classes. the warnings you get from -w in Ruby isn't that helpful for detecting bugs, and taints aren't used much in Ruby
bruno- has quit [Ping timeout: 246 seconds]
<ninetyw> THX! going to zZZzz
rwk1 has joined #ruby-lang
<ninetyw> forgot to ask this too! Is there an equivalent to CPAN?
<judofyr> RubyGems
<judofyr> it ships with Ruby
<judofyr> `gem install rails` should just work
<judofyr> ninetyw: also: you should use Bundler for managing dependencies inside a project: http://gembundler.com/
<judofyr> ninetyw: it's similar to Carton in Perl (if you've seen it)
rwk1 has quit [Read error: Connection reset by peer]
<ninetyw> i know only one stream allowed! yeah been there.. guess its gonna be a big friend..
rwk1 has joined #ruby-lang
<judofyr> … what?
momomomomo has joined #ruby-lang
dingus_khan has joined #ruby-lang
<ninetyw> kidding..
ldnunes has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
<judofyr> :)
<ninetyw> :)
tenderlove has quit [Remote host closed the connection]
vbatts|work has left #ruby-lang ["MeSoChatty 0.3.8"]
cnivolle has quit [Remote host closed the connection]
benanne has joined #ruby-lang
cnivolle has joined #ruby-lang
vsorlov has quit [Ping timeout: 248 seconds]
havenwood has quit [Ping timeout: 268 seconds]
nisstyre has joined #ruby-lang
VTLob has joined #ruby-lang
thelorax1231 has quit [Remote host closed the connection]
rwk1 has quit [Ping timeout: 252 seconds]
thelorax123 has joined #ruby-lang
CoreData has joined #ruby-lang
lun__ has quit [Ping timeout: 244 seconds]
cnivolle has quit [Ping timeout: 252 seconds]
<yorickpeterse> :)
<judofyr> hi yorickpeterse. how's it going?
<yorickpeterse> <CTO> I think we have another pet project
<yorickpeterse> <me> *another* one?
<yorickpeterse> just another day at the office I guess
<yorickpeterse> judofyr: good good
<yorickpeterse> judofyr: how's science?
<judofyr> yorickpeterse: mathy
<yorickpeterse> I feelz ya bra
havenwood has joined #ruby-lang
nisstyre has quit [Disconnected by services]
lun__ has joined #ruby-lang
nisstyre has joined #ruby-lang
<judofyr> today's challenge: integrate 1/(e^(2x)+4e^x+13)
<judofyr> but I fucked up somewhere :(
solars has quit [Ping timeout: 272 seconds]
cnivolle has joined #ruby-lang
bruno- has joined #ruby-lang
<yorickpeterse> >> 1/(e^(2x)+4e^x+13)
<eval-in> yorickpeterse => /tmp/execpad-f899177992c4/source-f899177992c4:2: syntax error, unexpected tIDENTIFIER, expecting ')' ... (https://eval.in/68236)
<yorickpeterse> bah
charlespeach has left #ruby-lang [#ruby-lang]
<judofyr> I think SymPy actually can solve it
<yorickpeterse> Hm, I still have some $WORK code to open sauce
<judofyr> nice
<judofyr> I have some $WORK I should do
solars has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
vsorlov has joined #ruby-lang
dingus_khan has quit [Ping timeout: 244 seconds]
symm- has joined #ruby-lang
<yorickpeterse> pfff, slacker
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
kek has joined #ruby-lang
rwk1 has joined #ruby-lang
<ninetyw>
symm- has quit [Quit: Leaving...]
pr0ton has quit [Quit: pr0ton]
jackhammer2022 has joined #ruby-lang
rwk1 has quit [Ping timeout: 246 seconds]
kek has quit [Ping timeout: 272 seconds]
iliketurtles has quit [Quit: zzzzz…..]
vsorlov has quit [Ping timeout: 246 seconds]
symm- has joined #ruby-lang
lmadrigal has joined #ruby-lang
achru has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
<yorickpeterse> ugh, rubygems
<yorickpeterse> doesn't seem to be a way to make this code faster unless I take out RubyGems
<yorickpeterse> which isn't really an option
<judofyr> startup time?
symm- has quit [Read error: No route to host]
symm- has joined #ruby-lang
<judofyr> you can setup the load path yourself
<judofyr> if you know your dependencies
<yorickpeterse> I have some Gems/stdlib stuff that I load, can't fuck around with that
<yorickpeterse> and RubyGems is still loaded no matter what
atrocitas has joined #ruby-lang
<judofyr> but is it loading RubyGems or loading gems under RubyGems that's slow?
vlad_sta_ has joined #ruby-lang
<judofyr> and you can disable rubygems: ruby --disable-gems
<yorickpeterse> loading gems under RubyGems by the looks of it
vlad_starkov has quit [Ping timeout: 244 seconds]
<yorickpeterse> ruby-lints min bootup time is around 250 ms, I'd like to get that down by 100ms or so
<yorickpeterse> but it looks that that will be impossible
<yorickpeterse> * like that
ecnalyr has quit [Ping timeout: 245 seconds]
bahar has quit [Ping timeout: 252 seconds]
mistym is now known as mistym_lunch
atrocitas has quit [Remote host closed the connection]
michael_mbp is now known as zz_michael_mbp
benwoody has quit [Quit: benwoody]
yfeldblum has quit [Remote host closed the connection]
zirconcode has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby-lang
bahar has joined #ruby-lang
atrocitas has joined #ruby-lang
achru has quit []
pr0ton has joined #ruby-lang
mistym has joined #ruby-lang
bahar has quit [Ping timeout: 268 seconds]
bahar has joined #ruby-lang
<judofyr> yorickpeterse: http://hastebin.com/habobefeda.txt
yfeldblum has joined #ruby-lang
<judofyr> yorickpeterse: http://hastebin.com/durihuyevi.rb
<judofyr> yorickpeterse: that's probably the fastest way you can load gems
yfeldblu_ has joined #ruby-lang
<judofyr> although it has to be generated for single installation
<yorickpeterse> hm
alekst has joined #ruby-lang
<yorickpeterse> also lol for ruby-prof and perftools.rb giving different profiling results
<yorickpeterse> very helpful
<judofyr> you could also compare with `bundle exec …`
CoreData has quit [Ping timeout: 248 seconds]
<judofyr> that might speed things up
<judofyr> (or not)
cnivolle has quit []
Coincide_ has quit [Remote host closed the connection]
Coincidental has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
<yorickpeterse> this is a Gem, so bundle exec wouldn't help
havenwood has quit [Remote host closed the connection]
MaddinXx_ has joined #ruby-lang
mikecmpbll has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
bahar has quit [Changing host]
bahar has joined #ruby-lang
SteveBenner9 has joined #ruby-lang
loincloth has quit [Remote host closed the connection]
<yorickpeterse> well, lets see if I first can get rid of some file/disk ops, since I am pretty blunt on the use of Dir.glob
vladgh has joined #ruby-lang
Coincidental has quit [Ping timeout: 244 seconds]
<judofyr> yorickpeterse: hm. also: Kernel#gem_original_require is the Kernel#require that ships with Ruby. so you can't optimize that any further.
MaddinXx_ has quit [Ping timeout: 246 seconds]
loincloth has joined #ruby-lang
<yorickpeterse> yeah
Oloryn_lt2 has quit [Read error: Connection reset by peer]
vladgh has quit [Ping timeout: 260 seconds]
Coincidental has joined #ruby-lang
macmartine has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 244 seconds]
macmartine has joined #ruby-lang
<judofyr> yorickpeterse: I wonder if it's possible to build a C-extension that includes all of the source files compiled to bytecode already
kurko__ has joined #ruby-lang
ecnalyr has joined #ruby-lang
<judofyr> and then hook into require and require_relative to load the bundled bytecode
<judofyr> instead of doing file ops
kurko_ has quit [Ping timeout: 246 seconds]
lun__ has quit [Remote host closed the connection]
lun__ has joined #ruby-lang
charliesome has joined #ruby-lang
<charliesome> judofyr: i've done this
<judofyr> charliesome: IRCing from ~root?
iliketurtles has joined #ruby-lang
<judofyr> that sounds hardcode
<judofyr> "22:38 charliesome has joined (~root@GITHUB-INC.bar1.SanFrancisco1.Level3.net)"
<judofyr> charliesome: oh. cool. did it work?
Oloryn_lt2 has joined #ruby-lang
<charliesome> judofyr: yep
<judofyr> did it speed up things?
macmartine has quit [Remote host closed the connection]
<charliesome> very well
<charliesome> wasn't doing it for the perf
tenderlove has joined #ruby-lang
macmartine has joined #ruby-lang
<charliesome> but it works
<ddfreyne> I always run my IRC client in kernel space
<judofyr> for creating a single binary?
<charliesome> judofyr: I haven't tried that
<charliesome> but it would be worthwhile i think
<judofyr> charliesome: then why did you do it? :S
<charliesome> compile all bytecode into a single thing
<charliesome> patch require to hit up precompiled bytecode first
<judofyr> I was thinking doing it mostly for perf
<judofyr> and integrating it with Bundler
<charliesome> it'd be interesting
rwk1 has joined #ruby-lang
nigerianceo has quit []
kek has joined #ruby-lang
<judofyr> e.g: `bundle bigbundle` will create a big bundle with all gems. together with the SHA1 of the lockfile so it updates correctly.
<yorickpeterse> omg static binaries
<ddfreyne> I like big bundles and I cannot lie
lun__ has quit [Ping timeout: 252 seconds]
<judofyr> you won't get static binaries for free though
<judofyr> many gems load static files as well (templates)
<judofyr> so you'll have to hook File#open and friends as well
Oloryn_lt2 has quit [Read error: Connection reset by peer]
<judofyr> (or maybe you can do it on the C-level)
Oloryn_lt2 has joined #ruby-lang
<judofyr> but for `bundle bigbundle` it should be fine. you'll get a big bundle that will also access the installed gems.
<judofyr> charliesome: isn't there a private method for loading iseq?
<judofyr> or was that only Array-to-ISEQ
<judofyr> yeah, I think I'm thinking about the array-to-iseq now
<judofyr> but I imagine loading an iseq would be rather trivial? except for the "private API" part?
<judofyr> anyway, gotta go
<judofyr> I'll catch up on irclog later
judofyr has quit []
nigerianceo has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
rwk1 has quit [Ping timeout: 246 seconds]
kek has quit [Ping timeout: 252 seconds]
mistym_ has joined #ruby-lang
<charliesome> judofyr: rb_iseq_load
<charliesome> it loads the result of RubyVM::InstructionSequence#to_a
<charliesome> and it actually works well
<charliesome> the reason it's not exposed through to rubyland is that there's no verifier yet
mistym has quit [Ping timeout: 264 seconds]
crankharder has quit [Ping timeout: 252 seconds]
musty has joined #ruby-lang
Oloryn_lt2 has quit [Read error: Connection reset by peer]
nisstyre has quit [Quit: Leaving]
benwoody has joined #ruby-lang
cored has quit [Ping timeout: 264 seconds]
<yorickpeterse> HAHA WHAT THE FUCK
<yorickpeterse> using String#include? vs a regexp is almost 2x faster
<yorickpeterse> (combined with caching results of Dir.glob)
<yorickpeterse> lets see if my benchmark confirms this
benwoody has quit [Client Quit]
<lianj> yorickpeterse: well, what did you expect
<yorickpeterse> Actually I expected String#include? to be in the similar performance area
<lianj> strcmp vs regexp
<yorickpeterse> So for 100 iterations it used to take 1,347707s average, using a Dir.glob cache + regexp turned this into 1,695873s
<yorickpeterse> using String#include? this is....
<yorickpeterse> gah wtf, 1.661909s
<yorickpeterse> though the maximum is way lower
* yorickpeterse cranks out gnuplot
kurko_ has joined #ruby-lang
<charliesome> yorickpeterse: who would've thought that powerful general purpose tools are slower than a highly specific tool
<yorickpeterse> hmmm...I can taste the smugness in this channel
nXqd has joined #ruby-lang
kurko__ has quit [Ping timeout: 264 seconds]
rickhull1 has joined #ruby-lang
nXqd has quit [Ping timeout: 264 seconds]
thang has joined #ruby-lang
<charliesome> lol
jackhammer2022 has quit [Quit: Computer has gone to sleep.]
slyphon has quit [Ping timeout: 272 seconds]
<yorickpeterse> hm dang it, seems spamming the disk with Dir.globs is still faster
mistym_ has quit [Remote host closed the connection]
<whitequark> disk cache is a thing
kurko__ has joined #ruby-lang
albioner has joined #ruby-lang
tenderlove has quit [Ping timeout: 272 seconds]
atrocitas has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 260 seconds]
<yorickpeterse> oh neat, got it down to 1,153285s
<yorickpeterse> (by using a different cache setup)
guns has quit [Quit: guns]
thelorax123 has quit [Remote host closed the connection]
<yorickpeterse> oh heh, found another glob
thelorax123 has joined #ruby-lang
dorei has joined #ruby-lang
dingus_khan has joined #ruby-lang
epichero has joined #ruby-lang
tenderlove has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
dingus_khan has joined #ruby-lang
RickHull has quit [Quit: Leaving.]
mistym_lunch is now known as mistym
dingus_k_ has joined #ruby-lang
dingus_khan has quit [Read error: Connection reset by peer]
<yorickpeterse> dayum, there goes 440ms
ikrima has quit [Quit: Computer has gone to sleep.]
momomomomo has joined #ruby-lang
vlad_starkov has joined #ruby-lang
cored has joined #ruby-lang
iliketurtles has quit [Quit: zzzzz…..]
epichero has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
vlad_sta_ has quit [Ping timeout: 244 seconds]
MaddinXx_ has joined #ruby-lang
MaddinXx_ has quit [Remote host closed the connection]
__butch__ has quit [Quit: Leaving.]
__butch__ has joined #ruby-lang
macmartine has quit [Remote host closed the connection]
iliketurtles has joined #ruby-lang
rwk1 has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
vlad_sta_ has joined #ruby-lang
kek has joined #ruby-lang
pw3 has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 252 seconds]
rwk1 has quit [Ping timeout: 264 seconds]
kek has quit [Ping timeout: 260 seconds]
lmadrigal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_sta_ has quit [Remote host closed the connection]
VTLob has quit [Quit: VTLob]
itsraining has quit [Quit: itsraining]
lmadrigal has joined #ruby-lang
Raycaster has quit [Quit: Leaving.]
pw3 has quit [Quit: Page closed]
yfeldblu_ has quit [Remote host closed the connection]
Coincidental has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
Coincidental has joined #ruby-lang
turnip has joined #ruby-lang
mdedetrich has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
mdedetrich has quit [Client Quit]
Coincidental has quit [Ping timeout: 268 seconds]
jxpx777 has joined #ruby-lang
dingus_k_ has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
MrZYX is now known as MrZYX|off
datanoise has quit [Ping timeout: 272 seconds]
Coincidental has joined #ruby-lang
bf4_ has joined #ruby-lang
itsraining has joined #ruby-lang
micalexander has quit []
bf4 has quit [Ping timeout: 260 seconds]
bjh13 has quit [Quit: leaving]
nathanstitt has quit [Quit: I growing sleepy]
bf4_ has quit [Ping timeout: 246 seconds]
dbck_ has joined #ruby-lang
charlespeach has joined #ruby-lang
benwoody has joined #ruby-lang
Tearan has joined #ruby-lang
albioner has quit [Quit: Laptop went to sleep. ZZZzzz…]
charlespeach has quit [Client Quit]
loincloth has quit [Remote host closed the connection]
kitak has joined #ruby-lang
vlad_starkov has joined #ruby-lang
dbck_ has quit [Quit: Bye bye.]
dbck has joined #ruby-lang
nigerianceo has quit []
earthquake has joined #ruby-lang
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #ruby-lang
dbck has quit [Client Quit]
dingus_khan has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
dingus_khan has joined #ruby-lang
retro|cz has joined #ruby-lang
charlespeach has joined #ruby-lang
cored has quit [Ping timeout: 272 seconds]
Oloryn_lt2 has joined #ruby-lang
breakingthings has quit []
macmartine has joined #ruby-lang
hogeo has quit [Ping timeout: 248 seconds]
dingus_khan has quit [Read error: Connection reset by peer]
dingus_khan has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
itsraining has quit [Quit: itsraining]
yfeldblum has joined #ruby-lang
joschi has quit [Read error: Operation timed out]
joschi has joined #ruby-lang
kurko__ has quit [Ping timeout: 272 seconds]
lun__ has joined #ruby-lang
datanoise has joined #ruby-lang
pothibo has joined #ruby-lang
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rwk1 has joined #ruby-lang
earthquake has quit [Quit: earthquake]
lun__ has quit [Ping timeout: 264 seconds]
lmadrigal has quit [Quit: Computer has gone to sleep.]
kek has joined #ruby-lang
dingus_khan has quit [Remote host closed the connection]
lupine has quit [Quit: If you see this, my dogfood was poisoned]
dingus_khan has joined #ruby-lang
kurko_ has joined #ruby-lang
rwk1 has quit [Ping timeout: 251 seconds]
yfeldblu_ has joined #ruby-lang
kek has quit [Ping timeout: 265 seconds]
dingus_khan has quit [Ping timeout: 252 seconds]
bradsmith has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
snafoo has quit [Ping timeout: 272 seconds]
bradsmith has joined #ruby-lang
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby-lang
Tearan has quit [Quit: Sleepy Badger....]
Onixs has quit [Max SendQ exceeded]
Onixs has joined #ruby-lang
Onixs has quit [Max SendQ exceeded]
Onixs has joined #ruby-lang
yfeldblum has quit [Ping timeout: 272 seconds]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
Onixs has quit [Max SendQ exceeded]
Onixs has joined #ruby-lang
Onixs has quit [Max SendQ exceeded]
Onixs has joined #ruby-lang
Onixs has quit [Max SendQ exceeded]
zz_michael_mbp is now known as michael_mbp
Onixs has joined #ruby-lang
solars has quit [Quit: WeeChat 0.4.1]
bradsmith has quit [Ping timeout: 252 seconds]
Onixs has quit [Max SendQ exceeded]
nisstyre has joined #ruby-lang
tenderlo_ has joined #ruby-lang
Onixs has joined #ruby-lang
macmartine has quit [Ping timeout: 252 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
cored has quit [Ping timeout: 252 seconds]
tenderlove has quit [Ping timeout: 264 seconds]
Raycaster has joined #ruby-lang
nisstyre has quit [Ping timeout: 244 seconds]