apeiros changed the topic of #ruby to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
macmartine has joined #ruby
mengu has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
thyagobr has quit [Quit: thyagobr has no reason]
sam113101 has quit [Quit: WeeChat 0.4.3-dev]
dangerousdave has quit [Ping timeout: 246 seconds]
droptone has quit [Ping timeout: 260 seconds]
randomnick_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
madb055 has quit [Read error: Connection reset by peer]
fuhgeddaboudit has joined #ruby
freakazoid0223 has joined #ruby
sam113101 has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Monie has quit [Ping timeout: 246 seconds]
simoz2 has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
AlSquire has quit [Quit: This computer has gone to sleep]
amacgregor has quit [Read error: Connection reset by peer]
madb055 has joined #ruby
mjs2600 has quit [Remote host closed the connection]
hiroyuki has quit [Read error: Connection reset by peer]
freezey has joined #ruby
simoz has quit [Ping timeout: 272 seconds]
threesome has quit [Ping timeout: 248 seconds]
macmartine has quit [Remote host closed the connection]
otherj has joined #ruby
mjs2600 has joined #ruby
mweshi has joined #ruby
weszlem has quit []
mmcdaris has quit [Quit: mmcdaris]
<shevy> Apane for x in y is thinking differently to container objects in ruby, in where you can just iterate over them, using .each or .each_with_index
Shidash has quit [Ping timeout: 260 seconds]
fridim_ has joined #ruby
Solnse has quit [Ping timeout: 252 seconds]
snuffeluffegus has quit [Remote host closed the connection]
jerius has joined #ruby
m8 has quit [Quit: Sto andando via]
Ox6abe has joined #ruby
cafhacker has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jerius has quit [Client Quit]
petey__ has quit []
mjs2600 has quit [Remote host closed the connection]
predator117 has joined #ruby
madb055 has quit [Read error: Connection reset by peer]
eka has joined #ruby
madb055 has joined #ruby
predator217 has quit [Ping timeout: 272 seconds]
bootcoder has quit [Read error: Connection reset by peer]
bootcoder has joined #ruby
fgo has joined #ruby
<Rickmasta> Hey guys. I have a string such as "Blue 9 Green 7 Red 1 Red 6 Red 8". I'm trying to split using a digit. But include the delimeter. So I'm trying to get a result like ["Blue 9", "Green 7", "Red 1", "Red 6", "Red 8"]
<shevy> you can use a regex in .split(//)
iliketurtles has quit [Ping timeout: 245 seconds]
<Rickmasta> I am using split, but with that I get the digits removed. So I get ["Blue", "Green", "Red", "Red", "Red"]
endash_ has quit [Quit: endash_]
<shevy> what regex do you use?
shiney has left #ruby ["Textual IRC Client: www.textualapp.com"]
<bnagy> have you considered scan instead?
Davey has joined #ruby
<bnagy> >> "Blue 9 Green 7 Red 1 Red 6 Red 8".scan(/\w+ \d/)
<eval-in> bnagy => ["Blue 9", "Green 7", "Red 1", "Red 6", "Red 8"] (https://eval.in/69195)
endash_ has joined #ruby
woo_nasty has quit [Quit: leaving]
<bnagy> split with a match group keeps delimeters:
rjhunter has joined #ruby
<bnagy> >> "Blue 9 Green 7 Red 1 Red 6 Red 8".split(/(\d)/)
<eval-in> bnagy => ["Blue ", "9", " Green ", "7", " Red ", "1", " Red ", "6", " Red ", "8"] (https://eval.in/69196)
endash_ has quit [Client Quit]
<bnagy> but note the space trickiness
<Rickmasta> Oh great. Thanks
<Rickmasta> Is that what the w+ is for?
<bnagy> that gets all the word chars (Blue) then a literal space, then a digit
amacgregor has joined #ruby
baroquebobcat has joined #ruby
Vivekananda has quit [Remote host closed the connection]
mengu has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
<havenwood> Or a less-nice non-regex option:
<havenwood> >> "Blue 9 Green 7 Red 1 Red 6 Red 8".split.each_slice(2).map { |color, number| "#{color} #{number}" }
<eval-in> havenwood => ["Blue 9", "Green 7", "Red 1", "Red 6", "Red 8"] (https://eval.in/69197)
<bnagy> havenwood: :) I had this in my irb .split.each_slice(2).map {|a,b| "#{a} #{b}"}
<bnagy> just didn't bother pasting it :)
<havenwood> bnagy: ha :)
Monie has joined #ruby
<bnagy> Rickmasta: 99% of the time I will use a 'primary' tokenising approach ( split on space first etc ) instead of a regexp
<bnagy> it's just better software engineering almost always
<Rickmasta> Well, I then need to parse out things like "Wild" "Wild Draw Four" "Yellow Skip" "Red Reverse", so I was thinking to slice the string after getting my number cards out of the way.
DanKnox_away is now known as DanKnox
mojjojo has quit [Quit: mojjojo]
pskosinski has quit [Quit: Til rivido Idisti!]
<Rickmasta> I'll having to look up exactly what you mean, bnagy. :)
<bnagy> that's a great example
<bnagy> Wild vs Wild Draw Four
subbyyy has quit [Ping timeout: 264 seconds]
<bnagy> only way to do that with regex is lookaheads, which is going to be hell ugly
<bnagy> whereas just tokenising you can build a really simple state machine
<bnagy> like Red - always going to be followed by another token
<Rickmasta> Is possible if you can link me a good read?
<havenwood> Rickmasta: Yeah, split.each_slice(2) is prolly the way to go then. You can do logic based on what the card or color are or aren't
<bnagy> Wild - might need to emit as is, need to peek to be sure
<havenwood> Rickmasta: Though... are they always pairs?
Ox6abe has quit [Ping timeout: 240 seconds]
<bnagy> no, Wild Draw Four
<havenwood> Seems a design problems that a run-on string like that is ever happening.
<Rickmasta> There's also "Wild" and "Wild Draw Four", the only two which aren't pairs.
<bnagy> well blame uno, dude
<havenwood> haha
<Rickmasta> lol
intuxicated has joined #ruby
kirun_ has quit [Quit: Client exiting]
mengu has quit [Ping timeout: 248 seconds]
mary5030_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
ravster has joined #ruby
aspires has joined #ruby
hogeo has joined #ruby
osvico has quit []
devyn has joined #ruby
Jetchisel has joined #ruby
i_s has joined #ruby
freezey has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
mary5030 has quit [Ping timeout: 272 seconds]
cafhacker has joined #ruby
ndngvr has quit [Remote host closed the connection]
ndngvr has joined #ruby
<havenwood> >> [*%w[Red Green Blue Yellow].product(%w[One Two Three Four Five Six Seven Eight Nine Skip Reverse] << 'Draw Two').map { |pair| pair.join ' ' }, *4.times.map { 'Wild' }, *4.times.map { 'Wild Draw Four' }]
<eval-in> havenwood => ["Red One", "Red Two", "Red Three", "Red Four", "Red Five", "Red Six", "Red Seven", "Red Eight", "Red Nine", "Red Skip", "Red Reverse", "Red Draw Two", "Green One", "Green Two", "Green Three", "Green F ... (https://eval.in/69198)
osvico has joined #ruby
<bnagy> havenwood: ohhh, nice
nobitanobi has joined #ruby
<bnagy> so now you can use start_with? and slice
sailias has joined #ruby
ewnd9 has joined #ruby
i_s has quit [Ping timeout: 246 seconds]
iajrz_ has quit [Ping timeout: 245 seconds]
<bnagy> while toks.any? {|card| unparsed.start_with? card} ...
daxroc has joined #ruby
<bnagy> >> %w(e f g).any? {|l| break l if "foooo".start_with? l}
<eval-in> bnagy => "f" (https://eval.in/69199)
iajrz_ has joined #ruby
Evelynn has joined #ruby
iajrz_ has quit [Remote host closed the connection]
<shevy> damn you guys know about 500% than I do
<shevy> can't recall .product before
<Apane> hey guys, having trouble requiring a file in irb, getting a LoadError: i.e LoadError: cannot load such file -- account.rb
<Evelynn> anyone wanna see my cam? http://instaflurt.com/evelyne92/
robustus has quit [Ping timeout: 264 seconds]
ewnd9 has quit [Remote host closed the connection]
<havenwood> lol, i was wondering what type of code a cam would be >.>
EvanR_ has joined #ruby
<havenwood> that type... >.>
ewnd9 has joined #ruby
<Apane> do I have to add something to the account.rb file so it can be required? i.e. a filepath?
iliketurtles has joined #ruby
<havenwood> Apane: `require' does not work relative to your pwd unless you prefix with './', but there is `require_relative`
Evelynn has quit []
<shevy> Apane it depends on where the file is. if you install things as part of a project, then NAME_OF_PROJECT/filename_here.rb would work with require alone
<havenwood> Apane: require './account'; #or; require_relative 'account'
orangerobot has joined #ruby
caesura has joined #ruby
robustus has joined #ruby
<orangerobot> hi i've just install cucumber gem. rake -T shows no tasks related to cucumber, is that ok?
<Apane> thanks shevy, havenwood - perfect
ckinni has joined #ruby
<bnagy> oh that any? break is bad, just use find
coderhs has quit [Ping timeout: 246 seconds]
freezey has joined #ruby
<rjhunter> bnagy: %w[e f g].detect {|l| "fooo".start_with? l}
<Rickmasta> So I've parsed out all of the other cards and only have left to parse out "Wild" and "Wild Draw Four"
<bnagy> rjhunter: yeah find / detect same same
<rjhunter> bnagy: yeah i'd sent that before i saw your 'find' comment
<bnagy> then you can do unparsed["#{card} "]='' and keep looping
banister has joined #ruby
<bnagy> or sub...
estebistec has joined #ruby
agent_white has joined #ruby
ewnd9 has quit [Remote host closed the connection]
nwertman has quit [Ping timeout: 268 seconds]
tkuchiki has joined #ruby
ewnd9 has joined #ruby
nobitanobi has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
mjs2600 has joined #ruby
tonni_ has joined #ruby
zz_tsykoduk is now known as tsykoduk
jeremywrowe has joined #ruby
dcope has quit [Quit: leaving]
kobain has joined #ruby
jerius has joined #ruby
sevenseacat has joined #ruby
tonni has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
ewnd9 has quit [Remote host closed the connection]
ewnd9 has joined #ruby
mjs2600 has quit [Remote host closed the connection]
rjhunter has quit [Remote host closed the connection]
caesura has quit [Quit: This computer has gone to sleep]
<orangerobot> are webrat and capybara analogous? are they alternatives?
Davey has quit [Quit: Computer has gone to sleep.]
<sevenseacat> not many folk would use webrat anymorte
estebistec has quit [Remote host closed the connection]
simplyaubs has joined #ruby
simplyaubs has quit [Client Quit]
<bkparso> Webrat is old school
<havenwood> i guess `*Array.new(4) { 'Wild' }` is nicer than `4.times.map { 'Wild' }`, though i think lesser-used
<havenwood> *4.**
<havenwood> no unnecessary enumerable without loss of clarity
marr has quit [Ping timeout: 246 seconds]
tsykoduk is now known as zz_tsykoduk
jerius has quit [Quit: Computer has gone to sleep.]
jeremywrowe has quit [Ping timeout: 246 seconds]
david has joined #ruby
baroquebobcat has joined #ruby
<havenwood> less time and memory anyways
david is now known as Guest44796
jeremywrowe has joined #ruby
coderhs has joined #ruby
<havenwood> 1000 Array.new(4) at 1.403 ms compared to 4.times.map at 2.209 ms.
kitak has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
kitak has joined #ruby
Guest44796 is now known as davidruan
davidruan is now known as dfish
cafhacker has quit [Quit: Textual IRC Client: www.textualapp.com]
jeremywrowe has quit [Ping timeout: 246 seconds]
dfish has quit [Quit: WeeChat 0.4.0]
iliketurtles has quit [Ping timeout: 246 seconds]
dfish has joined #ruby
hamakn has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
Shidash has joined #ruby
gazarsgo has quit [Quit: gazarsgo]
dagnachew has joined #ruby
reset has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iliketurtles has joined #ruby
Vivekananda has joined #ruby
sambao21 has quit [Ping timeout: 272 seconds]
ewnd9 has quit [Ping timeout: 272 seconds]
SiliconDon has joined #ruby
classix has quit [Read error: Operation timed out]
lolmaus has quit []
DanKnox is now known as DanKnox_away
gazarsgo has joined #ruby
classix has joined #ruby
madb055 has quit [Ping timeout: 246 seconds]
pragmatism has quit [Quit: Leaving...]
hamakn has joined #ruby
havenwood has quit [Remote host closed the connection]
dnyy has quit []
Ziarkaen has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
ckinni has joined #ruby
dfish has quit [Ping timeout: 245 seconds]
SiliconDon has quit [Client Quit]
burgess|vayo has joined #ruby
wallerdev has joined #ruby
amacgregor has quit [Ping timeout: 245 seconds]
amacgregor_ has joined #ruby
mercwithamouth has joined #ruby
Ox6abe has joined #ruby
bkparso has quit [Quit: bkparso]
havenwood has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
dhruvasagar has joined #ruby
z_ has joined #ruby
<Rickmasta> Hey guys. So I have a string like "WILD WILD WILD draw four WILD", how would I go about seperating them? I'd want an output like ["WILD, "WILD", "WILD draw four", "WILD].
<sevenseacat> uno!
* sevenseacat wins
Shidash has quit [Quit: Leaving.]
<Rickmasta> :D
Shidash has joined #ruby
z_ is now known as z
Ox6abe has quit [Ping timeout: 245 seconds]
DonRichie has quit [Ping timeout: 245 seconds]
DonRichie has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
dagnachew has quit [Quit: Leaving]
Shidash1 has joined #ruby
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
danshultz has joined #ruby
bkparso has joined #ruby
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
dfish has joined #ruby
<jrobeson> Rickmasta, read the string class docs
bkparso has quit [Client Quit]
Lewix has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
havenwood has joined #ruby
larissa has joined #ruby
Shidash1 has quit [Read error: Connection reset by peer]
Hanmac has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby
dfish has quit [Ping timeout: 246 seconds]
Hanmac has joined #ruby
Shidash has joined #ruby
dnyy has joined #ruby
reset has quit [Quit: Leaving...]
Swizzy_ has left #ruby [#ruby]
io_syl has quit []
iliketurtles has quit [Quit: zzzzz…..]
nobitanobi has joined #ruby
derebos has quit [Quit: Leaving]
vlad_starkov has joined #ruby
EvanR_ has quit [Ping timeout: 245 seconds]
hogeo has quit [Remote host closed the connection]
zz_tsykoduk is now known as tsykoduk
Shidash has quit [Read error: Connection reset by peer]
EvanR has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
EvanR is now known as Guest27654
vlad_starkov has quit [Ping timeout: 272 seconds]
Lewix has quit [Remote host closed the connection]
vansteenb has quit [Remote host closed the connection]
hoener has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
hogeo has joined #ruby
falood has joined #ruby
mweshi has quit [Quit: mweshi]
dcope has joined #ruby
N00D has joined #ruby
<dcope> hey all, i'm trying to determine a response code from a net/http get_response call
iliketurtles has joined #ruby
echevemaster has joined #ruby
<dcope> i see the suggested way is to check the type of the response in a case block.. ie case res when Net::HTTPRedirection ... etc.
<dcope> is it possible for this to work for the Nxx types? ie, httpredirection, httpsuccess
tsykoduk is now known as zz_tsykoduk
havenwood has quit [Ping timeout: 272 seconds]
dfish has joined #ruby
CaptainJet has quit [Ping timeout: 264 seconds]
robonerd is now known as testr0n
amacgregor has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
ravster has quit [Quit: Leaving.]
Hanmac1 has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
<zzak> dcope: see Net::HTTPResponse#code
<zzak> dcope: this might help too: https://gist.github.com/zzak/7521490
mercwithamouth has joined #ruby
<dcope> zzak: yeah, i've got that part fine
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
<dcope> the part i'm wondering about is determining the actual response
estebistec has joined #ruby
<zzak> get_response returns the response object too i think
rjhunter has joined #ruby
<dcope> see that following response section?
Spami has quit [Quit: This computer has gone to sleep]
<dcope> it seems like when the response code is "200" the type is *not* HTTPSuccess
<dcope> why is this?
radic has joined #ruby
<zzak> you mean "following redirection"?
<dcope> zzak: yes
<dcope> oh they're type checking the actual response, not the code
<dcope> lol
<dcope> yay for having a second set of eyes take a look
<zzak> the response type classes are just subclasses of HTTPResponse
<dcope> yeah, sorry, i got confused for a sec. got it now though. thanks
<zzak> you can check both, class or code, shouldnt matter afaik
<zzak> np
hogeo has quit [Remote host closed the connection]
<rjhunter> that just reminds me of the late-90s search engine that used to reply HTTP/1.1 200 HowdyPardner
Naoe-Kanno has quit [Quit: ネウロイを負かさなきゃならないね]
thelorax123 has quit [Remote host closed the connection]
testr0n is now known as robonerd
bugsinlights has quit [Remote host closed the connection]
bugsinlights has joined #ruby
thelorax123 has joined #ruby
<rjhunter> nothing out of spec about using the reason phrase "HowdyPardner" instead of "OK", but it's the only time I've seen a localised HTTP reason phrase it in the wild
Spami has joined #ruby
hogeo has joined #ruby
jeremywrowe has joined #ruby
jeremywrowe has joined #ruby
jeremywrowe has quit [Changing host]
reset has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<nobitanobi> :q
nobitanobi has quit [Remote host closed the connection]
endash has quit [Quit: endash]
reset has quit [Ping timeout: 272 seconds]
ringaroses has quit [Ping timeout: 252 seconds]
baroquebobcat has joined #ruby
amacgregor_ has joined #ruby
Hanmac has joined #ruby
baroquebobcat has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
Hanmac1 has quit [Ping timeout: 252 seconds]
amacgregor has quit [Ping timeout: 245 seconds]
varfoo has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
vlad_starkov has joined #ruby
mweshi has joined #ruby
RichardBaker has joined #ruby
ThinkRusty87 has joined #ruby
otherj has quit []
bootcoder has quit [Read error: Connection reset by peer]
ThinkRusty87 has quit [Killed (idoru (Spam is off topic on freenode.))]
vlad_starkov has quit [Ping timeout: 272 seconds]
bootcoder has joined #ruby
danshultz has quit [Remote host closed the connection]
sandeepk has joined #ruby
danshultz has joined #ruby
platzhirsch has quit [Ping timeout: 246 seconds]
Guest27654 has quit [Ping timeout: 245 seconds]
Aryasam has joined #ruby
danshultz has quit [Ping timeout: 246 seconds]
sandeepk has quit [Read error: Connection reset by peer]
sandeepk has joined #ruby
jerius has joined #ruby
Ripp__ has quit []
havenwood has joined #ruby
jeremywrowe has quit [Ping timeout: 240 seconds]
banister has quit [Ping timeout: 246 seconds]
jerius has quit [Ping timeout: 240 seconds]
jmaya has joined #ruby
radic has quit [Ping timeout: 245 seconds]
jmaya has quit [Client Quit]
orangerobot has quit [Quit: Page closed]
gazarsgo has quit [Quit: gazarsgo]
platzhirsch has joined #ruby
thelorax123 has quit [Remote host closed the connection]
dhruvasagar has quit [Read error: Operation timed out]
aagdbl has quit [Quit: This computer has gone to sleep]
thelorax123 has joined #ruby
thelorax123 has quit [Remote host closed the connection]
nobitanobi has joined #ruby
<nobitanobi> hello
thelorax123 has joined #ruby
Guest99863 has joined #ruby
Guest99863 has quit [Client Quit]
taternuts has quit []
Reach has joined #ruby
reset has joined #ruby
Hanmac1 has joined #ruby
rickruby has quit [Remote host closed the connection]
rickruby has joined #ruby
closures999 has joined #ruby
Apane has quit [Ping timeout: 272 seconds]
psyl0n has quit [Ping timeout: 246 seconds]
Aryasam has quit [Read error: Connection reset by peer]
Hanmac has quit [Ping timeout: 245 seconds]
soba has joined #ruby
Aryasam has joined #ruby
theRoUS|afk has quit [Ping timeout: 252 seconds]
reset has quit [Ping timeout: 272 seconds]
rickruby has quit [Ping timeout: 272 seconds]
mweshi has quit [Quit: mweshi]
Aryasam has quit [Ping timeout: 252 seconds]
Aryasam has joined #ruby
Clooth has quit [Read error: Connection reset by peer]
Clooth has joined #ruby
sandeepk has quit [Read error: Connection reset by peer]
Aryasam has quit [Ping timeout: 252 seconds]
daxroc has quit [Quit: Leaving.]
Clooth has quit [Read error: Connection reset by peer]
ananthakumaran has joined #ruby
mengu has joined #ruby
Apane has joined #ruby
theRoUS|afk has joined #ruby
vlad_starkov has joined #ruby
chomskiii has quit [Read error: Connection reset by peer]
mengu has quit [Ping timeout: 265 seconds]
chomskiii has joined #ruby
Lewix has joined #ruby
zz_tsykoduk is now known as tsykoduk
EvanR has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
EvanR is now known as Guest27558
bttf has joined #ruby
<bttf> hello, i compiled ruby before installing libopenssl-ruby on my ubuntu machine ... i installed the library and re-compiled, but the command to test for the library still fails
<bttf> what could be causing this?
IceDragon has quit [Quit: Space~~~]
estebistec has quit [Remote host closed the connection]
bassclef has quit [Ping timeout: 245 seconds]
<rjhunter> bttf: it's more likely to need libopenssl-devel (or -dev or something similar) than -ruby
tsykoduk is now known as zz_tsykoduk
capicue has joined #ruby
<rjhunter> the -devel packages contain the C header files and similar things needed to compile stuff against a library
havenwood has quit [Remote host closed the connection]
<bttf> thx rjhunter
bttf has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
bttf has joined #ruby
lukec has quit [Quit: lukec]
closures999 has quit []
macmartine has joined #ruby
jxf has joined #ruby
burgess|vayo has quit [Quit: ^zzz]
Bira has quit []
daxroc has joined #ruby
danshultz has joined #ruby
bluOxigen has joined #ruby
i_s has joined #ruby
freezey has joined #ruby
rickruby has joined #ruby
baroquebobcat has joined #ruby
sailias has quit [Ping timeout: 272 seconds]
zastern has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
daxroc has quit [Ping timeout: 265 seconds]
<zastern> ANybody know where ruby-build (for rbenv) keeps its list of rubies it can install?
<zastern> mine is fully upgraded and not listing the latest
rickruby has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
<rjhunter> zastern: on my Mac (with Homebrew), I see build recipe files in /usr/local/Cellar/ruby-build/20131008/share/ruby-build/
<zastern> see thats weird
<zastern> im misisng the latest ruby 2.0.0 in mine
<zastern> not on my other macs though
<zastern> only this one
<zastern> I have 2.0.0-p0 but not -p247
baroquebobcat has quit [Client Quit]
<rjhunter> is ruby-build installed with the same mechanism on each?
<zastern> yes.
<zastern> brew install on each
crazysim_ has quit [Excess Flood]
daxroc has joined #ruby
<rjhunter> `brew update` and `brew upgrade ruby-build` ?
<zastern> this happened to me once before and i had to totally implode rbenv and ruby-build to fix it :(
<jrobeson> rvm has the impode command..
crazysim has joined #ruby
<zastern> rjhunter: ah yeah that's it! i forgot on my other macs I have a cronjob that brew updates
<zastern> jrobeson: I was speaking metaphorically
<jrobeson> evil rvm :(
<zastern> rjhunter: on this one brew doesnt know about the latest ruby-build yet
<zastern> i should put in that cronjob
jkhwan has joined #ruby
Alina-malina has quit [Ping timeout: 264 seconds]
<zastern> problem solved, im an idiot
<zastern> thanks fellas.
reset has joined #ruby
<rjhunter> zastern: :-)
Alina-malina has joined #ruby
Hanmac1 has quit [Ping timeout: 272 seconds]
freezey has quit [Remote host closed the connection]
<nobitanobi> How do you call a @var that is inside a Class scope?
daxroc has quit [Ping timeout: 264 seconds]
daxroc1 has joined #ruby
unstable has joined #ruby
<bnagy> class instance variable
sandeepk has joined #ruby
z has quit [Quit: Lost terminal]
robonerd is now known as testr0n
RobW_ has joined #ruby
<nobitanobi> bnagy, so we can have class instance variables (@var), and class variables (@@var) - right?
<nobitanobi> since class are objects, they can have instance variables (@var).
<nobitanobi> I am wondering why @@var is useful though
<bnagy> it seldom is
Hanmac has joined #ruby
szarubin has joined #ruby
<RobW_> For any capybara users: is there a way to filter selectors inside expect()? E.g. `expect( find(selector_1).find(selector_2) ).to my_custom_matcher`
<bnagy> 95% of the time you see it it's because the programmer couldn't work out scope and visibility and flipped the table
<nobitanobi> uhm bnagy
<nobitanobi> ok
ziyadb has joined #ruby
psyprus has quit [Read error: Connection reset by peer]
psyprus has joined #ruby
yacks has quit [Quit: Leaving]
<rjhunter> RobW_: if I understand you correctly, you already have a solution
<rjhunter> RobW_: which makes me think I don't understand you correctly ;-)
<RobW_> rjhunter: I tried that exact code and got `The browser raised a syntax error while trying to evaluate the selector`
<RobW_> But maybe something different is happening because I'm not too familiar with capybara
<rjhunter> RobW_: are the selectors built-in ones or custom?
<RobW_> rjhunter: Custom
havenwood has joined #ruby
aspires has quit [Quit: sudo making a sandwich]
gstamp has quit [Read error: Connection reset by peer]
zarubin has quit [Read error: Connection reset by peer]
karupanerura has quit [Ping timeout: 256 seconds]
cibs has quit [Ping timeout: 256 seconds]
eshy has quit [Ping timeout: 256 seconds]
eshy has joined #ruby
cibs has joined #ruby
<agent_white> What is the term for the "->" operator in Ruby?
<RobW_> So I have two custom selectors in a selectors hash in module CustomSelectors, and in an expect() I want to find one inside the other.
zz_karupanerura has joined #ruby
gstamp has joined #ruby
<RobW_> And then check a matcher
<rjhunter> agent_white: "lambda"
Lewix has quit [Remote host closed the connection]
<agent_white> rjhunter: Thank you!
zz_karupanerura is now known as karupanerura
jkhwan has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
jkhwan has joined #ruby
lewis has joined #ruby
lewis has joined #ruby
lewis has quit [Changing host]
<rjhunter> RobW_: nesting selectors should work just fine. perhaps they're implemented in a non-standard way? (although I haven't used Capybara for a while so i guess it's possible things have changed.)
<RobW_> rjhunter: Possible. I'll try with just selectors and see what that gets me.
<jrobeson> agent_white, poeple call that the "stabby lambda"
<RobW_> rjhunter: Yep, looks like something nonstandard is going on here.
jkhwan has quit [Ping timeout: 272 seconds]
daxroc1 has quit [Ping timeout: 265 seconds]
Es0teric has joined #ruby
<zastern> Stupid question: If I want to pass something to my initalize function, I pass it to Class.new right?
<nobitanobi> zastern, yes
<zastern> great, thanks
<nobitanobi> there are no stupid questions
<nobitanobi> :)
<agent_white> jrobeson: I see... just a preference in syntax then?
platzhirsch has quit [Quit: Leaving.]
<jrobeson> agent_white, you mean vs saying lamda { } vs -> { } ?
<agent_white> As opposed to lambda{|x| p x}
<jrobeson> yeah
<agent_white> Ah I see
<agent_white> jrobeson: Thanks for the clarification :)
<jrobeson> you might have also noticed it in coffeescript
<rjhunter> RobW_: at least you've narrowed it down :-) are the custom selectors implemented in terms of the 'css' or 'xpath' helpers?
<jrobeson> rjhunter answered you first tho.. i just figured you'd be reading stuff about ruby and see people say "stabby lambda" . i know i have
dnyy has quit []
Apane has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 252 seconds]
<RobW_> rjhunter: CSS. We have a module called CustomSelectors with a selectors = {} hash in it, and are referencing selectors by their hash key. Not sure if it's a Capy thing or something a team member wrote.
<agent_white> Haha no worries, it through me for a curveball seeing it in some Rails code. Thank you both :)
<RobW_> Assuming it somehow does find on the selectors so doing find on a non-string throws the errors
thesheff17 has quit [Ping timeout: 272 seconds]
<rjhunter> RobW_: also consider expect(my_table).to have_selector(:grand_total)
<RobW_> What's the symbol?
<rjhunter> RobW_: the name of the custom capybara matcher
<RobW_> right. That's what they were doing before, but the matcher was really complex.
<rjhunter> well, it doesn't have to be custom
<rjhunter> oops when i say matcher i mean selector
<RobW_> Trying to simplify this a little, make it less fragile. We have a buch of custom matchers, and there was bleed between the have selector selector and the matchers
<RobW_> (I gotcha)
vlad_starkov has joined #ruby
ananthakumaran has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Guest27558 has quit [Ping timeout: 245 seconds]
DanKnox_away is now known as DanKnox
Hanmac1 has joined #ruby
zz_tsykoduk is now known as tsykoduk
vlad_starkov has quit [Read error: Connection reset by peer]
i_s has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 272 seconds]
sandeepk has quit [Quit: Leaving...]
<rjhunter> RobW_: Are you still having trouble? I'd love to help out, but at this time of day the abstraction is too much. Perhaps a concrete example would help?
felixjet has quit [Read error: Connection reset by peer]
<RobW_> I'm just poking around in here. Within might work but it would add a block.
<RobW_> Sure, where should I paste
<RobW_> ?
felixjet has joined #ruby
<rjhunter> gist.github.com is popular
<RobW_> (yey)!
<RobW_> Within works well
<RobW_> Just a tiny block, but super expressive.
<mr`spock> i should bust in here with nickname 'frosty' and ask how to connect to onion sites using ruby
<RobW_> So I'm doing within(one_custom_selector) do
<RobW_> expect(custom_selector).to custom_matcher
<RobW_> end
* RobW_ fist pumps
<RobW_> That was hard / easy.
radic has joined #ruby
<rjhunter> RobW_: :-)
tsykoduk is now known as zz_tsykoduk
dayepa has quit [Quit: dayepa]
freezey has joined #ruby
phansch has joined #ruby
dayepa1 has joined #ruby
coderhs has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
Alina-malina has joined #ruby
sandeepk has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
kobain has quit []
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
Zeeo has joined #ruby
dhruvasagar has joined #ruby
RobW_ has quit [Quit: RobW_]
jb41 has joined #ruby
EvanR has joined #ruby
mengu has joined #ruby
EvanR is now known as Guest45044
dhruvasagar has quit [Read error: Connection reset by peer]
thelorax123 has quit [Remote host closed the connection]
freezey has quit [Remote host closed the connection]
radic has quit [Remote host closed the connection]
<zastern> Can I set an instance variable in initialize, and override it in other methods in the same class?
<zastern> is that bad?
nazty has quit [Read error: Connection reset by peer]
thelorax123 has joined #ruby
Hanmac has joined #ruby
dhruvasagar has joined #ruby
<nobitanobi> zastern, no. And actually is normal. Instance variables maintain the state of an object
<nobitanobi> zastern, so you initialize them, and then manipulate them however you want.
<zastern> hmm
radic has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
testr0n has quit [Remote host closed the connection]
mengu has quit [Ping timeout: 272 seconds]
<nobitanobi> zastern, what advantage would you have on initializing instance variables if then you can't override or manipulate them?
<zastern> I wouldn't know :)
robonerd has joined #ruby
oddjobsman has joined #ruby
i_s has joined #ruby
aagdbl has joined #ruby
nari has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
rickruby has quit [Remote host closed the connection]
rickruby has joined #ruby
DanBoy has quit [Quit: Leaving]
havenwood has joined #ruby
i_s has quit [Ping timeout: 246 seconds]
amacgregor has joined #ruby
wallerdev has joined #ruby
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
ananthakumaran has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
daxroc has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
<Rickmasta> Hey guys. So I have a array with a bunch if arrays in it. For example: "[["y", "dt"], ["b", "r"], ["r", "r"], ["b", "s"]]"
<Rickmasta> I want to check if that array includes an array that has let's say has a "b" in [0] spot.
Hanmac has quit [Quit: Leaving.]
Hanmac has joined #ruby
Liothen has joined #ruby
lewis has quit [Remote host closed the connection]
daxroc has quit [Ping timeout: 245 seconds]
<existensil> Rickmasta: Hash[your_array]["b"].nil?
<nobitanobi> array.any? { |arr| arr.first == "b" }
Alina-malina has quit [Ping timeout: 240 seconds]
<existensil> Rickmasta: Hash[your_array].key?("b")
<nobitanobi> existensil, why converting to Hash?
<existensil> because it would work :-P
<existensil> your way is technically probably a little faster
Lewix has joined #ruby
<nobitanobi> yup, just wondering why :)
<mr`spock> nobitanobi has a good answer
havenwood has quit [Remote host closed the connection]
<existensil> Rickmasta: use nobitanobi's answer and #find instead of #any? if you also need to get at the matched array
havenwood has joined #ruby
lkba has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
dhruvasagar has joined #ruby
Asher has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
choobie has quit [Ping timeout: 268 seconds]
oddjobsman has quit []
havenwood has quit [Ping timeout: 245 seconds]
Asher has joined #ruby
Asher has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
pranny has joined #ruby
<Rickmasta> Thank you
<Rickmasta> and existensil find will return an array, right?
<existensil> it would return the first match, so ["b", "r"] in your example
sandeepk has quit [Quit: Linkinus - http://linkinus.com]
<Rickmasta> Is there anyway that I can return all that match?
<existensil> >> [["y", "dt"], ["b", "r"], ["r", "r"], ["b", "s"]].select{ |arr| arr.first == "b" }
<eval-in> existensil => [["b", "r"], ["b", "s"]] (https://eval.in/69224)
<existensil> yes ^
Asher has joined #ruby
<Rickmasta> Nice. Thank you
heidi has joined #ruby
echevemaster has quit [Quit: Leaving]
sandeepk has joined #ruby
Jetchisel has joined #ruby
krz has joined #ruby
Guest45044 has quit [Ping timeout: 252 seconds]
benlieb has joined #ruby
vlad_starkov has joined #ruby
<nobitanobi> Why is it possible we can do this? https://gist.github.com/novito/7523423 -- if it's a private method? :O
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby
<sevenseacat> because Test inherits from Object
Alina-malina has joined #ruby
<sevenseacat> so its just calling a method on itself
tylersmi_ has joined #ruby
<nobitanobi> then why this rises undefined method?
<nobitanobi> if Prova inherits from Test
tylersmith has quit [Read error: Connection reset by peer]
radic has quit [Remote host closed the connection]
<sevenseacat> no idea.
vlad_starkov has quit [Remote host closed the connection]
radic has joined #ruby
amacgregor_ has joined #ruby
<nobitanobi> sevenseacat, ok
<nobitanobi> ~
gianlucadv has joined #ruby
DonRichie has quit [Quit: Verlassend]
amacgregor has quit [Ping timeout: 246 seconds]
xcess_denied has joined #ruby
DanBoy has joined #ruby
radic has quit [Remote host closed the connection]
jkhwan has joined #ruby
radic has joined #ruby
phansch has quit [Quit: Leaving]
Kabaka has quit [Remote host closed the connection]
intuxicated has quit [Ping timeout: 264 seconds]
DonRichie has joined #ruby
Hanmac1 has joined #ruby
<shevy> ~|
brandonblack has quit [Quit: IRCRelay - http://ircrelay.com]
Hanmac has quit [Ping timeout: 272 seconds]
intuxicated has joined #ruby
brandonblack has joined #ruby
ayaz has joined #ruby
jkhwan has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
bugsinlights has quit [Remote host closed the connection]
radic has quit [Remote host closed the connection]
apeiros has joined #ruby
heidi has quit [Quit: Leaving.]
noop has joined #ruby
<zastern> URI::path doesn't like ?foo=bar
<zastern> is there a specific method for setting options like that
<nobitanobi> shevy, why do you think this behaves differently? https://gist.github.com/novito/7523540
<zastern> ah, query
jkhwan has joined #ruby
yfeldblum has joined #ruby
SteveBenner9 has quit [Ping timeout: 240 seconds]
SteveBenner9 has joined #ruby
<shevy> nobitanobi what happens if you use super()
<nobitanobi> super called outside of method (NoMethodError)
apeiros has quit [Ping timeout: 248 seconds]
larissa has quit [Quit: Leaving]
<shevy> what
<shevy> why do you call super outside a method
zipper has joined #ruby
<shevy> O_o
shadoi has quit [Ping timeout: 272 seconds]
reset has quit [Quit: Leaving...]
s2013 has quit [Ping timeout: 246 seconds]
<nobitanobi> shevy, why not?
<shevy> I never saw that before
reset has joined #ruby
<nobitanobi> my concern is why this would work differently when the method is defined in Object, that when is defined in another Parent class
brandonblack has quit [Quit: IRCRelay - http://ircrelay.com]
brandonblack has joined #ruby
tagrudev has joined #ruby
GoodTimes has quit [Read error: Connection reset by peer]
crazymykl has joined #ruby
capicue has quit [Quit: Leaving...]
<shevy> how do you call it anyway
capicue has joined #ruby
brandonblack has quit [Client Quit]
<shevy> your code is just weird :P
<sevenseacat> indeed
<shevy> class Child < Parent
<shevy> talk
<shevy> who ever does this nobitanobi?
brandonblack has joined #ruby
unstable has left #ruby [#ruby]
<shevy> nobitanobi I think every object that has no specific parent may be a subclass of Object
<nobitanobi> yes
<shevy> Child.ancestors # => [Child, Object
zigomir has joined #ruby
<nobitanobi> I know the code looks weird, and I am just experimenting
<nobitanobi> but if both classes have a parent
<nobitanobi> in one case Object, in the other case Parent. Why would they behave differently?
<shevy> nobitanobi private has no role in here btw because if you remove private in the 2nd example, your example still is invalid
dhruvasagar has quit [Read error: Connection reset by peer]
<nobitanobi> Oh boy.
dhruvasagar has joined #ruby
<shevy> I think Object is special
<shevy> like when you start irb and do: def foo; puts 'foo'; end, it somehow gets attached to Object automatically
Lewix has quit [Remote host closed the connection]
cina has joined #ruby
<nobitanobi> yeah, puts comes from the Kernel module. And that's how I actually started experimenting this. I didn't understand how puts worked
kung has joined #ruby
<nobitanobi> so when we start irb, we are in the top level scope of main object
jkhwan has quit [Remote host closed the connection]
jkhwan has joined #ruby
vlad_starkov has joined #ruby
Apane has joined #ruby
reset has quit [Quit: Leaving...]
Alina-malina has quit [Ping timeout: 265 seconds]
Asher1 has joined #ruby
Alina-malina has joined #ruby
Asher has quit [Ping timeout: 264 seconds]
graydot has joined #ruby
Lewix has joined #ruby
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blaxter_ has joined #ruby
macmartine has quit [Remote host closed the connection]
jkhwan has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Read error: Connection reset by peer]
daxroc has joined #ruby
dhruvasagar has joined #ruby
CaptainKnots has quit [Ping timeout: 245 seconds]
dfish has quit [Ping timeout: 245 seconds]
subbyyy has joined #ruby
daxroc has quit [Ping timeout: 252 seconds]
jhaals has joined #ruby
N00D is now known as CripperZ
dangerousdave has joined #ruby
i_s has joined #ruby
jhaals has quit [Client Quit]
havenwood has joined #ruby
simoz2 has quit [Ping timeout: 272 seconds]
rjhunter has quit [Remote host closed the connection]
jhaals has joined #ruby
Apane has quit [Ping timeout: 248 seconds]
fridim_ has quit [Ping timeout: 272 seconds]
simoz has joined #ruby
radic has joined #ruby
himsin has joined #ruby
h0rrorvacui has quit [Quit: ZQ]
btanaka has quit []
dhruvasagar has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
zz_tsykoduk is now known as tsykoduk
macmartine has quit [Remote host closed the connection]
lewis has joined #ruby
amacgregor has joined #ruby
lewis has quit [Changing host]
lewis has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
jhaals has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
funburn has quit [Quit: funburn]
dfish has joined #ruby
dhruvasagar has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
lewis has quit [Ping timeout: 264 seconds]
apeiros has joined #ruby
atverma has joined #ruby
sayan has joined #ruby
Xeago has quit [Remote host closed the connection]
chexxor has joined #ruby
<chexxor> What sets the $GEM_HOME environment variable? Mine is blank.
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
osvico has quit [Ping timeout: 265 seconds]
fgo has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
marr123 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
dhruvasagar has quit [Read error: Connection reset by peer]
xcess_denied has quit [Quit: Leaving...]
dhruvasagar has joined #ruby
hoener has quit [Remote host closed the connection]
graydog has joined #ruby
harnes has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
graydot has quit [Ping timeout: 272 seconds]
graydog is now known as graydot
tziOm has quit [Remote host closed the connection]
capicue has quit [Quit: Leaving...]
karupanerura is now known as zz_karupanerura
jkhwan has joined #ruby
bttf has quit []
Astral_ has joined #ruby
user258467 has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
szarubin has quit [Ping timeout: 252 seconds]
dhruvasagar has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
reset has joined #ruby
vlad_starkov has quit [Ping timeout: 265 seconds]
jkhwan has quit [Ping timeout: 272 seconds]
beermouse has joined #ruby
Shidash has joined #ruby
Kneferilis has quit [Quit: Leaving]
bigkevmcd has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
simoz has quit [Ping timeout: 252 seconds]
jhaals has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
h0rrorvacui has joined #ruby
xcess_denied has joined #ruby
dhruvasagar has joined #ruby
_5kg has quit [Ping timeout: 272 seconds]
baroquebobcat has joined #ruby
_5kg has joined #ruby
sandeepk has quit [Quit: Leaving...]
simoz has joined #ruby
i_s has quit [Remote host closed the connection]
ghostjangles has quit [Quit: Leaving]
marr123 has quit []
marr123 has joined #ruby
xcess_denied has quit [Quit: Leaving...]
justsee has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
dfish has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Remote host closed the connection]
Kneferilis has joined #ruby
atverma has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
iliketurtles has joined #ruby
sandeepk has joined #ruby
marr123 is now known as marr
subbyyy has quit [Ping timeout: 245 seconds]
relix has joined #ruby
tharindu has joined #ruby
iliketurtles has quit [Client Quit]
daxroc has joined #ruby
iliketurtles has joined #ruby
iliketurtles has quit [Client Quit]
capicue has joined #ruby
zarubin has joined #ruby
likemike has quit [Ping timeout: 264 seconds]
likemike has joined #ruby
fgo has joined #ruby
zoee has joined #ruby
h0rrorvacui has quit [Quit: ZQ]
zigomir has quit [Ping timeout: 245 seconds]
justsee has joined #ruby
daxroc has quit [Ping timeout: 248 seconds]
<bricker`LA> Why does the ruby source code mix tabs and spaces for indentation? It seems like they would be strict about that.
h_kon has joined #ruby
dfish has joined #ruby
jhaals has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
funburn has joined #ruby
holderbaum has joined #ruby
tjaco has joined #ruby
zastern has quit [Quit: Limequit.]
atverma has joined #ruby
bigkevmcd has quit [Read error: Connection reset by peer]
jbpros has joined #ruby
Davey has joined #ruby
zigomir has joined #ruby
capicue has quit [Ping timeout: 248 seconds]
n1x has joined #ruby
andikr has joined #ruby
simoz has quit [Ping timeout: 272 seconds]
aganov has joined #ruby
shredding has joined #ruby
zz_tsykoduk is now known as tsykoduk
coldbeer has joined #ruby
nobitanobi has quit [Quit: Leaving]
claymore has joined #ruby
harnes has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
iliketurtles has joined #ruby
nixmaniack has joined #ruby
bigkevmcd has joined #ruby
<Hanmac1> bricker`LA: what code do you specialy mean? user code or ruby source code itself?
brunto has joined #ruby
<bricker`LA> Hanmac1: the ruby source code, i.e. the code at http://github.com/ruby/ruby
Hanmac1 is now known as Hanmac
iliketurtles has quit [Client Quit]
<Hanmac> hm ok that may be an accident, but nor ruby or C code force the user to use spaces or tabs ... ruby is not python ;P
threesome has joined #ruby
xk_id has quit [Quit:
h0rrorvacui has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
salmonax has joined #ruby
dhruvasagar has joined #ruby
iliketurtles has joined #ruby
sandeepk has quit [Quit: Leaving...]
alup has joined #ruby
sam113101 has quit [Ping timeout: 272 seconds]
beermouse has quit [Quit: beermouse]
dagobah has joined #ruby
iliketurtles has quit [Client Quit]
tsykoduk is now known as zz_tsykoduk
havenwood has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
DanKnox is now known as DanKnox_away
sandeepk has joined #ruby
obs has joined #ruby
yfeldblum has joined #ruby
brtdv has joined #ruby
mrfoto has joined #ruby
Xeago has joined #ruby
mklappstuhl has joined #ruby
hallada has joined #ruby
jprovazn has joined #ruby
Ox6abe has joined #ruby
zipper has quit [Ping timeout: 252 seconds]
beermouse has joined #ruby
zipper has joined #ruby
einarj has joined #ruby
ahawkins has joined #ruby
LarsSmit has joined #ruby
skaflem has joined #ruby
Kneferilis has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
xk_id has joined #ruby
Guest94419 has quit [Ping timeout: 268 seconds]
raar has joined #ruby
zipper has quit [Remote host closed the connection]
zipper has joined #ruby
raar is now known as Guest52506
timonv has joined #ruby
fbernier has quit [Ping timeout: 272 seconds]
nixmaniack has quit [Quit: Ex-Chat]
<Rickmasta> >> 1 + '3'.to_i
<eval-in> Rickmasta => 4 (https://eval.in/69248)
capicue has joined #ruby
<Zeeo> Hello to everybody, if I do my_array.find_all{|c| c[:value] = 100} it's supposed to find all the elements where the value is 100, not to assign the value 100 to all the :value keys amrite? because the second one is what it's doing
beermouse has quit [Quit: beermouse]
radic has quit [Remote host closed the connection]
<Zeeo> why is that?
tharindu is now known as tharindu|away
<tobiasvl> Zeeo: ruby always does what it's supposed to do :)
<tobiasvl> Zeeo: = is assignment
<tobiasvl> did you think = compared values? because that's == like in most other languages
nhhagen has quit [Quit: Leaving]
radic has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
<Zeeo> tobiasvl: ok, now it makes sense... :)
dhruvasagar has joined #ruby
sam113101 has joined #ruby
fbernier has joined #ruby
<Hanmac> in newest of new rubies (trunk) this is possible to: my_array.find_all{|value:| value == 100}
h0rrorvacui has quit [Quit: ZQ]
cina has quit [Ping timeout: 272 seconds]
sathia has joined #ruby
<Zeeo> *_*
<apeiros> =(
VTLob has joined #ruby
cina has joined #ruby
havenwood has quit [Remote host closed the connection]
<Zeeo> isn't there a method that finds the elementS with the mazimum value?
amacgregor_ has joined #ruby
havenwood has joined #ruby
agent_white has quit [Quit: gnight]
coldbeer has quit [Quit: leaving]
<Hanmac> Zeeo: you can try max_by but it only shows one
<Zeeo> Hanmac: indeed
amacgregor has quit [Ping timeout: 245 seconds]
zipper has quit [Quit: leaving]
zipper has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
weszlem has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
coderhs has joined #ruby
i_s has joined #ruby
<jrobeson> Hanmac, show another example of what that would give you?
camilasan has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
shvelo has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
<Hanmac> Zeeo: i would probably use an combi from group_by and max_by like that:
<Hanmac> >> ary=["abc","def", "a"]; ary.group_by(&:size)[ary.max_by(&:size).size]
<eval-in> Hanmac => ["abc", "def"] (https://eval.in/69250)
zoee has joined #ruby
dhruvasagar has joined #ruby
<Zeeo> Hanmac: I'll try and adapt it to my case and see if it works
beermouse has joined #ruby
weszlem has quit [Client Quit]
ericx2x has quit [Ping timeout: 240 seconds]
tharindu|away is now known as tharindu
<Zeeo> Hanmac: but it's not gonna be so easy because the value I want to compare is an inception
<Hanmac> that means?
<Zeeo> a key inside a hash inside an array
i_s has quit [Ping timeout: 272 seconds]
Fire-Dragon-DoL has left #ruby [#ruby]
<apeiros> inceptional datastructure…
zipper has quit [Ping timeout: 264 seconds]
<Hanmac> >> ary=[{k: 3, n: "A"},{k: 2, n: "B"},{k: 3, n: "C"}]; pr = proc {|o| o[:k]};ary.group_by(&pr)[ary.max_by(&pr)[:k]]
<eval-in> Hanmac => [{:k=>3, :n=>"A"}, {:k=>3, :n=>"C"}] (https://eval.in/69251)
<Hanmac> a tiny bit better:
<Hanmac> >> ary=[{k: 3, n: "A"},{k: 2, n: "B"},{k: 3, n: "C"}]; pr = proc {|o| o[:k]}; ary.group_by(&pr)[pr[ary.max_by(&pr)]]
<eval-in> Hanmac => [{:k=>3, :n=>"A"}, {:k=>3, :n=>"C"}] (https://eval.in/69252)
<Hanmac> or:
<Hanmac> ary=[{k: 3, n: "A"},{k: 2, n: "B"},{k: 3, n: "C"}]; g= ary.group_by {|o| o[:k]}; g[g.keys.max]
<sergicles> folks, could someone point me to an article about what rbenv global|local|shell mean and how they should be used
<sergicles> please
<Zeeo> Hanmac: yea, that was wat I was thinking to do
<Hanmac> >> ary=[{k: 3, n: "A"},{k: 2, n: "B"},{k: 3, n: "C"}]; g= ary.group_by {|o| o[:k]}; g[g.keys.max]
<eval-in> Hanmac => [{:k=>3, :n=>"A"}, {:k=>3, :n=>"C"}] (https://eval.in/69253)
<Hanmac> Zeeo i think my last line would be the best
<Zeeo> Hanmac: I'll givi it a try, looks very compact
fixl has joined #ruby
olivier_bK has joined #ruby
<sergicles> never mind, I had to google, screw the lot of you
platzhirsch has joined #ruby
troessner has joined #ruby
sbos99 has joined #ruby
zipper has joined #ruby
newbiehacker has joined #ruby
<Hanmac> apeiros: do you think my last line looks complex too? :'(
daxroc has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
<Zeeo> Hanmac: what is "keys" in the last line? is that a method?
krainboltgreene has joined #ruby
dhruvasagar has joined #ruby
<apeiros> Hanmac: I think I've an upcoming release and am rather busy. sorry.
<Hanmac> Zeeo: group_by returns a hash looking like {key => [obj1,obj2]} ... keys returns [key] and with max i get the maxium of the keys
tesuji has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
tesuji has quit [Excess Flood]
wchun has joined #ruby
pagios has quit [Remote host closed the connection]
tesuji has joined #ruby
nvrch has joined #ruby
daxroc has quit [Ping timeout: 248 seconds]
crus has joined #ruby
justsee has joined #ruby
<zipper> How can I generate a range of both lowercase letters, numbers and uppercase letters? Like if I wanted to generate passwords?
<zipper> I know ('a'..'z').to_a.shuffle
<platzhirsch> How would you ceil a value calculation to an upper bound? For instance x / y, but never assign a value higher than 1.0
amritanshu_RnD has joined #ruby
crus` has quit [Ping timeout: 245 seconds]
cina has quit [Remote host closed the connection]
<apeiros> platzhirsch: you mean `cap`. ceil is "round up"
<apeiros> you'd [calc, max_value].min
pskosinski has joined #ruby
<platzhirsch> apeiros: yeah
<apeiros> or with an if/else
<platzhirsch> ah right, thanks
pskosinski has quit [Client Quit]
pskosinski has joined #ruby
dhruvasagar has quit [Read error: Connection reset by peer]
amacgregor has joined #ruby
<Hanmac> zipper: data=[*'a'..'z',*'A'..'Z',*'0'..'9'] number.times.map(data.method(:sample)).join
<Hanmac> >> data=[*'a'..'z',*'A'..'Z',*'0'..'9']; 10.times.map(data.method(:sample)).join
<eval-in> Hanmac => wrong number of arguments (1 for 0) (ArgumentError) ... (https://eval.in/69258)
tesuji has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby
<Hanmac> >> data=[*'a'..'z',*'A'..'Z',*'0'..'9']; 10.times.map(&data.method(:sample)).join
<eval-in> Hanmac => "ckdku2U8jLvrzXZmEuqsllCpk7FKjIvpMwgH0Gp1CN5Sy" (https://eval.in/69259)
timonv has quit [Remote host closed the connection]
coderhs has quit [Quit: Leaving]
amacgregor has quit [Read error: No route to host]
amacgregor has joined #ruby
timonv has joined #ruby
<Hanmac> ups ;P
<Hanmac> >> data=[*'a'..'z',*'A'..'Z',*'0'..'9']; 10.times.map {data.sample}.join
<eval-in> Hanmac => "m1mfFVjYrH" (https://eval.in/69260)
tesuji has joined #ruby
amacgregor_ has quit [Ping timeout: 245 seconds]
crus has quit [Ping timeout: 240 seconds]
cina has joined #ruby
capicue has quit [Ping timeout: 265 seconds]
shredding has quit [Quit: shredding]
crus has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
zipper has quit [Ping timeout: 272 seconds]
lsmola_ has joined #ruby
reset has quit [Quit: Leaving...]
Jetchisel has quit [Ping timeout: 260 seconds]
zipper has joined #ruby
<Hanmac> zipper did you get my code?
graydot has quit [Ping timeout: 246 seconds]
n1x has quit [Remote host closed the connection]
<Hanmac> >>require "disgest"; require "base64"; p "ok"
<eval-in> Hanmac => (https://eval.in/69264)
ghr has joined #ruby
<Hanmac> och how sad :(
graydot has joined #ruby
funburn has quit [Quit: funburn]
nisstyre has quit [Ping timeout: 245 seconds]
choobie has joined #ruby
ringaroses has joined #ruby
TMM has joined #ruby
havenwood has joined #ruby
nesQuick has joined #ruby
atverma has quit []
ephemerian has joined #ruby
kalleth_ is now known as kalleth
Kneferilis has joined #ruby
joonty has quit [Quit: WeeChat 0.4.2]
<mr`spock> do you think a fork bomb will work?
<mr`spock> >> loop { fork { bomb } }
<eval-in> mr`spock => (https://eval.in/69272)
<mr`spock> lol "Forbidden syscall clone"
sevenseacat has quit [Remote host closed the connection]
h0rrorvacui has joined #ruby
<Hanmac> mr`spock: that does not work ... this Bot is Hanmac Proof ,P
<mr`spock> hehe
pagioss has joined #ruby
havenwood has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
nomenkun has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
krainboltgreene has quit []
jlebrech has joined #ruby
CripperZ has quit [Read error: No route to host]
einarj has quit [Remote host closed the connection]
CripperZ has joined #ruby
iliketurtles has joined #ruby
<jlebrech> i'm trying to run casperjs using popen but it complains about not finding phantomjs, how do I add something to my path before running popen?
shredding has joined #ruby
h0rrorvacui has quit [Quit: ZQ]
justsee has joined #ruby
z has joined #ruby
pedda has joined #ruby
DouweM has quit [Ping timeout: 265 seconds]
chexxor has left #ruby [#ruby]
joonty has joined #ruby
havenwood has quit [Remote host closed the connection]
adambeynon has joined #ruby
havenwood has joined #ruby
justsee has quit [Ping timeout: 272 seconds]
TigerWolf has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Jetchisel has joined #ruby
sayan has quit [Ping timeout: 248 seconds]
benlieb has quit [Quit: benlieb]
Zeeo has quit [Quit: -]
nomenkun has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 264 seconds]
gebbione has joined #ruby
Ox6abe has quit [Remote host closed the connection]
beermouse has quit [Quit: beermouse]
Kilo`byte has joined #ruby
timonv has joined #ruby
burgess|vayo has joined #ruby
Lewix has quit [Remote host closed the connection]
burgess|vayo has quit [Client Quit]
barratt has joined #ruby
beermouse has joined #ruby
xk_id has quit [Quit:
beermouse has quit [Client Quit]
Kamuela has joined #ruby
shredding has quit [Quit: shredding]
sayan has joined #ruby
mikecmpbll has joined #ruby
obs has quit [Ping timeout: 248 seconds]
yjmsf20 has joined #ruby
amacgregor_ has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
amacgregor has quit [Read error: Connection reset by peer]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
mojjojo has joined #ruby
beermouse has joined #ruby
shaunbaker has joined #ruby
JuriadoBalzac has joined #ruby
shaunbak_ has joined #ruby
<JuriadoBalzac> Hi! I'm getting warning messages when I run a ruby script, is there any way so surpress these? Tried looking in the man file but I see nothing about it.
<shevy> JuriadoBalzac wat kind of warning
<tobiasvl> there's usually a reason for warnings
yjmsf20 has quit [Quit: leaving]
<Kamuela> suppress all warnings... they get in the way of progress.. of science
<tobiasvl> you can set the verbosity level with -W on the command line
<JuriadoBalzac> shevy: path to script - "91: warning: regexp has invalid interval"
mojjojo has quit [Client Quit]
<JuriadoBalzac> and "91: warning: regexp has `}' without escape"
<tobiasvl> -W0 suppresses all warnings
<tobiasvl> but why do you want to suppress warnings instead of fixing the underlying problem?
<tobiasvl> that sounds weird
lkba has quit [Ping timeout: 272 seconds]
daxroc has joined #ruby
shredding has joined #ruby
yjmsf20 has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
<JuriadoBalzac> tobiasvl: That did the trick! But yes, you are correct. The script still works as intended, I'm not sure why I get these errors.
benlieb has joined #ruby
<JuriadoBalzac> tobiasvl: Appears to be an issue after upgrading to chef 11.8, 11.6 works just fine.
himsin has quit [Quit: himsin]
himsin has joined #ruby
<JuriadoBalzac> It's row 91 in aix.rb that's giving me those errors.
yjmsf20 has quit [Remote host closed the connection]
pixelgremlins has joined #ruby
xk_id has joined #ruby
akonny has joined #ruby
shredding has quit [Client Quit]
Davey has quit [Quit: Computer has gone to sleep.]
daxroc has quit [Ping timeout: 245 seconds]
aa47f8 has joined #ruby
<tobiasvl> oh, it's not your script
<tobiasvl> i understand
jhaals has joined #ruby
workmad3 has joined #ruby
zeeraw has joined #ruby
<JuriadoBalzac> tobiasvl: still, if you would have a look at row 91, you might have a clue? Because I don't. ;)
jhaals_ has joined #ruby
<tobiasvl> row 91 where? have you pasted the code anywhere?
ehaliewicz has quit [Ping timeout: 248 seconds]
<JuriadoBalzac> tobiasvl: No, sorry, didn't want to clutter the channel if the question was irrelevant
<JuriadoBalzac> tobiasvl: hen /\w:{Regexp.escape(@new_resource.package_name)}:(.*)/
<JuriadoBalzac> Er, when, not hen.
<JuriadoBalzac> That's the row that gives errors.
DouweM has joined #ruby
mojjojo has joined #ruby
zz_tsykoduk is now known as tsykoduk
obs has joined #ruby
jhaals has quit [Ping timeout: 272 seconds]
rickruby has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
weeems has joined #ruby
weems has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
Xeago_ has joined #ruby
Xeago__ has joined #ruby
mojjojo has quit [Quit: mojjojo]
zipper has quit [Read error: Operation timed out]
plotter has joined #ruby
mengu has quit [Remote host closed the connection]
postmodern has joined #ruby
ewnd9 has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
zipper has joined #ruby
rickruby has quit [Ping timeout: 265 seconds]
zipper is now known as Guest46891
camilasan has quit [Remote host closed the connection]
reset has joined #ruby
Xeago_ has quit [Ping timeout: 272 seconds]
sepp2k has joined #ruby
einarj has joined #ruby
tsykoduk is now known as zz_tsykoduk
funburn has joined #ruby
Guest46891 has quit [Ping timeout: 245 seconds]
Advocation has joined #ruby
camilasan has joined #ruby
dfish has quit [Quit: WeeChat 0.4.0]
sayan has quit [Ping timeout: 248 seconds]
mojjojo has joined #ruby
reset has quit [Ping timeout: 272 seconds]
Martinez has quit [Quit: ZNC - http://znc.in]
heftig has quit [Quit: Quitting]
yjmsf20 has joined #ruby
nomenkun has joined #ruby
zipper_ has joined #ruby
mojjojo has quit [Quit: mojjojo]
madb055 has joined #ruby
nomenkun has quit [Ping timeout: 272 seconds]
LarsSmit has quit [Quit: Leaving.]
reset has joined #ruby
banghouse2 has quit [Remote host closed the connection]
akonny has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
jeffreyio has joined #ruby
reset has quit [Ping timeout: 272 seconds]
Zai00 has joined #ruby
<mrfoto> JuriadoBalzac: does this expression even work?
<JuriadoBalzac> mrfoto: Not sure, it's in aix.rb so I'm guessing it's chef stuff for running it on aix. And I don't. ;)
rickruby has joined #ruby
pixelgremlins has quit [Ping timeout: 240 seconds]
beermouse has quit [Quit: beermouse]
iamjarvo has joined #ruby
<mrfoto> JuriadoBalzac: well it looks borken to me :P i would guess it needs an # before {
rdark has joined #ruby
<mrfoto> but i don't know any chef so it might not be
havenwood has quit [Read error: Connection reset by peer]
OBiH has joined #ruby
havenwood has joined #ruby
rickruby has quit [Read error: Connection reset by peer]
rickruby has joined #ruby
<JuriadoBalzac> mrfoto: Hm, I could give it a try
iamjarvo has quit [Client Quit]
<JuriadoBalzac> mrfoto: that, that did the trick!
<JuriadoBalzac> Thank you so much, both mrfoto and tobiasvl
<mrfoto> yay :D
SHyx0rmZ has joined #ruby
beermouse has joined #ruby
zipper_ has quit [Remote host closed the connection]
OBiH has left #ruby [#ruby]
atrocitas has quit [Remote host closed the connection]
h_kon has quit [Remote host closed the connection]
eka has joined #ruby
eka has quit [Max SendQ exceeded]
eka has joined #ruby
eka has quit [Max SendQ exceeded]
zipper_ has joined #ruby
eka has joined #ruby
jbpros has quit [Quit: jbpros]
kitak_ has joined #ruby
jbw has quit [Remote host closed the connection]
<bnagy> ziyadb: a-zA-Z0-9 passwords are incredibly weak
<bnagy> shit
<bnagy> zipper_: ^^
kitak has quit [Read error: Connection reset by peer]
jbw has joined #ruby
<existensil> that depends entirely on their length :-)
<bnagy> HAHAH OMG UR RIGHT I NEVER THOUGHT OF THAT
ananthakumaran1 has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
nomenkun has joined #ruby
ezkl has joined #ruby
daxroc has joined #ruby
<mikecmpbll> ..
xk_id has quit [Quit:
h_kon has joined #ruby
ananthakumaran has quit [Ping timeout: 240 seconds]
juco has joined #ruby
Advocation has quit [Quit: Advocation]
Ivo has quit [Ping timeout: 272 seconds]
<Hanmac> bnagy what about: Base64.encode64(Digest::SHA2.digest(Time.now.to_f.to_s)) ;P
ringaroses has quit [Ping timeout: 245 seconds]
daxroc has quit [Ping timeout: 272 seconds]
DrCode has quit [Ping timeout: 240 seconds]
Advocation has joined #ruby
<workmad3> Hanmac: how about 'Digest::SHA2.hexdigest(Time.now.to_f.to_s)'
<workmad3> oh, for passwords...
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
<Hanmac> you are right that looks better ;P
<workmad3> I thought it was for urls :)
Davey has joined #ruby
<bnagy> Hanmac: yeah no, that's kinda retarded
<workmad3> SecureRandom.base64(30)
<bnagy> >> Time.now.to_f
<eval-in> bnagy => 1384773346.649257 (https://eval.in/69286)
DrCode has joined #ruby
<bnagy> welcome to shit entropy!
<bnagy> on some rubies it's only hundreths :(
<workmad3> bnagy: yeah, I didn't spot you were wanting it for passwords... SecureRandom for that :)
<Hanmac> workmad3: i allways forget about SecureRandom :P
<workmad3> >> require 'securerandom'; SecureRandom.base64(30)
<eval-in> workmad3 => "ONSzG5WdG7dMlTBKndWJgObtJ5KOsDDCCMhcWG7v" (https://eval.in/69287)
DrCode has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
mrfoto has quit []
<bnagy> veen with ns resolution time is awful tbh
mengu has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
<bnagy> problem with securerandom is that they're 'secure' byt unmemorisable
<workmad3> bnagy: use a password manager? :P
mrfoto has joined #ruby
<workmad3> bnagy: 1password, keepass, lastpass...
<existensil> generally if they are memorizable, they are much more easily crackable
<bnagy> that is not the case
<existensil> i've totally given up trying to create secure passwords... its getting almost hopeless. the future will require password management of some form.
<bnagy> as you say 'depends how long they are'
lkba has joined #ruby
falood has quit [Remote host closed the connection]
<bnagy> but sites with max lengths or character restrictions make me stabby
<workmad3> bnagy: same :(
<existensil> even with long phrases, if its made of real words or real syllybals, modern cracking libraries will find it
<existensil> i don't know if that's a concern or not
sandeepk has quit [Quit: Leaving...]
<bnagy> existensil: no, they won't
ldnunes has joined #ruby
tjaco has quit [Ping timeout: 252 seconds]
CripperZ is now known as zz_CripperZ
<bnagy> pretty much any passphrase that's not directly out of a published work is fine
<bnagy> honestly you have no idea how little ars articles will sway my opinion
<workmad3> I wondor how many people use the password 'correct battery horse stapler' now
falood has joined #ruby
<bnagy> people read random shit and then just Invent maths :/
shvelo has quit [Ping timeout: 246 seconds]
Davey has quit [Quit: Computer has gone to sleep.]
<bnagy> existensil: people's biggest problem is thinking they can be tricky by using abbreviations, numbers subs, keyboard patterns etc
<bnagy> because it looks uncrackable to them
Grundell has joined #ruby
<bnagy> whereas srsly just a long passphrase is fine, as long as it's not a quotation
<workmad3> bnagy: how about a random 30-digit base 40(ish) string? :)
<workmad3> (I'm not sure how many special characters lastpass uses)
<bnagy> yeah but password managers are a huge single point of failure
<bnagy> plus all of the main ones are susceptible to LEA
<existensil> bnagy: in that case why not just take a dictionary, prune words below a certain length, then create passwords that are random 5-7 word phrases
<bnagy> if not just directly owned by assorted .gov
<existensil> should be pretty easy to remember
* popl hands bnagy a tin foil hat.
bassclef has joined #ruby
<bnagy> existensil: that works
<bnagy> popl: subpoenas are hardly tinfoil
bassclef is now known as Guest63133
kung has quit [Quit: Bye!]
<popl> bnagy: I don't own any hats made from subpoenas.
<existensil> assuming about 500_000 words (hopefully that's right) the entropy should be pretty high
DrCode has joined #ruby
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
maasha has joined #ruby
<maasha> hi
<bnagy> yep
h_kon has quit [Remote host closed the connection]
joonty_ has joined #ruby
<popl> bnagy: Why use passwords at all, then? :)
sandeepk has joined #ruby
<workmad3> popl: that is the question :(
geekbri has joined #ruby
<bnagy> yes, brilliant use of reductio ad absurdum
geekbri has quit [Remote host closed the connection]
<Grundell> Hello - i need some help with regular expression that i cant seam to figure out... at the bottom of the input i've written what id like to get out from this... http://rubular.com/r/cbMEU8FWdw
<popl> bnagy: Why, thank you.
<Grundell> Is anyone able to take a look and see if they are able to help me ?
joonty has quit [Ping timeout: 245 seconds]
amritanshu_RnD has quit [Quit: Leaving]
<bnagy> popl: using individual passwords saves you from catastrophic compromise
<bnagy> password managers don't
<bnagy> yubikey kind of stuff is ok, just not online ones
<workmad3> bnagy: to me, a password manager is a somewhat more reliable single point of failure than my own memory... and lastpass with 2-factor and a decent master password is my compromise for ease of use
<bnagy> even that you're better off using a stub + individual passwords
nesQuick has left #ruby [#ruby]
raphaelivan has joined #ruby
_5kg has quit [Ping timeout: 272 seconds]
Ivo has joined #ruby
<bnagy> meh depends on your threat model, sure
<workmad3> 1password or keepass are other alternatives, but they don't integrate as well into my workflow
_5kg has joined #ruby
<Grundell> Anyone able to look at my regexp ?
<workmad3> and I'm not too worried about the subpoena threat model personally :) along with that, all they could subpoena from lastpass is my encrypted blob, they'd need to subpoena me for my master password, or crack the encryption on that blob
jeffreyio has quit [Ping timeout: 248 seconds]
<workmad3> and that's assuming I come into the notice of an agency that wants to subpoena my passwords and has the power to do so :)
<existensil> I find keepass to offer the best combination of security and convenience i can currently achieve
<existensil> Grundell: http://rubular.com/r/cbMEU8FWdw
<existensil> what about like that?
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<existensil> the only thing i can see that separates a title from a name is it can have lowercase letters?
<existensil> so that's what i matched on
<popl> bnagy: YubiKey looks interesting.
sevenseacat has joined #ruby
<popl> Of course a one-time pad is going to be good.
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
<DouweM> existensil: you sent the wrong link ;)
<bnagy> oh that wasn't what I was thinking of - it does other stuff
<existensil> ha, so i did...
<bnagy> like it just 'types' a Very Long Password when you press a button
<Grundell> existensil: yes... the thing is that it doesn't always have a position so i need to make something that is able to understand that it might not have position... then i need to get the party out also...
<existensil> Grundell: http://rubular.com/r/rL44U0XJdn ... is the problem that position isn't being filled in right?
<existensil> that should work for position
<Grundell> existensil: yeah that makes better :) thanks
<bnagy> Grundell: break it down before you apply regexps
<Grundell> existensil: how do i add the <party> tag to this...
<bnagy> you have some obvious stuff you can split out first
<Grundell> Since i want to capture whats inside the parentheses
<Grundell> so just the letters ...
<existensil> Grundell:
<existensil> not sure what that last line was :-P
<Grundell> existensil: thats amazing!
<Grundell> existensil: Thanks!
<existensil> bnagy is probably write... if you have to do much more than this you should probably break it up. always better to tokenize first.
<existensil> s/write/right
dawkirst has quit [Ping timeout: 240 seconds]
jxf has quit [Ping timeout: 240 seconds]
reset has joined #ruby
zeeraw has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<Grundell> existensil: is it possible to make a regex understand if something exists or not ?
<existensil> Grundell: that's what the example does for <position>
<existensil> do you mean something else?
reset has quit [Ping timeout: 264 seconds]
<Grundell> existensil: so for exapmle two of the posts that im taking out has replik: in them am i able to take that and say if exists?
<Grundell> sort of like that :D
<existensil> Grundell: you'll just need to capture that into another match group and then your application will need to test if its there
<Grundell> existensil: http://rubular.com/r/XSjvmreC9p i don't know if that is right or not... but i got it to hide ?
kirun has joined #ruby
LarsSmit has joined #ruby
Kabaka has joined #ruby
<existensil> yeah, that looks right... now you just need to name the match group and check and see if it has any value in your code
<existensil> the only difference here is I named the group, really: http://rubular.com/r/qeuLNiM0Do
krnflake has quit [Ping timeout: 252 seconds]
jbpros has joined #ruby
jeremywrowe has joined #ruby
dawkirst has joined #ruby
<Grundell> existensil: ahh okay :) Thanks !
nari has quit [Ping timeout: 245 seconds]
Guest63133 is now known as fluffheadsr
tvw has joined #ruby
fluffheadsr is now known as axilla
himsin has quit [Read error: Connection reset by peer]
khushildep has joined #ruby
gebbione has left #ruby ["Leaving"]
xk_id has joined #ruby
fedalto has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
SnatchFrigate has joined #ruby
fgo has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
funburn has quit [Quit: funburn]
pagioss is now known as pagios
vlad_starkov has joined #ruby
graydot has quit [Quit: graydot]
<existensil> is there a way to scan through a string in ruby using a regex, and be able to use named groups?
<existensil> scan seems to always yield arrays
<Grundell> existensil: I use match_data to get my pleadings written but i since its not always matching get an empty array for my pleadings... how would i change that ? https://gist.github.com/Grundell/7526597
shvelo has joined #ruby
mercwithamouth has joined #ruby
tk__ has joined #ruby
zoee has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
daxroc has joined #ruby
<existensil> Grundell: so you are getting Pleading objects with no values?
<existensil> that shouldn't happen
iliketurtles has quit [Quit: zzzzz…..]
<RubyPanther> Grundell: maybe you should parse it in stages instead of in one giant regex
<Grundell> Im getting an empty array for pleadings...
<existensil> it does look like you could be pushing some garbage onto current_pleading.content
<existensil> in a way he is, since he's breaking it into lines at least
<existensil> in his actual code
<Grundell> RubyPanther: Okay, relatively new to ruby so care to explain closer ?
popl has quit [Quit: And then there are people who prefer to look their fate in the eye.]
nfk has joined #ruby
<RubyPanther> Grundell: the smaller pieces you break it into, the easier it is to debug. with a long regex, it is really hard.
<existensil> Grundell: you added a $ to your regex
<Grundell> Ahh
Kabaka has quit [Ping timeout: 240 seconds]
pranny has quit [Quit: Leaving.]
Criztian has joined #ruby
<existensil> that's actually fine, as long as you also account for the semicolon your sample lines all end with
<Grundell> existensil: So without it it works... but i thought you should have end of line?
<existensil> but removing it should also work
<existensil> the problem is your saying the end of the line should come immediately after replik
<existensil> and it doesn't
daxroc has quit [Ping timeout: 252 seconds]
<existensil> there is a semicolon in your examples
brunto has quit [Ping timeout: 272 seconds]
<Grundell> ahh i see
<existensil> technically this should work: https://gist.github.com/carlzulauf/7526708
fgo has joined #ruby
Advocation has quit [Quit: Advocation]
andrewvos has joined #ruby
<andrewvos> What's a good way to find memory leaks?
beermouse has quit [Quit: beermouse]
<existensil> but it does kind of nail home the points bnagy and RubyPanther made about maybe spliting your matching up into pieces
<andrewvos> (ruby 2)
<bnagy> andrewvos: use jruby, profile, switch back :/
sayan has joined #ruby
<bnagy> you can use ObjectSpace, but it's awful
<bnagy> imho, spend a LOT of time comvincing yourself you even have one, first
zz_tsykoduk is now known as tsykoduk
sandeepk has quit [Remote host closed the connection]
<Grundell> yeah - Okay, the last example didn't work... but if i skip end of line it does work... so i assume that i make something there... is it important to host the "end of line ? "
<bnagy> eg some OSs are lazy about reclaiming memory, and some GCs are lazy about releasing freed mem to the OS
beermouse has joined #ruby
<bnagy> some stuff, like in cexts, won't ever be visible from ruby
gyre007 has joined #ruby
<bnagy> gotta valgrind or something to find them
<existensil> Grundell: if you don't match to the end of the line, then lines that have extra data past 'replik' will match... but doesn't seem like that's a problem
mklappstuhl has joined #ruby
<existensil> if it is, then you need to find someway to match to the end of the line
<bnagy> andrewvos: in summary there kind of isn't one
<Grundell> oh okay.
<bnagy> fwiw 95% of my memory leaks have been nonexistant or in C libs
<bnagy> the other 5% have been really obvious
hogeo has quit [Remote host closed the connection]
<andrewvos> bnagy: Stupid rails is eating all the memory
beermouse has quit [Client Quit]
hogeo has joined #ruby
<andrewvos> bnagy: Although it's probably stupid me
<bnagy> oh pff rails
<bnagy> "just restart it every 6 hours"
<andrewvos> hahaha
<andrewvos> Might make a heroku addon that does that
<andrewvos> Call it "rails memory optimizer PRO"
<existensil> most of the "leaks" i've had turned out to be in C libs... rmagick has been the worst offender for me there.
<bnagy> srsly though, make a test server, on jruby
<bnagy> the jvm profiling tools are holy-shit-awesome
krnflake has joined #ruby
shredding has joined #ruby
<bnagy> and free
<existensil> migrating to jruby might be painful for a large rails project
<andrewvos> bnagy: I think I would then have two problems
<andrewvos> Yes exactly existensil
nouitfvf_ has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Ping timeout: 245 seconds]
nouitfvf_ has joined #ruby
nari has joined #ruby
<bnagy> I would love to feel more sympathy ;)
tkuchiki has quit [Remote host closed the connection]
<bnagy> ime, most realy ruby leaks are very linear
jbpros has quit [Ping timeout: 245 seconds]
<bnagy> like you don't see much drop in private bytes
hogeo has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 272 seconds]
<bnagy> valgrind can work, for ruby, but I think for rails it might be super confusing
Zai00 has quit [Quit: Zai00]
VTLob has quit [Quit: VTLob]
Kabaka has joined #ruby
phansch has joined #ruby
platzhirsch has quit [Ping timeout: 245 seconds]
jrhe has joined #ruby
tsykoduk is now known as zz_tsykoduk
xk_id has quit [Quit:
yacks has joined #ruby
jbpros has joined #ruby
mercwithamouth has joined #ruby
fightback has joined #ruby
xk_id has joined #ruby
danshultz has joined #ruby
platzhirsch has joined #ruby
freezey has joined #ruby
Rix has quit [Ping timeout: 260 seconds]
rickruby has quit [Remote host closed the connection]
_409_ has joined #ruby
zz_CripperZ is now known as CripperZ
jonathanwallace has joined #ruby
obs has quit [Read error: Connection reset by peer]
Beoran__ has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
shaunbaker has joined #ruby
<andrewvos> bnagy: Just profiling rails make sit look like rails is the CPU hog
achru has joined #ruby
<andrewvos> Too many metho calls
freezey has quit [Remote host closed the connection]
Alina-malina has quit [Max SendQ exceeded]
Beoran_ has quit [Ping timeout: 268 seconds]
<andrewvos> makes it* method*
CripperZ is now known as N00D
shaunbaker has quit [Ping timeout: 264 seconds]
Xeago__ has quit [Remote host closed the connection]
Grundell has quit [Remote host closed the connection]
reset has joined #ruby
funburn has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
madb055 has quit [Read error: Connection reset by peer]
obs has joined #ruby
brunto has joined #ruby
reset has quit [Ping timeout: 260 seconds]
aagdbl has quit [Quit: This computer has gone to sleep]
thesheff17 has joined #ruby
<shevy> hmm this here does not work http://pastie.org/8489581
funburn has quit [Client Quit]
<shevy> but I dont want to use include
mojjojo has joined #ruby
larissa has joined #ruby
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
troessner has quit [Quit: Leaving]
obs has quit [Read error: Operation timed out]
postmodern has quit [Quit: Leaving]
<workmad3> shevy: def self.x
Xeago has joined #ruby
emocakes has quit [Quit: Leaving...]
DarkFoxDK has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 272 seconds]
dhruvasagar has quit [Ping timeout: 245 seconds]
salmonax has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
aagdbl has joined #ruby
sayan has joined #ruby
timonv has quit [Remote host closed the connection]
PPH has quit [Ping timeout: 246 seconds]
salmonax has joined #ruby
DarkFoxDK has joined #ruby
timonv has joined #ruby
daxroc has joined #ruby
xcess_denied has joined #ruby
soba has quit [Ping timeout: 272 seconds]
Xeago has quit [Ping timeout: 252 seconds]
Jetchisel has quit [Quit: Unfortunately time is always against us -- *Morpheus*]
Rix has joined #ruby
obs has joined #ruby
timonv has quit [Ping timeout: 246 seconds]
VTLob has joined #ruby
daxroc has quit [Ping timeout: 272 seconds]
Alina-malina has joined #ruby
vt102 has joined #ruby
jbpros has quit [Read error: Connection reset by peer]
blaxter_ is now known as blaxter
h_kon has joined #ruby
timonv has joined #ruby
jbpros has joined #ruby
salmonax has quit [Read error: Connection reset by peer]
salmonax has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> hmm
<shevy> then I could no longer include that module
<shevy> and have the method available to classes that make use of it
zz_tsykoduk is now known as tsykoduk
jonathanwallace has quit [Ping timeout: 246 seconds]
tharindu has quit [Quit: Leaving...]
jkamenik has joined #ruby
<shevy> what is the simplest way to
<shevy> make a method in a module both a class method and one that can be included into other modules and classes?
shvelo has quit [Quit: Leaving]
<lupine> module Foo ; def foo ; "foo" ; end ; end ; Foo.extend(Foo)
<lupine> IIRC
<lupine> yep, that does what I expected
<havenwood> shevy: If you want to extend all the methods, just an `extend self` inside the class will do the trick as well.
bruno-_ has quit [Ping timeout: 245 seconds]
sathia has quit [Remote host closed the connection]
<shevy> curios notation, that Name.extend(Name) thingy
sathia has joined #ruby
<shevy> *curious rather
bruno- has quit [Ping timeout: 252 seconds]
reset has joined #ruby
bruno- has joined #ruby
Zai00 has joined #ruby
platzhirsch has quit [Quit: Leaving.]
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
nisstyre has joined #ruby
salmonax has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
bruno- has quit [Client Quit]
tsykoduk is now known as zz_tsykoduk
sathia has quit [Ping timeout: 272 seconds]
salmonax has joined #ruby
reset has quit [Ping timeout: 245 seconds]
flops has joined #ruby
cek has joined #ruby
<cek> what would you recommend for an object that would accept any call on it with args
<mrfoto> cek: method_missing?
<cek> builtin
_409_ has quit [Quit: Leaving...]
<mrfoto> huh?
MattStratton has joined #ruby
jonathanwallace has joined #ruby
mklappstuhl has joined #ruby
decoponio has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
AlSquire has joined #ruby
sambao21 has joined #ruby
ffranz has joined #ruby
mklappstuhl has quit [Ping timeout: 240 seconds]
ldnunes has quit [Ping timeout: 265 seconds]
beermouse has joined #ruby
gazarsgo has joined #ruby
flops has quit [Read error: Connection reset by peer]
aagdbl has quit [Quit: This computer has gone to sleep]
ckinni has joined #ruby
gazarsgo has quit [Client Quit]
thesheff17 has quit [Ping timeout: 246 seconds]
raphaelivan has quit [Quit: Leaving.]
tk__ has quit [Quit: ばいばい]
shaunbaker has joined #ruby
ckinni has quit [Client Quit]
brunto has quit [Ping timeout: 246 seconds]
brunto has joined #ruby
stringoO has joined #ruby
mikecmpbll has quit [Read error: Operation timed out]
salmonax has quit [Read error: Connection reset by peer]
IceDragon has joined #ruby
akonny has joined #ruby
salmonax has joined #ruby
sayan has quit [Quit: Leaving]
fgo has quit [Remote host closed the connection]
Advocation has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> method_missing is available in standard ruby
fightback has quit [Quit: blackbagged]
shaunbak_ has joined #ruby
BizarreCake has joined #ruby
theRoUS|afk has quit [Ping timeout: 272 seconds]
nisstyre has quit [Quit: Leaving]
<cek> Object.new.tap{|s| s.define_singleton_method(:method_missing){|*_|} }
gyre007 has quit [Remote host closed the connection]
DrCode has quit [Remote host closed the connection]
gyre007 has joined #ruby
salmonax has quit [Read error: Connection reset by peer]
falood has quit [Remote host closed the connection]
gyre007 has quit [Read error: Connection reset by peer]
gyre007 has joined #ruby
ewnd9 has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
phansch has quit [Ping timeout: 272 seconds]
phansch has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
salmonax has joined #ruby
xk_id has quit [Quit:
kaspergrubbe has joined #ruby
ahawkins has quit [Quit: leaving]
ringaroses has joined #ruby
flops has joined #ruby
jrhe has quit [Quit: jrhe]
ahawkins has joined #ruby
kaldrenon has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
shaunbaker has joined #ruby
daxroc has joined #ruby
fightback has joined #ruby
fightback has quit [Max SendQ exceeded]
blackmesa has joined #ruby
ringaroses has quit [Ping timeout: 246 seconds]
DrCode has joined #ruby
zoee has joined #ruby
vpretzel has joined #ruby
breakingthings has joined #ruby
mj12albert has joined #ruby
Rix has quit [Ping timeout: 252 seconds]
mj12albert has quit [Client Quit]
shaunbaker has quit [Ping timeout: 272 seconds]
lfox has joined #ruby
daxroc has quit [Ping timeout: 264 seconds]
zxq9 has joined #ruby
DrCode has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
fysaen has joined #ruby
cody-- has joined #ruby
Advocation has quit [Quit: Advocation]
Rix has joined #ruby
mjs2600 has joined #ruby
dangerousdave has quit [Quit: Leaving...]
pixelgremlins has joined #ruby
xcess_denied has quit [Quit: Leaving...]
dangerousdave has joined #ruby
Advocation has joined #ruby
zz_tsykoduk is now known as tsykoduk
beermouse has quit [Quit: beermouse]
Astral_ has quit [Read error: Connection reset by peer]
hallada has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 272 seconds]
mjs2600 has quit [Remote host closed the connection]
mojjojo has quit [Quit: mojjojo]
lfox has quit [Ping timeout: 265 seconds]
ananthakumaran1 has quit [Quit: Leaving.]
mjs2600 has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jprovazn has quit [Quit: Leaving]
jrhe has joined #ruby
reset has joined #ruby
phansch has quit [Ping timeout: 272 seconds]
mklappstuhl has joined #ruby
zeeraw has joined #ruby
kcombs has joined #ruby
phansch has joined #ruby
akonny has quit [Quit: akonny]
beermouse has joined #ruby
tsykoduk is now known as zz_tsykoduk
sathia has joined #ruby
iajrz_ has joined #ruby
reset has quit [Ping timeout: 246 seconds]
cina has quit [Ping timeout: 264 seconds]
jrhe has quit [Read error: Connection reset by peer]
jrhe has joined #ruby
_5kg has quit [Ping timeout: 245 seconds]
_5kg has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
sathia has quit []
mary5030 has joined #ruby
DrCode has joined #ruby
Squarepy has joined #ruby
Kabaka has quit [Remote host closed the connection]
newbiehacker has quit [Ping timeout: 272 seconds]
ldnunes has joined #ruby
Squarepy has quit [Read error: Connection reset by peer]
Squarepy_ has joined #ruby
DrCode has quit [Remote host closed the connection]
burlyscudd has joined #ruby
graydot has joined #ruby
jleishman has quit [Quit: Leaving...]
lukec has joined #ruby
mrfoto has quit []
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
sailias has joined #ruby
Criztian has quit [Remote host closed the connection]
Squarepy_ has quit [Read error: Connection reset by peer]
jlast has joined #ruby
DoNcK has joined #ruby
Squarepy has joined #ruby
<DoNcK> hi there
nateberkopec has joined #ruby
wesside has quit [Quit: I think I heard an ice cream truck..]
RobW_ has joined #ruby
<DoNcK> Is there anybody here using javan/whenever?
<DoNcK> I'd like to know if it is possible to run rake tasks, get the stderr sent by email , and both stdout and stderr logged into a file
yfeldblum has joined #ruby
graydot has quit [Quit: graydot]
jrhe has quit [Ping timeout: 248 seconds]
wildroman has joined #ruby
jrhe has joined #ruby
dhruvasagar has joined #ruby
platzhirsch has joined #ruby
fuhgeddaboudit has joined #ruby
ravster has joined #ruby
Kabaka has joined #ruby
<RobW_> Does anyone know what will pass / fail the Capybara visible/hidden test? For instance, visibly_hidden HTML5Boilerplate class is designed to fool screen readers into thinking the element is visible -- does capy see that?
ravster has left #ruby [#ruby]
Squarepy has quit [Ping timeout: 265 seconds]
jprovazn has joined #ruby
Bry8Star{T2_ has joined #ruby
Squarepy has joined #ruby
mj12albert has joined #ruby
IceDragon has quit [Ping timeout: 272 seconds]
mj12albert has quit [Client Quit]
hogeo has joined #ruby
mj12albert has joined #ruby
_409_ has joined #ruby
tannerburson has joined #ruby
Bry8Star{T2_ has quit [Quit:]
hashpuppy has joined #ruby
burlyscudd has quit [Quit: Leaving.]
phansch has quit [Remote host closed the connection]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
IceDragon has joined #ruby
mjs2600 has quit []
weszlem has joined #ruby
devdazed has joined #ruby
failshell has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
Bry8Star{T2 has joined #ruby
platzhirsch has quit [Quit: Leaving.]
duggiefresh has joined #ruby
tndrbt has joined #ruby
wmoxam has joined #ruby
h_kon has quit [Remote host closed the connection]
_bart has joined #ruby
weszlem has quit [Client Quit]
mojjojo has joined #ruby
shaunbaker has joined #ruby
shaunbaker has quit [Remote host closed the connection]
weszlem has joined #ruby
Apane has joined #ruby
arcke has quit [Ping timeout: 252 seconds]
yfeldblu_ has quit [Ping timeout: 245 seconds]
newbiehacker has joined #ruby
khushildep has quit [Quit: khushildep]
daxroc has joined #ruby
wildroman has quit [Remote host closed the connection]
momomomomo has joined #ruby
gazarsgo has joined #ruby
SteveBenner9 has quit [Ping timeout: 265 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
Hanmac has joined #ruby
platzhirsch has joined #ruby
beermouse has quit [Quit: beermouse]
platzhirsch has left #ruby [#ruby]
mojjojo has quit [Quit: mojjojo]
shaunbaker has joined #ruby
mojjojo has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
daxroc has quit [Ping timeout: 272 seconds]
cody-- has quit [Quit: derp]
noop has quit [Ping timeout: 252 seconds]
heftig has joined #ruby
tvw has joined #ruby
catphish has joined #ruby
<catphish> is it possible to manually set the socket object used by net/http?
fridim_ has joined #ruby
shaunbaker has quit [Remote host closed the connection]
beermouse has joined #ruby
cwarner_ is now known as cwarner
sayan has joined #ruby
tndrbt has quit [Quit: Leaving]
elux has joined #ruby
<catphish> looks like i'd need to hack it a new constructor
Bry8Star{T2 has joined #ruby
Astralum has joined #ruby
shaunbaker has joined #ruby
luckyruby has joined #ruby
lfox has joined #ruby
mj12albert has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
subbyyy has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
<Apane> hey guys, what exactly is R? and is it worth learning as a web developer?
<catphish> oh, you can: request.exec(sock, "1.1", "/path") excellent
<Apane> seems like more statistics computing
eka has quit [Quit: Textual IRC Client: www.textualapp.com]
wildroman has joined #ruby
<sevenseacat> it is.
<Apane> thanks sevenseacat, that pretty much answers it
CorySimmons has joined #ruby
mikecmpbll has joined #ruby
pyrac has joined #ruby
Evan_Donovan has quit [Read error: Connection reset by peer]
mojjojo has quit [Quit: mojjojo]
Advocation has quit [Ping timeout: 248 seconds]
johnnyfuchs has joined #ruby
mlpinit has joined #ruby
sandeepk has joined #ruby
_409_ has quit [Read error: Connection reset by peer]
weszlem has quit []
mojjojo has joined #ruby
weszlem has joined #ruby
eka has joined #ruby
eka has quit [Max SendQ exceeded]
eka has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
sbos99 has quit [Quit: Leaving]
Xiti` is now known as Xiti
Bry8Star{T2 has joined #ruby
reset has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lukec has quit [Quit: lukec]
SHyx0rmZ has quit [Ping timeout: 248 seconds]
konrads has joined #ruby
djdb has joined #ruby
Monie has joined #ruby
<konrads> Hello. I want to write an interactive CLI app - like shell/irb. What are good gems to start from?
reset has quit [Ping timeout: 240 seconds]
jrhe has quit [Quit: jrhe]
<waxjar> Readline is a nice start i think
robbyoconnor has quit [Ping timeout: 248 seconds]
SHyx0rmZ has joined #ruby
vlad_starkov has joined #ruby
weszlem has quit [Remote host closed the connection]
weszlem has joined #ruby
zipper_ has quit [Quit: Lost terminal]
mmitchell has joined #ruby
interactionjaxsn has joined #ruby
momomomomo has quit [Quit: momomomomo]
petey_ has joined #ruby
sevenseacat has left #ruby [#ruby]
<konrads> cheers all
burlyscudd has joined #ruby
shaileshg__ has quit [Read error: Connection reset by peer]
LarsSmit has quit [Quit: Leaving.]
wildroman has quit [Remote host closed the connection]
falood has joined #ruby
shaileshg__ has joined #ruby
bean has joined #ruby
mercwithamouth has joined #ruby
lmickh has joined #ruby
tagrudev has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
mj12albert has joined #ruby
wildroman has joined #ruby
djdb has quit [Remote host closed the connection]
achru has quit []
_maes_ has joined #ruby
wildroman has quit [Remote host closed the connection]
rippa has joined #ruby
axilla has quit [Ping timeout: 245 seconds]
danshult_ has joined #ruby
mojjojo has quit [Quit: mojjojo]
mjs2600 has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
cody-- has joined #ruby
tkuchiki has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
ldnunes has quit [Quit: Leaving]
mojjojo has joined #ruby
ldnunes has joined #ruby
petey__ has joined #ruby
sandeepk has quit [Read error: Connection reset by peer]
tannerburson has quit [Quit: tannerburson]
danman has joined #ruby
_409_ has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
mojjojo has quit [Client Quit]
petey_ has quit [Ping timeout: 264 seconds]
tannerburson has joined #ruby
MrThePlague has joined #ruby
maasha has quit [Ping timeout: 250 seconds]
joonty_ is now known as joonty
mikee has quit [Ping timeout: 246 seconds]
phansch has joined #ruby
thesheff17 has joined #ruby
sayan has quit [Read error: Operation timed out]
beermouse has quit [Quit: beermouse]
momomomomo has joined #ruby
weszlem has quit []
awarner has joined #ruby
ce_afk is now known as cescalante
weszlem has joined #ruby
<dev1x> how can i load an env variable to a local variable?
<dev1x> var = ENV['$f00'] ?
<hoelzro> yup
<dev1x> or is it
<dev1x> ENV['f00'] ?
Davey has joined #ruby
<bean> I'd try to make sure
<hoelzro> just ENV['f00']
<hoelzro> $f00 is shell syntax
phansch has quit [Ping timeout: 245 seconds]
<dev1x> hum
<dev1x> i actually need the hostname
<dev1x> so i'm trying
konrads has quit [Ping timeout: 272 seconds]
<dev1x> hostname = ENV['HOSTNAME']
<dev1x> and it came out empty
<dev1x> so i'll try with $
cescalante is now known as ce_afk
ce_afk is now known as cescalante
<bean> hostname = `hostname -f`.chomp
<bean> ;)
coderhs has joined #ruby
xea has joined #ruby
justsee has quit [Ping timeout: 265 seconds]
<xea> o/
mikepack has joined #ruby
phansch has joined #ruby
<matti> On no.
<matti> bean: Don't.
<matti> bean: Don't even.
<bean> :D
<matti> Teh horror
<matti> Fired.
Advocation has joined #ruby
evenix has joined #ruby
<matti> :>
<bean> (in my line of work I'd just use ohai)
<bean> :p
arcke has joined #ruby
<bean> :>
coderhs has quit [Client Quit]
wildroman has joined #ruby
<matti> Slacker!
<matti> ;d
<matti> ;]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<matti> bean: Real man query DNS using RAW socket and bit wranggling.
zipper has joined #ruby
<matti> ;]
<bean> haha
gianlucadv has quit [Quit: Ex-Chat]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
daxroc has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
<matti> I fucking hate this binary protocol ;p
<matti> That DNS is using ;p
beermouse has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
tesuji has quit [Ping timeout: 246 seconds]
ringaroses has joined #ruby
parduse is now known as Guest14
Guest14 has quit [Killed (cameron.freenode.net (Nickname regained by services))]
parduse has joined #ruby
Lewix has joined #ruby
<catphish> actually ruby has a nice "resolv" library that mangles dns packets for you :)
<matti> No kiddin!
<matti> I would never guess :
<matti> :P
<matti> catphish: :)
shredding has quit [Quit: shredding]
<catphish> in fact i think it sends requests too :)
<dev1x> going to try as you've said bean
<dev1x> :)
<bean> catphish: I use it on my irc dns lookup bot for work :P
<catphish> i used to use it to make dns servers :)
coder_neo has joined #ruby
<catphish> but in that case you have to do a lot of extra work
<catphish> for lookups i think it's all there though
Hanmac1 has joined #ruby
<matti> catphish: Does it support RFC2549?
<matti> :>
<catphish> yes
<catphish> fully
daxroc has quit [Ping timeout: 245 seconds]
<matti> You did looked it up, did you? ;]
<matti> What about RFC3514?
shaunbaker has quit [Remote host closed the connection]
justsee has joined #ruby
shaunbaker has joined #ruby
larissa has quit [Quit: Leaving]
<matti> ;]
Hanmac has quit [Ping timeout: 252 seconds]
<catphish> i did have to look them up
<catphish> nothing supports RFC3514 :)
<matti> Hehe
<bean> IP over Avian Carriers with Quality of Service
<bean> lol
mark06 has joined #ruby
<matti> bean: They did real life test ;
mengu has quit [Remote host closed the connection]
<matti> bean: Check wikipedia ;]
<bean> oh I know.
<bean> lol
evenix has quit [Ping timeout: 264 seconds]
<catphish> This document defines the behavior of security elements for the 0x0 and 0x1 values of this bit. Behavior for other values of the bit may be defined only by IETF consensus [RFC2434].
<matti> But I am sure that every time you query DNS ay 8.8.8.8
<mark06> how can I transform an integer array into a series of bits for encoding as Base64?
sayan has joined #ruby
phus1on has joined #ruby
Aryasam has joined #ruby
<matti> And one of the emplouyees of the Avian Engineering Group at Google has a blog http://pigeonblog.wordpress.com/ ;]
<catphish> mark06: you probably want Array#pack
<matti> I will stop being silly now ;]
arietis has joined #ruby
shaunbaker has quit [Ping timeout: 240 seconds]
benwoody has joined #ruby
wedgeV has joined #ruby
Ox6abe has joined #ruby
<mark06> catphish: it does not return a series of bits but a string
<catphish> mark06: can you better explain what you actually want?
<mark06> catphish: I want a series of bits, a blob, like when you read a binary file for example
_409_ has quit [Read error: Connection reset by peer]
<mark06> I just did
sandeepk has joined #ruby
<catphish> mark06: that's what a string is
sandeepk has quit [Read error: Connection reset by peer]
<mark06> duh
<mark06> that's what everything on a computer is, so what?
xcess_denied has joined #ruby
<catphish> lol
<catphish> just to be clear, a string is exactly what you want, it's ruby's representation of a blob of binary data
dawkirst has quit [Ping timeout: 245 seconds]
nwertman has joined #ruby
ahawkins_ has joined #ruby
jrhe has joined #ruby
jbpros has quit [Quit: jbpros]
<catphish> so, something like Base64.encode64([1,2,3].pack('C*'))
jrhe has quit [Client Quit]
<mark06> ok I will try again
<mark06> [2311231231,1232132121,21321312321312].pack(what?) ?
brtdv has quit []
<catphish> wait...
<catphish> what do those integers mean?
<mark06> does not matter
<catphish> yes it does
<mark06> no
<mark06> they're > 255
<catphish> you need to know how many bits each integer represents
<mark06> period
<catphish> that's not enough information
<mark06> I can figure out that
weszlem has quit []
zz_tsykoduk is now known as tsykoduk
ahawkins_ has quit [Read error: Operation timed out]
<mark06> but I just tried L* and output is not binary, but a string representation of the binary data
_409_ has joined #ruby
<catphish> what?
dhruvasagar has joined #ruby
<mark06> omg
weszlem has joined #ruby
<mark06> >>[256, 256, 12312312].pack('L*')
<eval-in> mark06 => "\0\x01\0\0\0\x01\0\0\xF8\xDE\xBB\0" (https://eval.in/69361)
ahawkins has quit [Ping timeout: 272 seconds]
<catphish> that's correct
<mark06> >>[256, 256, 12312312].pack('L*').class
<eval-in> mark06 => String (https://eval.in/69362)
<catphish> see what i said above
<catphish> that's exactly what you want
<mark06> OMG!
<mark06> get out of IRC and have a girlfrield, please
<catphish> assuming your integers are 32 bit unsigned
<catphish> i don't know how better to explain it, you have successfully done what you want
<catphish> you've made a bitstream (string) from your ints
<mark06> I want to save that to a text file, I want it to look like binary, not like a string representation of binary
<catphish> now you just need to base64 encode them
<catphish> a string IS binary
<catphish> just save it, encode it, whatever
<mark06> will try one last time for you.....
<catphish> please just trust me and try it :)
baroquebobcat has joined #ruby
<catphish> because i can't be bothered to tell you again
RichardBaker has joined #ruby
<mark06> I want to take an array of integers (I will figure out the size later) and join its bits together, and take that blob and save to a file
<catphish> >>[256, 256, 12312312].pack('L*').bytesize
<eval-in> catphish => 12 (https://eval.in/69365)
<mark06> the file thus will look like whatever encoding you need to use, and won't make any sense, in a text editor
<mark06> I don't want an ascii representation
<mark06> Jesus!
freezey has joined #ruby
pskosinski has quit [Ping timeout: 272 seconds]
<catphish> i don't know how better to explain it, that string IS binary
falood has quit [Remote host closed the connection]
<mark06> I give up, I've tried three times
<catphish> >>[256, 256, 12312312].pack('L*').bytes
<eval-in> catphish => [0, 1, 0, 0, 0, 1, 0, 0, 248, 222, 187, 0] (https://eval.in/69366)
<mark06> give up from me as well please, go do something more useful
<mark06> >>[256, 256, 12312312].pack('L*')
<eval-in> mark06 => "\0\x01\0\0\0\x01\0\0\xF8\xDE\xBB\0" (https://eval.in/69368)
gotjosh has joined #ruby
<mark06> so this is an inspect version of the string?
xk_id has joined #ruby
<catphish> correct
<gotjosh> OOP take on cropping, improvements?
replay has joined #ruby
fedalto has quit [Ping timeout: 245 seconds]
<apeiros> mark06: "please, go do something more useful" is not very respectful to a person who tries to help you.
petey__ has quit [Remote host closed the connection]
<apeiros> if you don't like his help, say "thank you for your time" and look for somebody else to help you.
petey_ has joined #ruby
allsystemsarego_ has joined #ruby
barratt has quit [Quit: Linkinus - http://linkinus.com]
Squarepy has quit [Read error: Operation timed out]
danshult_ has quit [Remote host closed the connection]
allsystemsarego has quit [Read error: Connection reset by peer]
<mark06> >>[256, 256, 12312312].pack('L*').force_encoding('ascii')=="\x00\x01\x00\x00\x00\x01\x00\x00\xF8\xDE\xBB\x00".force_encoding('ascii')
<eval-in> mark06 => true (https://eval.in/69372)
danshultz has joined #ruby
<mark06> I mistook result of pack as a literal '\x00...'
<apeiros> ascii is only 7bit
<DouweM> mark06: if it were up to me, comments like "get out of IRC and have a girlfrield, please" would be a bannable offense. please, have some decency
<mark06> catphish: sorry for the confusion
evenix has joined #ruby
<apeiros> DouweM: yeah, I was considering a kick.
jesavard has joined #ruby
failshell has quit []
<apeiros> but catphish seems to be cool about it, so kudos to his patience.
<catphish> ps. don't encode it as ascii, encode it as "binary"
reset has joined #ruby
<mark06> apeiros: it's past now, but useful meant for him, not me
<DouweM> apeiros: yeah
<catphish> i'm quite used to helping people in IRC :)
havenwood has quit [Remote host closed the connection]
tsykoduk is now known as zz_tsykoduk
<apeiros> catphish: yeah, doesn't mean you have to accept getting shitted all over for trying to help.
allsystemsarego_ has quit [Client Quit]
<DouweM> catphish: as am I, but I would've given up around the first insult
wormwood has quit [Read error: Connection reset by peer]
aryaching has joined #ruby
<mark06> apeiros: ascii 7 bit, right, but that doesn't mean the chars will have 7 bits, right? they'll have 8 with one leading zero, no?
havenwood has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
<apeiros> mark06: yes
<catphish> mark06: yes, but if you're going to encode it to something, convert it to "BINARY"
momomomomo has quit [Quit: momomomomo]
<catphish> >>"hello".force_encoding("BINARY").encoding
<eval-in> catphish => #<Encoding:ASCII-8BIT> (https://eval.in/69376)
robbyoconnor has joined #ruby
Aryasam has quit [Quit: Bye]
plotter has quit [Remote host closed the connection]
<apeiros> note that ascii-8bit != ascii
<catphish> it's basically a dumb 8-bit encoding that accepts both ascii and aby other junk you throw at it
<apeiros> ascii-8bit is a horrible alias for binary :)
<catphish> *any
weeems has quit [Quit: Leaving]
danshultz has quit [Ping timeout: 240 seconds]
shaunbaker has joined #ruby
momomomomo has joined #ruby
reset has quit [Ping timeout: 260 seconds]
Squarepy has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
theRoUS|afk has joined #ruby
weszlem has quit []
theRoUS|afk is now known as theRoUS
psyl0n has joined #ruby
Spami has joined #ruby
pyrac has quit [Quit: pyrac]
psyl0n has quit [Changing host]
psyl0n has joined #ruby
jbsnake has joined #ruby
tkuchiki has quit [Remote host closed the connection]
mojjojo has joined #ruby
Hanmac has joined #ruby
weszlem has joined #ruby
arietis has joined #ruby
zoee has quit [Quit: This computer has gone to sleep]
fedalto has joined #ruby
drag00n has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
<mark06> apeiros: I don't believe much in these authoritative, dictatorial approaches... for a simple reason, if someone *annoys* me, I can /ignore him, and if I don't, then I have psychological problems... not the case for catphish... just saw there was a misunderstanding even though he couldn't understand what exactly (I was misunderstanding the result of pack), for some reason he didn't care about my irritation with his supposed arrogance
pskosinski has joined #ruby
<mark06> after all, much of confusion is misunderstanding and people attack each other based on that
Hanmac1 has quit [Ping timeout: 272 seconds]
zipper has quit [Quit: leaving]
<mark06> so what I though to be arrogance was just a misunderstanding
Es0teric has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
Squarepy has quit [Quit: Leaving]
larissa has joined #ruby
<apeiros> mark06: look, it's simple - behave like an asshole and you're gone. you can believe in whatever you want. but this is what happens.
<mark06> yes sir
tesuji has joined #ruby
<mark06> but it's just your opinion, not the absolute truth
<apeiros> are you testing how far you can go with your behavior?
<mark06> no
wallerdev has joined #ruby
* workmad3 grabs popcorn
havenwood has joined #ruby
<catphish> people who are arrogant on IRC are often also correct ;)
momomomomo has quit [Quit: momomomomo]
<mark06> not that much catphish... I have examples where I was told some stuff were impossible to do... and I found out they weren't....
hogeo has quit [Remote host closed the connection]
<apeiros> mark06: and no, it's not my opinion. I'm telling you a fact.
<workmad3> catphish: how about people who arrogantly believe that they can hold whatever opinions they like and that these 'opinions' can't be wrong because they're opinions? :)
i_s has joined #ruby
<mark06> arrogance is not tied to correctness.... but I just know you wasn't able to detect what I was understanding wrong.... I had no clue as well
<mark06> apeiros: if you think it's a fact ok.That doesn't turn it into a fact though
<workmad3> catphish: or how about people who over-interpret a flippant, joke comment? :)
<apeiros> mark06: I'm an op. and yes, I will kick and ban you if you behave like an asshole. fact.
<workmad3> mark06: apeiros has ban-powers... he can therefore ban you, making his statement a fact
asteros has joined #ruby
watermel0n has joined #ruby
<apeiros> and if I'm not around, there's others.
<workmad3> although his statement would be more factual if it was 'behave like an asshole when I can see you, and you're gone' :)
<apeiros> ^
<apeiros> :)
<workmad3> now... I had some popcorn around here...
* workmad3 grabs his popcorn again and goes back to heckling
tylersmi_ has quit [Remote host closed the connection]
relix has quit [Read error: Connection reset by peer]
relix_ has joined #ruby
ckinni has joined #ruby
<mark06> catphish: for example once I had encoding problems in bash or something, and I explained the problem in ##bash.... the arrogant people (who believe to be always right) told me all sort of things... most of it meant basically I was stupid and doing things wrong (but interestingly, they could not explain why the problem was happening and its solution)...
CorySimmons has quit [Quit: Leaving.]
<mark06> catphish: however you'd be surprised what the solution was....
_bart has quit [Remote host closed the connection]
chuk has joined #ruby
<mark06> catphish: for a moment I even believed them a bit, to the point of reading bash's source code to find out the root problem and solution....
_bart has joined #ruby
fridim_ has quit [Read error: Operation timed out]
<mark06> catphish: but I didn't give up.... and the solution was ridiculously simple.... one specific program's argument and an edit on a configuration file.....
brtdv has joined #ruby
p8952 has quit [Read error: Operation timed out]
<apeiros> mark06: was catphish polite to you?
sepp2k has quit [Quit: Konversation terminated!]
CorySimmons has joined #ruby
chuk has quit [Client Quit]
<mark06> apeiros: not in my vision, but that was a misinterpretation... he actually just couldn't explain what was the problem with me, since he had no idea of my misunderstanding of pack's result
<apeiros> you think he was *impolite*? seriously?
<mark06> as I said, no
tannerburson has quit [Quit: tannerburson]
havenwood has quit [Remote host closed the connection]
<workmad3> mark06: err, the question was 'was catphish polite?' and you said 'no'
<mark06> apeiros: I was thinking, now I don't
abq has joined #ruby
kaspergrubbe has quit [Ping timeout: 264 seconds]
<mark06> workmad3: ^
<apeiros> which one is it now - was he polite or impolite?
<mark06> now = yes
zeade has joined #ruby
_bart has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
<apeiros> unintelligible
tannerburson has joined #ruby
<mark06> what I thought to be arrogance was miscommunication/misunderstanding
andikr has quit [Read error: Connection reset by peer]
endash has joined #ruby
macmartine has joined #ruby
momomomomo has joined #ruby
<mark06> the 2nd example... in the comments there's a high reputation guy trying to convince me that was impossible... interestingly he wasn't brave enough to put that on an answer.... interestingly, some time later someone added a function which supposedly does exactly what was asked....
aganov has quit [Remote host closed the connection]
<apeiros> mark06: I don't care about your examples.
mercwithamouth has joined #ruby
<apeiros> All I can see is that catphish was perfectly polite. He didn't insult you. He made only factual statements about what is and what you get.
<workmad3> mark06: why are you trying to repeatedly demonstrate that a jokey comment isn't absolutely true?
banister has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
i_s has quit [Remote host closed the connection]
<apeiros> And all I can see from you is that you felt justified in being offensive.
Grantlyk has joined #ruby
macmartine has joined #ruby
CorySimmons has quit [Quit: Leaving.]
mj12albert has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mark06> and I also figured out a ridiculous workaround to achieve the same effect: a transparent-background program mimicking the same font and size....
<mark06> apeiros: who makes you think the examples were to you?
<apeiros> mark06: you write in the channel. they're for everybody.
havenwood has quit [Ping timeout: 240 seconds]
<mark06> workmad3: what jokey comment?
<catphish> i missed all that lol
<workmad3> mark06: '16:31 < catphish> people who are arrogant on IRC are often also correct ;)'
<workmad3> mark06: you seem to be spending an in-ordinate amount of time now demonstrating that people who are arrogant aren't always correct...
Dwarf has quit [Ping timeout: 240 seconds]
<workmad3> mark06: which is kinda amusing considering a) the comment was a joke and b) the comment didn't state that arrogance == always correct
<catphish> perhaps they're only "often" correct, i choose my words carefully, even when making flippant jokes
<apeiros> workmad3: who said the examples were to you? :-p
* apeiros off
<workmad3> apeiros: :D
<workmad3> apeiros: like I care if the examples were intended for me... I'm arrogantly proving mark06 is wrong here!
<mark06> workmad3: aren't often... actually I meant there isn't really a relation... between arrogance and knowledge... it's each one's personality....
<mark06> workmad3: for example there's a bash wiki form a guy called greg...
flops has quit [Ping timeout: 264 seconds]
<workmad3> mark06: my point is that you're taking that flippant joke way too fucking seriously :P
Astralum has quit [Read error: Connection reset by peer]
<workmad3> mark06: I don't give a shit about any relationship or lack thereof between arrogance and correctness
<mark06> workmad3: it's a good wiki but greg is an asshole....
Dwarf has joined #ruby
Astralum has joined #ruby
<mark06> workmad3: but I know great people with great skills who are *far* from being arrogant....
<workmad3> mark06: good for you
<workmad3> mark06: so do I ;P
<workmad3> mark06: again, you're taking the entire *joke* way too seriously :P
yekta has joined #ruby
<workmad3> catphish: I am right in assuming the comment was a flippant joke? I'm not being arrogant in assuming such? ;)
CorySimmons has joined #ruby
Grantlyk has quit [Remote host closed the connection]
<JuriadoBalzac> I just stay away from arrogant people, it works well.
RichardBaker has joined #ruby
<workmad3> JuriadoBalzac: are you lonely? :D
Grantlyk has joined #ruby
<mark06> workmad3: no not taking too seriously.... just chatting too much.....
crazymykl has quit [Remote host closed the connection]
Grantlyk has quit [Read error: Connection reset by peer]
<JuriadoBalzac> workmad3: Haha, surprisingly not! :D
soulcake has quit [Read error: Connection reset by peer]
<mark06> workmad3: I stopped writing the code :-/
Grantlyk has joined #ruby
daxroc has joined #ruby
soulcake has joined #ruby
Grantlyk has quit [Remote host closed the connection]
<JuriadoBalzac> workmad3: Still, IT manages to attract those kind of men ( it's usually men ) so there is no shortage of them, but just as often I find helpful and nice people. Life's too short to stand assholes. ;)
Davey has quit [Quit: Computer has gone to sleep.]
Grantlyk has joined #ruby
h0rrorvacui has joined #ruby
crazymykl has joined #ruby
jerius has joined #ruby
lukec has joined #ruby
<workmad3> JuriadoBalzac: my test runs are too long to be left idle... and so I troll assholes while they're running ;)
user258467 has quit [Quit: Quitte]
i_s has joined #ruby
<JuriadoBalzac> workmad3: Whatever floats your boat ;)
<workmad3> trollolololololol
p8952 has joined #ruby
ssvo has joined #ruby
Lewix has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<catphish> workmad3: you are correct
burlyscudd has quit [Read error: Connection reset by peer]
beermouse has quit [Quit: beermouse]
burlyscudd has joined #ruby
<catphish> also lol
JesseH has joined #ruby
<apeiros> workmad3: I envy you for your job
<catphish> i have an extreme policy of assuming good faith on IRC, it's necessary when you have op privileges
daxroc has quit [Ping timeout: 272 seconds]
<apeiros> catphish: I try to ignore "tone"
havenwood has joined #ruby
<JesseH> Hi when I run "bundle" I get http://hastebin.com/foruwiyesi.vbs Line 5 is simple "gem 'pg', platforms: :ruby". What should I do to fix this?
Grantlyk has quit [Ping timeout: 272 seconds]
<catphish> also, lots of people don't have english as their first language
fedalto has quit [Ping timeout: 272 seconds]
<mark06> JuriadoBalzac: sometimes we can't keep away from them, e.g. at work... or on irc, where the arrogant decide not to /ignore you even though they think you're stupid.... and they're often moderators so you get stuck... I have learned this, so I often just "feed the pet" (I want to say "you're an asshole" but I just say "thank you very much")....lol
<workmad3> JesseH: stop using ruby 1.8?
baordog has joined #ruby
<catphish> but on the other hand, it won't make an effort to re-explain when people say i'm plain wrong when i know i'm right :)
sophomorical has quit [Ping timeout: 240 seconds]
<JesseH> ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux]
<mark06> JuriadoBalzac: and on my work, I just can't escape from them (mostly assholes not arrogant)
<JesseH> workmad3, I did, when 1.9 came out :P
<catphish> i work with extremely nice people
<JesseH> Oh, darn package manager. I still have 1.8 files on here.
<workmad3> JesseH: ;)
momomomomo has quit [Quit: momomomomo]
apeiros has quit [Remote host closed the connection]
<JesseH> Thank you workmad3 ;P
<catphish> which is what i should be doing instead of hanging out here
danshultz has joined #ruby
<workmad3> catphish: am I not extremely nice? :(
Uranio has joined #ruby
apeiros has joined #ruby
<catphish> sure, but you're not making me any money ;)
Grantlyk has joined #ruby
<workmad3> hehe
jkhwan has joined #ruby
shredding has joined #ruby
<mark06> catphish: you're lucky... I worked with nice people in the past... but not now
weszlem has quit []
jlebrech has quit [Quit: Konversation terminated!]
zz_tsykoduk is now known as tsykoduk
dhruvasagar has quit [Ping timeout: 245 seconds]
CaptainJet has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
CorySimmons has quit [Quit: Leaving.]
brtdv has quit []
Dwarf has quit [Remote host closed the connection]
dangerousdave has joined #ruby
Fire-Dragon-DoL has joined #ruby
<catphish> it helps that i'm in charge, so they have to be nice to me :)
Lewix has joined #ruby
Lewix has joined #ruby
Lewix has quit [Changing host]
mlpinit has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 272 seconds]
asteros has quit [Quit: asteros]
RichardBaker has quit [Quit: RichardBaker]
<catphish> but it is great working for a small company with people you know well
p8952 has quit [Read error: Operation timed out]
p8952 has joined #ruby
zigomir has quit [Quit: zigomir]
Es0teric has quit [Quit: Computer has gone to sleep.]
apeiros has quit [Ping timeout: 272 seconds]
coder_neo has quit [Quit: This computer has gone to sleep]
ephemerian has left #ruby [#ruby]
subbyyy has quit [Ping timeout: 246 seconds]
RichardBaker has joined #ruby
camilasan has quit []
<olivier_bK> i have a variable @file = File.open(''configuration_beta.stai.net.php).read
<olivier_bK> the display of my file <?php
<olivier_bK> $config['uid'] = 'beta';
<workmad3> olivier_bK: bad dev, leaving file handles open :P
<olivier_bK> i try to creat a regex for get the name beta
<olivier_bK> lol
freezey has quit [Remote host closed the connection]
<workmad3> olivier_bK: especially when there's a File.read('filename') method ;)
<olivier_bK> for that i creat that regex @uid= @file.scan (/('uid')(.*)/)
mojjojo has quit [Quit: mojjojo]
pragmatism has joined #ruby
timonv has quit [Remote host closed the connection]
yjmsf20 has quit [Quit: leaving]
Ripp__ has joined #ruby
timonv has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
<catphish> olivier_bK: as workmad3 says, change that to: @file = File.read("configuration_beta.stai.net.php")
ghr has quit [Quit: Computer has gone to sleep.]
<workmad3> olivier_bK: why not be a bit more explicit and do something like '@file.scan(/^\$config\['uid'\] = '([^']+)';$/) ?
Dwarf has joined #ruby
ewnd9 has quit [Ping timeout: 246 seconds]
p8952 has quit [Ping timeout: 272 seconds]
anderse has joined #ruby
soukihei has joined #ruby
freezey has joined #ruby
<catphish> >>"$config['uid'] = 'beta';".scan(/^\$config\['uid'\] = '([^']+)';$/)
<eval-in> catphish => [["beta"]] (https://eval.in/69405)
RobW_ has quit [Quit: RobW_]
<catphish> magic
fedalto has joined #ruby
wildroman has quit [Remote host closed the connection]
<catphish> with that said, i'd try to be more flexible with the whitespace, change the spaces to \w+
dhruvasagar has joined #ruby
<catphish> sorry, i mean \s+
asobrasil has joined #ruby
nazty has joined #ruby
<olivier_bK> catphish, the probleme is the name after uid is not the same everytime
<olivier_bK> that' my problem
cody-- has quit [Quit: derp]
Uranio has quit [Quit: while you reading this, a kitty dies]
<catphish> >>"$config['uid'] = 'arrrr' ; ".scan(/^\$config\['uid'\]\s*=\s*'([^']+)'/)
<eval-in> catphish => [["arrrr"]] (https://eval.in/69406)
alup has quit [Quit: Leaving]
<catphish> that's a little more flexible
timonv has quit [Ping timeout: 246 seconds]
<catphish> maybe add some whitespace at the start of the line too: (/^\s*\$config\['uid'\]\s*=\s*'([^']+)'/
<catphish> it's only the word "beta" that changes? or something else too?
<catphish> or you want to get all variables from the file?
carraroj has joined #ruby
mojjojo has joined #ruby
reset has joined #ruby
<catphish> there you go?
Hanmac1 has joined #ruby
<catphish> better example: http://rubular.com/r/b0vBB3FutB
jbpros has joined #ruby
hello_world has joined #ruby
reset has quit [Read error: Connection reset by peer]
reset has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
wildroman has joined #ruby
havenwood has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
mjs2600 has quit [Read error: No route to host]
mjs2600 has joined #ruby
havenwood has joined #ruby
mmitchell has joined #ruby
nari has quit [Ping timeout: 245 seconds]
RichardBaker has quit [Ping timeout: 248 seconds]
mojjojo has quit [Quit: mojjojo]
Xeago_ has quit [Ping timeout: 245 seconds]
<olivier_bK> catphish, thanks
mojjojo has joined #ruby
<olivier_bK> catphish, do you know where i can find a good tutorial about regex in ruby ?
momomomomo has joined #ruby
aspires has joined #ruby
sandeepk has joined #ruby
_409_ has quit [Read error: Connection reset by peer]
reset has quit [Ping timeout: 248 seconds]
simoz has joined #ruby
h0rrorvacui has quit [Quit: ZQ]
tannerburson has quit [Quit: tannerburson]
bootcoder has quit [Read error: Connection reset by peer]
bootcoder has joined #ruby
DoNcK has quit [Quit: Leaving.]
havenwood has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
dagobah has quit [Remote host closed the connection]
CorySimmons has joined #ruby
<mark06> >>Math.log10(123).ceil
<eval-in> mark06 => 3 (https://eval.in/69408)
iliketurtles has joined #ruby
mojjojo has quit [Client Quit]
<mark06> >>len=Math.log10(123).ceil
<eval-in> mark06 => 3 (https://eval.in/69409)
<mark06> I want to split a string into bit blocks of size len
lfox has quit [Quit: ZZZzzz…]
ericx2x has joined #ruby
tvw has quit []
<mark06> currently I'm getting the bytes, then converting to base 2, then joining, then scanning the block of size len, then converting back from base 2 to integer
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
iliketurtles has quit [Client Quit]
tvw has joined #ruby
<catphish> olivier_bK: that rubular site i linked to is great for testing and has some basic docs at the bottom
maletor has joined #ruby
<mark06> ah wait, I mean base 10 not 2
kevinfagan has joined #ruby
<mark06> any better way?
Voodoofish430 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
dhruvasagar has quit [Ping timeout: 252 seconds]
brahmana has joined #ruby
kevinfagan has quit [Client Quit]
mjs2600 has quit [Remote host closed the connection]
burlyscudd1 has joined #ruby
burlyscudd has quit [Ping timeout: 246 seconds]
maletor has quit [Read error: Connection reset by peer]
<olivier_bK> :)
weszlem has joined #ruby
dkastner has joined #ruby
maletor has joined #ruby
duggiefresh has quit [Remote host closed the connection]
tesuji has quit [Read error: Connection reset by peer]
duggiefresh has joined #ruby
lfox has joined #ruby
R33C3 has joined #ruby
danshultz has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
danshultz has joined #ruby
jbpros has quit [Quit: jbpros]
valesk has joined #ruby
obs has quit [Remote host closed the connection]
yfeldblum has joined #ruby
lukec has quit [Quit: lukec]
simoz has quit [Ping timeout: 245 seconds]
zoee has joined #ruby
gotjosh has quit [Remote host closed the connection]
MrZYX|off is now known as MrZYX
danshult_ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
<catphish> mark06: do you need them variable length, or do you have a particular goal / specific number of bits?
carraroj has quit [Ping timeout: 272 seconds]
<catphish> there are lots of bitshifting maths tricks you could do
chuk has joined #ruby
timonv has joined #ruby
hello_world has quit [Ping timeout: 250 seconds]
<catphish> though frankly converting the whole thing to a string base2 and back as you suggested might be simpler
CorySimmons has quit [Quit: Leaving.]
DanKnox_away is now known as DanKnox
m8 has joined #ruby
lfox has quit [Ping timeout: 272 seconds]
bret has joined #ruby
JonahR has joined #ruby
mlpinit has joined #ruby
billy_ran_away has joined #ruby
pyrac has joined #ruby
carraroj has joined #ruby
pyrac has quit [Client Quit]
R33C3 has quit [Remote host closed the connection]
akonny has joined #ruby
zigomir has joined #ruby
Grantlyk has quit [Ping timeout: 245 seconds]
jiri_ has joined #ruby
<mark06> ok... I'm assuming unsigned 64-bit as a limit... pack("Q*")
akonny has quit [Client Quit]
Apane has quit [Ping timeout: 272 seconds]
mklappstuhl has quit [Remote host closed the connection]
thumpba has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
dev1x has left #ruby ["Leaving"]
dev1x has joined #ruby
stetho has joined #ruby
DouweM has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
Reach has quit [Remote host closed the connection]
Apane has joined #ruby
shaunbaker has quit [Remote host closed the connection]
yekta has quit [Quit: yekta]
burlyscudd1 has quit [Quit: Leaving.]
kaspergrubbe has quit [Read error: Operation timed out]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shaunbaker has joined #ruby
p8952 has joined #ruby
mikecmpbll has joined #ruby
asteros has joined #ruby
jhaals_ has quit [Ping timeout: 248 seconds]
thumpba has quit [Ping timeout: 272 seconds]
daxroc has joined #ruby
daxroc has quit [Changing host]
daxroc has joined #ruby
havenwood has joined #ruby
kaspergrubbe has joined #ruby
ckinni has joined #ruby
stetho has quit [Quit: Textual IRC Client: www.textualapp.com]
Czupa has joined #ruby
stetho has joined #ruby
lukec has joined #ruby
benwoody has quit [Quit: benwoody]
shaunbaker has quit [Ping timeout: 272 seconds]
dnyy has joined #ruby
psyl0n has quit [Remote host closed the connection]
tvw has quit []
erinb has joined #ruby
Bry8Star{T2 has quit [Remote host closed the connection]
chuk has left #ruby ["Leaving"]
daxroc has quit [Ping timeout: 246 seconds]
ananthakumaran has quit [Quit: Leaving.]
jiri_ has quit [Quit: leaving]
Bry8Star{T2 has joined #ruby
R33C3 has joined #ruby
burlyscudd has joined #ruby
stetho has quit [Quit: Textual IRC Client: www.textualapp.com]
wang has quit [Read error: Operation timed out]
catphish has quit [Quit: Leaving]
Speed has joined #ruby
p8952 has quit [Ping timeout: 272 seconds]
tylersmith has joined #ruby
s2013 has joined #ruby
Ripp__ has quit []
tylersmith has quit [Remote host closed the connection]
benwoody has joined #ruby
rdark has quit [Quit: leaving]
<olivier_bK> how can i test a result of my function in ruby ?
akonny has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
havenwood has quit [Ping timeout: 246 seconds]
krz has quit [Quit: krz]
tylersmith has joined #ruby
nobitanobi has joined #ruby
Runkle has left #ruby [#ruby]
mjs2600 has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
abq has quit []
petey_ has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
sandeepk has quit [Ping timeout: 272 seconds]
shelzmike has joined #ruby
mojjojo has joined #ruby
MrHacks has joined #ruby
superscott[8] has joined #ruby
shredding has quit [Quit: shredding]
<MrHacks> For some reason IRB loads JRuby on start up. I'm thinking this should not happen.
Hanmac has joined #ruby
heidi has joined #ruby
apeiros has joined #ruby
<MrHacks> Also, syntax highlighting for ruby files doesn't seem to be working on Vim any more.
AlSquire has quit [Quit: This computer has gone to sleep]
beermouse has joined #ruby
freezey has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 248 seconds]
nowthatsamatt has joined #ruby
phansch has quit [Remote host closed the connection]
mark06 has left #ruby [#ruby]
Spami has joined #ruby
Speed has left #ruby ["WeeChat 0.4.2"]
iajrz_ has quit [Read error: Operation timed out]
guy has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
_bart has joined #ruby
<guy> Very random question, though any chance anyone know John Browning?
mr`spock has quit [Quit: Leaving]
cody-- has joined #ruby
TMM has quit [Quit: Ex-Chat]
saarinen has joined #ruby
nanoyak has joined #ruby
carraroj has quit [Ping timeout: 240 seconds]
capicue has joined #ruby
freezey has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
maletor has joined #ruby
p8952 has joined #ruby
timonv has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
timonv has joined #ruby
mjs2600 has joined #ruby
PPH has joined #ruby
jesavard has quit [Quit: jesavard]
<PPH> msg sds hey
Xuerian has quit [Read error: Connection reset by peer]
jrhe has joined #ruby
cburyta_ has joined #ruby
benlieb has joined #ruby
s2013 has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
s2013 has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
jb41 has quit [Ping timeout: 260 seconds]
mjs2600 has quit [Remote host closed the connection]
ahmedelgabri has joined #ruby
Gabri has joined #ruby
Ripp__ has joined #ruby
Advocation has quit [Quit: Advocation]
ahmedelgabri has quit [Client Quit]
iamjarvo has joined #ruby
_409_ has joined #ruby
iamjarvo has quit [Remote host closed the connection]
iamjarvo has joined #ruby
iajrz_ has joined #ruby
Gabri has quit [Quit: Gabri]
freezey has quit [Remote host closed the connection]
ahmedelgabri has joined #ruby
mjs2600 has joined #ruby
psyl0n has joined #ruby
havenwood has joined #ruby
mlpinit has quit [Remote host closed the connection]
<bricker`away> Why is the ruby source code indented so inconsistently? Tabs and spaces everywhere. I would guess they would be strict about that, so I'm sure there is another explanation. I've heard something before about how Vim handles indentation?
sayan has quit [Ping timeout: 245 seconds]
baordog has quit [Remote host closed the connection]
danshult_ has quit [Remote host closed the connection]
gcds has joined #ruby
danshultz has joined #ruby
<shevy> bricker`away my ruby source code is indented perfectly
ahmedelgabri has quit [Client Quit]
nanoyak has quit [Read error: Operation timed out]
<gcds> Hello, searching for specialist in HTTP/TCP in building library for http proxy, pm me :)
<shevy> bricker`away if you find a tab user that guy must be a pythonista
Dreamer3 has joined #ruby
ahmedelgabri has joined #ruby
_409_ has quit [Ping timeout: 248 seconds]
Hanmac1 has joined #ruby
<shevy> and I dont think many use vim actually
Zai00 has quit [Quit: Zai00]
<shevy> sublime is a popular choice on #ruby
MrHacks has quit [Quit: leaving]
Spami has quit [Quit: Leaving]
ahmedelgabri has quit [Client Quit]
freezey has joined #ruby
bricker`away has quit [Ping timeout: 264 seconds]
Hanmac has quit [Ping timeout: 245 seconds]
bricker`away has joined #ruby
<gcds> all the way for textmate :D
cescalante is now known as ce_afk
<olivier_bK> could you tell where is my error ?
<shevy> olivier_bK the first problem is that you dont use gist correctly
<shevy> it already has line numbers on the left, no need to make them twice!
<shevy> also
<shevy> you use @ivars outside methods, within a class
<shevy> that is 99% of the time not what you wanted
<olivier_bK> yes sorry
<bricker`away> Sorry I got disconnected, did anybody have any theories about the ruby indentation?
<olivier_bK> i didn see
danshultz has quit [Read error: Connection reset by peer]
danshult_ has joined #ruby
nanoyak has joined #ruby
<shevy> olivier_bK simply move that to a method, it should work
<shevy> save for one thing:
<shevy> DeleteInstance.new("#{@uid_instance}")
<shevy> this can not work because there is no known @uid_instance
<shevy> and btw
<shevy> this is the same as doing this:
<shevy> DeleteInstance.new(@uid_instance)
<shevy> both examples wont work, but there is no need for the "" quote
tannerburson has joined #ruby
mercwithamouth has quit [Ping timeout: 272 seconds]
<shevy> bricker`away yes, you apparently look at people who arent programming a lot
piot has joined #ruby
<bricker`away> shevy: excuse me?
lsmola_ has quit [Ping timeout: 245 seconds]
<shevy> bricker`away my code is perfectly indented, no tabs ever. I dont use vim. I also find that most ruby users indent with spaces
<olivier_bK> shevy okai
noop has joined #ruby
<bricker`away> shevy: I'm talking about https://github.com/ruby/ruby
lmickh has quit [Quit: lmickh]
<shevy> bricker`away ugh you mean C code?
<bricker`away> yeah
<shevy> bricker`away well most of these are japanese hackers
jerius has quit [Quit: Computer has gone to sleep.]
<shevy> and emacs users :P
<shevy> but it's C anyway, who cares about C
einarj has joined #ruby
jprovazn has quit [Quit: Odcházím]
<shevy> olivier_bK, you could try with: DeleteInstance.new(10) to see if the error is different (should be)
<shevy> olivier_bK, in def get_name(url) though, you do not make use of the name: "url"
kaspergrubbe has quit [Remote host closed the connection]
R33C3 has quit [Remote host closed the connection]
<shevy> url is not the same as @url, two different variables
mansi has joined #ruby
gcds has quit [Read error: Connection reset by peer]
<nobitanobi> shevy, so... I discovered what was happening yesterday with https://gist.github.com/novito/7533106
gcds has joined #ruby
<nobitanobi> In both examples, talk is called withing the context of Child, which is an isntance of Class
ssvo has quit [Quit: Lost terminal]
<nobitanobi> However, in one, talk is defined on Object which class is a subclass of.
ssvo has joined #ruby
<nobitanobi> On the other hand, talk is defined on Parent class, which Class is not a subclass of.
<olivier_bK> shevy, i try as you say but i dont get any error
<nobitanobi> That's why :P
jmeeuwen has quit [Remote host closed the connection]
thelorax123 has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
<nobitanobi> olivier_bK, post exactly what you tried
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
einarj has quit [Ping timeout: 245 seconds]
<olivier_bK> okai
aspires has quit [Quit: sudo making a sandwich]
<olivier_bK> i dont understand why i dont have in my screen URL DE ..
thelorax123 has joined #ruby
alexim has joined #ruby
Ox6abe has quit [Remote host closed the connection]
whunt_ has joined #ruby
piot has left #ruby [#ruby]
whunt_ is now known as whunt
manoj_ has joined #ruby
xcess_denied has quit [Ping timeout: 245 seconds]
daxroc has joined #ruby
<shevy> olivier_bK you forgot to put the code into a method
<shevy> olivier_bK the part there: "@uid_instance = gets.chomp "
aspires has joined #ruby
<shevy> olivier_bK, I show you one example how it should work, but before opening it, try to solve it yourself, otherwise your brain may not discover the error
<olivier_bK> :)
mando has joined #ruby
mando has quit [Remote host closed the connection]
mando has joined #ruby
matti has quit [Quit: Oh dear...]
<shevy> nobitanobi still trying to understand
<shevy> nobitanobi aha you mean that it is defined on the class level
valesk has quit [Remote host closed the connection]
alexim has quit [Quit: bye]
lethjakman has joined #ruby
daxroc has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
petey has joined #ruby
finch has joined #ruby
superscott[8] has quit [Quit: superscott[8]]
JimmyNeutron has joined #ruby
echevemaster has joined #ruby
Spami has joined #ruby
_bart has quit [Remote host closed the connection]
<finch> Good day folks, I'm diving into the scary parts of ruby's openssl bindings and I've hit a snag - namely I can't fully understand the use of OpenSSL::X509::ExtensionFactory and why it would be used over directly creating extensions. It seems to enforce that extensions are standard x509v3 extensions but I'm lost beyond that.
_bart has joined #ruby
JimmyNeutron has left #ruby [#ruby]
<finch> Is anyone else familiar with this code and the openssl bindings?
reset has joined #ruby
Takehiro has joined #ruby
<Takehiro> hey can u make @foo ? @foo : ‘foo’ shorter?
R33C3 has joined #ruby
ghostjangles has joined #ruby
<beermouse> @foo ||= 'foo'
<Hanmac1> Takehiro: @foo || = 'foo'
Hanmac1 is now known as Hanmac
<beermouse> if you're just checking for nil
<canton7> note that that assignes to @foo, which your example doesn't do
<Hanmac> then @foo || 'foo'
<Takehiro> i dont want the @foo signed if it's nil :(
<Takehiro> aha @foo || 'foo'
<beermouse> take Hanmac's line then
<Takehiro> thanks :)
<Takehiro> thanks guys
<finch> Alternately, does anyone know a good primer on the MRI ruby internals? I've been mucking around in the C implementation and could use more information while I'm there.
ghr has joined #ruby
randomnick_ has joined #ruby
mjs2600 has quit [Ping timeout: 272 seconds]
Takehiro has quit [Client Quit]
failshell has joined #ruby
yekta has joined #ruby
_bart has quit [Ping timeout: 264 seconds]
R33C3 has quit [Ping timeout: 246 seconds]
mjs2600 has joined #ruby
<olivier_bK> shevy, thanks for you help now i understand where is my mistake
dallasm_ has joined #ruby
rezzack has joined #ruby
<shevy> cool
rezzack has quit [Client Quit]
<shevy> finch I think the people here on #ruby are incompetent when it comes to C
jrhe has quit [Ping timeout: 245 seconds]
DanBoy has quit [Ping timeout: 240 seconds]
rezzack has joined #ruby
iajrz_ has quit [Remote host closed the connection]
RichardBaker has joined #ruby
<cout> finch: there used to be a good book on the subject in japanese
<momomomomo> shevy: Nice trolling
<shevy> hehe
<cout> and someone was translating it to english
<cout> might be out of date by now, I'm not sure
<shevy> momomomomo it's a fact
<finch> shevy: admittedly I'm asking some seriously esoteric questions, but I've been diving into the source of openssl and ruby and reading RFCs till my eyes bleed so I was hoping I could have someone hold my hand a little :)
ringaroses has quit [Ping timeout: 246 seconds]
<finch> cout: thanks much!
<cout> looks out of date :(
<momomomomo> shevy: That's just bad logic at work; being in the set of ruby developers != incompetent with C
<finch> I'll take what I can get
<shevy> momomomomo are you a C guru?
<momomomomo> lots of people (like myself) start with C
aarkerio has joined #ruby
<finch> Where would be a good place to ask questions about the ruby/openssl bindings?
<shevy> finch ack ;)
<cout> finch: one of the mailing lists
<finch> oh, duh, thanks
btanaka has joined #ruby
<aarkerio> hi! Can I do this:
<momomomomo> also shevy even if I didn't know any C, anecdotal evidence would just be a silly way to base your argument
<aarkerio> my_array['Enti'] << %w[e.id, e.name]
Vori has joined #ruby
<shevy> momomomomo ok so you are not a C guru :(
<momomomomo> I never claimed to be one
phansch has joined #ruby
<shevy> finch, it's scary, ossl.c in ext/openssl has this: "Copyright (C) 2001-2002 Michal Rokos <m.rokos@sh.cvut.cz>"
<RubyPanther> If you lean on the Ruby C API then you can write nice clean baby-C
<apeiros> shevy: naaa, not everybody in this channel is as incompetent with C as I am.
FDj has quit [Ping timeout: 240 seconds]
<shevy> finch might be he stopped using ruby years ago
<shevy> ok
krz has joined #ruby
<shevy> who of you is really good in C?
<RubyPanther> my C is so ignorant, it compiles anywhere
valesk has joined #ruby
<shevy> :(
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
alexim has joined #ruby
<shevy> finch you could try #ruby-lang
io_syl has joined #ruby
<shevy> some people like zenspider and drbrain never come to #ruby but they know C
<RubyPanther> I don't know if I'm any good, I'd have to write tests to find out, and I don't write those
<aarkerio> I am getting: no implicit conversion of String into Integer
<shevy> and chris2
<shevy> lol RubyPanther
jamblack has joined #ruby
alexim has quit [Client Quit]
<cout> afaict finch's question is an openssl library question, not a C or ruby question
guy has quit []
<shevy> yeah, it's even scarier
<cout> I avoid openssl like the plague
<RubyPanther> openssl; less painful than it used to be
<aarkerio> ok , I got it
<shevy> (*hexbuf)[2 * i] = hex[((unsigned char)buf[i]) >> 4];
<shevy> so beautiful
momomomomo has quit [Quit: momomomomo]
<mojjojo> are there any gems for doing simple linear regression ?
<finch> it's a bit of both, actually - ruby has this ExtensionFactory class that has no equivalent in openssl, and I'm working on code that uses it and I have no idea why
<finch> shevy: with respect to the copyright, I was mucking around in the openssl code base and found a few files that haven't been updated since 1998 :/
<RubyPanther> as soon as I see the word "factory" I blink and skip
<shevy> haha
ckinni has joined #ruby
<shevy> 15 years
<shevy> some ruby hackers were not even born in 1998
bricker`away is now known as bricker`work
Takehiro has joined #ruby
<RubyPanther> that is good, that is stable
<Takehiro> Hi again :P, can u make @foo.try(:bar).try(:[], 'biz') shorter....?
<finch> RubyPanther: the relevant code was a frightening C macro
wildroman has quit [Remote host closed the connection]
mlpinit has joined #ruby
<RubyPanther> macros are usually frightening
<shevy> Takehiro hmm not sure... try() seems to catch events when @foo has not those methods? otherwise this would be shorter: @foo.bar['biz']
<finch> yeah :(
ahawkins has joined #ruby
<shevy> the worst factory I know is a factory girl
<Takehiro> @shevy yea... but i have some cases when @foo is nil :(
DanBoy has joined #ruby
<Takehiro> and i want to avoid 'no method "bar" defined for nil'
<Takehiro> error
<RubyPanther> shevy: I hear a lot of people crying over her, heartbroken
<shevy> well
freezey has quit [Remote host closed the connection]
<finch> Takehiro: `unless @foo.nil`
<shevy> Takehiro, you could always do this too:
aspires has quit [Quit: sudo making a sandwich]
maasha has joined #ruby
<shevy> @foo.bar['biz'] if @foo
<finch> s/nil/nil?/
<maasha> evening.
gotjosh has joined #ruby
<Takehiro> hmmm i c
<shevy> RubyPanther in my mind, I just don't get why there is a girl in a factory and why a class in ruby is named that way
gcds has quit [Quit: gcds]
<Takehiro> i guess i'll stick to @foo.try(:bar).try(:[], 'biz') since the actuall code is
<Takehiro> @foo.try(:bar).try(:[], 'biz') || 'foobarbiz'
<shevy> lisp!
<RubyPanther> shevy: I think she is some sort of cartoon superhero
yugui is now known as yugui_zzz
Vori has quit []
<RubyPanther> that is what somebody said in 07 I think
picca has joined #ruby
chuk has joined #ruby
ringaroses has joined #ruby
ringaroses has quit [Read error: Connection reset by peer]
picca has quit [Remote host closed the connection]
<maasha> I am playing with emulating a Unix pipe in Ruby, but I have a couple of problems: https://gist.github.com/maasha/26aa5643315b3c7c0406
nwertman has quit [Ping timeout: 272 seconds]
thesheff17 has quit [Ping timeout: 272 seconds]
mikepack has quit [Remote host closed the connection]
<maasha> 1) it doesnt work because of hanging open file that I cant figure out how to fix and 2) I really want all commands added with add() to take accept list of records and return a list of records and only manipulate the list elements if they are apropriate.
nwertman has joined #ruby
gcds has joined #ruby
<maasha> line #55 is the problem I think.
_bart has joined #ruby
olivier_bK has quit [Ping timeout: 272 seconds]
benwoody has quit [Quit: benwoody]
thesheff17 has joined #ruby
aspires has joined #ruby
fedalto has quit [Quit: Leaving]
LarsSmit has joined #ruby
FDj has joined #ruby
zipper has joined #ruby
<havenwood> What is the return value of? options[:output]
LarsSmit has quit [Client Quit]
<maasha> havenwood: a file name (a String)
yekta has quit [Ping timeout: 264 seconds]
yekta has joined #ruby
Reach has joined #ruby
<maasha> havenwood: thing is, the method is called twice and the file is never closed.
RichardBaker has quit [Quit: RichardBaker]
<havenwood> maasha: What do you want save to return?
lfox has joined #ruby
mikepack has joined #ruby
Hanmac1 has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
amalrikMaia has joined #ruby
RichardBaker has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Hanmac has quit [Ping timeout: 264 seconds]
<maasha> havenwood: hm, nothing I guess?
nateberkopec has quit [Quit: Leaving...]
benzrf has joined #ruby
<benzrf> >> foo
<eval-in> benzrf => undefined local variable or method `foo' for main:Object (NameError) ... (https://eval.in/69445)
<benzrf> thx
benzrf has left #ruby [#ruby]
chuk has quit [Quit: Leaving]
alvaro_o has joined #ruby
dallasm_ has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 240 seconds]
<maasha> ?
<havenwood> maasha: ln55 ios = File.read
raphaelivan has joined #ruby
<havenwood> oh sry
gcds has quit [Read error: Connection reset by peer]
weems has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
weems has quit [Remote host closed the connection]
gcds has joined #ruby
iamjarvo has joined #ruby
<havenwood> maasha: So usually you'd put the logic inside a do/end block with File.open. Like : File.open do |ios|
<havenwood> which auto-closes the files when the block ends
mengu has joined #ruby
mengu has joined #ruby
<havenwood> maasha: Let the block handle closing the file for you, nicer that way.
timonv has joined #ruby
kaspergrubbe has joined #ruby
polaco_zZz is now known as polaco
mklappstuhl has quit [Remote host closed the connection]
<maasha> havenwood: yes, but the lazy evaluation of the entire pipe is executed from without the scope of #save and then the file will be closed.
gcds has quit [Read error: Connection reset by peer]
<gotjosh> Hey Guys! While working on an image cropping calculation I decided to scope this into this classes. Any suggestion on how this could be improved? Specially on the .to_f's and .rounds? https://gist.github.com/gotjosh/e3078e78fd20fe93af5d
<havenwood> maasha: oh, so you don't want it to close?
<havenwood> maasha: whaa? What are you doing?
ahawkins has quit [Ping timeout: 245 seconds]
gcds has joined #ruby
gcds has quit [Client Quit]
lkba has quit [Ping timeout: 245 seconds]
asteros has quit [Read error: Connection reset by peer]
freezey has joined #ruby
<havenwood> gotjosh: Looks good to me. A lesser used alt to `THUMBNAIL_WIDTH / @horizontal.to_f` is `THUMBNAIL_WIDTH.fdiv(@horizontal)` but yeah, your code looks good to me
nateberkopec has joined #ruby
jbpros has joined #ruby
<nobitanobi> shevy, yes
<nobitanobi> sorry for l8 response
mjs2600 has quit [Remote host closed the connection]
<havenwood> gotjosh: Are those really constants?
<nobitanobi> it's defined on the class level, and since the class is Object and Object is an ancestor of Class, yeah
<nobitanobi> :P
iamjarvo_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<shevy> hmm
<shevy> ok
mjs2600 has joined #ruby
<shevy> nobitanobi, is this any useful though? :D
<nobitanobi> nops ahha
<shevy> hehehe
<nobitanobi> but I was trying to understand all the whole main Object and so...
shredding has quit [Quit: shredding]
<nobitanobi> all started me asking why we could do "puts"
<shevy> I am happily using ruby without understanding it :D
<nobitanobi> where it was defined
<nobitanobi> haha, I'm sure you understand it
phinfonet has joined #ruby
iamjarvo_ has quit [Remote host closed the connection]
<gotjosh> @havenwood no, but I'm scoping them like that for now. I'm looking for a clever way to pass those as optional but I'm not sure if they should live in the Axis.
decoponio has quit [Quit: Leaving...]
iamjarvo_ has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Remote host closed the connection]
brtdv has joined #ruby
<havenwood> gotjosh: just a nit but an extra whitespace before the word `initialize` on line 4
<havenwood> :P
<gotjosh> @havenwood got it thanks :)
benwoody has joined #ruby
lmickh has joined #ruby
mklappstuhl has joined #ruby
_bart has quit []
<maasha> havenwood: well, I am setting up a pipeline with add() and executing it with run(). Only at run() should data be process and in a lazy fashion so the data is not loaded into memory all at once.
jkhwan has quit [Remote host closed the connection]
iliketurtles has joined #ruby
jkhwan has joined #ruby
jb41 has joined #ruby
<havenwood> maasha: So you want an IO.pipe that reopens stdout?
mjs2600 has quit [Remote host closed the connection]
<havenwood> maasha: Are you familiar with Jesse Storimer's shirt?
<havenwood> >.> ^ I sound insane saying that. Oh well, unicorns and rainbows!
mansi has quit [Read error: Connection reset by peer]
<maasha> havenwood: I am interested in a solution - possibly ideas to alter my design. What shirt?
DonRichie has quit [Quit: Verlassend]
mansi has joined #ruby
<havenwood> maasha: An example of shell pipes implemented in Ruby.
aspires has quit [Quit: sudo making a sandwich]
Hanmac has joined #ruby
<havenwood> maasha: This is what it sounds like you're looking for.
daxroc has joined #ruby
<maasha> ah, lemmy have a look :o)
mjs2600 has joined #ruby
zipper has quit [Quit: leaving]
vlad_starkov has joined #ruby
zipper has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
jkhwan has quit [Ping timeout: 272 seconds]
lkba has joined #ruby
<havenwood> maasha: yay fer unix pipes! happy hacking!
<maasha> ty
polaco is now known as polaco_zZz
zoee has quit [Quit: This computer has gone to sleep]
<havenwood> maasha: (Part 4 of what I linked is where he covers pipes. ^ )
Jetchisel has joined #ruby
daxroc has quit [Ping timeout: 245 seconds]
<maasha> right
maletor has quit [Quit: Computer has gone to sleep.]
Mars has joined #ruby
mando_ has joined #ruby
<havenwood> mix reopeming pipes with forking and you're in business
<zipper> Uh I have this issue with chruby I install a ruby in 1.9.3 but it goes on to install gems in ~/.gem/ruby/1.9.1 which is not the $GEM_HOME. Here is the gist for installation: https://gist.github.com/urbanslug/7529043
<zipper> here is my gems env output: https://gist.github.com/urbanslug/7528900
<waxjar> zipper, that's normal :)
AlSquire has joined #ruby
JonahR has quit [Quit: jonahR]
lukec has quit [Quit: lukec]
mando has quit [Ping timeout: 246 seconds]
<zipper> waxjar: but I can't run bundle
maletor has joined #ruby
<zipper> even after installing bunler successfully.
<havenwood> zipper: Check from whence your bundler cometh: command -v bundle
<zipper> I am starting to think that it's a problem with the package.
mando_ has quit [Ping timeout: 264 seconds]
<zipper> the package I'm running the bundle in.
jamblack has quit [Quit: jamblack]
mklappstuhl has quit [Remote host closed the connection]
tvw has joined #ruby
lukec has joined #ruby
kaspergrubbe has joined #ruby
mikepack has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
polaco_zZz is now known as polaco
aspires has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lemonsparrow has quit [Ping timeout: 250 seconds]
cburyta_ has quit [Remote host closed the connection]
<cek> Hi. I'm trying to create a proxy object that would "overwrite" a known method for a block: https://gist.github.com/celesteking/3bd3f3317f2c90fcf770
<zipper> Fuck chruby man!! This is crap!
mojjojo has quit [Quit: mojjojo]
jmeeuwen has joined #ruby
ffranz has quit [Quit: Leaving]
<havenwood> zipper: I promise chruby is lovingly and painstakingly crafted. Did you check which bundler you're using?: command -v bundler
<havenwood> bundle*
<havenwood> the bundle(r) thing always throws me...
<havenwood> i swear half of devs don't realize `bundle` and `bundle install` are an alias
asteros has joined #ruby
mmitchel_ has joined #ruby
ldnunes has quit [Quit: Leaving]
<zipper> havenwood: it won't install the bloody gem :C https://gist.github.com/urbanslug/7529043
drumusician has joined #ruby
<havenwood> zipper: You mean you're having RubyGems trouble? What you linked looks like a successful installation on bundler.
timonv has quit [Ping timeout: 252 seconds]
salmonax has quit [Read error: Connection reset by peer]
<nobitanobi> I have a call that looks like this: Process.spawn("casperjs #{path_to_file} '#{params[:page][:url]}' '#{Rails.root}/tmp/' --ignore-ssl-errors=yes", :out => pipe_cmd_out, :err => pipe_cmd_out)
<zipper> havenwood: The gems aren't installing right and even when I add their path to path still nothing. I get: https://gist.github.com/urbanslug/7534573
benzrf has joined #ruby
BizarreCake has quit [Ping timeout: 272 seconds]
<benzrf> >> 3
<eval-in> benzrf => 3 (https://eval.in/69477)
<benzrf> hmm
zz_jrhorn424 is now known as jrhorn424
<benzrf> >> puts 3
<eval-in> benzrf => 3 ... (https://eval.in/69478)
<nobitanobi> If params[:page][:url] has a " ' " on it, I get Syntax error: Unterminated quoted string ', how can I avoid that?
<zipper> havenwood: looks but is not
<benzrf> ah
Lope has joined #ruby
<zipper> and I can't tell why smh
benzrf has left #ruby [#ruby]
<Lope> is the ruby that comes with apt in the Ubuntu repos crap or is it okay?
<zipper> Lope: 1.8.*?
<havenwood> too old
parduse has quit []
<Lope> so what version manager is good?
mmitchell has quit [Ping timeout: 246 seconds]
<Lope> rvm?
<havenwood> Lope: 1.9+ is fine, 1.8 is past end of life.
capicue has quit [Quit: Leaving...]
<havenwood> Lope: I like ruby-install and chruby. RVM is popular, especially if you want a larger tool or your unix-fu is weak.
vlad_sta_ has joined #ruby
ckinni has joined #ruby
<Lope> I'm not a big ruby user
jbsnake has quit [Read error: Connection reset by peer]
<Lope> so whatever is quicker and easier?
<havenwood> Lope: RVM is easy.
<Lope> cool
<havenwood> Lope: Do that, easier than dealing with the apt packages.
<havenwood> Lope: Just don't use apt to install rvm, follow rvm's website instructions.
<zipper> havenwood: did you see what happens when I attempt to run bundle? https://gist.github.com/urbanslug/7534573
<havenwood> zipper: command -v bundle
benwoody has quit [Quit: benwoody]
<havenwood> zipper: ^ what is the output
parduse has joined #ruby
flops has joined #ruby
ckinni has quit [Client Quit]
<Lope> havenwood: for sure :)
artem has joined #ruby
<Lope> O
<Lope> I'm familiar with using version managers to get around distros archaic versions of stuff.
<havenwood> hehe
vlad_starkov has quit [Ping timeout: 272 seconds]
jerius has joined #ruby
<havenwood> I love that Fedora 19's Ruby is 2.0.0-p247 and out-of-the-box sane non-sudo gem setup.
Guest29506 has quit [K-Lined]
<havenwood> The Debian folks dropped the ball with Ruby installation, oh well, there is ruby-install/chruby, rvm, and ruby-build/rbenv to deal with that.
<havenwood> Mavericks is 2.0.0-p247 but silly system gem home.
Maarius has joined #ruby
<Hanmac> Mavericks is the worst
<havenwood> Hanmac: Why you no like?
<havenwood> Hanmac: I get better battery life so i'm happy.
<havenwood> OS X should switch the default shell to zsh.
<Hanmac> because every lib developer i was talking to says that Mavericks breaks nearly everything
<havenwood> They can't ship bash 4.2, and having all these people on bash 3.2 is silly
<Maarius> Hello, I want to open an url with ruby and append a key. At the moment I do `open https://xxx.info/`.key["x"] but that does not work
Mars` has quit [Remote host closed the connection]
<Hanmac> when nothing is working than its the reason why the battery lives longer
<havenwood> Hanmac: works on my machine :P
nisstyre has joined #ruby
<havenwood> Hanmac: what ain't working?
dnyy_ has joined #ruby
<Hanmac> Maarius: `` returns a string not a hash
Thanatermesis has quit [Quit: ɯlɐɔ uı ʞɹoʍ oʇ ƃuıoƃ]
dnyy has quit [Read error: Connection reset by peer]
<Maarius> Hanmac: Ok, what do I have to change then?
neonlex has joined #ruby
reset has quit [Quit: Leaving...]
Thanatermesis has joined #ruby
<Hanmac> Maarius: depens that your page is returning ... does it use json or similar?
Guest94028 has joined #ruby
riku- has joined #ruby
<Maarius> Hanmac: Maybe I expressed myself not clearly. I just want to open the URL in the browser with the key["x"] appended.
funburn has joined #ruby
JuanMiguel has joined #ruby
<Maarius> Hanmac: It opens browser with the url however the key["x"] is not appended
<havenwood> Maarius: You want to interpolate an 'x' at the end of the url in the opened browser?
zipper has quit [Quit: leaving]
plotter has joined #ruby
plotter has joined #ruby
plotter has quit [Changing host]
shredding has joined #ruby
<havenwood> Maarius: `open https://xxx.info/#{your_x_var_here}`
mansi has quit [Remote host closed the connection]
<havenwood> Maarius: #{} <- is used for interpolation
mansi has joined #ruby
<Maarius> havenwood: Yes exactly. I was just able to figure that out by looking at old code from me. But thanks a lot!!
neonlex has quit [Ping timeout: 245 seconds]
jerius has quit [Quit: Computer has gone to sleep.]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
neonlex has joined #ruby
momomomomo has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mansi_ has joined #ruby
benlieb has quit [Quit: benlieb]
petey has quit [Remote host closed the connection]
petey has joined #ruby
flops has quit [Remote host closed the connection]
ravster has joined #ruby
benlieb has joined #ruby
mando_ has joined #ruby
_maes_ has quit [Ping timeout: 246 seconds]
ckinni has joined #ruby
valesk has quit [Remote host closed the connection]
simoz has joined #ruby
beermouse has quit [Quit: beermouse]
mando_ has quit [Client Quit]
petey has quit [Ping timeout: 272 seconds]
jerius has joined #ruby
cburyta has joined #ruby
petey has joined #ruby
ckinni has quit [Ping timeout: 246 seconds]
shredding has quit [Quit: shredding]
DouweM has joined #ruby
capicue has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
asteros has quit [Quit: asteros]
capicue has quit [Client Quit]
ckinni has joined #ruby
brtdv has quit []
fijimunkii has joined #ruby
bluOxigen has quit [Ping timeout: 245 seconds]
bluenemo has joined #ruby
beermouse has joined #ruby
benwoody has joined #ruby
JuanMiguel has quit [Quit: Saliendo]
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axl_ has joined #ruby
phansch has quit [Quit: Leaving]
brahmana has quit []
bluenemo has quit [Remote host closed the connection]
manoj_ has quit [Quit: Leaving...]
jkhwan has joined #ruby
pwh has quit []
benwoody has quit [Quit: benwoody]
pranny has joined #ruby
deception has joined #ruby
nomenkun has joined #ruby
daxroc has joined #ruby
pranny has quit [Client Quit]
Mars` has joined #ruby
Squarepy has joined #ruby
asteros has joined #ruby
krz has quit [Quit: krz]
reset has joined #ruby
daxroc has quit [Ping timeout: 245 seconds]
benwoody has joined #ruby
funburn has quit [Quit: funburn]
mjs2600 has quit [Remote host closed the connection]
vlad_sta_ has quit [Remote host closed the connection]
amacgregor has joined #ruby
brtdv has joined #ruby
sarlalian has quit [Ping timeout: 265 seconds]
Ox6abe has joined #ruby
sarlalian has joined #ruby
caveat- has quit [Ping timeout: 246 seconds]
danshult_ has quit [Remote host closed the connection]
danshultz has joined #ruby
Monie has quit [Ping timeout: 265 seconds]
gazarsgo has left #ruby [#ruby]
aspires has quit [Quit: sudo making a sandwich]
caveat- has joined #ruby
hopkin has joined #ruby
benwoody has quit [Quit: benwoody]
RichardBaker has joined #ruby
iamjarvo_ has quit [Read error: Connection reset by peer]
sergicles has quit [Quit: sergicles]
iamjarvo has joined #ruby
skaflem has quit [Quit: Leaving]
danshultz has quit [Ping timeout: 248 seconds]
obs_ has joined #ruby
Czupa has quit [Remote host closed the connection]
replay has quit [Read error: Operation timed out]
riku- is now known as riku
nanoyak has joined #ruby
pragmatism has quit [Quit: Leaving...]
noop has quit [Ping timeout: 245 seconds]
riku is now known as Guest38577
anderse has quit [Quit: anderse]
Jeticus has joined #ruby
Jeticus has quit [Client Quit]
RichardBaker has quit [Client Quit]
obs_ is now known as obs
Monie has joined #ruby
CaptainJet has quit [Ping timeout: 264 seconds]
petey has quit [Read error: Connection reset by peer]
relix has joined #ruby
petey has joined #ruby
JRizzle has joined #ruby
MrThePlague has quit [Ping timeout: 245 seconds]
DrShoggoth has joined #ruby
<lethjakman> hrm...when I run erb it just freezes and doesn't do anything
<lethjakman> even if I type 1+1
burlyscudd has quit [Ping timeout: 248 seconds]
<havenwood> irb?
<havenwood> lethjakman: Use Pry! :) http://pryrepl.org/
<lethjakman> ahhh there's my problem
mweshi has joined #ruby
<lethjakman> havenwood: I'm just wanting to run some get requests
luckyruby has quit [Remote host closed the connection]
mmitchel_ has quit [Remote host closed the connection]
asteros has quit [Quit: asteros]
brtdv has quit []
yfeldblum has quit [Remote host closed the connection]
tannerburson has quit [Quit: tannerburson]
iamjarvo has quit [Remote host closed the connection]
aapzak has quit [Ping timeout: 272 seconds]
iamjarvo has joined #ruby
tannerburson has joined #ruby
<bnagy> in a surprising turn of events... I think I'm going to have to switch to chruby :/
<Kamuela> why's that?
<bnagy> ruby-build doesn't seem to be able to build rbx properly on osx without stupid messing around
vlad_starkov has joined #ruby
aapzak has joined #ruby
<Kamuela> ah i see, i have been using rvm no problems so no switchings here :)
CaptainJet has joined #ruby
Soda has joined #ruby
Zai00 has joined #ruby
iamjarvo has quit [Ping timeout: 248 seconds]
Zai00 has quit [Client Quit]
cody-- has quit [Quit: derp]
replay has joined #ruby
mjs2600 has joined #ruby
asobrasil has left #ruby [#ruby]
zipper has joined #ruby
benwoody has joined #ruby
iamjarvo has joined #ruby
adambeynon has joined #ruby
JRizzle has left #ruby ["Leaving"]
<havenwood> bnagy: \o/
aspires has joined #ruby
<havenwood> bnagy: rbx 2 was a pain to properly support, the final release looked nothing like the release candidate
yfeldblum has joined #ruby
postmodern has joined #ruby
Aloysius1 has joined #ruby
<havenwood> bnagy: should *just work* with ruby-install :)
<bnagy> We Shall See
chuk has joined #ruby
<bnagy> haven't reached critical coffee levels yet
mojjojo has joined #ruby
yekta has quit [Quit: yekta]
jrhe has joined #ruby
aryaching has quit [Ping timeout: 245 seconds]
amalrikMaia has left #ruby [#ruby]
araujo has quit [Read error: Connection reset by peer]
kristofers has joined #ruby
bricker`work has quit [Ping timeout: 248 seconds]
araujo has joined #ruby
bricker`work has joined #ruby
petey_ has joined #ruby
jkamenik has quit [Quit: Leaving.]
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
aspires has quit [Quit: sudo making a sandwich]
artem has quit [Quit: WeeChat 0.3.7]
petey has quit [Ping timeout: 272 seconds]
RichardBaker has joined #ruby
kobain_ has joined #ruby
brtdv has joined #ruby
petey_ has quit [Remote host closed the connection]
vpretzel has quit [Quit: Adios!]
kobain_ is now known as kobian
zigomir has quit [Ping timeout: 272 seconds]
petey has joined #ruby
elben has joined #ruby
failshell has quit []
mansi_ has quit [Read error: Connection reset by peer]
axilla has joined #ruby
aspires has joined #ruby
vpretzel has joined #ruby
mansi has joined #ruby
kindjal has joined #ruby
gazarsgo has joined #ruby
watermel0n has quit []
mansi has quit [Read error: Connection reset by peer]
benwoody has quit [Quit: benwoody]
baordog has joined #ruby
drumusician has quit [Ping timeout: 248 seconds]
mansi has joined #ruby
drumusician has joined #ruby
<elben> how would I convert a UTF-8-encoded string to unicode endpoints, in ASCII? E.g. "ø" to the actual string "\\u00f8"
freezey has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bnagy> they're the same
freezey has joined #ruby
<bnagy> it's just a presentation issue
banister has joined #ruby
<bnagy> although I get c3 b8 for that glyph :)
<elben> I don't care that console prints out, i just want my string to be "\\u00f8"
<gazarsgo> c3 b8 is the hex not the codepoint
Astralum has quit [Ping timeout: 245 seconds]
sepp2k has joined #ruby
axl_ has left #ruby [#ruby]
nobitanobi has quit [Ping timeout: 240 seconds]
daxroc has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Hanmac> elben:
<bnagy> hm. You could encode it as utf16?
<Hanmac> >> "ø",codepoints
<eval-in> Hanmac => /tmp/execpad-a29352352e84/source-a29352352e84:2: syntax error, unexpected ',', expecting keyword_end ... (https://eval.in/69521)
cek has quit [Ping timeout: 272 seconds]
<Hanmac> >> "ø".codepoints
<eval-in> Hanmac => [248] (https://eval.in/69525)
<bnagy> >> "ø".encode 'utf-16le'
<eval-in> bnagy => "\u00F8" (https://eval.in/69529)
asteros has joined #ruby
pragmatism has joined #ruby
banister has quit [Client Quit]
DrShoggoth has quit [Remote host closed the connection]
daxroc has quit [Ping timeout: 248 seconds]
drag00n has quit [Ping timeout: 272 seconds]
burlyscudd has joined #ruby
osvico has joined #ruby
jb41 has quit [Quit: leaving]
Lope has quit [Remote host closed the connection]
<bnagy> >> "\u00F8".bytes == "ø".bytes
<eval-in> bnagy => true (https://eval.in/69531)
mrfoto has joined #ruby
jbpros has quit [Quit: jbpros]
kaldrenon has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 264 seconds]
pixelgremlins has quit [Ping timeout: 264 seconds]
jbpros has joined #ruby
<apeiros> elben: you want to go from "\u00f8" to "\\u00f8"?
jbpros has quit [Client Quit]
pixelgremlins has joined #ruby
<bnagy> >> "\u00F8".bytes == "ø".bytes == "\xC3\xB8".bytes # lol unicode
<eval-in> bnagy => /tmp/execpad-50449ce4275e/source-50449ce4275e:2: syntax error, unexpected == ... (https://eval.in/69534)
<apeiros> .unpack("U*").map { |cp| "\\u%04x" % cp }.join
mansi has quit [Read error: Connection reset by peer]
MrThePlague has joined #ruby
<elben> yes, ultimately this thing is going over HTTP as \\u00f8 in the body :(
<bnagy> >> "\u00F8".bytes == "ø".bytes == "\xC3\xB8".bytes
<eval-in> bnagy => /tmp/execpad-aba3959679b4/source-aba3959679b4:2: syntax error, unexpected == ... (https://eval.in/69535)
<apeiros> >> "ø".unpack("U*").map { |cp| "\\u%04x" % cp }.join
<eval-in> apeiros => "\\u00f8" (https://eval.in/69536)
mweshi has quit [Quit: mweshi]
mansi has joined #ruby
aa47f8 has left #ruby [#ruby]
benwoody has joined #ruby
iamjarvo_ has joined #ruby
<apeiros> elben: ^
workmad3 has joined #ruby
<lethjakman> hrm...so I want to run a http GET request from irb
<bnagy> >> "ø".encode('utf-16le').inspect[1..-2]
<eval-in> bnagy => "\\u00F8" (https://eval.in/69537)
<bnagy> endless fun
<lethjakman> it always says NameError: uninitialized constant HTTP
<elben> apeiros: that seems to work. also thx bnagy
einarj has joined #ruby
<apeiros> lethjakman: did you require it?
asteros has quit [Quit: asteros]
<Hanmac> apeiros: why do you use upack when you can use #codepoints directly?
iamjarvo has quit [Ping timeout: 252 seconds]
<apeiros> Hanmac: I'm old fashioned
<lethjakman> I tried requiring net/http and uri
<Hanmac> >> "ø".each_codepoint.map { |cp| "\\u%04x" % cp }.join
<eval-in> Hanmac => "\\u00f8" (https://eval.in/69538)
<Hanmac> >> "ø".each_codepoint.map(&"\\u%04x".method(:%)).join
<eval-in> Hanmac => "\\u00f8" (https://eval.in/69539)
<zipper> uh I have this issue with rbenv. I ran `rbenv local 1.9.3-p448'
<zipper> however ruby -v returns `ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]'
iamjarvo_ has quit [Ping timeout: 272 seconds]
ghostjangles has left #ruby ["Leaving"]
jerius has quit [Quit: Computer has gone to sleep.]
shanlar has quit [Quit: shanlar]
nari has joined #ruby
<zipper> What exactly caused this? I also notice now that gems are no longer installing to ~/.gem
<Hanmac> zipper do "which ruby"
shanlar has joined #ruby
bubbajones has quit [Ping timeout: 260 seconds]
<zipper> Hanmac: /usr/bin/ruby
Ripp__ has quit []
<zipper> Hanmac: I didn't run this though `Add $HOME/.rbenv/bin to your $PATH'
mrfoto has quit []
<Hanmac> zipper: and maybe thats the problem?
Nanuq has quit [Quit: biaf]
<workmad3> wow, how strange... when rbenv's binaries aren't on the path, a shell can't find rbenv managed rubies!
jerius has joined #ruby
<postmodern> workmad3, rbenv uses shims to intercept when ruby is invoked
<workmad3> postmodern: I know that
<workmad3> postmodern: it still needs those shims on the PATH :P
<zipper> Hanmac: seems it was :D
<workmad3> postmodern: <3 chruby btw ;)
<zipper> Hanmac: uh how can I make rbenv not install gems to
<zipper> Hanmac: I mean install gems in ~
<Hanmac> look for GEM_HOME ?
* Hanmac never used rbenv
<zipper> I get nothing.
shelzmike has quit [Read error: Connection reset by peer]
<bnagy> why do you think you want to install your rbenv gems somewhere other than with your rbenv rubies?
ValicekB has quit [Ping timeout: 252 seconds]
nanoyak has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
jamblack has joined #ruby
dnyy_ is now known as dnyy
neonlex has quit []
mikepack has joined #ruby
beermouse has quit [Quit: beermouse]
mansi has quit [Read error: Connection reset by peer]
eliasp_ is now known as eliasp
mansi has joined #ruby
banister has joined #ruby
chuk has quit [Quit: Leaving]
<Hanmac> zipper installing gems global at one place with still switching ruby versions is a very bad yeah ... its like changing the engine of a car while driving with full speed
phus1on has quit [Quit: .]
zipper has quit [Ping timeout: 264 seconds]
jkhwan has quit [Remote host closed the connection]
tylersmith has quit [Read error: Connection reset by peer]
evenix has quit [Ping timeout: 246 seconds]
tylersmith has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
hashpuppy has joined #ruby
jkhwan has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3> Hanmac: and sometimes the engine expects the axles and driveshaft to be in different places
tylersmith has quit [Read error: Connection reset by peer]
tylersmi_ has joined #ruby
zipper has joined #ruby
<bnagy> the engine shouldn't know about the axles, that's poor OO
<bnagy> you're going to end up doing differential debugging
<elben> hanmac: i like the code points better. no idea what unpack("U*") does :)
<elben> (though now i do)
bubbajones has joined #ruby
ckinni has joined #ruby
<Hanmac> bnagy: specially compiled extensions, if you switch ruby version with out reinstalling they might break
<elben> seems like my terminal doesn't have the right encoding set and so was seeing the wrong stuff
maasha has quit [Quit: Page closed]
beermouse has joined #ruby
phinfone_ has joined #ruby
olivier_bK has joined #ruby
ckinni has quit [Client Quit]
jkhwan has quit [Ping timeout: 272 seconds]
jkhwan has joined #ruby
phinfonet has quit [Ping timeout: 240 seconds]
ckinni has joined #ruby
ValicekB has joined #ruby
brtdv has quit []
zipper has quit [Ping timeout: 272 seconds]
hopkin has quit [Remote host closed the connection]
zipper has joined #ruby
<Hanmac> zipper installing gems global at one place with still switching ruby versions is a very bad idea
<zipper> Hanmac: what?
ValicekB has quit [Read error: Operation timed out]
<zipper> Uh how can I regenerate the contents of my gem env?
<Hanmac> zipper: you wanted to install all gems to ~ right? but you are still using rbenv to switch your ruby right? do you know about the consequences?
atrocitas has joined #ruby
mklappstuhl has joined #ruby
<zipper> Hanmac: I have noticed some bad ones
<zipper> with where gems are being installed to or something.
<zipper> There are like 2 GEM paths
RichardBaker has quit [Quit: RichardBaker]
<Hanmac> one of the problems i know is: installing binary gems to 1.9+ does not work in 2.0+ without reinstalling
mansi has quit [Read error: Connection reset by peer]
stringoO has quit [Quit: stringoO]
<Kamuela> youtube is ded
mansi has joined #ruby
<workmad3> Hanmac: yeah, that's why many ruby managers now will use ~/.gem/ruby/$RUBY_VERSION as the gem repo :)
<zipper> Hanmac: what do you mean?
brtdv has joined #ruby
sailias has joined #ruby
beermouse has quit [Quit: beermouse]
axl_ has joined #ruby
<workmad3> zipper: something with a native extension compiled for 1.9.3 won't work without recompiling the extension on 2.0.0
Reach has quit [Remote host closed the connection]
<zipper> uh how can I regenerate the contents of gem env
kcombs has quit [Remote host closed the connection]
coffeina has joined #ruby
phinfonet has joined #ruby
mklappstuhl has quit [Ping timeout: 248 seconds]
reset has quit [Quit: Leaving...]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood> zipper: The questions doesn't make sense. Read: gem help env
mansi has quit [Read error: Connection reset by peer]
ckinni has joined #ruby
mansi has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
TigerWolf has joined #ruby
phinfone_ has quit [Ping timeout: 246 seconds]
Hanmac has joined #ruby
<Hanmac> zipper: MRI changes something in the structure of the VALUE stuff ... for sample the thing with flonum ... that causes all the other constants to move to different places ... and that may cause checks against nil does not work anymore , that may break the gem
SteveBenner9 has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takehiro has quit [Remote host closed the connection]
erinb has quit [Quit: :: waves bye ::]
<xibalba> what is lambda
pixelgremlins has quit [Ping timeout: 272 seconds]
<Hanmac> lambda is a simple proc that thinks its better than other procs ;P
elben has quit [Quit: elben]
<havenwood> and more stabby
fijimunkii has quit [Ping timeout: 272 seconds]
<havenwood> ->{}
<xibalba> is it derived from the Proc class?
fijimunkii has joined #ruby
<Hanmac> no proc and lambda uses the same Proc class
RichardBaker has joined #ruby
<Hanmac> havenwood: each time i see "->{}" i must think at the scene with Brutus and Caesar ,P
<xibalba> so yes they're derived from the same Proc class?
danman has quit [Quit: danman]
akonny has quit [Quit: akonny]
<Hanmac> xibalba: they does not derivid ... they just use the same one class
<xibalba> ah, ok got it
Nilium has quit [Read error: Connection reset by peer]
jerius has quit [Quit: Computer has gone to sleep.]
capicue has joined #ruby
d45h has joined #ruby
<xibalba> thanks will read now
deception has quit [Quit: Goodbye]
xbshift has joined #ruby
micho has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<micho> http://pastebin.com/CmuCQgHC - "true if resource and storage state match" - what does it mean?
<xibalba> so Proc is alot looser than Lamba
<xibalba> Lambda*
saarinen has quit [Quit: saarinen]
<bnagy> xibalba: there are a lot of blog entries written on this, you should read one
Nilium has joined #ruby
breakingthings has quit []
elben has joined #ruby
<xibalba> bnagy, mind pointing me to one you think is good?
snuffeluffegus has joined #ruby
<bnagy> cause the differences are minor and subtle
gotjosh has quit [Remote host closed the connection]
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
threesome has quit [Read error: Operation timed out]
ner0x has joined #ruby
Bry8Star{T2 has joined #ruby
saarinen has joined #ruby
jerius has joined #ruby
baroquebobcat has joined #ruby
ckinni has joined #ruby
Shidash has quit [Quit: Leaving.]
kristofers has quit [Remote host closed the connection]
pwh has joined #ruby
ckinni has quit [Client Quit]
d45h has quit [Ping timeout: 246 seconds]
daxroc has joined #ruby
Bira has joined #ruby
jerius has quit [Client Quit]
aley has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 272 seconds]
zarubin has quit []
phinfone_ has joined #ruby
interactionjaxsn has joined #ruby
Hanmac1 has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
newbiehacker has quit [Quit: Leaving]
vlad_starkov has joined #ruby
phinfonet has quit [Ping timeout: 265 seconds]
m8 has quit [Quit: Sto andando via]
momomomomo has quit [Quit: momomomomo]
phinfone_ has quit [Read error: Connection reset by peer]
phinfonet has joined #ruby
momomomomo has joined #ruby
brtdv has quit []
momomomomo has quit [Client Quit]
mikeric has joined #ruby
bean has joined #ruby
tannerburson has quit [Quit: tannerburson]
interactionjaxsn has quit [Ping timeout: 252 seconds]
gyre007 has quit [Remote host closed the connection]
ValicekB has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
ckinni has joined #ruby
gyre007 has joined #ruby
thesheff17 has quit [Ping timeout: 240 seconds]
ezkl has quit [Quit: QUIT!]
vlad_starkov has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
Hanmac has joined #ruby
Ripp__ has joined #ruby
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
saarinen has quit [Quit: saarinen]
funburn has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Hanmac1 has quit [Ping timeout: 272 seconds]
petey has quit [Read error: Connection reset by peer]
h0rrorvacui has joined #ruby
jrhorn424 is now known as zz_jrhorn424
jkhwan has quit [Remote host closed the connection]
petey has joined #ruby
baordog has quit [Remote host closed the connection]
jkhwan has joined #ruby
MrZYX is now known as MrZYX|off
gyre007 has quit [Ping timeout: 245 seconds]
drumusician has quit [Ping timeout: 272 seconds]
phinfonet has quit [Read error: Connection reset by peer]
davidcelis has quit [Ping timeout: 272 seconds]
mlpinit has quit [Quit: Leaving...]
asteros has joined #ruby
mjs2600 has quit [Remote host closed the connection]
capicue has quit [Quit: Leaving...]
nateberkopec has joined #ruby
phinfonet has joined #ruby
axl_ has quit [Quit: axl_]
justsee has joined #ruby
saarinen has joined #ruby
capicue has joined #ruby
mikepack has quit [Remote host closed the connection]
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aarkerio has quit [Ping timeout: 272 seconds]
jkhwan_ has joined #ruby
davidcelis has joined #ruby
upp3r has joined #ruby
mengu has quit [Remote host closed the connection]
Squarepy has quit [Quit: Leaving]
aarkerio has joined #ruby
zipper has quit [Ping timeout: 240 seconds]
jkhwan has quit [Read error: Connection reset by peer]
reset has joined #ruby
zipper has joined #ruby
Grundell has joined #ruby
<Grundell> How do i capture the first line of a document with regexp?
amacgregor_ has joined #ruby
yfeldblum has joined #ruby
jerius has joined #ruby
MrThePlague has quit []
kitak_ has quit [Remote host closed the connection]
amacgregor has quit [Ping timeout: 245 seconds]
kitak has joined #ruby
jerius has quit [Client Quit]
volty has joined #ruby
Grundell has quit [Remote host closed the connection]
reset has quit [Ping timeout: 272 seconds]
sergicles has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mjs2600 has joined #ruby
dallasm has joined #ruby
vlad_starkov has joined #ruby
kirun has quit [Quit: Client exiting]
baroquebobcat has joined #ruby
micho has quit [Quit: Leaving]
ezkl has joined #ruby
dangerousdave has quit [Quit: Leaving...]
jonathanwallace has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
theRoUS has quit [Ping timeout: 245 seconds]
justsee has quit [Ping timeout: 272 seconds]
nateberkopec has quit [Quit: Leaving...]
funburn has quit [Ping timeout: 272 seconds]
aspires has quit [Quit: sudo making a sandwich]
lfox has quit [Quit: ZZZzzz…]
claymore has quit [Ping timeout: 248 seconds]
einarj has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reset has joined #ruby
mlpinit has joined #ruby
olivier_bK has quit [Ping timeout: 252 seconds]
aspires has joined #ruby
funburn has joined #ruby
kitak_ has joined #ruby
mikepack has joined #ruby
petey_ has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
mlpinit has quit [Client Quit]
mansi has quit [Remote host closed the connection]
zipper has quit [Ping timeout: 264 seconds]
s2013 has quit [Ping timeout: 246 seconds]
zipper has joined #ruby
mansi has joined #ruby
kitak has quit [Ping timeout: 246 seconds]
zxq9 has quit [Quit: Konversation terminated!]
petey has quit [Ping timeout: 245 seconds]
elux has quit [Ping timeout: 245 seconds]
duggiefresh has quit [Remote host closed the connection]
petey_ has quit [Ping timeout: 248 seconds]
Akuma has joined #ruby
classix has quit [Ping timeout: 246 seconds]
jerius has joined #ruby
nari has quit [Ping timeout: 246 seconds]
obs has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 272 seconds]
bean has joined #ruby
mansi has quit [Ping timeout: 272 seconds]
classix has joined #ruby
pyreal has joined #ruby
nwertman has quit [Ping timeout: 264 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
VTLob has quit [Quit: VTLob]
nwertman has joined #ruby
jamblack has quit [Quit: jamblack]
daxroc has quit [Quit: Leaving.]
classix has quit [Remote host closed the connection]
<TorpedoSkyline> hey guys, is there an easier way to do this? https://ghostbin.com/paste/p2ufu
<TorpedoSkyline> I need to get the uniques of multiple arrays without knowing which one has a greater length
gazarsgo has left #ruby [#ruby]
<TorpedoSkyline> ah, I guess
Hanmac1 has joined #ruby
zjdriver has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
phinfone_ has joined #ruby
<TorpedoSkyline> array = arr1 + arr2; array.uniq
Hanmac has quit [Ping timeout: 265 seconds]
rickruby has joined #ruby
<TorpedoSkyline> kinda
<volty> no
<TorpedoSkyline> volty add the two and then run uniq! on it to remove the duplicates
<TorpedoSkyline> unless you have a better way =P
phinfonet has quit [Ping timeout: 264 seconds]
phinfonet has joined #ruby
<volty> >> ([1,2,3] + [1,2,4]).uniq
<eval-in> volty => [1, 2, 3, 4] (https://eval.in/69550)
<TorpedoSkyline> gah
<TorpedoSkyline> that's isn't it
<volty> you have to subtract intersection
<TorpedoSkyline> so just like I'm doing there
saarinen has quit [Quit: saarinen]
<TorpedoSkyline> but what if I wanted to do it with a splat volty? take an unlimited number of arrays?
saarinen has joined #ruby
mikepack has quit [Remote host closed the connection]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
phinfone_ has quit [Ping timeout: 240 seconds]
kindjal has joined #ruby
<volty> inject(:+) - inject (:&) -- like that
ValicekB has quit [Ping timeout: 246 seconds]
jonathanwallace has joined #ruby
lmickh has quit [Quit: lmickh]
classix has joined #ruby
<TorpedoSkyline> hmm
<TorpedoSkyline> ok thanks volty
<volty> or inject and cumulate in the block (a + b - a & b)
<havenwood> TorpedoSkyline: Are there ever duplicate items in the Arrays?
falood has joined #ruby
randomnick_ has quit [Quit: Leaving]
<TorpedoSkyline> havenwood like array = [1,2,2,3] ?
<TorpedoSkyline> no
workmad3 has quit [Ping timeout: 272 seconds]
<havenwood> TorpedoSkyline: Have you considered using Sets instead of Arrays?
<TorpedoSkyline> hmm, nope. Haven't done any work with sets, so maybe this would be better.
<TorpedoSkyline> thanks havenwood!
jerius has quit [Quit: Computer has gone to sleep.]
daxroc has joined #ruby
pothibo has joined #ruby
jkhwan_ has quit [Remote host closed the connection]
jkhwan has joined #ruby
jkhwan has quit [Remote host closed the connection]
delinquentme has joined #ruby
jkhwan has joined #ruby
<delinquentme> anyone know if ruby has the ability for piecewise matrix multiplication?
kaspergrubbe has quit [Remote host closed the connection]
mikepack has joined #ruby
Shidash has joined #ruby
raphaelivan1 has joined #ruby
raphaelivan has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
banister has joined #ruby
<bnagy> TorpedoSkyline: what are you actually trying to do?
zipper has quit [Quit: Lost terminal]
<TorpedoSkyline> bnagy trying to get the uniques in two arrays
<bnagy> why
<bnagy> by which I mean what are you actually trying to do :)
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nwertman has quit [Ping timeout: 245 seconds]
ValicekB has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<TorpedoSkyline> bnagy haha, so I'm working with user roles which are determined by an integer ID. I need to compare current roles (and array with the current role IDs) with a request containing the users new roles (an array with role IDs). To know if I need to insert or delete the role, I need to get the outstanding role IDs
<TorpedoSkyline> PS: I didn't build this thing
nwertman has joined #ruby