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
robscomputer has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
robscomputer has joined #ruby
<clov3r> havenwood: no i guess not
alexju has quit [Ping timeout: 264 seconds]
<clov3r> it seems i'm very vague at the moment
<clov3r> i have a json object
sepp2k has quit [Quit: Leaving.]
<clov3r> containing the structure of a book
butblack has joined #ruby
<clov3r> chapters, sections, sub-sections
<clov3r> and i'm trying to parse it into html
bricker is now known as bricker`work
<havenwood> clov3r: You could convert it to XML quite easily. You want to write the rules for what each JSON element maps to in HTML?
platzhirsch has joined #ruby
m00nlight has quit [Quit: Konversation terminated!]
<clov3r> well i have it written in js right now
Es0teric has quit [Quit: Computer has gone to sleep.]
<clov3r> which is nice and easy
<havenwood> clov3r: If you're trying to build an HTML page from the JSON content, Nokogiri seems reasonable to me.
deweichen has joined #ruby
<havenwood> Not sure?
jonathanwallace has joined #ruby
<deweichen> hi
<clov3r> it probably is
<deweichen> Can you hear me now
burlyscudd has joined #ruby
robscomputer has quit [Ping timeout: 245 seconds]
burlyscudd has quit [Changing host]
burlyscudd has joined #ruby
quoin has quit [Remote host closed the connection]
deweichen has quit [Remote host closed the connection]
Tuxist has quit [Remote host closed the connection]
<clov3r> its the end of the day
<clov3r> and my brain is mush
deweichen has joined #ruby
sailias has joined #ruby
<deweichen> hello
<clov3r> but let me try it
snovak has quit [Ping timeout: 245 seconds]
<havenwood> clov3r: Maybe look at Nokogiri::HTML::Builder: http://nokogiri.org/Nokogiri/HTML/Builder.html
<havenwood> deweichen: yup
<deweichen> cool
m0s has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<clov3r> yes havenwood
mikepack has quit [Remote host closed the connection]
<clov3r> that is exactly what i need :P
<clov3r> thank you very muchly
DanKnox is now known as DanKnox_away
mercwithamouth has quit [Ping timeout: 240 seconds]
burlyscudd has quit [Ping timeout: 246 seconds]
cody-- has quit [Quit: derp]
Ripp__ has quit []
sailias has quit [Ping timeout: 264 seconds]
zarul has quit [Remote host closed the connection]
|jemc| has quit [Ping timeout: 248 seconds]
<clov3r> or well... not exactly... i need to parse the json first
<clov3r> which i've already done in javascript
<clov3r> and then copy pasting outerHTML from firefox's inspector is just easier
<clov3r> dammit
randomau_ has joined #ruby
<clov3r> i want to use ruby, i do!
Ripp__ has joined #ruby
<clov3r> one of these days, by goopiter
<clov3r> ah well
ssvo has quit [Ping timeout: 245 seconds]
<clov3r> here's a question...
<clov3r> do you ever find yourself NOT trying to learn new libraries?
cfi30 has quit [Quit: WeeChat 0.4.1]
c0rn has quit [Ping timeout: 248 seconds]
siwica has joined #ruby
clov3r has left #ruby [#ruby]
false_economy has quit [Remote host closed the connection]
randomautomator has quit [Ping timeout: 240 seconds]
cfi30 has joined #ruby
Monie has joined #ruby
randomau_ has quit [Ping timeout: 245 seconds]
c0rn has joined #ruby
peregrine81 has joined #ruby
Bira has quit [Remote host closed the connection]
rcosta has joined #ruby
Monie has quit [Client Quit]
brianpWins has quit [Quit: brianpWins]
chrishough has quit [Quit: chrishough]
siwica has quit [Quit: siwica]
DanBoy has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
havenwood has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
kreisys has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
hogeo has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
false_economy has joined #ruby
<pontiki> that would be the day i give up coding
ColKurtz has joined #ruby
false_economy has quit [Remote host closed the connection]
jonathanwallace has quit [Quit: WeeChat 0.4.1]
DanBoy has joined #ruby
allaire has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
Es0teric has joined #ruby
pontiki has joined #ruby
snovak has joined #ruby
cooldman224 has joined #ruby
baroquebobcat has joined #ruby
nanoxd has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
bigoldrock has quit [Ping timeout: 245 seconds]
jonathanwallace has quit [Client Quit]
jonathanwallace has joined #ruby
jonathanwallace has quit [Client Quit]
nanoxd has joined #ruby
Lewix has quit [Remote host closed the connection]
lfox has joined #ruby
jonathanwallace has joined #ruby
snovak has quit [Ping timeout: 245 seconds]
tylersmith has quit [Remote host closed the connection]
khushildep has quit [Quit: khushildep]
tylersmith has joined #ruby
jonathanwallace has quit [Client Quit]
false_economy has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
taternuts has joined #ruby
zeade has quit [Quit: Leaving.]
adeponte has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 245 seconds]
mercwithamouth has joined #ruby
blueredturtle has quit [Quit: blueredturtle]
blueredturtle has joined #ruby
simao has joined #ruby
simao has quit [Client Quit]
simao has joined #ruby
hogeo has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
Tricon has quit [Quit: Bye!]
hamakn has joined #ruby
adeponte has joined #ruby
crowell has joined #ruby
<crowell> hey, I'm trying to carve a file, and use ruby for it. I need to do a regex search for several 0x00 bytes in a row and cut on that
enebo has joined #ruby
<crowell> http://paste.kde.org/pd72c25c5/ is what I have
<crowell> but it doesn't work
<crowell> because it can't do the search for \x00\x00\x00
machuga|away is now known as machuga
enebo has quit [Client Quit]
io_syl has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
kindjal has joined #ruby
kindjal has quit [Client Quit]
hamakn has quit [Ping timeout: 268 seconds]
tjbiddle has joined #ruby
danshultz has joined #ruby
deweichen has quit [Remote host closed the connection]
<bnagy> use "" not ''
maletor has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
Yakko has quit [Quit: No Ping reply in 180 seconds.]
jprovazn has quit [Ping timeout: 245 seconds]
Yakko has joined #ruby
false_economy has quit [Remote host closed the connection]
ferdev has quit [Quit: ferdev]
Ripp__ has quit []
T_T has quit [Remote host closed the connection]
ner0x has joined #ruby
havenwood has joined #ruby
mpereira has joined #ruby
DrShoggoth has joined #ruby
ewnd9 has joined #ruby
mary5030 has joined #ruby
Beoran_ has joined #ruby
Ox6abe has quit [Remote host closed the connection]
optimusprimem has quit [Ping timeout: 245 seconds]
<crowell> bnagy: and that will work?
<pontiki> crowell: by using ' instead of ", you're essentially escaping the \
<bnagy> well it will fix your immediate problem
<pontiki> and thus \x00 is not actually a hex 0, but the actual string "\\x00"
<bnagy> the rest of the code is pretty hoopy, so I have no idea if that's all that's wrong
mootpointer has joined #ruby
sevenseacat has joined #ruby
mlpinit has joined #ruby
danshultz has quit [Remote host closed the connection]
<pontiki> well done, bnagy
kilophoton has quit [Ping timeout: 240 seconds]
Beoran has quit [Ping timeout: 260 seconds]
burlyscudd has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
dayepa has quit [Quit: dayepa]
BradPitt_ has joined #ruby
<pontiki> >> p '\x00\x00\x00\x00'; p "\x00\x00\x00\x00"
<eval-in> pontiki => "\\x00\\x00\\x00\\x00" ... (https://eval.in/48836)
dayepa has joined #ruby
tkuchiki has joined #ruby
<pontiki> >> p "\x00\x00\x00\x00"
<eval-in> pontiki => "\0\0\0\0" ... (https://eval.in/48837)
mootpointer has quit [Client Quit]
mercwithamouth has joined #ruby
funburn has quit [Quit: funburn]
kaspergrubbe has joined #ruby
<crowell> awesome, thanks, works perfectly
Yakko has quit [Remote host closed the connection]
<shevy> ack
<shevy> \0 attack!
<shevy> \1 counter-attack
<pontiki> parry, riposte, thrust
BraddBitt has quit [Ping timeout: 260 seconds]
burlyscudd has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby
<bnagy> I'll see you \x00 and raise you \u0000
tomzx_mac has joined #ruby
<crowell> bnagy: its for reading a binary file
funburn has joined #ruby
<crowell> no unicode in that :P
jamesaanderson has joined #ruby
ColKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> >> "\u0000" == "\x00"
<eval-in> bnagy => true (https://eval.in/48849)
<bnagy> BOAH U GOTS 2 GO BACK TO BINARY SKOOL
<crowell> they're the same, but logically it isn't what I'm thinking of
kaspergrubbe has quit [Ping timeout: 245 seconds]
<bnagy> btw bindata is pretty awesome if you get to structured parsing
d34th4ck3r has joined #ruby
<crowell> this is just for quickly going through and extracting files from a dump
DanKnox_away is now known as DanKnox
sevenseacat has left #ruby [#ruby]
mfridh has quit [Ping timeout: 264 seconds]
serp` has joined #ruby
sevenseacat has joined #ruby
sarlalian has quit [Ping timeout: 245 seconds]
CpuID2 has quit [Quit: This computer has gone to sleep]
mfridh has joined #ruby
<crowell> I'll give that a look for the future
mwmnj has joined #ruby
cooldman224 has quit [Ping timeout: 240 seconds]
mlpinit has quit [Remote host closed the connection]
mwmnj has quit [Client Quit]
mwmnj has joined #ruby
<shevy> damn
reset has quit [Ping timeout: 248 seconds]
<shevy> unicode is like alien attack
<pontiki> alien *shark* attack, with lasers
<shevy> I think you recommended bindata years ago bnagy ... you once wrote something in regards to that, didn't you?
<bnagy> there's probably a glyph for that
<bnagy> yeah I wrote a binary parser before bindata existed
<bnagy> bindata is better in almost every way though
sloucher has joined #ruby
<pontiki> one of my bffs made one for the laser she built :>
cody-- has joined #ruby
yaymukund has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
Lewix has joined #ruby
<bnagy> a binary parser?
<bnagy> or a shark?
mlpinit has joined #ruby
<pontiki> the shark with head-mounted laser glyph
Urizen has quit [Ping timeout: 248 seconds]
<crowell> ls
<shevy> lol
<shevy> ls shark
<bnagy> cat /dev/laser >> ./shark
optimusprimem has joined #ruby
<bnagy> mv ./lasershark c/
<pontiki> git checkout shark
<bnagy> SWIM LASERSHARK BE FREEEE
<pontiki> git merge laser
<shevy> hmm
<shevy> a modern git laser
hamakn has joined #ruby
<pontiki> git push c HEAD
<shevy> you decapitated the shark!!!
kindjal has joined #ruby
<pontiki> git push c shark
<pontiki> that's better
<havenwood> git reset --hard ^shark
bigmac has joined #ruby
bigmac is now known as i8igmac
jeffreyio2 has joined #ruby
<havenwood> I'm curious what's coming in Miami for this year's RubyConf talks.
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<havenwood> Wonder when they'll publish the schedule.
vxxr has joined #ruby
Voodoofish430 has quit [Quit: Leaving.]
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
<havenwood> Anyone going to RubyConf?
nadirvardar has quit [Ping timeout: 245 seconds]
hamakn has quit [Ping timeout: 268 seconds]
TDJACR has quit [Ping timeout: 260 seconds]
Splourian has joined #ruby
<bnagy> man last time I went to miami it was pretty much the worst flight evarr
ixti has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
<havenwood> bnagy: i've actually never been
Collin has quit [Ping timeout: 240 seconds]
dorei has quit []
Urizen has joined #ruby
DrShoggoth has quit [Ping timeout: 264 seconds]
<havenwood> bnagy: looking forward to it though, i love cuban food and this'll be the closest i've been to cuba :P
mercwithamouth has quit [Ping timeout: 248 seconds]
kpshek has joined #ruby
<bnagy> I never got to go for 'real' cuban food :<
snovak has joined #ruby
<havenwood> bnagy: i wouldn't know the difference, they can trick me easily, heh
<havenwood> i gotta go to cuba before they lift the embargo and it gets overrun
<pontiki> you'll prolly get better cuban food in miami anyway
<havenwood> Basically all I know about Miami is from Dexter or The Birdcage.
hamakn has joined #ruby
<havenwood> Drag nightclubs and charming serial killers sound about right?
<pontiki> lol
mfridh has quit [Ping timeout: 240 seconds]
DrShoggoth has joined #ruby
danshultz has joined #ruby
ssvo has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
snovak has quit [Ping timeout: 264 seconds]
cody-- has quit [Quit: derp]
endash has quit [Quit: endash]
rehat has joined #ruby
<rehat> just want to clarify, the last used variable in a method is what will be returned?
<crowell> rehat: true
<pontiki> somewhat
<bnagy> last evaluation
<pontiki> the last value is what is returned
<rehat> ok, cool thanks
<pontiki> ^ bnagy
mvangala has quit [Remote host closed the connection]
<havenwood> rehat: implicit return at the end or return early with `return`
mvangala has joined #ruby
peregrine81 has quit []
mwmnj has quit [Quit: Textual IRC Client: www.textualapp.com]
bigoldrock has joined #ruby
Splourian has quit [Quit: Leaving]
Domon has joined #ruby
mvangala has quit [Remote host closed the connection]
rcosta has quit [Remote host closed the connection]
Domon has quit [Remote host closed the connection]
Domon has joined #ruby
Domon__ has joined #ruby
Domon has quit [Read error: Connection reset by peer]
Splourian has joined #ruby
nisstyre has joined #ruby
clov3r has joined #ruby
clov3r has quit [Read error: Connection reset by peer]
saarinen has quit [Quit: saarinen]
danshultz has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
sleetdrop has joined #ruby
T_T has joined #ruby
DanKnox is now known as DanKnox_away
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
jamesaanderson has joined #ruby
mvangala has joined #ruby
Splourian has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
sleetdrop has quit [Client Quit]
nari has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
Ripp__ has joined #ruby
burlyscudd has joined #ruby
NealJ has quit [Quit: :c]
ewnd9 has quit [Ping timeout: 245 seconds]
andikr has quit [Ping timeout: 245 seconds]
burlyscudd has quit [Ping timeout: 246 seconds]
julweber_ has joined #ruby
mikepack has quit [Remote host closed the connection]
kilophoton has joined #ruby
kpshek has quit [Ping timeout: 245 seconds]
mfridh has joined #ruby
adeponte has quit [Remote host closed the connection]
julweber has quit [Ping timeout: 248 seconds]
robscomputer has joined #ruby
Soda has quit [Read error: Connection reset by peer]
zeade has joined #ruby
robscomputer has quit [Ping timeout: 245 seconds]
radic__ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soba has joined #ruby
Atrumx has joined #ruby
kevinykchan has joined #ruby
radic_ has quit [Ping timeout: 240 seconds]
dankest has quit [Quit: Peace]
bigoldrock has quit [Ping timeout: 268 seconds]
dagnachew has quit [Quit: WeeChat 0.4.1]
taternuts has quit []
dankest has joined #ruby
digital-ghost has quit [Remote host closed the connection]
mary5030 has joined #ruby
digital-ghost has joined #ruby
robscomputer has joined #ruby
T_T has quit [Remote host closed the connection]
robscomputer has quit [Remote host closed the connection]
awpti has quit [Ping timeout: 245 seconds]
robscomputer has joined #ruby
banghouse2 has quit [Remote host closed the connection]
<a1ph4g33k> I hope everyone has a good night.
a1ph4g33k has quit [Quit: leaving]
gchaturvedi has joined #ruby
krz has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
kpshek has joined #ruby
<gchaturvedi> hi folks..i'm thinking of creating a site similar to http://codingbat.com for Ruby…I'm wondering if anyone knows much about running untrusted Ruby code in a sandbox?
alexju has joined #ruby
awpti has joined #ruby
<gchaturvedi> a lot of the gems out there are outdated in this regard..wondering what sites like try ruby do
<jrobeson> another one to look at is rubymonks and codeschool
<jrobeson> err rubymonk
<jrobeson> i'm sure at least one would response with some information you're looking for
<gchaturvedi> hrmm will look into their repos
<havenwood> gchaturvedi: There are various options for Ruby sandboxes, one is jruby-sandbox: https://github.com/omghax/jruby-sandbox
<gchaturvedi> I tried running jruby sandbox…for random reason it didn't work for me/
Davey has joined #ruby
yacks has quit [Ping timeout: 245 seconds]
<havenwood> ^ uses a bit older version of JRuby, not sure what the Code School guys are using now
<gchaturvedi> jruby-sandbox gchaturvedi$ rake compile
<gchaturvedi> rake aborted!
<gchaturvedi> no such file to load -- rake/javaextensiontask
<gchaturvedi> ok
staafl has joined #ruby
cody-- has joined #ruby
dankest has quit [Quit: dankest]
<jrobeson> i learned something from that
<gchaturvedi> from which?
<jrobeson> doing it with jruby makes a lot of sense
<havenwood> gchaturvedi: Looks like shikashi is under active dev, maybe look at that: https://github.com/tario/shikashi#readme
snovak has joined #ruby
<gchaturvedi> thanks havenwood
<gchaturvedi> that looks good
ehc has joined #ruby
<gchaturvedi> yeah jruby lets u allow more security control
<gchaturvedi> but i don't know enough about it :P
Urizen has quit [Ping timeout: 246 seconds]
IceDragon has quit [Quit: Space~~~]
<havenwood> maybe *active* dev was an overstatement... stuff changed in the last couple days but overall looks like not a ton - interesting question what the state-of-the-art is cause it seems there's been multiple avenues of advancement on several fronts in the last couple years
Splourian has joined #ruby
<bnagy> what does eval.in do?
<bnagy> I thought most of that just used OS features
<havenwood> bnagy: i think use emscripten
tjbiddle has quit [Quit: tjbiddle]
<havenwood> bnagy: so use javascript's sandbox
<bnagy> eh
<gchaturvedi> hrmm..yeah interesting
<gchaturvedi> i guess most of the players have some proprietary system?
snovak has quit [Ping timeout: 276 seconds]
saarinen has joined #ruby
<havenwood> MRuby plus Emscripten is kinda neat.
Lewix has quit [Remote host closed the connection]
<gchaturvedi> would this let me run specs?
varfoo has joined #ruby
<bnagy> hm I would have thought charliesome would have it on his github
<bnagy> but seems not
<bnagy> you could try and find hi on ruby-lang though
mmitchell has joined #ruby
optimusprimem has quit [Read error: Connection reset by peer]
<gchaturvedi> ok thanks
mmitchell has quit [Remote host closed the connection]
<havenwood> that would be person to talk to!
Stalkr_ has joined #ruby
<bricker`LA> In your opinion, which is better: This https://gist.github.com/bricker/6589545 , or would you use `||=` in the reader method?
ehc has quit [Quit: ehc]
Aryasam has joined #ruby
<bnagy> well if it could ever be called twice ||= is better
Targen has quit [Ping timeout: 240 seconds]
platzhirsch has left #ruby [#ruby]
forced_request has quit [Read error: Connection reset by peer]
ae7 has joined #ruby
<ae7> hi all
<havenwood> hiya
<ae7> I need some help…
<ae7> I have a script I am running in CLI, but I am seeing these debug info messages appear during my script's runtime
<ae7> Is there a way to disable this?
yacks has joined #ruby
<bnagy> depends on the script
seoNinjaWarrior has quit [Ping timeout: 264 seconds]
<bnagy> if they're using stderr for debugging you could try running it 2>/dev/null
<bnagy> or see if it has a way to turn off debugging
<ae7> I thought about that…
<ae7> But I am trying to find a formal mechanism to disable it
<ae7> I have found that on my dev machine, it does not show the info message. On my server, it does...
Ripp__ has quit []
Lewix has joined #ruby
<ae7> Any ideas?
<bnagy> like I said, it all depends on the script
<ae7> what else should I know?
T_T has joined #ruby
<bnagy> there's not a 'standard' way to do info messages
<bnagy> like, there's logger, but not everyone uses it
burlyscudd has joined #ruby
<ae7> I can't figure this out, it's driving me crazy… It shows the messages on my server, but not my local machine.
kpshek has quit [Ping timeout: 245 seconds]
<ae7> WTF>
Urizen has joined #ruby
varfoo has quit [Quit: WeeChat 0.4.0]
shredding has joined #ruby
dankest has joined #ruby
machuga is now known as machuga|away
burlyscudd has quit [Ping timeout: 276 seconds]
ae7 has left #ruby [#ruby]
Splourian has quit [Quit: Leaving]
tylersmith has joined #ruby
Urizen has quit [Ping timeout: 248 seconds]
noopq has joined #ruby
saarinen has quit [Quit: saarinen]
Aryasam has quit [Quit: Bye]
CpuID2 has joined #ruby
<CpuID2> hey ppls? anyone here had experiences with Net::SSH and timeouts?
DrShoggoth has quit [Ping timeout: 248 seconds]
<CpuID2> im using rye, and i cannot seem to figure out why it times out connections randomly
yacks has quit [Quit: Leaving]
optimusprimem has joined #ruby
optimusprimem has joined #ruby
d34th4ck3r has quit [Quit: d34th4ck3r]
havenwood has quit [Remote host closed the connection]
Urizen has joined #ruby
fuleo has joined #ruby
adeponte has joined #ruby
Aryasam has joined #ruby
EIA has joined #ruby
EIAC has joined #ruby
macmartine has joined #ruby
sailias has quit [Read error: Operation timed out]
adeponte has quit [Ping timeout: 264 seconds]
sailias has joined #ruby
sailias has quit [Client Quit]
<bnagy> I'd be looking at rye, not net/ssh
iamjarvo has joined #ruby
<bnagy> looks like the error is in the disconnect method
|jemc| has joined #ruby
<CpuID2> yea? i think you might be right there
mary5030 has quit [Remote host closed the connection]
<CpuID2> theres a timeout call hiding in there i noticed
<bnagy> it's got some weird at_exit which tries to disc as well
<iamjarvo> should you add a .ruby-version and .ruby-gemset to a gem repo?
<iamjarvo> whats the pattern?
DanKnox_away is now known as DanKnox
kpshek has joined #ruby
<CpuID2> interesting...
agent_white has quit [Quit: leaving]
DanKnox is now known as DanKnox_away
Ripp__ has joined #ruby
bobdobbs` has quit [Ping timeout: 260 seconds]
eka has quit [Quit: Computer has gone to sleep.]
jbpros has joined #ruby
snovak has joined #ruby
DanKnox_away is now known as DanKnox
baroquebobcat has quit [Quit: baroquebobcat]
okinomo has quit [Ping timeout: 245 seconds]
EIAC has quit [Remote host closed the connection]
okinomo has joined #ruby
ssvo has quit [Ping timeout: 276 seconds]
snovak has quit [Ping timeout: 248 seconds]
dross has quit [Quit: leaving]
dankest has quit [Quit: Peace]
dross has joined #ruby
ner0x has quit [Quit: Leaving]
Bira has joined #ruby
<CpuID2> filed a bug on github, something feels weird
<CpuID2> going to try this with standalone net/ssh if i can
EIAC has joined #ruby
bobdobbs has joined #ruby
iamjarvo has quit [Quit: Leaving.]
ananthakumaran has joined #ruby
dross has quit [Client Quit]
dross has joined #ruby
baroquebobcat has joined #ruby
heftig_ has joined #ruby
EIAC_ has joined #ruby
heftig has quit [Ping timeout: 260 seconds]
dross has quit [Client Quit]
dross has joined #ruby
EIAC__ has joined #ruby
gchaturvedi has quit [Quit: gchaturvedi]
vlad_starkov has joined #ruby
dankest has joined #ruby
EIAC__ has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
blueredturtle has quit [Quit: blueredturtle]
jprovazn has joined #ruby
vlad_starkov has quit [Ping timeout: 276 seconds]
EIAC__ has joined #ruby
snovak has joined #ruby
zephdev has joined #ruby
jbpros has quit [Quit: jbpros]
granticus has quit [Remote host closed the connection]
rehat has quit [Remote host closed the connection]
cutmail has joined #ruby
|jemc| has quit [Ping timeout: 240 seconds]
travisjeffery has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
jonahR has joined #ruby
serp` has quit [Quit: serp`]
Urizen has quit [Ping timeout: 248 seconds]
macmartine has joined #ruby
cody-- has quit [Quit: derp]
heftig_ is now known as heftig
mrsolo has quit [Quit: This computer has gone to sleep]
macmartine has quit [Read error: Connection reset by peer]
Bry8Star{T2 has quit [Quit:]
Splourian has joined #ruby
polaco is now known as polaco_zZz
mlpinit has quit [Remote host closed the connection]
EIAC__ has quit [Remote host closed the connection]
osvico has quit [Ping timeout: 240 seconds]
butblack has quit [Quit: butblack]
jprovazn has quit [Quit: Leaving]
jamesaanderson has joined #ruby
butblack has joined #ruby
Bira has quit [Remote host closed the connection]
butblack has quit [Client Quit]
CpuID2 has quit [Quit: This computer has gone to sleep]
jeffreyio2 has quit [Read error: Connection reset by peer]
ukd1 has joined #ruby
d2dchat has quit [Remote host closed the connection]
Stalkr_ has quit [Read error: Connection reset by peer]
allaire has quit []
parzo has joined #ruby
freakazoid0223 has quit [Read error: Connection reset by peer]
EIACA has joined #ruby
cutmail has quit [Remote host closed the connection]
EIACB has joined #ruby
EIACA has quit [Remote host closed the connection]
tylersmith has quit [Remote host closed the connection]
DanKnox is now known as DanKnox_away
EIACB has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
tylersmith has joined #ruby
ukd1_ has joined #ruby
EIACC has joined #ruby
postmodern has quit [Quit: Leaving]
noopq has quit [Ping timeout: 240 seconds]
ukd1 has quit [Ping timeout: 245 seconds]
tylersmith has quit [Ping timeout: 264 seconds]
DanKnox_away is now known as DanKnox
|jemc| has joined #ruby
BadQuanta has joined #ruby
vxxr has quit [Quit: leaving]
varfoo has joined #ruby
chairabanta has joined #ruby
Deele has joined #ruby
mrsolo has joined #ruby
Monie has joined #ruby
kobain has quit []
dmiller_ has quit [Remote host closed the connection]
EIACC has quit [Remote host closed the connection]
fl13 has joined #ruby
fl13 has quit [Remote host closed the connection]
ftiasch has joined #ruby
fl15 has joined #ruby
virtualize has quit [Ping timeout: 260 seconds]
Aryasam has quit [Ping timeout: 245 seconds]
ftiasch has quit [Client Quit]
sayan has joined #ruby
apeiros has quit [Remote host closed the connection]
proxie has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
saarinen has joined #ruby
postmodern has joined #ruby
Aryasam has joined #ruby
intuxicated has joined #ruby
saarinen has quit [Client Quit]
virtualize has joined #ruby
proxie has joined #ruby
zephdev has quit [Remote host closed the connection]
Bry8Star{T2 has joined #ruby
fl15 has quit [Ping timeout: 276 seconds]
vlad_starkov has joined #ruby
Aryasam_ has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chairabanta has quit [Quit: Leaving...]
Aryasam has quit [Ping timeout: 264 seconds]
travisjeffery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thebastl has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
tylersmith has joined #ruby
digital-ghost has quit [Remote host closed the connection]
yaymukund has quit [Ping timeout: 246 seconds]
nuvan has joined #ruby
aryaching has joined #ruby
<nuvan> if I have a class, call it Bob, and I do something like b = Bob.class, how would I go about creating an instance of Bob from b?
tylersmith has quit [Read error: Connection reset by peer]
yfeldblum has quit [Ping timeout: 240 seconds]
tylersmith has joined #ruby
javierbuilder1 has joined #ruby
zarubin has quit [Ping timeout: 240 seconds]
iliketurtles has joined #ruby
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
girija has joined #ruby
Aryasam_ has quit [Ping timeout: 264 seconds]
codecop has joined #ruby
Aryasam has joined #ruby
ryanuber has joined #ruby
javierbuilder1 has quit [Ping timeout: 268 seconds]
ananthakumaran has quit [Quit: Leaving.]
Splourian has quit [Ping timeout: 240 seconds]
Guest63395 is now known as Kabaka
tomzx_mac has quit [Read error: Operation timed out]
mlpinit has joined #ruby
dmiller has joined #ruby
<apeiros> nuvan: you couldn't really. since Bob.class is Class.
fridim__ has quit [Read error: Operation timed out]
<apeiros> nuvan: you could do `b = Bob`, and then `a_bob = b.new`
JohnBat26 has joined #ruby
<nuvan> wait... I can just assign a whole class 'type' to a variable???
<apeiros> classes are objects
<nuvan> that's a good point
<apeiros> you can use them wherever you could use another object.
thebastl_ has joined #ruby
okinomo has quit [Ping timeout: 268 seconds]
Urizen has joined #ruby
<nuvan> apeiros: right, thanks.
rburton- has joined #ruby
Teddy2steper has joined #ruby
chrishough has joined #ruby
thebastl has quit [Ping timeout: 245 seconds]
travisjeffery has joined #ruby
idoru has quit [Read error: Connection timed out]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mlpinit has quit [Ping timeout: 240 seconds]
travisjeffery has quit [Max SendQ exceeded]
JohnBat26 has joined #ruby
alexju_ has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
adeponte has joined #ruby
huoxito has quit [Quit: Leaving]
thebastl has joined #ruby
iliketurtles has quit [Ping timeout: 240 seconds]
alexju has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
Aryasam has quit [Read error: Connection reset by peer]
Aryasam_ has joined #ruby
thebastl_ has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
apeiros has quit [Remote host closed the connection]
closer has quit [Ping timeout: 256 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
closer has joined #ruby
ssvo has joined #ruby
Atrumx has quit [Quit: Quitting]
Splourian has joined #ruby
Teddy2steper has quit [Remote host closed the connection]
cfi30 has quit [Quit: WeeChat 0.4.1]
jeffreyio2 has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
iliketurtles has joined #ruby
rburton- has quit [Quit: Leaving...]
dodosan has quit [Remote host closed the connection]
tagrudev has joined #ruby
Monie has quit [Quit: Textual IRC Client: www.textualapp.com]
druonysus has joined #ruby
chairabanta has joined #ruby
agent_white has joined #ruby
jeffreyio2 has quit [Read error: Connection reset by peer]
druonysus has quit [Ping timeout: 264 seconds]
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
havenwood has joined #ruby
Aryasam_ has quit [Ping timeout: 245 seconds]
pranny has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
alexju_ has quit [Remote host closed the connection]
apeiros has joined #ruby
alexju has joined #ruby
cj3kim_ has joined #ruby
wudofyr has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
wudofyr has joined #ruby
marcgg_ has joined #ruby
mayday_jay has quit [Quit: c ya!]
apeiros has quit [Remote host closed the connection]
tjad has joined #ruby
threeturn has joined #ruby
robbyoconnor has joined #ruby
marcgg has quit [Ping timeout: 248 seconds]
alexju has quit [Ping timeout: 240 seconds]
Urizen has quit [Ping timeout: 246 seconds]
chairabanta has quit [Quit: Leaving...]
druonysus has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
blackmesa has joined #ruby
choi0hun has joined #ruby
BradPitt_ has quit [Quit: Leaving]
decoponio has joined #ruby
kevind has quit [Quit: kevind]
Monie has joined #ruby
BraddPitt has joined #ruby
Urizen has joined #ruby
aryaching_ has joined #ruby
haxrbyte has joined #ruby
Bosox20051 has joined #ruby
hogeo_ has joined #ruby
rippa has joined #ruby
sonne_ has joined #ruby
T_T has quit [Remote host closed the connection]
robscomputer_ has joined #ruby
yonahw_ has joined #ruby
khushildep has joined #ruby
Coolhand_ has joined #ruby
matchaw has joined #ruby
druonysus has quit [Ping timeout: 245 seconds]
Urizen has quit [Ping timeout: 245 seconds]
promethe1nfire has joined #ruby
crunch-c1oco has joined #ruby
ahuman_ has joined #ruby
m_3_ has joined #ruby
dross_ has joined #ruby
agent_wh1te has joined #ruby
bsdbandi1 has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
DrForr_ has joined #ruby
awc737 has joined #ruby
bnagy_ has joined #ruby
threeturn has quit [Quit: threeturn]
choi0hun_ has joined #ruby
khushildep_ has joined #ruby
marcgg has joined #ruby
khushildep has quit [Ping timeout: 240 seconds]
intuxicated has quit [Ping timeout: 240 seconds]
khushildep_ is now known as khushildep
ssvo has quit [Ping timeout: 245 seconds]
io_syl_ has joined #ruby
zmansiv_ has joined #ruby
mgorbach_ has joined #ruby
faulkner- has joined #ruby
prometheanfire has quit [Disconnected by services]
Scient- has joined #ruby
Aryasam has joined #ruby
promethe1nfire is now known as prometheanfire
zmansiv has quit [Disconnected by services]
choi0hun has quit [*.net *.split]
agent_white has quit [*.net *.split]
ryanuber has quit [*.net *.split]
aryaching has quit [*.net *.split]
BadQuanta has quit [*.net *.split]
jonahR has quit [*.net *.split]
dross has quit [*.net *.split]
robscomputer has quit [*.net *.split]
io_syl has quit [*.net *.split]
hogeo has quit [*.net *.split]
Coolhand has quit [*.net *.split]
Scorchin has quit [*.net *.split]
dawkirst has quit [*.net *.split]
haxrbyte_ has quit [*.net *.split]
crunch-choco has quit [*.net *.split]
kiri has quit [*.net *.split]
thesheff17 has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
matchaw_ has quit [*.net *.split]
m_3 has quit [*.net *.split]
ahuman has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
mgorbach has quit [*.net *.split]
redgetan has quit [*.net *.split]
bw_ has quit [*.net *.split]
klaas has quit [*.net *.split]
awc737_ has quit [*.net *.split]
faulkner has quit [*.net *.split]
DrForr has quit [*.net *.split]
strgbrew has quit [*.net *.split]
fbernier has quit [*.net *.split]
polaco_zZz has quit [*.net *.split]
the_mentat has quit [*.net *.split]
hanoi has quit [*.net *.split]
DanKnox has quit [*.net *.split]
xybre has quit [*.net *.split]
ninegrid has quit [*.net *.split]
yonahw has quit [*.net *.split]
bnagy has quit [*.net *.split]
Scient has quit [*.net *.split]
bsdbandit has quit [*.net *.split]
oddraisin has quit [*.net *.split]
sonne has quit [*.net *.split]
justinweiss has quit [*.net *.split]
blackmesa has quit [*.net *.split]
Bry8Star{T2 has quit [*.net *.split]
DanBoy has quit [*.net *.split]
DrCode has quit [*.net *.split]
ksh has quit [*.net *.split]
tacos1de has quit [*.net *.split]
end_guy has quit [*.net *.split]
Kabaka has quit [*.net *.split]
faulkner- is now known as faulkner
mgorbach_ is now known as mgorbach
mrsolo has quit [Quit: This computer has gone to sleep]
cjk101010 has joined #ruby
<zmansiv> ns id instance13
zmansiv_ is now known as zmansiv
DanKnox has joined #ruby
the_mentat has joined #ruby
Monie has quit [Quit: Textual IRC Client: www.textualapp.com]
marcgg_ has quit [Ping timeout: 245 seconds]
fbernier has joined #ruby
dodosan has joined #ruby
marcgg_ has joined #ruby
redgetan has joined #ruby
Pixi__ has joined #ruby
dawkirst has joined #ruby
polaco_zZz has joined #ruby
xybre has joined #ruby
matled- has joined #ruby
tj`_ has joined #ruby
hanoi has joined #ruby
ninegrid has joined #ruby
marcgg has quit [Ping timeout: 245 seconds]
Emmanuel_Chanel has joined #ruby
Olipro has quit [Ping timeout: 260 seconds]
balves has joined #ruby
thesheff17 has joined #ruby
oddraisin has joined #ruby
BadQuanta has joined #ruby
Olipro has joined #ruby
justinweiss has joined #ruby
kiri has joined #ruby
nate___ has joined #ruby
ainame_ has joined #ruby
artmann has joined #ruby
Davedo1 has joined #ruby
dominikh1 has joined #ruby
tatsuya_o has joined #ruby
awc737_ has joined #ruby
dominikh has quit [Disconnected by services]
braoru has joined #ruby
dominikh1 is now known as dominikh
zz_karupanerura has quit [Quit: ZNC - http://znc.in]
riku- has joined #ruby
nuclearblast has joined #ruby
Roa_ has joined #ruby
fourq__ has joined #ruby
daveops_ has joined #ruby
raddazong has joined #ruby
rblackwe_ has joined #ruby
jxport_ has joined #ruby
QKO_ has joined #ruby
karupa64 has joined #ruby
chuck_ has joined #ruby
chuck_ has joined #ruby
mksm has joined #ruby
chuck_ has quit [Changing host]
contradictioned_ has joined #ruby
aliljet_ has joined #ruby
Blue_Ice_ has joined #ruby
Blue_Ice_ has quit [Changing host]
Blue_Ice_ has joined #ruby
marcgg_ has quit [Read error: Connection reset by peer]
epta_ has joined #ruby
quantumkat has joined #ruby
Todd- has joined #ruby
Nex7 has joined #ruby
miah_ has joined #ruby
AllStruck_ has joined #ruby
mksm is now known as Guest35381
marcgg has joined #ruby
premera_j_n has joined #ruby
premera_j has quit [Ping timeout: 260 seconds]
robwilliamsukio has joined #ruby
geoffw8__ has joined #ruby
tommyblu` has joined #ruby
elaptic`` has joined #ruby
Urizen has joined #ruby
sebastianb has quit [Ping timeout: 264 seconds]
dziga has quit [Ping timeout: 264 seconds]
Davedo has quit [Ping timeout: 264 seconds]
ainame has quit [Ping timeout: 264 seconds]
gilesw_ has quit [Ping timeout: 264 seconds]
ziyadb has quit [Ping timeout: 264 seconds]
nate_ has quit [Ping timeout: 264 seconds]
zendeavor has quit [Ping timeout: 264 seconds]
wlanboy has quit [Ping timeout: 264 seconds]
Roa has quit [Ping timeout: 264 seconds]
jokke has quit [Ping timeout: 264 seconds]
awc737 has quit [Ping timeout: 264 seconds]
artmann_ has quit [Ping timeout: 264 seconds]
fryguy- has quit [Ping timeout: 264 seconds]
yxhuvud has quit [Ping timeout: 264 seconds]
aliljet has quit [Ping timeout: 264 seconds]
Blue_Ice has quit [Ping timeout: 264 seconds]
Todd has quit [Ping timeout: 264 seconds]
fourq_ has quit [Ping timeout: 264 seconds]
cogitokat has quit [Ping timeout: 264 seconds]
rblackwe has quit [Ping timeout: 264 seconds]
miah has quit [Ping timeout: 264 seconds]
daveops has quit [Ping timeout: 264 seconds]
QKO has quit [Ping timeout: 264 seconds]
epta has quit [Ping timeout: 264 seconds]
tj` has quit [Ping timeout: 264 seconds]
niftylettuce has quit [Ping timeout: 264 seconds]
Sammael has quit [Ping timeout: 264 seconds]
matled has quit [Ping timeout: 264 seconds]
geoffw8_ has quit [Ping timeout: 264 seconds]
Guest76282 has quit [Ping timeout: 264 seconds]
chuck has quit [Ping timeout: 264 seconds]
zzak has quit [Ping timeout: 264 seconds]
jxport has quit [Ping timeout: 264 seconds]
elaptics`away has quit [Ping timeout: 264 seconds]
mark| has quit [Ping timeout: 264 seconds]
AllStruck has quit [Ping timeout: 264 seconds]
Xiti` has quit [Ping timeout: 264 seconds]
pinage404 has quit [Ping timeout: 264 seconds]
shevy has quit [Ping timeout: 264 seconds]
araujo has quit [Ping timeout: 264 seconds]
moeSeth_ has quit [Ping timeout: 264 seconds]
NexSeven has quit [Ping timeout: 264 seconds]
spacemud has quit [Ping timeout: 264 seconds]
contradictioned has quit [Ping timeout: 264 seconds]
riginding has quit [Ping timeout: 264 seconds]
rotor has quit [Ping timeout: 264 seconds]
robwilliamsuk has quit [Ping timeout: 264 seconds]
madhatter has quit [Ping timeout: 264 seconds]
C0deMaver1ck has quit [Ping timeout: 264 seconds]
riku has quit [Ping timeout: 264 seconds]
notbrent has quit [Ping timeout: 264 seconds]
tommyblue has quit [Ping timeout: 264 seconds]
ned has quit [Ping timeout: 264 seconds]
mark| has joined #ruby
Davedo1 is now known as Davedo
matled- is now known as matled
ainame_ is now known as ainame
Aryasam has quit [Ping timeout: 240 seconds]
notbrent_ has joined #ruby
marcgg_ has joined #ruby
gilesw_ has joined #ruby
AllStruck_ is now known as AllStruck
araujo has joined #ruby
C0deMaver1ck has joined #ruby
spacemud_ has joined #ruby
moeSeth__ has joined #ruby
wlanboy has joined #ruby
prox|a has joined #ruby
jokke has joined #ruby
dziga has joined #ruby
spacemud_ is now known as spacemud
wlanboy has joined #ruby
wlanboy has quit [Changing host]
ta_ has joined #ruby
C0deMaver1ck is now known as Guest19454
ned has joined #ruby
robert_ has quit [Excess Flood]
ned is now known as Guest65452
Olipro has quit [Excess Flood]
riku- is now known as riku
proxie has quit [Ping timeout: 272 seconds]
pinage404 has joined #ruby
Donovan has joined #ruby
mrsolo has joined #ruby
antulik-afk is now known as antulik
robert_ has joined #ruby
robert_ has joined #ruby
Dan has joined #ruby
pranny1 has joined #ruby
zendeavor has joined #ruby
dankest has quit [Read error: Connection reset by peer]
marcgg has quit [Ping timeout: 245 seconds]
dweeb_ has joined #ruby
Skelz0r_ has joined #ruby
joschi_ has joined #ruby
antulik is now known as antulik-afk
Olipro has joined #ruby
promethe1nfire has joined #ruby
adeponte has quit [Remote host closed the connection]
prometheanfire has quit [Disconnected by services]
promethe1nfire is now known as prometheanfire
intuxicated has joined #ruby
pranny has quit [Ping timeout: 245 seconds]
Domon_ has quit [Ping timeout: 245 seconds]
dyoung522 has quit [Ping timeout: 245 seconds]
quantumkat has quit [Ping timeout: 245 seconds]
browndawg has left #ruby [#ruby]
jaimef has quit [Ping timeout: 245 seconds]
ta has quit [Ping timeout: 245 seconds]
joast has quit [Ping timeout: 245 seconds]
TheNumb has quit [Ping timeout: 245 seconds]
joschi has quit [Ping timeout: 245 seconds]
Skelz0r has quit [Ping timeout: 245 seconds]
blooberr__ has joined #ruby
gr33n7007h has quit [Ping timeout: 245 seconds]
naquad has quit [Ping timeout: 245 seconds]
Bosox20051 has quit [Ping timeout: 245 seconds]
txdv has quit [Ping timeout: 245 seconds]
Kneferilis2 has quit [Ping timeout: 245 seconds]
blooberr has quit [Ping timeout: 245 seconds]
bubbajones has quit [Ping timeout: 245 seconds]
r0bglees0n has quit [Ping timeout: 245 seconds]
Gooder` has quit [Ping timeout: 245 seconds]
dnyy has quit [Ping timeout: 245 seconds]
karnowski has quit [Ping timeout: 245 seconds]
TheHodge has quit [Ping timeout: 245 seconds]
mikemar10 has quit [Ping timeout: 245 seconds]
ninegrid has quit [Ping timeout: 245 seconds]
crunch-c1oco has quit [Ping timeout: 245 seconds]
LiquidInsect has quit [Ping timeout: 245 seconds]
gr33n7007h has joined #ruby
blooberr__ is now known as blooberr_
oliver_ has joined #ruby
bg_ has joined #ruby
braoru_ has joined #ruby
r0bglees0n has joined #ruby
mikemar10 has joined #ruby
TheNumb has joined #ruby
ninegrid has joined #ruby
braoru has quit [Ping timeout: 245 seconds]
mdst_ has quit [Ping timeout: 245 seconds]
tatsuya_o has quit [Ping timeout: 245 seconds]
crunch-choco has joined #ruby
fuleo has quit [Ping timeout: 276 seconds]
LiquidInsect has joined #ruby
TheNumb has quit [Changing host]
TheNumb has joined #ruby
cutmail has joined #ruby
ayaz has joined #ruby
FDj_ has joined #ruby
chairabanta has joined #ruby
FDj has quit [Read error: Connection reset by peer]
bubbajones has joined #ruby
shevy has joined #ruby
sonne_ has quit [Ping timeout: 268 seconds]
idoru has joined #ruby
jaimef_ has joined #ruby
raddazong has quit [Changing host]
raddazong has joined #ruby
zarubin has joined #ruby
raddazong is now known as madhatter
ahawkins has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
<madhatter> re
heftig_ has joined #ruby
heftig has quit [Read error: Connection reset by peer]
braoru_ has quit [Remote host closed the connection]
sayan has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
Banistergalaxy has joined #ruby
relix has joined #ruby
palaenkar has joined #ruby
cj3kim_ has joined #ruby
noopq has joined #ruby
threeturn has joined #ruby
dweeb_ has quit [Quit: Textual IRC Client: www.textualapp.com]
chairabanta has quit [Quit: Leaving...]
palaenkar has quit [Client Quit]
marcgg has joined #ruby
marcgg__ has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
marcgg_ has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
emanon_ has quit [Remote host closed the connection]
xxpor has quit [Ping timeout: 260 seconds]
marcgg has quit [Ping timeout: 248 seconds]
|jemc| has quit [Ping timeout: 276 seconds]
nkts_ has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
linduxed has quit [Read error: Connection reset by peer]
marcgg has joined #ruby
marcgg__ has quit [Ping timeout: 246 seconds]
Sammael has joined #ruby
staafl has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
ferdev has joined #ruby
fl15 has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
cj3kim_ has joined #ruby
intuxicated has quit [Ping timeout: 242 seconds]
fl15 has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Ping timeout: 245 seconds]
emanon_ has joined #ruby
aganov has joined #ruby
fuleo has joined #ruby
naquad has joined #ruby
cogitokat has joined #ruby
Bosox20051 has joined #ruby
txdv has joined #ruby
yxhuvud has joined #ruby
klaas has joined #ruby
zzak has joined #ruby
riginding has joined #ruby
ziyadb has joined #ruby
rotor has joined #ruby
fuleo has quit [Max SendQ exceeded]
naquad has quit [Max SendQ exceeded]
Bosox20051 has quit [Max SendQ exceeded]
duracrisis has quit [Changing host]
duracrisis has joined #ruby
filipe has joined #ruby
robscomputer_ has quit [Changing host]
robscomputer_ has joined #ruby
Coolhand_ has quit [Changing host]
Coolhand_ has joined #ruby
Davedo has quit [Changing host]
Davedo has joined #ruby
geoffw8__ has quit [Changing host]
geoffw8__ has joined #ruby
notbrent_ has quit [Changing host]
notbrent_ has joined #ruby
moeSeth__ has quit [Changing host]
moeSeth__ has joined #ruby
gilesw_ has quit [Changing host]
gilesw_ has joined #ruby
dziga has joined #ruby
dziga has quit [Changing host]
blooberr_ has quit [Changing host]
blooberr_ has joined #ruby
noopq has quit [Changing host]
noopq has joined #ruby
Bosox20051 has joined #ruby
fuleo has joined #ruby
seich- has joined #ruby
naquad has joined #ruby
Bosox20051 has quit [Changing host]
Bosox20051 has joined #ruby
T_T has joined #ruby
fl15 has joined #ruby
intuxicated has joined #ruby
intuxicated has quit [Changing host]
intuxicated has joined #ruby
ksh has joined #ruby
fl16 has joined #ruby
fl15 has quit [Remote host closed the connection]
DrCode has joined #ruby
tylersmith has quit [Remote host closed the connection]
AdmiraI has joined #ruby
tylersmith has joined #ruby
oliver_ has quit [Remote host closed the connection]
eloquent_mute has joined #ruby
end_guy has joined #ruby
threesome has joined #ruby
tacos1de has joined #ruby
tylersmith has quit [Ping timeout: 240 seconds]
dagobah has joined #ruby
Xeago has joined #ruby
agent_wh1te has quit [Ping timeout: 245 seconds]
tjad has quit [Ping timeout: 245 seconds]
d45h has joined #ruby
gr33n7007h has joined #ruby
fl16 has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
kilophoton has quit [Ping timeout: 245 seconds]
fl17 has joined #ruby
mlpinit has joined #ruby
blueredturtle has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
Dan has quit [Quit: Peace]
Aryasam has joined #ruby
blueredturtle has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
funburn has quit [Quit: funburn]
dankest has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h has quit [Changing host]
Kneferilis has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
fl17 has quit [Remote host closed the connection]
Elhu has joined #ruby
kaspergrubbe has joined #ruby
Elhu has quit [Client Quit]
Scient- is now known as Scient
mrsolo has quit [Quit: This computer has gone to sleep]
mlpinit has quit [Ping timeout: 245 seconds]
Bry8Star{T2 has joined #ruby
lfpp has joined #ruby
funburn has joined #ruby
nkts_ has quit [Ping timeout: 248 seconds]
tatsuya_o has joined #ruby
cutmail has quit [Remote host closed the connection]
choi0hun_ has quit [Remote host closed the connection]
ukd1_ has quit [Remote host closed the connection]
nuvan has quit [Quit: Page closed]
lfpp has quit [Remote host closed the connection]
Aryasam_ has joined #ruby
marcgg_ has joined #ruby
Aryasam has quit [Ping timeout: 245 seconds]
lfp has joined #ruby
parzo has quit [Ping timeout: 248 seconds]
DrCode has quit [Ping timeout: 240 seconds]
marcgg has quit [Ping timeout: 264 seconds]
ephemerian has joined #ruby
ta_ has quit [Remote host closed the connection]
ta has joined #ruby
Aryasam_ has quit [Ping timeout: 245 seconds]
flughafen_ has joined #ruby
tesuji has joined #ruby
timonv has joined #ruby
<flughafen_> does anybody know if it's possible to get the FILENAME of the feature when running cucumber?
maroloccio has quit [Ping timeout: 245 seconds]
troessner has joined #ruby
ta has quit [Read error: Operation timed out]
Urizen has quit [Ping timeout: 276 seconds]
DrCode has joined #ruby
funburn has quit [Quit: funburn]
bricker`LA has quit [Ping timeout: 248 seconds]
vmoravec has joined #ruby
visof has joined #ruby
alup has joined #ruby
Elhu has joined #ruby
tjad has joined #ruby
Kar- has joined #ruby
tacos1de has quit [Ping timeout: 240 seconds]
buibex has joined #ruby
chopmo has joined #ruby
clocKwize has joined #ruby
corpuscle has joined #ruby
T_T has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 245 seconds]
hkon has joined #ruby
predator117 has quit [Ping timeout: 246 seconds]
DrCode has quit [Remote host closed the connection]
DrCode has joined #ruby
JPascal has joined #ruby
hkon has quit [Remote host closed the connection]
JPascal has quit [Client Quit]
GeissT has joined #ruby
tesuji has quit [Ping timeout: 245 seconds]
hkon has joined #ruby
claymore has joined #ruby
mrsolo has joined #ruby
ferdev has quit [Quit: ferdev]
tj`_ has quit [Read error: Connection reset by peer]
braoru has joined #ruby
tj` has joined #ruby
tacos1de has joined #ruby
xcfox has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
ta has joined #ruby
Coffers has joined #ruby
JPascal has joined #ruby
moli has joined #ruby
jibi has joined #ruby
workmad3 has joined #ruby
Aryasam has joined #ruby
camilasan has joined #ruby
rezzack has quit [Quit: Leaving.]
xcfox has quit [Client Quit]
predator117 has joined #ruby
eloquent_mute has quit [Ping timeout: 276 seconds]
workmad3 has quit [Read error: Operation timed out]
oliver__ has joined #ruby
Xeago has quit [Remote host closed the connection]
crunch-choco has quit [Quit: leaving]
cj3kim_ has quit [Remote host closed the connection]
dankest has quit [Quit: dankest]
dankest has joined #ruby
parzo has joined #ruby
Xeago has joined #ruby
dankest has quit [Client Quit]
obs has joined #ruby
reset has joined #ruby
Kar- has quit [Ping timeout: 245 seconds]
ta has quit [Ping timeout: 248 seconds]
ta has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
rdark has joined #ruby
oliver___ has joined #ruby
visof has quit [Ping timeout: 245 seconds]
parzo has quit [Ping timeout: 240 seconds]
visof has joined #ruby
Kabaka has joined #ruby
oliver__ has quit [Ping timeout: 245 seconds]
greengriminal has joined #ruby
greengriminal has quit [Client Quit]
funburn has joined #ruby
greengriminal has joined #ruby
greengriminal has quit [Client Quit]
greengriminal has joined #ruby
greengriminal has quit [Remote host closed the connection]
greengriminal has joined #ruby
vlad_starkov has joined #ruby
Scorchin has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
eloquent_mute has joined #ruby
lfp has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
Kar- has joined #ruby
elaptic`` is now known as elaptics
kevinykchan has quit [Quit: Computer has gone to sleep.]
intuxicated has quit [Ping timeout: 245 seconds]
pfl has joined #ruby
ehaliewicz has quit [Ping timeout: 240 seconds]
hamakn has quit [Remote host closed the connection]
heftig_ is now known as heftig
hamakn has joined #ruby
Morrolan has quit [Ping timeout: 276 seconds]
Morrolan has joined #ruby
tesuji has joined #ruby
julweber_ has quit [Remote host closed the connection]
msuszczy has joined #ruby
kilophoton has joined #ruby
niftylettuce has joined #ruby
hamakn has quit [Ping timeout: 276 seconds]
chihhsin has quit [Quit: leaving]
workmad3 has joined #ruby
chihhsin has joined #ruby
zeade has quit [Quit: Leaving.]
visof has quit [Changing host]
visof has joined #ruby
zarul has joined #ruby
predator117 has joined #ruby
pfl has quit [Remote host closed the connection]
pfl has joined #ruby
kilophoton has quit [Ping timeout: 245 seconds]
inverting12 has quit [Ping timeout: 245 seconds]
inverting12 has joined #ruby
pfl has quit [Remote host closed the connection]
ddv has joined #ruby
pfl has joined #ruby
Minos__ has joined #ruby
Domon_ has joined #ruby
Aryasam has quit [Ping timeout: 245 seconds]
intuxicated has joined #ruby
Splourian has quit [Quit: Leaving]
TheHodge has joined #ruby
dnyy has joined #ruby
karnowski has joined #ruby
St_Marx has joined #ruby
shredding has joined #ruby
avril14th has quit [Read error: Connection reset by peer]
cm1_ has joined #ruby
noname001 has joined #ruby
grego has joined #ruby
Nenor has joined #ruby
<grego> hi all
visof has quit [Quit: Leaving]
visof has joined #ruby
visof has quit [Changing host]
visof has joined #ruby
emergion has joined #ruby
Criztian has joined #ruby
ghr has joined #ruby
claymore has quit [Quit: Leaving]
Kar- has quit [Ping timeout: 264 seconds]
DanKnox is now known as DanKnox_away
yacks has joined #ruby
pfl has quit [Remote host closed the connection]
noname001 has quit [Read error: Connection reset by peer]
grego has quit [Quit: leaving]
coderhs has joined #ruby
sr78ger has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Aryasam has joined #ruby
noname001 has joined #ruby
mengu has joined #ruby
julweber has joined #ruby
lemonsparrow_ has joined #ruby
Rym has quit [Quit: Rym]
lemonsparrow is now known as Guest55832
lemonsparrow_ is now known as lemonsparrow
hkon has quit [Remote host closed the connection]
<lemonsparrow> a%b == 0 ? "Right" : "Wrong" is there a way I can rewrite this condition statement without using if/else or Ternary operator
<Xeago> lemonsparrow: why would you not want a conditional?
<apeiros> lemonsparrow: you will use branching, one way or another
okinomo has joined #ruby
<apeiros> all you can do is dress that branching up in a different way
AdmiraI has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Xeago> one could do tricks: Hash.new("Wrong",{0 => "Right"})[a%b]
<apeiros> Hash.new("Wrong").merge({…
<Xeago> not sure if the argument list is correct
<apeiros> damn you! :D
relix has joined #ruby
<sevenseacat> dont give him those kind of tricks, hes silly enough to use them
<apeiros> does Hash.new accept a hash as second arg now? o0 *gotta look up the docs & try*
<Xeago> apeiros: no idea
<Xeago> I know it accepts a default somehow
<lemonsparrow> Xeago: apeiros one solution is this ["right", "wrong"][a % b]
<lemonsparrow> Xeago: apeiros but there is one more way
<Xeago> lemonsparrow: that can fail
hkon has joined #ruby
callenb has joined #ruby
Maokomioko has joined #ruby
<Xeago> 5%3 #=> 2, => nil
<apeiros> lemonsparrow: no
<apeiros> lemonsparrow: that one won't work
<apeiros> and Xeago already gave you an example for when it won't work
<apeiros> and that's why I and Xeago went with Hash with default value
hkon has quit [Remote host closed the connection]
<apeiros> lemonsparrow: anyway, it's *silly*, it's *bad*, *don't do it*
<apeiros> it's still branching, just dressed up differently
<Xeago> using a hash shouldn't branch
<Xeago> just jump differently
<apeiros> Xeago: how do you think a hash lookup works? :)
<apeiros> it has *tons* of branching in it
<Xeago> depends on the implementation
<apeiros> not really
<Xeago> naive would be to jump pointers
Maokomioko is now known as maoko
callenb has quit [Client Quit]
<apeiros> a) #hash already probably contains branching, b) eql? certainly contains branching
<apeiros> and all the intermediary code probably contains a shitload of branching
julweber has quit [Ping timeout: 248 seconds]
<Xeago> different hash implementations (disregarding the ruby language currently), should not depend on calling eql?
<apeiros> all in all, a hash lookup will do more branching than a simple ternary or if/else
<apeiros> Xeago: um, yes
<apeiros> otherwise you have collisions
<Xeago> naive would be to jump pointers
mengu has quit [Quit: This computer has gone to sleep]
<apeiros> the hash value is inherently prone to collisions, being a finite set representing a possibly infinite set
<Xeago> a very naive implementation doesn't care about collisions :)
<apeiros> Xeago: you mix up "naive" and "broken"
cj3kim has joined #ruby
Ripp__ has quit []
mengu has joined #ruby
<lemonsparrow> Xeago: apeiros puts ["right", "wrong"][5 % 3] returned nil :)
<apeiros> a naive solution still works correctly.
la31 has joined #ruby
<workmad3> >> 5 % 3
<eval-in> workmad3 => 2 (https://eval.in/48942)
<apeiros> if you want a broken solution without branching, you don't have to reach that far
<workmad3> lemonsparrow: that's why ;)
<sevenseacat> lemonsparrow: don't do any of these tricks. write readable code.
funburn has quit [Quit: funburn]
<apeiros> just do: puts "wrong"
<apeiros> depending on b, you have a high chance of being correct too :-p
hkon has joined #ruby
<Xeago> blergh, my vocab is lacking
<lemonsparrow> sevenseacat: Xeago apeiros this is a tricky question in ruby to which there IS an answer.. was curious to know what it could be.. well this one which I just wrote fails for few conditions :)
<apeiros> lemonsparrow: this is NOT a ruby question
hamakn has joined #ruby
<Xeago> the identification function of a key can be be infinite, it is not strictly restricted to a finite set of values
<apeiros> lemonsparrow: no matter what language you choose, you WILL use branching, one way or another
<sevenseacat> sigh
<apeiros> and just to be clear, even a method call is branching
Zai00 has joined #ruby
<apeiros> anyway, walls, talking, nonsense. I stop.
<lemonsparrow> apeiros: Write a condition statement without using if/else or Ternary operator in ruby is the question... so basically you saying it's impossible ?
<sevenseacat> its pointless.
<Xeago> lemonsparrow: you are asking: writing a condition statement without the usual conditional statements
<apeiros> lemonsparrow: there is case/when, there are datastructures which inherently branch, etc.
<lemonsparrow> Xeago: question is clear.. without if else and ternary operator
<apeiros> so yes, you can do it without if/else or ternary. but again, it's stupid.
<sevenseacat> theres interesting problems, and then there's mental masturbation without lube
mengu has quit [Ping timeout: 245 seconds]
<apeiros> sevenseacat: mentarbation, as per zenspider :)
<hoelzro> lemonsparrow: what's your aim in avoiding if/else or the ternary operator?
<hoelzro> if it's a thought experiment, you *can*, but it doesn't mean you should
<lemonsparrow> hoelzro: it's just a tricky ruby question I found online and couln't resist giving it a try :)
<apeiros> lemonsparrow: I find it interesting how we a) show you how, b) tell you that it's stupid, and you still ask "so it's impossible"
<apeiros> seriously, if you ask, AT LEAST bother to read the replies.
<lemonsparrow> apeiros: there are no answers to it.. :) or else I wouldn't have asked here ;)
<sevenseacat> lol
<apeiros> lemonsparrow: ouch
<lemonsparrow> apeiros: chill.. I know no one use that way.. but this is just a fun question so don't take me wrong :)
<apeiros> lemonsparrow: you don't tell me to chill.
<apeiros> I'll be angry whenever the fuck I want.
la31 has quit [Ping timeout: 245 seconds]
<lemonsparrow> apeiros: :) sure
<Xeago> in any case, question has been answered
<sevenseacat> apeiros: it sounds like you need a hug.
<Xeago> we have shown you at least one possible way, so scroll up, and don't claim it is impossible, we have already proven otherwise
<apeiros> sevenseacat: punching bag would be more helpful. but not because of lemonsparrow
hkon has quit [Ping timeout: 245 seconds]
dodosan has quit [Remote host closed the connection]
dodosan has joined #ruby
<lemonsparrow> Xeago: apeiros puts Hash.new("Wrong",{0 => "Right"})[5%3] something like this I believe
cj3kim has quit [Ping timeout: 261 seconds]
<Xeago> alternatively: c=["Wrong"}*a;c[0]="Right";c[a%b]
<Xeago> using arrays
<Xeago> s/}/]
la458 has joined #ruby
okinomo has quit [Ping timeout: 248 seconds]
<apeiros> Hash.new("Wrong",{0 => "Right"}) --> Hash.new("Wrong").merge(0 => "Right")
<apeiros> 2-arg Hash.new sadly doesn't exist
okinomo has joined #ruby
<lemonsparrow> apeiros: please show me the final logic using a and b
<apeiros> lemonsparrow: do some work yourself.
gyre007 has joined #ruby
<lemonsparrow> apeiros: just found your logic a lil confusing that's why :)
ta has quit [Remote host closed the connection]
<Xeago> Hash.new({0 => "Right"){|hash,k| "Wrong"}
<workmad3> Xeago: don't you mean 'c=["Wrong"] * b; ...' ;)
atno has quit [Read error: Connection reset by peer]
Kabaka has quit [Ping timeout: 240 seconds]
gyre007 has quit [Remote host closed the connection]
<Xeago> workmad3: yea, should multiply by b
aaronmcadam has joined #ruby
St_Marx has quit [Ping timeout: 240 seconds]
dodosan has quit [Ping timeout: 268 seconds]
<lemonsparrow> Xeago: apeiros this one is good too logic wise c=["Wrong"]*a;c[0]="Right"; puts c[a%b];
Kar- has joined #ruby
sevenseacat has quit [Quit: Leaving.]
Aryasam has quit [Ping timeout: 246 seconds]
la458 has quit [Remote host closed the connection]
aryaching_ has quit [Ping timeout: 240 seconds]
la504 has joined #ruby
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
ferdev has joined #ruby
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
emergion has quit [Quit: Computer has gone to sleep.]
tagrudev has quit [Ping timeout: 248 seconds]
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
nomenkun has joined #ruby
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
gyre007 has joined #ruby
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
chrishough has quit [Quit: chrishough]
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
pranny1 has quit [Ping timeout: 276 seconds]
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
St_Marx has joined #ruby
Kabaka has joined #ruby
Guest4375 has joined #ruby
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
shaunbaker has joined #ruby
DrCode has quit [Ping timeout: 240 seconds]
D4T has joined #ruby
D4T has quit [Max SendQ exceeded]
D4T has joined #ruby
vlad_starkov has joined #ruby
Lewix has quit [Remote host closed the connection]
<lemonsparrow> Xeago: apeiros could you tell me why puts ["right", "wrong"][5 % 3] fails ?
Stygia has joined #ruby
BadQuanta has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
<Xeago> lemonsparrow: I explained it earlier
<Xeago> 5%3 # => 2,
<Xeago> there is no value at index 2
corpuscle has quit [Quit: corpuscle]
Voiden has joined #ruby
Lewix has quit [Remote host closed the connection]
tagrudev has joined #ruby
<lemonsparrow> Xeago: yep
vlad_starkov has quit [Ping timeout: 276 seconds]
ta has joined #ruby
nari has quit [Ping timeout: 260 seconds]
DrCode has joined #ruby
la504 has quit [Remote host closed the connection]
callenb has joined #ruby
Lewix has joined #ruby
mikecmpbll has joined #ruby
_maes_ has joined #ruby
razi has joined #ruby
fixl has joined #ruby
ewnd9 has joined #ruby
Lewix has quit [Remote host closed the connection]
julweber has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
la504 has joined #ruby
kreisys has joined #ruby
atno has joined #ruby
hogeo_ has quit [Remote host closed the connection]
la504 has quit [Remote host closed the connection]
seich- has joined #ruby
parzo has joined #ruby
zephdev has joined #ruby
reset has quit [Quit: Leaving...]
_maes_ has quit [Ping timeout: 245 seconds]
hkon has joined #ruby
linduxed has joined #ruby
funburn has joined #ruby
marcgg has joined #ruby
la538 has joined #ruby
yrrrep has joined #ruby
rv has joined #ruby
marcgg_ has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
linduxed has left #ruby ["WeeChat 0.4.1"]
buibex has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
buibex has joined #ruby
shaunbaker has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
la538_ has joined #ruby
la538 has quit [Remote host closed the connection]
emergion has joined #ruby
la552 has joined #ruby
la538_ has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
vlad_starkov has joined #ruby
barratt has joined #ruby
Guest4375 has quit [Quit: leaving]
cj3kim has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
yacks has quit [Ping timeout: 276 seconds]
pry has joined #ruby
cj3kim has quit [Ping timeout: 240 seconds]
tobago has joined #ruby
<pry> Hello, how does one include a module inside a class that is declared inside a class?
<pry> I tried include ::Module but seems like it's not it :)
seich- has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
ferdev has quit [Quit: ferdev]
nerdman has joined #ruby
<xybre> pry: Nameofclass::Nameofmodule
<kke> https://gist.github.com/kke/6592421 how come no exception is raised?
camilasa_ has joined #ruby
<xybre> kke: because you rescued from it, yo.
maroloccio has joined #ruby
<kke> xybre: wrong answer
camilasan has quit [Ping timeout: 245 seconds]
seich- has quit [Ping timeout: 240 seconds]
<kke> added comments
axsuul has quit [Ping timeout: 256 seconds]
maoko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
la616 has joined #ruby
la552 has quit [Remote host closed the connection]
leonidlm has joined #ruby
<xybre> Well, looks like you get to figure it out then.
mrsolo has quit [Quit: This computer has gone to sleep]
mercwithamouth has joined #ruby
Aryasam has joined #ruby
<xybre> pry: have you require'd it yet?
Aryasam has quit [Read error: Connection reset by peer]
dmiller has joined #ruby
Aryasam has joined #ruby
ferdev has joined #ruby
<kke> you missed the point of the question which was : why does if false foo = 1 else puts foo end output nil and not raise an exception
Xeago has joined #ruby
<pry> xybre: just noticed I did not. Was hoping you already went away and forgot completely about my very existence
<xybre> pry: :D
Aryasam_ has joined #ruby
leonidlm has quit [Ping timeout: 245 seconds]
Aryasam has quit [Read error: Connection reset by peer]
<xybre> kke: "wrong answer" in response to a poor question isn't going to get you a lot of love.
m0s has joined #ruby
<shevy> damn it
<shevy> we have someone with an IRC nick pry here now???
<shevy> I am going to eval that pry dude
postmodern has quit [Quit: Leaving]
<shevy> >> exit
<eval-in> shevy => exit (SystemExit) (https://eval.in/48946)
siwica has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 276 seconds]
m0s has quit [Client Quit]
<pry> shevy: just throw everything
m0s has joined #ruby
<pry> i)ll brain eval ang reply shit
<shevy> hehe
<pry> -ang + and
Aryasam_ has quit [Ping timeout: 245 seconds]
hogeo has joined #ruby
<Veejay> Hello everyone. I'm doing Google login in my app through OAuth2/Google APIs and I was wondering if there is a "good practice" pattern for successive interdependent API calls?
Xeago has quit [Ping timeout: 264 seconds]
spike|spiegel has quit [Quit: WeeChat 0.4.1]
<r0bglees0n> kke: it's because of how the parser works. it allocates unassigned local variables a value of nil when it is parsing your code. when it is looked up at runtime, it has that value (nil).
camilasa_ has quit [Remote host closed the connection]
camilasan has joined #ruby
<Veejay> i.e. Auth'ing a user through their APIs requires something like 3 successive API calls with potential failures and right now I'm doing one, storing the response, using something in the response to make another one and so forth (using RestClient). While this is working, I was wondering if there's a common pattern or coding style to make it smoother (kind of an open question, sorry about that)
snearch has joined #ruby
ismlages has joined #ruby
<r0bglees0n> kke: the assignment has to happen in a scope where lookup could happen (if ruby scoped local assignment inside if(), you'd see a NameError)
emergion has quit [Quit: Computer has gone to sleep.]
<pry> Veejay: don't be, same question is hitting me at the moment
<Veejay> heh, good. Questions that are too open are often hard to handle though, gnome sane
<pry> 3 steps? i get 2 here but I use google api gem
<pry> you can count the 3rd as api discovery though
<Veejay> Yeah
<Veejay> Cause when I finally get the access token, I make another call to the API to retrieve user identifier
<r0bglees0n> kke: i don't really understand why matz decided to do that or the background on the decision, but it's by-design.
<Veejay> And then YET another one to an internal API to make sure the user exists for the provider/uid couple
<Veejay> So that's a grand total of 4 API calls
skaflem has joined #ruby
<Veejay> And looking at the code, it kind of looks stupid even though I've yet to slap the error handling on top of it
spike|spiegel has joined #ruby
m0s has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pry> well if all the calls retrieve infos you need then just do it
<Veejay> Yeah I guess
<pry> there is pattern I suppose
<banisterfiend> pry your nickname is making my irc client highlight like crazy :)
<pry> now
<Veejay> Maybe RestClient supports a block callback form
cm1_ has quit [Read error: Connection reset by peer]
<pry> Veejay: the thing to get is a way to get lazy authentication
<pry> that is where I stand
twoism has joined #ruby
<Veejay> banisterfiend: hah yeah that's what I was thinking
<pry> banisterfiend: sorry about that, I'll stop using it until christmas
<pry> (so to get more blinking lights)
<banisterfiend> hehe :)
pry is now known as yrp
<yrp> lazy auth thentication with all google APIs is a bit of a sport
<yrp> at least for my design capacities
tkuchiki has quit [Remote host closed the connection]
<yrp> so I do what I always do in such case: Spend tns of time :xx
twoism has quit [Remote host closed the connection]
reset has joined #ruby
bg_ has quit [Remote host closed the connection]
<Veejay> banisterfiend: Wanted to ask. Whatchu think about that Truffle thing?
leonidlm has joined #ruby
<Veejay> Should I get my hopes of fast Ruby up?
twoism has joined #ruby
tkuchiki has joined #ruby
schaerli has joined #ruby
<yrp> ok we have twoism in the room
<Veejay> I'm not sure I love the Oracle part of it but I figure the innovation might be able to trickle down to at least JRuby somehow
<yrp> now MY client is going to blink around
<Veejay> Trickle-down programmatics
eloquent_mute has quit [Ping timeout: 240 seconds]
emergion has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<banisterfiend> Veejay what truffle thing?
<banisterfiend> Veejay oh yeah
kaspergrubbe has joined #ruby
<banisterfiend> Veejay well headius says he can do it too
timonv has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
reset has quit [Ping timeout: 245 seconds]
<Veejay> Yeah, I think it can be beneficial as a whole
<Veejay> Quite frankly, I'd really like for Ruby to get faster for free
<Veejay> Awesome language but it's slow
<Veejay> Now that I've seen that Javascript can be insanely fast, I'm getting greedy
<prophile> rubinius is quite nice
blackmesa has quit [Ping timeout: 240 seconds]
Kar- has quit [Ping timeout: 245 seconds]
mklappstuhl has joined #ruby
aagdbl has joined #ruby
d45h has quit [Ping timeout: 248 seconds]
<Veejay> prophile: It is quite nice. But like all those alternative implementations, it's suffering from having to swim uptide and being understaffed
<shevy> hehe
<Veejay> prophile: And quite frankly as long as they're not absolute drop-ins for MRI, it won't matter
wildroman has joined #ruby
<Veejay> It's the state of affairs unfortunately
<shevy> mruby must change all that!
<prophile> we could murder matz and let the catch up
<prophile> *them
<shevy> prophile nooooo... who would continue mruby then :(
<prophile> up for debate
<prophile> personally i'm hoping for paul simon
d45h has joined #ruby
<shevy> lol
mlpinit has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
selim has joined #ruby
seich- has joined #ruby
Banistergalaxy has joined #ruby
dangerousdave has quit [Quit: Leaving...]
mlpinit has quit [Ping timeout: 264 seconds]
butblack has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
twoism_ has joined #ruby
coderhut has joined #ruby
shredding has joined #ruby
dhruvasagar has joined #ruby
osvico has joined #ruby
<JesseH> does a ruby class need an initialize method?
twoism has quit [Ping timeout: 264 seconds]
<hoelzro> JesseH: no
<JesseH> Okay thank you
twoism_ has quit [Ping timeout: 245 seconds]
<lupine> well, "need" is an interesting question
Banistergalaxy has quit [Ping timeout: 245 seconds]
<lupine> class Foo < Object ; undef initialize ; end
<lupine> (irb):2: warning: undefining `initialize' may cause serious problem
<JesseH> I like that error
<JesseH> Also, why inherit from Object?
<JesseH> It does that automatically O_o
Banistergalaxy has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
narcan has joined #ruby
kaspergrubbe has joined #ruby
agjacome has joined #ruby
nerdman has quit [Quit: leaving]
platzhirsch has joined #ruby
<platzhirsch> tire tire tire...
<JesseH> ?
jbpros has joined #ruby
pskosinski has joined #ruby
<platzhirsch> JesseH: ah just some huge problems with tire since last night, it's a Ruby DSL for Elasticsearch
RealMarc has joined #ruby
Guest55832 has quit [Quit: Page closed]
<JesseH> I see
_maes_ has joined #ruby
shredding has quit [Quit: shredding]
Maokomioko has joined #ruby
<platzhirsch> basically it has to do with NoSQL being advertised as schema-less or self-describing, but when it comes to design and implementation, then all of a sudden your data cannot be as schemaless as you want it ;D
Bry8Star{T2 has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
optimusprimem has quit [Ping timeout: 245 seconds]
butblack has quit [Quit: butblack]
Bry8Star{T2 has joined #ruby
agjacome has quit [Quit: leaving]
pskosinski is now known as sniffingcats
Nenor has quit [Quit: Nenor]
inverting12 has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
Xeago has joined #ruby
monkegjinni has joined #ruby
jbpros has quit [Quit: jbpros]
s0ny123 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mklappstuhl has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
Nenor has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
Kar- has joined #ruby
machuga|away is now known as machuga
yfeldblum has joined #ruby
ewag has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
rcosta has joined #ruby
reset has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 246 seconds]
Domon__ has quit [Remote host closed the connection]
Domon has joined #ruby
eloquent_mute has joined #ruby
ewnd9 has quit [Ping timeout: 248 seconds]
rdark has quit [Ping timeout: 276 seconds]
jbpros has joined #ruby
adac has joined #ruby
jkamenik has joined #ruby
kaspergrubbe has joined #ruby
rdark has joined #ruby
fgo has joined #ruby
Domon has quit [Ping timeout: 248 seconds]
browndawg has joined #ruby
reset has quit [Ping timeout: 276 seconds]
eka has joined #ruby
siwica has quit [Quit: siwica]
inverting12 has joined #ruby
julweber has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
ewag has quit [Ping timeout: 248 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
browndawg has quit [Ping timeout: 245 seconds]
ewag has joined #ruby
siwica has joined #ruby
dhruvasagar has quit [Ping timeout: 245 seconds]
la616 has quit [Remote host closed the connection]
noop has joined #ruby
jbpros has quit [Quit: jbpros]
funburn has quit [Quit: funburn]
noopq has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
cody-- has joined #ruby
Guest19454 has quit [Ping timeout: 260 seconds]
ewnd9 has joined #ruby
C0deMaver1ck has joined #ruby
leehambley has joined #ruby
C0deMaver1ck is now known as Guest68839
NealJ has joined #ruby
<leehambley> is there any way to ship a ruby application (server, web, or TCP, or something) as a single binary, including the interpreter?
leonidlm has quit [Ping timeout: 245 seconds]
funburn has joined #ruby
yacks has joined #ruby
angusiguess has joined #ruby
mlpinit has joined #ruby
jamesaanderson has joined #ruby
threeturn has quit [Quit: threeturn]
sjltaylor has joined #ruby
camilasan has quit [Remote host closed the connection]
camilasan has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
kimosabe__ has joined #ruby
rv has quit [Ping timeout: 250 seconds]
arbes is now known as raar
raar has quit [Changing host]
raar has joined #ruby
osvico has quit [Ping timeout: 245 seconds]
okinomo has quit [Ping timeout: 268 seconds]
emanon_ has quit [Remote host closed the connection]
rdark has quit [Ping timeout: 245 seconds]
varfoo has quit [Quit: WeeChat 0.4.0]
fourq__ has quit [Quit: leaving]
rdark has joined #ruby
<platzhirsch> leehambley: I am not sure, but to my knowledge it will always depend on C libraries..
hogeo has quit [Remote host closed the connection]
<leehambley> that's acceptable platzhirsch; I'm just surprised there's not something well known, so that you can do `$ ./mything` -- and have that be some kind of executable file with an interpreter and your app in there
eloquent_mute has quit [Disconnected by services]
<leehambley> for better or for worse, might be an interesting prokect
eloquent_mute has joined #ruby
kimosabe__ has left #ruby [#ruby]
kpshek has quit []
snearch has quit [Quit: Verlassend]
jxport_ has quit [Quit: leaving]
leonidlm has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.0]
maroloccio has joined #ruby
maroloccio has quit [Client Quit]
krawchyk has joined #ruby
<platzhirsch> leehambley: Would be interesting, ask it on SO you have my upvote :D
<leehambley> :-) I'll write it up later
Alina-malina has quit [Read error: Connection reset by peer]
schaerli has quit [Remote host closed the connection]
Alina-malina has joined #ruby
<leehambley> looks like this exists, for Windows - https://github.com/larsch/ocra
<leehambley> and in theory, packaging an .APP for mac would be easy
adambeynon has joined #ruby
<leehambley> but my target platform would be *nix where http://megastep.org/makeself/ is a decent start
leonidlm has quit [Ping timeout: 260 seconds]
la616 has joined #ruby
mark_locklear has joined #ruby
Elhu has joined #ruby
noodletraveler has joined #ruby
zephdev has quit [Remote host closed the connection]
ravster has joined #ruby
<shevy> oh now I understand it...
<shevy> you can add instance variables to a module
<shevy> and on a mixin, call super
nari has joined #ruby
shredding has joined #ruby
<shevy> that's why a module can have an initialize method
ananthakumaran has quit [Quit: Leaving.]
soba has quit [Ping timeout: 245 seconds]
sr78ger has quit [Ping timeout: 248 seconds]
<bjhaid> leehambley: I have shipped with rvm before
jp- has joined #ruby
jimeh has quit [Ping timeout: 260 seconds]
<bjhaid> though I know the username would be same on all servers
<bjhaid> that I am deploying to
<bjhaid> so that made my task easier
<bjhaid> I can share sample bash scripts
noodletraveler has quit [Quit: leaving]
jimeh has joined #ruby
kaldrenon has joined #ruby
sr78ger has joined #ruby
sr78ger has quit [Max SendQ exceeded]
gchaturvedi has joined #ruby
sr78ger has joined #ruby
cody-- has quit [Quit: derp]
shredding has quit [Ping timeout: 264 seconds]
ewag has quit [Remote host closed the connection]
maroloccio has joined #ruby
breakingthings has joined #ruby
shredding has joined #ruby
threeturn has joined #ruby
classix has joined #ruby
krz has quit [Quit: krz]
Tricon has joined #ruby
BillCriswell has joined #ruby
siwica has quit [Quit: siwica]
cody-- has joined #ruby
Mnemon has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
eloquent_mute has quit [Ping timeout: 248 seconds]
geekbri has joined #ruby
leonidlm has joined #ruby
reset has joined #ruby
gchaturvedi has quit [Ping timeout: 260 seconds]
brbcoding has joined #ruby
vlad_starkov has joined #ruby
snath has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
Mnemon has joined #ruby
<leehambley> bjhaid: well the rvm built rubies are portable, so that shouldn't be too problematic, something about unpacking zip files and starting things
<bjhaid> okay
<bjhaid> let me gist some stuff
gchaturvedi has joined #ruby
kofno has joined #ruby
gchaturvedi has quit [Client Quit]
reset has quit [Ping timeout: 264 seconds]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
funburn has quit [Quit: funburn]
eightfold has joined #ruby
<eightfold> howdy. i've just installed rvm on os x and i'm about to install a ruby version. should i go for 2.0.0-head or p247?
allaire has joined #ruby
<eightfold> i just want to use some gems that are not supported by 1.8.7 that my os x came with
<eightfold> supported in
cj3kim has joined #ruby
platzhirsch has left #ruby [#ruby]
sjltaylor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jprovazn has joined #ruby
<adac> Anyone experience with the "yell" logger? is there a way to put the name of the logger in front of each log message by default?
yekta has joined #ruby
yekta has quit [Client Quit]
mklappstuhl has quit [Remote host closed the connection]
mdst2 has joined #ruby
khushildep_ has joined #ruby
khushildep has quit [Ping timeout: 240 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kobain has joined #ruby
<shevy> eightfold I am on ruby 1.9.3p448 (2013-06-27 revision 41675) [i686-linux]
browndawg has quit [Quit: Leaving.]
<shevy> I can not switch to 2.0 yet because my yaml files are incompatible with psych and syck is no longer available in 2.x
cj3kim has quit [Ping timeout: 248 seconds]
<waxjar> go with the latest stable version. -head's probably not stable :)
tesuji has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
jlast has joined #ruby
cody-- has quit [Quit: derp]
khushildep has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
khushildep_ has quit [Ping timeout: 264 seconds]
tesuji has joined #ruby
dlokesh has joined #ruby
kofno has quit [Ping timeout: 260 seconds]
<shevy> how many ways exist to store a ruby object somewhere, and then restore it again?
kofno has joined #ruby
emergion has joined #ruby
cody-- has joined #ruby
<ghr> shevy Yaml::Store and PStore are two that come to mind
<ghr> You can also serialize in to a database
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
burlyscudd has joined #ruby
<shevy> oh cool
<waxjar> you can marshal, serialize to json, msgpack probably has a serialization thingy as well
tomzx_mac has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
sambao21 has joined #ruby
Banistergalaxy has joined #ruby
camilasa_ has joined #ruby
camilasan has quit [Read error: Connection reset by peer]
sambao21 has quit [Client Quit]
jaynewstrom has quit [Remote host closed the connection]
burlyscudd has quit [Client Quit]
<Veejay> shevy: Some of those methods have limitations though
thesheff17 has quit [Ping timeout: 268 seconds]
jamesaanderson has joined #ruby
<Veejay> Limitations pertaining to IO objects and blocks
joast has joined #ruby
<Veejay> i.e. not everything can be seralized
justsee has joined #ruby
justsee has joined #ruby
burlyscudd has joined #ruby
<Veejay> IIRC
hanmac has joined #ruby
Bira_ has joined #ruby
brtdv has joined #ruby
luke has joined #ruby
asobrasil has joined #ruby
la616 has quit [Remote host closed the connection]
devoldmx has joined #ruby
polaco_zZz is now known as polaco
polaco has joined #ruby
polaco has quit [Changing host]
luke is now known as Guest64931
polaco is now known as polaco_zZz
huoxito has joined #ruby
polaco_zZz is now known as polaco
phantasm66 has joined #ruby
BillCriswell has quit [Remote host closed the connection]
jaynewstrom has joined #ruby
atno has quit [Ping timeout: 268 seconds]
dlokesh has left #ruby [#ruby]
devoldmx3 has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
barratt has quit [Ping timeout: 245 seconds]
Guest64931 has quit [Ping timeout: 264 seconds]
anonymuse has joined #ruby
ixti has joined #ruby
<nyuszika7h> hi, how could I convert this array: ['nyuszika7h', 'x', 1000, 1000, 'nyuszika7h', '/home/nyuszika7h', '/bin/zsh'] into this hash: { username: 'nyuszika7h', password: 'x', uid: 1000, gid: 1000, home: '/home/nyuszika7h', shell: '/bin/zsh' }
adambeynon has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<nyuszika7h> also, rubydoc.info is giving me an infinite redirect loop :/
<nyuszika7h> using Firefox Aurora
<Veejay> nyuszika7h: Look at Array#zip
cfi30 has joined #ruby
<shevy> nyuszika7h, your array is not linear
<shevy> you have 'nyuszika7h' twice
<nyuszika7h> oh
cpruitt has quit [Quit: cpruitt]
<nyuszika7h> that is an issue?
C0C0 has quit [Read error: Operation timed out]
C0C0 has joined #ruby
bsdbandi1 has quit [Quit: leaving]
<nyuszika7h> the positions are fixed, though
<Veejay> And then Hash[*result_of_zip.flatten]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> well it is an issue in sofar that you showed an array with 7 members but the hash has only 6 entries
<shevy> array = ['nyuszika7h', 'x', 1000, 1000, 'nyuszika7h', '/home/nyuszika7h', '/bin/zsh']
<shevy> hash = { username: 'nyuszika7h', password: 'x', uid: 1000, gid: 1000, home: '/home/nyuszika7h', shell: '/bin/zsh' }
<nyuszika7h> oh, I forgot realname
<shevy> you need to also provide the names like username, shell etc..
timonv has joined #ruby
<shevy> if it is linear, 7 to 7, then you can merge the two arrays
<bjhaid> nyuszika7h: you might have to call uniq on the array first before performing any operation
peregrine81 has joined #ruby
sailias has joined #ruby
<bjhaid> because there are replicated items in the array
<bjhaid> the username
<bjhaid> is replictaed
<nyuszika7h> bjhaid: I don't want to strip the non-unique values
<nyuszika7h> I need to have that for both username and realname
<shevy> bjhaid if he does .uniq, he also kills one 1000
<bjhaid> are they always same
enebo has joined #ruby
<nyuszika7h> nope
baordog_ has joined #ruby
<bjhaid> is the position always same
<bjhaid> ??
<bjhaid> if yes
<nyuszika7h> it is
<shevy> once you have two arrays nyuszika7h you can convert it
<bjhaid> then use zip
<shevy> array1 = %w( abc def ghi )
<shevy> array2 = %w( jkl mno pqr )
<bjhaid> zip the two arrays
<shevy> Hash[array1.zip(array2)] # => {"abc"=>"jkl", "def"=>"mno", "ghi"=>"pqr"}
devoldmx has quit [Ping timeout: 253 seconds]
<bjhaid> and convert into an hash
<nyuszika7h> ah, thanks
elux has joined #ruby
<shevy> I wanna unzip something now
sambao21 has joined #ruby
kpshek has joined #ruby
lfox has joined #ruby
levin has joined #ruby
levin is now known as Guest43694
lfox has quit [Client Quit]
lfox has joined #ruby
jerius has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
atno has joined #ruby
ixti has quit [Ping timeout: 248 seconds]
<shevy> newbie question
<shevy> is YAML.dump(self) a good way to store an object?
kindjal has joined #ruby
<Veejay> shevy: See my remark from before
robertjpayne has joined #ruby
<Veejay> There are limitations to object serialization
nowthatsamatt has joined #ruby
robscomputer_ has quit [Ping timeout: 245 seconds]
nowthatsamatt has quit [Remote host closed the connection]
<shevy> hmmm
kindjal has quit [Client Quit]
<shevy> store_where: !binary |-
<shevy> L0RlcG90L1RlbXAvbXVkX29iamVjdF81Mzc5NTMxOS55bWw=
<shevy> yaml dump can look strange :\
timonv has quit [Remote host closed the connection]
<shevy> oh damn
lfox has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
<shevy> when I load it, it is a Syck Object?
<shevy> damn damn damn ...
lfox has joined #ruby
<robertjpayne> Is there any reason the bytes of these two would be different? :cool.to_s.bytes VS 'cool'.bytes?
<robertjpayne> damn encoding types nvm
julweber has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
eloquent_mute has joined #ruby
duggiefresh has joined #ruby
<shevy> hehe
<shevy> lovely encoding
<shevy> alright ... this scares me
iamjarvo_ has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
kofno has quit [Ping timeout: 264 seconds]
camilasa_ has quit [Remote host closed the connection]
camilasan has joined #ruby
timonv has joined #ruby
jamesaanderson has joined #ruby
kofno has joined #ruby
St_Marx has joined #ruby
bean__ has joined #ruby
shaunbaker has joined #ruby
shaunbak_ has joined #ruby
m00nlight has joined #ruby
thebastl has quit [Remote host closed the connection]
<matti> shevy: ;]
<shevy> matti don't ;] on me, it scares me even more
<matti> OK.
<waxjar> ;] ;]
<matti> shevy: ;] :] 8]
<gregj> ;]
<matti> shevy: Run run!
Alina-malina has quit [Ping timeout: 245 seconds]
alexju has joined #ruby
sr78ger has quit [Quit: Textual IRC Client: www.textualapp.com]
tomzx_mac has quit [Ping timeout: 260 seconds]
reset has joined #ruby
St_Marx has quit [Remote host closed the connection]
tacit7 has joined #ruby
<shevy> why is composition not used more in ruby?
pioz has joined #ruby
vlad_starkov has joined #ruby
St_Marx has joined #ruby
shaunbaker has quit [Ping timeout: 264 seconds]
wallerdev has joined #ruby
senayar has joined #ruby
wildroman has joined #ruby
<shevy> subclass subclass subclass ...
<matti> What makes you think so
<matti> ?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ixti has joined #ruby
<JesseH> Okay so, if I'm right, a class variables is the same value among all instances of the class?
reset has quit [Ping timeout: 245 seconds]
justsee has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
jamesaanderson has joined #ruby
<hanmac> JesseH and all Subclasses and all instances of Subclasses
<JesseH> oh and I could do Classname.class_var as well
mikecmpbll has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
vlad_starkov has quit [Ping timeout: 240 seconds]
<JesseH> Interesting. Thank you hanmac
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
freerobby has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Max SendQ exceeded]
interactionjaxsn has joined #ruby
ananthakumaran has joined #ruby
mklappstuhl has joined #ruby
Bira_ has quit [Remote host closed the connection]
<robertjpayne> Is there an easy way to slice an array into segments? I have 20,000 objects need to run them in batches
kayloos has joined #ruby
codecop has quit [Remote host closed the connection]
hkon has quit [Remote host closed the connection]
<crowell> robertjpayne: array has an .each_slice operator
<waxjar> #each_slice i believe
jdeeburke has joined #ruby
<shevy> perhaps array.slice(0, array.size / 2)
Maokomioko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> oh yeah, each_slice
<crowell> so like arr2 = arr.each_slice(10).to_a will give subarrays of size 10
plotter has joined #ruby
khushildep has quit [Ping timeout: 276 seconds]
ehc has joined #ruby
headius has joined #ruby
taec has quit [Ping timeout: 248 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
Soda has joined #ruby
mklappst_ has joined #ruby
nanoxd has joined #ruby
aagdbl has quit [Ping timeout: 240 seconds]
wildroman has quit [Remote host closed the connection]
Teddy2steper has joined #ruby
acrussell has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mklappstuhl has quit [Ping timeout: 260 seconds]
Teddy2steper has quit [Remote host closed the connection]
BillCriswell has joined #ruby
timonv has quit [Remote host closed the connection]
kindjal has joined #ruby
ehc has quit [Quit: ehc]
<banisterfiend> robertjpayne say thankyou to crowell :)
kofno has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
khushildep has joined #ruby
tjad has quit [Ping timeout: 246 seconds]
allsystemsarego has quit [Quit: Leaving]
dangerousdave has joined #ruby
leonidlm has quit [Ping timeout: 264 seconds]
Urizen has joined #ruby
siwica has joined #ruby
jdeeburke has quit [Quit: Leaving.]
freerobby has quit [Quit: Leaving.]
kofno has joined #ruby
freerobby has joined #ruby
nari has quit [Ping timeout: 240 seconds]
BillCriswell has quit [Remote host closed the connection]
kayloos has quit [Remote host closed the connection]
BillCriswell has joined #ruby
Alina-malina has joined #ruby
Criztian has joined #ruby
sniffingcats has quit [Quit: Til rivido Idisti!]
intuxicated has quit [Quit: Leaving]
User793 has joined #ruby
<User793> stu "d!ckless" lantz betrays all; trannys + queers(chaste Homos/a$$holes), rule; andrea hylton/tranny, frederick clarence hardison/queer, Q bama, statelocalgov.net, usa.gov, nndb.com, votesmart.org, cia.gov (world leaders), forbes.com/lists, robert j. Dieckhoff, paul hanneman, roland washington/q
<User793> gone
User793 has quit [Client Quit]
kayloos has joined #ruby
khushildep_ has joined #ruby
ixti has quit [Quit: WeeChat 0.4.1]
St_Marx has quit [Quit: Ex-Chat]
xeon has joined #ruby
ixti has joined #ruby
Urizen has quit [Ping timeout: 245 seconds]
eightfold has left #ruby [#ruby]
braoru has quit [Quit: Leaving]
atno has quit [Remote host closed the connection]
ixti has quit [Client Quit]
ixti has joined #ruby
MrThePlague has joined #ruby
MrThePlague has joined #ruby
khushildep has quit [Ping timeout: 264 seconds]
khushildep_ is now known as khushildep
pentameter has joined #ruby
RDash[AW] is now known as RDash
ixti has quit [Client Quit]
ixti has joined #ruby
kevind has joined #ruby
krz has joined #ruby
krz has quit [Changing host]
krz has joined #ruby
thesheff17 has joined #ruby
kayloos has quit [Remote host closed the connection]
ixti has quit [Client Quit]
ixti has joined #ruby
robscomputer has joined #ruby
zephdev has joined #ruby
atno has joined #ruby
<robertjpayne> crowell: thank you :), it's on Enumerable so I didn't catch that
robscomputer_ has joined #ruby
eloquent_mute has quit [Ping timeout: 245 seconds]
Monie has joined #ruby
kayloos has joined #ruby
khushildep has quit [Ping timeout: 245 seconds]
robscomputer has quit [Ping timeout: 261 seconds]
m0s has joined #ruby
burlyscudd has quit [Quit: Leaving.]
sayan has quit [Ping timeout: 245 seconds]
xeon has quit [Ping timeout: 245 seconds]
jamesaanderson has joined #ruby
leonidlm has joined #ruby
rhys has joined #ruby
jamesaanderson has quit [Client Quit]
sayan has joined #ruby
ewnd9 has quit [Read error: Connection reset by peer]
dangerousdave has quit [Quit: Leaving...]
browndawg has joined #ruby
Antrapol-m has joined #ruby
aryaching has joined #ruby
nongeek has joined #ruby
<nongeek> Hello
* nongeek what is the best ruby framework after Ruby on rails?
ewnd9 has joined #ruby
zephdev has quit [Remote host closed the connection]
cody-- has quit [Quit: derp]
coderhut has quit [Quit: Page closed]
relix has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
Alina-malina has joined #ruby
ffranz has joined #ruby
m0s has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ner0x has joined #ruby
cody-- has joined #ruby
<crowell> nongeek: for doing what?
<crowell> totally depends
pothibo has joined #ruby
cj3kim has joined #ruby
sirfilip has joined #ruby
<nongeek> crowell: Web develop
sambao21 has joined #ruby
VTLob has joined #ruby
pskosinski has joined #ruby
<nongeek> o/ crowell : I know ruby on rails is very popular but I need another framework
vlad_starkov has joined #ruby
<sirfilip> try sinatra noname001
<sirfilip> try sinatra nongeek
<sirfilip> sorry noname001
<nongeek> sinatra is cool after rails?
<sirfilip> or go with plain rack just to play aroung
iamjarvo_ has quit [Ping timeout: 245 seconds]
<sirfilip> or go with plain rack just to play around
xeon has joined #ruby
pskosinski has quit [Client Quit]
<nongeek> I guess Sinatra is good
<nongeek> I google it
<nongeek> Thanks a lot
pskosinski has joined #ruby
<banisterfiend> nongeek your question is a bit silly
<nongeek> Why?
pskosinski has quit [Remote host closed the connection]
<nongeek> banisterfiend: Why it is silly?
<banisterfiend> nongeek after rails (which does 'everything') the available web frameworks tend to focus on doing a particular thing, rather than everything, so the choice of which one to use completely depends on what you're trying to achieve
havenwood has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
<nongeek> Can Sinatra doing anything that rails can?
cj3kim has quit [Ping timeout: 264 seconds]
T__T has joined #ruby
vlad_starkov has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<banisterfiend> nongeek Not easily. Sinatra is extremely lightweight
havenwood has joined #ruby
mrsolo has joined #ruby
<banisterfiend> if you try to write a large website in sinatra you will experience pain
barratt has joined #ruby
<crowell> nongeek: that is like asking can a bicycle do everything a car can
<Voiden> nongeek: what specifically do you have against rails?
GeissT has quit [Quit: MillBroChat AdIRC User]
sniffingcats has joined #ruby
mary5030 has joined #ruby
pel_daniel has joined #ruby
<banisterfiend> nongeek afaict sinatra's sweet spot is for building small restful APIs
<sirfilip> i think that he just wants to see the other side of ruby
derf- has quit [Ping timeout: 245 seconds]
LBRapid has quit [Ping timeout: 246 seconds]
rcedillor has joined #ruby
jamesaanderson has joined #ruby
<sirfilip> since ruby is mostly associated with rails
justinmcp has quit [Quit: No Ping reply in 180 seconds.]
<sirfilip> i think that he just want to see how a non rails working with ruby feels like
<nongeek> oh
<nongeek> But can it a good option after rails?
<nongeek> crowell: Excuse em, Can I send PM?
<tacit7> non geek Padrino is based Sinatra, but has more functionality.
leonidlm has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
kaichanvong has quit [Quit: _]
justinmcp has joined #ruby
<sirfilip> rack is a wonderful toy to play with
RORgasm has joined #ruby
<nongeek> rack?
xeon has quit [Ping timeout: 264 seconds]
<sirfilip> well both sinatra and rails are rack based
<havenwood> crowell: Could look at Sinatra, Padrino, NYNY, Cuba, Scorched, yeah or straight Rack. (The former are all Rack DSLs/frameworks.)
<sirfilip> you can create your own framework using rack
mansi has joined #ruby
<crowell> nongeek: I'm on a call now
mengu has joined #ruby
kaichanvong has joined #ruby
<nongeek> crowell: I will send a PM
mephux has quit [Quit: w0ots...]
LBRapid has joined #ruby
<nongeek> sirfilip: Can you tell me about Rack?
mephux has joined #ruby
derf- has joined #ruby
<sirfilip> sure http://rack.github.io/
<sirfilip> and there are lots of nice tutorials
<nongeek> sirfilip: Can I send PM to you?
ukd1 has joined #ruby
rins has joined #ruby
pioz has quit [Quit: Leaving]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pioz has joined #ruby
<sirfilip> why not
mercwithamouth has quit [Ping timeout: 240 seconds]
ahawkins has quit [Quit: leaving]
platzhirsch1 has joined #ruby
cogitokat has quit [Ping timeout: 264 seconds]
<platzhirsch1> I give up, I just index all my documents/records (hashes) as JSON-strings. So much to the JSON-based database...
razi has quit [Ping timeout: 240 seconds]
Blacklite_ has joined #ruby
justsee has quit [Quit: leaving]
jbpros has joined #ruby
carlyle has joined #ruby
clov3r has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
barratt has quit [Quit: Leaving...]
swordsmanz has quit [Quit: swordsmanz]
<noname001> sirfilip: no worries
<havenwood> noname001: Whatcha trying to do?
noop has quit [Ping timeout: 245 seconds]
barratt has joined #ruby
greengriminal has quit [Quit: Leaving]
Targen has joined #ruby
reset has joined #ruby
kindjal has quit [Quit: Computer has gone to sleep.]
ta has quit [Remote host closed the connection]
ehc has joined #ruby
yaymukund has joined #ruby
JPascal has quit [Quit: Textual IRC Client: www.textualapp.com]
Maokomioko has joined #ruby
NoiseEee has joined #ruby
T__T has quit [Remote host closed the connection]
NoiseEee has left #ruby [#ruby]
Stalkr_ has joined #ruby
<Blacklite_> I need the K&R equivalent for ruby, can someone link me to it? preferably pdf form
Davey has joined #ruby
reset has quit [Ping timeout: 264 seconds]
xeon has joined #ruby
<platzhirsch1> Has someone made good experience with Mongoid?
xeon has quit [Max SendQ exceeded]
tesuji has quit [Read error: Connection reset by peer]
sloucher has quit [Write error: Broken pipe]
tesuji has joined #ruby
pioz has left #ruby ["Leaving"]
ehc has quit [Ping timeout: 264 seconds]
xeon has joined #ruby
wildroman has joined #ruby
<banisterfiend> Blacklite_ "the ruby programming language"
<banisterfiend> Blacklite_ by o'reilly - it was even based on k&r
wildroman has quit [Remote host closed the connection]
<banisterfiend> (in terms of its structure)
kindjal has joined #ruby
aagdbl has joined #ruby
C0C0 has quit [Ping timeout: 245 seconds]
tobago has quit [Remote host closed the connection]
wildroman has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
T_T has joined #ruby
alekst has joined #ruby
xxpor has joined #ruby
xxpor has quit [Max SendQ exceeded]
timonv has joined #ruby
iamjarvo has quit [Remote host closed the connection]
burlyscudd has joined #ruby
mmitchell has joined #ruby
s0ny123 has quit [Quit: Lost terminal]
iamjarvo has joined #ruby
Blacklite_ has left #ruby [#ruby]
jdeeburke has joined #ruby
jdeeburke has quit [Read error: Connection reset by peer]
tagrudev has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 276 seconds]
geggam_ is now known as geggam
sarkis has joined #ruby
jdeeburke has joined #ruby
jdeeburke has quit [Max SendQ exceeded]
jdeeburke has joined #ruby
xeon has quit [Ping timeout: 264 seconds]
dkamioka has joined #ruby
Cyrus has quit [Quit: Cyrus.close()]
adac has quit [Quit: Leaving]
nari has joined #ruby
jibi has quit [Ping timeout: 245 seconds]
mando has joined #ruby
optimusprimem has joined #ruby
optimusprimem has quit [Changing host]
optimusprimem has joined #ruby
kevinykchan has joined #ruby
carlyle has quit [Remote host closed the connection]
jdeeburke has left #ruby [#ruby]
peregrine81 has quit []
dhruvasagar has joined #ruby
jibi has joined #ruby
robscomputer_ has quit [Remote host closed the connection]
lucazi has joined #ruby
kvirani has joined #ruby
tacit7 has quit [Ping timeout: 245 seconds]
aganov has quit [Remote host closed the connection]
AlSquire has joined #ruby
wildroman has quit [Remote host closed the connection]
robscomputer has joined #ruby
corpuscle has joined #ruby
tacit7 has joined #ruby
jbpros has quit [Quit: jbpros]
parzo has quit [Ping timeout: 240 seconds]
DrShoggoth has joined #ruby
mikepack has joined #ruby
alexju has quit [Remote host closed the connection]
clocKwize has quit [Quit: clocKwize]
__username__ has joined #ruby
|jemc| has joined #ruby
alexju has joined #ruby
evenix has joined #ruby
buibex has quit [Remote host closed the connection]
C0C0 has joined #ruby
nongeek has left #ruby [#ruby]
mupkoo has joined #ruby
ta has joined #ruby
tesuji has quit [Ping timeout: 245 seconds]
julweber has quit [Remote host closed the connection]
visof has quit [Quit: Leaving]
tkuchiki has quit [Remote host closed the connection]
rehat has joined #ruby
hpekdemir has joined #ruby
alexju has quit [Ping timeout: 245 seconds]
hanmac has quit [Quit: Leaving.]
<rehat> what is this operator called when dealing with hashes '=>' ?
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
<hpekdemir> I used "gem install holidays". but I still get an error: "cannot load such file -- holidays"
<hpekdemir> any hints?
<hpekdemir> gem env look fine to me.
Antrapol-m has quit [Quit: Using mobile IRC...Help! No coverage!]
cmarques_ has joined #ruby
<hoelzro> rehat: hash rocket or fat arrow
<rehat> hoelzro: thanks
<havenwood> +1 hashrocket
<hpekdemir> do I have to run something after I ran "gem install $packet"?
khushildep has joined #ruby
<tj`> in some versions of ruby you have to require 'rubygems' first
Tuxist has joined #ruby
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hanmac has joined #ruby
<havenwood> hpekdemir: What version of RubyGems are you using? Update by running: gem update --system
<hpekdemir> havenwood: ruby1.9.1
cmarques has quit [Ping timeout: 240 seconds]
tatsuya_o has quit [Remote host closed the connection]
wildroman has joined #ruby
wildroman has quit [Remote host closed the connection]
<hpekdemir> havenwood: this is debian here. can't update gem systemwide.
<havenwood> hpekdemir: So that is an apt package I'm hoping, not really 1.9.1? :P That is likely actually Ruby 1.9.3. Check Ruby version with `ruby -v` and RubyGems version with `gem -v`.
<hpekdemir> I use debian repo packages. and it is up to date.
nfk is now known as Kamijou_Touma
wildroman has joined #ruby
<hpekdemir> havenwood: yes. this is ruby1.9.3 actually, which is linked to /etc/alternatives/ which is in turn linked to /usr/bin/ruby1.9.1
<havenwood> hpekdemir: Makes me wonder if you have something funky in your ~/.gemrc, it not finding the gem remotely.
<tj`> hpekdemir did you installed gem and tried to used as same user and exact same env?
leonidlm has joined #ruby
iamjarvo has quit [Remote host closed the connection]
dml_ has joined #ruby
DanKnox_away is now known as DanKnox
<tj`> `gem env` should help you
<hpekdemir> tj`: yes
<hpekdemir> gem env looks fine to me.
Croms has joined #ruby
iamjarvo has joined #ruby
<hpekdemir> lib path is correct. ruby version is correct.
<tj`> or you sure when you try to use the gem you still use that very same ruby 1.9.x
<tj`> olde versions of ruby do not require rubygems automatically
buibex has joined #ruby
<hpekdemir> gem 1.9.3 here,.
girija has quit [Ping timeout: 245 seconds]
<hpekdemir> which is linked to gem 1.9.1
<hpekdemir> as ruby
<tj`> be careful ruby version and rubygems version can be unrelated
<havenwood> hpekdemir: gem -v?
jinie has quit [Ping timeout: 247 seconds]
<tj`> `gem env` in a gist might help
<hpekdemir> 1.8.11
<hpekdemir> oO
<hpekdemir> gem -v output.
<havenwood> hpekdemir: okay, so that is the version of RubyGems that ships with 1.9.3, that lines up
<hpekdemir> oh in gem env. there is RUBYGEMS VERSION: 1.8.11
tewmten has quit [Ping timeout: 268 seconds]
<hpekdemir> oh ok
<tj`> look GEM PATHS:
<havenwood> hpekdemir: and your .gemrc file is empty?
<tj`> if your gem was installed in there
<hpekdemir> I don't own one
baroquebobcat has joined #ruby
<hpekdemir> tj`: as I said. paths are correct. gems are installed there.
jinie has joined #ruby
tewmten has joined #ruby
robscomputer has quit [Remote host closed the connection]
peregrine81 has joined #ruby
mikepack has quit [Remote host closed the connection]
khushildep has quit [Ping timeout: 260 seconds]
leonidlm has quit [Ping timeout: 245 seconds]
<tj`> if you dump $LOAD_PATH in same code place you require your gem,
<hanmac> if i would lose 1g for each "Weight Lose" spam i delete, my weight would be negative ;D
cj3kim has joined #ruby
<tj`> it's still correct and match the GEM PATHs?
iamjarvo has quit [Ping timeout: 260 seconds]
<hpekdemir> tj`: I have no LOAD_PATH set
<hpekdemir> is it important?
tabolario has joined #ruby
<tj`> it's to check if anything changes it
<tj`> any other code
<tj`> any env var etc…
<tj`> something is clearly wrong when you require your gem, else it would work :-)
<tj`> any shebang pointing to wrong ruby binary?
endless_walrus has joined #ruby
Seich has joined #ruby
iamjarvo has joined #ruby
momomomomo has joined #ruby
pragmaticivan has joined #ruby
pragmaticivan has left #ruby [#ruby]
sayan has quit [Ping timeout: 245 seconds]
<havenwood> hpekdemir: If you can't get update-alternative working, there's always chruby: https://github.com/postmodern/chruby#readme
cj3kim has quit [Ping timeout: 256 seconds]
burlyscudd has quit [Quit: Leaving.]
timonv has quit [Remote host closed the connection]
dodosan has joined #ruby
tjad has joined #ruby
jprovazn has quit [Quit: Leaving]
parzo has joined #ruby
blo has quit [Ping timeout: 245 seconds]
fgo has quit [Remote host closed the connection]
buibex has quit [Ping timeout: 264 seconds]
JumpMast3r has quit [Quit: JumpMast3r]
RichardBaker has joined #ruby
<hanmac> hpekdemir: "gem" has also an secondy alternatives, so you need "update-alternatives —config gem" too
<hpekdemir> hmm
<hpekdemir> I'll try
<hpekdemir> There is only one alternative in link group gem: /usr/bin/gem1.9.1
<hanmac> hm ok then it should be currect
jdeeburke has joined #ruby
alexju has joined #ruby
jdeeburke has left #ruby [#ruby]
schaerli has joined #ruby
aagdbl has quit [Quit: Leaving.]
mengu_ has joined #ruby
Bira has joined #ruby
<hpekdemir> what about rake
<hpekdemir> does rake know where the gems are stored?
mengu has quit [Read error: Connection reset by peer]
mengu__ has joined #ruby
<hpekdemir> the error comes from rake when I do "rake generate_secret_token" for redmine installation
<hpekdemir> gives me an error and points to a init file of a redmine pluging.
<hpekdemir> the given line in that file has "require holidays"
<hpekdemir> I made a "gem install holidays"
<hpekdemir> so how does rake know if it is installed or not?
<krz> whats a good way to run this twice and put into an array %(foo bar baz).sample
_Minos__ has joined #ruby
<krz> so output should look something like ['bar', 'foo']
Stygia has quit [Remote host closed the connection]
bricker`LA has joined #ruby
atno has quit [Ping timeout: 260 seconds]
_Minos_ has quit [Read error: Connection reset by peer]
cyclamen has joined #ruby
inverting12 has quit [Quit: inverting12]
snath has joined #ruby
blo has joined #ruby
cfi30 has quit [Ping timeout: 264 seconds]
<crowell> krz: you can pass args to sample
<crowell> you could do myarray.sample(2)
mengu_ has quit [Ping timeout: 264 seconds]
reset has joined #ruby
mrsolo has joined #ruby
warefare22 is now known as warefare
ereslibre has quit [Ping timeout: 245 seconds]
chopmo has quit [Read error: Connection reset by peer]
<crowell> is that what you are asking?
mengu has joined #ruby
lucazi has quit [Quit: lucazi]
chopmo has joined #ruby
ran-tan50 has joined #ruby
vlad_sta_ has joined #ruby
mengu__ has quit [Read error: Connection reset by peer]
iamjarvo has quit [Remote host closed the connection]
<krz> ah
ssvo has joined #ruby
<krz> thanks
Xeago has quit [Remote host closed the connection]
iamjarvo has joined #ruby
banisterfiend has quit [Quit: Computer has gone to sleep.]
corpuscle has quit [Quit: WeeChat 0.4.1]
vlad_starkov has quit [Ping timeout: 264 seconds]
aalmenar has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
reset has quit [Ping timeout: 256 seconds]
mengu_ has joined #ruby
mikecmpbll has joined #ruby
a1ph4g33k has joined #ruby
<a1ph4g33k> Good morning.
Guest68839 is now known as C0deMaver1ck
C0deMaver1ck has quit [Changing host]
C0deMaver1ck has joined #ruby
mengu has quit [Ping timeout: 260 seconds]
<havenwood> g'morn
toddWork_ has joined #ruby
optimusprimem has quit [Ping timeout: 245 seconds]
schaerli has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
mengu_ has quit [Client Quit]
aryaching has quit []
adeponte has joined #ruby
nignaztic has joined #ruby
aryaching has joined #ruby
burlyscudd has joined #ruby
iamjarvo has quit [Ping timeout: 264 seconds]
nazty has quit [Ping timeout: 248 seconds]
cfi30 has joined #ruby
obs has quit [Quit: Konversation terminated!]
freerobby has quit [Quit: Leaving.]
hogeo has joined #ruby
user258467 has quit [Quit: Quitte]
dankest has joined #ruby
banisterfiend has joined #ruby
shredding has quit [Quit: shredding]
Maokomioko has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lewix has joined #ruby
jdeeburke has joined #ruby
jdeeburke has quit [Max SendQ exceeded]
vmoravec has quit [Quit: Leaving]
jdeeburke has joined #ruby
jdeeburke has left #ruby [#ruby]
sniffingcats has quit [Quit: Til rivido Idisti!]
digital-ghost has joined #ruby
<rehat> so I have an old rails version installed. When I try to do gem install rails I get this ERROR: Failed to build gem native extension. something about my extconf.rb failed
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
coderhs has quit [Quit: Leaving]
kpshek has quit []
kaspergrubbe has joined #ruby
aalmenar has joined #ruby
aalmenar has joined #ruby
dagobah has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
cyclamen has quit [Remote host closed the connection]
<bjhaid> rehat: would be best if you paste your failure somewhere
<bjhaid> that it can be seen
Criztian has quit [Remote host closed the connection]
<bjhaid> there are probably some libraries missing
alup has quit [Quit: Leaving]
filipe has quit [Remote host closed the connection]
<canton7> OS?
<bjhaid> rehat: from what you pasted "You have to install development tools first."
<canton7> ah, mac
endash has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
<rehat> bjhaid: yeah I see that but what tools
aalmenar has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Ping timeout: 245 seconds]
kreisys has quit [Quit: Computer has gone to sleep.]
d45h has quit [Ping timeout: 276 seconds]
<bjhaid> brew install automake
Ripp__ has joined #ruby
<bjhaid> and if you use mysql
<bjhaid> do same
dash_ has joined #ruby
zerun0 has quit [Ping timeout: 264 seconds]
* platzhirsch1 buries tire and Elasticsearch
iamjarvo has joined #ruby
jbpros has joined #ruby
<rehat> tried automake and it says its already installed
<bjhaid> can you paste the content of your mkmf.log
platzhirsch1 is now known as platzhirsch
dhruvasagar has joined #ruby
krz has quit [Quit: krz]
ereslibre has quit [Ping timeout: 264 seconds]
sarlalian has joined #ruby
maletor has joined #ruby
digital-ghost has quit [Remote host closed the connection]
io_syl_ has quit []
burlyscudd has quit [Quit: Leaving.]
iliketurtles has joined #ruby
wildroman has quit [Remote host closed the connection]
bigkevmcd has quit [Read error: Connection reset by peer]
bigkevmcd has joined #ruby
iliketurtles has quit [Client Quit]
dankest has quit [Quit: Peace]
Kar- has quit [Quit: leaving]
Urizen has joined #ruby
flughafen_ has left #ruby [#ruby]
dmiller_ has joined #ruby
RORgasm has quit [Read error: Connection reset by peer]
RORgasm_ has joined #ruby
x1337807x has joined #ruby
wildroman has joined #ruby
brtdv has joined #ruby
end_guy has quit [Remote host closed the connection]
wildroman has joined #ruby
tvw has joined #ruby
Trudko has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
ehc has joined #ruby
iamjarvo has quit [Remote host closed the connection]
<Trudko> hi guys , i am iterating over some data a exporting them to csv. Some data may repeat(some objects can be in data twice and lets assume I can't remove repeated data). If i want to record somehow data which were process how should I record them? Should I create hashmap with identifier and true false as value or should i put processed data into array and check if piece of data to be proccesed...
<Trudko> ...is in array?
iamjarvo has joined #ruby
<Trudko> something like this http://pastie.org/8333482
dmiller_ has quit [Ping timeout: 245 seconds]
jbpros has quit [Quit: jbpros]
yacks has quit [Quit: Leaving]
nadirvardar has joined #ruby
D4T has quit [Quit: Textual IRC Client: www.textualapp.com]
rcosta has quit [Ping timeout: 245 seconds]
rcosta has joined #ruby
noname001 has quit [Ping timeout: 245 seconds]
aalmenar has joined #ruby
aalmenar has quit [Changing host]
aalmenar has joined #ruby
Tuxist has quit [Remote host closed the connection]
cj3kim has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
freerobby has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
oliver___ has quit [Read error: Connection reset by peer]
zeade has joined #ruby
<canton7> Trudko, use a Set?
mansi has quit [Remote host closed the connection]
a1ph4g33k has quit [Quit: Leaving.]
<|jemc|> Trudko: does order matter?
end_guy has joined #ruby
sloucher has joined #ruby
bigoldrock has joined #ruby
ereslibre has joined #ruby
ereslibre has joined #ruby
<Trudko> no, i should describe my data it is list of matches between players. so One match have two players and players have multiple matches. I want to expot to csv info about players(name, age etc) and info about each match(score). I dont want to repeat info about player so I though that I will check if this players data was exported if yes than I will skip it
cody-- has quit [Quit: derp]
kayloos has quit [Remote host closed the connection]
plotter has quit [Quit: Leaving]
<|jemc|> if order doesn't matter, this accomplishes the same as your gist:
<|jemc|> h=Hash.new; somearray.each { |e| h[e.id] ||= process(e) }
mansi has joined #ruby
hamakn has quit [Remote host closed the connection]
<|jemc|> ||= will only assign if e.id is not already in the hash h
cj3kim has quit [Ping timeout: 256 seconds]
hamakn has joined #ruby
wallerdev has quit [Quit: wallerdev]
Bira has quit [Remote host closed the connection]
<bjhaid> is a cleaner way
<bjhaid> somearray.each_with_objects({}) { |hash,e| hash[e.id] ||= process(e) }
wallerdev has joined #ruby
<bjhaid> or rather more concise
Spami has joined #ruby
tylersmith has joined #ruby
nomenkun has quit [Ping timeout: 245 seconds]
ehc has quit [Quit: ehc]
benlieb has joined #ruby
threeturn has quit [Quit: threeturn]
cody-- has joined #ruby
fourq_ has joined #ruby
<|jemc|> yeah, {} is shorthand for Hash.new; I left it in to be a little more clear
aaronmcadam has quit [Quit: Leaving...]
<bjhaid> I meant the each_with_object and not the {} itself
hamakn has quit [Ping timeout: 245 seconds]
* ccooke wonders how Ruby people will react to an idiom he's using
burlyscudd has joined #ruby
DanKnox is now known as DanKnox_away
alexju_ has joined #ruby
<ccooke> Basically a load of modules each define some isolated features. They all get included into a particular class with a dependency loader.
<ccooke> Each module defines its own method module_load, which gets called individually in dependency order
<ccooke> Does this evoke horror, interest or apathy? :-)
pothibo has quit [Quit: pothibo]
dangerousdave has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
ldnunes has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
alexju has quit [Ping timeout: 260 seconds]
<Trudko> ok thanks looks sexy.
<banisterfiend> ccooke smells like overengineering
<banisterfiend> but if it works for you ;)
<ccooke> banisterfiend: entirely possible
chrisja has joined #ruby
<ccooke> banisterfiend: It's for some personal code anyway, but I was curious :-)
kil0byte has joined #ruby
sayan has joined #ruby
adeponte has joined #ruby
yaymukund has quit [Ping timeout: 245 seconds]
DanKnox_away is now known as DanKnox
Alina-malina has quit [Ping timeout: 245 seconds]
Croms has quit [Quit: Croms]
Alina-malina has joined #ruby
<banisterfiend> ccooke what problem were you having that it solves?
Alina-malina has quit [Read error: Connection reset by peer]
barratt has quit [Ping timeout: 264 seconds]
adeponte has quit [Remote host closed the connection]
__username__ has quit [Ping timeout: 264 seconds]
adeponte has joined #ruby
kidoz has joined #ruby
Seich_ has joined #ruby
randomautomator has joined #ruby
Seich has quit [Read error: Connection reset by peer]
taion809 is now known as zzz_taion809
<ccooke> banisterfiend: partly separation of intent, partly reaction to the previous codebase. Which is one reason I can see it could definitely be overengineering.
Voiden has quit [Quit: (/ 1 0)]
Squarepy has joined #ruby
reset has joined #ruby
DanKnox is now known as DanKnox_away
<banisterfiend> ccooke are you doing a kind of DCI thing?
kaldrenon has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
<ccooke> banisterfiend: the codebase is a rewrite of an IRC bot I've been running for about 15 years. It has a number of features that have been provided by third prties.
<maletor> Would sprockets ever double require something. For instance, if I require foo and require bar and bar also requires foo does sprockets list that twice?
kaldrenon has joined #ruby
jerius has quit [Ping timeout: 245 seconds]
<banisterfiend> ccooke out of interest why are you doing a module-inclusion based system rather than a composition based system?
<ccooke> banisterfiend: the issue with the current iteration of the code is that it's not modular enough. It tries to be, but I wrote that version when I was just learning ruby - it was my "learn ruby" project, in fact :-)
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banisterfiend> ccooke inclusion can sometimes have the same issues as inheritance, unless you're very careful
Collin_ has joined #ruby
<banisterfiend> i.e it's very easy to couple to the implementation rather than the interface
<Morrolan> ccooke: You wrote an IRC bot in Ruby, fifteen years ago? :o
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dodosan has quit [Remote host closed the connection]
<ccooke> Morrolan: oh no :-)
fourq_ is now known as lowcard
<banisterfiend> ccooke since private methods, ivars, etc are available
girija has joined #ruby
<ccooke> I wrote an IRC bot 15 years ago. A few years ago I wrote the eighth version of it in Ruby
Alina-malina has joined #ruby
<Morrolan> Ah, I see.
<Morrolan> How many languages did you try out, during these fifteen years? :)
<hanmac> ccooke: in ruby its VERY difficult to hide code or protect your code from modifying because of this what banister said
reset has quit [Ping timeout: 256 seconds]
bklane has joined #ruby
<ccooke> Morrolan: Two. The first version (and the next six subsequent iterations) were the result of losing a bet.
<ccooke> (and were written in shell script)
Voodoofish430 has joined #ruby
<Morrolan> Welp. xP
__username__ has joined #ruby
<maletor> maletor: no
saarinen has joined #ruby
kaldrenon has quit [Ping timeout: 245 seconds]
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Zai00 has quit [Quit: Zai00]
timonv has joined #ruby
yaymukund has joined #ruby
sarlalian has quit [Quit: WeeChat 0.4.1]
<ccooke> banisterfiend: Hmm. I think I'm avoiding the issues by explicit design.
<banisterfiend> ccooke k00
schaerli has joined #ruby
<ccooke> banisterfiend: The only things that get included are specifically designed features, that are self-contained
_adeponte has joined #ruby
<platzhirsch> Will I really call this class now MetaMetadata ...
dodosan has joined #ruby
<ccooke> banisterfiend: whether this is a pattern that would benefit other people I wouldn't want to say. It's probably a bit overcomplex for the code I'm actually writing on, but I do like the effect
saarinen has quit [Client Quit]
ukd1 has quit [Remote host closed the connection]
<ccooke> For anyone curious, the actual bot (not IRC) functionality is here: https://github.com/ccooke/cccb9/blob/master/lib/cccb/core/bot.rb
senayar has quit [Ping timeout: 260 seconds]
thorn__ has joined #ruby
ukd1 has joined #ruby
optimusprimem has joined #ruby
optimusprimem has quit [Changing host]
optimusprimem has joined #ruby
Ripp__ has quit []
jkamenik has left #ruby [#ruby]
rehat has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<ccooke> (note that there are a few bits of code in that repo which need to be culled. And most of the actual useful stuff hasn't been ported from the old version yet, so it's not actually worthwhile to look at :-)
saarinen has joined #ruby
bklane has quit [Remote host closed the connection]
adeponte has quit [Ping timeout: 245 seconds]
false_economy has joined #ruby
thesheff17 has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 260 seconds]
Advocation has joined #ruby
sarlalian has joined #ruby
nadirvardar has quit [Ping timeout: 260 seconds]
ehc has joined #ruby
<banisterfiend> ccooke would be cool if github had better support for rapgenius style commentaries
ukd1 has quit [Ping timeout: 256 seconds]
<ccooke> banisterfiend: oh? I've not encountered them
<banisterfiend> ccooke never heard of rapgenius?
<ccooke> nope
<Lewix> banisterfiend: you listen to rap?
bigoldrock has quit [Ping timeout: 264 seconds]
<banisterfiend> Lewix no rap genius initially started out as rap lyric commentsries, but has branches out to basically everything now
<banisterfiend> except source code, afaik
sarlalian has quit [Client Quit]
sarlalian has joined #ruby
<ccooke> banisterfiend: sounds like a nice thing
<Lewix> banisterfiend: I agree, that would be nice
spider-mario has joined #ruby
johnjohnson has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
nadirvardar has joined #ruby
yaymukund has quit [Ping timeout: 256 seconds]
<thorn__> hello, does this work? i got something that looks like this, but i cant call the "say" function from the class within a class. Or is this the wrong way do do this?
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<thorn__> or should i use class inheritance?
coderhs has joined #ruby
burlyscudd has quit [Quit: Leaving.]
kaldrenon has joined #ruby
brtdv has joined #ruby
<Morrolan> Outside code is supposed to instantiate Otherclass or Someclass, and call #say on it?
macmartine has joined #ruby
<canton7> thorn__, mixin, or inheritence, would be the usual way to do that
<canton7> or composition, I guess
<Morrolan> If those classes don't share any functionality, but simply provide the same functions, there's no need for inheritance.
<ccooke> thorn__: there's no link from Someclass or Otherclass that would let them access the say method, currently. What you need would depend a lot on the type of features the Hello class was trying to implement
kilophoton has joined #ruby
jerius has joined #ruby
<ccooke> if it's just things like say, you might prefer to use a class method, and then have Someclass use Hello.say("Someclass") (for instance)
mklappst_ has quit [Remote host closed the connection]
<ccooke> it depends entirely on what Hello represents
ewnd9 has quit [Ping timeout: 264 seconds]
grillermo has joined #ruby
<thorn__> i got like 14-ish classes that represent different web-requests, they all have the same initilizer and most will use the "say" method
callenb has left #ruby [#ruby]
<thorn__> the more i think of it, inheritence seems to be the best way to do it
<canton7> if you have 14 different specialisations of a general request object, then yes, sounds like inheritence
ldnunes has quit [Quit: Leaving]
<thorn__> thanks guys for the insight!
adkron has quit [Ping timeout: 264 seconds]
optimusprimem has quit [Ping timeout: 245 seconds]
jerius has quit [Ping timeout: 264 seconds]
flavioribeiro has joined #ruby
Advocation has quit [Quit: Advocation]
flavioribeiro has left #ruby ["Leaving..."]
gyre007 has quit [Read error: Operation timed out]
lukec has joined #ruby
Splourian has joined #ruby
freerobby has quit [Quit: Leaving.]
kayloos has joined #ruby
wicketn00b has joined #ruby
<wicketn00b> Can someone show me a quick way to dump a Struct to csv?
timonv has quit [Remote host closed the connection]
iliketurtles has joined #ruby
alexju_ has quit [Remote host closed the connection]
burlyscudd has joined #ruby
dmiller_ has joined #ruby
iamjarvo has joined #ruby
<onewheelskyward> .each every property joined with a tab?
pushpak has joined #ruby
<onewheelskyward> Stackoverflow seems to think .methods will give you that.
<onewheelskyward> ah or instance_variables: https://www.ruby-forum.com/topic/125410
io_syl has joined #ruby
Splourian has quit [Quit: Leaving]
alexju has joined #ruby
<canton7> first line: Person.members.join(",")
<canton7> oops s/Person/StructType
Velkitor has joined #ruby
<canton7> then structs.map{ |s| s.to_a.join(',') }.join("\n") or something like that
Squarepy has quit [Quit: Leaving]
kidstark has joined #ruby
Falcore has joined #ruby
IceDragon has joined #ruby
dmiller_ has quit [Ping timeout: 276 seconds]
lowcard is now known as fourqq
vlad_starkov has joined #ruby
barratt has joined #ruby
tylersmith has quit [Read error: Connection reset by peer]
vlad_sta_ has quit [Ping timeout: 264 seconds]
asobrasil has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
tylersmith has joined #ruby
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
jmeeuwen has joined #ruby
kil0byte_ has joined #ruby
ldnunes has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
nate___ is now known as _nate
hogeo has quit [Remote host closed the connection]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
noop has joined #ruby
endless_walrus has quit [Quit: Textual IRC Client: www.textualapp.com]
stkowski has joined #ruby
mansi has quit [Remote host closed the connection]
asobrasil has joined #ruby
asobrasil has quit [Max SendQ exceeded]
kil0byte has quit [Ping timeout: 245 seconds]
peregrine81 has quit []
mansi has joined #ruby
selim has quit [Ping timeout: 245 seconds]
Guest43694 has quit [Remote host closed the connection]
|jemc| has quit [Ping timeout: 264 seconds]
angusigu1ss has joined #ruby
<platzhirsch> What exactly does retry inside of a method rescue block? It seems as if the behavior is not as expected, any side effects?
angusiguess has quit [Ping timeout: 245 seconds]
zerun0 has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
geekbri has quit [Ping timeout: 248 seconds]
ukd1 has joined #ruby
<hanmac> platzhirsch: it runs the begin … end block again
P1RATEZ has joined #ruby
intuxicated has joined #ruby
<platzhirsch> hanmac: I am crawling data and sometimes the server gives me timeouts after several requests. This results in an exception so I put the crawler to sleep whereas I double the sleep time everytime, but somehow the application becomes unresponsive and I have no idea what's going on ;)
iamjarvo has quit [Ping timeout: 256 seconds]
<platzhirsch> maybe the HTTP connection is not closed yet something I maybe have to do in the rescue block
jerius has joined #ruby
superscott[8] has joined #ruby
peregrine81 has joined #ruby
Xeago has joined #ruby
nari has quit [Ping timeout: 264 seconds]
oliver_ has joined #ruby
peregrine81 has quit [Client Quit]
rehat has joined #ruby
reset has joined #ruby
lfox has quit [Quit: ZZZzzz…]
burlyscudd has quit [Quit: Leaving.]
peregrine81 has joined #ruby
<wicketn00b> thanks, onewheelskyward and canton7, for the info about dumping structs to CSV.
atno has joined #ruby
Xeago_ has joined #ruby
robertjpayne has quit [Remote host closed the connection]
jprovazn has joined #ruby
ixti has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
ixti has joined #ruby
claymore_ has joined #ruby
thesheff17 has joined #ruby
hamakn has joined #ruby
staafl has joined #ruby
Ripp__ has joined #ruby
jbpros has joined #ruby
AdmiraI has joined #ruby
AllStruck has quit [Quit: ZNC - http://znc.sourceforge.net]
Nilium has quit [Ping timeout: 260 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
Dave has joined #ruby
Dave is now known as Guest48599
optimusprimem has joined #ruby
optimusprimem has quit [Changing host]
optimusprimem has joined #ruby
claymore has quit [Ping timeout: 240 seconds]
codezombie has joined #ruby
EIA has quit [Quit: Page closed]
Bosox20051 has quit [Remote host closed the connection]
Nilium has joined #ruby
EIAC_ has quit [Read error: Connection reset by peer]
EIAC has quit [Read error: Connection reset by peer]
hamakn has quit [Ping timeout: 256 seconds]
oliver_ has quit [Remote host closed the connection]
palaenkar has joined #ruby
oliver_ has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
jerius has quit [Ping timeout: 276 seconds]
epta_ has quit [Ping timeout: 245 seconds]
girija has quit [Ping timeout: 264 seconds]
banghouse2 has joined #ruby
rdark has quit [Quit: leaving]
froy has joined #ruby
jerius has joined #ruby
<palaenkar> i need to find how how to tell what is after the letter "r" in every word of a string. can someone help?
rcosta has quit [Remote host closed the connection]
kidstark has left #ruby [#ruby]
Xeago_ has quit [Remote host closed the connection]
jdeeburke has joined #ruby
jdeeburke has quit [Max SendQ exceeded]
parzo has quit [Ping timeout: 260 seconds]
jbpros has quit [Ping timeout: 256 seconds]
jdeeburke has joined #ruby
axl_ has joined #ruby
jdeeburke has left #ruby [#ruby]
Xeago_ has joined #ruby
<bean__> >> "My String Containing the letter R".index("r").next
<eval-in> bean__ => 6 (https://eval.in/49025)
<bean__> bah
Xeago_ has quit [Read error: Connection reset by peer]
<Velkitor> .match(/r(\w)/)[1]
<palaenkar> thank you xD
<Velkitor> might need to do a scan if you want multiple matches
|jemc| has joined #ruby
rcosta has joined #ruby
<palaenkar> i'm learning ruby and it's for an exercise, i've looked on ruby string. but couldn't find a method
lfox has joined #ruby
Xeago_ has joined #ruby
<Eiam> >>"My string contains multiple r's okay right?".index("r")
Xeago_ has quit [Remote host closed the connection]
<eval-in> Eiam => 5 (https://eval.in/49026)
<Velkitor> well you would just enhance your regex
<Velkitor> play around in http://regexpal.com/
<bean__> >> str = "My String Containing the letter R"; str[str.index("r").next]
<eval-in> bean__ => "i" (https://eval.in/49027)
Xeago_ has joined #ruby
<hanmac> Velkior there are more funnier things than the match method ;P
<palaenkar> thanks for the all the help, i'll look at some of those links now xD
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ssvo_ has joined #ruby
<hanmac> >>"My String Containing the letter R"[/[rR](\w)/,1]
<eval-in> hanmac => "i" (https://eval.in/49028)
optimusprimem has quit [Ping timeout: 245 seconds]
<Eiam> hanmac: you..
<Eiam> that obscures intent imo and therefore is bad =p
ssvo has quit [Ping timeout: 264 seconds]
<Eiam> it an array like accessor thats dropped a regex inside of it. boo
<Eiam> clever, but boo.
iamjarvo has joined #ruby
huoxito has quit [Quit: Leaving]
<hanmac> Eiam did you know that it works for symbols too?
<Velkitor> r(?!r)(\w) is probably the regex you are loping for
<Velkitor> looking even
<Eiam> hanmac: no, I try to stay away from the more clever parts of ruby
<hanmac> >> :abc[/(b)/,1]
<eval-in> hanmac => "b" (https://eval.in/49029)
sayan has quit [Ping timeout: 264 seconds]
end_guy has joined #ruby
<banisterfiend> hanmac you know what 'funnier' means right?:)
<banisterfiend> hanmac it doesn't mean 'more fun' (as may frenchmen i've spoken to in the past think it means) ;)
Xeago_ has quit [Ping timeout: 256 seconds]
codecop has joined #ruby
agjacome has joined #ruby
momomomomo has joined #ruby
mklappstuhl has quit [Remote host closed the connection]
Guest48599 has quit [Quit: Leaving...]
<hanmac> banisterfiend: it depends … its more fun for me ;P
<banisterfiend> hanmac it actually means 'more humorous' (i.e makes you laugh)
<BraddPitt> is it convention to explicitly add return at the end of a method
<banisterfiend> BraddPitt no
<BraddPitt> or just simply the variable you are returning
<banisterfiend> BraddPitt it's convention not to
<banisterfiend> right :)
<BraddPitt> fucking ruby man
<BraddPitt> ┐(‘~`;)┌
<banisterfiend> the variable or the value
<BraddPitt> why not use return
<banisterfiend> BraddPitt not just ruby, nearly every functional language works like this too.
* hanmac still uses return sometimes at the end when i think its nessary
<banisterfiend> BraddPitt Just ruby showing its functional influence.
<BraddPitt> ( ≖‿≖)
rcosta has quit [Remote host closed the connection]
kofno has joined #ruby
<Eiam> I use it sometimes
<BraddPitt> hanmac example of ``when necessary'' please?
<banisterfiend> BraddPitt: it's a good thing. You can put it if you want, but it's totally not necessary
<Eiam> but mostly cause I fuck up JS by not adding it
<banisterfiend> BraddPitt when you want to return early, then it's necessary
<BraddPitt> ah right
<banisterfiend> BraddPitt it's a result of 'everything is an expression'
adkron has joined #ruby
joaoh82 has joined #ruby
f0ster has joined #ruby
carraroj has joined #ruby
sayan has joined #ruby
<hanmac> banisterfiend: ok it seems i dont do it always like you can see there: https://github.com/OpenRubyRMK/game-engine/tree/master/data/scripts/2.0
Es0teric has joined #ruby
dhruvasagar has joined #ruby
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tvw has quit []
superscott[8]_ has joined #ruby
ferdev has quit [Quit: ferdev]
miah_ is now known as miah
camilasan has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
superscott[8] has quit [Ping timeout: 264 seconds]
superscott[8]_ is now known as superscott[8]
interactionjaxsn has joined #ruby
havenwood has quit [Remote host closed the connection]
ylluminate has joined #ruby
javierbuilder has joined #ruby
javierbuilder has quit [Max SendQ exceeded]
havenwood has joined #ruby
brtdv has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
burlyscudd has joined #ruby
adkron has quit [Quit: leaving]
interactionjaxsn has quit [Ping timeout: 264 seconds]
Maokomioko has joined #ruby
flowerhack_ has joined #ruby
<banisterfiend> BraddPitt really though, after ruby, you'll start to find languages that have the statement/expression dichotomy really artificial and annoying.
<sirfilip> night guys
<BraddPitt> i reckon
sirfilip has quit [Quit: Leaving]
freerobby has joined #ruby
kindjal has joined #ruby
Falcore has quit [Quit: Falcore]
cmarques_ has quit [Ping timeout: 257 seconds]
hakunin has joined #ruby
DanKnox_away is now known as DanKnox
freerobby has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
cmarques has joined #ruby
apeiros has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
sayan has quit [Quit: Leaving]
sayan has joined #ruby
alvaro_o has joined #ruby
jerius has quit []
wmoxam has joined #ruby
stkowski has quit [Ping timeout: 264 seconds]
P1RATEZ has quit []
carraroj has quit [Ping timeout: 276 seconds]
nomenkun has joined #ruby
freerobby has joined #ruby
chrishough has joined #ruby
sambao21 has joined #ruby
ixti has quit [Read error: Connection reset by peer]
ixti has joined #ruby
dross_ is now known as dross
FDj_ is now known as FDj
zarubin has quit [Ping timeout: 246 seconds]
snovak_ has joined #ruby
yaymukund has joined #ruby
c0rn has joined #ruby
snovak has quit [Ping timeout: 246 seconds]
dash_ has quit [Ping timeout: 264 seconds]
_adeponte has quit [Remote host closed the connection]
T_T has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
interactionjaxsn has joined #ruby
tomsthumb has joined #ruby
dash_ has joined #ruby
yacks has joined #ruby
ehaliewicz has joined #ruby
noop has quit [Ping timeout: 245 seconds]
Ox6abe has joined #ruby
jerius has joined #ruby
jaimef_ has quit [Excess Flood]
ta has quit [Remote host closed the connection]
tacit7 has quit [Ping timeout: 245 seconds]
tacit7_ has joined #ruby
burlyscudd has quit [Quit: Leaving.]
Maokomioko has quit [Quit: Textual IRC Client: www.textualapp.com]
postmodern has joined #ruby
epta has joined #ruby
Daemoen has quit [Ping timeout: 259 seconds]
zerun0 has quit [Read error: Operation timed out]
Xanderby has joined #ruby
browndawg has quit [Quit: Leaving.]
jaimef has joined #ruby
carraroj has joined #ruby
kilophoton has quit [Ping timeout: 260 seconds]
chrishough has quit [Quit: chrishough]
ferdev has joined #ruby
zerun0 has joined #ruby
Nanuq has joined #ruby
Seich_ has quit [Quit: Computer has gone to sleep.]
ananthakumaran has quit [Quit: Leaving.]
ferdev has quit [Client Quit]
<onewheelskyward> oh man lol
<onewheelskyward> I was wondering why r
hydrozen has joined #ruby
platzhirsch has left #ruby [#ruby]
adeponte has joined #ruby
<palaenkar> lol exactly
carraroj has quit [Ping timeout: 256 seconds]
<palaenkar> it's an exercise for the class i'm in
mlpinit_ has joined #ruby
mlpinit has quit [Ping timeout: 248 seconds]
grillermo has quit [Quit: bandtastic.me]
<palaenkar> just need some pointers from you experienced nit pickers
<hanmac> palaenkar: str.scan(/r(\w)/i).join
<waxjar> Have a look at the documentation for String :)
<Eiam> I kind of wish I didn't have to constantly check for the existence of an attribute before I checked it if was empty
<Eiam> >> {"hello"=>"world"}["sup"].empty?
<eval-in> Eiam => undefined method `empty?' for nil:NilClass (NoMethodError) ... (https://eval.in/49035)
<Eiam> yeah.. it should just say yeah sure, its empty.
<Eiam> any operation that would evaluate to a bool should just go on down instead of raising
theRoUS has quit [Ping timeout: 276 seconds]
<waxjar> def NilClass.method_missing(*args); return nil; end >:)
<Eiam> haha someone would probably be upset at me for doing that
chrishough has joined #ruby
<waxjar> using refinements you can kinda get away with it
<hanmac> waxjar hm it should be def nil.method_missing
apeiros has joined #ruby
<hanmac> otherwise it would be a class method
<Eiam> am I crazy for wanting that?
<waxjar> ah, of course
<Eiam> I tire of constantly checking to see if something exists, then checking to see if the value inside of it is usable
solars has joined #ruby
ran-tan50 has quit [Ping timeout: 264 seconds]
<waxjar> it's called a null object, i quite like it
false_economy has quit [Remote host closed the connection]
leehambley has quit [Ping timeout: 264 seconds]
Monie has joined #ruby
Falcore has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
cj3kim_ has joined #ruby
rcosta has joined #ruby
<hanmac> Eiam show us a piece of your code, and mybe we found a way to use it without empty?
Lewix has joined #ruby
tvw has joined #ruby
<Eiam> hanmac: I did.. If this object exists, if this object has this attribute, if this object has this attribute and its not empty/nil
<Eiam> I'm just going to write a helper
leehambley has joined #ruby
<Eiam> and I'll call it do_i_care?(object)
RichardBaker has quit [Quit: RichardBaker]
<hanmac> you can do if obj = hash[key]; obj.func; end
fcahoon has joined #ruby
cj3kim_ has quit [Ping timeout: 245 seconds]
<waxjar> ew, assignment in if statements :P
adeponte has quit [Remote host closed the connection]
<Eiam> =p
<banisterfiend> waxjar i do that all the time, it's k00
<banisterfiend> it's a C programmer's thing ;)
<Eiam> is there a way to tell pry to stop catching on my binding.pry
SloggerKhan has joined #ruby
dkamioka_ has joined #ruby
<banisterfiend> Eiam disable-pry
<Eiam> e.g. I'm in a loop, i've found out the problem, now I want execution to continue and ignore the remaining binding.pry in this loop
<Eiam> instead of pressing "c" 20 more times
<banisterfiend> it's a command, it turns off pry for the rest of the program
<hanmac> yeah the all mighty C … the nitro in ruby gems ;D
JohnBat26 has quit [Ping timeout: 245 seconds]
<waxjar> i wish i was a C wizard
dkamioka has quit [Ping timeout: 260 seconds]
<Eiam> banisterfiend: and then enable-pry after?
<apeiros> I wish somebody helped me become a C wizard
shaunbaker has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
<banisterfiend> Eiam no, you can't re-enable for that session
<Eiam> banisterfiend: oh.. bummer. so I might as well just call exit!
<apeiros> that said, Beoran_ actually started helping me, and then lack of time happened :(
n_blownapart has joined #ruby
<banisterfiend> Eiam i mean if pry doesn't start up again, how can you get in a position to call reenable-pry ? :)
<Eiam> apeiros: I wish I didn't spent my first 4 years of programming doing C++! =)
<Eiam> banisterfiend: lol, well you understand my use case right?
<banisterfiend> Eiam exit! will end the whole program, disable-pry just kills pry but the program still runs
<banisterfiend> Eiam just do this: binding.pry if $blah
<hanmac> apeiros: i think to become a C Wizard you need first become an B Wizard Lvl 20 before you can change the job ;D
<banisterfiend> Eiam and set $blah to false inside pry
<Eiam> banisterfiend: oh, clever.
<apeiros> hanmac: I don't think B is in use anymore anywhere :)
<Eiam> thats a good kind of clever, I like it. thanks
<Eiam> long live D ?
<SloggerKhan> I'm new to ruby and have what I'm sure is a fairly stupid question, bit given this example class: http://pastebin.com/Jmm9Mmsb, why is there a syntax error because of putting in "@fields(data)" in the write method?
<banisterfiend> Eiam wants the D
<Eiam> =0
<hanmac> SloggerKhan: use []
Minos__ has quit [Ping timeout: 248 seconds]
<banisterfiend> SloggerKhan what is @fields ?
joaoh82 has quit [Remote host closed the connection]
<hanmac> ups i was wrong
<Ox6abe> Anyone have any idea about running a clojure.clj file from rake?
carlyle has joined #ruby
<banisterfiend> SloggerKhan oh just call fields(data)
<banisterfiend> don't call @fields
<banisterfiend> SloggerKhan you mean doing coffee script? :P
<banisterfiend> been*
jinie has quit [Ping timeout: 264 seconds]
<banisterfiend> going back and forth between coffee-script and ruby can cause you to make that error, SloggerKhan ;)
<SloggerKhan> oh, I get it, yes, I have been doing a lot of javascript and coffeescript lately.
makerbreaker has joined #ruby
<SloggerKhan> But being new to ruby doesn't help
<banisterfiend> well that's only a coffee script issue
<banisterfiend> CS uses @vars as well, but methods in coffee script are actually use anonymous functions assigned to @vars
<banisterfiend> whereas in ruby methods are a separate thing altogethe
<banisterfiend> r
<banisterfiend> i also have th problem of calling fields(data) in CS instead of @fields(data) ;)
jinie has joined #ruby
rcosta_ has joined #ruby
marius has joined #ruby
<SloggerKhan> Big thanks. I guys. I knew was doing something very noob. :p
<SloggerKhan> *Big thanks guys.
moli has quit [Read error: Connection reset by peer]
moli has joined #ruby
<banisterfiend> hanmac is 'ups' the german way of saying 'oops' ?
a1ph4g33k has joined #ruby
rcosta has quit [Ping timeout: 264 seconds]
vlad_sta_ has joined #ruby
mklappstuhl has joined #ruby
* Morrolan nods
agent_white has joined #ruby
ta has joined #ruby
julweber has joined #ruby
<hanmac> banisterfiend: yeah something like that (it even sounds similar)
<banisterfiend> hanmac cool, new adventure time is out :D
<banisterfiend> hanmac you've seen it? "the vault"
<hanmac> hm not yet … i will *get* it at week end
Collin_ has quit [Ping timeout: 260 seconds]
vlad_sta_ has quit [Read error: Operation timed out]
BadQuanta has joined #ruby
vlad_starkov has quit [Ping timeout: 264 seconds]
adeponte has joined #ruby
wildroman has quit [Remote host closed the connection]
mklappstuhl has quit [Ping timeout: 264 seconds]
decoponio has quit [Quit: Leaving...]
vlad_starkov has joined #ruby
justsee has joined #ruby
justsee has joined #ruby
julweber has quit [Ping timeout: 245 seconds]
kreisys has joined #ruby
kindjal has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
adeponte has quit [Remote host closed the connection]
daveops_ is now known as daveops
kirun has joined #ruby
daveops is now known as Guest94965
fcahoon has quit [Quit: Leaving]
selim has joined #ruby
rcosta_ has quit [Read error: No route to host]
tatsuya_o has joined #ruby
<hanmac> hm first i need to watch the other ones before (there are some missing) … i will watch them all at the Weekend in the currect quality
|jemc| has quit [Ping timeout: 245 seconds]
rcosta has joined #ruby
Guest94965 is now known as daveops
jonkri has joined #ruby
RangerMauve has joined #ruby
<RangerMauve> Hey, any idea where gems are installed on Windows?
vlad_starkov has quit [Ping timeout: 264 seconds]
mdst has joined #ruby
banghouse2 has quit [Remote host closed the connection]
dkamioka has joined #ruby
<RangerMauve> Oup, nevermind. Found em.
mdst3 has quit [Read error: Connection reset by peer]
kidstark has joined #ruby
skaflem has quit [Quit: Leaving]
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
obs has joined #ruby
fomatin has joined #ruby
<hanmac> RangerMauve: did they bastards hide under your carpet? ;D
erichmenge has quit [Ping timeout: 245 seconds]
dkamioka_ has quit [Ping timeout: 264 seconds]
trinode_away has quit [Ping timeout: 256 seconds]
iliketurtles has quit [Quit: zzzzz…..]
<RangerMauve> hanmac: Even worse, they apparently install into some subdirectory in my Ruby install instead of my %APPDATA%\Roaming folder as they should be.
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tris has quit [Ping timeout: 260 seconds]
tr4656 has quit [Ping timeout: 245 seconds]
<apeiros> RangerMauve: `gem env`
Asher has quit [Quit: Leaving.]
zmansiv has quit [Ping timeout: 268 seconds]
sethetter has quit [Ping timeout: 245 seconds]
Guest19968 has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Read error: Operation timed out]
<RangerMauve> apeiros: Aha! Thank you.
micah` has quit [Ping timeout: 246 seconds]
tacos1de has quit [Ping timeout: 240 seconds]
<RangerMauve> I haven't used Ruby in ages so I'm just remembering stuff now.
_nate has quit [Ping timeout: 248 seconds]
dankest has joined #ruby
kidstark has left #ruby [#ruby]
jericon has quit [Ping timeout: 260 seconds]
<apeiros> also I think there's an option to install verbosly, which prints paths. not sure though.
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
<RangerMauve> Maybe a -v argument?
_nate has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
jericon has joined #ruby
<apeiros> well, `gem help install` can probably tell you ;-)
x0nic has quit [Ping timeout: 240 seconds]
<RangerMauve> It's -V with a capital, apparently
davidcelis has quit [Ping timeout: 245 seconds]
Ox6abe has quit [Remote host closed the connection]
aaroncm_ has joined #ruby
m8 has joined #ruby
froy has quit [Ping timeout: 260 seconds]
aaroncm has quit [Ping timeout: 276 seconds]
Guest19968 has joined #ruby
trinode_away has joined #ruby
tr4656 has joined #ruby
zmansiv has joined #ruby
erichmenge has joined #ruby
trinode_away is now known as trinode
kofno has quit [Ping timeout: 260 seconds]
x0nic has joined #ruby
RangerMauve has quit [Quit: Page closed]
micah` has joined #ruby
Voodoofish430 has quit [Ping timeout: 264 seconds]
palaenkar has quit [Quit: Leaving]
blackmesa has joined #ruby
tacit7_ has quit [Read error: Connection reset by peer]
weirdpercent has joined #ruby
schaerli has quit [Remote host closed the connection]
mlpinit_ has quit [Remote host closed the connection]
marius has quit [Remote host closed the connection]
Collin_ has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Excess Flood]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
kofno has joined #ruby
hydrozen has quit [Quit: Computer has gone to sleep.]
<weirdpercent> hello, what's the syntax for appending to a hash instead of replacing what it contains with a new k/v pair?
grillermo has joined #ruby
grillermo has quit [Client Quit]
Voodoofish430 has joined #ruby
tris has joined #ruby
hydrozen has joined #ruby
aaronmcadam has joined #ruby
<apeiros> weirdpercent: a) that's not syntax but method calls, b) there's no method to do that directly
<apeiros> weirdpercent: you have to delete the key and add it again
false_economy has joined #ruby
vlad_starkov has joined #ruby
tacit7 has joined #ruby
mando has quit [Remote host closed the connection]
<hanmac> weirdpercent: there is a hash.replace function but it replace the entire hash
<hanmac> there is a update function but it does not remove an old key
pel_daniel has left #ruby [#ruby]
shaunbaker has quit [Remote host closed the connection]
<weirdpercent> nvm, I think I got it now: hash[key]=val appended to the hash
<apeiros> weirdpercent: no it does not. only for not yet existing keys.
n_blownapart has quit [Remote host closed the connection]
<apeiros> >> h = {a: 1, b: 2}; h[:a] = 3; h
<eval-in> apeiros => {:a=>3, :b=>2} (https://eval.in/49039)
<weirdpercent> yeah, I have non-existent keys I wanted to add
claymore_ has quit [Quit: Leaving]
ta has quit [Ping timeout: 256 seconds]
burlyscudd has joined #ruby
<apeiros> weirdpercent: you have a very weird way to ask then… "instead of replacing what it contains" makes little sense for "does not yet exist".
troessner has quit [Quit: Leaving]
robustus has quit [Ping timeout: 264 seconds]
mlpinit has joined #ruby
<weirdpercent> k sorry, I tried @hash={key => val} first and it wiped out/replaced the previous k/v
<weirdpercent> anyway, thank you much. :)
mlpinit has quit [Remote host closed the connection]
robustus has joined #ruby
<apeiros> of course. that assigns a completely new hash.
<hanmac> he can use h[key] ||= value or use the upate method in reverse (like new_keys.update(old_keys) )
<weirdpercent> hehe oops
<apeiros> hanmac: that does not append
mlpinit has joined #ruby
<apeiros> but then again, maybe he just meant "insert", and not "append"
jonahR has joined #ruby
<weirdpercent> what's the diff between insert and append?
julweber has joined #ruby
<apeiros> append means "at the end"
<apeiros> whereas insert is indifferent to the ordering
<weirdpercent> k that's what I thought
<weirdpercent> append has the word "end" in it
weirdpercent has quit [Quit: Leaving]
<banisterfiend> apeiros what's up, I'm bored. Are you getting gta5 bb?
Alina-malina has quit [Read error: Connection reset by peer]
Monie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ukd1 has quit [Remote host closed the connection]
<apeiros> banisterfiend: nope. still got skyrim and bf3 unplayed, and haven't finished anno2070, assassins creed III, and final fantasy 7
Alina-malina has joined #ruby
zodiak has quit [Read error: Connection reset by peer]
kofno has quit [Ping timeout: 264 seconds]
bigoldrock has joined #ruby
ukd1 has joined #ruby
<banisterfiend> ups
adeponte has joined #ruby
benlieb has quit [Quit: benlieb]
iliketurtles has joined #ruby
reset has quit [Quit: Leaving...]
ta has joined #ruby
barratt has quit [Quit: Leaving...]
solars has quit [Ping timeout: 256 seconds]
undirected51 has joined #ruby
kidstark has joined #ruby
kilophoton has joined #ruby
burlyscudd has quit [Ping timeout: 260 seconds]
_adeponte has joined #ruby
intuxicated has quit [Remote host closed the connection]
cody-- has quit [Quit: derp]
adeponte has quit [Read error: Connection reset by peer]
johnjohnson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lemonsparrow has quit [Ping timeout: 250 seconds]
shaunbaker has joined #ruby
mansi has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
mansi_ has joined #ruby
digital-ghost has joined #ruby
shaunbaker has quit [Remote host closed the connection]
intuxicated has joined #ruby
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
johnjohnson has joined #ruby
brbcoding has quit []
mansi_ has quit [Read error: Connection reset by peer]
mansi has joined #ruby
corpuscle has joined #ruby
brtdv has joined #ruby
Falcore has quit [Quit: Falcore]
jaimef has quit [Excess Flood]
brtdv has quit [Client Quit]
benlieb has joined #ruby
end_guy has quit [Ping timeout: 240 seconds]
hanmac has quit [Quit: Leaving.]
m00nlight has quit [Quit: Konversation terminated!]
jaimef has joined #ruby
sambao21 has quit [Ping timeout: 256 seconds]
hydrozen has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
kreisys has quit [Quit: Computer has gone to sleep.]
P1RATEZ has joined #ruby
RDash is now known as RDash[AW]
end_guy has joined #ruby
burlyscudd has joined #ruby
agjacome has quit [Quit: leaving]
mengu has joined #ruby
hydrozen has joined #ruby
_adeponte has quit [Remote host closed the connection]
nomenkun has quit [Remote host closed the connection]
kidstark has left #ruby [#ruby]
forced_request has joined #ruby
elaptics`away is now known as elaptics
Bira has joined #ruby
krawchyk has quit [Remote host closed the connection]
brtdv has joined #ruby
nuclearblast is now known as sebastianb
bigoldrock has quit [Ping timeout: 245 seconds]
relix has joined #ruby
pkrnj has joined #ruby
Bira_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
cody-- has joined #ruby
justsee has joined #ruby
vlad_starkov has joined #ruby
kofno has joined #ruby
wildroman has joined #ruby
kreisys has joined #ruby
reset has joined #ruby
snovak_ has quit [Remote host closed the connection]
Bira has quit [Ping timeout: 264 seconds]
snovak has joined #ruby
benlieb has quit [Quit: benlieb]
maasha has joined #ruby
dmiller__ has joined #ruby
angusigu1ss has quit [Ping timeout: 245 seconds]
axiak has joined #ruby
axiak has left #ruby [#ruby]
Ripp__ has quit []
tacos1de has joined #ruby
optimusprimem has joined #ruby
optimusprimem has quit [Changing host]
optimusprimem has joined #ruby
tjad has quit [Ping timeout: 264 seconds]
Targen_ has joined #ruby
jnoob22 has joined #ruby
Targen has quit [Ping timeout: 264 seconds]
RichardBaker has joined #ruby
ehc has quit [Ping timeout: 276 seconds]
T_T has joined #ruby
dmiller__ has quit [Ping timeout: 248 seconds]
codecop has quit [Quit: Išeinu]
burlyscudd has quit [Quit: Leaving.]
tyman has quit [Quit: tyman]
sethetter has joined #ruby
jdeeburke has joined #ruby
bigoldrock has joined #ruby
Targen has joined #ruby
Targen_ has quit [Ping timeout: 245 seconds]
jdeeburke has left #ruby [#ruby]
<maasha> hi
mando has joined #ruby
karlfreeman has quit [Ping timeout: 260 seconds]
<maasha> what is "\x00" ? hexadecimal representation of 0 ?
tjbiddle has joined #ruby
<maasha> I forgot and google is not helping.
<crowell> maasha: essentially
<apeiros> yes, \xHH is a hex escape
<crowell> so, because not all characters can be printed
ta has quit [Remote host closed the connection]
<crowell> you need a way to represend them in a string
ehc has joined #ruby
kofno has quit [Ping timeout: 264 seconds]
<maasha> OK, so if I want to print numbers 0 .. 255 like that, then I do what?
chopmo has quit [Remote host closed the connection]
<crowell> (0..255).each{|ii}| puts ii}
<crowell> or do you want to print the hex values?
<maasha> the hex values
<crowell> (0..255).each{|ii| puts ii.to_s(16)}
<maasha> in the escaped format.
funburn has joined #ruby
platzhirsch has joined #ruby
<crowell> (0..255).each{|ii| puts "\\x" + ii.to_s(16)}
<platzhirsch> Do you think this is a reasonable way to deal with API overload (the rescue block) https://gist.github.com/platzhirsch/3665efbf7aa6525b4da6 really not sure about this :/
Notte has joined #ruby
Velkitor has quit [Quit: Velkitor]
<maasha> crowell: so "\x0" is the same as "\x00"?
<Rylee> platzhirsch, for one #{sleep} is nothing
karlfreeman has joined #ruby
<Rylee> shouldn't it be retry in #{@timeout}
<platzhirsch> Rylee: oh, thanks for the hint. For some reasons I never get the log messages there
<crowell> maasha: no, it isn't, you want to do .to_s(16).rjust(2, '0')
<Rylee> also, a cap on the number of times possible (an arbitrary cap of 10 should be good) might be a good idea
<platzhirsch> oh
<platzhirsch> sleep without an argument is sleep for infinity
<crowell> maasha: that will force it to pritn with leading 0 if it needs padding
<Rylee> lol
Bira_ has quit [Remote host closed the connection]
<crowell> maasha: is that what you wanted?
tabolario has joined #ruby
<platzhirsch> you found the major bug in my harvester, I couldn't explain the whole behavior
<platzhirsch> this is so silly...
<shevy> hehe
<maasha> crowell: right. I was getting that from sprintf normally :o). I want to use tr to convert some chars to a bitmap. my_dna_string.tr("ATCG", "\x01\x02\x03\x04") - I think that is allowed.
huoxito has joined #ruby
<platzhirsch> so because of the variable typo in my log message I put the harvester to sleep forever and really wondered where it get stuck...
Lewix has quit [Remote host closed the connection]
<crowell> maasha: please explain more what you are trying to do
<crowell> I am a bit comfused
sniffingcats has joined #ruby
undirected51 has quit [Quit: undirected51]
dodosan has quit [Remote host closed the connection]
<maasha> crowell: oh, it seems to work nicely. I am working with ambiguity codes in dna to do sort of redundant matching -> http://en.wikipedia.org/wiki/Nucleic_acid_notation
<platzhirsch> Rylee: So hilarious, thank you very much for taking a lookg and yes, I should definitely cap the timeout. I find the whole implementation problematic because you never now if there is another problem with endpoint and if this infinite loop is a good way
<maasha> crowell: I am OK now. Thanks.
<crowell> maasha: ok, no problem :)
havenn has quit [Remote host closed the connection]
<maasha> crowell: I can convert DNA strings to bit strings and use NArray to calculate hammind distance with & operations. Super fast.
<maasha> *hamming
tacit7 has quit [Ping timeout: 245 seconds]
havenwood has joined #ruby
bigoldrock has quit [Ping timeout: 264 seconds]
tacit7 has joined #ruby
phantasm66 has quit [Quit: *poof*]
RORgasm_ is now known as RORgasm
smyrna16 has joined #ruby
chrishough has quit [Quit: chrishough]
kofno has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
xibalba has joined #ruby
Teddy2steper has joined #ruby
Teddy2st_ has joined #ruby
ksh has quit [Ping timeout: 240 seconds]
Teddy2st_ has quit [Remote host closed the connection]
bigoldrock has joined #ruby
pushpak has quit [Ping timeout: 256 seconds]
brianpWins has joined #ruby
kilophoton has quit [Ping timeout: 264 seconds]
iamjarvo has quit [Remote host closed the connection]
sayan has quit [Ping timeout: 264 seconds]
platzhirsch has left #ruby [#ruby]
iamjarvo has joined #ruby
Teddy2st_ has joined #ruby
BadQuanta has quit [Ping timeout: 260 seconds]
Teddy2st_ has quit [Remote host closed the connection]
Squarepy has joined #ruby
evenix has quit [Remote host closed the connection]
Teddy2steper has quit [Ping timeout: 245 seconds]
intuxicated has quit [Remote host closed the connection]
mansi_ has joined #ruby
mansi has quit [Read error: Connection reset by peer]
pskosinski__ has joined #ruby
Asher has joined #ruby
pskosinski__ has quit [Read error: Connection reset by peer]
Xeago has quit [Read error: Connection reset by peer]
acrussell has quit [Quit: Leaving.]
iamjarvo has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
<Beoran_> crowell, look at bioruby as well
workmad3 has joined #ruby
xibalba has left #ruby ["Textual IRC Client: www.textualapp.com"]
<a1ph4g33k> anybody have a good list of confs coming up in the next 6 months or so ? I know of RubyConf, RogueRails, & Cascadia Ruby ... ?
sniffingcats has quit [Ping timeout: 256 seconds]
_maes_ has joined #ruby
kil0byte_ has quit [Remote host closed the connection]
<banisterfiend> a1ph4g33k are you RubyPanther ?
<duggiefresh> Beoran_: There's Wicked Good Ruby (Boston) in October and Nickel City Ruby (Buffalo) this weekend.
freerobby has quit [Quit: Leaving.]
<duggiefresh> whoops... ^ a1ph4g33k
cj3kim has joined #ruby
<a1ph4g33k> banisterfiend: nope.
<a1ph4g33k> duggiefresh: Thanks.
<a1ph4g33k> Just found a good list on Lanyrd.com
kaldrenon has quit [Remote host closed the connection]
Lewix has joined #ruby
ksh has joined #ruby
Xanderby has quit [Quit: Xanderby]
sarkis has quit [Ping timeout: 245 seconds]
jalcine has quit [Read error: Connection reset by peer]
spider-mario has quit [Remote host closed the connection]
RichardBaker has quit [Quit: RichardBaker]
kreisys has quit [Quit: Computer has gone to sleep.]
<a1ph4g33k> banisterfiend: why do you ask ?
cj3kim has quit [Ping timeout: 264 seconds]
<banisterfiend> a1ph4g33k just a misunderstanding, don't worry :)
RichardBaker has joined #ruby
workmad3 has quit [Quit: Lost terminal]
workmad3 has joined #ruby
RichardBaker has quit [Client Quit]
Xanderby has joined #ruby
<a1ph4g33k> banisterfiend: not a problem ... just curious.
<banisterfiend> a1ph4g33k also i hadn't seen you here before, so i figured you were an old-timer who'd just changed their nick :)
kofno has quit [Ping timeout: 256 seconds]
cody-- has quit [Quit: derp]
ner0x has quit [Quit: Leaving]
chopmo has joined #ruby
<a1ph4g33k> You haven't. I am an old timer ... been using ruby for about 10 years now ... but am trying to do more for ruby in general these days ...
<banisterfiend> a1ph4g33k oh, new to #ruby ?
Trudko has quit [Remote host closed the connection]
<a1ph4g33k> Have used it for a lot of projects within my work ... but haven't done much to help OSS projects & such. I do teach it a bit to coworkers and such, but not much else so far.
<a1ph4g33k> yeah.
<banisterfiend> cool
iamjarvo has joined #ruby
rehat has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 256 seconds]
<a1ph4g33k> so ... going to try to hang out in here more often & help where I can ...
leonidlm has joined #ruby
allaire has quit [Ping timeout: 245 seconds]
<banisterfiend> a1ph4g33k are you familiar with #ruby-lang too?
<a1ph4g33k> just had a little patch I did to Gruff accepted & merged yesterday ... quite pleased ... not that the work was amazing, but ... that it was acepted.
DanKnox is now known as DanKnox_away
mikepack has quit [Remote host closed the connection]
<a1ph4g33k> I am ... haven't spent much time in there ... ( but I should ).
mark_locklear has quit [Quit: Leaving]
<banisterfiend> a1ph4g33k cool, is ruby your primary language?
emmanuelux has joined #ruby
<a1ph4g33k> these days yes.
duggiefresh has quit [Remote host closed the connection]
<a1ph4g33k> I've also done, java, c, c++, erlang, perl, php, & python ... and dabble with scheme & lua.
freerobby has joined #ruby
fourqq has quit [Ping timeout: 245 seconds]
<a1ph4g33k> but most of the time I don't need anything other than ruby ...
<a1ph4g33k> my current big project is a distributed job system & metrics system that I use for load testing.
ldnunes has quit [Quit: Leaving]
<a1ph4g33k> which I'm hoping to get to open up on GitHub as soon as I get things finished and packaged up so I can separate company sensitive bits out from the generic framework.
<a1ph4g33k> ... but I'm hogging the channel so ... I'll quiet down =)
bnagy_ is now known as bnagy
danman has joined #ruby
carlyle has quit [Remote host closed the connection]
tacit7 has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
dodosan has joined #ruby
dodosan has quit [Remote host closed the connection]
justsee has quit [Ping timeout: 256 seconds]
dodosan has joined #ruby
thecodethinker has joined #ruby
nomenkun has joined #ruby
<thecodethinker> what does the =~ operator do?
<onewheelskyward> Searches by regexp.
froy has joined #ruby
<thecodethinker> oh okay
clov3r has quit [Remote host closed the connection]
<thecodethinker> that's an oddly specific operator...
<onewheelskyward> >> "abc" =~ /b/
<eval-in> onewheelskyward => 1 (https://eval.in/49048)
<pontiki> how is that oddly specific?
<onewheelskyward> It dates back to the Perl days.
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
<pontiki> yes?
<thecodethinker> onewheelskyward: ah that makes sense.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> thecodethinker: it's actually not an operator, but a method
mercwithamouth has quit [Ping timeout: 276 seconds]
<thecodethinker> can you write infix methods like that in ruby?
<apeiros> obviously. but not all method names qualify.
dmiller__ has joined #ruby
ta has joined #ruby
fomatin has quit [Quit: Computer has gone to sleep.]
yllox has joined #ruby
funburn has quit [Quit: funburn]
sailias has quit [Quit: Leaving.]
clov3r has joined #ruby
barratt has joined #ruby
<apeiros> some method names which do qualify: +, -, *, /, ==, >, <, >=, <=, <=>
<thecodethinker> huh.... I guess I'll look that up one of these days
fomatin has joined #ruby
fomatin has quit [Client Quit]
Advocation has joined #ruby
<thecodethinker> so symbol only names?
<apeiros> (and yes, that means those are all actually implemented as methods)
Falcore has joined #ruby
<apeiros> can't phrase it that way, no. because [] doesn't qualify.
<bnagy> >> a='foo'; class << a; def + other; self << other; end; end; a + 'bar'
<eval-in> bnagy => "foobar" (https://eval.in/49049)
<apeiros> but [] too has special syntax.
<apeiros> (same for []=)
fgo has joined #ruby
DanKnox_away is now known as DanKnox
rcosta has quit [Remote host closed the connection]
ylluminate has quit [Read error: Connection reset by peer]
barratt has quit [Read error: Connection reset by peer]
barratt has joined #ruby
fgo has quit [Remote host closed the connection]
<bnagy> which is a bit wack because that's what string + does already, but I'm still drinking my first coffee :)
<apeiros> bnagy: um, no
nomenkun has quit [Ping timeout: 256 seconds]
<apeiros> bnagy: that's patently evil because it seems to do what + does, but it doesn't :)
Gadgetoid has quit [Ping timeout: 240 seconds]
<bnagy> well the return value is identical, how's that
<apeiros> << concats in-place, + creates a new string
<bnagy> in the repl
fomatin has joined #ruby
a1ph4g33k has quit [Quit: leaving]
elux has quit [Quit: Bye!]
kilophoton has joined #ruby
dmiller__ has quit [Ping timeout: 276 seconds]
Lewix has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
AdmiraI has quit [Quit: Textual IRC Client: www.textualapp.com]
Deele has quit [Ping timeout: 240 seconds]
interactionjaxsn has joined #ruby
a1ph4g33k has joined #ruby
Lewix has joined #ruby
c0rn has quit [Ping timeout: 264 seconds]
bean__ has quit [Quit: Computer has gone to sleep.]
breakingthings has quit []
Gadgetoid has joined #ruby
AdmiraI has joined #ruby
makerbreaker has quit [Read error: Connection reset by peer]
mwmnj has joined #ruby
staafl has quit [Ping timeout: 264 seconds]
aryaching has quit [Ping timeout: 260 seconds]
<workmad3> >> a='foo'; class << a; def + other; self << other; end; end; a + 'bar'; a
<eval-in> workmad3 => "foobar" (https://eval.in/49050)
<workmad3> bnagy: ^^ that's what's wrong with using << ;)
sambao21 has joined #ruby
iamjarvo_ has joined #ruby
<bnagy> I'm glad you explained that
interactionjaxsn has quit [Ping timeout: 264 seconds]
c0rn has joined #ruby
iamjarvo has quit [Read error: Operation timed out]
<banisterfiend> bnagy sup naggy
<banisterfiend> bnagy how's life
<bnagy> how much do you charge per hour, I would like to buy your lessons workmad3
bean__ has joined #ruby
<a1ph4g33k> ... what did I miss on reopening classes ?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dsferreira has joined #ruby
<bnagy> banisterfiend: pretty good, 2 weeks left on current contract, moved to marshall islands
<workmad3> bnagy: hourly rates? at least $1000
<bnagy> internet is verging on worse than kathmandu :(
jlast has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
moli has quit [Read error: Connection reset by peer]
<banisterfiend> bnagy closer to australia now :) are you going to pop back home?
jlast has joined #ruby
thepumpkin has joined #ruby
<bnagy> flights are a giant pain in the ass tbh
<bnagy> like KTM SIN ( 5 ) SIN ADL ( 7.5 )
<bnagy> here the best you can do is via HON, or once per 2 weeks to SUV
<banisterfiend> bnagy what? are you doing algebra?
<bnagy> OR, there's the island hopper, which I took to get here
mengu has quit [Quit: This computer has gone to sleep]
<bnagy> shit is nuts. Bangkok to Tokyo, tokyo guam, then you go from island to island for 9 hours
<bnagy> took me 48 hours to get here from chiangmai
Advocation has quit [Quit: Advocation]
<bnagy> so, short answer, no 'popping back' to .au :)
<banisterfiend> hehe
<banisterfiend> bnagy not getting tired with all this travelling around 3rd world countries?
<bnagy> this is hardly third world
<bnagy> got 2 ply toilet paper and everything
Cyrus has joined #ruby
freerobby has quit [Quit: Leaving.]
Monie has joined #ruby
thesheff17 has quit [Remote host closed the connection]
<onewheelskyward> lol
apeiros has quit [Remote host closed the connection]
MistuhKurtz has joined #ruby
bigoldrock has quit [Quit: Leaving.]
apeiros has joined #ruby
mmitchell has quit [Remote host closed the connection]
rcosta has joined #ruby
pkrnj has quit [Ping timeout: 245 seconds]
hydrozen has quit [Quit: Computer has gone to sleep.]
iamjarvo_ has quit [Remote host closed the connection]
wildroman has quit [Remote host closed the connection]
iamjarvo has joined #ruby
Teddy2steper has joined #ruby
havenwood has joined #ruby
SHyx0rmZ has joined #ruby
RichardBaker has joined #ruby
RichardBaker has quit [Client Quit]
cody-- has joined #ruby
<maasha> aw :o( . my hamming distance calculator outputs the wrong restult. This I expect to be 0 not 1. I suspect the tr -> https://gist.github.com/maasha/ed54a0ac39ed91400cf6
kofno has joined #ruby
butblack has joined #ruby
sarkis has joined #ruby
iamjarvo has quit [Ping timeout: 248 seconds]
jalcine has joined #ruby
RichardBaker has joined #ruby
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ixti has quit [Read error: Connection reset by peer]
<maasha> so "aaa".tr("abc", "\x01\x02\x03") does not return a string with three chars of value "\x01" ?
nanoxd has joined #ruby
Teddy2steper has quit [Remote host closed the connection]
ixti has joined #ruby
nanoxd has quit [Client Quit]
yekta has joined #ruby
bean__ has quit [Quit: Computer has gone to sleep.]
<bnagy> >> "aaa".tr("abc", "\x01\x02\x03")
<eval-in> bnagy => "\u0001\u0001\u0001" (https://eval.in/49051)
x1337807x has joined #ruby
rcosta has quit [Remote host closed the connection]
<maasha> hm, it does
<bnagy> the unicode stuff is just notation
<maasha> then it must be something else
alexju has quit [Remote host closed the connection]
<bnagy> why are you using strings?
mando has quit [Remote host closed the connection]
<banisterfiend> bnagy how's you internet now? can you stream youtube vids finally? :)
<bnagy> if you want to xor stuff why not just use numbers?
workmad3 has quit [Ping timeout: 245 seconds]
<bnagy> banisterfiend: no frickin way
BillCriswell has quit [Ping timeout: 264 seconds]
<maasha> bnagy: tr is superfast to remap the values. narrays are superfast to calculate hamming distance.
<maasha> bnagy: speed is of essence here.
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vxxr has joined #ruby
kirun has quit [Quit: Client exiting]
Xeago has quit [Read error: Connection reset by peer]
<bnagy> this is not going to be fast code
<bnagy> ambiguity_hash[c.downcase.to_sym].to_i(2).to_s(16).rjust(2, '0')
<bnagy> I mean srsly
Spami has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
<maasha> bnagy: that part only needs to be run once. the tr and hamming distance calculation needs to be run some billion times.
threesome has quit [Ping timeout: 264 seconds]
<bnagy> if you can have a lookup hash you may as well just lookup all the hamming combinations and walk the strings
Ziarkaen has joined #ruby
volty has joined #ruby
smyrna16 has quit [Ping timeout: 256 seconds]
<bnagy> anyway, whatever, carry on
thepumpkin has quit [Remote host closed the connection]
<maasha> bnagy: ah, but this is just a small test. the actual strings will be longer - so long that the permutations of hash keys will not fit in memory.
<bnagy> eh?
<bnagy> hamming is bitwise
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
<bnagy> you just need possible_symbols ** 2
apeiros has quit [Read error: Connection reset by peer]
tabolario has joined #ruby
peregrine81 has quit []
<maasha> well, if str1 is 20 chars. how many combinations can there be of the alphabet given in nuc_str?
<maasha> all combinations that is
<bnagy> 20 * 20
snovak has quit [Remote host closed the connection]
cj3kim has joined #ruby
graft has joined #ruby
<bnagy> doesn't matter how long the strings are, only the possible symbol set
<maasha> 20 ** 20
<bnagy> if you were using the alphabet you'd have a-z * a-z
<maasha> no
<bnagy> sure
thecodethinker has quit [Ping timeout: 245 seconds]
<maasha> 20 positons of 16 possibilities. that is 20 ** 16
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<bnagy> hamming abcd, qxyr would do hamming a,q + b,x etc
<bnagy> like I said, hamming is bitwise
<maasha> I know
randomautomator has quit [Ping timeout: 256 seconds]
kil0byte has joined #ruby
SHyx0rmZ has joined #ruby
thepumpkin has joined #ruby
cj3kim has quit [Ping timeout: 276 seconds]
cody-- has quit [Quit: derp]
mercwithamouth has joined #ruby
NealJ has quit [Quit: :c]
enebo has quit [Quit: enebo]
|jemc| has joined #ruby
kilophoton has quit [Ping timeout: 264 seconds]
alekst has quit [Quit: Computer has gone to sleep.]
yaymukund has quit [Ping timeout: 245 seconds]
randomautomator has joined #ruby
BadQuanta has joined #ruby
pentameter has quit [Read error: Connection reset by peer]
end_guy_ has joined #ruby
NealJ has joined #ruby
dash_ has quit [Quit: dash_]
dml_ has quit [Quit: Computer has gone to sleep.]
mklappstuhl has joined #ruby
sarkis has quit [Ping timeout: 276 seconds]
maasha has quit [Ping timeout: 250 seconds]
thinkclay has joined #ruby
butblack has quit [Quit: butblack]
baordog_ has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130814063812]]
cody-- has joined #ruby
volty has quit [Quit: Konversation terminated!]
mansi_ has quit [Remote host closed the connection]
mansi has joined #ruby
sloucher has quit [Remote host closed the connection]
huoxito has quit [Quit: Leaving]
end_guy has quit [Ping timeout: 240 seconds]
carlyle has joined #ruby
sarkis has joined #ruby
snath has quit [Ping timeout: 264 seconds]
thinkclay has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
jibi has quit [Quit: .]
rburton- has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
mlpinit has quit [Ping timeout: 245 seconds]
jonkri has quit [Quit: jonkri]
dmiller has joined #ruby
Notte has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 264 seconds]
MrThePlague has quit [Remote host closed the connection]
dagnachew has joined #ruby
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
matchaw_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mklappstuhl has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 245 seconds]
corpuscle has quit [Quit: WeeChat 0.4.1]
dmiller has quit [Ping timeout: 248 seconds]
cody-- has quit [Quit: derp]
<shevy> bitwise hammering
<a1ph4g33k> maasha, what is the final part trying to do ?
<a1ph4g33k> that's the only part I don't get ...
<bnagy> the hamming distance is the number one '1's left after the xor
rins has quit [Ping timeout: 245 seconds]
<bnagy> *of '1's
<a1ph4g33k> xor won't always return 1s
<bnagy> eh?
reset has quit [Quit: Leaving...]
<a1ph4g33k> 1s being set bits in the array ?
snovak has joined #ruby
<bnagy> no, like 0010 ^ 1111 -> 1101 -> hamming distance 3
MistuhKurtz has quit [Quit: Textual IRC Client: www.textualapp.com]
chinkung has quit [Read error: Connection timed out]
chinkung has joined #ruby
chopmo has quit [Remote host closed the connection]
T_T has quit [Remote host closed the connection]
matchaw has joined #ruby
DanBoy has joined #ruby
T_T has joined #ruby
jnoob22 has quit [Remote host closed the connection]
leonidlm has quit [Ping timeout: 256 seconds]
matchaw_ has quit [Ping timeout: 264 seconds]
i8igmac has quit [Ping timeout: 245 seconds]
<bnagy> anyway, like I said, a simple string walk will be many times faster than all that pissing about
iamjarvo has joined #ruby
<bnagy> O(2n) on string length
iamjarvo has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
EspenA has joined #ruby
Ripp__ has joined #ruby
<a1ph4g33k> bnagy, what do you think of: https://gist.github.com/a1ph4g33k/6601669
ner0x has joined #ruby
<a1ph4g33k> although this example doesn't even need the bin_hash...
<bnagy> it's still super wasteful
T_T has quit [Ping timeout: 245 seconds]
EspenA has quit [Client Quit]
<a1ph4g33k> as far as ?
<a1ph4g33k> ( refreshed to remove useless hash )
<bnagy> srsly dist=0; str1.each_index {|i| dist += hamming_lookup[str1[i]][str2[i]]}
<bnagy> done
snovak has quit [Ping timeout: 245 seconds]
<bnagy> hamming_lookup['A']['A'] => 0 ['A']['G'] => 3
<bnagy> meg G N for the last char whatever
optimusprimem has quit [Ping timeout: 245 seconds]
<a1ph4g33k> gotcha ...
brtdv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rezzack has joined #ruby
snath has joined #ruby
<bnagy> oh but your code is broken, cause the nibble diffs are 1 or 0 they're 0..4
geggam has joined #ruby
<bnagy> *aren't holy crap I need more coffee I am failing at typing so hard
kilophoton has joined #ruby
<a1ph4g33k> gotcha ...
chopmo has joined #ruby
<bnagy> so unless I read it wrong you're selecting positions where there's a difference, but it ignores the magnitude of the difference
optimusprimem has joined #ruby
ezra has joined #ruby
<a1ph4g33k> yep, agreed.
hydrozen has joined #ruby
Squarepy has quit [Quit: Leaving]
tatsuya_o has quit [Remote host closed the connection]
<bnagy> in C like langs you ^ then do successive val &= val-1
<bnagy> but even that would be faster with a lookup tbh
<bnagy> hm maybe not in asm
reset has joined #ruby
warefare22 has joined #ruby
vlad_starkov has joined #ruby
<bnagy> got a rep, and, inc and a dec inline
dagnachew has quit [Read error: Connection reset by peer]
<bnagy> probably actually a lot faster than two memory accesses
<a1ph4g33k> Your solution doesn't deal with strings of inequal length.
<bnagy> no, neither does hamming distance
warefare has quit [Ping timeout: 246 seconds]
<a1ph4g33k> gotcha, didn't look it up ... just tried to improve maasha's gist
DrShoggoth has quit [Quit: Leaving]
<a1ph4g33k> which I think I did ...
<a1ph4g33k> but is not as optimal as yours.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pothibo has joined #ruby
obs has quit [Quit: Konversation terminated!]
threesome has joined #ruby
ffranz has quit [Quit: Leaving]
Teddy2steper has joined #ruby
ezra has quit [Ping timeout: 245 seconds]
BraddPitt has quit [Ping timeout: 240 seconds]
mmitchell has joined #ruby
Teddy2st_ has joined #ruby
Bira has joined #ruby
BraddPitt has joined #ruby
Monie has quit [Quit: Textual IRC Client: www.textualapp.com]
Teddy2st_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
rcedillor has quit [Quit: leaving]
x1337807x has joined #ruby
yaymukund has joined #ruby
tabolario has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
x1337807x has quit [Client Quit]
Teddy2steper has quit [Ping timeout: 260 seconds]
mmitchell has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Ping timeout: 264 seconds]
kvirani has quit [Ping timeout: 276 seconds]
kvirani_ has joined #ruby
gstamp has joined #ruby
anonymuse has quit [Remote host closed the connection]
chopmo has quit [Remote host closed the connection]
sambao21 has quit [Ping timeout: 264 seconds]
cooldman224 has joined #ruby
slyv has joined #ruby
slyv has quit [Max SendQ exceeded]
funburn has joined #ruby
fridim__ has joined #ruby
iamjarvo has quit [Remote host closed the connection]
carlyle has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<a1ph4g33k> bnagy, I implemented your version... at the same gist.
<a1ph4g33k> that better ?
<bnagy> you should bench them as you write them :)
lfox has quit [Quit: ZZZzzz…]
bigmac has joined #ruby
<bnagy> it's better, but you still have a method call each position
bigmac is now known as i8igmac
<a1ph4g33k> The other version wasn't correct, so benching it wouldn't have been terribly useful.
<bnagy> basically you don't need the method, just pre-create a lookup hash
blackmesa has quit [Ping timeout: 240 seconds]
<a1ph4g33k> ... would be beneficial for long data but seems like over kill for short builds ...
mrsolo has quit [Quit: This computer has gone to sleep]
zeropx has quit [Ping timeout: 264 seconds]
mupkoo has quit [Remote host closed the connection]
iamjarvo has quit [Ping timeout: 256 seconds]
mrsolo has joined #ruby
<bnagy> well we're assuming they're very long strings
RTG` has quit [Ping timeout: 260 seconds]
<bnagy> you can just use something like value_hash.keys.combination(2).map {|a,b| update_cache(hamming(a,b))}
<bnagy> assuming you define the update_cache method
<a1ph4g33k> ... I actually was just thinking of memoizing
danman has quit [Quit: danman]
<bnagy> well for the real run you want to avoid a method invocation at all imho
sailias has joined #ruby
aaronmcadam has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
tkuchiki has joined #ruby
nari has joined #ruby
Caius has quit [Ping timeout: 240 seconds]
tomzx_mac has joined #ruby
<a1ph4g33k> the ugly part is the damn'd char to sym conversion ...
Guest19599 has quit [Ping timeout: 260 seconds]
Gadgetoid has quit [Ping timeout: 240 seconds]
Bira has quit [Remote host closed the connection]
mlpinit has joined #ruby
thepumpkin has quit [Remote host closed the connection]
Asher has joined #ruby
<bnagy> don't use syms
<a1ph4g33k> string lookups are slower.
<bnagy> no they're not
Caius has joined #ruby
<a1ph4g33k> strings compare slower than syms
<bnagy> they don't compare them
zeropx has joined #ruby
<bnagy> otherwise hash lookups wouldn't be O(1)
julweber has quit [Remote host closed the connection]
zeropx has quit [Client Quit]
IceDragon has quit [Ping timeout: 260 seconds]
<bnagy> well ok a symbol might be a tiny bit faster, but it's nowhere near as tragic as you'd think
<bnagy> and I doubt it's worth the cost of coverting
Gadgetoid has joined #ruby
leehambley has quit [Ping timeout: 264 seconds]
siwica has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
<bnagy> cause your incoming data is a string, so your keys are going to be one char
<a1ph4g33k> k.
mercwithamouth has quit [Ping timeout: 248 seconds]
leehambley has joined #ruby
kevind has quit [Quit: kevind]
vlad_starkov has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
superscott[8] has quit [Quit: superscott[8]]
sambao21 has quit [Ping timeout: 245 seconds]
Gadgetoid has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
splud has joined #ruby
Auraelius has joined #ruby
<splud> beh. Having trouble with Net::Ping::ICMP.
baroquebobcat has quit [Quit: baroquebobcat]
<splud> at a shell, I can 'ping -I wlan0 someip", and it works.
mlpinit has quit [Remote host closed the connection]
<splud> with ruby s = Net::Ping::ICMP.new( someip ) ; s.bind ( wlanip ) ; s.ping
<splud> fails
Seich has joined #ruby
P1RATEZ has quit []
butblack has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
<splud> lose the s.bind, and it works, or use a host which is local to the wlan0 net (it's gateway for instance), and it works.
Ox6abe has joined #ruby
<splud> but, refer back to the cmdline ping, which works.
Cyrus has quit [Quit: Cyrus.sleep()]
<bnagy> need privs?
<splud> script is already running with privs.
mlpinit has joined #ruby
<splud> Intended to be a system connection watchdog.
<bnagy> ok, I'd just use the os, personally
Nenor has quit [Quit: Nenor]
<splud> personally, I'd just write this in C and be done with it, but the rest of the code is in ruby.
Gadgetoid has joined #ruby
<bnagy> I would check, but I don't really want to install some bullshit ancient ping gem
fomatin has quit [Quit: Computer has gone to sleep.]
<a1ph4g33k> bnagy, ok ... updated ... https://gist.github.com/a1ph4g33k/6601669
Lewix has quit [Remote host closed the connection]
<a1ph4g33k> that about what you were thinking ?
johnjohnson has quit [Quit: Textual IRC Client: www.textualapp.com]
ericmathison has joined #ruby
<bnagy> nope :)
<bnagy> build a hash of hashes for your cache, don't use a + b
<bnagy> cause that creates a new string instance for every position as you're walking your string
sniffingcats has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
snovak has joined #ruby
<bnagy> which is crazy expensive, if you lookup hsh[s1[i]][s2[i]] you're just using refs you already have
barratt has quit [Quit: Leaving...]
<bnagy> but it's trivial from here, by the looks
<splud> IIRC, Net::Ping is part of the standard ruby install.
Tricon has quit [Quit: Bye!]
sambao21 has joined #ruby
<splud> In any event, I don't see a net, ping, or icmp gem in my system.
hydrozen has quit [Quit: Computer has gone to sleep.]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<bnagy> >> require 'net/ping'
<eval-in> bnagy => (https://eval.in/49052)
tylersmith has quit [Remote host closed the connection]
<bnagy> oh yeah, sandbox.. but anyway, nope doesn't seem to be
predator217 has joined #ruby
<splud> well, where would net/ping have come from? I don't see a gem in 'gem list' that covers that.
tylersmith has joined #ruby
DanKnox is now known as DanKnox_away
verto has joined #ruby
verto has quit [Remote host closed the connection]
<splud> Hrm, perhaps that came along with the crossdev environ though.
<bnagy> everything I can find suggests it's a gem, and it's not in my stock jruby install..
<splud> Bugger that. It is from crossdev.
selim has quit [Ping timeout: 245 seconds]
<bnagy> let me see if I have an MRI
<a1ph4g33k> ... gotcha ... bnagy, happy now ;p
<a1ph4g33k> ?
snovak has quit [Ping timeout: 256 seconds]
<bnagy> does it output '3'? :)
<bnagy> obtw using $globals as butt-ugly
predator117 has quit [Ping timeout: 264 seconds]
<a1ph4g33k> yes I know on the globals ...
<a1ph4g33k> yes it does.
<a1ph4g33k> so ... since maasha has left ... we won't get to run it against his version ...
<banisterfiend> bnagy bored bored bored. What's new?
graft has quit [Ping timeout: 245 seconds]
<a1ph4g33k> I have MRI ... no net ping in stdlib.
tylersmith has quit [Ping timeout: 256 seconds]
Davey has joined #ruby
jlast has quit [Remote host closed the connection]
Ox6abe has quit [Ping timeout: 264 seconds]
sloucher has joined #ruby
tatsuya_o has joined #ruby
julweber has joined #ruby
headius has quit [Quit: headius]
<a1ph4g33k> gads have I wasted my day ...
hydrozen has joined #ruby
ephemerian has quit [Quit: Leaving.]
<bnagy> banisterfiend: uh, dunno
<banisterfiend> bnagy excited about ruby 2.1 ? :)
<bnagy> I am about to slack off more and play computer games
<banisterfiend> bnagy oh nice, did u get a hold of gta5 ?
<bnagy> meh I'm still married to jruby
chrishough has joined #ruby
<bnagy> not even using 2.0 syntax yet
kayloos has quit [Remote host closed the connection]
<bnagy> nah I got Fez
<banisterfiend> what's fez?
<bnagy> took 48 hours to DL 300MB :(
jerius has quit [Ping timeout: 264 seconds]
Auraelius has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
RichardBaker has quit [Quit: RichardBaker]
<banisterfiend> bnagy oh that fucking thing
<banisterfiend> bnagy the game looks cool, but the dude who wrote it saunters around like some kind of messiah, he's a real cock (irrelevant to the game though, i should probably give it a go..)
<bnagy> I try not to do contextual analysis :)
<bnagy> like.. I like Ender's Game
<bnagy> despite the fact that the author is a complete fucking nazi psycopath
elaptics is now known as elaptics`away
ismaelrb has joined #ruby
tatsuya_o has quit [Ping timeout: 245 seconds]
jasontorres has joined #ruby
dsferreira has quit [Quit: This computer has gone to sleep]
kilophoton has quit [Ping timeout: 264 seconds]
nadirvardar has quit [Quit: Computer has gone to sleep.]
VTLob has quit [Quit: VTLob]
hydrozen_ has joined #ruby
kayloos has joined #ruby
warefare22 has quit []
kayloos has quit [Remote host closed the connection]