apeiros_ changed the topic of #ruby-lang to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
weddingcakes has quit [Ping timeout: 276 seconds]
<andrewvos> postmodern: updated https://github.com/postmodern/chruby/pull/108
nXqd has quit [Quit: leaving]
outoftime has quit [Quit: Leaving]
mercwithamouth has joined #ruby-lang
weddingcakes has joined #ruby-lang
weddingcakes has quit [Ping timeout: 276 seconds]
krohrbaugh has joined #ruby-lang
davidbalbert is now known as davidbalber|away
pr0ton has joined #ruby-lang
pr0ton has quit [Remote host closed the connection]
Qwak has quit [Ping timeout: 256 seconds]
pr0ton has joined #ruby-lang
pr0ton has quit [Client Quit]
reppard has joined #ruby-lang
cultureulterior_ has joined #ruby-lang
gearaholic has joined #ruby-lang
pr0ton has joined #ruby-lang
retro|cz has quit [Ping timeout: 256 seconds]
Gekz has joined #ruby-lang
Gekz has joined #ruby-lang
Gekz has quit [Changing host]
retro|cz has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
geopet has quit [Quit: geopet]
apeiros_ has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
cultureulterior_ has quit [Quit: cultureulterior_]
tomzx_mac has joined #ruby-lang
chendo_ has quit [Ping timeout: 252 seconds]
cored has quit [Quit: leaving]
chendo_ has joined #ruby-lang
reppard has quit [Ping timeout: 245 seconds]
lcdhoffman has joined #ruby-lang
seydar has joined #ruby-lang
<seydar> hey guys
<seydar> i'm having trouble turning this ssl certificate (http://pastie.org/6337935, and it's fake)
<seydar> into something useable by thin (or any webserver for that matter)
<postmodern> seydar, and pastie appears to be down
<seydar> postmodern: http://pastebin.com/Ae083mJi
<postmodern> seydar, man i have no idea based on that
<postmodern> seydar, guessing it's self-signed
havenwood has joined #ruby-lang
<seydar> well, i'm trying to illustrate a null-prefix attack
<postmodern> seydar, i know eventmachine bundles it's own self-signed cert for servers
<drbrain> seydar: uh, you realize you can no longer use that private key, right?
<seydar> drbrain: it's for a null prefix attack for class, it's not actually guarding anything
<drbrain> oh good
davidbalber|away is now known as davidbalbert
<seydar> this is what i'm using to run it all: http://pastebin.com/TbyXvyff
jonahR has joined #ruby-lang
<seydar> the ssl info apparently wasn't being read properly by thin based on the config.yml, so i had to supply the cmd line args
<seydar> and now it's giving a different signer for the cert than before, but it's still not saying the correct one of "moxie marlinspike's fan club"
bantic has quit [Quit: bantic]
<seydar> hm, maybe this is an ec2 problem
<seydar> is that realistic?
justinram has quit [Remote host closed the connection]
<seydar> nah
brianpWins has quit [Quit: brianpWins]
mistym is now known as mistym_roti
<seydar> postmodern: self signed certificate would ask my browser for confirmation still, right
<seydar> ?
<drbrain> unless you have trusted the certificate, yes
<postmodern> seydar, correct
<seydar> man, security is hard
Mon_Ouie has quit [Ping timeout: 260 seconds]
<seydar> ok, so the ssl cert that i'm passing is doing *something*, it's just not doing the right something
<seydar> man i just wanna be a lumberjack
taylor_e has joined #ruby-lang
gearaholic has quit [Ping timeout: 248 seconds]
S1kx has joined #ruby-lang
ryanv-raptor has quit [Quit: Leaving.]
mercwithamouth has quit [Ping timeout: 248 seconds]
KA_ has quit [Quit: KA_]
jonahR_ has joined #ruby-lang
marr has quit [Ping timeout: 276 seconds]
jonahR has quit [Ping timeout: 240 seconds]
jonahR_ is now known as jonahR
[[johnonymous]] has joined #ruby-lang
<seydar> YOU GUIZE I GOT IT WORKING
<seydar> quite anticlimactic: my config.yml file was serving the wrong app (it was serving ../bank instead of ./)
krohrbaugh has quit [Quit: Leaving.]
mercwithamouth has joined #ruby-lang
<seydar> so if you alter your hosts file to redirect paypal.com to my ec2 IP address, you'll be tricked into using my gringotts bank
havenwood has quit [Ping timeout: 240 seconds]
__butch__ has quit [Quit: Leaving.]
MartynKeigher has joined #ruby-lang
srbaker has joined #ruby-lang
<badeball> seydar: what's the ip?
mercwithamouth has quit [Ping timeout: 256 seconds]
<seydar> badeball: well we're still kinda working on it, but feel free to take it for a spin: https://54.235.64.11/
<seydar> you're going to need an older version of firefox though
<drbrain> "This certificate has expired"
<seydar> try 3.0.1.0
<seydar> drbrain: yeah, ya gotsta take your box back in time
nertzy has quit [Quit: Leaving]
<seydar> so basically this is a lot of work for any spectators in irc right now
gregmoreno has quit [Ping timeout: 252 seconds]
<seydar> drbrain: the point of the exploit is to defeat the "hostname mismatch" error
mistym_roti is now known as mistym
nertzy has joined #ruby-lang
retro|cz has quit [Ping timeout: 272 seconds]
retro|cz has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
mjio has quit []
<seydar> drbrain: what are you up to these days? where ya working?
gix has quit [Ping timeout: 252 seconds]
chendo_ has quit [Ping timeout: 252 seconds]
[[johnonymous]] has quit [Ping timeout: 252 seconds]
<drbrain> Ruby 2.0.0 with RubyGems 2.0.0 and RDoc 4.0.0 was just released
<drbrain> I put a bunch of work in on that
<drbrain> I've been working at AT&T, we're building a cloud
chendo_ has joined #ruby-lang
<seydar> wow, didn't realize you were so involved with ruby 2.0, congrats on the new release
gix has joined #ruby-lang
<drbrain> thanks
<drbrain> what have you been doing?
apeiros_ has joined #ruby-lang
<seydar> skewl, getting ready for the navy, and my shell chitin
<drbrain> navy huh?
<seydar> i did a GC simulator last semester in ruby, which was fun, and i'd like to expand it some more this summer
retro|cz has quit [Ping timeout: 260 seconds]
<drbrain> cool
<seydar> yeah. i do Navy ROTC, and i'm getting ready to decide what i do in it after graduation
reppard has joined #ruby-lang
<drbrain> sounds neat
retro|cz has joined #ruby-lang
apeiros_ has quit [Ping timeout: 248 seconds]
brianpWins has joined #ruby-lang
shirokuro11 has joined #ruby-lang
Domon has joined #ruby-lang
mercwithamouth has joined #ruby-lang
weddingcakes has joined #ruby-lang
<seydar> drbrain: were you alive in 2009? do you remember the md5/ssl shenanigans that went down back then when dinosaurs roamed the earth?
<drbrain> vaguely
<drbrain> but damn, riding a triceratops to school, that was sweet
<seydar> shit i don't think i have a legitimate question. the cert we're using was signed with md5 and the old firefox we're using isn't trusting it, presumably because of that debacle
mrsolo_ has quit [Quit: Leaving]
<seydar> 2009 i somehow went to prom with julia coulter and left early for the SATs the next day. spoiler alert: i did not do well
<drbrain> most likely
amerine has quit [Quit: Computer has gone to sleep.]
stonerfish has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
<seydar> errbody here should take a looksie at chitin: https://bitbucket.org/seydar/chitin/src
retro|cz has quit [Ping timeout: 252 seconds]
retro|cz has joined #ruby-lang
havenwood has joined #ruby-lang
rsl has quit [Quit: Computer has gone to sleep.]
stonerfish has quit [Ping timeout: 276 seconds]
<zzak> i want my own cloud :(
KA_ has joined #ruby-lang
<seydar> ciao errbody
seydar has quit [Quit: leaving]
mjio has joined #ruby-lang
<drbrain> zzak: done: http://devstack.org
sn0wb1rd has quit [Quit: sn0wb1rd]
<zzak> is it free?
<zzak> are you kicking me off segment7 :(
<drbrain> zzak: it's a free cloud that can run on your computer
<drbrain> I use it to test work stuff sometimes
<zzak> ohh
tylersmith has quit [Quit: tylersmith]
enebo has joined #ruby-lang
banisterfiend has quit [Ping timeout: 252 seconds]
reppard has quit [Ping timeout: 255 seconds]
jonahR has quit [Quit: jonahR]
hahuang65 has quit [Quit: Computer has gone to sleep.]
<ryanf> anyone get openssl errors trying to bundle install with 2.0.0-p0?
retro|cz has quit [Ping timeout: 252 seconds]
<ryanf> thought I saw something about it on twitter but I can't find anything with google now
retro|cz has joined #ruby-lang
hahuang65 has joined #ruby-lang
robbyoconnor has joined #ruby-lang
hahuang65 has quit [Quit: Computer has gone to sleep.]
KA_ has quit [Quit: KA_]
sn0wb1rd has joined #ruby-lang
retro|cz has quit [Ping timeout: 276 seconds]
reppard has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 245 seconds]
retro|cz has joined #ruby-lang
yfeldblum has joined #ruby-lang
havenwood has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 248 seconds]
retro|cz has quit [Ping timeout: 248 seconds]
scottschecter has quit [Quit: WeeChat 0.4.0]
KA_ has joined #ruby-lang
weddingcakes has quit [Ping timeout: 276 seconds]
retro|cz has joined #ruby-lang
scottschecter has joined #ruby-lang
swav has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
bluepojo_ has quit [Remote host closed the connection]
retro|cz has quit [Ping timeout: 256 seconds]
bluepojo has joined #ruby-lang
io_syl has quit [Ping timeout: 260 seconds]
mehwork has joined #ruby-lang
<mehwork> is this the offical ruby channel?
bluepojo has quit [Ping timeout: 255 seconds]
krohrbaugh has joined #ruby-lang
Radagast has quit [Ping timeout: 256 seconds]
mercwithamouth has joined #ruby-lang
abstr4ct has joined #ruby-lang
KA_ has quit [Quit: KA_]
torrieri has joined #ruby-lang
reppard has quit [Ping timeout: 244 seconds]
<drbrain> it is
hahuang65 has joined #ruby-lang
wmoxam has joined #ruby-lang
enebo has quit [Quit: enebo]
<abstr4ct> so rubyinteractive is slower than a natural ruby app, or am i incorrect?
KU0N has quit [Quit: Linkinus - http://linkinus.com]
Sinestro has joined #ruby-lang
KA_ has joined #ruby-lang
<zzak> is it possible to access a local variable for a given thread?
<zzak> Thread.new("42") { |answer| answer_to_life = answer; sleep }
<zzak> thread[:answer] or thread[:answer_to_life]
<zzak> thats just like instance_variable_set/get tho, right?
KA_ has quit [Quit: KA_]
KA_ has joined #ruby-lang
lsegal has joined #ruby-lang
<firefux> zzak: don't you have to create the thread variable first with []= ?
dhruvasagar has joined #ruby-lang
<firefux> like Thread.current[:answer_to_life] = answer;
Bosox20051 has joined #ruby-lang
<zzak> yes, thats my understanding
amerine has joined #ruby-lang
tomzx_mac has quit [Quit: return 0;]
tomzx_mac has joined #ruby-lang
KA_ has quit [Quit: KA_]
Nisstyre has quit [Ping timeout: 276 seconds]
pr0ton has quit [Quit: pr0ton]
Nisstyre has joined #ruby-lang
Rizzle has joined #ruby-lang
bzalasky has joined #ruby-lang
retro|cz has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
justinseiter has joined #ruby-lang
wmoxam has quit [Quit: leaving]
hdm has quit [Quit: Leaving.]
robbyoconnor has joined #ruby-lang
io_syl has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
geopet has joined #ruby-lang
dhruvasagar has joined #ruby-lang
torrieri has joined #ruby-lang
Domon has quit [Remote host closed the connection]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
geopet has quit [Quit: geopet]
torrieri_ has joined #ruby-lang
torrieri has quit [Ping timeout: 244 seconds]
hagabaka has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
KA_ has joined #ruby-lang
scottschecter has quit [Quit: WeeChat 0.4.0]
swav has joined #ruby-lang
sepp2k has quit [Remote host closed the connection]
bzalasky_ has joined #ruby-lang
havenwood has joined #ruby-lang
retro|cz has quit [Ping timeout: 248 seconds]
Axsuul has joined #ruby-lang
bzalasky has quit [Ping timeout: 245 seconds]
retro|cz has joined #ruby-lang
kurko__ has quit [Ping timeout: 255 seconds]
retro|cz has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Ping timeout: 272 seconds]
kgrz has joined #ruby-lang
JohnBat26 has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
hagabaka has joined #ruby-lang
gregmoreno has joined #ruby-lang
mistym has quit [Remote host closed the connection]
retro|cz has joined #ruby-lang
slyphon has quit [Quit: slyphon]
krz has joined #ruby-lang
slyphon has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
wardrop has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
wardrop has joined #ruby-lang
mercwithamouth has joined #ruby-lang
S2kx has joined #ruby-lang
S1kx has quit [Ping timeout: 244 seconds]
imajes has quit [Excess Flood]
rippa has joined #ruby-lang
imajes has joined #ruby-lang
ryanf has quit [Quit: leaving]
skade has joined #ruby-lang
MSU has quit [Ping timeout: 264 seconds]
macmartine has joined #ruby-lang
retro|cz has quit [Ping timeout: 252 seconds]
nachtwandler has joined #ruby-lang
retro|cz has joined #ruby-lang
tonni has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
mjio has quit []
Qwak has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
<postmodern> anyone have a link to ruby-core's version policy?
<postmodern> on how they are not following semver or linux kernel style versioning?
retro|cz has quit [Ping timeout: 252 seconds]
<postmodern> trying to convince fedora that it's ok to upgrade to ruby 2.0.0
<postmodern> that it's not a major version bump, as one would think it
<postmodern> more of an evolutionary step from 1.9
retro|cz has joined #ruby-lang
Qwak has quit [Ping timeout: 248 seconds]
KA_ has quit [Quit: KA_]
tomzx_mac has quit [Ping timeout: 248 seconds]
<yxhuvud> postmodern: I think they always intended to follow semver, but that 2.0 took too long and people started to use 1.9 in the interim since 1.8 is so horrible
tonni has joined #ruby-lang
<yxhuvud> or maybe they just ended up falling in the trap where they decided on a set of features that had to be in 2.0 and ended up postponing it
macmartine has quit [Quit: Computer has gone to sleep.]
<postmodern> yxhuvud, pretty sure they switched to an incremental style
<yxhuvud> possible. I have seen no version policy that I remember
apeiros_ has joined #ruby-lang
nachtwandler has quit [Remote host closed the connection]
retro|cz has quit [Ping timeout: 244 seconds]
heftig has quit [Ping timeout: 245 seconds]
klebervi_ has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
retro|cz has joined #ruby-lang
ryanf has joined #ruby-lang
wardrop has quit [Quit: wardrop]
rippa has quit [Read error: Connection reset by peer]
spinagon has joined #ruby-lang
setmeaway has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
techlife has quit [Ping timeout: 255 seconds]
techlife has joined #ruby-lang
justinseiter has quit [Remote host closed the connection]
RobertBirnie has joined #ruby-lang
<RobertBirnie> hi
<RobertBirnie> i'm having issues adding a hash to an array and was wondering if someone could give me a pointer.
<RobertBirnie> i'm making a loan amortization table, and want an array of hash's, one for each month
heftig has joined #ruby-lang
<RobertBirnie> but at the end i have a ton of hashes that are the exact same as the last month. i'm not sure how to add the hash to the array but break the link to the original hash
amerine has joined #ruby-lang
spinagon has quit [Ping timeout: 240 seconds]
wallerdev has quit [Quit: wallerdev]
datanoise has quit [Ping timeout: 246 seconds]
<ryanf> RobertBirnie: can you put your actual code on gist.github.com ?
<ryanf> you just need to be careful about making sure you're creating a new hash every time
<ryanf> but it's hard to be more specific without seeing the context
<badeball> ryanf: it was gisted and answered on rubyonrails already (https://gist.github.com/rbirnie/eda004659ad1e4660269)
mercwithamouth has quit [Ping timeout: 272 seconds]
<RobertBirnie> i got it :)
<RobertBirnie> sorry for asking both places
<RobertBirnie> array << hash.dup
<RobertBirnie> on RubyOnRails everyone seemed quite intent on another topic and i didn't want to steal the show
<RobertBirnie> so i asked on here first
mercwithamouth has joined #ruby-lang
dr_bob has joined #ruby-lang
<UziMonkey> RobertBirnie: right, when you push the hash to the array, you're just pushing a reference to the hash. But be careful with dup,
<UziMonkey> but be careful with dup, if you make a hash like a = {:b=>{:c=>1}}, then b = a.dup
<UziMonkey> a[:b][:c] will also modify b[:b][:c]
joschi has quit [Read error: Operation timed out]
<RobertBirnie> ah, i see. yeah that'd make a mess
joschi has joined #ruby-lang
<UziMonkey> so duping complex data structures is not good
<RobertBirnie> yeah
vlad_starkov has joined #ruby-lang
Xzyx987X has joined #ruby-lang
kuja has quit [*.net *.split]
Bwild has quit [*.net *.split]
Xzyx987X_ has quit [*.net *.split]
ioga_wrk has quit [*.net *.split]
reactormonk has quit [*.net *.split]
joren has quit [*.net *.split]
matled has quit [*.net *.split]
djinni` has quit [*.net *.split]
ruskie has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
amateurhuman has quit [*.net *.split]
djinni` has joined #ruby-lang
matled has joined #ruby-lang
kgrz has quit [Quit: Computer has gone to sleep.]
Qwak has joined #ruby-lang
<UziMonkey> I seem to remember running into this before
<UziMonkey> and my solution was to just serialize it with marshal or yaml and then read it back
<UziMonkey> fantastically inefficient, but that's the Ruby way. At least it didn't take long to implement :P
nXqd has joined #ruby-lang
reactormonk has joined #ruby-lang
dzhulk has joined #ruby-lang
<badeball> UziMonkey: was that faster than recursively doing #dup?
<UziMonkey> I can't remember, but it depends on what's doing the serializing and how big your data structure is
<UziMonkey> a yaml library written in C can probably crawl that structure real fast
<UziMonkey> so it might be faster, actually...
tonni has quit [Remote host closed the connection]
kuja has joined #ruby-lang
yxhuvud has joined #ruby-lang
amateurhuman has joined #ruby-lang
Bwild has joined #ruby-lang
ruskie has joined #ruby-lang
ioga_wrk has joined #ruby-lang
joren has joined #ruby-lang
datanoise has joined #ruby-lang
MSU has joined #ruby-lang
imajes has quit [Excess Flood]
<UziMonkey> why did I never think of this before? I configured my editor to use CMU Typewriter Text and now all my code looks like it's been formatted with TeX
imajes has joined #ruby-lang
RickHull has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
dc5ala has joined #ruby-lang
gnufied has joined #ruby-lang
tonni has joined #ruby-lang
mytrile has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
gix has quit [Quit: Client exiting]
gix has joined #ruby-lang
Sinestro has quit [Quit: Computer has gone to sleep.]
Rotonen has joined #ruby-lang
woollyams has joined #ruby-lang
skade has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 276 seconds]
faces has joined #ruby-lang
dankest has joined #ruby-lang
maxmanders has joined #ruby-lang
Bosox20051 has quit [Ping timeout: 248 seconds]
face has quit [Ping timeout: 264 seconds]
apeiros_ has joined #ruby-lang
marr has joined #ruby-lang
beho has quit [Remote host closed the connection]
gix has quit [Quit: Client exiting]
RobertBirnie has quit [Quit: RobertBirnie]
gix has joined #ruby-lang
klebervirgilio has joined #ruby-lang
Qwak has quit []
iande has left #ruby-lang [#ruby-lang]
dankest has quit [Quit: Leaving...]
klebervirgilio has quit [Ping timeout: 246 seconds]
<MrWGW-> is there a built in Ruby facility analogous to at?
<MrWGW-> I need to schedule a job to occur once, 24 hours in the future
<MrWGW-> but the UNIX at(1) command looks painful to script with especially in Ruby
jxie has quit [Quit: leaving]
beho has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
<bcol> MrWGW-: you could use timeout: http://ruby-doc.org/stdlib-1.9.2/libdoc/timeout/rdoc/Timeout.html. Timeout::timeout(24 * 60 * 60) { puts "hi" }
<bcol> actually, no
<bcol> I misunderstood how that worked
judofyr has joined #ruby-lang
retro|cz has quit [Ping timeout: 276 seconds]
<bcol> use sleep?
brianpWins has quit [Quit: brianpWins]
solars has joined #ruby-lang
ottbot has joined #ruby-lang
krz has quit [Ping timeout: 252 seconds]
adambeynon has joined #ruby-lang
<yorickpeterse> heh, only 20 emails from ruby-core in my Email account
blacktulip has joined #ruby-lang
<andrewvos> helloww
justinram has joined #ruby-lang
<andrewvos> I have decided to use savon. I am sad.
<yorickpeterse> Aww yiss, non optional keyword arguments have been accepted by dear leader
<judofyr> \o/
krz has joined #ruby-lang
<andrewvos> What is that?
<yorickpeterse> andrewvos: it lets you do this basically (syntax is not yet decided it seems):
<yorickpeterse> def foo(name:, location:); end
<yorickpeterse> Then you *have* to specify both parameters but since they're keyword arguments the order is not relevant
<andrewvos> Oh. Um, yay?
<MrWGW-> does appending a file with << not work i na daemon process?
<MrWGW-> i.e. one lacking a controlling terminal
<judofyr> MrWGW-: that shouldn't have anything to say
<Rotonen> http://pastie.org/6339585 <- ruby 2.0.0-p0 vs. debian wheezy openssl 1.0.1e-1 | known, hints?
<andrewvos> judofyr: Pretty cool I suppose.
<yorickpeterse> andrewvos: personally I find this much more interesting than refinements
stardiviner has joined #ruby-lang
swav has quit [Remote host closed the connection]
beiter has joined #ruby-lang
beiter has quit [Client Quit]
beiter has joined #ruby-lang
beiter has quit [Client Quit]
beiter has joined #ruby-lang
shirokuro11 has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
charliesome_ has joined #ruby-lang
<andrewvos> yorickpeterse: That's xause refinements are a waste of time.
<andrewvos> cause*
GarethAdams has joined #ruby-lang
<charliesome_> andrewvos: how dare you speak ill of refinements
marr has quit [Ping timeout: 264 seconds]
dankest has joined #ruby-lang
<yorickpeterse> charliesome_: go back writing TOML parsers young grasshopper
charliesome has quit [Disconnected by services]
charliesome_ is now known as charliesome
<yorickpeterse> also fuck this code. Somewhere it does a `cd /` but I can't find where
<yorickpeterse> comedy option: override Dir.chdir
<charliesome> yorickpeterse: legit tactic
<yorickpeterse> meh, I've done that before to benchmark require calls
<yorickpeterse> wasn't that much of a pain
<charliesome> yorickpeterse: Dir.singleton_class.send(:prepend, Module.new { def chdir*; puts caller; super; end })
retro|cz has joined #ruby-lang
mlangenberg has joined #ruby-lang
swav has joined #ruby-lang
Wildhoney has joined #ruby-lang
workmad3 has joined #ruby-lang
<mlangenberg> Hey all, I am building a small library where I depend on another library (Faraday). Now I would like to wrap Exceptions raised by Faraday on things like timeout / HTTP 500, in my own exception. Of course while still keeping the original stack trace and exception name.
kgrz has joined #ruby-lang
<mlangenberg> e.g MyError: "Error feting JSON", Faraday::Error::ClientError: "the server responded with status 500"
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
bin7me has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
imajes has quit [Excess Flood]
jxie has joined #ruby-lang
imajes has joined #ruby-lang
Axsuul has quit [Ping timeout: 240 seconds]
swav has quit [Ping timeout: 264 seconds]
shirokuro11 has joined #ruby-lang
shirokuro11 has quit [Ping timeout: 272 seconds]
swav has joined #ruby-lang
seoaqua has joined #ruby-lang
marr has joined #ruby-lang
chendo__ has joined #ruby-lang
chendo__ has quit [Client Quit]
<darix> so?
io_syl has quit [Quit: Computer has gone to sleep.]
sush24 has joined #ruby-lang
shirokuro11 has joined #ruby-lang
rippa has joined #ruby-lang
Averna has quit [Quit: Leaving.]
JosephRuby has joined #ruby-lang
joseph_ has joined #ruby-lang
joseph_ has quit [Client Quit]
judofyr has quit [Ping timeout: 246 seconds]
schaerli has quit [Remote host closed the connection]
cultureulterior_ has joined #ruby-lang
judofyr has joined #ruby-lang
vlad_starkov has joined #ruby-lang
shirokuro11 has quit [Remote host closed the connection]
shirokuro11 has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
imperator has quit [Ping timeout: 252 seconds]
mytrile has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
Gekz has quit [Ping timeout: 245 seconds]
imperator has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
imajes has quit [Excess Flood]
<yorickpeterse> charliesome: this is not Ruby 2
<charliesome> yorickpeterse: shame :)
<charliesome> :(*
imajes has joined #ruby-lang
<yorickpeterse> motherfuckers
<yorickpeterse> it's daemon-kit itself
<yorickpeterse> why the fuck would it cd to /?
sush24 has joined #ruby-lang
<yorickpeterse> hahaha
* yorickpeterse cries in a corner
<yorickpeterse> The umask is understandable, but the chdir? Get out
sush24 has quit [Client Quit]
dzhulk has quit [Quit: Leaving.]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby-lang
Gekz has joined #ruby-lang
Gekz has joined #ruby-lang
Gekz has quit [Changing host]
rippa has quit [Ping timeout: 240 seconds]
<darix> yorickpeterse: almost all daemons cd to "/" on start up
<darix> it is common practice
<yorickpeterse> wat
<yorickpeterse> What's wrong with setting up an actual chroot?
<darix> chroot is totally independent from that
<darix> chroot /some/path/
<darix> cd /
<darix> after chroot
<yorickpeterse> it would've been better if the thing cd'd back into my old pwd upon exit
<yorickpeterse> I also fail to see the purpose of it to begin with
<yorickpeterse> Implicitly cd'ing into / without mentioning it isn't something that makes me very happy
mlangenberg has quit [Ping timeout: 240 seconds]
<yorickpeterse> It also explains why the thing initially tried to write stuff in /
* yorickpeterse is a bit grumpy
* darix puts a bitter old vet sticker on yorickpeterse
<yorickpeterse> Hey now, I'm not old yet
beiter has quit [Quit: beiter]
JohnBat26 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby-lang
riffraff has joined #ruby-lang
nkr has joined #ruby-lang
klebervirgilio has joined #ruby-lang
<injekt> ok gramps
schaerli has joined #ruby-lang
Dan_ has joined #ruby-lang
rue|w has joined #ruby-lang
Dan_ is now known as Guest96361
jonahR has joined #ruby-lang
klebervirgilio has quit [Ping timeout: 248 seconds]
klebervirgilio has joined #ruby-lang
dankest has quit [Ping timeout: 248 seconds]
<charliesome> yorickpeterse: what is the sense in cd'ing on exit?
yawniek_ has joined #ruby-lang
taylor_e has quit [Ping timeout: 245 seconds]
rue|w has quit [Read error: Connection reset by peer]
gnufied has quit [Quit: Leaving.]
gnufied has joined #ruby-lang
Guest96361 has quit [Quit: Leaving...]
<MrWGW-> what's the simplest, fastest, easiest and cleanest way to see if a given string is not present in a file?
<MrWGW-> I want to return true if the variable in question (a string) does not exist in a specific file
weddingcakes has joined #ruby-lang
tonni has quit [Remote host closed the connection]
weddingcakes has quit [Client Quit]
weddingcakes has joined #ruby-lang
blacktul_ has joined #ruby-lang
<injekt> File.read(filename).include?(text) # simplest, easiest, cleanest, not fastest
robbyoconnor has quit [Ping timeout: 244 seconds]
<judofyr> `cat filename | grep search`.size > 0
blacktulip has quit [Ping timeout: 264 seconds]
toretore has joined #ruby-lang
rsl has joined #ruby-lang
beho has quit [Read error: Connection reset by peer]
jonahR has quit [Quit: jonahR]
beho has joined #ruby-lang
<injekt> yeah one can't simply assume he means ruby
seoaqua has quit [Ping timeout: 240 seconds]
weddingcakes has quit [Ping timeout: 272 seconds]
imajes has quit [Excess Flood]
beiter has joined #ruby-lang
imajes has joined #ruby-lang
<judofyr> injekt: that's ruby
<judofyr> Kernel#`
<gnufied> obviously the correct answer is - ruby -e "`cat filename | grep search`.size > 0"
<yorickpeterse> charliesome: if I quit the app, then pop open a new shell it will set the PWD to /
<yorickpeterse> since the previous PWD was /
<injekt> judofyr: lol you know what i mean :D
<charliesome> yorickpeterse: as in fork a child from the program?
<yorickpeterse> neither
<judofyr> injekt: :D
<yorickpeterse> run script -> terminate script -> open new shell (tmux, non tmux, etc) -> PWD is /
<yorickpeterse> Because most terminal emulators use the last PWD when opening a new window
carloslopes has joined #ruby-lang
<lupine> File.each_line.any? {|l| l.include?(needle) } ?
<lupine> erm. File.open()...
<Rotonen> gnufied: why .size it if you can just catch the grep return code?
<gnufied> Rotonen: ask judofyr he devised it
<gnufied> :-)
scottschecter has joined #ruby-lang
chendo__ has joined #ruby-lang
chendo__ has quit [Ping timeout: 264 seconds]
krz has quit [Quit: krz]
bin7me has quit [Quit: Verlassend]
woollyams has quit [Quit: Computer has gone to sleep.]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
banisterfiend has quit [Remote host closed the connection]
jxie has quit [Quit: leaving]
<yorickpeterse> huh, interesting
<yorickpeterse> name = foobar(name) # second name evaluates to nil
<yorickpeterse> Makes some sense since `name =` is detected first, still an error would've been nice
Mon_Ouie has quit [Read error: Operation timed out]
xcombelle has joined #ruby-lang
mytrile has joined #ruby-lang
<apeiros_> I hope you mean a warning?
<apeiros_> the `name` in foobar(name) is supposed to be a method-call?
<yorickpeterse> Well assuming there's no method either it should be an error
<yorickpeterse> But MRI doesn't do that at all atm :)
dzhulk has joined #ruby-lang
* yorickpeterse laughs like a crazy professor knowing his code does
sebastiansier has joined #ruby-lang
noop has quit [Remote host closed the connection]
<apeiros_> no, the moment a local variable is known, it exist with the value nil
<yorickpeterse> Correct, but this is one of those cases where I'd personally say "wat"
<apeiros_> it even has practical value: foo = proc { |x| x+foo[1] }
<apeiros_> yorickpeterse: if you name an lvar the same as method, you already got your "wat" :-p
<yorickpeterse> Oh in my case I was just stupid and used the variable too early
* apeiros_ goes back to figuring out how to transform a table of the form ('child_id', 'parent_id', 'metadata', 'changed_at') to ('child_id', 'previous_parent_id', 'parent_id', 'changed_at'), also eliminating all rows which are just metadata-changes…
<apeiros_> my first approach was nice, but fails when a child node moves forth and back again
<yorickpeterse> eh?
<yorickpeterse> are you building a tree or something?
kith has quit [Read error: Connection reset by peer]
<apeiros_> it's hierarchical data, but I'm not building a tree. I'm building a list of node-movements
<yorickpeterse> hmm
<apeiros_> i.e., it's historized hierarchical data. nasty stuff.
<apeiros_> especially with sql
kith has joined #ruby-lang
* apeiros_ learned about `rank over partition order by` and `lag` thanks to this
schaerli has quit [Remote host closed the connection]
chendo__ has joined #ruby-lang
imajes has quit [Excess Flood]
tonni has joined #ruby-lang
imajes has joined #ruby-lang
coffeebean has joined #ruby-lang
coffeebean has left #ruby-lang [#ruby-lang]
coffeebean has joined #ruby-lang
coffeebean has left #ruby-lang [#ruby-lang]
coffeebean has joined #ruby-lang
coffeebean has left #ruby-lang [#ruby-lang]
chendo__ has quit [Ping timeout: 248 seconds]
tonni has quit [Ping timeout: 255 seconds]
rue|w has joined #ruby-lang
vlad_sta_ has quit [Remote host closed the connection]
kgrz has quit [Quit: Computer has gone to sleep.]
gustavnils has joined #ruby-lang
carloslopes has quit [Read error: Connection reset by peer]
sush24 has joined #ruby-lang
carloslopes has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
sush24 has quit [Quit: This computer has gone to sleep]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
beho has quit [Remote host closed the connection]
Atte_Ruby has joined #ruby-lang
jacktrick has joined #ruby-lang
skade has joined #ruby-lang
slyphon has quit [Quit: slyphon]
mistym has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
sailias has joined #ruby-lang
sockmonk has joined #ruby-lang
sailias has quit [Ping timeout: 257 seconds]
dustint has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
chendo__ has joined #ruby-lang
retro|cz has quit [Ping timeout: 245 seconds]
kurko_ has joined #ruby-lang
tomzx_mac has joined #ruby-lang
riffraff has quit [Ping timeout: 276 seconds]
riffraff has joined #ruby-lang
glebm has quit [Read error: Connection reset by peer]
dhruvasagar has quit [Ping timeout: 264 seconds]
slyphon has joined #ruby-lang
sush24 has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
shirokuro11 has quit [Remote host closed the connection]
beiter has quit [Quit: beiter]
chendo__ has quit [Ping timeout: 244 seconds]
matled has quit [Remote host closed the connection]
glebm has joined #ruby-lang
sailias has joined #ruby-lang
jxie has joined #ruby-lang
breakingthings has joined #ruby-lang
beiter has joined #ruby-lang
postmodern has quit [Quit: Leaving]
retro|cz has joined #ruby-lang
jonahR has joined #ruby-lang
KU0N has joined #ruby-lang
kgrz has joined #ruby-lang
crazyhorse has joined #ruby-lang
<crazyhorse> how does one downgrade rubygems?
<breakingthings> what.
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
scampbell has joined #ruby-lang
slyphon has quit [Ping timeout: 276 seconds]
kogent has quit [Quit: kogent]
vlad_starkov has joined #ruby-lang
tonni has joined #ruby-lang
chendo__ has joined #ruby-lang
<crazyhorse> breakingthings: worked it out
Hauleth has joined #ruby-lang
chendo__ has quit [Ping timeout: 252 seconds]
<andrewvos> I have a rake file. This file uses `vagrant ssh -c <command>` to execute another rakefile inside the machine. This rakefile uses `nohup command &`. For some reason the first rakefile never completes. HALP
Atte_Ruby has quit [Ping timeout: 244 seconds]
<andrewvos> I have a rake file. This file uses `vagrant ssh -c <command>` to execute another rakefile inside the machine. This other rakefile uses `nohup command &`. For some reason the first rakefile never completes. HALP
<andrewvos> (edited)
iamjarvo has quit [Quit: Leaving.]
Atte_Ruby has joined #ruby-lang
<Hauleth> andrewvos: Can you give us a some code?
<yorickpeterse> andrewvos: that's probably because the Rakefile gets confused due to nohup
<judofyr> andrewvos: is the vagrant-process still running?
joast has quit [Quit: Leaving.]
tomzx_mac has quit [Ping timeout: 252 seconds]
[[johnonymous]] has joined #ruby-lang
<andrewvos> judofyr: Yeah it is
sebastiansier has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
agile has quit [Remote host closed the connection]
crazyhorse has quit [Ping timeout: 248 seconds]
RobertBirnie has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
shirokuro11 has joined #ruby-lang
jacktrick has quit [Quit: Leaving]
<andrewvos> yorickpeterse: Why would it get confused? Any workaround ideas?
<yorickpeterse> I have no idea why it would, but it's a possibility
<yorickpeterse> And sadly no, I don't know of any workarounds
enebo has joined #ruby-lang
<andrewvos> yorickpeterse: Well if you don't know why it would be a problem, don't feel bad that you don't have a workaround :)
rue has quit [Remote host closed the connection]
methods has joined #ruby-lang
Atte123 has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
davidbalber|away is now known as davidbalbert
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
breakingthings has quit []
breakingthings has joined #ruby-lang
rue has joined #ruby-lang
Atte_Ruby has quit [Ping timeout: 252 seconds]
Atte123 has quit [Client Quit]
beiter has quit [Quit: beiter]
carloslopes has quit [Remote host closed the connection]
rippa has joined #ruby-lang
dhruvasagar has joined #ruby-lang
* Eising has a strong desire to rewrite everything here one day before deadline
seoaqua has joined #ruby-lang
bantic has joined #ruby-lang
<andrewvos> All code becomes legacy eventually, even your code.
<breakingthings> It's not legacy if it's tested.
<Rotonen> COBOL and APL are alive and well
shirokuro11 has quit [Remote host closed the connection]
glebm has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Read error: Connection reset by peer]
chendo__ has joined #ruby-lang
outoftime has joined #ruby-lang
glebm has joined #ruby-lang
glebm has quit [Client Quit]
banister_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
sepp2k has joined #ruby-lang
dustint has quit [Ping timeout: 252 seconds]
chendo__ has quit [Ping timeout: 252 seconds]
Hauleth has quit [Ping timeout: 252 seconds]
tonni has quit [Remote host closed the connection]
KA_ has joined #ruby-lang
sebastiansier has joined #ruby-lang
sebastiansier has quit [Remote host closed the connection]
glebm has joined #ruby-lang
carloslopes has joined #ruby-lang
dzhulk has joined #ruby-lang
banister_ has quit [Ping timeout: 248 seconds]
srbaker has joined #ruby-lang
dustint has joined #ruby-lang
schaerli has joined #ruby-lang
slyphon has joined #ruby-lang
gnufied has joined #ruby-lang
Hauleth has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
soypirate has joined #ruby-lang
Hauleth has quit [Ping timeout: 272 seconds]
imajes has quit [Excess Flood]
banisterfiend has joined #ruby-lang
lcdhoffman has joined #ruby-lang
imajes has joined #ruby-lang
torrieri_ has quit [Quit: Linkinus - http://linkinus.com]
vlad_starkov has quit [Remote host closed the connection]
tonni has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
sebastiansier has joined #ruby-lang
imajes has quit [Excess Flood]
Hauleth has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
Hauleth has quit [Client Quit]
wallerdev has joined #ruby-lang
Hauleth has joined #ruby-lang
imajes has joined #ruby-lang
geopet has joined #ruby-lang
geopet has quit [Remote host closed the connection]
geopet has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
hackeron has quit [Read error: Operation timed out]
rwilcox has joined #ruby-lang
<andrewvos> breakingthings: I disagree.
<breakingthings> Talk about a slow reaction
<breakingthings> Why's that, friendo
<judofyr> at least he isn't … breaking things
nXqd has quit [Ping timeout: 276 seconds]
dr_bob has left #ruby-lang [#ruby-lang]
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
<breakingthings> Gotta break 'em to fix 'em, mama always said
<breakingthings> Okay, she didn't really say that, but it sounds like something that she woulda said.
<breakingthings> If she were here.
<breakingthings> And by that I don't mean she's passed away, I mean she's not physically at this location.
<breakingthings> I hope I'm being clear.
<judofyr> for someone who likes to break things, you're being surprisingly clear
<breakingthings> Nobody ever said I like to break things, it's a condition
<judofyr> for someone who involuntary break things, you're being surprisingly clear
sebastiansier has quit [Remote host closed the connection]
chendo__ has joined #ruby-lang
joast has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
chendo__ has quit [Ping timeout: 252 seconds]
<breakingthings> I guess I'm not getting a response on that for another hour
<judofyr> ;)
<judofyr> anyway, time to go!
<judofyr> see ya folks later
judofyr has quit [Remote host closed the connection]
justinseiter has joined #ruby-lang
sebastiansier has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 248 seconds]
<andrewvos> breakingthings: You've not seen bad tests?
<breakingthings> andrewvos: "tested" and "not really tested" are two different things
<breakingthings> Writing one unit test does not make my application tested nor non-legacy
__BigO__ has joined #ruby-lang
<andrewvos> meh
<apeiros_> people test their legacy?
bzb has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
sn0wb1rd has quit [Quit: sn0wb1rd]
GarethAdams has quit [Quit: Leaving...]
dc5ala has quit [Quit: Ex-Chat]
davidbalbert is now known as davidbalber|away
JohnBat26 has quit [Read error: Operation timed out]
blacktul_ has quit [Remote host closed the connection]
reppard has joined #ruby-lang
blacktulip has joined #ruby-lang
dr_bob has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
dankest has joined #ruby-lang
krohrbaugh has joined #ruby-lang
dankest has quit [Client Quit]
<injekt> that'll by my legacy
<injekt> on another note, I cannot type today
reppard has quit [Ping timeout: 240 seconds]
slyphon has quit [Quit: slyphon]
slyphon has joined #ruby-lang
beho has joined #ruby-lang
dr_bob has left #ruby-lang [#ruby-lang]
solars has quit [Ping timeout: 248 seconds]
neverminding has joined #ruby-lang
<matti> injekt: I will always remember that you could not type.
<matti> injekt: As your legacy ;p
sn0wb1rd has joined #ruby-lang
<breakingthings> Should'a tested your legacy, man.
<breakingthings> Should'a tested.
breakingthings has quit []
srbaker has quit [Quit: Computer has gone to sleep.]
dankest has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
Stilo has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
sn0wb1rd has quit [Client Quit]
breakingthings has joined #ruby-lang
bantic has quit [Quit: bantic]
jbsan has quit [Quit: JB.. OUT!]
tylersmith has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
__butch__ has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
nXqd has joined #ruby-lang
nachtwandler has joined #ruby-lang
Rotonen has left #ruby-lang [#ruby-lang]
srbaker has joined #ruby-lang
pr0ton has joined #ruby-lang
nXqd has quit [Ping timeout: 246 seconds]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
sebastiansier has quit [Read error: Connection reset by peer]
sebastiansier has joined #ruby-lang
chendo__ has joined #ruby-lang
amerine has joined #ruby-lang
jsilver has joined #ruby-lang
tonni has quit [Ping timeout: 244 seconds]
chendo__ has quit [Ping timeout: 252 seconds]
kevinfagan has joined #ruby-lang
dpatel has joined #ruby-lang
dpatel has quit [Client Quit]
dpatel has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
wallerdev has joined #ruby-lang
breakingthings has quit []
saxieyu has joined #ruby-lang
krohrbaugh has joined #ruby-lang
saxieyu has quit [Client Quit]
tonni has joined #ruby-lang
mrsolo has joined #ruby-lang
saxieyu has joined #ruby-lang
shiningblue has joined #ruby-lang
thone has joined #ruby-lang
gregmoreno has joined #ruby-lang
saxieyu has quit [Client Quit]
thone_ has quit [Ping timeout: 255 seconds]
Hauleth has quit [Ping timeout: 272 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
riffraff has quit [Quit: Leaving]
Wildhoney has quit [Ping timeout: 264 seconds]
neverminding has quit [Quit: neverminding]
<naquad> is there any way to enable backtrace for SystemStackError
<naquad> ?
apeiros_ has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
imajes has quit [Excess Flood]
<jaimef> hmm
jonahR has quit [Quit: jonahR]
<jaimef> Digest::MD5.hexdigest("a") => "0cc175b9c0f1b6a831c399e269772661" if I add a [results].pack("H*") what does that do? double hex encode it?
<jaimef>
Hauleth has joined #ruby-lang
jonahR has joined #ruby-lang
<jaimef> i.e. [Digest::MD5.hexdigest("a")].pack("H*")
<apeiros_> no, it packs it into a binary string
imajes has joined #ruby-lang
<jaimef> ahh ok
<apeiros_> "0cc175b9c0f1b6a831c399e269772661".size # => 32
<apeiros_> after .pack it'll be 16
<apeiros_> also: don't use md5, it's not secure.
<jaimef> ["0cc175b9c0f1b6a831c399e269772661"].pack("H*") => "\f\301u\271\300\361\266\2501\303\231\342iw&a"
<jaimef> I see
<apeiros_> and if you don't use it for something which is supposed to be secure:
<jaimef> replacing some code that has nothing to do with security
<apeiros_> don't use md5, it's not fast
<jaimef> just needs to be compat
<injekt> is erubis still about a billion times faster than erb? (excusing the exagheration)
<injekt> exaggeration*
<apeiros_> injekt: a few years ago it was supposed to be
yalue has joined #ruby-lang
<CoverSlide> what about crc32?
<apeiros_> no idea whether it still is
<injekt> yeah
<apeiros_> CoverSlide: that's fast
<jaimef> so this is changing base to hex from bin. base 10 -> base16 ok thanks
<apeiros_> (and not meant for secure applications)
<apeiros_> jaimef: um, no
<CoverSlide> naturally
forrest has joined #ruby-lang
kevinfagan has quit [Ping timeout: 245 seconds]
<zzak> naquad: use Kernel#caller
<jaimef> apeiros_: it packs it into binary string.
<apeiros_> yes
<jaimef> is there a different name for it?
tonni has quit [Read error: Connection reset by peer]
<jaimef> apeiros_: thanks. that should work.
<jaimef> implementing it in a different lang
<apeiros_> I actually wondered how to properly say that
wasserspiegel has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
<apeiros_> "it packs a hex-representation of a number into actual bytes" maybe
kristofferrr has joined #ruby-lang
<apeiros_> because "ff" is a hex representation of the number 255, "255" is a decimal representation of the number 255, "\xff" is the value encoded in bytes. the last one… not sure whether that's said correctly…
<naquad> zzak, thanks
solars has joined #ruby-lang
workmad3 has quit [Ping timeout: 276 seconds]
io_syl has joined #ruby-lang
Hauleth has quit [Quit: Wychodzi]
hahuang65_ has joined #ruby-lang
_protagoras271_ has quit [Remote host closed the connection]
kogent has joined #ruby-lang
dzhulk has joined #ruby-lang
jsilver has quit [Remote host closed the connection]
dpatel has quit [Quit: dpatel]
hackeron has joined #ruby-lang
jmaya has joined #ruby-lang
ottbot has quit [Ping timeout: 240 seconds]
dzhulk has quit [Quit: Leaving.]
mr_white_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
ddv has quit [Changing host]
ddv has joined #ruby-lang
krohrbaugh has joined #ruby-lang
mistym is now known as mistym_lunch
<jaimef> apeiros_: conver hexadecimal string to byte array?
jsilver has joined #ruby-lang
retro|cz has quit [Ping timeout: 272 seconds]
neverminding has joined #ruby-lang
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
cultureulterior_ has quit [Quit: cultureulterior_]
chendo__ has joined #ruby-lang
nXqd has joined #ruby-lang
dankest has quit [Quit: Leaving...]
<neverminding> Does 'gem list' look at the GEM_PATH for the actual gem install folder or just the .gempec file?
ryanf has quit [Quit: leaving]
freedrull has joined #ruby-lang
justinseiter has quit [Ping timeout: 272 seconds]
chendo__ has quit [Ping timeout: 252 seconds]
swav has quit [Remote host closed the connection]
unix has joined #ruby-lang
sush24 has quit [Quit: Leaving]
Bosox20051 has joined #ruby-lang
bantic has joined #ruby-lang
jmaya has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<jaimef> worth a try
io_syl has quit [Ping timeout: 252 seconds]
jsilver has quit [Remote host closed the connection]
<neverminding> I think it does. If I delete a gem's install folder manually, `gem list` will show report it until the .gemspec file is deleted as well.
io_syl has joined #ruby-lang
vlad_starkov has joined #ruby-lang
sush24 has joined #ruby-lang
xalei has joined #ruby-lang
xalei_ has joined #ruby-lang
kristofferrr has quit [Quit: ❤]
kuja has quit [Read error: Operation timed out]
justinseiter has joined #ruby-lang
geopet_ has joined #ruby-lang
brianpWins has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
geopet_ has quit [Read error: Connection reset by peer]
geopet__ has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
geopet has quit [Ping timeout: 248 seconds]
geopet__ is now known as geopet
bantic has quit [Quit: bantic]
krohrbaugh has joined #ruby-lang
breakingthings has joined #ruby-lang
vlad_starkov has joined #ruby-lang
krohrbaugh has quit [Client Quit]
dankest has joined #ruby-lang
dzhulk has joined #ruby-lang
KA_ has quit [Quit: KA_]
schaerli has joined #ruby-lang
maxmanders has joined #ruby-lang
kevinfagan has joined #ruby-lang
soypirate has quit [Ping timeout: 276 seconds]
Polish_ has joined #ruby-lang
mercwithamouth has joined #ruby-lang
xalei_ has quit [Quit: Leaving]
Polish_ has quit [Client Quit]
maxmanders has quit [Ping timeout: 248 seconds]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
banisterfiend has joined #ruby-lang
maxmanders has joined #ruby-lang
jtoy has joined #ruby-lang
xcombelle has quit [Remote host closed the connection]
Stilo has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
mistym_lunch is now known as mistym
psyomn has joined #ruby-lang
workmad3 has joined #ruby-lang
hackeron_ has joined #ruby-lang
seoaqua has quit [Ping timeout: 255 seconds]
<injekt> neverminding: Gem::Specification.find_all { |s| s.name =~ /pry/ }.map(&:name)
<injekt> => ["pry", "pry-rails"]
hackeron has quit [Ping timeout: 264 seconds]
<injekt> that's what rubygems does under the hood
breakingthings has quit []
<neverminding> Weird that it will list the gem but actually trying to do anything with it throws an error because the install folder is missing.
maxmanders has quit [Ping timeout: 248 seconds]
<neverminding> But not it makes sense and I know not to manually delete a gem's folder =)
ryanf has joined #ruby-lang
bantic has joined #ruby-lang
<injekt> eh, how does that not make sense?
maxmanders has joined #ruby-lang
swav has joined #ruby-lang
<injekt> you shouldn't delete anything manually
jsaak has quit [Ping timeout: 255 seconds]
<injekt> neverminding: gem remove and gem install should be fine
chendo__ has joined #ruby-lang
Bosox20051 has quit [Remote host closed the connection]
pr0ton has quit [Quit: pr0ton]
chendo__ has quit [Ping timeout: 252 seconds]
<neverminding> It makes sense now, but for a beginner (like me) it's seems weird that the wrapper has been deleted and thus you can;t use any commands (even gem uninstall which returns a "not found" error) yet gem list still says it's there.
<injekt> neverminding: why would you remove anything manually?
rippa has quit [Ping timeout: 240 seconds]
workmad3 has quit [Read error: Connection reset by peer]
breakingthings has joined #ruby-lang
<neverminding> Because I'm new at this. I jacked up some rvm gemsets and was kicking the tires to better understand how ruby-gems, gemsets and bundler interact in the context of rvm. I like to dig until I understand something.
<injekt> ah ok rvm overrides those commands anyway iirc
<mehwork> you can uninstall by removing the gems from your Gemfile and rerunning bundle install
<injekt> which of the many many reasons i dont use rvm
<injekt> neverminding: if you use a package manager, you should never manually remove anything the package manager manages
shiningblue1 has joined #ruby-lang
shiningblue1 has quit [Read error: Connection reset by peer]
shiningblue has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
shiningblue has joined #ruby-lang
xalei has quit [Quit: Leaving]
<neverminding> That was the problem that led to me start digging. The GEM_PATH/lib folders were all deleted (manually), yet running `bundler install` kept reporting it was using the gems it thought were still installed.
psyomn has quit [Quit: leaving]
sandbags has quit [Remote host closed the connection]
antbody has quit [Ping timeout: 264 seconds]
hackeron_ has quit [Ping timeout: 264 seconds]
<neverminding> Lesson learned. Always the respective package manager and/or `gem remove`
geopet has quit [Quit: geopet]
shiningblue has quit [Read error: Connection reset by peer]
krohrbaugh has joined #ruby-lang
hackeron has joined #ruby-lang
shiningblue has joined #ruby-lang
jsaak has joined #ruby-lang
tonni has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
unix has quit [Quit: WeeChat 0.4.0]
kuja has joined #ruby-lang
sebastiansier has quit [Remote host closed the connection]
s0ber has quit [Read error: Connection reset by peer]
s0ber has joined #ruby-lang
nkr has quit [Quit: Linkinus - http://linkinus.com]
banisterfiend has quit [Read error: Connection reset by peer]
benanne has joined #ruby-lang
banisterfiend has joined #ruby-lang
pr0ton has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
pr0ton has quit [Client Quit]
kgrz has quit [Ping timeout: 252 seconds]
RobertBirnie has quit [Quit: RobertBirnie]
kgrz has joined #ruby-lang
wasserspiegel has quit [Quit: wasserspiegel]
dankest has quit [Quit: Linkinus - http://linkinus.com]
hackeron_ has joined #ruby-lang
justinseiter has quit [Ping timeout: 244 seconds]
hackeron has quit [Read error: Connection reset by peer]
banisterfiend has quit [Remote host closed the connection]
neverminding has quit [Quit: neverminding]
chendo__ has joined #ruby-lang
woollyams has joined #ruby-lang
chendo__ has quit [Ping timeout: 252 seconds]
woollyams has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 248 seconds]
JohnBat26 has quit [Ping timeout: 252 seconds]
justinseiter has joined #ruby-lang
RobertBirnie has joined #ruby-lang
glebm has joined #ruby-lang
iamjarvo has joined #ruby-lang
jcf has joined #ruby-lang
nachtwandler has quit [Remote host closed the connection]
headius has joined #ruby-lang
mercwithamouth has joined #ruby-lang
headius has quit [Client Quit]
pr0ton has joined #ruby-lang
headius has joined #ruby-lang
hackeron_ has quit [Ping timeout: 252 seconds]
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
<yorickpeterse> what is this shit, I play vidya games for a bit and now Twitter is full of hackers drama and tweets about micro controllers and raspberry pis
kgrz has quit [Quit: Computer has gone to sleep.]
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
jcf has quit [Quit: Adios!]
<yorickpeterse> aha, it's about violetblue doing a sex related talk on a security conf
<yorickpeterse> right
tonni has quit [Remote host closed the connection]
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
gustavnils has quit [Quit: Textual IRC Client: www.textualapp.com]
Stilo has joined #ruby-lang
krohrbaugh has quit [Client Quit]
cmckni3 has joined #ruby-lang
krohrbaugh has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
bluepojo has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 252 seconds]
havenn has joined #ruby-lang
geopet has joined #ruby-lang
klebervirgilio has quit [Remote host closed the connection]
klebervirgilio has joined #ruby-lang
neverminding has joined #ruby-lang
rockets has joined #ruby-lang
neverminding has quit [Client Quit]
carloslopes has quit [Remote host closed the connection]
<andrewvos> left
klebervi_ has joined #ruby-lang
mr_white_ has quit [Remote host closed the connection]
chendo__ has joined #ruby-lang
klebervirgilio has quit [Ping timeout: 240 seconds]
wmoxam has quit [Ping timeout: 252 seconds]
tenderlove has joined #ruby-lang
KA_ has joined #ruby-lang
mercwithamouth has joined #ruby-lang
chendo__ has quit [Ping timeout: 252 seconds]
sailias has quit [Ping timeout: 276 seconds]
kgrz has joined #ruby-lang
jxie has quit [Read error: Operation timed out]
krohrbaugh has quit [Quit: Leaving.]
ottbot has joined #ruby-lang
beiter has joined #ruby-lang
KA_ has quit [Quit: KA_]
krohrbaugh has joined #ruby-lang
kgrz has quit [Ping timeout: 252 seconds]
kazoo has joined #ruby-lang
killfoo has quit [Ping timeout: 244 seconds]
weddingcakes has joined #ruby-lang
slyphon has quit [Ping timeout: 255 seconds]
vlad_starkov has joined #ruby-lang
beiter has quit [Quit: beiter]
kazoo has quit []
havenn has quit [Remote host closed the connection]
beiter has joined #ruby-lang
imajes has quit [Excess Flood]
torrieri has joined #ruby-lang
weddingcakes has quit [Client Quit]
davidbalber|away is now known as davidbalbert
imajes has joined #ruby-lang
iamjarvo has quit [Quit: Leaving.]
scampbell has quit [Remote host closed the connection]
fsvehla has joined #ruby-lang
reppard has joined #ruby-lang
snarfmason has joined #ruby-lang
beho has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 256 seconds]
tonni has joined #ruby-lang
wardrop has joined #ruby-lang
skipper has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
wmoxam has joined #ruby-lang
chendo__ has joined #ruby-lang
skye has joined #ruby-lang
fsvehla has quit [Quit: fsvehla]
skye is now known as Guest50623
mjio has joined #ruby-lang
Guest50623 has quit [Client Quit]
krohrbaugh has quit [Quit: Leaving.]
krohrbaugh has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 248 seconds]
<jaimef> "key value 1234\n string\nwithlines".each_line.first.split.last => 1234 # something cleaner than this?
agile has joined #ruby-lang
skade has joined #ruby-lang
postmodern has joined #ruby-lang
spuk has joined #ruby-lang
rockets_ has joined #ruby-lang
pasties has quit [Ping timeout: 244 seconds]
jacktrick has joined #ruby-lang
<chris2> lines.first perhaps
pasties has joined #ruby-lang
chendo__ has quit [Quit: Computer has gone to sleep.]
rockets has quit [Ping timeout: 264 seconds]
__BigO__ has quit [Remote host closed the connection]
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
JosephRuby has quit [Ping timeout: 272 seconds]
<drbrain> each_line creates an Enumerator which may be important for large strings
<apeiros_> lines == each_line (until 2.0)
<drbrain> str =~ /\A.*?(\S+)$/
<drbrain> apeiros_: oh right!
<apeiros_> that change is a good one
<apeiros_> always surprised me that lines.class != Array
jbsan has joined #ruby-lang
<drbrain> or str[/\A.*?(\S+)$/, 1]
<apeiros_> str[/\S*$/]
benanne has quit [Quit: kbai]
<drbrain> nice
<apeiros_> does split default to /\x20/ or to /\s/?
* apeiros_ never uses defaults with such things…
breakingthings has quit []
forrest has quit [Quit: Leaving]
blacktulip has quit [Remote host closed the connection]
AndChat| has joined #ruby-lang
justinra_ has joined #ruby-lang
justinram has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 255 seconds]
jonahR has quit [Quit: jonahR]
rockets_ has quit [Remote host closed the connection]
<drbrain> apeiros_: $;
<drbrain> (not a particularly useful answer)
rockets has joined #ruby-lang
<apeiros_> $; is nil
<apeiros_> and it seems to fall back to /\s+/ on nil
klebervi_ has quit [Remote host closed the connection]
klebervirgilio has joined #ruby-lang
gal has joined #ruby-lang
<postmodern> how do you do I. II. style outlines in markdown?
<drbrain> postmodern: for HTML output? I imagine you would use CSS for that
<postmodern> drbrain, must be some way to generate a ol/li for that
<postmodern> drbrain, ah ha right
mercwithamouth has quit [Ping timeout: 256 seconds]
klebervirgilio has quit [Ping timeout: 276 seconds]
jtoy has quit [Quit: jtoy]
RobertBirnie has quit [Quit: RobertBirnie]
agile has quit [Remote host closed the connection]
anonymuse has joined #ruby-lang
<postmodern> would be awesome if kramdown supported markdown->doc conversion
schaerli has quit [Read error: Connection reset by peer]
schaerli_ has joined #ruby-lang
<postmodern> one can dream
<whitequark> postmodern: why do you need that
<postmodern> whitequark, for interacting with the officites
<whitequark> apeiros_: I think split had some quite involved logic in it
<whitequark> hm it's in my browser history
schaerli_ has quit [Remote host closed the connection]
<apeiros_> whitequark: yeah. I usually do .split(/regex/, -1) because that's most often what I want
mistym has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
<zzak> injekt: i love you, but i used optparse.rb for the first time and twice in one week for two separate occasions, and its enjoyable
gal has left #ruby-lang [#ruby-lang]
gal has joined #ruby-lang
<zzak> its my goto for quick and dirty script now
gal has quit [Quit: Page closed]
<zzak> that is my confession for the day
<zzak> carry on
<manveru> zzak: welcome in the club :)
maxmanders has quit [Quit: Computer has gone to sleep.]
<postmodern> zzak, optparse protip, it supports argument type coercion
<postmodern> zzak, on('--foo',Array,...)
<postmodern> zzak, can even define your own types with a Class and a Regex
mercwithamouth has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
justinseiter has quit [Ping timeout: 276 seconds]
swav has quit [Remote host closed the connection]
<zzak> awesome
<zzak> i was calling .to_i before
<drbrain> here's some in RDoc:
reppard has quit [Ping timeout: 256 seconds]
rockets has quit [Remote host closed the connection]
swav has joined #ruby-lang
ddd has quit [Ping timeout: 245 seconds]
beiter has quit [Quit: beiter]
<zzak> very cool
swav has quit [Remote host closed the connection]
<zzak> glad i am not alone
swav has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<zzak> i want to write a little guide on handling exceptions for it in the docs now
gix has quit [Quit: Client exiting]
Stilo has joined #ruby-lang
ddd has joined #ruby-lang
ddd is now known as Guest90390
gix has joined #ruby-lang
lele has quit [Ping timeout: 256 seconds]
krohrbaugh has joined #ruby-lang
charliesome has joined #ruby-lang
solars has quit [Ping timeout: 255 seconds]
lele has joined #ruby-lang
enebo has quit [Quit: enebo]
Bosox20051 has joined #ruby-lang
__butch__ has quit [Remote host closed the connection]
jbsan_ has joined #ruby-lang
jbsan has quit [Ping timeout: 248 seconds]
jbsan_ is now known as jbsan
dustint has quit [Ping timeout: 272 seconds]
pr0ton has quit [Ping timeout: 276 seconds]
torrieri has quit [Quit: Linkinus - http://linkinus.com]
jbsan has quit [Client Quit]
pr0ton has joined #ruby-lang
jtoy has joined #ruby-lang
tomzx_mac has joined #ruby-lang
jxie has joined #ruby-lang
geopet has quit [Quit: geopet]
tdy_ has quit [Quit: WeeChat 0.4.0]
skipper has quit [Remote host closed the connection]
[[johnonymous]] has quit [Quit: Computer has gone to sleep.]
tdy_ has joined #ruby-lang
sockmonk has quit [Ping timeout: 256 seconds]
__BigO__ has joined #ruby-lang