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>
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?
<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
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 :(
<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]
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]
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
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…]
<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?
<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 :-)
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
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...
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|>
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
<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
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…]
<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.
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]
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]
<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]
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.
<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]
<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]
<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...
<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]
<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]