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
pupoque has quit [Quit: Leaving.]
arya_ has quit [Ping timeout: 248 seconds]
lnormous has joined #ruby
emergion has joined #ruby
cj3kim has quit [Remote host closed the connection]
viszu has quit [Quit: Leaving.]
rodacato has joined #ruby
<lnormous> Is there a way of reading the port parameter passed to rackup from within config.ru?
freeayu has joined #ruby
Kov|kasumi is now known as Kovensky
mary5030 has joined #ruby
sergicles has quit [Quit: sergicles]
realDAB has joined #ruby
realDAB has quit [Client Quit]
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
Squarepy has quit [Remote host closed the connection]
TheNotary has joined #ruby
arya_ has joined #ruby
cdelo has quit [Quit: Leaving]
AkashicLegend has joined #ruby
marr has quit [Ping timeout: 248 seconds]
AkashicLegend has quit [Client Quit]
zachrab has joined #ruby
devyn has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
ILoveYou has quit [Ping timeout: 245 seconds]
krainboltgreene has quit [Quit: krainboltgreene]
seich has quit [Ping timeout: 240 seconds]
_veer has quit [Ping timeout: 245 seconds]
arya_ has joined #ruby
amacgregor_ has quit [Read error: Connection reset by peer]
_veer has joined #ruby
amacgregor_ has joined #ruby
eka has joined #ruby
eka has quit [Client Quit]
threesome has joined #ruby
rodacato has quit [Remote host closed the connection]
freeayu__ has joined #ruby
yshh has quit [Remote host closed the connection]
Neomex has quit [Quit: Neomex]
seich- has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
Cooler__ has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 264 seconds]
iliketurtles has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
smathieu_ has joined #ruby
Notte has quit [Remote host closed the connection]
ixti has quit [Quit: WeeChat 0.4.1]
jorge_ has joined #ruby
smathieu_ has quit [Ping timeout: 276 seconds]
GeissT has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
twoism has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
ehaliewicz has quit [Ping timeout: 264 seconds]
optimusprimem has quit [Ping timeout: 245 seconds]
zachrab has quit [Remote host closed the connection]
ravster has joined #ruby
renderful has quit [Remote host closed the connection]
thesheff17_ has quit [Quit: Leaving]
mahmoudimus has joined #ruby
<lnormous> Does anyone have any experience with enabling ssl in a rack application? been stuck on this for days now
kofno has joined #ruby
razi has quit [Ping timeout: 260 seconds]
fenicks has quit [Remote host closed the connection]
Deele has quit [Quit: User excited]
kofno has quit [Ping timeout: 276 seconds]
sevenseacat has joined #ruby
buzzybron has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
arya_ has joined #ruby
morf_ has quit [Quit: A metaphysical dichotomy has caused this unit to overload and shut down.]
browndawg has quit [Ping timeout: 264 seconds]
woolite64_ has quit [Read error: Connection reset by peer]
woolite64_ has joined #ruby
asteve has joined #ruby
heftig has joined #ruby
cj3kim has joined #ruby
londerson_ has joined #ruby
pierre1 has quit [Quit: Leaving]
londerson has quit [Ping timeout: 248 seconds]
londerson_ is now known as londerson
BRMatt has quit [Ping timeout: 264 seconds]
Anarch has quit [Ping timeout: 245 seconds]
hamakn has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
_bart has quit [Remote host closed the connection]
freakazoid0223 has joined #ruby
optimusprimem has joined #ruby
nari has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
sam113101_afk is now known as sam113101
druonysus has joined #ruby
hatzopoulos has quit [Remote host closed the connection]
hamakn has joined #ruby
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby
yshh has joined #ruby
urbanmonk has joined #ruby
emergion has quit [Ping timeout: 260 seconds]
codemannew has quit [Ping timeout: 246 seconds]
jefflyne has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Newbcake has quit [Ping timeout: 246 seconds]
iliketurtles has quit [Ping timeout: 256 seconds]
druonysus has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
arya_ has quit []
ravster has quit [Remote host closed the connection]
iliketurtles has joined #ruby
Newbcake has joined #ruby
saintcajetan has joined #ruby
druonysus has joined #ruby
IceDragon has quit [Ping timeout: 276 seconds]
ejnahc has quit [Ping timeout: 246 seconds]
smathieu has joined #ruby
cads has joined #ruby
Ripp__ has joined #ruby
tomzx_mac has joined #ruby
kvodlecks is now known as Quadlex
smathieu has quit [Ping timeout: 276 seconds]
optimusprimem has quit [Ping timeout: 245 seconds]
TheNotary has quit [Quit: Leaving]
Mattix has joined #ruby
tkuchiki has quit [Ping timeout: 264 seconds]
tkuchiki has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
<Mattix> Hello
<Mattix> is there a way to execute an app with `` for a few ms and get the output?
iliketurtles has joined #ruby
<bnagy> I don't think so
<illa> pipe it to a file?
<bnagy> I think you'll have to popen for that kind of thing
coaster has joined #ruby
<Mattix> hmn, how what that be?
JZTech101 has quit [Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC]
<Mattix> the problem is that the app I'm executing keeps updating the screen forever
byprdct has quit [Ping timeout: 248 seconds]
<bnagy> which is why you use popen instead
<bnagy> then read the stdout of the app
<bnagy> I think `` will always wait for exit
IceDragon has joined #ruby
rubarlio_ has joined #ruby
L8D has joined #ruby
<L8D> How can I get a frozen copy of an object?
<L8D> without freezing the original object
gildo has joined #ruby
<bnagy> L8D: try Marshal.load(Marshal.dump(obj).freeze
niklasb has quit [Read error: Operation timed out]
<Nilium> Plus a paren
<L8D> for?
<L8D> bnagy: that works, thanks
<bnagy> L8D: actually just clone should also work, it seems
<L8D> I didn't think of that...
<L8D> dumb me
<L8D> clone is a much simpler implementation
<zachrab> i got a large block of code that i want to run once if a certain condition is true or multiple times if another condition is true
<zachrab> how can i do this without breaking that block into a separate method?
<bnagy> clone copies frozen state, but changing it on the clone won't affect the original
<bnagy> zachrab: use programming
<zachrab> bnagy: very funny seriously tho
<Nilium> zachrab: Use a method.
<zachrab> Nilium: its unavoidable correct?
Domon has joined #ruby
<Nilium> Not unavoidable.
rodacato has joined #ruby
<L8D> zachrab: use a proc
<Nilium> Just stupid to avoid.
<L8D> or a lambda
<L8D> or a method
<L8D> or a function
optimusprimem has joined #ruby
<zachrab> Nilium: so best practice would be to create its own method?
<bnagy> without details it's just impossible to say
<Nilium> Best practice would be to avoid code repetition. Methods and functions allow you to do this.
<zachrab> Nilium: got it
<Nilium> You could technically also cram the code into a string and eval it, but if you did that I would murder you.
<zachrab> L8D: whats a proc? and isnt method and function synonymous?
<zachrab> Nilium: lol yessir!
renderful has joined #ruby
* L8D facepalms
<Nilium> See ri Proc.
<Nilium> Or that.
Nigel_ is now known as G
tommyvyo has quit [Read error: Connection reset by peer]
* Nilium uses Dash for viewing docs, too.
sleetdrop has joined #ruby
<L8D> I really don't want to be mean right now, but I think that the answer to your question would be to use a proc/lambda
mary5030 has quit [Remote host closed the connection]
<Nilium> Which I only mention because I am an enormous shill for Dash.
mary5030 has joined #ruby
<zachrab> L8D: i thought Nilium and i established best practice would be creating another method
<zendeavor> do you need it only once forever
<zendeavor> or will you use it again.
<Nilium> No, I just said what I'd do.
<L8D> Well, he wanted to run a _block_ of code
<L8D> and procs are blocks of code
<Nilium> You might be taking that part too literally.
<zendeavor> indeed
<Nilium> If it is in fact just a block he needs to keep around, then yeah, proc/lambda.
<zendeavor> block has a specific meaning in ruby that is not exactly synonymous with the traditional "block" of code
rubarlion has joined #ruby
<zachrab> now what defines a block of code since isnt any portion of code a "block"
<zachrab> or its a series of lines completing a common task
renderful has quit [Ping timeout: 248 seconds]
<zendeavor> in the traditional sense, a delimited section of code related to getting a single task done is a block
<L8D> Well, when you give a block of code to a function, you are really just passing a literal of a proc
Levin_22 has quit [Quit: Levin_22]
<zachrab> zendeavor: yes!
<bnagy> well traditionally I'd say a portion of code with no branches
pkrnj has joined #ruby
<zendeavor> that's fair.
<bnagy> like no if or method call or whatever
gildo has quit [Ping timeout: 276 seconds]
<bnagy> that's certainly the compsci understanding
havenn is now known as havenwood
<zendeavor> zachrab: nothing to do with lines though
<zachrab> zendeavor: k
<zendeavor> bnagy: that's a better way to put it, my explanation is pretty ambiguous
arya_ has joined #ruby
tommyvyo has joined #ruby
<zachrab> i never quite fully understood the proc/lambda idea
<alainus> Is there a way I can retrieve the value of "host" from this env variable, shown here: https://gist.github.com/anonymous/ad7964ce561647bf1974#file-gistfile1-txt-L140
<zendeavor> they're neat
<bnagy> zachrab: but ruby 'blocks' mean something else, because we have a kind of closure that can be passed around as a first-class variable
<bnagy> and we call _those_ blocks
<zachrab> k
rubarlion has quit [Remote host closed the connection]
<bnagy> or procs or lambdas depending :P
<zachrab> can someone explain proc/lambda?
<zendeavor> don't get caught up on the terminology
<zachrab> i know but ive had a peer attempt to explain the concept of lambda in ruby and i was just left confused
rubarlio_ has quit [Ping timeout: 276 seconds]
<bnagy> it's a little chunk of code
<zendeavor> i think it's more useful to know what makes a lambda useful than what defines it
<zachrab> k
<bnagy> if you use fluent ruby you're using them all the time without noticing - every each / map / ...
<bnagy> >> %w(a b c).map {|letter| letter.upcase}
<eval-in> bnagy => ["A", "B", "C"] (https://eval.in/38287)
Iszak has joined #ruby
<bnagy> the bit {} is a block.
<zachrab> right
splittingred has joined #ruby
<zachrab> so that block is lambda?
<bnagy> so watch this
<bnagy> >> l = Proc.new {|letter| letter.upcase}; %w(a b c).map &l
<eval-in> bnagy => ["A", "B", "C"] (https://eval.in/38288)
<bnagy> l is now a Proc which is a bit of code that just knows how to upcase things
<zachrab> k
<bnagy> I can save it and use it later
<zachrab> i see
<bnagy> the diff between lambda and proc is fiddly and frankly not worth worrying about
<zachrab> ha
<zachrab> that was my next question!
<zachrab> so essentially they are the same
<bnagy> yeah
<zachrab> k
Lewix has quit [Remote host closed the connection]
<zachrab> now how does one make the choice between creating a distinct method vs a distinct proc?
<lnormous> alainus: Is the information you need in the gist you pasted?
<Nilium> Also fun is using &:name
<alainus> lnormous, yes, the "host" key, val from Line 140. I highlighted it.
<bnagy> zachrab: unless you're doing weird stuff and you're hitting problems, mostly you just want to refactor into logical methods
<zachrab> bnagy: got it
<bnagy> things like callback patterns use procs for example
v0n has joined #ruby
<bnagy> I can't think of anywhere else I've used them apart from stunt programming :/
brennanMKE has quit [Remote host closed the connection]
<zachrab> stunt programming?
<bnagy> doing stuff a stupid way just because it's possible
<zachrab> haha got it
<Nilium> Which is fun until you realize you wrote it and the deep feeling of shame sets in
arya_ has quit []
<lnormous> alainus: You just need to pull out the objects you need one at a time
Vivekananda has quit [Ping timeout: 264 seconds]
<alainus> lnormous, @handler first, right ?
<lnormous> ENV["async.connection"] first, if I'm reading it right
<alainus> lnormous, and how do I access a @ type variable inside it? env["async.connection"][...?...]
robustus has quit [Ping timeout: 248 seconds]
robustus has joined #ruby
<lnormous> alainus: So the ENV variable is a hash of name => value
<lnormous> to access something inside it you do ENV[name], and get the value
zachrab has left #ruby [#ruby]
<lnormous> once you've got the object it refers to, then you use that like an object, so call methods on it
zachrab has joined #ruby
<zachrab> ill be back
zachrab has left #ruby [#ruby]
<lnormous> so maybe ENV["async.connection"].handle.request["host"]
<lnormous> handler, not handle
<iliketurtles> can anyone assist decrypting using OpenSSL::Cipher class? I want to use AES-128-ECB as the cipher, and I have a key, and a base64 encoded output.
krz has joined #ruby
romdi` has quit [Ping timeout: 264 seconds]
rubarlion has joined #ruby
rubarlion has quit [Remote host closed the connection]
zachrab has joined #ruby
<zachrab> im working on rubygems
arya_ has joined #ruby
<zachrab> and im trying to run my version of the code base via ruby -Ilib bin/gem
<zachrab> which was working previously however now im receiving
<zachrab> nvmd
zachrab has left #ruby [#ruby]
<sevenseacat> lol
<bsdbandit> good evening everyone
brennanMKE has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
<bnagy> iliketurtles: istr openssl stuff being a bit of a pain
Ripp__ has quit [Quit: This computer has gone to sleep]
marcdel has joined #ruby
arya_ has joined #ruby
<bsdbandit> hello just coming over from python looking to get into web development using a framework other than rails any suggestions
<bsdbandit> ?
<bnagy> there was a cheat sheet thing
akashj87 has joined #ruby
<bnagy> bsdbandit: sinatra
<bsdbandit> ok
<bnagy> disclaimer - I don't do any web stuff at all
<bsdbandit> thanks man
<bsdbandit> oh ok im going to look it up
<bsdbandit> i do alot of python but ive been hearing some great things about ruby so id figured i give it a try
arya_ has quit [Client Quit]
<bsdbandit> :)
ckrailo has joined #ruby
smathieu has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
tyman has joined #ruby
rodacato has quit [Remote host closed the connection]
marcdel has joined #ruby
<bnagy> not sure web stuff is the best showcase for it as a language, but cool :)
<L8D> bsdbandit: what kind of bsd do you use?
amacgregor_ has quit [Ping timeout: 240 seconds]
jorge_ has quit [Remote host closed the connection]
Anarch has joined #ruby
jorge_ has joined #ruby
<bsdbandit> i use freebsd for servers and openbsd for firewall/vpn
<L8D> Do you use it locally at all? Like for your laptop/desktop?
<L8D> I use openbsd myself.
smathieu has quit [Ping timeout: 248 seconds]
<bsdbandit> i used too in a vm
<bsdbandit> im using a macbook pro now
<bnagy> worst. desktop. os. evar.
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bsdbandit> i do everything from the command line
<L8D> what? openbsd or os x?
<bnagy> openbsd
<bsdbandit> well for right now os x then i will put freebsd on the macbook pro
<bsdbandit> for good
<sevenseacat> osx is terrible IMO
<L8D> bnagy: why would you say that?
<L8D> OpenBSD is the most stable thing I've ever used, and ports provides as many packages as the AUR
<bnagy> how's that device support?
jorge_ has quit [Ping timeout: 264 seconds]
<L8D> Well, not great unless you have a mac
marcdel has quit [Ping timeout: 264 seconds]
<L8D> since all of apple's open source stuff is BSD-compatible.
<L8D> and a lot of the hardware was made for BSD-style boots
dagnachew has joined #ruby
rubarlion has joined #ruby
<bsdbandit> osx is cool just depends on what your doing i think it makes a great development platform
<L8D> It does
johnkary has joined #ruby
<L8D> Especially since %80 of javascript and rails development is on macs
<zendeavor> unfair to say that
kobain has quit [Ping timeout: 252 seconds]
<zendeavor> but okay
<sevenseacat> lol 80% what
<L8D> every single rails dev I've met besides myself uses OS X
<zendeavor> anecdotal evidence really
<L8D> well pfft
<zendeavor> let's not take advantage of impressionable minds
rubarlion has quit [Remote host closed the connection]
<sevenseacat> i work in a room with five other rails devs, and two of them use osx
tkuchiki_ has joined #ruby
<sevenseacat> not saying its not quite prevalent for unknown reasons, but you cant just pull numbers out of the air
<L8D> Well then, based on my experience, 80%.
<Quadlex> Sure you can!
<bnagy> L8D: google 'confirmation bias'
tkuchiki has quit [Ping timeout: 240 seconds]
<bsdbandit> can sintara be used to code a large website
<L8D> bsdbandit: If done right from the start
<bsdbandit> ok
<bsdbandit> cool
<Mattix> is there any way to disable the buffer of popen?
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mattix> I don't want to process things that are not updated
rubarlion has joined #ruby
<bnagy> Mattix: not sure what you mean, but you can set #sync on the handles
<Mattix> I mean that if the app I execute prints too many things per second, more than what I read, I want to drop it
akashj87 has quit [Quit: Leaving]
<bnagy> oh. No idea, doubt it's possible
cha1tanya has joined #ruby
<bnagy> like, filehandles just Don't Work Like That afaik
dagnachew has quit [Quit: Leaving]
<Mattix> actually it seems it's what sync do. isn't it? bnagy
<Mattix> "When sync mode is true, all output is immediately flushed to the underlying operating system and is not buffered internally."
<bnagy> no
<bnagy> yeah but it's not dropped
AlSquire has quit [Quit: This computer has gone to sleep]
<Mattix> well, I suppose the effect is the same
<Mattix> I don't want to process it in ruby, that's it
<bnagy> once it comes out of the app, it will be in that pipe, end of story
iliketurtles has quit [Quit: zzzzz…..]
<bnagy> you can drop it yourself, but you can't magically have it vanish
<Mattix> then I didn't get what sync does
<bnagy> it's for output, usually
<bnagy> in heavy loops and stff sometimes output won't immediately get printed or whatever
renderful has joined #ruby
<bnagy> sync says 'whever I say print to stdout, stop everything else until you've done that, thanks'
amacgregor has joined #ruby
<bnagy> although it's only synced as far as the os afaik, like if it were a write to a file it doesn't sync the actual physical device
<bnagy> but that's a kettle of worms
<Mattix> I see
<Mattix> ok, then it's not what I mean
<Mattix> s/mean/need/
IceDragon has quit [Quit: Space~~~]
<bnagy> can ruby keep up if it does almost no work per line?
<bnagy> like just stdin.each {}
<bnagy> if so you can probably write a threaded solution and do your own drops
n_blownapart has joined #ruby
malcolmva has quit [Quit: Leaving]
urbanmonk has quit [Quit: urbanmonk]
pkrnj has quit [Quit: Computer has gone to sleep.]
ckrailo has quit [Quit: Computer has gone to sleep.]
jorge_ has joined #ruby
arietis has joined #ruby
haxrbyte has joined #ruby
MrPoT4tO has joined #ruby
arietis has quit [Client Quit]
_ffio_ has joined #ruby
malcolmva has joined #ruby
haxrbyte_ has joined #ruby
DeanH has joined #ruby
ffio_ has quit [Ping timeout: 264 seconds]
gh0zt has joined #ruby
kobain has joined #ruby
haxrbyte has quit [Ping timeout: 248 seconds]
jorge_ has quit [Read error: Connection reset by peer]
jorge_ has joined #ruby
rubarlion has quit [Ping timeout: 256 seconds]
<bsdbandit> wow this is cool stuff
zomgbie has quit [Read error: Connection reset by peer]
zomgbie has joined #ruby
zaphrentidae12 has quit [Ping timeout: 276 seconds]
Iszak has quit [Quit: Computer has gone to sleep.]
krainboltgreene has joined #ruby
codemannew has joined #ruby
freakazoid0223 has quit [Ping timeout: 268 seconds]
marcdel has joined #ruby
Domon has quit [Remote host closed the connection]
zaphrentidae12 has joined #ruby
<bsdbandit> ƒ
<bsdbandit> ruby rocks
wsterling has joined #ruby
browndawg has joined #ruby
pkrnj has joined #ruby
bluOxigen has joined #ruby
brunoro_ has joined #ruby
rburton- has joined #ruby
rburton- has left #ruby [#ruby]
Lewix has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
cha1tanya has quit [Ping timeout: 264 seconds]
Domon has joined #ruby
smathieu has joined #ruby
ehaliewicz has joined #ruby
s00pcan has quit [Ping timeout: 276 seconds]
anildigital_away is now known as anildigital
iliketurtles has joined #ruby
smathieu has quit [Ping timeout: 268 seconds]
wsterling has quit [Remote host closed the connection]
s00pcan has joined #ruby
iliketurtles has quit [Client Quit]
jorge_ has quit [Remote host closed the connection]
iliketurtles has joined #ruby
jorge_ has joined #ruby
pkrnj has quit [Quit: Computer has gone to sleep.]
sayan has joined #ruby
eldariof has joined #ruby
jorge_ has quit [Ping timeout: 240 seconds]
ehaliewicz has quit [Ping timeout: 240 seconds]
NiteRain has joined #ruby
pkrnj has joined #ruby
<L8D> Is there any way to define arguemnts for methods in symbol#to_proc ?
tomzx_mac has quit [Ping timeout: 260 seconds]
iliketurtles has quit [Quit: zzzzz…..]
zomgbie_ has joined #ruby
Joufflu_ has joined #ruby
krainboltgreene has quit [Ping timeout: 256 seconds]
druonysus has quit [Quit: Konversation terminated!]
druonysus has joined #ruby
druonysus has quit [Changing host]
druonysus has joined #ruby
kizzx2 has joined #ruby
r0bglees0n has joined #ruby
freerobby1 has joined #ruby
nignaztic has joined #ruby
xcv has quit [Remote host closed the connection]
brunoro__ has joined #ruby
splittingred has quit [Quit: splittingred]
binw has joined #ruby
coddymazet has joined #ruby
zeromodulus has joined #ruby
s00pcan_ has joined #ruby
coddymazet has quit [Client Quit]
Sp4rKy_ has joined #ruby
veer has joined #ruby
brennanM_ has joined #ruby
havenn has joined #ruby
veer is now known as Guest59825
woolite64__ has joined #ruby
elnormous has joined #ruby
s00pcan has quit [Ping timeout: 248 seconds]
davedev2_ has quit [Remote host closed the connection]
havenn is now known as havenwood_
Zespre_ has joined #ruby
davedev24 has joined #ruby
pkrnj has quit [*.net *.split]
malcolmva has quit [*.net *.split]
zomgbie has quit [*.net *.split]
brunoro_ has quit [*.net *.split]
freerobby has quit [*.net *.split]
v0n has quit [*.net *.split]
coaster has quit [*.net *.split]
cads has quit [*.net *.split]
r0bgleeson has quit [*.net *.split]
zeromodu_ has quit [*.net *.split]
joelteon has quit [*.net *.split]
nezumi has quit [*.net *.split]
binw_ has quit [*.net *.split]
havenwood has quit [*.net *.split]
Joufflu has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
phracker has quit [*.net *.split]
idoru has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
wallerdev has quit [Quit: wallerdev]
pkrnj has joined #ruby
jaimef_ has joined #ruby
joelteon has joined #ruby
malcolmva has joined #ruby
havenwood_ is now known as havenwood
cads has joined #ruby
Guest59825 has quit [Changing host]
Guest59825 has joined #ruby
freeayu3 has joined #ruby
_veer has quit [Disconnected by services]
Guest59825 is now known as _veer
krzkrzkrz has joined #ruby
AkashicLegend has joined #ruby
nezumi has joined #ruby
platoscave has quit [Ping timeout: 264 seconds]
druonysus has quit [Ping timeout: 240 seconds]
sayan has quit [*.net *.split]
marcdel has quit [*.net *.split]
codemannew has quit [*.net *.split]
brennanMKE has quit [*.net *.split]
krz has quit [*.net *.split]
Newbcake has quit [*.net *.split]
nazty has quit [*.net *.split]
woolite64_ has quit [*.net *.split]
predator217 has quit [*.net *.split]
Tarential has quit [*.net *.split]
freeayu__ has quit [*.net *.split]
lnormous has quit [*.net *.split]
Asher has quit [*.net *.split]
jaimef has quit [*.net *.split]
zero7 has quit [*.net *.split]
Zespre has quit [*.net *.split]
kenichi has quit [*.net *.split]
xefi_ has quit [*.net *.split]
krzkrzkrz is now known as krz
Tarential has joined #ruby
tyman has quit [Ping timeout: 248 seconds]
idoru has joined #ruby
rodacato has joined #ruby
codemannew has joined #ruby
platoscave has joined #ruby
platoscave has quit [Max SendQ exceeded]
platoscave has joined #ruby
platoscave has quit [Max SendQ exceeded]
marcdel has joined #ruby
amacgregor has quit [Read error: Connection reset by peer]
Asher has joined #ruby
platoscave has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
rodacato has quit [Remote host closed the connection]
kizzx2 has quit [Quit: Leaving.]
iliketurtles has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
d3 has joined #ruby
Guest____ has joined #ruby
phracker has joined #ruby
jalcine has joined #ruby
DonRichie has joined #ruby
tommyvyo has quit [Quit:]
johnkary has quit [Quit: @johnkary]
brennanM_ has quit [Remote host closed the connection]
brennanMKE has joined #ruby
londerson has left #ruby [#ruby]
kofno has joined #ruby
smathieu has joined #ruby
ewnd9 has joined #ruby
browndawg1 has joined #ruby
lurid_ has joined #ruby
predator117 has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
browndawg has quit [Ping timeout: 248 seconds]
coaster has joined #ruby
Domon has quit [Remote host closed the connection]
GeekOnCoffee has joined #ruby
davedev24 has quit [Remote host closed the connection]
xefi_ has joined #ruby
kenichi has joined #ruby
smathieu has quit [Ping timeout: 256 seconds]
davedev24 has joined #ruby
axeman- has joined #ruby
jorge_ has joined #ruby
Guest____ is now known as ElCapitanMarklar
Xiti has joined #ruby
davedev24 has quit [Ping timeout: 256 seconds]
jorge_ has quit [Ping timeout: 264 seconds]
osvico has quit [Ping timeout: 248 seconds]
axeman- has quit [Remote host closed the connection]
pkrnjevic has joined #ruby
pkrnj has quit [Ping timeout: 264 seconds]
wsterling has joined #ruby
pkrnjevic is now known as pkrnj
cads has quit [Quit: Leaving]
cads has joined #ruby
n_blownapart has quit [Remote host closed the connection]
wsterling has quit [Ping timeout: 268 seconds]
tonini has joined #ruby
lscott3 has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
axeman- has joined #ruby
adeponte has joined #ruby
darth_chatri1 has joined #ruby
eldariof has quit [Ping timeout: 248 seconds]
ckrailo has joined #ruby
Xiti has quit []
pkrnj has quit [Quit: Computer has gone to sleep.]
MrPoT4tO has quit [Remote host closed the connection]
ewnd9 has quit [Ping timeout: 264 seconds]
Tarential has quit [Quit: I shouldn't really be here - dircproxy 1.0.5]
Tarential has joined #ruby
timonv has joined #ruby
ayaz has joined #ruby
kevinykchan has joined #ruby
platoscave has quit [Ping timeout: 240 seconds]
obs has joined #ruby
kobain has quit [Quit: El motor por excelencia http://www.europio.org/]
pkrnj has joined #ruby
pkrnj has quit [Client Quit]
kizzx2 has joined #ruby
Davey has joined #ruby
<codemannew> any one here use ruby becuz when i use rubymine it says like no sdk specified
<codemannew> and its very stressful to me and im so used to visual studio and everything sigh
Xiti has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bnagy> very few ruby devs use IDEs
<bnagy> unless emacs / vim / sublimetext count as IDEs
platoscave has joined #ruby
<bnagy> if you don't want to invest a ton of time learning an editor I definitely recommend sublimetext 2 though
axeman- has quit [Remote host closed the connection]
cha1tanya has joined #ruby
r0bglees0n has quit [Read error: Operation timed out]
Davey has quit [Quit: Computer has gone to sleep.]
<RubyPanther> emacs has integrated version control... that makes it an IDE, right? I still just use bash for that stuff, though.
fgo has joined #ruby
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ewnd9 has joined #ruby
Davey has joined #ruby
BombStri- has quit [Changing host]
BombStri- has joined #ruby
BombStri- is now known as BombStrike
sleetdrop has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
arya_ has joined #ruby
Domon has joined #ruby
dross_ is now known as dross
Lewix has quit [Remote host closed the connection]
Ripp__ has joined #ruby
Joufflu_ has quit [Ping timeout: 264 seconds]
timonv has quit [Remote host closed the connection]
Joufflu_ has joined #ruby
ewnd9 has quit [Ping timeout: 268 seconds]
tagrudev has joined #ruby
sayan has joined #ruby
rshetty has joined #ruby
smathieu has joined #ruby
henrysource has joined #ruby
Shirakawasuna has joined #ruby
arya_ has quit []
locriani has joined #ruby
AkashicLegend is now known as Akashic_afk
smathieu has quit [Ping timeout: 264 seconds]
xcthulhu has quit [Quit: xcthulhu]
axeman- has joined #ruby
renderful has quit [Remote host closed the connection]
renderful has joined #ruby
ssvo has quit [Ping timeout: 240 seconds]
ryez has joined #ruby
ryez has quit [Max SendQ exceeded]
dirtnasty has joined #ruby
dirtnasty is now known as rick123
ryez has joined #ruby
ryez has quit [Max SendQ exceeded]
ryez has joined #ruby
ananthakumaran has joined #ruby
ryez has quit [Max SendQ exceeded]
marcdel has joined #ruby
ssvo has joined #ruby
ryez has joined #ruby
pontiki has joined #ruby
ryez has quit [Max SendQ exceeded]
ElCapitanMarklar has quit [Quit: Textual IRC Client: www.textualapp.com]
baroquebobcat has joined #ruby
krainboltgreene has joined #ruby
elaptics`away is now known as elaptics
csdc has quit [Ping timeout: 245 seconds]
brunoro__ has quit [Ping timeout: 264 seconds]
zachrab has joined #ruby
pranny has joined #ruby
zero7 has joined #ruby
nayfun has joined #ruby
zachrab has quit [Remote host closed the connection]
fridim__ has quit [Ping timeout: 246 seconds]
whowantstolivefo has joined #ruby
codemannew has quit []
jhn has joined #ruby
chxane has quit [Ping timeout: 264 seconds]
Gacha has joined #ruby
ChristianS has quit [Excess Flood]
ChristianS has joined #ruby
<zendeavor> there's no proper definition for IDE
anay has joined #ruby
axeman- has quit [Remote host closed the connection]
ssvo has quit [Ping timeout: 264 seconds]
Gacha has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
axeman- has joined #ruby
<zendeavor> they tend to include a standard featureset such as "intelligent" completions, project management, debug utility interfaces
brennanMKE has quit [Remote host closed the connection]
workmad3 has joined #ruby
pupoque has joined #ruby
saarinen has joined #ruby
havenwood has quit [Remote host closed the connection]
<zendeavor> in reality they're just text editors with lots of other shinies =[
axeman- has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
echevemaster has quit [Quit: Leaving]
rick123 has quit [Ping timeout: 264 seconds]
thams has joined #ruby
freerobby1 has quit [Quit: Leaving.]
zachrab has joined #ruby
<Kelet> zendeavor, I'd like to say that I believe my personal idea of an IDE is something that has it's own REPL or at least some way to 'communicate' with the language which more or less gives it access to many of those features
<Kelet> Hence Vim alone => not an IDE for Ruby. Vim with certain plugins => an IDE for Ruby
elnormous has quit [Ping timeout: 248 seconds]
<Kelet> etc
<Kelet> Emacs with Ruby-Mode, not an IDE. Emacs with inf-ruby, an IDE.. I think :)
zachrab has quit [Client Quit]
_seanc_ has quit [Quit: _seanc_]
<Kelet> But I'm sure a million people have their own arbitrary lines drawn
DeanH has joined #ruby
renderful has joined #ruby
havenwood has joined #ruby
lscott3 has quit [Quit: Quit]
ntus1017 has joined #ruby
Sp4rKy_ is now known as Sp4rKy
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
r0ber has joined #ruby
kiri has joined #ruby
DeanH has quit [Ping timeout: 256 seconds]
notbrent___ is now known as notbrent
bigkevmcd has joined #ruby
Notte has joined #ruby
Akashic_afk has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
himsin has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
saarinen has quit [Quit: saarinen]
kizzx2 has left #ruby [#ruby]
kizzx2 has joined #ruby
JohnBat26 has joined #ruby
ndrei has joined #ruby
ndrei has quit [Client Quit]
Iszak has joined #ruby
smathieu_ has joined #ruby
adeponte has quit [Remote host closed the connection]
Joufflu_ has quit [Quit: Leaving]
andikr has joined #ruby
lkba has quit [Ping timeout: 248 seconds]
smathieu_ has quit [Ping timeout: 268 seconds]
jhn has quit [Ping timeout: 268 seconds]
jorge_ has joined #ruby
dawkirst has quit [Read error: Connection reset by peer]
blaxter_ has joined #ruby
ndrei has joined #ruby
Kelet has quit [Read error: Connection reset by peer]
Kelet has joined #ruby
aantix has joined #ruby
jorge_ has quit [Ping timeout: 264 seconds]
adeponte has joined #ruby
freerobby has joined #ruby
aantix has quit [Client Quit]
aganov has joined #ruby
s00pcan has joined #ruby
aantix has joined #ruby
filipe has joined #ruby
rshetty has quit [Quit: Sleeping]
avril14th has joined #ruby
arya_ has joined #ruby
jprovazn has joined #ruby
senayar has joined #ruby
arya_ has left #ruby [#ruby]
tatsuya_o has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
arya_ has joined #ruby
krainboltgreene has quit [Ping timeout: 264 seconds]
threesome has quit [Ping timeout: 264 seconds]
arya_ has quit [Remote host closed the connection]
arya_ has joined #ruby
anay has quit [Remote host closed the connection]
cj3kim has joined #ruby
_Andres has joined #ruby
maroloccio has joined #ruby
arya_ has quit [Remote host closed the connection]
Hanmac has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
Spami has joined #ruby
Spami has joined #ruby
Spami has quit [Changing host]
dEPy has joined #ruby
amacgregor has joined #ruby
Deele has joined #ruby
nijan has joined #ruby
dagen has joined #ruby
<nijan> Hello, is there a way given a regular expression, to generate all possible matches? e.g. [az]? -> a, b, 0...
romdi has joined #ruby
freeayu3 has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
<bnagy> nijan: for the general case, absolutely not
<bnagy> because *
<Kelet> nijan, Basically what bnagy is saying is that the language of a regular expression may be infinite.
<Kelet> There could be infinitely many matches.
<Kelet> (And oftentimes there is)
krainboltgreene has joined #ruby
<zendeavor> man you guys just spoil all the fun of critical thinking
<Kelet> However if you put a limit on the size of the match I suppose you could
<Kelet> Or if the regular expression was guaranteed not to have an infinitely large language
<dEPy> hey guys, I have to store some passwords and additional stuff which can be shared over internal chat in web app, but I have to somehow encode and later decode this on demand, any ideas?
<pontiki> some regexps are finite
<pontiki> in which case you could
freeayu3 has joined #ruby
<pontiki> but any infinite regexp, nope
<bnagy> dEPy: cryptography?
<dEPy> users will have internal chat (1 on 1 - support) where user can input some credentials in our "secure vault" then only user on the other side can view it
<dEPy> bnagy: yes but which kind
<hoelzro> dEPy: what protocol are you using for your chat?
<dEPy> hoelzro: websockets
<nijan> How can I control if the result would be infinite or not
<nijan> I just need a general generator
<Kelet> Assume you have the regex a*
<hoelzro> dEPy: I mean on top of websockets
<Kelet> that will match a, aa, aaa, aaaa, ...
<nijan> What's the problem if it generates infinite strings?
<dEPy> hoelzro: Am.. Pusher?
<dEPy> hoelzro: It's an external service
<Kelet> Infinite strings take an infinite amount of space
sleetdrop has joined #ruby
<Kelet> I assume you don't have an infinite amount of space
krainboltgreene has quit [Ping timeout: 248 seconds]
<Kelet> If you do, please give me some
<hoelzro> dEPy: I was going to suggest that if you're using something like XMPP, you could leverage the existing spec for OTR
<nijan> But there some algorithms to handle infinitely large sets .
<hoelzro> but at the very least, that would be a good start in terms of research
<bnagy> Kelet: could give you half, and still have infinity left! Rude not to, really...
<nijan> Even a condition would do actually
<Kelet> Those algorithms might work with lazy enumerators or some other concept
<hoelzro> nijan: maybe we should back up, and ask what you intend to do with this infinite set of strings =)
<bnagy> nijan: I think you should actually just consider the regexp to _be_ the set of all strings it can generate and reason on that
<dEPy> hoelzro: but we can share credentials via http, for example, when new credentials are added we can just notify user via websocket without any data, and then he can view it on demand (ajax -> decode on server -> send ) ? good idea? We're using https already.
brennanMKE has joined #ruby
<bnagy> dEPy: don't take this the wrong way, but you are terrifying me
<nijan> bnagy, that what i consider it, formally. Although I have no idea how it is implemented.
<dEPy> bnagy: no offense taken, I'm not very good at this stuff...
<dEPy> So. any suggestions are welcome. :)
<bnagy> people who are not good at crypto should just never design systems that use it
<bnagy> it will always lead to pain
<dEPy> But I have to learn eventually if I'm gonna be using it.
<bnagy> no, you really don't
<bnagy> that's like saying you need to learn quantum mechanics in order to make fries
<nijan> So, is there any built-in way of doing it? e.g. a* -> a, aa, aaa etc.
<hoelzro> nijan: built-in? no
<dEPy> bnagy: what's your solution then?
<nijan> hoelzro, thanks.
<bnagy> hire someone who knows what they're doing
<dEPy> bnagy: not an option, we're a startup, no excess money for now.
<pontiki> then learn
<pontiki> jeepers
<bnagy> just your credential sharing concept, ignoring how you implement it, is frightening
<bnagy> you want users to put stuff in chat and then what, manually decrypt it at your end??
<dEPy> bnagy: how about giving some pointers instead?
<pontiki> why are you sharing credentials at all?
<dEPy> bnagy: not necesarly, we can use http for everything, forget about chat
noop has joined #ruby
<pontiki> if you need more security that https, use a vpn
<pontiki> vpn + https
<dEPy> beause we have clients who need stuff done on their wordpress site, and contractors who will do that, and clients most of the times give credentials for their server to the contractors
buzzybron has quit [Ping timeout: 248 seconds]
<Kelet> nijan, Assuming your regex was a*b*c*
<bnagy> o_O
<Kelet> nijan, The generate could just keep going abababababababab.. forever
buzzybron has joined #ruby
<Kelet> And you would never get anything more than that
<pontiki> but you'd get a lot of heat out of the box
<bnagy> nijan: well you could make generators for all the expansions
<nijan> Kelet, I will implement hard constraints on *
ddv has quit [Changing host]
ddv has joined #ruby
thams has quit [Quit: thams]
<bnagy> and then do a lazy cartesian product or something
<pontiki> so you don't actually want to generate *all* the matching strings
<bnagy> but you've got an ordering issue as well, as Kelet's a*b*c* highlights
<nijan> I usually distinguish the formal and the implementation plan
nopper has left #ruby [#ruby]
brennanMKE has quit [Ping timeout: 264 seconds]
<bnagy> you could google around for fuzzer data generators
<nijan> In the formal plan, I don't want to put any limit on it. The rest is an engeneeristic problem .
<bnagy> but they usually generate off a grammar that is less AWFUL than regexp
<pontiki> what is "engineeristic"
<pontiki> what are these formal plans for?
<bnagy> nijan: https://code.google.com/p/ouspg/wiki/Blab that might be interesting
<Kelet> I would probably write a tool that converts a regular expression into my internal representation of a DFA (or at least an NFA). Then, I would find all non-looping paths under my 'hard limits'. Then I would start doing somewhat of a breadth-first search on exploring the loops under my 'hard limits'.
<Kelet> But that is a naive approach
<Kelet> I'm sure someone who really knows finite automata could do much better
<Kelet> There are well-known algorithms for regex => NFA and NFA => DFA
zz_michael_mbp is now known as michael_mbp
<Kelet> Well first I would probably just think about my problem and if this is the right way to solve it
<Kelet> Because this sounds like an odd solution to a problem
* Kelet shrugs
<hoelzro> yeah, I'm still waiting to hear what this is for =)
maxmanders has joined #ruby
<L8D> Is there any way to prevent a class from overriding already existing methods?
<nijan> The hard limit will be set for reasons that I don't care about, and for reasons that concerns the implementation. The result of the generator are actually processed as soon as they are generated, and when an optimal result is met the generator stops. ababab... could not go on forever because there would be no improvement in repeating the repetition. It's more complicated than what I told you,
<nijan> but thanks for the suggestions.
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte has joined #ruby
buibex has joined #ruby
<Kelet> Assuming you try a, then ab and find it improves your result, so you expand on ab and do aba, it does not improve your result so you go to abb or something
<Kelet> Depending on the system, you might need to backtrack
<Kelet> because there's no guarantee that ab has a better result than ba despite ab improving on a
<Kelet> but I'm sure you know your system better than I :)
<nijan> I just need the best result, and then compare it with the new one that is generated. The assumption is that the generator doesn't generate the same string twice.
<L8D> anyone?
<bnagy> well there's more issues than that
<Kelet> And you're sure there is no way to infer your result besides randomly generating pieces of a language that may be infinite?
<nijan> So you will always keep the best, and if there is an improvement, you simply replace $best.
<pontiki> L8D: are you metaprogramming?
<L8D> pontiki: Kind of
<bnagy> nijan: since you're never able to explore the full input set, it's going to be an approximation, and most of the evolutionary approaches have issues - local maxima and stuff
sleetdrop has quit [Ping timeout: 268 seconds]
<L8D> More of, I don't want cheating
<bnagy> there are approaches to address them, but you have to realise they're there
<nijan> The rules for choosing the best form are unpredictable.
<pontiki> L8D: "cheating" how?
<L8D> Well, the library I'm writing is basically http://fightcodegame.com for ruby.
<nijan> And the input is unpredictable too.
ndrei has quit [Ping timeout: 276 seconds]
<pontiki> L8D: you want to prevent someone else from using metaprogramming to modify you classes?
dagobah has joined #ruby
<L8D> pontiki: no
<L8D> someone else defines a class that my program uses
<zendeavor> honor system
<L8D> Really?
<nijan> bnagy: no, because although the set of possible output is infinite in theory, I can determine the upper bound lenght
<L8D> Okay then.
<nijan> depending on the input.
<L8D> Honor system.
<bnagy> nijan: anyway, if you don't want to explain what you're doing I don't really have any more time to waste
ndrei has joined #ruby
love_color_text has joined #ruby
<zendeavor> L8D: or convolute your library/api to an unprecedented degree and no one will want to use it
<nijan> bnagy, i told you everything.
brandon__ has quit [Ping timeout: 246 seconds]
<pontiki> if a thing is to be gamed, for an individual to win, i'd hardly think it possible, or even expected, that no one would cheat
<zendeavor> there's no clear definition of what cheating involves
<L8D> okay
<pontiki> in such a scenario, relying on someone else who might be a competitor to supply a library you use would be problematic, no?
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<L8D> Well, the entire purpose of the library is for others to learn
<pontiki> unless it's all open source, and you can fork your own version to keep it known
kofno has quit [Remote host closed the connection]
<pontiki> learn what?
<L8D> ruby
sleetdrop has joined #ruby
<pontiki> then maybe if the purpose is actually learning ruby, cheating should be allowed
<bnagy> cheating should _definitely_ be allowed
<bnagy> the next generation of rails core devs need to come from somewhere
smathieu has joined #ruby
<L8D> well...
<L8D> touche
<RubyPanther> L8D: it is easy to prevent a class from over-riding a method that shouldn't be over-ridden. Just document the great reason why not to do it.
<L8D> but if it were to become competitive, cheating would be terrible
<pontiki> then learning ruby ceases to be the objective
<L8D> But that's not the case for fightcodegame.com
aryatosh has joined #ruby
<L8D> it's very competitive, and it's main purpose is for learning ruby
<L8D> I mean javascript
* Nilium hands bnagy some bucket full of medals for picking on Rails.
<RubyPanther> The problem with competing over code is that the stupidest code that works is better than the most brilliant code.
<Hanmac> RubyPanther, he could also "freeze" the class ;P
<RubyPanther> It is like competitive walking
s00pcan has quit [Read error: Connection reset by peer]
sayan has quit [Quit: Leaving]
<Nilium> I'm pretty sure competitive walking is a thing and some people take it seriously.
s00pcan has joined #ruby
<pontiki> i was waiting to hear how it is like competitive walking
<RubyPanther> I'm pretty sure coding contests are a thing, too, and some people take them seriously.
<L8D> I think if gembots actually becomes competitive and needs something to prevent cheating, I think that I could go the route of writing the methods after the user has define the class
threesome has joined #ruby
<L8D> defined* the class
troessner has joined #ruby
smathieu has quit [Ping timeout: 268 seconds]
<Nilium> I'm also not sure how one cheats at coding without just copy/pasting someone else's code.
<RubyPanther> because, you don't want to get there too fast... it is all about running, but barely enough that somebody might think "not quite." So in programming, you want to look pretty smart... but not too smart, you want your code to be surprisingly simple-minded.
<L8D> Because in that case, if the user tries to overwrite a method, the user-written method will get overwritten anyways.
<pontiki> nilium: by changing the parameters of the scoring function.
jorge_ has joined #ruby
Bry8Star{T2 has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
<pontiki> c.f. Kobayashi Maru
<zendeavor> by making your bot invincible
<Nilium> aka making it awesome
alup has joined #ruby
<zendeavor> remove collision detections
Myrth has joined #ruby
<nijan> For those interested, I just hacked it so that all * are converted to {0, n}.
<Nilium> It's not cheating, my bot exists outside of time and space and destroys everything.
<zendeavor> park your bot over the other bot like a ghost with a drill
<zendeavor> he probably only has a cannon
aantix has quit [Quit: aantix]
<nijan> That's seemed to be the easiest solution in terms of developing time, at least.
renderful has quit [Remote host closed the connection]
emergion has joined #ruby
allsystemsarego has joined #ruby
<Nilium> My bot has the drill that will pierce the heavens, or at least the other bots.
<zendeavor> i bet you were the least fun to play army men with
<RubyPanther> hanmac: class Foo; def self.omg; "ponies" end end.freeze ; puts Foo.omg ; Foo = Foo.dup ; class Foo; def self.omg; "zombies" end end ; puts Foo.omg
<pontiki> if it will pierce the heavens, it'll need to be underneath the other bots....
Coffers has joined #ruby
daidoji has quit [Ping timeout: 248 seconds]
<zendeavor> pontiki: under, over, position is relative when you're immaterial
jorge_ has quit [Ping timeout: 264 seconds]
<Nilium> I wasn't aware you could actually play army men.
<zendeavor> cowboys and indians
<Nilium> I think we had laser tag by that point.
<zendeavor> imaginary "i have projectiles and i can shoot you" games
* RubyPanther shoots Nilium, "Pew! Pew! Pew!"
<Nilium> It's hard to say you weren't hit in laser tag.
* pontiki aims her carebears at nilium
<RubyPanther> "Oh, ricochet, weak"
<Nilium> I'm allergic to carebears :|
<RubyPanther> Dude your reflective walls are really lame, man.
<zendeavor> "nuh uh bullets cant ricochet off a people"
<Nilium> why cat, why did you just stick your claws in my foot
<sevenseacat> Nilium: sudden urge.
freerobby has joined #ruby
sarkis has quit [Ping timeout: 256 seconds]
niceguyjames has joined #ruby
michael_mbp is now known as zz_michael_mbp
wargasm has quit [Ping timeout: 248 seconds]
timonv has joined #ruby
hogeo has joined #ruby
louism2wash has joined #ruby
freerobby has quit [Ping timeout: 245 seconds]
apeiros has joined #ruby
noname001 has joined #ruby
dhruvasagar has joined #ruby
ybart has joined #ruby
joonty has quit [Quit: WeeChat 0.3.7]
sarkis has joined #ruby
Al_ has joined #ruby
elaptics is now known as elaptics`away
ckrailo has quit [Quit: Computer has gone to sleep.]
Gooder has joined #ruby
rshetty has joined #ruby
nari has quit [Ping timeout: 245 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
fixl has joined #ruby
<rickruby> how does ruby travels a 2d array ? array[0][2] would be first element in the first row, then 2 columns down ?
Hanmac1 has joined #ruby
cha1tanya has quit [Ping timeout: 264 seconds]
<rickruby> trying to scan an array of arrays top down then advance to the next column
<nijan> a = [0,1,2,3][0,1,2,3] -> 2
nijan has quit []
Hanmac has quit [Ping timeout: 264 seconds]
gstamp has quit [Quit: Computer has gone to sleep.]
<Xeago> rickruby: ruby does not think in rows or columns
<rickruby> for i in 0...@grid_values.count
<rickruby> for j in 0...@grid_values.count
<rickruby> puts @grid_values[j][i]
<rickruby> end
<rickruby> end
<rickruby> I get it to work that way, but confused because its in reverse of how I think it would be
<hoelzro> for loops aren't really idomatic ruby
<rickruby> [i][j] but instead I must go [j][i] to move top down, then left right
workmad3_ has joined #ruby
<hoelzro> also, that'll only work if the 2d array is square
<rickruby> yes 9x9 grid
<hoelzro> I would create methods for each_row/each_column
<rickruby> trying to brute force a sudoku puzzle
<hoelzro> I see
<rickruby> why does [j][i] move top down, left right, and not [i][j] though ?
joonty has joined #ruby
<Hanmac1> rickruby try to replace for with each or each_with_index … its more the rubyway
<Xeago> it really depends on how you built it
<Xeago> as ruby does not have a concept of multi-dimensional arrays - you will have to handle that yourself and you probably initialize it different than what you expect
lkba has joined #ruby
<Hanmac1> Xeago ruby stdlib has Matrix class but i didnt use it often
workmad3_ has quit [Client Quit]
<Xeago> gotcha, sorry xD
<Xeago> [[1,2,3],[4,5,6],[7,8,9]] vs [[1,4,7],[2,5,8],[3,6,9]]
<rickruby> yes I am using the first way
Astral_ has joined #ruby
<rickruby> and getting confused about why I'm reversing j and i
Nei has joined #ruby
DaniG2k has joined #ruby
Spooner has joined #ruby
postmodern has quit [Quit: Leaving]
<rickruby> oh I think i see
<Xeago> you want to print 1,2,..,8,9 right
<rickruby> [[1,2,3],[4,5,6],[7,8,9]] so if I want to print 1, 4, 5 then 2, 5, 8 then 3, 6, 9
<rickruby> for i 0...arr.count for j 0...arr.count
postmodern has joined #ruby
Astralum has quit [Ping timeout: 248 seconds]
maxmanders has quit [Quit: Textual IRC Client: www.textualapp.com]
<rickruby> puts [j][i] because j is accessing the elements in the outer array
<Hanmac1> arr.map(&:first)
<rickruby> [0][0] would be 1 then [1][0] would be 4 right ?
<rickruby> so I should think of it as [outer array][inner array]
ntus1017 has quit [Remote host closed the connection]
bondar has joined #ruby
goleldar has quit [Ping timeout: 264 seconds]
elaptics`away is now known as elaptics
bondar has quit [Excess Flood]
bondar has joined #ruby
bondar has quit [Client Quit]
<Nilium> >> [[1,2,3],[4,5,6],[7,8,9]].map(&:each).cycle(3).map(&:next).each_slice(3).map { |a| a.join ', ' }
<eval-in> Nilium => ["1, 4, 7", "2, 5, 8", "3, 6, 9"] (https://eval.in/38306)
<Nilium> I do not claim that this is sane.
<rickruby> oh man
mikecmpbll has joined #ruby
rdark has joined #ruby
<rickruby> just realized there is an array method to do what i was trying to do
<rickruby> swap columns with rows
<Nilium> Is there one for that?
<Nilium> Oh yeah, transpose
<rickruby> yeah
<Nilium> And to think earlier I was harping on about knowing Array's methods
<Nilium> Along with Enumerable
maxmanders has joined #ruby
marcdel has joined #ruby
<anildigital> Somehow this script is not streaming image to browser as expected https://gist.github.com/anildigital/6052241#file-config-ru
cj3kim has quit [Remote host closed the connection]
hamed_r has joined #ruby
ghr has joined #ruby
marr has joined #ruby
ephemerian has joined #ruby
zz_michael_mbp is now known as michael_mbp
maroloccio has quit [Quit: WeeChat 0.4.0]
io_syl has quit [Quit: io_syl]
Myrth has quit [Ping timeout: 256 seconds]
YaNakilon has joined #ruby
timonv has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
ybart has quit [Quit: ybart]
ybart has joined #ruby
sheeny has joined #ruby
michael_mbp is now known as zz_michael_mbp
<sheeny> Hi all, is there a way I can make an array of strings into instance variables?
<sheeny> ["a","b","c"].each do |field| ?? end
zz_michael_mbp is now known as michael_mbp
<joonty> sheeny: what are their values though? Do you have them in another array, or are you setting them to a default value?
<Hanmac1> sheeny you cant and you should not
Zai00 has joined #ruby
<joonty> hanmac1: well you can, but you shouldn't :)
krainboltgreene has joined #ruby
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zai00 has quit [Client Quit]
aryatosh has quit [Ping timeout: 264 seconds]
<sheeny> Im using RubyMotion to create an iOS app and when clicking a button i need to get the text from various text fields. Now the books say to use @instance.text to get them
Zai00 has joined #ruby
<sheeny> and to save time when I am putting the text fields onto the page I am using an array of strings
michael_mbp is now known as zz_michael_mbp
smathieu has joined #ruby
<joonty> this problem sounds like it's steeped in ruby motion context, which i know nothing about
<joonty> but i can pretty much guarantee that there's a better way than setting instance variables from strings - I'm not even sure that would work from your description
<joonty> sorry i can't help more though
* Hanmac1 would not trust an ruby interpreter where you need to pay for
<sheeny> Yeah i have only started using it myself and even though there is a pragprog book which i've looked through it annoyingly doesnt seem to cover this
<sheeny> Ill look for an alternative way
<sheeny> maybe using some way of creating the views
<sheeny> thanks for the help anyway :)
shaunbaker has joined #ruby
smathieu has quit [Ping timeout: 245 seconds]
jorge_ has joined #ruby
shaunbak_ has joined #ruby
sheeny has quit [Quit: Page closed]
kasper has joined #ruby
<Xeago> Is this correct english? "…, it is not expected to change after all."
shaunbaker has quit [Ping timeout: 245 seconds]
noop has quit [Ping timeout: 256 seconds]
<illa> I would say.. The expected behaviour is for it not to change
blackmesa has joined #ruby
<illa> but i'm not shakespeare
<Xeago> thanks
cha1tanya has joined #ruby
krainboltgreene has quit [Ping timeout: 264 seconds]
locriani has quit [Remote host closed the connection]
zeel has joined #ruby
jorge_ has quit [Ping timeout: 276 seconds]
locriani has joined #ruby
dash_ has joined #ruby
nayfun has quit [K-Lined]
illa has quit [Remote host closed the connection]
freerobby has joined #ruby
timonv has joined #ruby
axeman- has joined #ruby
heftig has quit [Quit: Quitting]
locriani has quit [Ping timeout: 264 seconds]
ExxKA has joined #ruby
maasha has joined #ruby
<maasha> what is the favored gem to deal with tar.gz files?
HardFu has joined #ruby
atno has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
renderful has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
himsin has quit [Quit: himsin]
BizarreCake has joined #ruby
<rickruby> I'm trying to check an array of values, and if the number I'm generating is not already in use, use that random number to replace a (zero) in the array
<rickruby> scratch_pad_grid[j][i] = random_number if scratch_pad_grid[i].each {|num| num != random_number}
<rickruby> unfortunately im still getting duplicate values
<Xeago> I don't think you would want to use each for that
aaronmcadam has joined #ruby
<Xeago> use all? or any?
<apeiros> `scratch_pad_grid[i].each {|num| num != random_number}` is an expression which is always true-ish
<apeiros> because it will always return `scratch_pad_grid[i]` (which is neither nil nor false, hence true-ish)
<Xeago> each enumerates over the enumerable and returns the original enumerable
<rickruby> oh i see
<Xeago> all? and any? can be used with the block functioning as a predicate
<rickruby> thanks I will look those up
sevenseacat has left #ruby [#ruby]
<rickruby> getting closer..!
renderful has quit [Ping timeout: 264 seconds]
<apeiros> also, see Array#include?
<apeiros> no need to do the loop yourself
lkba has quit [Ping timeout: 246 seconds]
<apeiros> and not to have omitted this: searching by iterating over the whole datastructure is inherently slow. consider using another datastructure. e.g. Set#include? is vastly faster than Array#include? (the more data the bigger the difference)
razi has joined #ruby
noop has joined #ruby
<rickruby> yes im having big issues with crunch time
<rickruby> awesome, i will also check that out
Nei has left #ruby [#ruby]
jibi has joined #ruby
<apeiros> ah
sleetdrop has joined #ruby
BRMatt has joined #ruby
trepidaciousMBR has joined #ruby
kirun has joined #ruby
<Xeago> you could use group/set-logic to help with your operations
<apeiros> you could use binary set logic, probably the fastest :)
nomenkun has joined #ruby
gyre007 has joined #ruby
<rickruby> do you mean the operators such as && || ?
<apeiros> no
<rickruby> sorry not familiar with the terms
<apeiros> those are logical and/or
himsin has joined #ruby
<Xeago> L1 ∩ L2 ⊆ P
<apeiros> I think in your case it's probably best if you stick to Set, Hash and Array
tkuchiki has joined #ruby
<apeiros> <3 unicode
<Xeago> used them last night with some crypto stuff, still had it on my clipboard
gyre007 has quit [Remote host closed the connection]
tkuchiki_ has quit [Ping timeout: 240 seconds]
<rickruby> oh wow okay yes I faintly remember those from a college algebra course heh
<joonty> apeiros: any good resources for reading up about those?
<apeiros> joonty: um, without anything specific - ri
<apeiros> or if you prefer the browser, then rdoc.info (stdlib -> core)
<joonty> ah i meant more in general, but i'll take a look
emergion has quit [Quit: Computer has gone to sleep.]
<rickruby> what class would contain the set logic operators ? looking through core documentation but not sure what it would be named
<tobiasvl> Set
ewnd9 has joined #ruby
<rickruby> Oh
<rickruby> I see its in stdlib
<tobiasvl> y
<rickruby> heh I was looking in core classes
amacgregor_ has joined #ruby
<apeiros> ah, yeah, sorry, should have said that
<apeiros> Hash/Array are core, Set/SortedSet are stdlib
anay has joined #ruby
amacgregor has quit [Ping timeout: 246 seconds]
DaniG2k has quit [Quit: Leaving.]
locriani has joined #ruby
noop has quit [Ping timeout: 268 seconds]
gyre007 has joined #ruby
CubicE has joined #ruby
mneorr has joined #ruby
locriani has quit [Ping timeout: 264 seconds]
arturaz has joined #ruby
anildigital is now known as anildigital_away
dash_ has quit [Quit: Time to beer :)]
Mon_Ouie has joined #ruby
b0oh has joined #ruby
adambeynon has joined #ruby
TheNumb_ is now known as TheNumb
TheNumb has joined #ruby
TheNumb has quit [Changing host]
jbpros has joined #ruby
cek has joined #ruby
cek has quit [Client Quit]
noop has joined #ruby
<CubicE> Is there some equivalent of a,*b = some_array; a.product(*b) without creating additonal local variables?
<hoelzro> 1.product(*some_array)?
Shirakawasuna has quit [Ping timeout: 264 seconds]
AlSquire has joined #ruby
buibex has quit [Remote host closed the connection]
<CubicE> hoelzro: What's that supposed to do?
urbanmonk has joined #ruby
AllStruck has quit [Ping timeout: 260 seconds]
Norrin has quit [Ping timeout: 260 seconds]
G has quit [Ping timeout: 260 seconds]
jbpros has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
jbpros has joined #ruby
AllStruck has joined #ruby
G has joined #ruby
smathieu has joined #ruby
<bsdbandit> ls
<bsdbandit> oops wrong window
avril14th has quit [Ping timeout: 264 seconds]
amacgregor_ has quit [Ping timeout: 246 seconds]
<hoelzro> CubicE: by product you mean a * b * c, right?
<CubicE> I mean Array#product of course
cj3kim has quit [Ping timeout: 240 seconds]
avril14th has joined #ruby
<CubicE> [1,2].product [3,4] #=> [[1,3],[2,4]]
<CubicE> no thats wrong
tonini has quit [Remote host closed the connection]
<CubicE> #=> [[1,3],[1,4],[2,3],[2,4]]
<hoelzro> >> (1..10).to_a.product
<eval-in> hoelzro => [[1], [2], [3], [4], [5], [6], [7], [8], [9], [10]] (https://eval.in/38307)
<hoelzro> apparently I don't know what Array#product does =/
smathieu has quit [Ping timeout: 248 seconds]
<CubicE> cartesian product of its arguments and the receiver
<hoelzro> oh, it's zip
<hoelzro> hmm
<hoelzro> no, not quite
Norrin has joined #ruby
fermion has joined #ruby
emergion has joined #ruby
apeiros has quit [Remote host closed the connection]
kayloos has joined #ruby
pupoque has quit [Quit: Leaving.]
ewnd9 has quit [Ping timeout: 246 seconds]
freerobby has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 246 seconds]
kasper has quit [Remote host closed the connection]
colonolGron has joined #ruby
colonolGron has quit [Client Quit]
ndrei has quit [Ping timeout: 276 seconds]
xcv has joined #ruby
matthewrobbins has joined #ruby
<Xeago> What naming convention is recommended for naming files?
<Xeago> CamelCase or snake case?
dagen has quit []
Domon has quit [Remote host closed the connection]
maz-dev has joined #ruby
<zendeavor> files? i hate capitals in my filenames
Hanmac2 has joined #ruby
darth_chatri1 has quit [Quit: Leaving.]
blackmesa has quit [Ping timeout: 240 seconds]
<e-dard> Hi I'm thinking that dynamic method calling is generally slow, right? Is there a big difference between self.send("#{a}_#{b}", value) and if a == "foo" && b == "bar"; foo_bar(value); end ??
Hanmac1 has quit [Ping timeout: 264 seconds]
rshetty has quit [Quit: Sleeping]
darth_chatri has joined #ruby
love_color_text has joined #ruby
tk_ has joined #ruby
axeman- has quit [Remote host closed the connection]
apeiros has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
ewnd9 has joined #ruby
b0oh has quit [Quit: Leaving.]
maz-dev has quit [Ping timeout: 246 seconds]
buzzybron has left #ruby [#ruby]
tonini has joined #ruby
shaunbak_ has joined #ruby
icecandy has joined #ruby
jalcine has quit [Excess Flood]
ewnd9 has quit [Ping timeout: 246 seconds]
matthewrobbins is now known as mcrmfc
<Spooner> Xeago, snake case of the class/module name in the file.
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Spooner> e-dard, It is probably slower, but really doubtful that it will matter (premature optimisation is the root of all evil!).
<Spooner> e-dard, Also: foo_bar value if a == "foo" && b == "bar"
mcrmfc has quit [Read error: Operation timed out]
<e-dard> Well if it's milliseconds it matters a lot. This is as part of the request/response cycle
ismlages has joined #ruby
* e-dard is going to go benchmark :)
Spami has quit [Quit: This computer has gone to sleep]
anonymuse has joined #ruby
rshetty has joined #ruby
lkba has joined #ruby
amacgregor has joined #ruby
nfk has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
kasper_ has joined #ruby
kevinykchan has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jbpros has quit [Quit: jbpros]
<bsdbandit> sinatra is pretty cool
zaphrentidae12 has quit [Quit: zaphrentidae12]
<kasper_> bsdbandit: yup
kizzx2 has quit [Quit: Leaving.]
* bsdbandit is a python coder trying to learn ruby
<zendeavor> you've been over that already
<kasper_> welcome to the Ruby world :-)
_Andres has quit [Quit: jazz]
<bsdbandit> thanks
<bsdbandit> :)
Hanmac2 has quit [Quit: Leaving.]
Domon has joined #ruby
procarps60 has joined #ruby
Giorgio has joined #ruby
mneorr has quit [Remote host closed the connection]
moos3 has joined #ruby
_Andres has joined #ruby
marr has quit [Read error: Connection reset by peer]
joonty_ has joined #ruby
joonty has quit [Ping timeout: 276 seconds]
locriani has joined #ruby
pygospa has quit [Disconnected by services]
TheRealPygo has joined #ruby
gildo has joined #ruby
mneorr has joined #ruby
freerobby has joined #ruby
viszu has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
locriani has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
mneorr has quit [Remote host closed the connection]
b0oh has joined #ruby
Hanmac1 has joined #ruby
blaxter_ is now known as blaxter
b0oh has quit [Client Quit]
tvw has joined #ruby
jalcine has joined #ruby
shaunbaker has joined #ruby
freerobby has quit [Ping timeout: 248 seconds]
Domon has quit [Remote host closed the connection]
stormbytes has joined #ruby
henrysource has quit [Remote host closed the connection]
shaunbak_ has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
Astral_ has quit [Ping timeout: 246 seconds]
Astralum has joined #ruby
CubicE has quit [Ping timeout: 248 seconds]
manutter has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
atmosx has joined #ruby
<atmosx> hello
jprovazn has quit [Quit: Leaving]
platoscave has quit [Quit: http://www.eradicategatesfoundation.com/]
denver has joined #ruby
realDAB has joined #ruby
r0bglees0n has joined #ruby
smathieu has joined #ruby
kayloos has quit [Remote host closed the connection]
ffio has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
amacgregor has quit [Ping timeout: 276 seconds]
_ffio_ has quit [Ping timeout: 268 seconds]
smathieu has quit [Ping timeout: 276 seconds]
jibi has quit [Quit: .]
kevinykchan has joined #ruby
zomgbie_ has quit [Read error: Connection reset by peer]
zomgbie has joined #ruby
heftig has joined #ruby
bryjbrown has joined #ruby
icecandy has quit [Remote host closed the connection]
jp- has quit [Read error: Operation timed out]
postmodern has quit [Quit: Leaving]
kofno has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
jprovazn has joined #ruby
tobin has joined #ruby
sayan has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
S0da has joined #ruby
nkts has quit [Read error: Connection reset by peer]
nkts has joined #ruby
pranny has quit [Quit: Leaving.]
bryjbrown has quit [Ping timeout: 246 seconds]
darth_chatri has quit [Quit: Leaving.]
sleetdrop has quit [Ping timeout: 246 seconds]
<rickruby> if (scratch_pad_grid[i].sort == answer_array and transposed_scratch_pad_grid[i].sort == answer_array)
<rickruby> seems to keep passing even though the 2nd operation is false
<rickruby> how can I make it so: if true and true then do stuff
<bnagy> try &&
_bart has joined #ruby
<bnagy> in general, you probably don't want to use and in conditionals
arya_ has joined #ruby
jbpros has joined #ruby
<rickruby> still passes with &&
<bnagy> change your braces
<bnagy> if that doesn't work then you're mistaken about the true status of one of those things
<rickruby> if (scratch_pad_grid[i].sort == answer_array) && (transposed_scratch_pad_grid[i].sort == answer_array)
<rickruby> answer_array is an array that is [1, 2, 3, 4, 5, 6, 7, 8, 9] but when that if statement passes, the faulty value looks like [2, 2, 3, 4, 5, 6, 7, 8, 9]
wallerdev has joined #ruby
<bnagy> by 'passes' you mean the if sub clause executes?
louism2wash has quit [Quit: This computer has gone to sleep]
matthewrobbins has joined #ruby
ldnunes has joined #ruby
<rickruby> yup
matthewrobbins is now known as mcfmfc
<rickruby> here is the code in case it helps: https://github.com/rickarubio/sudoku_solver
arya_ has quit [Ping timeout: 268 seconds]
<bnagy> ok well then you're just mistaken
kirun_ has joined #ruby
<bnagy> before that if, do p answer_array;p scratch_pad_grid[i].sort;ptransposed_scratch_pad_grid[i].sort
<bnagy> and pastie the output
<bnagy> like one line before
<rickruby> okay
<rickruby> answer array [1, 2, 3, 4, 5, 6, 7, 8, 9]
<rickruby> scratch_pad_grid [1, 2, 3, 4, 5, 6, 7, 8, 9]
zz_pinage404 has quit [Quit: Screw you guys i'm going home ! KMP ! ZNC - http://znc.sourceforge.net]
mcfmfc is now known as mcrmfc
maz-dev has joined #ruby
kirun has quit [Ping timeout: 276 seconds]
<rickruby> transposed_scratch_pad_grid [1, 1, 3, 4, 5, 6, 7, 8, 9]
yfeldblum has joined #ruby
<bnagy> so.. they're not the same
<rickruby> yes, and sometimes it works, sometimes it doesnt
<rickruby> driving me insane heh
<rickruby> should be the correct values http://www.sudokukingdom.com/images/BlockTutorSolve.gif
<bnagy> well.. if they're not the same then the if thing isn't going to execute
pinage404 has joined #ruby
<rickruby> the if clause controls the counter, which controls when the program ends. not sure how it is still incrementing even though the if clause should be evaluating to false and not running the counter code
<bnagy> you're probably counting correct rows twice
<rickruby> !
locriani has joined #ruby
<rickruby> omg genius
<rickruby> that is it
mcrmfc has left #ruby [#ruby]
<rickruby> I have it nested in an another loop
<rickruby> until puzzle_row_complete_counter >= 9 # because there are 9 rows
<rickruby> its just double counting some of the correct rows
<Xeago> rickruby: it is uncommon to use >= 9 with unless
<bnagy> try an drefactor the whole damn thing to use until transposed_blah[i].all? {|row| row == correct} && blah.all? {|row| row == correct
<Xeago> why not use while xyz < 9
carloslopes has joined #ruby
<bnagy> or just put that into a method called solved?
<bnagy> until solved? ...
<rickruby> yeah that sounds good
<rickruby> will probably sleep on these new revelations.. been at this for 8 hours
freerobby has joined #ruby
<rickruby> thought i was close to solving the puzzle heh
nkts has quit [Ping timeout: 256 seconds]
<bnagy> I think you're pretty close
S0da has quit [Remote host closed the connection]
<bnagy> although your method is hilarious :)
lurid_ has left #ruby [#ruby]
locriani has quit [Ping timeout: 264 seconds]
krz has quit [Quit: krz]
<Xeago> are you bruteforcing it?
<Xeago> instead of following rules?
icecandy has joined #ruby
<rickruby> bruteforcing was the idea
<Xeago> I implemented it some years ago
<bnagy> I'm pretty sure it's not going to work for some puzzles
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
<rickruby> im a noob.. my code is hideous lol :)
<Xeago> did take a rulesbased approach for it tho
<bnagy> like there are some cells that aren't going to be decidable on this iteration
nkts has joined #ruby
<bnagy> and I think you're infinite looping them
TonyMergue has joined #ruby
<bnagy> you may as well iterate 1...10 and then give up and try later
icecandy has quit [Remote host closed the connection]
tobin has quit [Quit: tobin]
<bnagy> then after that all you would need is a guess for the branchy ones
<zendeavor> spoilers
yshh has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 264 seconds]
<bnagy> zendeavor: dunno, never written it
cads has quit [Ping timeout: 240 seconds]
<bnagy> I just nerd on algorithms sometimes
<zendeavor> =]
<rickruby> yea I might have to rewrite the whole thing and take a different approach
realDAB has quit [Quit: realDAB]
fgo has quit [Remote host closed the connection]
tobin has joined #ruby
<zendeavor> rickruby: realizing that is a step in the right direction; hopefully you could do so before casting 8 hours into a void
<rickruby> mmm I wouldn't say a void
<zendeavor> you learned some other things in the process
<rickruby> learned about some stuff I hadn't used before
patki has joined #ruby
Astral_ has joined #ruby
<rickruby> but yes I think some kind of strategy
niceguyjames has joined #ruby
Astralum has quit [Ping timeout: 245 seconds]
<patki> hi
<zendeavor> rickruby: contemplate your problem before you write any code, and work out as much as you can on paper first; then the code is easy.
darth_chatri has joined #ruby
<zendeavor> if you can't imagine a solution through the method you pen, then you probably can't imagine it through code either
<bnagy> rickruby: you could do a really sweeeet genetic algorithm solution
eka has joined #ruby
ndrei has joined #ruby
<bnagy> cause the fitness function is how close the sum(rows) + sum(cols) is to 45 X 18
<rickruby> yea good idea, and i'll have to lookup what genetic algorithm is
<bnagy> then just fill in random shit :P
<bnagy> hmm no you'd need extra constraints
<bnagy> but along those lines
TradeRaider has joined #ruby
<bnagy> maybe cumulative diff of all rows / cols from 45 each
<bnagy> bias toward filling empties
<bnagy> ok sorry I will stop now
<zendeavor> sukodu solvers are an awesome programming exercise because they're just about the mathematical relationships between 9 digits
<zendeavor> in a very constrained box of rules
cads has joined #ruby
<Xeago> rickruby: I would recommend a rule-based solver
<bnagy> girl
<Xeago> the reason for this is that it follows your own train of thought
nari has joined #ruby
chase-work has joined #ruby
JZTech101 has joined #ruby
<zendeavor> write several.
pranny has joined #ruby
<bnagy> if I wanted to solve it with rules I would do it myself
<bnagy> computers are like mexicans
<bnagy> just get more
Zespre_ has quit [Quit: leaving]
_droid has joined #ruby
<zendeavor> ehhh, still inappropriate
Zespre has joined #ruby
<bnagy> little bit, yeah, I guess
bryjbrown has joined #ruby
<zendeavor> plus that's an awful way to think about computers
dhruvasagar has quit [Ping timeout: 245 seconds]
<zendeavor> i mean mexicans
<zendeavor> >___________________>
wallerdev has quit [Quit: wallerdev]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<bnagy> some of my best friends are computers
<bnagy> I am totally not that way
<zendeavor> me too, definitely. they even let me call them cpus sometimes.
ericson has joined #ruby
smathieu has joined #ruby
jbpros has quit [Quit: jbpros]
<rickruby> thank you guys for the help on sudoku program, i'll give it another shot later tonight
TradeRaider_ has joined #ruby
rickruby has quit [Remote host closed the connection]
Nisstyre has quit [Quit: Leaving]
<bnagy> de nada cabron
<TradeRaider_> Hi. I want to construct an if statement that does something like if a== b or a==c, it should return true. What would be the code for that in ruby?
TradeRaider has quit [Ping timeout: 250 seconds]
kayloos has joined #ruby
TradeRaider_ is now known as TradeRaider
timonv has quit [Remote host closed the connection]
<bnagy> TradeRaider_: something like if a== b or a==c
bryjbrown has quit [Remote host closed the connection]
sumark has quit [Remote host closed the connection]
pranny has quit [Quit: Leaving.]
jbpros has joined #ruby
dawkirst has joined #ruby
mikecmpbll has joined #ruby
<TradeRaider> bnagy: I tried it in console and it doesn't work.
mexirean has joined #ruby
sumark has joined #ruby
<avril14th> bnagy: a == b || a == c
<avril14th> be careful
smathieu has quit [Ping timeout: 264 seconds]
<bnagy> >> a=1;b=0;c=1;puts "woo" if a==b or a==c
<eval-in> bnagy => woo ... (https://eval.in/38354)
<avril14th> with "or" and "and"
<bnagy> avril14th: thanks for your concern
<bnagy> but I do actually know the precedence rules
devoldmx3 has joined #ruby
JohnBat26 has joined #ruby
Zespre has quit [Quit: leaving]
<TradeRaider> Ah. never mind. I used them on strings and forgot to close the ' '.
<bnagy> \o/
<TradeRaider> Silly me.
dagobah_ has joined #ruby
<avril14th> except I'm not refering to precedences
<avril14th> but to "or" operator versus "||" operator
Zespre has joined #ruby
<bnagy> the onyl difference is binding
niklasb has joined #ruby
<bnagy> you can quite merrily use and / or in conditionals
angusigu1ss has joined #ruby
alienaut has joined #ruby
p0wn3d has joined #ruby
<bnagy> that blog post is a) old and b) ... conservative
<avril14th> you sure can
<bnagy> it makes a case for 'never use and / or' which is overstated
<alienaut> is it always "if not" equals to "unless"
<avril14th> I do use or and and
dagobah has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 268 seconds]
cam`_ has quit [Ping timeout: 264 seconds]
<avril14th> whatever, sorry for interrupting
caleon has quit [Ping timeout: 240 seconds]
karnowski has quit [Ping timeout: 264 seconds]
ericson has left #ruby [#ruby]
<alienaut> my head blowns when i use "unless" with "else" statement
dimension has joined #ruby
u- has quit [Ping timeout: 260 seconds]
u- has joined #ruby
angusiguess has quit [Ping timeout: 240 seconds]
Zespre has quit [Client Quit]
enebo has joined #ruby
j416 has joined #ruby
Zespre has joined #ruby
<bnagy> unless else is fine.. it just depends what you want to emphasise
buibex has joined #ruby
<bnagy> unless horrible_unlikely_event; do_good_thing; else; fail "OMG"; end
<Hanmac1> alienaut & avril14th "if not" and "unless" are not 100% equal but similar enougth
love_color_text has quit [Read error: Connection reset by peer]
pupoque has joined #ruby
<Hanmac1> unless ignores when an object overwrites the "!" method … "if not" does not ignore it
alem0lars has joined #ruby
TradeRaider has quit [Ping timeout: 250 seconds]
arturaz has quit [Remote host closed the connection]
<Hanmac1> but overwriting the "!" method is a very bad habbit and should be avoided
Beoran__ has quit [Read error: Connection reset by peer]
illa has joined #ruby
ericson has joined #ruby
<alienaut> yea, i think it is better better assign data to a new variable when you make changes
TradeRaider has joined #ruby
timonv has joined #ruby
sleetdrop has joined #ruby
<Hanmac1> alienaut: hm no i dont mean methods like "gsub!" … i mean the actual "!" method … wich is called when you do "if not obj"
fredjean has quit [Ping timeout: 240 seconds]
<alienaut> hmm you mean "unless !true" wont work?
devoldmx3 has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<Hanmac1> Xeago, looks valid for me
Deele has quit [Ping timeout: 240 seconds]
<Xeago> looks so weird to have assignment from a try-catch block in other languages
xcthulhu has joined #ruby
blackmesa has joined #ruby
<Hanmac1> >> class A; def !; p "neg"; true; end;end; unless A.new; p "code"; end
<eval-in> hanmac1 => nil (https://eval.in/38358)
<Hanmac1> >> class A; def !; p "neg"; true; end;end; if not A.new; p "code"; end
<eval-in> hanmac1 => "neg" ... (https://eval.in/38359)
ericson has quit [Remote host closed the connection]
jp- has joined #ruby
wuest_ is now known as wuest
<Xeago> hanmac1: that is not equivalent but I get the idea
<avril14th> >> (1..3).map { |i| v /= 26 if i > 1; (65.+ (v % 25)).chr}.join
<eval-in> avril14th => undefined method `%' for nil:NilClass (NoMethodError) ... (https://eval.in/38360)
<Xeago> (nil should be CURRENCIES_MERCHANTS["OTHER"])
<avril14th> ahah funny bot
obs has quit [Quit: Konversation terminated!]
swordsmanz has joined #ruby
<bnagy> what's funny?
<bnagy> you didn't define v
<Hanmac1> Xeago: yeah i thought about that but what if user respond to territoy but then it does not have a value inside the hash?
jalcine has quit [Excess Flood]
TradeRaider has quit [Quit: Page closed]
matti has quit [Read error: Connection reset by peer]
gyre007 has quit [Remote host closed the connection]
<Xeago> hanmac1: if it does not have a value it should assign CURRENCIES_MERCHANTS["OTHER"]
<Hanmac1> Xeago: yeah, thats what my code does
SHyx0rmZ has joined #ruby
yalue has joined #ruby
<avril14th> bnagy: the bot is funny, didn't know there was an eval in here that's all. just random code I posted
bamdad has joined #ruby
<bnagy> Xeago: just ignore hanmac1 he's insane
obs has joined #ruby
<bnagy> I mean he's _correct_ but still insane
<Xeago> no it is actually sane
<Xeago> and I did miss it
marr has joined #ruby
devoldmx has quit [Ping timeout: 248 seconds]
<Hanmac1> bnagy i am "totally" sane, i have a paper that says that ,P
<Xeago> hanmac1: just one question
<bnagy> .. how did that come up?
<Xeago> @user is an AR model, not sure if it uses method_missing or other weird shenanigans to get a value for territory
<Xeago> (working with code from other parties that is in development and making my own robust)
<bnagy> Xeago: the thing I think is bad is the assumption that you can just assign OTHER when user doesn't respond to territory or whatever method
<Xeago> if it works via method_missing, my version works, does yours?
<Xeago> bnagy: it is a valid assumption in our usecase
<bnagy> how?
<bnagy> like if it's nil I understand
jalcine has joined #ruby
<Xeago> if they don't have a territory assigned they operate in the default territory we operate
<Xeago> we _have_ to pass on the territory to other parts of the system
<Hanmac1> Xeago if AR is not an totally piece of Shit then they should have overwritten "respond_to_missing?" and with that respond_to? should work
<bnagy> but if it doesn't respond to that method at all something is screwed
<Xeago> that deal with geo-restricted licensing
<bnagy> it's exception swallowing, in a bad way, on the face of it
Beoran__ has joined #ruby
<Xeago> worse, it is an error
<Xeago> not an exception
BizarreCake has joined #ruby
arya_ has joined #ruby
cads has quit [Ping timeout: 246 seconds]
jalcine has quit [Client Quit]
enebo has quit [Quit: enebo]
nezumi has quit [Ping timeout: 264 seconds]
mark_locklear has joined #ruby
Asher has quit [Read error: Connection reset by peer]
cads has joined #ruby
r0ber has quit [Quit: Saliendo]
arya_ has quit [Remote host closed the connection]
gyre007 has joined #ruby
msuszczy has joined #ruby
patki has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
kirun_ has quit [Read error: Operation timed out]
jonathanwallace has quit [Quit: WeeChat 0.4.0]
browndawg1 has quit [Quit: Leaving.]
freerobby has joined #ruby
tobin has quit [Quit: tobin]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jonathanwallace has joined #ruby
jerius has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
BRMatt has quit [Ping timeout: 248 seconds]
cads has quit [Ping timeout: 256 seconds]
freeayu3 has quit [Ping timeout: 264 seconds]
pipework has quit [Remote host closed the connection]
freeayu3 has joined #ruby
freerobby has quit [Ping timeout: 256 seconds]
himsin has quit [Quit: himsin]
cha1tanya has quit [Ping timeout: 264 seconds]
shaunbaker has joined #ruby
breakingthings has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
nari has quit [Quit: Ex-Chat]
urbanmonk has joined #ruby
shaunbaker has quit [Read error: Connection reset by peer]
shaunbaker has joined #ruby
xardas has joined #ruby
xardas has quit [Changing host]
xardas has joined #ruby
burlyscudd has joined #ruby
urbanmonk has quit [Client Quit]
burlyscudd has quit [Client Quit]
sarkis has quit [Ping timeout: 256 seconds]
homelinen has quit [Ping timeout: 240 seconds]
yshh has joined #ruby
thatRD has joined #ruby
kirun_ has joined #ruby
yxhuvud has joined #ruby
homelinen has joined #ruby
j416 has left #ruby ["o/"]
smathieu has joined #ruby
v0n has joined #ruby
pupoque has quit [Quit: Leaving.]
davedev24 has joined #ruby
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
joonty_ has quit [Quit: WeeChat 0.4.1]
yshh has quit [Ping timeout: 245 seconds]
joonty has joined #ruby
burlyscudd has joined #ruby
anonymuse has quit [Remote host closed the connection]
twinkleH1od is now known as twinklehood
freeayu3 has quit [Remote host closed the connection]
anonymuse has joined #ruby
sheeny has joined #ruby
fernandoaleman has joined #ruby
buibex has quit [Remote host closed the connection]
dimension has left #ruby [#ruby]
geekbri has joined #ruby
smathieu has quit [Ping timeout: 248 seconds]
andrew565 has joined #ruby
sambao21 has joined #ruby
<sheeny> Hi all, More advice than anything.. I am making some apps in work and they need to be able to "upload" the results as such. Basically its just a simple AR type model and children (gas_assessment has many wells.) I am planning on creating a web facing app which will receive this upload and then they will be able to view the results on their too. I was just wondering what would be the best way to go about doing an upload like that?
<Hanmac1> sheeny: isnt that more an #rubyonrails question?
<sheeny> hmm not really - the apps are iOS
<sheeny> using RubyMotion
keanehsiao has joined #ruby
hamed_r has quit [Ping timeout: 240 seconds]
r_b00f has joined #ruby
<Hanmac1> sheeny: but the rails guys may know more about AR than we
<sheeny> okay will ask there
<sheeny> thanks
rshetty has quit [Quit: Sleeping]
sheeny has quit [Client Quit]
hamed_r has joined #ruby
mmitchel_ has joined #ruby
anonymuse has quit [Ping timeout: 276 seconds]
tobin has joined #ruby
arya_ has joined #ruby
darth_chatri has quit [Ping timeout: 245 seconds]
darth_chatri has joined #ruby
illa has quit [Quit: Leaving]
andrew565 has quit [Quit: andrew565]
andrew565 has joined #ruby
rdark_ has joined #ruby
rdark has quit [Ping timeout: 264 seconds]
alem0lars has quit [Ping timeout: 256 seconds]
arya_ has quit [Remote host closed the connection]
<andrew565> !help
v0n has quit [Quit: WeeChat 0.4.1]
<andrew565> nvm
v0n has joined #ruby
devoldmx3 has joined #ruby
cmarques has joined #ruby
keanehsiao has quit [Quit: Linkinus - http://linkinus.com]
nkts has quit [Quit: -]
devoldmx has quit [Ping timeout: 245 seconds]
alem0lars has joined #ruby
S0da has joined #ruby
darth_chatri has quit [Quit: Leaving.]
chase-work has quit [Quit: Computer has gone to sleep.]
buibex has joined #ruby
pentameter has joined #ruby
NiteRain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
kaspernj has joined #ruby
_bart has quit [Remote host closed the connection]
AkashicLegend has joined #ruby
Tricon has joined #ruby
kaspernj has left #ruby [#ruby]
<bsdbandit> good morning all
kaspernj has joined #ruby
_droid has quit [Ping timeout: 264 seconds]
niceguyjames has quit [Quit: Computer has gone to sleep.]
dhruvasagar has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
<headshot> andrew565: for ops stuff?
dayepa has joined #ruby
<headshot> or all internal stuff?
baordog has joined #ruby
RubNoob has joined #ruby
wallerdev has joined #ruby
asobrasil has joined #ruby
<andrew565> All internal chat. We're currently using Jaconda, but with Google (our primary xmpp server provider) moving away from XMPP, we figured we'd switch to a private IRC server.
<RubNoob> hello - does anyone have any recommendation for gems that provide for creating an installer (i.e. using an answers file to do a bunch of things)?
<headshot> interesting
<andrew565> Better logging, more features, and a couple of our guys are on IRC all day anyways.
<headshot> there are enough gui clients in the world to satisfy most anyone, so shouldn't be much of a struggle
AkashicLegend has joined #ruby
<headshot> and cli clients for the rest of us
dv__ has joined #ruby
dv_ has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
burlyscudd has quit [Quit: Leaving.]
anildigital_away is now known as anildigital
S0da has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
juarlex has joined #ruby
Al_ has quit [Read error: Connection reset by peer]
Al_ has joined #ruby
freerobby has joined #ruby
chiel_ is now known as chiel
anay has quit [Remote host closed the connection]
kaspernj has quit [Quit: Leaving]
kaspernj has joined #ruby
love_color_text has joined #ruby
AkashicLegend has quit [Quit: AkashicLegend]
julian-delphiki has quit [Quit: Leaving]
Deele has joined #ruby
burlyscudd has joined #ruby
tomzx_mac has joined #ruby
niceguyjames has joined #ruby
sarkis has joined #ruby
_whitelogger has joined #ruby
goodgame has joined #ruby
alem0lars has quit [Quit: Leaving]
nitish has joined #ruby
nitish has joined #ruby
nitish has quit [Changing host]
hesco has left #ruby [#ruby]
niceguyjames has quit [Client Quit]
jonkri has joined #ruby
jonkri has joined #ruby
jonkri has quit [Changing host]
kobain has joined #ruby
awc737 has quit [Ping timeout: 245 seconds]
maxmanders has quit [Quit: Computer has gone to sleep.]
io_syl has joined #ruby
shaunbaker has quit [Remote host closed the connection]
mansi has joined #ruby
awc737 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
maxmanders has joined #ruby
devoldmx3 has quit [Read error: Connection reset by peer]
brbcoding has joined #ruby
nitish has quit [Ping timeout: 276 seconds]
BillCriswell has joined #ruby
interactionjaxsn has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
maasha has quit [Quit: Page closed]
jbpros has quit [Quit: jbpros]
estevao has joined #ruby
Fuzai has quit [Remote host closed the connection]
Fuzai has joined #ruby
kasper_ is now known as kasper
devoldmx has joined #ruby
kasper is now known as kaspergrubbe
kirun_ has quit [Ping timeout: 246 seconds]
S0da has quit [Remote host closed the connection]
io_syl has quit [Quit: io_syl]
Uranio has joined #ruby
noop has quit [Ping timeout: 246 seconds]
io_syl has joined #ruby
sayan has quit [Ping timeout: 246 seconds]
interactionjaxsn has quit [Remote host closed the connection]
io_syl has quit [Client Quit]
interactionjaxsn has joined #ruby
Mattix has quit [Ping timeout: 268 seconds]
niceguyjames has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
amacgregor has joined #ruby
shaunbaker has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
interactionjaxsn has quit [Ping timeout: 268 seconds]
ntus1017 has joined #ruby
pipework has joined #ruby
TheRealPygo is now known as pygospa
anildigital is now known as anildigital_away
lebek has joined #ruby
devoldmx has joined #ruby
mmitchell has joined #ruby
tommyvyo has joined #ruby
interactionjaxsn has joined #ruby
smathieu has joined #ruby
yshh has joined #ruby
kirun_ has joined #ruby
wmoxam has joined #ruby
rodacato has joined #ruby
MrZYX|off is now known as MrZYX
d3 has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sailias has joined #ruby
mmitchel_ has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
sambao21 has joined #ruby
codecop has joined #ruby
anonymuse has joined #ruby
rodacato has quit [Remote host closed the connection]
smathieu has quit [Ping timeout: 248 seconds]
elnormous has joined #ruby
rodacato has joined #ruby
asteve has joined #ruby
cam`_ has joined #ruby
_seanc_ has joined #ruby
karnowski has joined #ruby
mikepack has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
bamdad has quit [Quit: bamdad]
seich- has quit [Ping timeout: 240 seconds]
sambao21 has quit [Ping timeout: 264 seconds]
iravan_ has joined #ruby
choobie has quit [Read error: Connection reset by peer]
seich- has joined #ruby
jbpros has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
jlast has joined #ruby
andikr has quit [Read error: Connection reset by peer]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
JensenDied has joined #ruby
vlad_starkov has joined #ruby
jibi has joined #ruby
psychouroboros has quit [Excess Flood]
mary5030 has joined #ruby
BRMatt has joined #ruby
tagrudev has quit [Read error: Connection reset by peer]
johnnyfuchs has joined #ruby
jbpros has quit [Ping timeout: 276 seconds]
deadalus has joined #ruby
awarner_ has quit [Read error: No route to host]
awarner has joined #ruby
tonini has quit [Remote host closed the connection]
Davey has joined #ruby
jonathanwallace has quit [Ping timeout: 276 seconds]
spacesuit_ has joined #ruby
enebo has joined #ruby
xcthulhu has quit [Quit: xcthulhu]
kaspernj has left #ruby ["Leaving"]
Cyrus has quit [Quit: Cyrus.sleep()]
sarkis has left #ruby [#ruby]
viszu has quit [Ping timeout: 264 seconds]
spacesuit_ has quit [Quit: Page closed]
tomzx_mac has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
tobyo1 has quit [Ping timeout: 246 seconds]
choobie has joined #ruby
pupoque has joined #ruby
shaunbak_ has joined #ruby
\du has joined #ruby
<\du> hello, a newbie question, actually i am working with chef recipes that use ruby
<\du> and have this this type of.. i dont know.. a class?
shaunbaker has quit [Ping timeout: 245 seconds]
<\du> #<Chef::Node::Attribute @set_unless_value_present=false, @current_override=nil, @override={...}, @auto_vivifiy_on_read=false, @automatic={...}, [....]
RubNoob has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<\du> how i can convert it to string?
<\du> i try .to_s but i get: #<Chef::Node::Attribute:0x7f8628b16bf0>
<\du> nothing more
momomomomo has joined #ruby
maxxi has joined #ruby
<maxxi> hrlp
<maxxi> help
<maxxi> ciao
<hanmac1> \du obj.class will return Chef::Node::Attribute and obj.class.to_s will return "Chef::Node::Attribute" or what do you want for return?
<maxxi> !list
maxxi has left #ruby [#ruby]
<waxjar> swell guy
<\du> hanmac1, i want all this information in string
sambao21 has quit [Quit: Computer has gone to sleep.]
<hanmac1> \du obj.inspect
<\du> nice, thanks you hanmac1
devoldmx has joined #ruby
davegerard has joined #ruby
allaire has joined #ruby
thams has joined #ruby
<ericwood> object.inspector_gadget
sambao21 has joined #ruby
mansi has quit [Remote host closed the connection]
viszu has joined #ruby
mansi has joined #ruby
sambao21 has quit [Client Quit]
Arya_ has joined #ruby
Myrth has joined #ruby
rshetty has joined #ruby
ffranz has joined #ruby
mansi has quit [Ping timeout: 256 seconds]
mansi has joined #ruby
niklasb has quit [Ping timeout: 246 seconds]
havenwood has quit [Remote host closed the connection]
poikon has joined #ruby
jarray52 has joined #ruby
jarray52 has quit [Changing host]
jarray52 has joined #ruby
sambao21 has joined #ruby
dv__ is now known as dv_
xcthulhu has joined #ruby
shaunbak_ has quit [Remote host closed the connection]
GeissT has quit [Quit: MillBroChat AdIRC User]
twinklehood has quit [Quit: leaving]
Evixion has quit [Read error: Connection reset by peer]
Arya_ has quit [Remote host closed the connection]
rhys has joined #ruby
devoldmx3 has joined #ruby
kirun_ has quit [Ping timeout: 256 seconds]
Evixion has joined #ruby
ffio has quit [Read error: Connection reset by peer]
ffio has joined #ruby
devoldmx has quit [Ping timeout: 256 seconds]
sambao21 has quit [Quit: Quitter]
jwang has quit [Quit: Leaving]
krainboltgreene has joined #ruby
maz-dev has quit [Remote host closed the connection]
msuszczy has quit [Quit: leaving]
acrussell has joined #ruby
sr78ger has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
himsin has joined #ruby
himsin has quit [Client Quit]
acrussell has left #ruby [#ruby]
santoshwadghule has joined #ruby
sambao21 has joined #ruby
<santoshwadghule> exit
<santoshwadghule> exit
<santoshwadghule> exit
<ericwood> irc is hard
ner0x has joined #ruby
pupoque has left #ruby [#ruby]
santoshwadghule has quit [Client Quit]
swordsmanz has quit [Read error: Connection reset by peer]
devoldmx3 has quit [Ping timeout: 264 seconds]
smathieu has joined #ruby
swordsmanz has joined #ruby
davegerard has quit [Ping timeout: 246 seconds]
erry has quit [Ping timeout: 600 seconds]
randomautomator has joined #ruby
jonathanwallace has joined #ruby
Kruppe has joined #ruby
anildigital_away is now known as anildigital
buibex has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
smathieu has quit [Ping timeout: 268 seconds]
romdi has quit [Ping timeout: 268 seconds]
rshetty has quit [Quit: Sleeping]
sr78ger has quit [Quit: Qui]
brennanMKE has joined #ruby
geggam has joined #ruby
zachrab has joined #ruby
zachrab has quit [Client Quit]
dhruvasagar has joined #ruby
interactionjaxsn has joined #ruby
k610 has joined #ruby
fredjean has joined #ruby
tatsuya_o has quit [Ping timeout: 264 seconds]
love_color_text has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
goleldar has joined #ruby
BizarreCake has quit [Read error: Connection reset by peer]
brennanMKE has quit [Ping timeout: 245 seconds]
\du has left #ruby ["Hasta la vista Baby!"]
devinus has joined #ruby
realDAB has joined #ruby
aganov has quit [Remote host closed the connection]
mexirean has quit [Ping timeout: 248 seconds]
nanothief has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
anonymuse has quit [Ping timeout: 245 seconds]
burlyscudd has quit [Quit: Leaving.]
_bart has joined #ruby
threesome has quit [Ping timeout: 264 seconds]
CubicE has joined #ruby
love_color_text has quit [Read error: Connection reset by peer]
_bart has quit [Remote host closed the connection]
KarlHung1s is now known as KarlHungus
_bart has joined #ruby
ssvo has joined #ruby
anonymuse has joined #ruby
_bart has quit [Remote host closed the connection]
_bart has joined #ruby
allaire has quit [Quit: allaire]
erry_ has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran has quit [Read error: Connection reset by peer]
sfti has joined #ruby
ananthakumaran has joined #ruby
cha1tanya has joined #ruby
anonymus_ has joined #ruby
sr78ger has joined #ruby
anonymuse has quit [Read error: Connection reset by peer]
erry_ is now known as erry
shouya has joined #ruby
ldnunes has quit [Ping timeout: 264 seconds]
joonty has quit [Quit: WeeChat 0.4.1]
angelixd_ is now known as angelixd
shouya1 has quit [Ping timeout: 245 seconds]
joonty has joined #ruby
ner0x has quit [Ping timeout: 245 seconds]
anildigital is now known as anildigital_away
<Fuzai> How do you downgrade a gem? I've got 8 servers and one of the servers went though an update and now my application won't start? http://pastebin.com/yYqMGLkK
<Fuzai> `raise_if_conflicts': Unable to activate em-websocket-0.5.0, because http_parser.rb-0.6.0.beta.2 conflicts with http_parser.rb (~> 0.5.3) (Gem::LoadError)
<momomomomo> Set the gem version in your gem spec Fuzai if you're using bundler
Adawerk_ has quit [Quit: Leaving]
<Fuzai> i'm not that i'm aware of
<Fuzai> i'll see what google tells me about bundler
_droid has joined #ruby
DeanH has joined #ruby
<momomomomo> gem install --version 'your version'
<Fuzai> ty
<zendeavor> see what bundler tells you about bundler
<Fuzai> ty
Heskie has joined #ruby
Neomex has joined #ruby
ckrailo has joined #ruby
Neomex has quit [Client Quit]
devinus has quit [Quit: devintorr.es]
lindenle has joined #ruby
jlebrech has joined #ruby
senayar has quit [Remote host closed the connection]
ldnunes has joined #ruby
ZOGM has joined #ruby
<ZOGM> 1
anildigital_away is now known as anildigital
nomenkun has quit [Remote host closed the connection]
rshetty has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
zeade has joined #ruby
sr78ger has quit [Quit: Qui]
bluOxigen has joined #ruby
devinus has joined #ruby
brennanMKE has joined #ruby
burlyscudd has joined #ruby
bigoldrock has joined #ruby
adeponte has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
devoldmx has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
ybart has quit [Quit: ybart]
<ZOGM> is this channel dead?
bakingbread has left #ruby ["part"]
<realDAB> i don't think so
jonathanwallace has quit [Ping timeout: 246 seconds]
locriani has joined #ruby
Nanuq has quit [Ping timeout: 245 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
flyinprogramer has joined #ruby
<flyinprogramer> anyone know or understand why rubygems publishes/supports a 'specs.4.8.gz' file
<flyinprogramer> or what the logic was behind that file ever being a thing ?
locriani has quit [Read error: Connection reset by peer]
locriani_ has joined #ruby
Inoperable has joined #ruby
ldnunes has quit [Ping timeout: 246 seconds]
<flyinprogramer> it would seem reasonable that we could just ask the API for a spec file… so why zip them up all in one place?
* flyinprogramer is missing the point
thams has quit [Quit: thams]
eregon_ is now known as eregon
dagobah_ has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
<apeiros> flyinprogramer: you'd have to ask somebody like drbrain or qrush, but I'd assume it's a performance thing
<apeiros> do you have the slightest idea how many million, probably billion, requests per day go to rubygems.org? an API call is always orders of magnitudes worse on CPU than a static file.
<flyinprogramer> apeiros: i would normally agree with you; but -- how/when does the gz get rebuilt ?
<flyinprogramer> and the operation of building that is at least O(n) where is n is the number of gems, ever
sambao21 has joined #ruby
matti has joined #ruby
tvw has quit []
<apeiros> flyinprogramer: but your O(n) is n being gems, not requests
<flyinprogramer> true
<apeiros> and I don't think it's necessarily O(n)
<jlebrech> I'm changing a sidekiq worker to use event machine and want to iterate with async callbacks, am I doing this right? https://gist.github.com/jlebrech/6055020
<apeiros> or at least not O(n) with n being "all gems"
<flyinprogramer> and I don't think it's necessarily O(n) <--- tell me more ?
jonahR has joined #ruby
sailias has quit [Ping timeout: 256 seconds]
<flyinprogramer> we're using a product to internally host our ruby gems; it seems to have a massive memory leak around building that file; which has spawned my interest into how the Gospel has solved the problem
_seanc_ has quit [Quit: _seanc_]
<flyinprogramer> and understanding the purpose of the file in the first place
<apeiros> not many host rubygems themselves via a custom gemserver.
<apeiros> you're using geminabox?
_bart has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
<jonahR> To anyone interested, here is a two day free hallpass to CodeSchool, anyone feel free to use it http://go.codeschool.com/9QTYTQ
<apeiros> anyway, whichever product it is - report it as a bug
<Xeago> flyinprogramer: only updated gems
<Xeago> so you have a subset of n that gets updated
<Xeago> (it is possible to replace files/directories in the zip file format
ndrei has quit [Ping timeout: 276 seconds]
<apeiros> Xeago: I think that's latest_specs.4.8.gz
<apeiros> specs.4.8.gz is the full set iirc
<Xeago> no idea what you talk about btw :)
<flyinprogramer> apeiros: right he's saying splice in the diff
Coffers has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikeg has joined #ruby
noname001 has quit [Ping timeout: 276 seconds]
<flyinprogramer> into the gz
ner0x has joined #ruby
ner0x has quit [Read error: Connection reset by peer]
<apeiros> "he"?
poga has joined #ruby
<flyinprogramer> or she, or it -- sorry!
<apeiros> same question really :)
<apeiros> who?
<flyinprogramer> oh - Xeago
dhruvasagar has joined #ruby
<apeiros> now I'm confused
timonv has quit [Remote host closed the connection]
blueOxigen has joined #ruby
Catbuntu has joined #ruby
axeman- has joined #ruby
<flyinprogramer> so you have specs that is the holly grail with X number of gems in it; you know Y number have since been created since rebuilding the gz; simply splice Y into the specs file; and tada you've created a spec.gz in Y time not X+Y time
<Xeago> feel free to refer to me as xeago, for years I have had the desire to be of a different sex than I really am
timonv has joined #ruby
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
dangerousdave has joined #ruby
<Xeago> flyinprogramer: I think apeiros just questioned who "he" refers to
mmitchell has quit [Remote host closed the connection]
<Xeago> rather the gender implied
mmitchell has joined #ruby
<Beoran__> english misses a gender neuter personal pronoun (it is impersonal)
<apeiros> who said "splice it in"?
pedda has joined #ruby
Voodoofish430 has joined #ruby
<flyinprogramer> Xeago: agreed, and done - I hope you know I offer my sincerest apologizes for my lazy oversight
aantix has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
ldnunes has joined #ruby
iravan_ has quit [Read error: Connection reset by peer]
CubicE has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
blitz has joined #ruby
<apeiros> anyway, the format of the thing is plain marshal. i.e. after you gunzipped it, it's Marshal.load(data)
<apeiros> and it contains an array of arrays of the form [gemname, version, platform]
<Xeago> flyinprogramer: Not an issue at all - I shouldn't interrupt without actually providing help
ephemerian has left #ruby [#ruby]
terrellt has quit [Ping timeout: 256 seconds]
ndrei has joined #ruby
saarinen has joined #ruby
headius has joined #ruby
<Xeago> (fyi, I have no idea what you mean with "splice in diff")
seich- has quit [Ping timeout: 240 seconds]
<apeiros> I understand what he means. similar to patching a sourcefile e.g.
<Xeago> aha
<Xeago> so it is still a single file
<Xeago> did not know
<apeiros> you have a base and a delta, you apply the delta on the base, voilà, new base
<Xeago> apeiros: don't you consider that an array of tuples?
m8 has joined #ruby
timonv has quit [Remote host closed the connection]
<Xeago> I prefer to refer to such usecases as such, but it seems to be only me having that preference
<apeiros> Xeago: sure, but since there are various ways to represent a tuple in ruby, I stick to the actual datastructure being used when describing
<Xeago> what other ways are there?
RichardBaker has joined #ruby
DanKnox_away has joined #ruby
<apeiros> Struct, Hash, custom class
DanKnox_away is now known as DanKnox
dangerousdave has quit [Quit: Linkinus - http://linkinus.com]
smathieu_ has joined #ruby
<Xeago> how can a hash be a tuple?
<TheBlackMan> whats a tuple
<Xeago> set of values
<Xeago> in the simplest form of explanation
<apeiros> "In mathematics and computer science, a tuple is an ordered list of elements"
<apeiros> from wikipedia
threesome has joined #ruby
gustavn has joined #ruby
<Xeago> "an ordered set of data constituting a record" from oxford dictionary (osx)
<apeiros> and since as of 1.9 hashes are ordered, a hash is a tuple of key/value pairs
<ericwood> ruby has no tuples
<ericwood> and hashes aren't a valid substitute
<apeiros> ericwood: wrong. it has no *tuble class*
<apeiros> *tuple
<ericwood> well, yeah
tatsuya_o has joined #ruby
<ericwood> you can kinda use an array as a hack
<TheBlackMan> a frozen array=>tuple?
<Xeago> TheBlackMan: doesn't matter if it is frozen or not
<apeiros> and since there's no tuple class, no class is a *substitute*
<ericwood> but a hash cannot be assumed to have order, even though it kinda does
<apeiros> an actual class would be an *implementation* of a tuple
<Xeago> ericwood: yes it can
<TheBlackMan> I thought tuples MUST be frozen/not able to edit
<Xeago> at a single point in time it has only a single representation
<ericwood> Xeago: I'm morally opposed to that
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
CubicE has joined #ruby
<Xeago> I don't agree with hashes being ordered
<Xeago> I think it is wrong
<ericwood> yeah
<ericwood> it confuses n00bs
mikecmpbll has joined #ruby
<blitz> they maintain order of insertion in new ruby
<ericwood> right
<apeiros> doesn't change that rubys hashes are ordered, though :)
Banistergalaxy has joined #ruby
<apeiros> I think it's misnamed now
<Xeago> unfortunately :\
<apeiros> but I don't think it's bad to have them ordered
<ericwood> yeah, it should be called OrderedHash
<apeiros> there's enough situations where it's good
<apeiros> e.g. reading/writing yaml files
hamakn has quit [Remote host closed the connection]
<blitz> as long as it isn't a performance hit, who cares
<ericwood> true, but it should be separate from vanilla hashes
<apeiros> it's a memory hit
<ericwood> I want normal hashes dammit
<apeiros> ordered hashes add a DLL to the hashmap
<apeiros> ericwood: make a gem?
<ericwood> NO
<ericwood> :(
hamakn has joined #ruby
<apeiros> shouldn't be too hard to extract the DLL from rubys hash.c
<blitz> there's probably one out there already
<apeiros> that too
<Xeago> there is already hwia, then we will get hwoo
<apeiros> hwia-- :(
<apeiros> booooo
<ericwood> I'm fine with what we already have, I just am morally opposed to hashes being orderedhashes by default
tk_ has quit [Quit: ばいばい]
zeade has quit [Quit: Leaving.]
mahmoudimus has joined #ruby
<apeiros> Xeago: see, by saying array of arrays I avoided the whole drama :-p
smathieu_ has quit [Ping timeout: 276 seconds]
<Xeago> yeyea, sorry :)
browndawg has joined #ruby
<apeiros> (would have, but then you brought tuples up! dang)
<apeiros> ;-)
zeropx has joined #ruby
SHyx0rmZ has quit [Ping timeout: 268 seconds]
niklasb has joined #ruby
<Xeago> surprises me stdlib doesn't provide a tuple thing
<ericwood> yeah
<ericwood> python has them
<Xeago> which is set backed
<ericwood> we should have them too!
<apeiros> Xeago: what'd be the distinguishing feature from just using an array?
<TheBlackMan> Why do you need tuples?
<apeiros> immutability?
<ericwood> yeah
anay has joined #ruby
mawaldne has joined #ruby
<ericwood> they're also great for returning pairs of data
<TheBlackMan> you can make arrays immutable
daum has joined #ruby
<TheBlackMan> you can monkey patch that ericwood into array
<ericwood> that's just wrong though
<apeiros> module Kernel; def T(*args); args.freeze; end; module_function T; end
<ericwood> feels dirt
<TheBlackMan> *monkeypatch returning pairs of data*
<ericwood> *dirty
<apeiros> T(1,2,3) # there, tuples :D
<daum> hm with active record how do i view the SQL that it is trying to run? Have a command which I think should be pulling back results but doesn't appear to be working so want tos ee what the SQL it generated is
jetblack has joined #ruby
<TheBlackMan> daum: .to_sql?
<ericwood> daum: you can do to_sql on the ActiveRecord thingy
<TheBlackMan> like always, the black man is faster.
<ericwood> also, when it runs the crap in the console it should be printing out the raw SQL it's running
<Xeago> python has them as a language feature
<daum> ok thanks!
seich- has joined #ruby
<apeiros> python is not a role model >:(
<interactionjaxsn> TheBlackMan: in some events that isn't always a good thing
<TheBlackMan> python is a regression
<apeiros> (then again, what is?)
baroquebobcat has joined #ruby
hamakn has quit [Ping timeout: 245 seconds]
<Xeago> SYCASML
<Xeago> if I did remember that correctly
alex__c2022 has joined #ruby
kiri has quit [Ping timeout: 240 seconds]
<TheBlackMan> whats that mean, Xeago
axeman- has quit [Read error: Connection reset by peer]
<Xeago> an ancient language
<Xeago> extinct if not for museum installations not to be touched
axeman- has joined #ruby
<Xeago> no reproductions of it exist
mawaldne has left #ruby [#ruby]
<Xeago> I know the L stands for Lisp
Kar- has joined #ruby
<ericwood> Lithp
<Xeago> thhhhp
ldnunes has quit [Ping timeout: 256 seconds]
daum has left #ruby ["Leaving"]
momomomomo has joined #ruby
ghr has quit [Quit: Computer has gone to sleep.]
hamed_r has quit [Quit: Leaving]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
wsterling has joined #ruby
twoism has joined #ruby
axeman- has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ngoldman has joined #ruby
ldnunes has joined #ruby
dhruvasagar has quit [Ping timeout: 264 seconds]
codecop has quit [Ping timeout: 276 seconds]
Adawerk has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ColKurtz has joined #ruby
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
axeman- has joined #ruby
twoism_ has joined #ruby
terrellt has joined #ruby
locriani_ has quit [Remote host closed the connection]
locriani has joined #ruby
dhruvasagar has joined #ruby
Heskie has quit []
havenwood has joined #ruby
<havenwood> hallooo
<apeiros> oy!
<apeiros> get off my lawn!
alup has quit [Quit: Leaving]
<_droid> hi people, I'm new to ruby and wanted to start learning the language. I have learned object orient programming, the academic way. I have tried railsforzombies.org but it brought up more questions than I expected. So my question to the channels is: "Does anyone have a link that describes ruby a little more?"
<apeiros> ;-)
devinus has quit [Quit: devintorr.es]
<TheBlackMan> _droid: don't start in rails to learn ruby
<_droid> TheBlackMan: ok do you have a recommendation?
<TheBlackMan> _droid: tryruby.org
johnnyfuchs has quit [Read error: Connection reset by peer]
twoism has quit [Ping timeout: 246 seconds]
<havenwood> _droid: Nice list at: http://www.ruby-lang.org/en/documentation/
<waxjar> _droid: i like this one: http://www.apeth.com/rubyIntro/justenoughruby.html, it requires some knowledge tho, but it sounds like that won't be a problem
twoism_ has quit [Ping timeout: 256 seconds]
<_droid> thank you people, could you explain to me the relationship between ruby and rails?
johnnyfuchs has joined #ruby
devinus has joined #ruby
MrZYX is now known as MrZYX|off
<TheBlackMan> _droid: rails is a web framework built in ruby
<waxjar> rails is a framework
<TheBlackMan> rails is to ruby as django is to python
<waxjar> ruby is the language it's written in
fernandoaleman has quit [Quit: Leaving.]
anay has quit [Remote host closed the connection]
Inoperable has quit [Quit: Rectified]
ngoldman has quit [Read error: Connection reset by peer]
anay has joined #ruby
<TheBlackMan> _droid: what do they teach in university for programming
Inoperable has joined #ruby
Davey has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
byprdct has joined #ruby
devinus has quit [Quit: devintorr.es]
ngoldman has joined #ruby
lucianosousa has joined #ruby
<_droid> TheBlackMan: well we began with good old C and then for the sake of object orientedness we took java. Eversince i tried various languages.
<TheBlackMan> _droid will be a future ruby committer! he knows c!!
codecop has joined #ruby
momomomomo has quit [Quit: momomomomo]
<_droid> TheBlackMan: what?
goodgame has quit [Ping timeout: 248 seconds]
<interactionjaxsn> :D
Davey has joined #ruby
L8D has left #ruby [#ruby]
<TheBlackMan> _droid: its a joke that most rubyists don't know c.
romdi has joined #ruby
eldariof has joined #ruby
<krainboltgreene> Which is fine.
<CubicE> TheBlackMan: Since when do people teach programming at universities?
d3 has joined #ruby
<TheBlackMan> CubicE: You're right, they teach computer science.
<TheBlackMan> same shit.
<havenwood> Ruby is a language. A lovely language. Rack is a Ruby webserver interface. There are Rack frameworks like Rails or Rack DSLs like Sinatra.
anay has quit [Ping timeout: 264 seconds]
<_droid> TheBlackMan: ah ok
<_droid> havenwood: send me a link of rack please
mansi has quit [Read error: Connection reset by peer]
<havenwood> _droid: http://rack.github.io
mansi has joined #ruby
<_droid> havenwood: interesting thanks
<CubicE> TheBlackMan: Well, we got 2 hours 'introduction to java programming' in the first semester, and then they were basically like 'RTFM noobs'
saarinen has quit [Quit: saarinen]
<TheBlackMan> CubicE: dafuq is java.
adeponte has joined #ruby
<TheBlackMan> Jk. I'm not THAT clueless.
blaxter has quit [Quit: foo]
manutter has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
ultimoo has joined #ruby
blaxter_ has joined #ruby
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
rupee has joined #ruby
JZTech101 has quit [Read error: Connection reset by peer]
<CubicE> TheBlackMan: I just realized I said that as if it was a bad thing
iliketurtles has joined #ruby
<CubicE> TheBlackMan: I actually think it's a good idea
<_droid> Well it lies of how good the teacher is at teaching java
Banistergalaxy has quit [Ping timeout: 240 seconds]
apeiros has quit [Remote host closed the connection]
iliketurtles has quit [Max SendQ exceeded]
_seanc_ has joined #ruby
iliketurtles has joined #ruby
<CubicE> TheBlackMan: Classrooms aren't terribly great places to learn programming, and in any real life context you'd have to learn how to use technologies on your own anyway
joast has quit [Quit: Leaving.]
sleetdrop has quit [Quit: Computer has gone to sleep.]
ngoldman has quit []
blaxter_ has quit [Client Quit]
i_s has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
zeel has quit [Remote host closed the connection]
i_s has quit [Remote host closed the connection]
tatsuya_o has quit [Remote host closed the connection]
i_s has joined #ruby
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
renderful has joined #ruby
codecop has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
codecop has joined #ruby
havenwood has joined #ruby
i_s_ has joined #ruby
i_s has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
marcdel has joined #ruby
rshetty has quit [Quit: Sleeping]
sambao21 has quit [Client Quit]
joast has joined #ruby
shouya has quit [Ping timeout: 240 seconds]
sterNiX has joined #ruby
tobyo1 has joined #ruby
dankest has joined #ruby
roaet has joined #ruby
procrastinat0r has joined #ruby
timonv has joined #ruby
geekbri_ has joined #ruby
_veer has quit [Ping timeout: 240 seconds]
shouya has joined #ruby
<roaet> Is there a command line tool much like python -mjson.tool that can have input piped into it expecting a ruby hash? I'd like to get a value from a hash returned from a program but to write another program to do so seems wasteful if I could just pipe it in.
_veer has joined #ruby
xardas has quit [Read error: Connection reset by peer]
xcthulhu has quit [Ping timeout: 245 seconds]
xcthulhu has joined #ruby
sambao21 has joined #ruby
brunoro__ has joined #ruby
geekbri has quit [Ping timeout: 276 seconds]
_seanc_ has quit [Quit: _seanc_]
ffranz has quit [Quit: Leaving]
ffranz has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
SHyx0rmZ has joined #ruby
interactionjaxsn has joined #ruby
smathieu has joined #ruby
<havenwood> roaet: You want to serialize some data?
mrsolo has joined #ruby
shouya has quit [Ping timeout: 246 seconds]
<dobry-den> i don't think learning rails and ruby at the same time is a bad idea
k610 has quit [Quit: Leaving]
<hanmac1> dobry-den: imo you should learn ruby before rails
<dobry-den> if we were immortal, i'd probably recommend people to learn assembly first and learn one layer of abstraction at a time.
<roaet> havenwood: well I have a program, fpm, that returns a hash. I just want to get a single value from it.
<roaet> I'm not a ruby developer so it's kind of foreign to me.
<dobry-den> you only need very entry-level knowledge of ruby to use rails. vanilla rails is really just a set of heuristics like @abc = 1 where @abc is magically available in product.haml.
msch` is now known as msch
<TheBlackMan> dobry-den: depends if he wants a ruby job or rails job
_veer has quit [Ping timeout: 246 seconds]
<dobry-den> nah, depends what inspires them
<terrellt> Even if you want a rails job you better be pretty good at ruby. >.>
<dobry-den> i disagree
interactionjaxsn has quit [Ping timeout: 268 seconds]
Zai00 has quit [Quit: Zai00]
<dobry-den> well, "good at ruby" is so general. but you don't need to be able to do any ruby backflips in standard rails workflows
<hanmac1> dobry-den: while my education for my job i learned Asm, than C, than C++ ;P
brunoro__ has quit [Ping timeout: 264 seconds]
burlyscudd has quit [Quit: Leaving.]
<dobry-den> there's also more to heaven and hell than work. very few people guess correctly when they try to optimize their education for a particular job
<dobry-den> for the same reason it's hard to choose the right degree when you're 17/18
<terrellt> What do you consider ruby backflips?
shouya has joined #ruby
<waxjar> premature optimisation? :P
<TheBlackMan> terrellt: able to commit to rubinius master.
<dobry-den> terrellt: most of the metaprogramming constructus and semantics
Krajsnick has joined #ruby
<TheBlackMan> dobry-den: ^ I need an education. You work for a university?
<dobry-den> look at any CRUD rails app. you wont find much demanding use of ruby.
<TheBlackMan> I'm not racist. My handle just happens to be black-related.
<dobry-den> rails is the hard part
<terrellt> TheBlackMan: *Does*
<TheBlackMan> terrellt: Really?
sterNiX has quit [Quit: there aint no destiny]
<terrellt> dobry-den: I'm not sure I'd expect them to be perusing rubinius in their free time, but I'd expect any Rails people we hire to be able to peruse the source code of the gems they use.
<terrellt> TheBlackMan: Yeah.
<TheBlackMan> terrellt: Aww yeah. -applies-
<lectrick> This day was going so well, until I swapped the "development" and feature branch names in a rebase and force push, so I ended up rebasing everyone's development branch to my feature branch and then force pushing it. /fuck
rdark_ has quit [Quit: leaving]
<terrellt> lectrick: -f is almost always no bueno. =(
RubNoob has joined #ruby
<dobry-den> terrellt: Sure, but reading gem source is often hard because of Rails interop rather than just Plain Ol Ruby. Also, I'm just talking about someone starting Ruby and Rails.
nkts has joined #ruby
<RubNoob> hello - can someone help me/point me at a tutorial on how to run capistrano using Capistrano::CLI within a ruby script for tasks that are namespaced?
nkts has quit [Max SendQ exceeded]
<dobry-den> You can learn them in parallel (just spend the first day understanding how variables work and basic class/method semantics)
nkts has joined #ruby
<havenwood> roaet: Can you give an example of the fpm hash output and desired result?
<havenwood> waxjar: just enough Ruby looks really insteresting
jonahR_ has joined #ruby
<havenwood> succinct
<waxjar> it's a great introduction, imo
ffio has quit [Read error: Connection reset by peer]
jonahR has quit [Ping timeout: 248 seconds]
jonahR_ is now known as jonahR
<roaet> havenwood: {:timestamp=>"2013-07-22T15:22:34.382728+0000", :message=>"Created deb package", :path=>"/var/deploys/faro-api/faro-api_0.1-5_amd64.deb"} want :path, but I made a sed/awk thing that works alright.
jaimef_ has quit [Excess Flood]
<roaet> works alright: cat derp | sed 's/[{}:" ]//g' | sed 's/,/\n/g' | awk -F"=>" 'toupper($1) == "PATH" {print $2}'
<roaet> but it's ugly :(
smathieu has quit [Remote host closed the connection]
brunoro__ has joined #ruby
<dobry-den> I've been using Fish shell (fishshell.com) for a week now. I love it. Anyone else ever give it a shot?
_carloslopes has joined #ruby
<dobry-den> #ruby probably not the best place to ask due to prevalent use of RVM
smathieu has joined #ruby
<slash_nick> dobry-den: yeah i have a beef with it though... can't use it
<waxjar> yes! switched two it when they announced 2.0, never went back to bash
cj3kim has joined #ruby
<slash_nick> waxjar: dobry-den: try something like... git diff that_file_of_yours ... then vim !$
<dobry-den> 2.0 is worth switching to. apt-get install fish gets some 1.x version
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
<havenwood> dobry-den: There's a chruby-fish: http://github.com/JeanMertz/chruby-fish#readme
spider-mario has joined #ruby
<slash_nick> oh dobry-den, lemme know if that issue is fixed, would you mind?
ffio has joined #ruby
<slash_nick> neither !$ nor !^ work to my knowledge
<dobry-den> slash_nick: yeah, for vim... if &shell =~# 'fish$' set shell=sh endif
<slash_nick> it's not a vim thing it's a bash thing
spider-mario has quit [Remote host closed the connection]
<RubyPanther> I thought everybody switched to rbenv by now
<slash_nick> !$ (last argument from previous command)
<slash_nick> !^ (first)
spider-mario has joined #ruby
procrastinat0r has quit [Quit: Leaving]
<slash_nick> I use them, and they don't work with fish... unless someone comes back and says 2.0 supports it
aaronmcadam has quit [Quit: Leaving...]
carloslopes has quit [Ping timeout: 246 seconds]
alvaro_o has joined #ruby
sayan has joined #ruby
mansi has quit [Remote host closed the connection]
<zendeavor> is readline thing iirc
s1n4 has joined #ruby
<zendeavor> maybe a juxtaposition of bash and readline
<waxjar> i think that's stuff specific to bash?
Xeago has quit [Remote host closed the connection]
<zendeavor> you can expand those in-line with readline keybindings
anderson has quit [Ping timeout: 264 seconds]
s1n4 is now known as Guest17414
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maxmanders has joined #ruby
<RubyPanther> one of the first things I noticed about it is the "anti-features" section where it claims "Does not require Rubies be installed into your home directory"... yeah but neither do any of the ones that came before...
roaet has left #ruby ["WeeChat 0.3.7"]
<joelteon> "does not cause prostate cancer"
mansi has joined #ruby
kaspergrubbe has joined #ruby
jaimef has joined #ruby
<slash_nick> dobry-den: that's pretty cool...
Notte has quit [Remote host closed the connection]
<dobry-den> for times i want 100% posic interop, i just `bash` it
<slash_nick> much prefer !$... but
<RubyPanther> I like that there are lots of options, but when the newest one is claiming fake differences, it gives me the impression they whipped it out without looking at the others. Which is fine... but makes it less likely I would even try it.
RichardBaker has quit [Quit: RichardBaker]
jeffreylevesque_ has joined #ruby
saarinen has joined #ruby
<zendeavor> dobry-den: you have to bash --posix then; if you want true posix interoperability, get dash.
<waxjar> you can write a function/alias that takes the first line of history
<zendeavor> dobry-den: also set POSIXLY_CORRECT=1
seich- has quit [Ping timeout: 240 seconds]
trepidaciousMBR has quit [Ping timeout: 248 seconds]
<dobry-den> zendeavor: good point. i really just meant 'when i want to use something that i'm used to using with bash/zsh but it doesnt work with fish and i haven't yet figured out why'
<dobry-den> afk
alainus has left #ruby ["Leaving"]
jeffreylevesque has quit [Ping timeout: 240 seconds]
<waxjar> i really dig its syntax colouring
anderson has joined #ruby
<zendeavor> i find it to be an eyesore
vlad_starkov has quit [Remote host closed the connection]
Spooner has quit [Remote host closed the connection]
saarinen has quit [Client Quit]
<zendeavor> zsh has inline syntax highlighting with some module too
blueOxigen has quit [Ping timeout: 268 seconds]
<Nilium> I prefer to just stick to bash/zsh
<havenwood> RubyPanther: But it *wooould* be an antipattern if someone ever did it! :P
<slash_nick> Me too Nilium... except, no zsh
<waxjar> look at that pretty :P http://i.imgur.com/lrMydfs.png
<havenwood> s/anti-pattern/anti-feature
<Nilium> I'd use zsh if it didn't have minor odd quirks that make it different from bash when it comes to scripts
<RubyPanther> havenwood: lol it sure would, I'd hate to see what that code would look like
arietis has joined #ruby
<zendeavor> Nilium: interactive != scripting
soulcake has joined #ruby
<RubyPanther> I considered zsh but chose csh instead, then by the time csh quit working with common scripts, zsh had already been dead and abandoned for years
<zendeavor> don't script anything in zsh, ever
<zendeavor> zsh dead and abandoned?
JZTech101 has joined #ruby
<zendeavor> did you get your shells mixed up
<zendeavor> zsh released v5 last year
<RubyPanther> yeah, that was like 2001 or so
<havenwood> xsh
<Nilium> Unfortunately, sourcing something means it's somewhat unavoidable.
<zendeavor> Nilium: no matter what shell you use, you have to write "libraries" in strictly posix style
<zendeavor> well, except for csh family and fish
<zendeavor> then you're screwed anyway
<Nilium> And zsh.
<zendeavor> nope
<zendeavor> zsh will gobble up a posix script like nobody's business
<waxjar> you're not screwed, you can still execute the scripts with bash
<zendeavor> waxjar: sourcing.
jonathanwallace has joined #ruby
DanKnox is now known as DanKnox_away
<RubyPanther> It was briefly popular in the 90s, when csh was too weak, bash largely unknown
<zendeavor> Nilium: not to be persnickety, but i'd be interested in a posix style script that zsh can't source
gildo has quit [Remote host closed the connection]
<Nilium> I would too.
<zendeavor> then you've lost me about 3 minutes ago
sailias has joined #ruby
Deele has quit [Ping timeout: 240 seconds]
brotatos has joined #ruby
troessner has quit [Ping timeout: 245 seconds]
<brotatos> Is it possible to open a file for read and write?
<Nilium> Problem is the script I had to source was not posix-style, and unfortunately wasn't mine either, and I didn't really want to go in and rewrite it.
<RubyPanther> but then almost everybody that wanted to script that much had switched to Perl already
Krajsnick has quit [Remote host closed the connection]
stormbytes has quit [Quit: Linkinus - http://linkinus.com]
jonathanwallace has quit [Client Quit]
<Nilium> So screw the person who wrote it.
brotatos has left #ruby ["WeeChat 0.4.1"]
Al_ has quit [Quit: Al_]
<zendeavor> shell sucks
<RubyPanther> once you have Perl, suddenly your shell only needs to do shell stuff again
<zendeavor> i've undertaken a mammoth task in rewriting arch's netctl because the original author was a flippin' miserable bash skiddie
<zendeavor> physically painful to read his code
<zendeavor> s/code/source/
jonathanwallace has joined #ruby
devinus has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
marcdel has joined #ruby
devinus has left #ruby [#ruby]
burlyscudd has joined #ruby
timonv has quit [Remote host closed the connection]
<flyinprogramer> zendeavor: you are a better man than I - gl
RichardBaker has joined #ruby
<zendeavor> i dunno about that
<zendeavor> i'm getting to the point where i'd rather submit a proposal to remove netctl from the base package group
Deele has joined #ruby
<RubNoob> has anyone used the Capistrano::CLI library?
Guest17414 has quit [Quit: leaving]
fernandoaleman has joined #ruby
brotatos has joined #ruby
<brotatos> I need help condensing this function by using a single variable for the File function calls.
flyinprogramer has quit [Quit: flyinprogramer]
<brotatos> What option mode should I use since I'm reading and writing?
<slash_nick> RubNoob: no one, not ever :)
RubNoob has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<zendeavor> brotatos: do not ask how to do X using Y; ask how to do X.
DanKnox_away is now known as DanKnox
aeontech has joined #ruby
ffio has quit [Quit: WeeChat 0.4.1]
burlyscudd has quit [Ping timeout: 246 seconds]
<RubyPanther> brotatos: http://www.ruby-doc.org/core-2.0/IO.html documents the file modes
xxi is now known as ixx
Notte has joined #ruby
burlyscudd has joined #ruby
JohnBat26 has joined #ruby
braincrash has quit [Ping timeout: 246 seconds]
denver has quit [Remote host closed the connection]
workmad3 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
asteve has joined #ruby
poikon has quit [Remote host closed the connection]
lewis has joined #ruby
sambao21 has joined #ruby
PhatBaja has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
mmitchel_ has joined #ruby
lewis is now known as Lewix
tkuchiki has quit [Remote host closed the connection]
<brotatos> Why does string remain empty even after writing to the file "new"? https://gist.github.com/brotatos/b9a016e08afef7c22850
arietis has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 246 seconds]
zeade has joined #ruby
<Mon_Ouie> Because the cursor is at the end of the file
<brotatos> Ah.
<Mon_Ouie> You could just build the string and write to the file simultaneously
WPA3 has joined #ruby
ryannielson has joined #ruby
<brotatos> Well, the actual script will involve user input which is why I'm not doing that.
<Mon_Ouie> i.e. commit.write(msg); string << msg
mmitchell has quit [Ping timeout: 256 seconds]
<brotatos> This is just to model that.
Heero has joined #ruby
<brotatos> Here's the actual script. https://gist.github.com/brotatos/7ba4efa6fcc563db5d6f
Krajsnick has joined #ruby
zachrab has joined #ruby
anildigital is now known as anildigital_away
dhoss_ is now known as dhoss
dhoss is now known as duke_nukem
louism2wash has joined #ruby
<Mon_Ouie> Well, that doesn't prevent you from writing to the string and the file simultaneously
<Mon_Ouie> Oh, wait, you're actually opening an editor to the file
elaptics is now known as elaptics`away
<Mon_Ouie> Then I'd just reread everything anyway — the user might change the whole file
cj3kim has quit [Read error: Connection reset by peer]
<Mon_Ouie> You can use File.readlines to make it shorter
cha1tanya has quit [Quit: cha1tanya]
cj3kim has joined #ruby
elnormous has quit [Ping timeout: 264 seconds]
Notte has quit [Remote host closed the connection]
xcthulhu has quit [Ping timeout: 268 seconds]
havenwood has quit [Remote host closed the connection]
jprovazn has quit [Quit: Odcházím]
pinage404 is now known as zz_pinage404
x1337807x has joined #ruby
louism2wash has quit [Quit: Leaving]
kaspergrubbe has quit [Remote host closed the connection]
<matti> Mon_Ouie: ;]
rezzack has joined #ruby
jprovazn has joined #ruby
ewag has joined #ruby
<brotatos> Mon_Ouie: oh; so just commit += IO.readlines(filename)?
<brotatos> I wonder if the string concatenation would work that way..
gustavn has quit [Read error: Connection reset by peer]
kirun has joined #ruby
gustavn has joined #ruby
maxmanders has joined #ruby
burlyscudd has quit [Quit: Leaving.]
xcthulhu has joined #ruby
BizarreCake has joined #ruby
Es0teric has joined #ruby
<Mon_Ouie> No, readlines returns an array with all the lines; if you don't need to process lines individually you can just use File.read
SoonerBourne has joined #ruby
<brotatos> aww a.rb:25:in `+': no implicit conversion of Array into String (TypeError)
seich- has joined #ruby
<brotatos> Sweet.
axeman- has quit [Remote host closed the connection]
<brotatos> Thanks, Mon_Ouie
anay has joined #ruby
saarinen has joined #ruby
burlyscudd has joined #ruby
thatRD has quit [Ping timeout: 264 seconds]
SoonerBourne has quit [Client Quit]
SoonerBourne has joined #ruby
flyinprogramer has joined #ruby
flyinprogramer has quit [Client Quit]
phantummm has joined #ruby
kirun has quit [Ping timeout: 264 seconds]
locriani has quit [Remote host closed the connection]
SoonerBourne has quit [Client Quit]
locriani has joined #ruby
SoonerBourne has joined #ruby
<Eiam> hello #ruby
<Eiam> my love affair with Ruby continues, and its only monday
<Eiam> what a fun language.
<Eiam> that is all.
<breakingthings> woah man don't go telling the world about that
<breakingthings> its illegal you know
<breakingthings> you could lose your kids
<Eiam> breakingthings: well when they find out I beat them
<Eiam> ruby will be the least of my problems!
pinage404 has joined #ruby
pinage404 has quit [Client Quit]
<breakingthings> aaaaand we just became a 1960s sitcom
arietis has joined #ruby
<breakingthings> thanks everybody have a good one
<Eiam> breakingthings: =)
ravster has joined #ruby
<Eiam> (I have found spankings to be wholly ineffective on my kids so I moved onto other methods of coercion & getting what I want)
thatRD has joined #ruby
<WPA3> Hi guys!
<Eiam> WPA3: HI!
<Eiam> (girls too I'm sure)
eldariof has quit []
timonv has joined #ruby
locriani has quit [Ping timeout: 248 seconds]
eldariof has joined #ruby
<breakingthings> Eiam: does that involve spiking their drinks with nyquil
<WPA3> Did someone already installed Catarse on Heroku ?
anay has quit [Remote host closed the connection]
<Eiam> breakingthings: no, lol. It's different for each of my kids (I have 3) and what works on one doesn't work on the other. Honestly, for one of them I'm still searching for something, cause she's already got "fuck you and everything you say" written all over her face whenever our wills battle. and she's 4 =(
<breakingthings> lol
tonini has joined #ruby
<breakingthings> obviously the solution to that one is applequil juice
workmad3 has joined #ruby
<breakingthings> I won't tell the service workers if yoooou dooooon't
* Eiam shrugs
<Eiam> I'll figure something out =)
andrew565 has left #ruby [#ruby]
zz_pinage404 is now known as pinage404
chase-work has joined #ruby
pitzips has joined #ruby
pinage404 is now known as zz_pinage404
postmodern has joined #ruby
brennanMKE has quit [Remote host closed the connection]
axeman- has joined #ruby
<zendeavor> comes down to who can yell and hold a straight face longer.
chile_andes has joined #ruby
atyz has joined #ruby
<Eiam> zendeavor: I try to avoid yelling.
<Eiam> she's a stubborn redhead, just like her mom. and my mom. and my other daughter
brianpWins has joined #ruby
<Eiam> #parentingadvice
sailias has quit [Ping timeout: 256 seconds]
Vivekananda has joined #ruby
atyz has quit [Client Quit]
atyz has joined #ruby
runa_ has joined #ruby
WPA3 has quit [Ping timeout: 276 seconds]
rdark has joined #ruby
<runa_> heyas. I'm suffering trying to get a write a text using rmagick so it looks good. I've tried antialias, Arial.TTF, but the same text, with the same font and size, looks great on chrome and ugly w/ rmagick
kirun has joined #ruby
amacgregor has quit [Ping timeout: 268 seconds]
kaspergrubbe has joined #ruby
RichardBaker has quit [Quit: RichardBaker]
Mon_Ouie has quit [Ping timeout: 264 seconds]
timonv has quit [Remote host closed the connection]
anonymus_ has quit [Remote host closed the connection]
anonymuse has joined #ruby
Mattix has joined #ruby
brennanMKE has joined #ruby
<Mattix> Hey, hello
<Mattix> do you happen to know if warbler needs to write something on the disk?
kirun has quit [Ping timeout: 268 seconds]
<Mattix> I guess it generates .class files in memory, but I'm not sure
brennanM_ has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
kapowaz has joined #ruby
flyinprogramer has joined #ruby
brennanMKE has quit [Ping timeout: 245 seconds]
cj3kim has quit [Remote host closed the connection]
anonymuse has quit [Ping timeout: 276 seconds]
_droid has quit [Quit: _droid]
Patchou has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
cads has joined #ruby
thams has joined #ruby
anonymuse has joined #ruby
PhatBaja has quit [Quit: Leaving.]
jharveysmith has joined #ruby
manutter has joined #ruby
<jharveysmith> hello
devoldmx3 has joined #ruby
<jharveysmith> i am running ruby-2.0p247 and it seems that root gets a different include path then other users. Why might that be? what should I look at? I would like it to be the same for everyone (root and non-root).
devoldmx has quit [Ping timeout: 240 seconds]
jonahR has quit [Quit: jonahR]
patsToms has quit [Read error: Connection reset by peer]
Notte has joined #ruby
Banistergalaxy has joined #ruby
BizarreCake has quit [Ping timeout: 264 seconds]
Shirakawasuna has joined #ruby
nkts has quit [Quit: -]
Shirakawasuna has quit [Max SendQ exceeded]
Shirakawasuna has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
nomenkun has joined #ruby
huoxito has joined #ruby
forrest has joined #ruby
elnormous has joined #ruby
geekbri_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
dankest has quit [Quit: Peace]
graft has quit [Remote host closed the connection]
nbouscal has joined #ruby
Nisstyre-laptop has joined #ruby
Mattix has quit [Ping timeout: 246 seconds]
i_s_ has quit [Remote host closed the connection]
locriani has joined #ruby
RORgasm has quit [Remote host closed the connection]
twoism has joined #ruby
twoism has quit [Remote host closed the connection]
chile_andes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fridim__ has joined #ruby
zomgbie has quit [Read error: Connection reset by peer]
twoism has joined #ruby
lunarjar has quit [Ping timeout: 240 seconds]
zomgbie has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
browndawg has quit [Quit: Leaving.]
mulander has joined #ruby
cha1tanya has joined #ruby
browndawg has joined #ruby
waxjar has quit [Ping timeout: 248 seconds]
browndawg has quit [Client Quit]
realDAB has quit [Quit: realDAB]
waxjar has joined #ruby
aeontech has quit [Quit: aeontech]
moofy has joined #ruby
lunarjar has joined #ruby
aeontech has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
JMcAfreak has quit [Ping timeout: 260 seconds]
Catbuntu has quit [Quit: loveRails]
rodacato has quit [Remote host closed the connection]
burlyscudd has quit [Quit: Leaving.]
tricon_ has joined #ruby
burlyscudd has joined #ruby
jonahR has joined #ruby
SHyx0rmZ has joined #ruby
JMcAfreak has joined #ruby
pedda has joined #ruby
Tricon has quit [Ping timeout: 276 seconds]
tonini has quit [Remote host closed the connection]
lebek has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
axeman- has quit [Remote host closed the connection]
aeontech has quit [Quit: aeontech]
moofy has left #ruby [#ruby]
<hanmac1> jharveysmith: did you use rvm?
RORgasm has joined #ruby
cha1tanya has quit [Ping timeout: 248 seconds]
vlad_starkov has joined #ruby
CubicE has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Giorgio has quit [Read error: Connection reset by peer]
popl has joined #ruby
timonv has joined #ruby
realDAB has joined #ruby
viszu has quit [Quit: Leaving.]
kayloos has quit [Remote host closed the connection]
moofy has joined #ruby
apeiros has joined #ruby
xcthulhu has quit [Quit: xcthulhu]
jarin has joined #ruby
flyinprogramer has quit [Quit: flyinprogramer]
mmitchel_ has quit [Remote host closed the connection]
<ZOGM> Gents, how do I run RoR on port 80?
lindenle has quit [Read error: Connection reset by peer]
<hanmac1> ZOGM: #rubyonrails
mmitchell has joined #ruby
<ZOGM> ww thx
i_s has joined #ruby
tbrock has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
erry has quit [Quit: Segmentation fault]
erry_ has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
moofy has left #ruby [#ruby]
hanmac1 has quit [Quit: Leaving.]
erry_ is now known as erry
niceguyjames has joined #ruby
netQT_ has joined #ruby
burlyscudd has quit [Quit: Leaving.]
netQT_ has quit [Remote host closed the connection]
rupee has quit [Quit: Leaving]
jefflyne has joined #ruby
eaWPq4nU has quit [Remote host closed the connection]
choobie has quit [Ping timeout: 268 seconds]
ryannielson has quit [Quit: ryannielson]
eaWPq4nU has joined #ruby
mary5030 has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
burlyscudd has joined #ruby
runa_ has left #ruby [#ruby]
colonolGron has joined #ruby
mansi has quit [Remote host closed the connection]
thams has quit [Quit: thams]
axeman- has joined #ruby
fermion has quit [Quit: Computer has gone to sleep.]
Krajsnick has quit [Remote host closed the connection]
mansi has joined #ruby
vlad_sta_ has joined #ruby
aeontech has joined #ruby
ffio has joined #ruby
realDAB has quit [Quit: realDAB]
vlad_starkov has quit [Ping timeout: 245 seconds]
Nilium has quit [Ping timeout: 245 seconds]
Ripp__ has joined #ruby
jprovazn has quit [Quit: Odcházím]
Mattix has joined #ruby
mary5030 has joined #ruby
mansi has quit [Ping timeout: 245 seconds]
<Mattix> hey guys, I can't find any good resource/guide/manual to learn how to integrate a java code with a ruby code through jRuby
<Mattix> is it possible? maybe the idea is to run ruby alone, but not integration is posible
ElderFain_ has joined #ruby
MrZYX|off is now known as MrZYX
xcv has quit [Remote host closed the connection]
flyinprogramer has joined #ruby
choobie has joined #ruby
choobie has joined #ruby
choobie has quit [Changing host]
smathieu has quit [Remote host closed the connection]
<havenwood> Mattix: Here's the "Calling Java from Jruby Wiki": https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby
ElderFain has quit [Ping timeout: 260 seconds]
<havenwood> Mattix: You might as in #jruby as well.
matty_matt has joined #ruby
devoldmx has joined #ruby
Burnninator has joined #ruby
headius has quit [Quit: headius]
<davidcelis> !part
vlad_sta_ has quit [Ping timeout: 276 seconds]
<havenwood> s/as/ask
<zendeavor> Mattix: in future, show some more effort. irc is not your personal documentation resource.
RichardBaker has joined #ruby
vlad_starkov has joined #ruby
devoldmx3 has quit [Ping timeout: 264 seconds]
gustavn_ has joined #ruby
goleldar has quit [Ping timeout: 276 seconds]
mulander has quit [Excess Flood]
goleldar has joined #ruby
mansi has joined #ruby
mulander has joined #ruby
<lectrick> >> "- Men\xFC -".force_encoding('UTF-8').split('') #=>ArgumentError: invalid byte sequence in UTF-8
<eval-in> lectrick => invalid byte sequence in UTF-8 (ArgumentError) ... (https://eval.in/38403)
<lectrick> Anyone know why that is and what the best way is to fix it? (Ruby 1.9.x)
Todd` has joined #ruby
sweeper has left #ruby [#ruby]
<joelteon> yeah, why are you forcing it to be utf-8
Todd` is now known as Todd
amacgregor has joined #ruby
gustavn has quit [Ping timeout: 246 seconds]
burlyscudd has quit [Quit: Leaving.]
kaspergrubbe has quit [Remote host closed the connection]
<apeiros> lectrick: the byte \xFC does not map to a character in utf-8
mist has quit [Quit: leaving]
<apeiros> you tell ruby that string was utf-8, but it isn't. methods working on encoded strings require that the encoding is valid.
<lectrick> is there a method that will raise on force_encoding if that is the case, such as perhaps, force_encoding! ? :)
<workmad3> well duh, it's > 127 in decimal
brbcoding has quit [Ping timeout: 245 seconds]
<workmad3> lectrick: you could try encoding it, rather than force_encoding it
<apeiros> lectrick: not raise, but there's .valid_encoding?
<apeiros> but you probably have a source which is NOT utf-8
<lectrick> apeiros: NICE
<apeiros> figure out what encoding your source uses and properly transcode it (using String#encode)
<lectrick> got it. thanks
<workmad3> lectrick: which will attempt to transcode from the current encoding to utf8, rather than just overwriting the name of the encoding on the string
yalue has quit [Read error: Connection reset by peer]
<apeiros> >> "Men\xFC".force_encoding('windows-1252').encode('utf-8')
<eval-in> apeiros => "Menü" (https://eval.in/38410)
<apeiros> how did I just guess that…
cj3kim has joined #ruby
<pontiki> that is impressive
<havenwood> stop peeking at the matrix
<pontiki> i sure don't have that one memorized
<apeiros> well, there's like a 70% chance that it's win1252, about 15% chance that it is macroman and the rest is some whatever encoding
<apeiros> notice that iso8859-1 is often wrongly used in place of win1252
<workmad3> apeiros: because there's only a limited number of commonly used single-byte encodings?
<lectrick> is there a way to detect the encoding somehow?
<apeiros> workmad3: yupp. see my estimates :)
<apeiros> lectrick: short answer: no.
nkts has joined #ruby
<workmad3> lectrick: long answer, hell no
<lectrick> I was able to get it to encode properly with: "- Men\xFC -".encode('UTF-8','ISO-8859-1')
<workmad3> lectrick: for an even longer answer, read Godel Escher and Bach
<apeiros> lectrick: >> 22:24 apeiros: notice that iso8859-1 is often wrongly used in place of win1252
<havenwood> Menü
<lectrick> you know, that book has been on my reading list for over 20 years now workmad3 ... I should get on that. It's about symbolic representation isn't it
<apeiros> notice the *WRONGLY* :-P
Davey has quit [Quit: Computer has gone to sleep.]
thams has joined #ruby
<apeiros> anyway, there's a number of libraries which try and fail miserably because they try to do detection generically.
<apeiros> you can do a somewhat reliable detection if you can narrow it down, though
<workmad3> lectrick: GED? it's about the incompleteness theorem, with detours into art, music, representation, formal languages, biology, neuroscience and other stuff :)
<apeiros> but nothing beats explicit passing of the encoding.
<matled> if I'd want to assume it's utf-8 and use the :invalid => :replace option, do I really have to go through something like this? str.encode("utf-32", "utf-8", invalid: :replace).encode("utf-8", "utf-32")
xcthulhu has joined #ruby
<workmad3> lectrick: the stuff in particular I'm talking about though is the impossibility of transmitting a message that tells you how to decode it
timonv has quit [Remote host closed the connection]
thams has quit [Client Quit]
tobin has quit [Quit: tobin]
<lectrick> workmad3: nice :)
<lectrick> workmad3: yeah that is my kinda book. been saving it for a rainy day... for 20 years... sigh lol
<workmad3> lectrick: it's not exactly difficult to grasp tbh... just ask yourself, what do you use to represent the decoding instructions?
<lectrick> apeiros: maybe autoconvert from a set, prioritized list of possible encodings
axeman- has quit [Remote host closed the connection]
<lectrick> workmad3: yep, i get it :)
<workmad3> (remember of course, a true set of decoding instructions mush be usable with absolutely *no* prior shared info :) )
<apeiros> lectrick: bad
<apeiros> lectrick: every single-byte encoding can "correctly" be translated to utf-8
<apeiros> you'll just get wrong characters in the results
<apeiros> >> "Men\xFC".force_encoding('mac-roman').encode('utf-8')
<lectrick> apeiros: lovely. is there a best-guess solution at least
<eval-in> apeiros => unknown encoding name - mac-roman (ArgumentError) ... (https://eval.in/38413)
<apeiros> >> "Men\xFC".force_encoding('macroman').encode('utf-8')
<eval-in> apeiros => "Men¸" (https://eval.in/38414)
<apeiros> see? the result is valid utf-8
_seanc_ has joined #ruby
<lectrick> >> "Men\xFC".force_encoding('macroman').encode('utf-8').valid_encoding?
<workmad3> lectrick: where is the data coming from?
Davey has joined #ruby
<lectrick> workmad3: The People Of The World :O
<workmad3> lectrick: because the best solution is to go back to that and beat the encoding out of them
bradhe has joined #ruby
<apeiros> lectrick: as said, there are libraries. for my own narrowed down use case I use this which is (for my use-case) more reliable: https://github.com/apeiros/tabledata/blob/master/lib/tabledata/detection.rb
Uranio has quit [Quit: while you reading this, a kitty dies]
<apeiros> one existing lib I remember the name of is 'chardet'
<workmad3> afaik, libraries for autodetecting tend to use certain heuristics that work better on large bodies or text
<workmad3> *of
<apeiros> but beware, it was a quick hack, it may not work well for your use-case.
mrmist has joined #ruby
<apeiros> workmad3: yeah, heuristics with dictionaries work relatively well
manutter has quit [Read error: No route to host]
mrmist is now known as mist
<lectrick> apeiros: interesting.were you also the person saying that win1252 is actually more appropriate than iso8859-1 ?
<workmad3> lectrick: probably more appropriate, in his experience
manutter has joined #ruby
<havenwood> one commonly misidentified as the other
<workmad3> ^^
<apeiros> iso-8859-1 is a subset of win1252
<havenwood> apeiros: oh really? crazy
<apeiros> and you can rule out iso-8859-1 and iso-8859-15 if certain bytes are present (since they don't encode a character)
thams has joined #ruby
<apeiros> (iso-8859-1 == iso-8859-15 btw. - just for the substitution of some char with the € sign)
mark_locklear has quit [Ping timeout: 264 seconds]
Nisstyre-laptop has quit [Ping timeout: 276 seconds]
<havenwood> i pretend utf-8 is all that exists and just hum really loudly
<workmad3> character encodings are crazy stuff
<workmad3> havenwood: how about utf-16? utf-32? ucs-2?
<havenwood> >.>
bricker_ has joined #ruby
<apeiros> hm, odd… I seem to misremember the part about 8859-15
<workmad3> havenwood: or how about the 7 bit character encoding that SMS uses?
rodacato has joined #ruby
<havenwood> SMS......
<havenwood> kill it with fire!
* breakingthings hums loudly to sooth havenwood
<apeiros> workmad3: SMS encodings are teh horror :(
<apeiros> that said, they were never meant for human-to-human messaging
<workmad3> (incidentally, that's part of why there are... odd... character limits in SMS... 7 bit encoding with some control sections and page continuation sections)
<apeiros> workmad3: you can have utf-8 sms
<apeiros> but then your char limit is ~80
bricker has quit [Ping timeout: 256 seconds]
<workmad3> apeiros: yup :) and drops to more like 60 on page 2+
MrZYX is now known as MrZYX|off
rodacato has quit [Remote host closed the connection]
<havenwood> i'd be more into texting if the char limit was like 5
<apeiros> sms is twitter on steroids
<breakingthings> somehow i don't think that's right
<workmad3> apeiros: is this backwards monday?
smathieu has joined #ruby
<apeiros> what? today is thursday.
<workmad3> if only
nomenkun has quit [Remote host closed the connection]
<workmad3> then I'd only have 1 more day of work :P
ehaliewicz has joined #ruby
<havenwood> Thurs is good stuff.
Zai00 has joined #ruby
<pontiki> Thor's Day
<havenwood> >> Date::DAYNAMES['Thor'.size]
<eval-in> havenwood => uninitialized constant Date::DAYNAMES (NameError) ... (https://eval.in/38416)
r0bglees0n has quit [Ping timeout: 276 seconds]
<havenwood> boo hiss
<havenwood> #=> "Thursday"
<musl> It is a day burdened with glorious purpose.
<havenwood> >> require 'date'; Date::DAYNAMES['Thor'.size]
<eval-in> havenwood => "Thursday" (https://eval.in/38417)
Mattix has quit [Ping timeout: 256 seconds]
saarinen has quit [Quit: saarinen]
brennanM_ has quit [Remote host closed the connection]
flyinprogramer has quit [Quit: flyinprogramer]
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> class String; alias hammer size end
chase-work has joined #ruby
Quintus_q has joined #ruby
<havenwood> Was stoked to discover Shift-Ctrl-Command-E in TM2. Evals #=> inline.
p0wn3d has quit [Remote host closed the connection]
<havenwood> <3 caps locks bound to ctrl
rodacato has joined #ruby
r0bglees0n has joined #ruby
<sam113101> I map it to backspace
<jharveysmith> hammac1: i did not
<RubyPanther> I set mine to SUPER, and get a whole extra set of bindings
alex__c2022 has quit [Quit: alex__c2022]
brennanMKE has joined #ruby
rodacato has quit [Remote host closed the connection]
rodacato has joined #ruby
<apeiros> workmad3: anyway, today is Pungenday
realDAB has joined #ruby
ndrei has quit [Quit: Lost terminal]
icecandy has joined #ruby
icecandy has quit [Client Quit]
luckyruby has joined #ruby
icecandy has joined #ruby
nomenkun has joined #ruby
Desert_eagle has quit [Read error: Operation timed out]
Mattix has joined #ruby
cortexman has joined #ruby
icecandy has quit [Remote host closed the connection]
<cortexman> I can't follow the rvm instructions because i'm behind a proxy. I set http_proxy but it's not taking. if I modify the curl command with —proxy it works at first, but when the script it downloads tries to do further downloads it fails. https://rvm.io/rvm/install
_seanc_ has quit [Quit: _seanc_]
_seanc_ has joined #ruby
Lewix has quit [Remote host closed the connection]
TonyMergue1 has joined #ruby
<havenwood> cortexman: Might ask #rvm on that one. I'm sure your initial -proxy isn't being passed on.
TonyMergue has quit [Ping timeout: 276 seconds]
jaimef has quit [Excess Flood]
TheMoonMaster_ is now known as TheMoonMaster
<havenwood> cortexman: You could modify the script, may be a more elegant way though?
MrPoT4tO has joined #ruby
ndrei has joined #ruby
MrZYX|off is now known as MrZYX
LaPetiteFromage has joined #ruby
zomgbie has quit [Ping timeout: 264 seconds]
lnormous has joined #ruby
hanmac1 has joined #ruby
DeanH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baordog has quit [Remote host closed the connection]
bluOxigen has joined #ruby
aantix has quit [Quit: aantix]
jaimef has joined #ruby
Ripp__ has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
iliketurtles has joined #ruby
Al_ has joined #ruby
jibi has quit [Read error: Connection reset by peer]
r_b00f has quit [Remote host closed the connection]
renderful has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
renderful has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
ehaliewicz has quit [Ping timeout: 268 seconds]
mansi has quit [Read error: Connection reset by peer]
Desert_eagle has joined #ruby
alex__c2022 has joined #ruby
mansi has joined #ruby
tjbiddle has joined #ruby
Kruppe has quit [Ping timeout: 246 seconds]
BillCriswell has quit [Remote host closed the connection]
burlyscudd has joined #ruby
jibi has joined #ruby
v0n has quit [Ping timeout: 276 seconds]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
vlad_starkov has joined #ruby
Krajsnick has joined #ruby
renderful has quit [Ping timeout: 245 seconds]
<pontiki> cortexman: stupid question, but have you exported http_proxy?
<cortexman> yes i said that in my original post
elaptics`away is now known as elaptics
<zendeavor> is rvm critical for your needs
<cortexman> no i don't care how I install it
<zendeavor> chruby and rbenv fill similar niches
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
_veer has joined #ruby
saintcajetan has quit [Read error: Connection reset by peer]
_veer has quit [Changing host]
_veer has joined #ruby
<cortexman> i don't understand why there isn't a dmg
jlast has quit [Remote host closed the connection]
<zendeavor> mac bois
hanmac1 has quit [Ping timeout: 276 seconds]
Spami has quit [Quit: This computer has gone to sleep]
<pontiki> you said you set it
<pontiki> not exported it
burlyscudd has quit [Ping timeout: 245 seconds]
allsystemsarego has quit [Quit: Leaving]
<cortexman> i linked to the instructions i followed
<havenwood> cortexman: The Tokaido project will provide a .app that is statically linked and ready to go. Coming along nicely but not quite ready yet.
<havenwood> cortexman: Maybe give ruby-install plus chruby a try in the meanwhile?: https://github.com/postmodern/chruby#readme
<waxjar> ^ it works really well
viszu has joined #ruby
adambeynon has joined #ruby
Spami has joined #ruby
<havenwood> cortexman: The statically linked Tokaido build does also work well with chruby, if you want to be bleeding edge on OS X: https://github.com/tokaido/tokaido-build#readme
<cortexman> haha no thanks but I will try chruby
matty_matt has left #ruby [#ruby]
banister_ has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
manutter has quit [Ping timeout: 245 seconds]
nbouscal has quit [Ping timeout: 264 seconds]
saintcajetan has joined #ruby
manutter has joined #ruby
locriani has quit [Remote host closed the connection]
dankest has joined #ruby
jalcine has joined #ruby
jonathanwallace has quit [Ping timeout: 264 seconds]
headius has joined #ruby
<cortexman> chruby fail. wget does not come on osx. trying to download that file with curl downloads an html page. instructions apparently not tested.
<postmodern> cortexman, brew install wget :)
<cortexman> i have not installed homebrew yet.
<cortexman> it requires ruby first of all
<pontiki> do it
<pontiki> do it now
<havenwood> cortexman: Homebrew is worth installing. It will install with the Ruby that is pre-installed on your system.
romdi has quit [Ping timeout: 240 seconds]
<havenwood> cortexman: First install Homebrew and command-line-tools. Then `brew install ruby-install chruby` and it will take you from there. :)
devoldmx has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
<zendeavor> homebrew fills me with rage
zomgbie has joined #ruby
<havenwood> zendeavor: MacPorts or Finks your poison?
Todd has quit [Quit: Leaving]
<zendeavor> system-wide install of utilities tht assumes every mac is a single-user system
<havenwood> Oh, that. :P
<zendeavor> i guess it's fair
<zendeavor> you mac bois
ldnunes has quit [Quit: Leaving]
<zendeavor> "don't touch. mine."
Nisstyre has joined #ruby
Zai00 has quit [Quit: Zai00]
<cortexman> mac bois. you keep saying that word.
<cortexman> i am using a mac. i use every os.
<zendeavor> you're reading too much into it
<zendeavor> relax.
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
<pontiki> no one forces a mac to use homebrew
<breakingthings> I do
brunoro__ has quit [Ping timeout: 264 seconds]
<zendeavor> but homebrew forces a mac to do things its way
<pontiki> sorry, missed a couple words in thre
tobyo1 has quit [Read error: Connection reset by peer]
<pontiki> well, yes
<pontiki> so does fink, so does macports
<pontiki> so does xcode
<zendeavor> surely
<pontiki> what's your point?
<havenwood> zendeavor: They may have taken the 90% use-case a bit far. I agree it is extreme to disalow sudo instead of deescalating privileges, but I respect the desire for simplicity.
<pontiki> so does apt-get on linux, so does yum on RHEL/fedora
tobyo1 has joined #ruby
<pontiki> and every other package manager in the world
<havenwood> package managers are opinionated, hard to install packages otherwise :P
<pontiki> yus
breakingthings has quit [Quit: breakingthings]
Asher has joined #ruby
<zendeavor> chroot and circumvent all the things
zomgbie has quit [Ping timeout: 256 seconds]
kofno has quit [Remote host closed the connection]
<havenwood> zendeavor: ruby-install works with sudo by running brew as the brew-executable owner
workmad3 has quit [Read error: Operation timed out]
<havenwood> on OS X**
<zendeavor> i saw someone a few days ago trying to work around a "bug" in 10.9 wrt sudo
<zendeavor> they had written a bash script with 54 sudo calls
locriani has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
<zendeavor> those were meant to drop privileges, not escalate
<zendeavor> the script itself was run as root
<zendeavor> he needed help appending a line to /etc/sudoers with an echo statement
<zendeavor> it rotted my brain
renderful has joined #ruby
<sam113101> has it recovered yet?
<zendeavor> obviously not, as now i've decided that homebrew is not fit to exist
theRoUS has quit [Read error: Operation timed out]
lutfidemirci has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
DeanH has joined #ruby
ephemerian has joined #ruby
Mattix has quit [Ping timeout: 264 seconds]
ffio has quit [Quit: WeeChat 0.4.1]
reset has joined #ruby
ntus1017 has quit [Remote host closed the connection]
dEPy has quit [Remote host closed the connection]
nbouscal has joined #ruby
choobie has quit [Ping timeout: 246 seconds]
kayloos has joined #ruby
<havenwood> WE NO HAVE MULTIPLE USERS!!
<havenwood> :)
locriani has quit [Remote host closed the connection]
Al_ has quit [Quit: Al_]
locriani has joined #ruby
<zendeavor> boggles the mind
realDAB has quit [Quit: realDAB]
<havenwood> I guess nicer to have a multi-user system and force single-user than a single-user system Jimi-rigged for whatev.
Mattix has joined #ruby
<apeiros> havenwood: that's why brew chowns /usr/local to a single user too
Astral_ has quit [Read error: Connection reset by peer]
gyre007 has quit [Ping timeout: 256 seconds]
gemmy has joined #ruby
jalcine has quit [Excess Flood]
<apeiros> horrible. but the author of brew seems to be happily oblivious as to how a multi-user OS works.
Astral_ has joined #ruby
lnormous has quit [Quit: Leaving]
<zendeavor> very evidently
MrPoT4tO has quit [Read error: Connection reset by peer]
elnormous is now known as lnormous
<havenwood> yeah, they could 'fix' it with a deescalation scheme but no interest
<havenwood> prolly little demand
Banistergalaxy has joined #ruby
<zendeavor> i'd rewrite it like an asshole
ehaliewicz has joined #ruby
smathieu has quit [Remote host closed the connection]
jorge_ has joined #ruby
colonolGron has quit [Quit: Lost terminal]
<havenwood> long as it works and packages get updated briskly, most are happy clams
MrPoT4tO has joined #ruby
banghouse2 has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> yeah, I'm lucky, I don't have multiple users, and as long as that's the case, brew is (sadly) the most painless experience.
realDAB has joined #ruby
<apeiros> doesn't speak well for the state of package managers on osx :-/
Xeago has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
<zendeavor> in my humble opinion, the right thing to do would be user-local installs symlinked to ~/bin with a --system option or configurable
banghouse2 is now known as banghouse
bluOxigen has joined #ruby
locriani has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby
<zendeavor> since "package managers" are a subversion of osx anyway
<havenwood> dunno, have a BSD (macports), debian (fink) and homegrown (brew) option at least is variety, and each do work with a bit of prodding :P
kayloos has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 248 seconds]
<havenwood> Gentoo.
<apeiros> zendeavor: I agree on 'have user installs by default, provide system installs by option', I don't agree that package managers are a subversion of osx.
<apeiros> osx does have a unix root
<havenwood> heck, half its devs are also FreeBSD devs
cj3kim has quit [Read error: Connection reset by peer]
smathieu has joined #ruby
<zendeavor> well, i know this
Spooner has joined #ruby
<apeiros> package are not part of the world which is GUI apps in OSX, though. and that distinction is fine by me.
thebope has joined #ruby
cj3kim has joined #ruby
gustavn_ has quit [Read error: Connection reset by peer]
<zendeavor> i'll take back the subversion comment
<thebope> Hi, I'd like to create a rakefile which just runs a .rb file with command line arguments
<thebope> but I'm having a little trouble
Quintus_q has quit [Quit: Valete!]
niceguyjames has joined #ruby
<thebope> that is what I have tried
mmitchell has quit [Ping timeout: 245 seconds]
_carloslopes has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
<apeiros> thebope: you want to quote your argument
<apeiros> otherwise it's taken as ruby code, which it isn't (or shouldn't be)
kaspergrubbe has joined #ruby
<apeiros> e.g. sh 'ruby arg1 arg2'
<thebope> ahhhh
<apeiros> n8
apeiros has quit [Remote host closed the connection]
<thebope> apeiros: beautiful works perfectly
<thebope> and hes gone
spider-mario has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
<Xeago> what discussion is going on?
forrest has quit [Quit: Leaving]
jorge_ has quit [Remote host closed the connection]
<havenwood> We all love OS X, Norse mythology, and encoding problems. (In reverse chronological order.)
jorge_ has joined #ruby
<popl> havenwood: we do?
adambeynon has quit [Quit: Textual IRC Client: www.textualapp.com]
<havenwood> Apparently so, quickly moving on...!!
kaspergrubbe has quit [Ping timeout: 245 seconds]
Kar- has quit [Remote host closed the connection]
* havenwood flees to the hills.
* popl summons the eagles
<havenwood> That is cheating. If they had eagles why didn't they FLY TO MORDOR...
zomgbie has joined #ruby
<havenwood> grrr
<popl> \o/
atyz has quit [Quit: Linkinus - http://linkinus.com]
<popl> I just found my old second edition of The Two Towers
<popl> It has a map in the back of the book
<popl> unfortunately it's got a little tear. :(
<havenwood> Tolkien's deus ex machina.
<popl> the dustjacket is all effed up around the edges too
blz7337 has joined #ruby
AkashicLegend has joined #ruby
<havenwood> Eagles.
<popl> \o/
razi has quit [Ping timeout: 248 seconds]
jorge_ has quit [Ping timeout: 264 seconds]
<popl> I was hoping to sell it but I'm afraid I won't get much for it in its current condition.
<havenwood> 1) Give eagle the ring. 2) Mohitos.
<popl> Is that the plot of that spoof video?
<popl> There are probably several.
chase-work has quit [Quit: Computer has gone to sleep.]
<havenwood> dunno, heh
<popl> It's actually a Taiwanese printing. :P
<popl> (the book)
<popl> that always struck me as funny
<popl> anyways
mansi has quit [Remote host closed the connection]
fernandoaleman has quit [Quit: Leaving.]
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
mansi has joined #ruby
<havenwood> Taiwanese printing, Tolkien, OS X, Norse mythology, and encoding problems. (In reverse chronological order.)
<popl> haha
zomgbie has quit [Ping timeout: 246 seconds]
MrPoT4tO has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
johnnyfuchs has quit [Remote host closed the connection]
choobie has joined #ruby
jalcine has joined #ruby
<popl> in reverse chronological order: OS X, encoding problems, Tolkien, Taiwanese printing, Norse mythology
devoldmx has joined #ruby
<Xeago> what?!
burlyscudd has joined #ruby
<goleldar> hello
realDAB has quit [Quit: realDAB]
<popl> Xeago: wat
tobyo1 has quit [Ping timeout: 248 seconds]
<goleldar> how do you create an instance variable that is specific to the current thread
mansi has quit [Ping timeout: 264 seconds]
lindenle has joined #ruby
<popl> LOOK OUT IT'S A DROP BEAR
popl has quit [Quit: We must make an idol of our fear, and call it God.]
ZOGM has quit [Remote host closed the connection]
zeropx has quit [Quit: has left the room … Or did he?]
niceguyjames has quit [Quit: Computer has gone to sleep.]
epochwolf has quit [Quit: Uh no...]
xcthulhu has quit [Quit: xcthulhu]
pedda has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MrZYX> goleldar: don't share the instance across threads. There's also Thread#[] and Thread#[]=, so you can do Thread.current[:foo] = "bar"; Thread.current[:foo]
codecop has quit [Remote host closed the connection]
saarinen has joined #ruby
niceguyjames has joined #ruby
Notte has quit [Remote host closed the connection]
locriani has joined #ruby
epochwolf has joined #ruby
epochwolf has quit [Excess Flood]
jibi has quit [Quit: .]
lucianosousa has quit [Quit: lucianosousa]
locriani has quit [Read error: Connection reset by peer]
epochwolf has joined #ruby
pedda has joined #ruby
pedda has quit [Max SendQ exceeded]
hanmac1 has joined #ruby
locriani has joined #ruby
fernandoaleman has joined #ruby
obs has quit [Quit: Konversation terminated!]
Spooner has quit [Read error: Connection reset by peer]
pipework is now known as grumpwork
xybre is now known as pipework|dontban
Spooner has joined #ruby
thams has quit [Quit: thams]
jonathanwallace has joined #ruby
codemannew has joined #ruby
pipework|dontban is now known as xybre
<goleldar> this is my class but someone mentioned that this was not thread safe.. i am having a hard time figuring out how to make it thread safe
elaptics is now known as elaptics`away
hanmac1 has quit [Ping timeout: 246 seconds]
epochwolf has quit [Quit: Uh no...]
epochwolf has joined #ruby
epochwolf has quit [Excess Flood]
locriani has quit [Remote host closed the connection]
locriani has joined #ruby
locriani has quit [Remote host closed the connection]
epochwolf has joined #ruby
epochwolf has quit [Excess Flood]
epochwolf has joined #ruby
rien has joined #ruby
freakazoid0223 has joined #ruby
<rien> how do I print a string byte by byte? I want to see the unicode characters split over several bytes
epochwolf has left #ruby [#ruby]
locriani has joined #ruby
Notte has joined #ruby
<rien> string.bytes.to_a thanks :)
brianpWins has quit [Quit: brianpWins]
brianpWins has joined #ruby
Nilium|m has joined #ruby
seich- has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
fernandoaleman has quit [Quit: Leaving.]
tatsuya_o has quit [Remote host closed the connection]
epochwolf has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
brennanMKE has joined #ruby
dankest has quit [Quit: dankest]
Shirakawasuna has quit [Quit: Leaving]
bradhe has quit [Ping timeout: 245 seconds]
luckyruby has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
seich- has joined #ruby
jonahR has quit [Ping timeout: 246 seconds]
gemmy has quit [Quit: leaving]
zomgbie has joined #ruby
blitz has quit [Quit: This computer has gone to sleep]
henn has joined #ruby
<Paradox> IRL big ruby gem http://amzn.com/B000WATSQU
Alkorn has joined #ruby
kofno has joined #ruby
rdark has quit [Quit: leaving]
zomgbie has quit [Ping timeout: 248 seconds]
tatsuya_o has quit [Remote host closed the connection]
x907 has quit [Ping timeout: 240 seconds]
m8 has quit [Quit: Sto andando via]
<davidcelis> you're just calling... i += (i + i) basically
jonahR has joined #ruby
SecretAgent has quit [Read error: Connection reset by peer]
<MrZYX> ruby doesn't have a incrementor
<Rylai> yeah
<Rylai> Ruby doesn't have a ++ feature
enebo has quit [Quit: enebo]
<havenwood> i += i + i
<havenwood> oh, already said >.>
<Rylai> So, uh, it's taking it as you saying "i is positive" twice before each variable
<havenwood> 1 + 1 + 1 #=> 3
devoldmx3 has joined #ruby
<epitron> i += ++++++++i + ----------i #=> 3
<epitron> :)
<musl> How do you document &block arguments with RDoc?
<davidcelis> by using YARD
<Rylai> epitron: not quite
<Rylai> >> 1 += ++1 + -------1
<eval-in> Rylai => /tmp/execpad-b90fe8c730ae/source-b90fe8c730ae:2: syntax error, unexpected tOP_ASGN, expecting keyword_end ... (https://eval.in/38424)
<goleldar> how do you dynamically call a method with parameters?
<Rylai> lol oops
<epitron> Rylai: quite
<havenwood> goleldar: send method, params
Nilium|m has quit [Remote host closed the connection]
<musl> davidcelis: Not a fan of yard. :/
<MrZYX> can we establish public_send for (most) metaprogramming and send for hacks please?
<Rylai> epitron: oh, wait, that must be an even amount of minuses :p
<epitron> goleldar: object.send("methodname", parameter1, parameter2)
<havenwood> goleldar: method arg being a symbol
<davidcelis> eh. it's so easy to bypass privacy, people are gonna do it
<epitron> Rylai: very perceptive!
<MrZYX> havenwood: goleldar it takes a string just fine
<Rylai> brain farts are fun.
<havenwood> MrZYX: But it IS a symbol. :P
tommyvyo has quit [Ping timeout: 245 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
<MrZYX> davidcelis: my point is more showing intention than respecting the protection actually
Cyrus_ has joined #ruby
nomenkun has quit [Remote host closed the connection]
Mattix has quit [Ping timeout: 245 seconds]
<zachrab> does every class attribute need to be set in the initialize method?
<MrZYX> "I need to call this method from a variable" vs "I know this is bad but I really have to do it" basically
headius has quit [Quit: headius]
ILoveYou has joined #ruby
<havenwood> zachrab: no
<goleldar> thank you :)
<zachrab> havenwood: thx having a brain fart
kofno has quit [Ping timeout: 264 seconds]
dankest has joined #ruby
tommyvyo has joined #ruby
AkashicLegend has quit [Ping timeout: 248 seconds]
AkashicLegend_ has joined #ruby
mary5030 has quit [Ping timeout: 245 seconds]
pentameter has quit [Remote host closed the connection]
Ripp__ has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
Vivekananda has joined #ruby
kobain has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
bamdad has joined #ruby
vlad_starkov has joined #ruby
Nilium has joined #ruby
<Nilium> Holy fuck pry is more awesome than I thought it was
<goleldar> how could I hide my implentation in this piece of code but still make it thread safe? https://gist.github.com/justinleveck/c144f8d5ae04411b57f3
ner0x has joined #ruby
<Nilium> This cd/ls stuff it provides is fantastic.
AkashicLegend_ has quit [Quit: AkashicLegend_]
<pontiki> innit? :)
hasrb has joined #ruby
bigoldrock has quit [Quit: Leaving.]
bradhe has joined #ruby
bigoldrock has joined #ruby
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<davidcelis> goleldar: which bit isn't rhead safe?
vlad_starkov has quit [Ping timeout: 276 seconds]
<pontiki> the drunk parts
Mattix has joined #ruby
Astral__ has joined #ruby
Krajsnic_ has joined #ruby
randomau_ has joined #ruby
Sp4rKy has quit [Read error: Operation timed out]
<goleldar> davidcelis, that piece of code is.. but I was wondering how to make it thread safe if I made bottles_of_beer a globalish variable
vlad_starkov has joined #ruby
tjbiddle_ has joined #ruby
<goleldar> and that way did not have to pass the parameter to all my methods since they all use that value
ultimoo_ has joined #ruby
zeade1 has joined #ruby
cortexman1 has joined #ruby
hasrb_ has joined #ruby
coddymazet has joined #ruby
mgorbach has joined #ruby
Dan_ has joined #ruby
haxrbyte_ has joined #ruby
thams has joined #ruby
saarinen_ has joined #ruby
<goleldar> err I would not have to
Dan_ is now known as Guest7356
mmitchell has joined #ruby
wsterlin_ has joined #ruby
brianpWins_ has joined #ruby
mgorbach has quit [Client Quit]
mgorbach has joined #ruby
zomgbie has joined #ruby
MrZYX is now known as MrZYX|off
Nahra_ has joined #ruby
erry_ has joined #ruby
blo has joined #ruby
tobin has joined #ruby
wsterling has quit [Ping timeout: 276 seconds]
i_s has quit [Remote host closed the connection]
homelinen_ has joined #ruby
mmitchell has quit [Ping timeout: 264 seconds]
iliketurtles has quit [Quit: zzzzz…..]
ffranz has quit [Quit: Leaving]
silky__ has joined #ruby
cads has quit [Ping timeout: 268 seconds]
banister_ has quit [Remote host closed the connection]
hasrb has quit [*.net *.split]
dankest has quit [*.net *.split]
havenwood has quit [*.net *.split]
brianpWins has quit [*.net *.split]
codemannew has quit [*.net *.split]
saarinen has quit [*.net *.split]
Astral_ has quit [*.net *.split]
Krajsnick has quit [*.net *.split]
tjbiddle has quit [*.net *.split]
JMcAfreak has quit [*.net *.split]
tbrock has quit [*.net *.split]
erry has quit [*.net *.split]
soulcake has quit [*.net *.split]
zeade has quit [*.net *.split]
cortexman has quit [*.net *.split]
jlebrech has quit [*.net *.split]
threesome has quit [*.net *.split]
ultimoo has quit [*.net *.split]
randomautomator has quit [*.net *.split]
homelinen has quit [*.net *.split]
haxrbyte has quit [*.net *.split]
ChristianS has quit [*.net *.split]
malcolmva has quit [*.net *.split]
zero7 has quit [*.net *.split]
Nahra has quit [*.net *.split]
geekles has quit [*.net *.split]
tjbiddle_ is now known as tjbiddle
homelinen_ is now known as homelinen
homelinen has quit [Changing host]
homelinen has joined #ruby
brianpWins_ is now known as brianpWins
saarinen_ is now known as saarinen
ultimoo_ is now known as ultimoo
i_s has joined #ruby
geekles has joined #ruby
jlebrech has joined #ruby
zomgbie has quit [Ping timeout: 246 seconds]
i_s_ has joined #ruby
Sp4rKy has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.1]
Mon_Ouie has quit [Ping timeout: 246 seconds]
soulcake has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
blackmesa has joined #ruby
<DylanJ> Nilium: get pry/plus
ndrei has quit [Ping timeout: 264 seconds]
iliketurtles has joined #ruby
<DylanJ> then you can explore the stack
Alkorn has quit [Remote host closed the connection]
<DylanJ> edit methods
i_s has quit [Ping timeout: 248 seconds]
threesome has joined #ruby
hasrb_ has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
hanmac has joined #ruby
prakriti has quit [Remote host closed the connection]
tr0ff has joined #ruby
tr0ff has quit [Remote host closed the connection]
tr0ff has joined #ruby
thebope has quit [Remote host closed the connection]
aeontech has quit [Quit: aeontech]
tr0ff has left #ruby [#ruby]
rien has quit [Quit: leaving]
gstamp has joined #ruby
realDAB has joined #ruby
emergion has joined #ruby
sailias has joined #ruby
phantummm has quit [Ping timeout: 268 seconds]
vlad_starkov has quit [Remote host closed the connection]
hanmac has quit [Ping timeout: 246 seconds]
shadoi has joined #ruby
zeropx has joined #ruby
devoldmx3 has quit [Ping timeout: 246 seconds]
emergion has quit [Client Quit]
niklasb has quit [Ping timeout: 256 seconds]
matti has quit [Ping timeout: 268 seconds]
sebastianb has quit [Ping timeout: 246 seconds]
Wandering_Glitch has quit [Changing host]
Wandering_Glitch has joined #ruby
rhys has quit [Quit: Leaving]
thejoecarroll has quit [Ping timeout: 248 seconds]
zz_pinage404 has quit [Quit: Screw you guys i'm going home ! KMP ! ZNC - http://znc.sourceforge.net]
Paradox has quit [Ping timeout: 240 seconds]
wsterlin_ has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 240 seconds]
MrPoT4tO has joined #ruby
eregon has quit [Quit: No Ping reply in 180 seconds.]
TheNumb has quit [Ping timeout: 260 seconds]
Paradox has joined #ruby
kiela has quit [Ping timeout: 260 seconds]
marcdel has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
matti has joined #ruby
matti has quit [Changing host]
matti has joined #ruby
zz_pinage404 has joined #ruby
TheNumb has joined #ruby
threesome has quit [Ping timeout: 248 seconds]
zz_pinage404 is now known as pinage404
bricker_ is now known as bricker
thejoecarroll has joined #ruby
eregon has joined #ruby
DrCode has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
MrPoT4tO has quit [Ping timeout: 276 seconds]
kiela has joined #ruby
Mattix has quit [Ping timeout: 248 seconds]
bamdad has quit [Quit: bamdad]
Paradox has quit [Ping timeout: 240 seconds]
mist has quit [Ping timeout: 615 seconds]
coddymazet has quit []
cgore has joined #ruby
marcellu1 has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
Jedi_SCT1 has quit [Ping timeout: 248 seconds]
marcellu1 has joined #ruby
Kabaka has quit [Ping timeout: 240 seconds]
mist has joined #ruby
Patteh has quit [Ping timeout: 240 seconds]
lindenle_ has joined #ruby
Guest7356 has quit [Quit: Guest7356]
lindenle has quit [Ping timeout: 246 seconds]
Patteh has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
zeade1 has quit [Quit: Leaving.]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
ehaliewicz has quit [Ping timeout: 256 seconds]
cj3kim has quit [Read error: Connection reset by peer]
niklasb has joined #ruby
cj3kim has joined #ruby
Kabaka has joined #ruby
saarinen has quit [Quit: saarinen]
Zeeraw has joined #ruby
Jedi_SCT1 has joined #ruby
dankest has joined #ruby
jonathanwallace has quit [Quit: WeeChat 0.4.0]
nezumi has joined #ruby
tomzx_mac has joined #ruby
destruct1re has quit [Quit: leaving]
devoldmx has quit [Ping timeout: 246 seconds]
locriani has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
locriani has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
larissa has joined #ruby
jamesaanderson has joined #ruby
rodacato has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
ephemerian has quit [Quit: Leaving.]
kwatz has joined #ruby
kwatz is now known as destructure
destructure has quit [Changing host]
destructure has joined #ruby
colonolGron has joined #ruby
lutfidemirci has quit [Quit: Leaving...]
ravster has left #ruby [#ruby]
baroquebobcat has quit [Quit: baroquebobcat]
bluOxigen has quit [Ping timeout: 245 seconds]
locriani has quit [Ping timeout: 264 seconds]
sebastianb has joined #ruby
ehaliewicz has joined #ruby
vlad_starkov has joined #ruby
jamesaanderson has quit [Quit: Textual IRC Client: www.textualapp.com]
realDAB has quit [Quit: realDAB]
nomenkun has joined #ruby
brennanMKE has quit [Read error: Connection reset by peer]
Es0teric has joined #ruby
freerobby has joined #ruby
johnnyfuchs has joined #ruby
S0da has joined #ruby
emergion has joined #ruby
burlyscudd has quit [Quit: Leaving.]
nomenkun has quit [Ping timeout: 276 seconds]
Notte has quit [Remote host closed the connection]
devoldmx has joined #ruby
predator217 has joined #ruby
Krajsnic_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 268 seconds]
saarinen has joined #ruby
locriani has joined #ruby
sfti has left #ruby [#ruby]
Paradox has joined #ruby
xcthulhu has joined #ruby
S0da has quit [Ping timeout: 245 seconds]
sailias has quit [Ping timeout: 256 seconds]
predator117 has quit [Ping timeout: 268 seconds]
S0da has joined #ruby
S0da has quit [Remote host closed the connection]