Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_rhizo3 has joined #ruby
cpruitt has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
Pumukel has joined #ruby
nitric has quit [Ping timeout: 264 seconds]
the_rhizo3 has quit [Ping timeout: 264 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Elvin has joined #ruby
Elvin has quit [Client Quit]
davedev24 has quit []
ramfjord has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
Elvin has joined #ruby
Pumukel has joined #ruby
Spami has joined #ruby
blackmesa has joined #ruby
Amaterasu has quit [Quit: Leaving]
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
flashpoint9 has joined #ruby
<soahccc>
Is there anything beyond STDOUT.sync and socket.flush that my prints won't arrive until there is a newline?
TomyLobo has quit [Disconnected by services]
lrgtesbyozacmgot has joined #ruby
lrgtesbyozacmgot is now known as udggrwoklziymxzx
udggrwoklziymxzx is now known as TomyLobo
Pumukel has quit [Ping timeout: 264 seconds]
cpruitt has quit [Ping timeout: 265 seconds]
Guest16777 is now known as saneax_AFK
Pumukel has joined #ruby
soLucien has quit [Ping timeout: 250 seconds]
<eam>
soahccc: maybe. Are you printing to a file?
skade has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
the_rhizo3 has joined #ruby
<eam>
you mention a socket?
pandaant has joined #ruby
wolves_cs has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<sqljunkey>
I have an array ["1","2","3"] is there a command to push the number "4" in the array and simulatanously pop the number "1" out of the array so I'm left with ["2","3","4"] I tried with push and pop but push and pop take elements out from the same side.
cpruitt has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
<eam>
sqljunkey: shift and unshift are the opposing versions of push and pop
<sqljunkey>
ok
ebbflowgo has quit [Quit: ebbflowgo]
<sqljunkey>
so push and then shift
<sqljunkey>
sounds like a dance thing
Pumukel has quit [Ping timeout: 264 seconds]
crdpink has joined #ruby
Pumukel has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
crystal77 has quit [Ping timeout: 250 seconds]
cdg has quit [Remote host closed the connection]
nankyokusei has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
airdisa has quit []
symm- has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
ebbflowgo has joined #ruby
ebbflowgo has left #ruby [#ruby]
rgiscard has joined #ruby
Ropeney has joined #ruby
dling has joined #ruby
tdw has joined #ruby
Fly77 has joined #ruby
cdg has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
nankyokusei has quit [Ping timeout: 276 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
Rodya_ has joined #ruby
<matthewd>
sqljunkey: There's also Queue, though that's primarily intended as a tool for working with threads
Pumukel has joined #ruby
rgiscard has quit [Quit: Gone fishing]
flashpoint9 has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
A_Drone has joined #ruby
Pumukel has joined #ruby
craigp has quit [Ping timeout: 276 seconds]
pieperloy_ has quit [Quit: Page closed]
flashpoint9 has quit [Remote host closed the connection]
flashpoint9 has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
beilabs has joined #ruby
Pumukel has joined #ruby
quakephil has quit [Ping timeout: 244 seconds]
Akuma has quit [Quit: So long sukkas!]
Spami has quit [Quit: This computer has gone to sleep]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nahra has quit [Read error: Connection reset by peer]
Nahra has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
Pumukel has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
Pumukel has joined #ruby
GodFather has joined #ruby
Moblin has joined #ruby
Ebok has quit [Read error: Connection reset by peer]
flashpoint9 has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
hahuang61 has quit [Ping timeout: 258 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
blackmesa has quit [Ping timeout: 258 seconds]
Pumukel has joined #ruby
saneax_AFK is now known as saneax
saneax is now known as Guest58735
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
boshhead has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.5]
hutch34 has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<boshhead>
If I have a class with an "each" method that yields each element of an array, is there a simple way to get the entire array? (Without doing myobj.each { |obj| push... } ?
<boshhead>
Or just a sexy one-line i guess is what I'm asking for
<jgnagy_>
hmmm, that depends on what you mean by "the entire array"
<jgnagy_>
if it is an Array class, then call the #to_a or #dup methods
<matthewd>
boshhead: If it implements #each, it "should" include Enumerable, which has a #to_a
Pumukel has quit [Ping timeout: 264 seconds]
<boshhead>
matthewd, jgnagy_: thanks ill try that
Pumukel has joined #ruby
al2o3-cr has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
<boshhead>
matthewd, jgnagy_: that works. now what if i had another each method on the class, like "each_foo", can I do something similar? to_a wouldnt work cuz it would use the default each
etehtsea has joined #ruby
<matthewd>
my_obj.to_enum(:each_foo).to_a
<boshhead>
matthewd: perfect! thank you
<matthewd>
(or, if each_foo is being nice, my_obj.each_foo.to_a)
Guest58735 is now known as saneax_AFK
qguv has quit [Ping timeout: 252 seconds]
flashpoint9 has quit [Remote host closed the connection]
<boshhead>
matthewd: thanks the first one worked, i guess my class is not implementing 'each_foo' as well as it could be
flashpoint9 has joined #ruby
<boshhead>
second one didnt work
Pumukel has quit [Ping timeout: 260 seconds]
<jgnagy_>
what is the output of object.each_foo.class
qguv has joined #ruby
<boshhead>
jgnagy_: an error: `block in each_commander': no block given (yield) (LocalJumpError)
Pumukel has joined #ruby
nando293921 has joined #ruby
<jgnagy_>
ah, so your method requires a block
<sqljunkey>
I'm running my ruby script with irb. but it doesn't find syntax errors or undefined variables until it's running, is there a way to run my script to that it will find these errors before my application runs?
<boshhead>
def each; @members.each { |_, member| } yield member }; end and def each_commander; each { |member| yield member if member.commander }
<boshhead>
those are my methods
<matthewd>
Yeah, so it could start with: return to_enum(__method__, any, method, arguments, go, here) unless block_given?
<boshhead>
matthewd: interesting, thank you!
flashpoi_ has joined #ruby
<jgnagy_>
sqljunkey: it sounds like you're looking for rubocop maybe?
<boshhead>
jgnagy_: with that trick, it now says "Enumerator"
mixtli has quit [Ping timeout: 244 seconds]
<matthewd>
boshhead: So you can now treat that result as an enumerable, acting on each_commander instead of each
flashpoint9 has quit [Ping timeout: 250 seconds]
<matthewd>
== you get to_a, but also map, select, etc.
<jgnagy_>
so now matthewd's second option will work
tlaxkit has quit [Quit: ¡Adiós!]
<sqljunkey>
rubocop? just do rubocop sample.rb
<sqljunkey>
?
<boshhead>
jgnagy_, matthewd: yup, thanks a bunch! :)
<jhass>
indistylo: did you read the readme of the repo you linked?
ta__ has joined #ruby
<indistylo>
jhass: Yes, but unable to understand, can you make me understand? kindly please elaborate
<jhass>
it chooses a random value between the two and kills the unicorn worker if it consumes more memory (RSS to be precise) than that randomly chosen value
LebedevRI has joined #ruby
<jhass>
so in your example a random value between 192M and 256M of RSS memory used
Diabolik has quit [Excess Flood]
<indistylo>
jhass: Ok I understood, thanks for putting in very simplified words
A_Drone_ has joined #ruby
<LebedevRI>
hi. is there any recommended formatting for ruby scripts, is there something like python's pep8?
A_Drone_ has quit [Remote host closed the connection]
<jhass>
the second one is the most popular having a tool (called rubocop) to enforce it
<jhass>
though many people deviate from some defaults
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<LebedevRI>
oh, why did my google search failed to find that?
ta__ has quit [Ping timeout: 250 seconds]
<jhass>
oh
<jhass>
?crosspost indistylo
<ruby[bot]>
indistylo: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
<LebedevRI>
jhass: thanks, that mostly answered it for me
<jhass>
yw
alxgsv has joined #ruby
unforgiven512 has joined #ruby
marr has quit [Ping timeout: 260 seconds]
<LebedevRI>
and one more question: is there something like http://cast.rubyforge.org, but more alive, maybe?
<jhass>
mh, my first intuition would be too look out for a libclang binding
<LebedevRI>
that is what i thought too, but is there one?
<LebedevRI>
jhass: hm, seems to at least output something, so i guess i can make it to work, thank you
<jhass>
cool, hf
jeanlinux has quit [Remote host closed the connection]
craigp has quit [Ping timeout: 240 seconds]
mooru has joined #ruby
craigp has joined #ruby
blackmesa has joined #ruby
jaruga___ has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
bl4ckdu5t has joined #ruby
johnny56 has quit [Remote host closed the connection]
lightheaded has quit [Remote host closed the connection]
jaruga____ has joined #ruby
jaruga___ has quit [Ping timeout: 250 seconds]
jaruga____ is now known as jaruga___
moeabdol has joined #ruby
johnny56 has joined #ruby
vuoto_ has joined #ruby
Hyuk has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
edwinvdg_ has quit [Ping timeout: 250 seconds]
vuoto_ has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
stamina has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
lightheaded has joined #ruby
Snowy has joined #ruby
johnmilton has joined #ruby
vuoto has quit [Remote host closed the connection]
edwinvdg_ has joined #ruby
vuoto has joined #ruby
vuoto_ has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto_ has quit [Remote host closed the connection]
vuoto has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
mixtli has joined #ruby
johnmilton has quit [Ping timeout: 240 seconds]
jeanlinux has joined #ruby
mixtli has quit [Ping timeout: 264 seconds]
edwinvdg_ has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
vuoto has quit [Remote host closed the connection]
mooru has quit [Ping timeout: 264 seconds]
vuoto has joined #ruby
Pumukel has joined #ruby
tvw has joined #ruby
DaniG2k has joined #ruby
<DaniG2k>
hello folks
loechel has joined #ruby
anisha has quit [Quit: Leaving]
[huypn12] has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
A_Drone has quit [Remote host closed the connection]
Pumukel has joined #ruby
marr has joined #ruby
Pumukel_ has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
anisha has joined #ruby
giz|work has joined #ruby
loechel has joined #ruby
mooru has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
<hanmac>
jhass: hey what was the command to say to a user to check their internet connection (because of Ping Timeout ?)
Pumukel_ has quit [Ping timeout: 260 seconds]
pandaant has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
Pumukel_ has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
stan has quit [Ping timeout: 244 seconds]
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
ICantCook has joined #ruby
Pumukel_ has quit [Ping timeout: 260 seconds]
<jhass>
mtr?
loechel has joined #ruby
vuoto_ has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
vuoto has quit [Remote host closed the connection]
vuoto_ has quit [Remote host closed the connection]
vuoto has joined #ruby
Pumukel_ has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
ta__ has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
blackmesa has joined #ruby
Pumukel has joined #ruby
Pumukel_ has quit [Ping timeout: 260 seconds]
ta__ has quit [Ping timeout: 276 seconds]
loechel has joined #ruby
blackgoat has joined #ruby
PalaHO has joined #ruby
Pumukel_ has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
astrobun_ has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 265 seconds]
Pumukel has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
the_drow has joined #ruby
elaptics has joined #ruby
loechel has joined #ruby
Pumukel_ has quit [Ping timeout: 260 seconds]
Pumukel_ has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
loechel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
Pumukel_ has quit [Ping timeout: 264 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
jeanlinux has quit [Ping timeout: 265 seconds]
GodFather has joined #ruby
Pumukel has joined #ruby
okrasi1 has joined #ruby
<PalaHO>
clea
loechel has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
Pumukel_ has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
DaniG2k has quit [Quit: leaving]
Pumukel has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
rodfersou has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
okrasi1 is now known as okrasi
okrasi is now known as okrasi1
okrasi1 has quit [Quit: Konversation terminated!]
loechel has joined #ruby
Pumukel_ has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
colegatron has joined #ruby
Pumukel_ has joined #ruby
last_staff has quit [Ping timeout: 258 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
<LebedevRI>
hmm, after fiddling with ffi-clang, i wonder if there is some simpler way to interpret c structure into some ruby datatype other than manually parsing AST...
EdwardIII has quit [Ping timeout: 258 seconds]
Pumukel has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
okrasi has joined #ruby
Pumukel_ has quit [Ping timeout: 264 seconds]
loechel has joined #ruby
okrasi has quit [Client Quit]
<jhass>
can't ffi itself not do it actually?
Pumukel has quit [Ping timeout: 260 seconds]
edwinvdgraaf has quit [Ping timeout: 250 seconds]
giz|work has quit [Ping timeout: 252 seconds]
<LebedevRI>
i don't know yet, first time working with ffi
Pumukel has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
hanmac has quit [Ping timeout: 258 seconds]
sdothum has joined #ruby
loechel has joined #ruby
nankyokusei has joined #ruby
Pumukel_ has joined #ruby
okrasi has joined #ruby
<jhass>
your goal is to do a ruby binding to something?
okrasi is now known as okrasi1
Pumukel has quit [Ping timeout: 264 seconds]
ItSANgo has quit [Quit: Leaving...]
edwinvdg_ has joined #ruby
okrasi1 is now known as okrasi
hopsoft has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<LebedevRI>
i guess i'll try to manually parse it using split, might be simpler, but may fail
Pumukel_ has quit [Ping timeout: 264 seconds]
loechel has joined #ruby
loechel has quit [Remote host closed the connection]
Rodya_ has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
loechel has joined #ruby
okrasi is now known as okrasi_
okrasi_ is now known as okrasi
redasus has joined #ruby
redasus has quit [Max SendQ exceeded]
rodfersou has quit [Ping timeout: 265 seconds]
Pumukel has joined #ruby
redasus has joined #ruby
redasus has quit [Max SendQ exceeded]
redasus has joined #ruby
redasus has quit [Max SendQ exceeded]
lel has quit [Read error: Connection reset by peer]
EdwardIII has joined #ruby
hanmac has joined #ruby
Pumukel_ has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
rodfersou has joined #ruby
okrasi_ has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
banisterfiend has joined #ruby
loechel has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
TheWhip has quit [Remote host closed the connection]
last_staff has joined #ruby
TheWhip has joined #ruby
lel has joined #ruby
Pumukel_ has quit [Ping timeout: 264 seconds]
patricknegri has joined #ruby
blackmesa has joined #ruby
okrasi has quit [Quit: Konversation terminated!]
Pumukel has joined #ruby
okrasi_ is now known as okrasi
<apeiros>
LebedevRI: in a good editor you can simply block-edit the whole thing and have what you want in probably less than a minute converted in ruby code.
<patricknegri>
Hey guys. Any1 can help me with this? How do I find which Gem/file is causing a specific output in a big project? I have an app that is printing "Type text/plain already registered as a variant of text/plain." before each execution.
conta has quit [Read error: Connection reset by peer]
loechel has quit [Ping timeout: 264 seconds]
<apeiros>
that sounds like mime-type gem
the_drow has joined #ruby
quiqua has joined #ruby
loechel has joined #ruby
conta has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel_ has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
edwinvdg_ has quit [Ping timeout: 258 seconds]
GodFather has quit [Ping timeout: 258 seconds]
loechel has quit [Ping timeout: 260 seconds]
Pumukel_ has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
lightheaded has quit [Ping timeout: 265 seconds]
lheaded has joined #ruby
PalaHO has quit [Ping timeout: 264 seconds]
PalaHO has joined #ruby
mooru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
craigp has quit [Ping timeout: 250 seconds]
loechel has joined #ruby
mooru has joined #ruby
blackmesa has joined #ruby
fmcgeough has joined #ruby
ItSANgo has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
Pumukel_ has joined #ruby
sepp2k has joined #ruby
edwinvdgraaf has joined #ruby
etehtsea has joined #ruby
Pumukel has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
edwinvdg_ has joined #ruby
PalaHO has quit [Ping timeout: 276 seconds]
mim1k has quit [Ping timeout: 250 seconds]
loechel has joined #ruby
lheaded has quit [Remote host closed the connection]
Pumukel_ has quit [Ping timeout: 264 seconds]
lightheaded has joined #ruby
jeanlinux has joined #ruby
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
Pumukel_ has joined #ruby
edwinvdgraaf has quit [Ping timeout: 276 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
airdisa has joined #ruby
ldnunes has joined #ruby
Pumukel has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
etehtsea has quit [Ping timeout: 244 seconds]
snguyen has joined #ruby
loechel has joined #ruby
cek has left #ruby [#ruby]
Pumukel_ has quit [Ping timeout: 260 seconds]
jrafanie has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
johnmilton has joined #ruby
Pumukel has joined #ruby
mim1k has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
loechel has joined #ruby
Guest93616 has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
quiqua_ has joined #ruby
Guest93616 has joined #ruby
snguyen is now known as sevens
sevens is now known as scotticorn
Pumukel has quit [Ping timeout: 264 seconds]
A_Drone has joined #ruby
symm- has joined #ruby
johnmilton has quit [Ping timeout: 264 seconds]
loechel has quit [Read error: Connection reset by peer]
quiqua has quit [Ping timeout: 276 seconds]
johnmilton has joined #ruby
Pumukel has joined #ruby
Burgestrand has joined #ruby
ferr has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
Ebok has quit [Quit: This computer has gone to sleep]
pawnbox has quit [Remote host closed the connection]
sameerynho has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
lupine has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
Pumukel_ has joined #ruby
lxsameer has quit [Ping timeout: 258 seconds]
loechel has quit [Ping timeout: 264 seconds]
byteflame has joined #ruby
edwinvdg_ has quit [Ping timeout: 276 seconds]
loechel has joined #ruby
Nahra` has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
Pumukel has quit [Ping timeout: 264 seconds]
mooru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
symm- has quit [Ping timeout: 276 seconds]
tfitts has quit [Quit: Connection closed for inactivity]
mooru has joined #ruby
mooru has quit [Client Quit]
Pumukel has joined #ruby
byteflame has quit [Remote host closed the connection]
Nahra has joined #ruby
edwinvdgraaf has joined #ruby
Pumukel_ has quit [Ping timeout: 264 seconds]
lightheaded has quit [Remote host closed the connection]
Pumukel_ has joined #ruby
sujith has quit [Remote host closed the connection]
lightheaded has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
flashpoint9 has quit [Remote host closed the connection]
Guest93616 has quit [Ping timeout: 250 seconds]
Guest93616 has joined #ruby
flashpoint9 has joined #ruby
Guest16036 is now known as saneax_AFK
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
jrafanie has joined #ruby
Pumukel has quit [Remote host closed the connection]
ramortegui has joined #ruby
ChiefAlexander has joined #ruby
Pumukel has joined #ruby
Pumukel_ has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 260 seconds]
loechel has joined #ruby
tulak has joined #ruby
Pumukel_ has joined #ruby
alfiemax has quit [Ping timeout: 250 seconds]
the_drow has joined #ruby
Pumukel__ has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
lxsameer_ has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
quiqua has joined #ruby
moeabdol has joined #ruby
Pumukel_ has quit [Ping timeout: 260 seconds]
Guest93616 has quit [Ping timeout: 260 seconds]
loechel has joined #ruby
Guest93616 has joined #ruby
kp666 has quit [Ping timeout: 244 seconds]
okrasi has quit [Quit: Konversation terminated!]
Pumukel__ has quit [Ping timeout: 260 seconds]
anuxivm has left #ruby [#ruby]
quiqua_ has quit [Ping timeout: 244 seconds]
tlaxkit has quit [Quit: tlaxkit]
sameerynho has quit [Ping timeout: 244 seconds]
Pumukel_ has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
Guest93616 has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
Guest93616 has joined #ruby
symm- has joined #ruby
bl4ckdu51 has joined #ruby
loechel has joined #ruby
Derperperd has joined #ruby
bl4ckdu5t has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
threedee has joined #ruby
Rodya_ has joined #ruby
lxsameer__ has joined #ruby
swills has joined #ruby
Pumukel_ has quit [Ping timeout: 264 seconds]
Pumukel__ has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
banisterfiend has quit [Ping timeout: 240 seconds]
lxsameer_ has quit [Ping timeout: 244 seconds]
tulak has quit []
aupadhye has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
bl4ckdu51 has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
pmyjavec has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
Snowy has quit [Remote host closed the connection]
loechel has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
Pumukel__ has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
Guest93616 has quit [Ping timeout: 244 seconds]
bl4ckdu5t has joined #ruby
bl4ckdu5t is now known as Guest22619
Macaveli has joined #ruby
Guest93616 has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
last_staff has quit [Quit: last_staff]
nankyokusei has quit [Ping timeout: 250 seconds]
loechel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
vdamewood has quit [Quit: Life beckons.]
loechel has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
Pumukel_ has joined #ruby
TheWhip has quit [Remote host closed the connection]
beilabs has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
Guest38 has joined #ruby
malconis has joined #ruby
Pumukel has joined #ruby
tyang has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
loechel has joined #ruby
jespada has quit [Ping timeout: 276 seconds]
Pumukel__ has joined #ruby
Pumukel_ has quit [Ping timeout: 264 seconds]
Pumukel_ has joined #ruby
nettoweb has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
bweston92 has quit [Read error: Connection reset by peer]
lightheaded has quit [Remote host closed the connection]
loechel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
airdisa_ has joined #ruby
Pumukel__ has quit [Ping timeout: 264 seconds]
reednj has left #ruby ["WeeChat 1.5"]
tvw has quit [Remote host closed the connection]
Pumukel_ has quit [Ping timeout: 264 seconds]
loechel has joined #ruby
Guest93616 has quit [Ping timeout: 244 seconds]
airdisa has quit [Ping timeout: 244 seconds]
jespada has joined #ruby
synthroid has quit [Remote host closed the connection]
blandflakes has joined #ruby
Guest93616 has joined #ruby
kp666 has joined #ruby
Pumukel_ has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
lightheaded has joined #ruby
azor has quit [Quit: Connection closed for inactivity]
loechel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
Nahra has quit [Ping timeout: 244 seconds]
loechel has joined #ruby
Pumukel_ has quit [Ping timeout: 260 seconds]
acovrig has joined #ruby
jhodge521 has joined #ruby
Pumukel_ has joined #ruby
crankharder has quit [Quit: leaving]
Pumukel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
GinoManWorks has quit [Ping timeout: 250 seconds]
loechel has quit [Ping timeout: 260 seconds]
loechel has joined #ruby
craigp has joined #ruby
GinoManWorks has joined #ruby
infra-red has quit [Read error: Connection reset by peer]
Torrone has joined #ruby
the_rhizo3 has joined #ruby
infra-red has joined #ruby
lightheaded has quit [Remote host closed the connection]
Pumukel_ has quit [Ping timeout: 260 seconds]
Pumukel_ has joined #ruby
GinoManWorks has quit [Read error: Connection reset by peer]
<acovrig>
I’m creating a multi-dimention array in a loop: answers[quiz][question]; I have to have answers[quiz] ||= [] or I get nil errors, however then I get answers[quiz][question][0] = nil, how can I create the array w/out the nil value?
Spami has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
<Burgestrand>
acovrig can you show a small example of your code?
<Burgestrand>
acovrig e.g. on eval.in
Rodya_ has joined #ruby
Torrone has quit [Client Quit]
<Burgestrand>
acovrig what you've described should not create arrays with nil-values, so it's somewhere in your code
banisterfiend has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
Pumukel has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
symm- has quit [Ping timeout: 265 seconds]
jaruga___ has quit [Quit: jaruga___]
loechel has joined #ruby
OTORelic4 has joined #ruby
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pumukel_ has quit [Ping timeout: 260 seconds]
etehtsea has quit [Quit: Computer has gone to sleep.]
crystal77 has joined #ruby
l4v2 has joined #ruby
johnny56 has joined #ruby
Pumukel_ has joined #ruby
beilabs has quit [Remote host closed the connection]
taylorrf has quit [Remote host closed the connection]
taylorrf has joined #ruby
loechel has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
agit0 has joined #ruby
Pumukel has joined #ruby
nettoweb has joined #ruby
rodfersou is now known as rodfersou|lunch
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
mtkd has quit [Ping timeout: 276 seconds]
jeanlinux has joined #ruby
Pumukel_ has joined #ruby
acovrig has quit [Quit: acovrig]
loechel has quit [Ping timeout: 264 seconds]
mtkd has joined #ruby
beilabs has joined #ruby
weemsledeux has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
Pumukel has quit [Ping timeout: 264 seconds]
etehtsea has joined #ruby
Rodya_ has quit [Remote host closed the connection]
craigp has quit [Ping timeout: 244 seconds]
aufi has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
pmyjavec has quit [Ping timeout: 250 seconds]
Pumukel_ has quit [Ping timeout: 264 seconds]
jeanlinux has quit [Ping timeout: 264 seconds]
PalaHO has quit [Ping timeout: 244 seconds]
submitnine has quit []
marr has quit [Read error: Connection reset by peer]
loechel has joined #ruby
vuoto has quit [Remote host closed the connection]
bweston92 has joined #ruby
vuoto has joined #ruby
LurkAshFlake has joined #ruby
Pumukel_ has joined #ruby
Guest86709 is now known as saneax_AFK
PalaHO has joined #ruby
tyang has joined #ruby
alfiemax has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
Torrone has joined #ruby
synthroid has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
Pumukel has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
loechel has joined #ruby
Ishido has quit [Ping timeout: 258 seconds]
ChiefAlexander has joined #ruby
Pumukel_ has quit [Ping timeout: 264 seconds]
Nahra has joined #ruby
rippa has joined #ruby
Pumukel_ has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
EdwardIII has quit [Ping timeout: 250 seconds]
agent_white has quit [Disconnected by services]
mitt3ns is now known as agent_white
tomorrow has joined #ruby
loechel has quit [Ping timeout: 260 seconds]
<agent_white>
Mornin' folks.
mitt3ns has joined #ruby
Pumukel has joined #ruby
cdg has quit [Remote host closed the connection]
jeanlinux has joined #ruby
jeanlinux has quit [Remote host closed the connection]
GodFather has quit [Ping timeout: 265 seconds]
<tomorrow>
Hi. Is it a right place to ask about capybara and phantomjs?
patricknegri has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
edwinvd__ has quit [Read error: Connection reset by peer]
loechel has joined #ruby
Pumukel_ has quit [Ping timeout: 260 seconds]
Guest93616 has quit [Ping timeout: 260 seconds]
edwinvdg_ has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
Guest93616 has joined #ruby
lightheaded has joined #ruby
beilabs has quit [Remote host closed the connection]
beilabs has joined #ruby
banisterfiend has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
TheHodge has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
edwinvdg_ has quit [Ping timeout: 250 seconds]
etetz has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
<mikecmpbll>
tomorrow : #rubyonrails could be more appropriate if that's what you're using
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beilabs has quit [Ping timeout: 258 seconds]
<tomorrow>
mikecmpbll, yep, using RoR mostly, but for this task its not the case.
<mikecmpbll>
ask away.
Ishido has joined #ruby
bad_ip has joined #ruby
VladGh has quit [Remote host closed the connection]
VladGh has joined #ruby
loechel has joined #ruby
johnmilton has quit [Ping timeout: 276 seconds]
Pumukel has quit [Ping timeout: 264 seconds]
VladGh has quit [Remote host closed the connection]
<tomorrow>
Well.. Im trying to get info from remote website with phantomjs and poltergeist, but keep getting empty html in response after button click.
<mikecmpbll>
tomorrow : code
Pumukel has joined #ruby
cschneid_ has joined #ruby
VladGh has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<harfangk>
apeiros so how does 'za' in the second argument work?
<harfangk>
i guess it means to start over from a again
<apeiros>
harfangk: it's two parts: n-z and a-m
beilabs has quit [Ping timeout: 265 seconds]
<apeiros>
and tr expands stuff with - in it. e.g. a-d --> abcd
pwnd_nsfw` is now known as pwnd_nsfw
loechel has joined #ruby
nankyokusei has joined #ruby
<PalaHO>
there is an aquivalence of python getpass lib in ruby ?
<jhass>
PalaHO: $stdin.noecho(&:gets)
<bougyman>
PalaHO: see highline
<jhass>
require "io/console" before
<bougyman>
or that.
Pumukel_ has quit [Ping timeout: 264 seconds]
<jhass>
keep in mind that gets returns the trailing \n
<bougyman>
highline has more than just a getpass, though. if you're doing interactive console apps you'd probably be happy with what highline provides.
<Papierkorb>
the tty-prompt gem also comes with a password input function
flashpoint9 has joined #ruby
synthroid has quit [Remote host closed the connection]
<harfangk>
apeiros so when ruby sees two character ranges put together like that, it understands to merge the ranges?
<jhass>
well, String#tr does
giz|work has joined #ruby
<jhass>
it's not done by the interpreter
<PalaHO>
ok and what are the differences btwn io/console and highline ?
Pumukel_ has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
<jhass>
the latter has a shitload more features, io/console comes with ruby
<jhass>
they aren't excluding each other either
hjhlkds has joined #ruby
<PalaHO>
ok so it's more conventional to use stdin.noecho
nankyokusei has quit [Ping timeout: 244 seconds]
EdwardIII has joined #ruby
<apeiros>
harfangk: no, not ruby. the String#tr method.
Pumukel has joined #ruby
<hjhlkds>
how can i print a value like "\x06" with puts?
<harfangk>
jhass apeiros String#tr calls tr_trans method. I guess it's a C extension? where do i find the docs for that?
<apeiros>
hjhlkds: it's a non-printable character, so you can't
loechel has quit [Ping timeout: 260 seconds]
<apeiros>
hjhlkds: but puts "\x06" will emit it (you just won't see anything)
<apeiros>
well, except for the newline which puts appends to all strings.
<hjhlkds>
apeiros: ah, good to know
Torrone has joined #ruby
<apeiros>
harfangk: String#tr docs should do. well possible that it internally delegates to C.
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
camilasan has quit [Remote host closed the connection]
loechel has quit [Ping timeout: 260 seconds]
Wolland has quit [Remote host closed the connection]
tectonic has joined #ruby
tectonic has quit [Client Quit]
loechel has joined #ruby
tectonic has joined #ruby
pmyjavec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has joined #ruby
camilasan has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
<jhass>
ytw: there doesn't seem to be a direct PKCS8 binding in Ruby's OpenSSL binding, so you would need to use OpenSSL::Engine to load a PKCS8 implementation
rippa has joined #ruby
Pumukel has joined #ruby
whathappens has quit [Remote host closed the connection]
<jhass>
(I only see direct bindings for PKCS5, 7 and 12)
tummy has joined #ruby
whathappens has joined #ruby
whathappens has quit [Remote host closed the connection]
jhodge521 has quit [Remote host closed the connection]
moon_ has joined #ruby
loechel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
<moon_>
How do i run a file from a specific path, like ~/workspace/other/rbfile.rb, using the ruby command?
dmr8 has quit [Quit: Leaving]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso>
moon_: Use Dir.chdir(path) {} ## block form
<dminuoso>
moon_: Inside the block the cwd is changed to your path, and then it's changed back again outside.
Pumukel has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
<moon_>
Eh, solved it, i used the direct path so i could run the ruby file.
eljimmy has quit [Read error: Connection reset by peer]
qguv has quit [Quit: bye]
jeanlinu_ has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pmyjavec has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pumukel has joined #ruby
tomphp has joined #ruby
elsms93 has joined #ruby
jeanlinu_ has quit [Ping timeout: 244 seconds]
jeanlinux has joined #ruby
dfinninger has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
elsms93 has quit [Quit: WeeChat 1.2]
Pumukel has joined #ruby
<moon_>
i need some advice for setting up the ruby sandbox on my bot
<moon_>
what functionalitys should i give the users?
TheWhip has quit [Remote host closed the connection]
jeanlinux has quit [Ping timeout: 240 seconds]
TheWhip has joined #ruby
claudiuinberlin has quit []
Madplatypus has joined #ruby
jeanlinux has joined #ruby
rodfersou has quit [Quit: leaving]
airdisa_ has quit []
<dminuoso>
moon_: You should have a talk with apeiros, he is mainly responsible for the development of ruby[bot]
<dminuoso>
He should have some useful insights on the topic.
<SegFaultAX>
Probably starting with "don't try to sandbox Ruby"
<apeiros>
moon_, dminuoso: we simply use eval.in for the sandboxed eval.
Pumukel has quit [Ping timeout: 264 seconds]
<apeiros>
i.e. "not even on the bot's machine"
Rodya_ has quit [Remote host closed the connection]
dipnlik has quit [Quit: dipnlik]
<moon_>
im not a huge ruby programmer, i do best in node.js, so i went for https://github.com/tario/shikashi as the assistant library
zenguy_pc has quit [Ping timeout: 265 seconds]
TheWhip has quit [Ping timeout: 276 seconds]
Pumukel has joined #ruby
Vingador has joined #ruby
jeanlinu_ has joined #ruby
jeanlinux has quit [Ping timeout: 250 seconds]
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<SegFaultAX>
moon_: The point is, it is notoriously hard (read: impossible) to fully sandbox a language runtime. It almost doesn't matter what language you happen to be talking about, although some languages (like Java) have built in infrastructure for controlling VM security.
<moon_>
Ik
<SegFaultAX>
So if you intend to give eval-like semantics at all, you have to be willing to accept that someone can and probably will eventually escape your sandbox to do something naughty.
<moon_>
im trying to keep the amount of stuff i give them at minimal
Vingador has quit [Read error: Connection reset by peer]
<SegFaultAX>
moon_: Then don't give them an eval-like interface at all. :)
<moon_>
lol.
dfinning_ has joined #ruby
_pastel has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
<SegFaultAX>
Seriously though. Just make it easy for them to build plugins for the bot to extend its command set.
_pastel has quit [Client Quit]
<dminuoso>
apeiros: That is quite funny. I actually expected you to contribute useful insights such as "make sure he doesn't get to make syscalls or that".
Vingador has joined #ruby
<moon_>
SegFaultAX thats already easy.
_pastel has joined #ruby
<apeiros>
dminuoso: that's what eval.in already does for us :D
nankyokusei has joined #ruby
<apeiros>
there have been a bunch of ruby sandbox libraries, but I'm not sure whether any of those actually was finished, and/or is still maintained :-/
jeanlinu_ has quit [Ping timeout: 252 seconds]
<dminuoso>
moon_: In a nutshell you want to go through Kernel and then make sure that anything that's in there cannot be abused.
xall has quit [Ping timeout: 240 seconds]
<SegFaultAX>
moon_: Then if they want to have eval-like functionality in their bot via a plugin, fine. But bots you operate should avoid eval like the plague..
Pumukel has quit [Ping timeout: 264 seconds]
jeanlinux has joined #ruby
GinoManWorks has quit [Quit: Leaving]
<dminuoso>
apeiros: Though come to think of it, I see that eval.in link every day.. seems like I did not even spend a single second of thought on this when I uttered your name.
Vingador has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
subutai has joined #ruby
<apeiros>
eval.in is by charliesome (hope I spelled his nick right)
klautcomputing has quit [Ping timeout: 276 seconds]
kappy has quit [Quit: Lost terminal]
Vingador has joined #ruby
moon_ has quit [Ping timeout: 240 seconds]
dfinning_ has quit [Read error: Connection reset by peer]
jenrzzz_ has joined #ruby
dfinninger has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
postmodern has quit [Ping timeout: 250 seconds]
jeanlinux has quit [Ping timeout: 258 seconds]
byteflame has quit [Ping timeout: 240 seconds]
jeanlinux has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
qguv has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
qguv has quit [Client Quit]
jenrzzz has quit [Ping timeout: 252 seconds]
Pumukel has joined #ruby
moon_ has joined #ruby
okrasi has quit [Ping timeout: 260 seconds]
kobain has joined #ruby
aupadhye has quit [Remote host closed the connection]
subutai has quit []
dfinninger has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
jeanlinux has quit [Ping timeout: 260 seconds]
SCHAAP137 has joined #ruby
SCHAAP137 has quit [Max SendQ exceeded]
jeanlinux has joined #ruby
Vingador has quit [Read error: Connection reset by peer]
Pumukel has quit [Ping timeout: 264 seconds]
edwinvdgraaf has joined #ruby
Vingador has joined #ruby
zacts has quit [Ping timeout: 258 seconds]
qguv has joined #ruby
Pumukel has joined #ruby
swills has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz_ has quit [Ping timeout: 276 seconds]
jeanlinux has quit [Ping timeout: 276 seconds]
ChiefAlexander has quit [Quit: Leaving...]
ebbflowgo has quit [Quit: ebbflowgo]
blandflakes has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
cd-rum has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
postmodern has joined #ruby
blandflakes has quit [Client Quit]
fckyoufreenode has quit []
Dimik has joined #ruby
Pumukel has quit [Ping timeout: 264 seconds]
banisterfiend has joined #ruby
ldnunes has quit [Quit: Leaving]
Pumukel has joined #ruby
jeanlinux has joined #ruby
whathappens has joined #ruby
cd-rum has quit [Ping timeout: 265 seconds]
cd-rum has joined #ruby
Xiti has joined #ruby
dfinninger has quit [Read error: Connection reset by peer]
dfinninger has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<meatchicken>
How do I find out if someone is one years old given their date of birth?
<meatchicken>
this is such a simple problem but I can't wrap my head around it
<SegFaultAX>
Like, exactly to the day 1 year old?
Pumukel has quit [Ping timeout: 260 seconds]
OTORelic4 has quit [Ping timeout: 260 seconds]
<SegFaultAX>
Or at least one year old? Or at most one year old?
<meatchicken>
*how to determine if someone is x years old
<meatchicken>
Like..given someone's dob
<meatchicken>
determine if someone is 5..or 6
jeanlinux has quit [Ping timeout: 276 seconds]
<SegFaultAX>
The way humans say that, they typically mean 1 <= age < 2
<meatchicken>
Mm
Pumukel has joined #ruby
<meatchicken>
equal to or over 1 years old
<meatchicken>
under 2
<meatchicken>
Now from a date perspective
<SegFaultAX>
Take the difference of the current date and their birthday.
<dminuoso>
meatchicken: It's fairly messy since you have to consider leap years.
<meatchicken>
I need to determine if a person's date of birth falls between the dates which make someone x years old
<toretore>
to be accurate, you have to count the number of birthdays between dob and now
<SegFaultAX>
Assuming "take the difference" has a built in notion of calendar math
dfinninger has quit [Read error: Connection reset by peer]
<meatchicken>
Oh jesus
spudowiar has joined #ruby
<meatchicken>
Okay what I am trying to do is write a query to determine if someone is x-age
<SegFaultAX>
meatchicken: The problem is time isn't simple. So if you're asking a room full of software engineers how to calculate someones age, you're going to have to be really specific what you mean.
nikivi has quit [Quit: irc]
<SegFaultAX>
But if you asked a full room of... I don't know... not software engineers or people who have used a time library, they'll give you the simple answer.
<SegFaultAX>
No normal person would say "to calculate someone's age you have to consider leapseconds"