apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
b1205 has quit [Ping timeout: 255 seconds]
omosoj has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
toastynerd has quit [Remote host closed the connection]
toastynerd has joined #ruby
Es0teric has joined #ruby
hermanmunster has joined #ruby
Loaft has joined #ruby
b1205 has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
try has joined #ruby
NinoScript has quit [Quit: NinoScript]
qpok has quit [Ping timeout: 240 seconds]
d34th4ck3r has joined #ruby
qpok has joined #ruby
subbyyy has joined #ruby
chrisseaton has joined #ruby
eguim has quit [Ping timeout: 276 seconds]
sdwrage has joined #ruby
ixti has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Remote host closed the connection]
whomp has joined #ruby
Royalb15 has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
platzhirsch has quit [Quit: Leaving.]
<noob101> Hello everyone.
ddv has quit [Ping timeout: 245 seconds]
eguim has joined #ruby
timonv has joined #ruby
pen_isident has quit [Ping timeout: 258 seconds]
ddv has joined #ruby
LadyRainicorn is now known as LaddyRainicorn
whomp has quit [Ping timeout: 276 seconds]
infinitone has quit [Ping timeout: 245 seconds]
LaddyRainicorn is now known as LadyRainicorn
kitak_ has joined #ruby
omosoj has joined #ruby
n_blownapart has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
Dingus has joined #ruby
<shevy> hi noob101
gigetoo has quit [Remote host closed the connection]
<EatMulti> omosoj: google translation api :P ? there's a few gems out there to make it a lighter task interfacing with them anyway
GriffinHeart has joined #ruby
<shevy> benzrf I think there is a way to obtain all params anyway, without exceptions
<benzrf> mmm
<benzrf> i experimented
<benzrf> it sets the arg to nil
gigetoo has joined #ruby
<shevy> ack
<noob101> hi shevy
<shevy> you can not obtain all args?
<omosoj> hi EatMulti, google requires payment so i went with bing
<shevy> omosoj lol
<shevy> ah wait
<shevy> you meant the API, not the google search itself
<omosoj> google's translation api
<shevy> yeah I get it now, I misread, sorry
mehlah has joined #ruby
<Dingus> someone want to tell me about where ruby's place is in the world?
<n_blownapart> hi just a quick question on everyone's favorite factorize program. on line 22 the 'factors' hash is outputted and the hash looks like this: {71=>1, 839=>1, 1471=>1, 6857=>1} . Why is the value not incremented , given the code ? http://pastie.org/9220712
<omosoj> hey noob101, i heard of this podcast episode and it made me think of you. i haven't listened to it but it might be relevant: http://5by5.tv/rubyonrails
<shevy> Dingus well it depends
<shevy> Dingus I think ruby fits between perl and python nicely
<omosoj> a 15 yr old programmer. maybe you can relate to him
<shevy> so when you are on a *nix system, it is much cooler to use ruby/python/perl rather than shell scripts, really
<ari-_-e> Dingus: japan
<shevy> lol ari-_-e
hermanmunster has quit [Remote host closed the connection]
<shevy> karate made it outside japan!
<shevy> anime made it outside japan!
<shevy> even godzilla is coming to your door soon!!!
hermanmunster has joined #ruby
zz_karupa is now known as karupa
GriffinHeart has quit [Ping timeout: 258 seconds]
<n_blownapart> japanese saying : you've been taking too many hot baths.
lewix has joined #ruby
lukec has quit [Quit: lukec]
poikon has quit [Remote host closed the connection]
pen_isident has joined #ruby
n_blownapart has quit []
tkuchiki has joined #ruby
pwh has joined #ruby
marr has quit []
n_blownapart has joined #ruby
sunya7a has quit [Ping timeout: 252 seconds]
platzhirsch has joined #ruby
<shevy> I love japanese pranks
<noob101> I am not learning ruby on rails omosoj but thanks
Jake232 has joined #ruby
aspiers has joined #ruby
oo_ has joined #ruby
whomp has joined #ruby
whomp has quit [Client Quit]
Dingus has quit [Quit: Leaving]
n_blownapart has quit []
NukePuppy has joined #ruby
pen_isident has quit [Remote host closed the connection]
vt102 has quit [Ping timeout: 276 seconds]
RaptorJesus_ has joined #ruby
smathieu has quit [Remote host closed the connection]
Tricon has joined #ruby
smathieu has joined #ruby
lethe has joined #ruby
RaptorJesus has quit [Ping timeout: 272 seconds]
toretore has quit [Quit: This computer has gone to sleep]
RaptorJesus_ has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
tkuchiki has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 240 seconds]
Takle has joined #ruby
sunya7a has joined #ruby
phoo1234567 has quit [Ping timeout: 252 seconds]
smathieu has quit [Remote host closed the connection]
sdwrage has quit [Quit: This computer has gone to sleep]
dseitz has joined #ruby
<shevy> I am bored
<shevy> someone tell me about their cool projects please
<EatMulti> omosoj: Ah sweet! I didn't know google translate API was money requiring, makes sense though, nice for bing to be free.
JoeGaudet has quit [Quit: Computer has gone to sleep.]
Shidash has joined #ruby
chrisseaton has quit []
Takle has quit [Ping timeout: 276 seconds]
sepp2k has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Ping timeout: 264 seconds]
Avahey_ has quit [Quit: Connection closed for inactivity]
hgl has joined #ruby
bmurt has joined #ruby
Loaft has quit [Ping timeout: 265 seconds]
derrida has left #ruby ["WeeChat 0.4.3"]
doev has quit [Ping timeout: 258 seconds]
doev has joined #ruby
EatMulti has left #ruby ["Sleep time"]
Arkaniad has joined #ruby
poikon has joined #ruby
alexju has joined #ruby
Arkaniad|Laptop has joined #ruby
xsdg_ has quit [Quit: Reconnecting]
omosoj_ has joined #ruby
xsdg has joined #ruby
Loaft has joined #ruby
alexju has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
tkuchiki has joined #ruby
spastorino has joined #ruby
Arkaniad has quit [Ping timeout: 240 seconds]
cashnguns has joined #ruby
subbyyy has quit [Ping timeout: 252 seconds]
omosoj has quit [Ping timeout: 252 seconds]
d34th4ck3r has quit [Quit: zzz]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
SCommette has quit [Quit: SCommette]
omosoj_ has quit [Quit: Leaving]
robustus has quit [Ping timeout: 252 seconds]
alvaro_o has quit [Quit: Ex-Chat]
robustus has joined #ruby
zkay11 has joined #ruby
platzhirsch has left #ruby [#ruby]
linoj has left #ruby [#ruby]
eka has joined #ruby
Shidash has quit [Ping timeout: 255 seconds]
alexju has joined #ruby
poikon has quit [Remote host closed the connection]
RaptorJesus has joined #ruby
b1205 has quit [Ping timeout: 255 seconds]
subbyyy has joined #ruby
Shidash has joined #ruby
alexju has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 255 seconds]
Deele has quit [Ping timeout: 255 seconds]
b1205 has joined #ruby
JoeGaudet has joined #ruby
gorpon has joined #ruby
lw has quit [Quit: s]
alexju has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdrew has joined #ruby
huoxito has joined #ruby
Hanmac has joined #ruby
wldcordeiro has quit [Ping timeout: 252 seconds]
Tomasso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
b00stfr3ak has quit [Ping timeout: 252 seconds]
Hanmac1 has quit [Ping timeout: 252 seconds]
Baked has joined #ruby
try has quit [Ping timeout: 276 seconds]
d34th4ck3r has joined #ruby
Hobogrammer has joined #ruby
Lo^08 has joined #ruby
JoeGaudet has quit [Quit: Computer has gone to sleep.]
lunaticedit has joined #ruby
deric_skibotn has quit [Ping timeout: 252 seconds]
kl0_ has quit [Ping timeout: 252 seconds]
Atrumx has quit [Quit: Exit]
Loaft has quit [Ping timeout: 252 seconds]
Lo^08 is now known as Loaft
Baked has quit [Ping timeout: 255 seconds]
ftj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tomasso has joined #ruby
raspberryfan has joined #ruby
hamakn has quit [Remote host closed the connection]
centrx has joined #ruby
mattmcclure has joined #ruby
_JokerDoom has joined #ruby
niftylettuce_ has quit [Quit: Connection closed for inactivity]
JokerDoom has quit [Ping timeout: 265 seconds]
shvelo has quit [Ping timeout: 252 seconds]
gorpon has quit [Quit: Konversation terminated!]
gorpon has joined #ruby
prathamesh has joined #ruby
Hobogrammer has quit [Ping timeout: 240 seconds]
b1205 has quit [Ping timeout: 252 seconds]
phutchins has quit [Ping timeout: 252 seconds]
danijoo has quit [Quit: Leaving...]
BL4DE has joined #ruby
hamakn has joined #ruby
Xeago has joined #ruby
gorpon has quit [Ping timeout: 255 seconds]
Megtastique has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
aspires has quit []
sdwrage has joined #ruby
postmodern has joined #ruby
danijoo has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
iamayam has joined #ruby
larsam has joined #ruby
danshult_ has joined #ruby
dazeddev has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
Megtastique has quit []
danshultz has quit [Ping timeout: 258 seconds]
AndChat|102836 has quit [Ping timeout: 240 seconds]
LadyRainicorn has quit [Quit: Bye]
jxf has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
wigirc has joined #ruby
radic has quit [Ping timeout: 245 seconds]
banisterone has joined #ruby
dazeddev has joined #ruby
radic has joined #ruby
wigirc has quit [Max SendQ exceeded]
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
gorpon has joined #ruby
mgorbach has quit [Read error: Connection reset by peer]
Arkaniad|Laptop has quit [Ping timeout: 252 seconds]
NukePuppy has quit [Ping timeout: 255 seconds]
nnu has quit [Ping timeout: 255 seconds]
benlieb has joined #ruby
mgorbach has joined #ruby
b1205 has joined #ruby
mmochan_ has joined #ruby
<centrx> How do I get minitest to load my library files that it is going to test?
danshult_ has quit [Remote host closed the connection]
danshultz has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
mostlybadfly has joined #ruby
nnu has joined #ruby
nnu has quit [Changing host]
nnu has joined #ruby
<centrx> bad rake
lukec has joined #ruby
moneydouble has joined #ruby
danshultz has quit [Ping timeout: 255 seconds]
lewix has quit [Ping timeout: 255 seconds]
gorpon has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
dingus_khan has joined #ruby
bmurt has quit []
thomasxie has quit [Quit: Leaving.]
brunops has quit [Ping timeout: 255 seconds]
thomasxie has joined #ruby
sambao21 has joined #ruby
toordog has joined #ruby
robman_ has joined #ruby
krz has joined #ruby
oo_ has joined #ruby
gorpon has joined #ruby
dingus_khan has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 264 seconds]
dingus_khan has joined #ruby
banisterone has quit [Ping timeout: 240 seconds]
dmyers_ has joined #ruby
dmyers_ is now known as dmyers
s3ri0us has quit [Quit: Linkinus - http://linkinus.com]
banisterone has joined #ruby
jack_rabbit has quit [Quit: SIGSEGV (core dumped)]
kies has quit [Quit: baaaaiiiiiiiiiii~]
jack_rabbit has joined #ruby
jack_rabbit_ has quit [Read error: Connection reset by peer]
gorpon has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dingus_khan has quit [Remote host closed the connection]
danijoo has quit [Ping timeout: 252 seconds]
danijoo has joined #ruby
lewix has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Shidash has joined #ruby
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
thomasxie has quit [Quit: Leaving.]
thomasxie has joined #ruby
kenneth has joined #ruby
freerobby has quit [Quit: Leaving.]
gorpon has joined #ruby
sdrew has joined #ruby
lunaticedit has quit []
brunops has joined #ruby
b1205 has quit [Ping timeout: 265 seconds]
brunops has quit [Changing host]
brunops has joined #ruby
Doppp has quit [Ping timeout: 264 seconds]
sdrew has quit [Client Quit]
nopolitica has joined #ruby
michael_lee has joined #ruby
The_NetZ has joined #ruby
<The_NetZ> hey. is there some way from irb to get a list of defined global variables?
d34th4ck3r has quit [Quit: zzz]
gorpon has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
larissa has quit [Quit: Leaving]
sunya7a has quit [Ping timeout: 258 seconds]
Shidash has quit [Ping timeout: 252 seconds]
b1205 has joined #ruby
tacos1de has joined #ruby
<havenwood> >> global_variables
<eval-in__> havenwood => [:$;, :$-F, :$@, :$!, :$SAFE, :$~, :$&, :$`, :$', :$+, :$=, :$KCODE, :$-K, :$,, :$/, :$-0, :$\, :$_, :$stdin, :$stdout, :$stderr, :$>, :$<, :$., :$FILENAME, :$-i, :$*, :$?, :$$, :$:, :$-I, :$LOAD_PATH, ... (https://eval.in/156761)
cashnguns has quit [Ping timeout: 252 seconds]
jack_rabbit has quit [Ping timeout: 245 seconds]
<The_NetZ> havenwood: hehe, thanks. now I got somethign cool to fiddle with :D
Shidash has joined #ruby
jameyd has joined #ruby
gorpon has joined #ruby
prathamesh has quit [Remote host closed the connection]
<jameyd> hey everybody. if i'm writing a gem and i include a bash script in the bin folder, will that get added to the path on install?
prathamesh has joined #ruby
kies has joined #ruby
freerobby has joined #ruby
prathamesh has quit [Ping timeout: 255 seconds]
linguini has joined #ruby
<The_NetZ> jameyd: I suppose the best way to test is to install, but I suppose it may/should.
<The_NetZ> but why a bash script?
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
lw has joined #ruby
Doppp has joined #ruby
<jameyd> good question. the gem i'm developing needs to operate initially in the current shell, not open a subshell
<jameyd> the core ruby gem has api endpoints that need to be hit in the current shell
freerobby has quit [Ping timeout: 276 seconds]
jack_rabbit has joined #ruby
<The_NetZ> yeah, I have no idea what you just said, I'm just a humble monkey-coder
<jameyd> haha well me too, mostly
oo_ has quit [Remote host closed the connection]
<jameyd> i'm dealing with environment variables that need to be set in the active shell process. if i do it through ruby, they're blown away as soon as the script ends.
oo_ has joined #ruby
<jameyd> my idea is to use a bash script to do the initial environment stuff and ruby to handle the api-level business
oo_ has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
The_NetZ has quit [Quit: leaving]
mr_blue has quit [Ping timeout: 264 seconds]
d34th4ck3r has joined #ruby
b1205 has quit [Ping timeout: 252 seconds]
toastynerd has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
zorak has quit [Ping timeout: 264 seconds]
benzrf is now known as benzrf|offline
Arkaniad|Laptop has joined #ruby
sambao21 has joined #ruby
nnu has quit [Quit: Wqke me up before you go-go]
Atttwwww has quit []
Atttwww has joined #ruby
timonv has joined #ruby
echevemaster has quit [Remote host closed the connection]
sunya7a has joined #ruby
sambao21 has quit [Client Quit]
sambao21 has joined #ruby
gorpon has quit [Ping timeout: 245 seconds]
<certainty> jameyd: why would you want the environment variables to linger?
Xeago has joined #ruby
timonv has quit [Ping timeout: 258 seconds]
moneydouble has quit [Quit: Leaving.]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
dik_dak has quit [Quit: Leaving]
sunya7a has quit [Ping timeout: 252 seconds]
<certainty> moin btw
BalkM has quit [Quit: Computer has gone to sleep.]
toastynerd has joined #ruby
BalkM has joined #ruby
sinkensabe has joined #ruby
Asher has quit [Quit: Leaving.]
try has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
alexju_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
thomasxie has quit [Remote host closed the connection]
BalkM has quit [Ping timeout: 240 seconds]
alexju has quit [Ping timeout: 252 seconds]
thomasxie has joined #ruby
saltsa has joined #ruby
davedev24_ has quit [Remote host closed the connection]
davedev24_ has joined #ruby
yuung has joined #ruby
<yuung> is there a significant difference between ruby 1.9.2 and 1.9.1? my package manager has up to 1.9.1
<mozzarella> no
<yuung> is it safe to learn ruby 1.9.1, or should i install the latest version from source?
<jameyd> certainty: it's about making env vars linger. it's just a pet/learning project
<yuung> just noticed the latest version seems to be 2.1.2
<jameyd> load env vars into "current" shell (new subshell that persists till you're done)
<centrx> 1.9 is getting quite old now
davedev24_ has quit [Ping timeout: 252 seconds]
SCommette has joined #ruby
b1205 has joined #ruby
<yuung> okay; apparently, i have ruby 2.1.1. however, ruby -v says that ruby isn't installed?
<yuung> i installed it using RVM if that matters
duncannz has joined #ruby
<jameyd> yuung: not that this is helpful for your current situation, but i've had a much much better time with rbenv
Deele has joined #ruby
<certainty> jameyd: well all processes that your ruby script forks will inherit the environment
<certainty> centrx: hah, only a few days ago i updated ruby 1.8.6 to 1.8.7 on a box. I suspect that this one will stay on that system for quite some time now :(
gorpon has joined #ruby
moneydouble has joined #ruby
<certainty> wrt "quite old"
huoxito has quit [Quit: Leaving]
<centrx> Message acknowledged. Upgrade now for performance ++.
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
Solnse has quit [Ping timeout: 245 seconds]
davedev24_ has joined #ruby
<certainty> i wish i could
Photism has quit [Ping timeout: 240 seconds]
vjanicek has joined #ruby
<vjanicek> hey there, a quick question from a Python programmer: what's the equivalent in ruby of: if 'x' in [1, 2, 'x']: print 'Yes!'
Photism has joined #ruby
<frosgy> print 'Yes!' if [1,2,'x'].include? 'x'
<vjanicek> frosgy, thanks dude
lmickh has quit [Remote host closed the connection]
phansch has joined #ruby
vjanicek has left #ruby [#ruby]
sunya7a has joined #ruby
amargherio has quit [Remote host closed the connection]
zorak has joined #ruby
nnu has joined #ruby
sigurding has joined #ruby
mmochan_ has quit [Quit: Connection closed for inactivity]
robbyoconnor has quit [Excess Flood]
Gooder`` has joined #ruby
freerobby has joined #ruby
robbyoconnor has joined #ruby
Gooder` has quit [Ping timeout: 276 seconds]
phansch has quit [Quit: WeeChat 0.4.3]
freerobby has quit [Ping timeout: 240 seconds]
<benlieb> Hi guys.
lewix has quit [Remote host closed the connection]
<benlieb> For reasons that are really ugly to go into, is there a ruby escape api/method that works similar to ffescape (comes with ffmpeg) that basically lets you choose the level of escaping, and what charters are special?
<benlieb> Here's a longish paste. Please don't hate me.
<benlieb> echo "this is a 'string': may contain one, or more, special characters" | ffescape -s "':" -l 1 | ffescape -s "'," -l 1 | ffescape -s "'" -l 1=> this is a \\\\\\\'string\\\\\\\'\\\\: may contain one\\, or more\\, special characters\\\\\\\
<benlieb> I can drop down to a system call if need be, but I'd rather do it in ruby
Solnse has joined #ruby
raspberryfan has quit [Remote host closed the connection]
banisterone has quit [Ping timeout: 240 seconds]
Tricon has quit [Quit: Linkinus - http://linkinus.com]
RyanV has joined #ruby
banisterone has joined #ruby
raspberryfan has joined #ruby
infinitone has joined #ruby
<certainty> i don't understand the output
yacks has joined #ruby
<certainty> why are there so many \ at the end?
infinitone has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
<benlieb> certainty: that's a good question, I don't get that either, but it doesn't disrupt what I'm doing, so I'm just going to ignore it.
Vivekananda has joined #ruby
<benlieb> I'm making a ruby script that will make a bunch of intros for videos:
<benlieb> `ffmpeg -y -f lavfi -i color=c=black:s=640x362 -t 4 -vf drawtext="fontfile=/Library/Fonts/Arial.ttf: text=#{@lesson.title}: fontcolor=white: fontsize=24: box=0: x=(w-text_w)/2: y=(h-text_h-line_h)/2","fade=t=out:st=3:d=1" #{@dir}/intros/#{@lesson.id}.mp4`
<certainty> benlieb: well but we need to know how it ends up there to build up a compatible API
<certainty> i'm not aware of a method that does that already (but that doesn't mean much)
<benlieb> I don't want to build one, just to know if one alread exists
<benlieb> it's the text=#{@lesson.title} that is the rub, and there's 3 or 4 levels of escaping required with different special chars
<benlieb> I figured it out in ffescape, but would rather not rely on the system
meatherly has joined #ruby
WishBoy has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<benlieb> I'm having trouble getting the right output from the ruby script. I'm not used to this sort of thing.
<benlieb> So far I have this: res = `echo #{txt} | ffescape -s "':" -l 1 | ffescape -s "'," -l 1 | ffescape -s "'" -l 1`
<benlieb> I need to send the string txt to the stdin of the first ffescape, then pipe twice
nnu has quit [Quit: Lost terminal]
meatherly has quit [Ping timeout: 252 seconds]
SCommette has quit [Quit: SCommette]
aganov has joined #ruby
Solnse has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
sleepee has quit [Quit: Leaving]
nycto has quit [Ping timeout: 265 seconds]
GriffinHeart has quit [Remote host closed the connection]
sunya7a has quit [Ping timeout: 252 seconds]
nfk has joined #ruby
nnu has joined #ruby
GriffinHeart has joined #ruby
bal has joined #ruby
b1205 has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
<noob101> I am seeing new people, hmmm.
sputnik13 has joined #ruby
jimbow has joined #ruby
anaeem1 has joined #ruby
<jimbow> okay guys, i heard that these questions sound a lot like homework, but they're not… i'm trying to pass the thing to be able to sign up to codewars
Doppp has quit [Ping timeout: 240 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Doppp has joined #ruby
WishBoy has quit [Ping timeout: 258 seconds]
sunya7a has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cya]
relix has joined #ruby
<jimbow> this second question is really hard :(
WishBoy has joined #ruby
charliesome has joined #ruby
reference has joined #ruby
noop has joined #ruby
<ari-_-e> jimbow: well? what's the question?
<jimbow> Correct this code, so that the greet function returns the expected value.
<ari-_-e> ah
EasyCo has joined #ruby
codeurge has joined #ruby
<jimbow> the first thing i've done was remove the @
<ari-_-e> which @?
Doppp has quit [Read error: Connection reset by peer]
<jimbow> at the @name
<ari-_-e> in initialize?
<jimbow> yes
anaeem1_ has joined #ruby
<ari-_-e> why'd you do that?
<jimbow> then i put name in quotes
<jimbow> well i figured the @ was unnecessary
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<ari-_-e> why?
<jimbow> because you could use it as a regular variable
<ari-_-e> do you know what the @ does?
<jimbow> it makes it global?
<ari-_-e> no
<jimbow> or is that a class variable
<ari-_-e> also no
<jimbow> brb book time :(
Morkel has joined #ruby
banisterone has quit [Ping timeout: 240 seconds]
<ari-_-e> also consider this:
Leif has joined #ruby
<ari-_-e> that line became "name = name", right?
tagrudev has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jimbow> yes
duncannz has quit [Ping timeout: 240 seconds]
mr_snowf1ake has quit [Ping timeout: 240 seconds]
<jimbow> okay i'm one step closer
<ari-_-e> does that seem like it would be a useful thing to do?
<jimbow> i just found in my book that @ = instance variable… now i have to see what it does
linguini has quit [Ping timeout: 240 seconds]
tobago has joined #ruby
<ari-_-e> assign a variable to itself?
<jimbow> yeah… i'm being impatient by not wanting to go back to the book
<jimbow> assigning a variable to itself seems like an entirely useless idea
<ari-_-e> yup
<jimbow> but the order of execution in ruby gets me confused
<certainty> it's applicative order and strict
timonv has quit [Remote host closed the connection]
<ari-_-e> what about the order of execution?
<jimbow> well it's like it goes out of order sometimes
<ari-_-e> like when?
<jimbow> depending on the code, ehh i have to try to remember
<jimbow> when you have a counter program for instance
anarang has joined #ruby
lethjakman has joined #ruby
<jimbow> num = 0 and then you increment it
sigurding has quit [Quit: sigurding]
<jimbow> and one is in a body of a loop and it equals to 10 and the other equals to 11
<jimbow> for instance… i need to find the code
yuung has quit [Quit: Leaving]
SCommette has joined #ruby
SCommette has quit [Client Quit]
kitak_ has quit [Remote host closed the connection]
User458764 has joined #ruby
Doppp has joined #ruby
sunya7a has quit [Ping timeout: 252 seconds]
kitak_ has joined #ruby
noop has quit [Ping timeout: 264 seconds]
noob101 has quit [Ping timeout: 240 seconds]
anaeem1_ has joined #ruby
<jimbow> >> i = 0; str = "Hello world"; while i <= 10; str = "Hello world #{i}; puts "i is now #{i}"; i += 1; end; puts "The final value of i is {#i}"; puts "The final value of str is #{i}";
<eval-in__> jimbow => /tmp/execpad-ccde8b254c97/source-ccde8b254c97:2: syntax error, unexpected tIDENTIFIER, expecting keyword_end ... (https://eval.in/156762)
Boohbah_ has joined #ruby
ta has quit [Remote host closed the connection]
Boohbah has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
moarrr_bitcoins has joined #ruby
krz has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
<jimbow> okay ari-_-e
jottr has joined #ruby
<jimbow> i am completely overwhelmed in studies
JasmeetQA has joined #ruby
<jimbow> yesterday the same exact code was giving me a different output
WishBoy has quit [Remote host closed the connection]
<certainty> i doubt that ;)
<jimbow> certainty: i'm even looking at the video
<jimbow> either i can't copy, which rarely happens, or something is wrong with the interpreter
<jimbow> whoops i copied wrong
<jimbow> you're right… computers only do what we tell them -_-
<ari-_-e> it'd be pretty impressive if you found a bug in the interpreter than nobody has noticed yet :)
<ari-_-e> *that
<ari-_-e> those look the same to me
<jimbow> i'm sure that i'll find bugs eventually
<jimbow> ugh'
* jimbow facepalms
freerobby has quit [Ping timeout: 252 seconds]
<jimbow> there we go
chipotle has joined #ruby
<jimbow> sorry
<jimbow> that's what i don't get is how they aren't the same value
<jimbow> the code jumps
<jimbow> i mean the execution of the code jumps
timonv has joined #ruby
Doppp has quit [Read error: Connection reset by peer]
IceDragon has quit [Quit: Space~~~]
chipotle has quit [Client Quit]
timonv has quit [Remote host closed the connection]
weems has quit [Read error: Connection reset by peer]
dumdedum has joined #ruby
User458764 is now known as User458764_NotHe
spastorino has quit [Quit: Connection closed for inactivity]
<ari-_-e> jimbow: how what aren't the same value?
<jimbow> one is 10 the other is 11
raspberryfan has quit [Remote host closed the connection]
<ari-_-e> oh, so it says the final value of i is 11 and the final value of string is hello 10?
<jimbow> yeah
raspberryfan has joined #ruby
<ari-_-e> there's a perfectly logical explanation for that
<ari-_-e> in the body of the loop, you set string before you increment i
<jimbow> but i also set i before the increment
<ari-_-e> where?
<ari-_-e> i = 0?
<jimbow> yes
<ari-_-e> so?
Doppp has joined #ruby
<ari-_-e> go through the execution in your head
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jimbow> shouldn't be the same value?
<ari-_-e> start at the last iteration of the loop
<ari-_-e> what will i be?
doev has quit [Remote host closed the connection]
User458764_NotHe has quit [Ping timeout: 240 seconds]
ta has joined #ruby
<jimbow> but even if you set it before i it'll do the same exact thing
<ari-_-e> even if you increment it before?
<jimbow> yes
<jimbow> here
<ari-_-e> you tried it?
<ari-_-e> I'm talking about the body of the loop
nopolitica has quit [Remote host closed the connection]
<jimbow> oh
<jimbow> thank you for enlightening me
<jimbow> it took me this long to realize how loops work
<jimbow> thank you so much
<jimbow> i finally understand
<ari-_-e> :)
<jimbow> god i feel so stupid
Gooder` has joined #ruby
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jimbow> so in theory if i have 2 separate loops they'd have the same result of 11 right?
sunya7a has joined #ruby
RyanV has quit [Quit: Computer has gone to sleep.]
Gooder has quit [Ping timeout: 276 seconds]
RyanV has joined #ruby
pwh has quit []
Leif has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RyanV has quit [Read error: Connection reset by peer]
scepticulous has joined #ruby
RyanV has joined #ruby
<Hanmac> dammm i think i am currently to dump for IO.popen (and its friends)
RyanV has quit [Client Quit]
<jimbow> wait so we can't have 2 while loops in the same program?
<ari-_-e> jimbow: sure you can?
<ari-_-e> uh
<ari-_-e> take another look at that
<jimbow> i honestly don't get it
<jimbow> oh
<jimbow> i see
<jimbow> why am i so stupid
Hobogrammer has joined #ruby
alexju_ has quit [Remote host closed the connection]
kiri has joined #ruby
michael_lee has quit [Ping timeout: 264 seconds]
krz has joined #ruby
michael_lee has joined #ruby
<jimbow> now i don't get it
zkay11 has quit [Quit: Leaving.]
<ari-_-e> jimbow: look at line 4
<ari-_-e> and 9
RyanV has joined #ruby
<jimbow> what's wrong with that?
<ari-_-e> what is that doing?
<jimbow> oh
<jimbow> okay i erased them
<jimbow> thank you for your patience
<jimbow> and asking me what it's doing
<jimbow> today, i've learned to always ask myself what each line is doing… i sincerely thank you for that
<jimbow> :)
<ari-_-e> you must become a human computer
<jimbow> this is so hard
<ari-_-e> beep boop beep
roolo has joined #ruby
lethjakman has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
amclain has quit [Quit: Leaving]
ta has quit [Ping timeout: 252 seconds]
sigurding has joined #ruby
bradhe has quit [Remote host closed the connection]
claymore has joined #ruby
sputnik13 has joined #ruby
bradhe has joined #ruby
Xeago has joined #ruby
benlieb has quit [Quit: benlieb]
ta has joined #ruby
jack_rabbit has quit [Quit: Leaving]
jack_rabbit has joined #ruby
gorpon has quit [Ping timeout: 255 seconds]
bradhe has quit [Ping timeout: 264 seconds]
Xeago has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
subbyyy has quit [Ping timeout: 252 seconds]
hermanmunster has quit [Remote host closed the connection]
moneydouble has quit [Quit: Leaving.]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
jxf has quit [Ping timeout: 252 seconds]
terlar has quit [Quit: WeeChat 0.4.3]
Xeago has joined #ruby
terlar has joined #ruby
alex88 has joined #ruby
jxf has joined #ruby
bigkevmcd has joined #ruby
klaut has joined #ruby
hermanmunster has joined #ruby
Mon_Ouie has quit [Ping timeout: 245 seconds]
banister has joined #ruby
banister has quit [Client Quit]
benlieb has joined #ruby
moritzs has joined #ruby
riotjones has joined #ruby
try has quit [Quit: derpity derp]
picca has joined #ruby
wolfey_au has joined #ruby
weems has joined #ruby
charliesome has joined #ruby
moritzs has quit [Client Quit]
freerobby has joined #ruby
_tpavel has joined #ruby
alpha123 has quit [Ping timeout: 252 seconds]
wolfey_au has quit [Quit: Leaving]
alpha123 has joined #ruby
mijicd has joined #ruby
chrisseaton has joined #ruby
_tpavel has quit [Client Quit]
_tpavel has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Ping timeout: 240 seconds]
mr_blue has joined #ruby
chrisseaton has quit []
bradhe has joined #ruby
andikr has joined #ruby
yacks has quit [Ping timeout: 252 seconds]
combusean has quit [Ping timeout: 252 seconds]
Doppp has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 258 seconds]
meatherly has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
donnoc_ has joined #ruby
tjr9898_ has joined #ruby
combusean has joined #ruby
yacks has joined #ruby
meatherly has quit [Ping timeout: 255 seconds]
jxf has quit [Ping timeout: 252 seconds]
tjr9898__ has joined #ruby
hermanmunster has quit [Remote host closed the connection]
hermanmunster has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
roolo has quit [Quit: Leaving...]
d34th4ck3r has quit [Quit: zzz]
SegFaultAX has quit [Excess Flood]
fabrice31 has joined #ruby
tjr9898_ has quit [Ping timeout: 240 seconds]
JoeGaudet has joined #ruby
SegFaultAX has joined #ruby
ta has quit [Ping timeout: 265 seconds]
tjr9898_ has joined #ruby
tjr9898__ has quit [Read error: Connection reset by peer]
Xeago has quit [Ping timeout: 240 seconds]
hermanmunster has quit [Ping timeout: 252 seconds]
jimbow has quit [Quit: brb changing ip]
hermanmunster has joined #ruby
d34th4ck3r has joined #ruby
duncannz has joined #ruby
jimbow has joined #ruby
dingus_khan has joined #ruby
flughafen has quit [Read error: Connection reset by peer]
Vivekananda has quit [Quit: Ex-Chat]
<benlieb> is there a method to pad a string on both sides with whitespace? Basically "centering" the string within a certain character length
sunya7a has quit [Ping timeout: 245 seconds]
banister has joined #ruby
Xeago has joined #ruby
abdulsattar has joined #ruby
Takle has joined #ruby
banister has quit [Client Quit]
<apeiros> >> "foo".center 20
<eval-in__> apeiros => " foo " (https://eval.in/156763)
<apeiros> benlieb: ^
<benlieb> awesome!
<benlieb> ruby -v :
<benlieb> ?
<apeiros> String#center exists for over a decade
<apeiros> I think as of 1.9 it also works properly with unicode.
flughafen has joined #ruby
ta has joined #ruby
<benlieb> got it, tnx
<benlieb> life saver
Xeago has quit [Read error: Connection reset by peer]
<benlieb> you have to be your own rendering engine w ffmpeg
andrewlio has joined #ruby
sigurding has quit [Quit: sigurding]
Deele has quit [Ping timeout: 255 seconds]
ta has quit [Remote host closed the connection]
sunya7a has joined #ruby
jprovazn has joined #ruby
donnoc_ has quit [Quit: WeeChat 0.4.3]
donnoc has joined #ruby
pyon has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
jxf has joined #ruby
craigp has joined #ruby
noop has joined #ruby
moritzs has joined #ruby
JohnBat26 has joined #ruby
sk87 has joined #ruby
Spleeze has quit [Ping timeout: 240 seconds]
zoraj has joined #ruby
Deele has joined #ruby
alem0lars has joined #ruby
lxsameer has joined #ruby
dingus_khan has quit [Read error: Connection reset by peer]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
sigurding has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
Deele has quit [Ping timeout: 255 seconds]
Spleeze has joined #ruby
davedev24_ has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 252 seconds]
davedev24_ has joined #ruby
jxf has quit [Ping timeout: 264 seconds]
sputnik13 has joined #ruby
Retroid has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
jimbow has quit [Quit: jimbow]
davedev24_ has quit [Ping timeout: 252 seconds]
xardas has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
tjr9898_ has joined #ruby
Jakey_Cloud___ has joined #ruby
toastynerd has quit [Remote host closed the connection]
<Jakey_Cloud___> i'm getting this error
abdulsattar has quit [Ping timeout: 255 seconds]
<Hanmac> Jakey_Cloud___: upgrade your ruby version ... your current ruby version is dead
abdulsattar has joined #ruby
gregf_ has quit [Quit: leaving]
<lxsameer> hey guys, i'm looking for a gem for creating network apps, something like twisted in python, any suggestion ?
<tobiasvl> lxsameer: eventmachine maybe?
<lxsameer> tobiasvl: I't a event processing lib am i right?
<tobiasvl> yes
freerobby has joined #ruby
reference has quit [Remote host closed the connection]
reference has joined #ruby
dANOKELOFF has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
mikecmpbll has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
davedev24_ has joined #ruby
reference has quit [Ping timeout: 240 seconds]
ndrei has quit [Ping timeout: 252 seconds]
ta has joined #ruby
timonv has joined #ruby
freerobby1 has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 252 seconds]
edmellum has joined #ruby
ra4king has quit [Quit: Leaving]
ndrei has joined #ruby
mikecmpbll has quit [Client Quit]
reference has joined #ruby
Morkel has quit [Quit: Morkel]
_bart has quit [Ping timeout: 255 seconds]
moarrr_bitcoins is now known as bitcoin
bitcoin is now known as Guest39865
Guest39865 is now known as moarrr_bitcoin
EasyCo has quit [Quit: Connection closed for inactivity]
ra4king has joined #ruby
hermanmunster has quit [Remote host closed the connection]
jack_rabbit has quit [Ping timeout: 255 seconds]
nvrch has joined #ruby
akonny has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
shevy has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
benlieb has quit [Quit: benlieb]
LiohAu has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome_ has joined #ruby
RyanV has quit [Quit: Lingo - http://lingoirc.com]
himsin has joined #ruby
alem0lars has quit [Quit: Going AFK...]
mikecmpbll has joined #ruby
benlieb has joined #ruby
benlieb has quit [Client Quit]
adac has joined #ruby
havenwood has quit []
ndrei has quit [Remote host closed the connection]
shevy has joined #ruby
alem0lars has joined #ruby
banisterone has joined #ruby
reference has quit [Remote host closed the connection]
ghr has joined #ruby
Retroid has joined #ruby
alem0lars has quit [Ping timeout: 240 seconds]
sunya7a has quit [Ping timeout: 276 seconds]
mrnugget has joined #ruby
wallerdev has quit [Quit: wallerdev]
einarj has joined #ruby
yacks has quit [Ping timeout: 265 seconds]
coderhs has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
tvw has joined #ruby
picca has quit [Quit: Lingo - http://lingoirc.com]
picca has joined #ruby
camilasan has joined #ruby
klaut has quit [Remote host closed the connection]
marr has joined #ruby
timonv has quit [Remote host closed the connection]
Takle has joined #ruby
abdulsattar has quit [Ping timeout: 258 seconds]
brunops has quit [Ping timeout: 264 seconds]
chrisseaton has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
abdulsattar has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
chrisseaton has quit [Ping timeout: 264 seconds]
sk87 has joined #ruby
qba73 has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Metics has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ephemerian has joined #ruby
abdulsattar has quit [Ping timeout: 240 seconds]
duncannz has quit [Quit: Leaving]
phansch has joined #ruby
akonny has quit [Quit: akonny]
Soda has joined #ruby
donnoc has quit [Ping timeout: 252 seconds]
reference has joined #ruby
olivier_bK has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Morkel has joined #ruby
bradhe has joined #ruby
mehlah has joined #ruby
yacks has joined #ruby
toastynerd has joined #ruby
glowcoil has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
zegerjan has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
thatonegentry has joined #ruby
thatonegentry has left #ruby [#ruby]
toastynerd has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lkba has joined #ruby
Shidash has quit [Ping timeout: 265 seconds]
freerobby has quit [Ping timeout: 240 seconds]
AlHafoudh has joined #ruby
brunops has joined #ruby
AlSquire has joined #ruby
donnoc has joined #ruby
bbronek has joined #ruby
<bbronek> hi
AlHafoudh has quit [Client Quit]
AlHafoudh has joined #ruby
LekeFly has joined #ruby
obs has joined #ruby
brunops has quit [Ping timeout: 276 seconds]
moarrr_bitcoin has quit [Ping timeout: 276 seconds]
jilk23 has joined #ruby
tesuji has joined #ruby
abdulsattar has joined #ruby
moritzs has quit [Ping timeout: 252 seconds]
tiguser has quit [Ping timeout: 240 seconds]
Arkaniad|Laptop has quit [Ping timeout: 252 seconds]
d34th4ck3r has quit [Quit: zzz]
tiguser has joined #ruby
sathia has joined #ruby
workmad3 has joined #ruby
sathia has quit [Client Quit]
riotjones has quit [Ping timeout: 258 seconds]
jackneill has joined #ruby
eLobato has joined #ruby
eLobato has left #ruby [#ruby]
JoeGaudet has quit [Quit: Computer has gone to sleep.]
moarrr_bitcoin has joined #ruby
klaut has joined #ruby
tiguser has quit [Ping timeout: 265 seconds]
tiguser has joined #ruby
donnoc has quit [Ping timeout: 245 seconds]
picca has quit [Quit: Lingo - http://lingoirc.com]
Metics has quit [Ping timeout: 240 seconds]
kitak_ has quit [Ping timeout: 240 seconds]
mmochan_ has joined #ruby
kitak_ has joined #ruby
Takle has quit [Remote host closed the connection]
raspberryfan has quit [Remote host closed the connection]
raspberryfan has joined #ruby
mr_blue has quit [Ping timeout: 255 seconds]
decoponio has joined #ruby
raspberryfan has quit [Remote host closed the connection]
Arkaniad|Laptop has joined #ruby
raspberryfan has joined #ruby
mr_blue has joined #ruby
Atttwww has quit [Ping timeout: 255 seconds]
timonv has joined #ruby
frogssgy has joined #ruby
frosgy has quit [Ping timeout: 240 seconds]
Gooder` has quit [Ping timeout: 252 seconds]
tjr9898_ has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
tjr9898_ has joined #ruby
mengu has quit [Remote host closed the connection]
cina has joined #ruby
slmorton has joined #ruby
bradhe has joined #ruby
steveeJ has joined #ruby
shredding has joined #ruby
thomasxie has quit [Quit: Leaving.]
abdulsattar has quit [Ping timeout: 240 seconds]
danijoo has quit [Read error: Connection reset by peer]
bradhe has quit [Ping timeout: 264 seconds]
frobrob has joined #ruby
danijoo has joined #ruby
cina has quit [Read error: No route to host]
Metics has joined #ruby
cina has joined #ruby
Metics has quit [Max SendQ exceeded]
Metics has joined #ruby
Metics has quit [Max SendQ exceeded]
heftig has joined #ruby
anaeem___ has joined #ruby
Metics has joined #ruby
freerobby has joined #ruby
Metics has quit [Max SendQ exceeded]
mercerist has joined #ruby
anaeem1_ has quit [Ping timeout: 240 seconds]
reference-lost has joined #ruby
Metics has joined #ruby
_tpavel has quit [Quit: Leaving]
Metics has quit [Max SendQ exceeded]
Metics has joined #ruby
<apeiros> hm
Metics has quit [Max SendQ exceeded]
<apeiros> got my 2 24" screens. not sure I'm a fan of dual 16:9 :-/
<workmad3> apeiros: I used to like 16:9 9:16 16:9
<workmad3> apeiros: as a 3-monitor setup :)
<apeiros> well, I do have a third screen available :)
freerobby has quit [Ping timeout: 245 seconds]
Metics has joined #ruby
<apeiros> but that one is 16:10 (which I think I prefer quite a bit)
Metics has quit [Max SendQ exceeded]
banisterone has quit [Quit: Bye]
<apeiros> oh, and of course the laptop screen - but that one is only 15"
<workmad3> apeiros: :)
kris has joined #ruby
banisterone has joined #ruby
Metics has joined #ruby
aelse is now known as centrapheta
Metics has quit [Max SendQ exceeded]
reference has quit [Ping timeout: 276 seconds]
<workmad3> apeiros: I found a portrait monitor in the centre gave a nice balance... looking up and down when head is forward and reading code (or whatever else I was focussed on), and then sideways to see other stuff I'd stashed around my screens
Metics has joined #ruby
<workmad3> apeiros: not sure how I'd set up a 4th monitor in that :)
Metics has quit [Max SendQ exceeded]
<apeiros> well, lets not prematurely grouch. I'll see how it works out
<apeiros> ah, I bought the cheapest available, so no pivot
<workmad3> drats
timfoo_ has joined #ruby
lewix has joined #ruby
<apeiros> (I actually like that - all my pivotable screens had issues staying "straight")
<workmad3> balance it on its side? :D
Metics has joined #ruby
Metics has quit [Max SendQ exceeded]
<apeiros> anyway, I think my desk is too small… gamer pc will have to share one of the new 24" and the old 24" goes off the desk…
Metics has joined #ruby
Metics has quit [Max SendQ exceeded]
Metics has joined #ruby
Metics has quit [Max SendQ exceeded]
timfoo has quit [Ping timeout: 255 seconds]
Metics has joined #ruby
hermanmunster has joined #ruby
Metics has quit [Max SendQ exceeded]
timfoo_ has quit [Ping timeout: 255 seconds]
Metics has joined #ruby
lkba has quit [Ping timeout: 245 seconds]
Metics has quit [Max SendQ exceeded]
gregf_ has joined #ruby
timfoo has joined #ruby
Metics has joined #ruby
Metics has quit [Max SendQ exceeded]
<apeiros> hehe, but it pulls quite a bit of battery. I guess I have to fetch the power supply
ker2x has left #ruby [#ruby]
sk87 has joined #ruby
Metics has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Metics has quit [Max SendQ exceeded]
Metics has joined #ruby
Metics has quit [Max SendQ exceeded]
Metics has joined #ruby
Metics has quit [Max SendQ exceeded]
fabrice31 has quit [Remote host closed the connection]
karupa is now known as zz_karupa
fabrice31 has joined #ruby
Metics has joined #ruby
Metics has quit [Max SendQ exceeded]
tjr9898_ has quit [Remote host closed the connection]
Metics has joined #ruby
Metics has quit [Max SendQ exceeded]
hermanmunster has quit [Remote host closed the connection]
Takle has joined #ruby
kitak_ has quit [Remote host closed the connection]
Metics has joined #ruby
GriffinHeart has joined #ruby
Metics has quit [Max SendQ exceeded]
fabrice31 has quit [Ping timeout: 245 seconds]
AndChat|102836 has joined #ruby
Metics has joined #ruby
Metics has quit [Max SendQ exceeded]
sinkensabe has quit [Remote host closed the connection]
kyb3r_ has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
Metics has joined #ruby
Metics has quit [Max SendQ exceeded]
banisterone has quit [Ping timeout: 252 seconds]
gheegh has quit [Ping timeout: 252 seconds]
cbreeze has joined #ruby
Metics has joined #ruby
Metics has quit [Max SendQ exceeded]
mengu has joined #ruby
mercwithamouth has joined #ruby
Metics has joined #ruby
kitak_ has quit [Read error: Connection reset by peer]
Metics has quit [Max SendQ exceeded]
kitak_ has joined #ruby
Metics has joined #ruby
Metics has quit [Max SendQ exceeded]
Metics has joined #ruby
Metics has quit [Max SendQ exceeded]
Metics has joined #ruby
User458764 has joined #ruby
Metics has quit [Max SendQ exceeded]
JBreit has joined #ruby
sinkensabe has joined #ruby
Metics has joined #ruby
DouweM has joined #ruby
Metics has quit [Max SendQ exceeded]
lewix has quit [Remote host closed the connection]
tiguser has quit [Ping timeout: 255 seconds]
toastynerd has joined #ruby
lw has quit [Quit: s]
<bbronek> hi hi
<bbronek> :)
<apeiros> hrm… already pondering on replacing those two screens with a single 40" 4K screen instead :-/
mehlah has quit [Quit: Leaving...]
<bbronek> hi, where i can find portal for ruby on rails freelancer?
<bbronek> Ws6g0rrzj48cWY0S56WX
User458764 has quit [Client Quit]
<apeiros> that's a nice password
JBreit has left #ruby ["Leaving"]
toastynerd has quit [Ping timeout: 240 seconds]
<majoh> but where are the special characters?!
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<moarrr_bitcoin> so my credit card number is 5453716399813872 with experiation date 10/15
<moarrr_bitcoin> ohps oh shit
weems has quit [Ping timeout: 265 seconds]
GriffinHeart has quit [Remote host closed the connection]
<apeiros> why do you paste invalid credit card numbers moarrr_bitcoin? :-p
AndChat|102836 has quit [Ping timeout: 276 seconds]
raspberryfan has quit [Remote host closed the connection]
raspberryfan has joined #ruby
dangerousdave has joined #ruby
banisterone has joined #ruby
yfeldblum has quit [Remote host closed the connection]
simono has joined #ruby
fabrice31 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
ayaz has joined #ruby
mehlah has joined #ruby
sunya7a has joined #ruby
limon7 has joined #ruby
sinkensabe has quit [Ping timeout: 240 seconds]
AndChat|102836 has joined #ruby
freerobby has joined #ruby
AndChat|102836 has quit [Client Quit]
tjr9898_ has joined #ruby
AndChat|102836 has joined #ruby
kitak_ has quit [Remote host closed the connection]
doodlehaus has joined #ruby
sunya7a has quit [Ping timeout: 252 seconds]
banisterone has quit [Ping timeout: 240 seconds]
AndChat|102836 has quit [Client Quit]
xardas_ has joined #ruby
banisterone has joined #ruby
chipotle has joined #ruby
abdulsattar has joined #ruby
dANOKELOFF has quit [Remote host closed the connection]
mrnugget has quit [Quit: mrnugget]
cina has quit [Ping timeout: 264 seconds]
davedev24_ has quit [Remote host closed the connection]
xardas has quit [Ping timeout: 264 seconds]
xardas_ is now known as xardas
wertin has joined #ruby
cina has joined #ruby
banisterone has quit [Client Quit]
freerobby has quit [Ping timeout: 276 seconds]
banisterone has joined #ruby
nvrch has quit [Quit: nvrch]
parzzix has quit [Quit: Leaving]
banisterone has quit [Client Quit]
banisterone has joined #ruby
mrnugget has joined #ruby
brain_shim has quit [Read error: Connection reset by peer]
cina has quit [Ping timeout: 252 seconds]
koell has joined #ruby
cina has joined #ruby
<koell> is it possible to add an alias for a ruby gem i've installed? let's say there is this super-long-UglyName-LIKE-this I can't always remember. Is it possible to create an alias for gem files so I can require a custom name for?
sigurding has quit [Quit: sigurding]
lxsameer has quit [Quit: Leaving]
banisterone has quit [Ping timeout: 252 seconds]
marr has quit [Ping timeout: 252 seconds]
GriffinHeart has joined #ruby
joonty has joined #ruby
donnoc has joined #ruby
lewix has joined #ruby
<apeiros> koell: create a gem which has the other gem as dependency and requires it when being required
<apeiros> but I don't really see the problem with superlonganduglynameLIKEthis
<apeiros> it's not like you'd have to write it all the time.
<koell> apeiros: it just hurts when developers choose a long-name instead of just a simple one :D
davedev24_ has joined #ruby
slmorton has quit [Quit: slmorton]
shredding has quit [Quit: shredding]
<apeiros> it hurts more when developers choose undescriptive and undecipherable short names
doodlehaus has quit [Remote host closed the connection]
Ziarkaen has joined #ruby
oo_ has quit [Remote host closed the connection]
alexju has joined #ruby
lewix has quit [Ping timeout: 252 seconds]
dumdedum has quit [Ping timeout: 240 seconds]
<workmad3> apeiros: what? you mean you don't like my scheme of all my variables being in $v[0], $v[1], etc?
combusean has quit [Ping timeout: 245 seconds]
Jake232 has joined #ruby
qba73 has quit []
mostlybadfly has joined #ruby
combusean has joined #ruby
aspiers has quit [Ping timeout: 245 seconds]
donnoc has quit [Ping timeout: 255 seconds]
<apeiros> workmad3: I'm very disappointed
<apeiros> I thought you at least, would use $v0, $v1 etc. instead of an array. sheeesh
sinkensabe has joined #ruby
ra4king has quit [Ping timeout: 245 seconds]
Jake232 has quit [Client Quit]
<shevy> hmmm
<shevy> $v0
<shevy> wow
<koell> apeiros: you dont need a long name if you can say the same semantic meaning with a short one. same goes to comments. names should be only as long as necessary
<shevy> we need $@@variables
ra4king has joined #ruby
<shevy> a short comment?
<shevy> how about this:
koell has left #ruby ["So say we all!"]
<shevy> $var # this is a good variable name
<shevy> $foo # very important lateron in the code
<shevy> $x # I need some temp variable
<shevy> $temp = $x # needed a better name for it
combusean has quit [Ping timeout: 245 seconds]
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
danshultz has joined #ruby
anaeem___ has quit [Remote host closed the connection]
dANOKELOFF has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
<workmad3> $temp = $x # assign x to temp
tjr9898_ has quit [Read error: Connection reset by peer]
tjr9898_ has joined #ruby
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> you forgot "global"
ra4king has quit [Quit: Leaving]
ra4king has joined #ruby
dumdedum has joined #ruby
anarang_ has joined #ruby
anarang_ has quit [Read error: Connection reset by peer]
zoraj has quit [Read error: Connection reset by peer]
anarang_ has joined #ruby
ascarter has joined #ruby
toastynerd has joined #ruby
kiri has quit [Ping timeout: 240 seconds]
<shevy> hehe
zoraj has joined #ruby
yfeldblum has joined #ruby
anarang_ is now known as anisha
reference-lost has quit [Remote host closed the connection]
bradhe has joined #ruby
reference has joined #ruby
tanmay_ has joined #ruby
tanmay__ has joined #ruby
nvrch has joined #ruby
linuxnewb2 has quit [Quit: Leaving]
toastynerd has quit [Ping timeout: 245 seconds]
Morkel has quit [Ping timeout: 264 seconds]
<tanmay_> How to get diff between two array of hashes ?
Morkel has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
zegerjan has quit [Quit: Leaving]
ascarter has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
reference has quit [Ping timeout: 264 seconds]
kiri has joined #ruby
<shevy> use -
aspiers has joined #ruby
<shevy> >> array1 = [{ 'foo' => 'bar' }]; array2 = [{ 'foo' => 'bar' }]; array1 - array2
<eval-in__> shevy => [] (https://eval.in/156764)
timfoo has quit [Ping timeout: 255 seconds]
SJr has quit [Ping timeout: 240 seconds]
timfoo has joined #ruby
oso|away has quit [Ping timeout: 264 seconds]
dmitrykorotkov has joined #ruby
fabrice31 has quit [Remote host closed the connection]
vali has quit [Ping timeout: 240 seconds]
dmitrykorotkov is now known as Guest21294
benzrf|offline has quit [Ping timeout: 255 seconds]
LACP has quit [Ping timeout: 240 seconds]
sivoais has quit [Ping timeout: 245 seconds]
stnly has quit [Ping timeout: 264 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
eka has joined #ruby
<tanmay_> for example : ah1 = [{"a"=>"123", "b"=>"123"}, {"a"=>"1232", "b"=>"456ewe"}, {"a"=>"123321", "b"=>"456we"}, {"a"=>"123we", "b"=>"45632"}]
<tanmay_> ah2 = [{"a"=>"abc", "b"=>"123"}, {"a"=>"1232", "b"=>"456ewe"}, {"b"=>"123321", "b"=>"456we"}, {"a"=>"123we", "b"=>"45632"}]
<tanmay_> now how to get ah1 - ah2 ?
<tobiasvl> just like that?
Guest21294 has quit [Ping timeout: 240 seconds]
mengu has quit [Remote host closed the connection]
sk87 has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
marr has joined #ruby
<shevy> ah1 - ah2 # => [{"a"=>"123", "b"=>"123"}, {"a"=>"123321", "b"=>"456we"}]
eka has quit [Client Quit]
doodlehaus has joined #ruby
combusean has joined #ruby
freerobby has joined #ruby
eka has joined #ruby
Photism has quit [Quit: Leaving]
danshultz has quit [Remote host closed the connection]
combusean has quit [Ping timeout: 258 seconds]
fabrice31 has joined #ruby
<tanmay_> ah1 - ah2 should give something like {'a'=>['123','abc']}
Takle has quit [Remote host closed the connection]
danshultz has joined #ruby
<tanmay_> just like model.changes
timfoo has quit [Ping timeout: 255 seconds]
eka has quit [Client Quit]
raspberryfan has quit [Remote host closed the connection]
phoo1234567 has joined #ruby
raspberryfan has joined #ruby
Tomasso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doodlehaus has quit [Remote host closed the connection]
freerobby has quit [Ping timeout: 245 seconds]
timfoo has joined #ruby
raspberryfan has quit [Client Quit]
kiri has quit [Ping timeout: 276 seconds]
<shevy> I dont understand
<apeiros> tanmay_: start by writing a method to get the diff between two hashes
<apeiros> there's nothing built-in
<apeiros> you can show us what you come up with and we can tell you how to do it better
craigp has quit []
fabrice31 has quit [Remote host closed the connection]
<tanmay_> okay. Is there any gem ?
<tanmay_> @apeiros okay I will do it :)
danshultz has quit [Ping timeout: 258 seconds]
<tobiasvl> just write an inject block?
* apeiros screasm "inject abuse!"
<apeiros> *screams, even
reference has joined #ruby
<tobiasvl> hehe
<apeiros> tanmay_: there might be gems for this. I'm not aware of any, though.
setra has joined #ruby
Azulinho has joined #ruby
Photism has joined #ruby
<tanmay_> @apeiros : ah1.each_index{|i| puts ah1[i].merge(ah2[i]){|k, old, new| [old, new] if old != new}} this has helped.
goganchic has joined #ruby
limon7 has quit [Quit: Konversation terminated!]
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<tanmay_> Now I dont want all tha nil. Thats where I am stuck now :(
donnoc has joined #ruby
meatherly has joined #ruby
moomerman has joined #ruby
<Hanmac> tanmay_ something like compact ?
Virtualize|away has joined #ruby
ozzloy has quit [Remote host closed the connection]
ozzloy has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
virt|work has joined #ruby
Virtualize|away has quit [Read error: Connection reset by peer]
codecop has joined #ruby
alexju has quit [Remote host closed the connection]
Gooder``` has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
meatherly has quit [Ping timeout: 240 seconds]
Logico has joined #ruby
<Hanmac> i did something similar: ah1.zip(ah2).map{|oh,nh| oh.merge(nh) {|k,ol,n| [ol,n] if ol != n }.reject!{|k,v|!v}}.reject(&:empty?)
obs has quit [Quit: Saliendo]
heftig has quit [Quit: Quitting]
alexju has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
postmodern has quit [Quit: Leaving]
<apeiros> tanmay_: h1.merge(h2) won't give you proper change/diff hash, though
frobrob has quit [Ping timeout: 252 seconds]
Derander has quit [Ping timeout: 276 seconds]
Gooder`` has quit [Ping timeout: 252 seconds]
yvemath has quit [Excess Flood]
alexju has quit [Remote host closed the connection]
<tanmay_> hmm...that right.
toretore has joined #ruby
<tanmay_> @Hanmac thx
Derander has joined #ruby
<BL4DE> [AutoGreetz] HellCome !!!
jmurray has joined #ruby
sigurding has joined #ruby
yvemath has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
DarKnesS_WolF has joined #ruby
kl0_ has joined #ruby
snath has quit [Ping timeout: 252 seconds]
St_Marx has quit [Ping timeout: 272 seconds]
<DarKnesS_WolF> I am a sysadmin and I want to learn ruby, what is the best book avilable out there for non-devs. ?
cjk101010 has quit [Ping timeout: 258 seconds]
<danijoo> the internet.
<dva> DarKnesS_WolF screw books
zz_nopc0de is now known as nopc0de
<danijoo> you dont need books for ruby
St_Marx has joined #ruby
<riotjones> DarKnesS_WolF, learning by doing
akonny has joined #ruby
moomerman has left #ruby ["Linkinus - http://linkinus.com"]
Xeago has quit [Remote host closed the connection]
<danijoo> for a "getting started", you can use codeacademy. And after that you know enough to google effecentily if you dont understand something of want to dig deeper
GriffinH_ has joined #ruby
trampi has joined #ruby
cina has quit [Quit: leaving]
Xeago has joined #ruby
bean_ has joined #ruby
xm has quit [Remote host closed the connection]
cjk101010 has joined #ruby
julian-delphiki has quit [Ping timeout: 252 seconds]
xm has joined #ruby
paulfm has joined #ruby
jrhe has joined #ruby
workmad3 is now known as wm3|away
flughafen has quit [Ping timeout: 276 seconds]
bradhe has joined #ruby
Logico has left #ruby [#ruby]
agjacome has joined #ruby
vpretzel has joined #ruby
kris has quit [Quit: Computer has gone to sleep.]
<segfalt> DarKnesS_WolF: Nothing wrong with buying a book if that's how you learn best. I don't have a recommendation on a learning to program book though.
krz has quit [Quit: WeeChat 0.4.3]
fabrice31 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<segfalt> Kudos on wanmting to learn, being a sysadmin is easier and more effective when you know how to code :-).
mr_blue has quit [Quit: leaving]
bradhe has quit [Ping timeout: 252 seconds]
toastynerd has joined #ruby
julian-delphiki has joined #ruby
xardas has quit [Ping timeout: 252 seconds]
bean_ has quit [Ping timeout: 240 seconds]
mizmo has quit [Remote host closed the connection]
xardas has joined #ruby
coderhs has joined #ruby
Adawerk__ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
Deele has joined #ruby
toastynerd has quit [Ping timeout: 258 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<DarKnesS_WolF> segfalt: so what do u recommend ?
foredoomed has joined #ruby
goganchic has quit []
mven_ has joined #ruby
LadyRainicorn has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
<shevy> DarKnesS_WolF do you know perl or a similar language already?
phinfonet has joined #ruby
timfoo has quit [Ping timeout: 255 seconds]
donnoc has quit [Quit: WeeChat 0.4.3]
nycto has joined #ruby
Zackio has quit [Quit: ZNC - http://znc.in]
<LadyRainicorn> Are there languages similar to Perl?
<tobiasvl> LadyRainicorn: well … ruby? :)
<tobiasvl> similar in what way?
<LadyRainicorn> I thought it was a unique combination of functionality and awfulness.
timfoo has joined #ruby
<LadyRainicorn> lol Ruby is not really very similar beyond what it shares with all "scripting languages"
nicksloan has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
abdulsattar has quit [Ping timeout: 252 seconds]
<LadyRainicorn> syntactically?
<tobiasvl> yes, for example
sinkensa_ has joined #ruby
<LadyRainicorn> ₩♥/*($@+¥~~`%><×£¥~{> # Hello, world! in Perl
<tobiasvl> what constitutes "similarity" in languages for you?
<LadyRainicorn> ^ shit that looks like that.
<tobiasvl> not sure what you're referring to
<tobiasvl> perl can be arcane but it can also be concise
<tobiasvl> like ruby, really. ruby has a lot of strange syntactic sugar as well
<tobiasvl> colon-ampersand, blocks, etc
<DarKnesS_WolF> shevy: some python
<shevy> ok
sinkensabe has quit [Remote host closed the connection]
<Hanmac> ruby - the diabetes under the programming languages
<tobiasvl> LadyRainicorn: also both ruby and perl are TIMTOWTDI
<tobiasvl> LadyRainicorn: they both have sigils
<tobiasvl> there are many differences too, to be sure
<shevy> DarKnesS_WolF I think the pickaxe may be best, the last part of it is an almost complete reference to the stdlib with explanations and examples
<shevy> but the only real way to learn ruby is to write scripts on your own, the more the better
paulfm has quit []
<tobiasvl> LadyRainicorn: some say ruby = smalltalk + perl
bmurt has joined #ruby
ncopa has joined #ruby
setra has quit [Ping timeout: 265 seconds]
Zackio has joined #ruby
sunya7a has joined #ruby
<ncopa> hi, posix-spawn does not build with musl libc: https://gist.github.com/ncopa/72437b18ed49b6863efc
combusean has joined #ruby
phutchins has joined #ruby
<ncopa> i'm not sure how to patch those .gem files
yalue has joined #ruby
<shevy> yeah DarKnesS_WolF
freerobby has joined #ruby
Bira has joined #ruby
akonny has quit [Quit: akonny]
<DarKnesS_WolF> shevy: thx :) will get it then
paulfm has joined #ruby
moneydouble has joined #ruby
sunya7a has quit [Ping timeout: 265 seconds]
combusean has quit [Ping timeout: 252 seconds]
atom3 has joined #ruby
<LadyRainicorn> Some people are sometimes wrong? ;o
<LadyRainicorn> ;p
setra has joined #ruby
GriffinH_ has quit [Remote host closed the connection]
atom3 has quit [Client Quit]
freerobby has quit [Ping timeout: 240 seconds]
rblackwe has joined #ruby
centrx has joined #ruby
<ncopa> is there some way to unpack and patch a gem before buildling and installing it?
tvw has quit []
kris has joined #ruby
<shevy> ncopa I think you do not understand what a .gem is
tvw has joined #ruby
<danijoo> ncopa: you can compile it from source
<danijoo> "compile"
<shevy> ncopa a .gem is basically just a zipped up archive more or less
<shevy> ncopa you can "unpack" a gem via "gem unpack"
<ncopa> can i gem build/install <path/to/unpacked/dir> ?
<shevy> ncopa then you make all the modifications you wanna do to the various .rb files and so on, then you build the gem anew via "gem build *gemspec" (or some other fancy way possibly if you use crap like bundler I assume)
GriffinHeart has joined #ruby
yacks has quit [Ping timeout: 255 seconds]
<shevy> ncopa well only to a limited manner; you can use --user-install option
chipotle has quit [Quit: cya]
<ncopa> so i would need to build a new .gem then
<shevy> this explains
<shevy> sure
<shevy> it's an archive after all
<shevy> if you want to update it, you must change and modify the content of it
<shevy> then build a new archive, just like .tar.gz .tar.xz and .zip ...
moritzs has joined #ruby
<ncopa> what i want to do is build a distro package of it
<ncopa> i suppose gem install will unpack and build and install it
<ncopa> so i'd like it to continue with the build and install part from my patched dir
<Hanmac> ncopa: for debian or ubuntu?
<ncopa> for alpine linux
flughafen has joined #ruby
<flughafen> vim
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
doev has joined #ruby
dblessing_ has joined #ruby
ascarter has joined #ruby
obs has joined #ruby
obs_ has joined #ruby
nnu has quit [Quit: Wqke me up before you go-go]
obs_ has quit [Client Quit]
yfeldblum has quit [Ping timeout: 255 seconds]
codabrink has joined #ruby
canton7 has quit [Quit: ZNC - http://znc.in]
canton7 has joined #ruby
fenak has joined #ruby
tyl has joined #ruby
thesheff17 has quit [Remote host closed the connection]
flughafen has quit [Quit: WeeChat 0.4.1]
thesheff17 has joined #ruby
flughafen has joined #ruby
thesheff17 has quit [Remote host closed the connection]
thesheff17 has joined #ruby
_JokerDoom has quit [Quit: Leaving]
jblack_ has quit [Quit: Lost terminal]
stnly has joined #ruby
bradhe has joined #ruby
oso|away has joined #ruby
vali has joined #ruby
oso|away is now known as oso96_2000
typicalbender has joined #ruby
LACP has joined #ruby
tier has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danshultz has joined #ruby
fresham has joined #ruby
[42] is now known as [hdrv]
[hdrv] is now known as [42]
Ankhers has joined #ruby
fresham is now known as fresham|work
bradhe has quit [Ping timeout: 255 seconds]
vt102 has joined #ruby
GriffinHeart has quit [Ping timeout: 252 seconds]
alexju has joined #ruby
dmitrykorotkov has joined #ruby
sivoais has joined #ruby
dmitrykorotkov is now known as Guest8836
GriffinHeart has joined #ruby
<shevy> ncopa gem install will download, put the .gem into the cache/ subdirectory, extract and install it
<shevy> ncopa gem also allows installation of local gem, so all you have to do is build a gem with the changes you want to have
kris has quit [Quit: Computer has gone to sleep.]
metadave_ is now known as metadave
qwyeth has joined #ruby
kris has joined #ruby
vt102 has quit [Remote host closed the connection]
abdulsattar has joined #ruby
vt102 has joined #ruby
ldnunes has joined #ruby
toastynerd has joined #ruby
momomomomo has joined #ruby
<shevy> has anyone of you ever wanted to make just one gem with all dependencies included
sailias has joined #ruby
Takle has quit [Remote host closed the connection]
sailias has quit [Read error: Connection reset by peer]
lukec has joined #ruby
devdazed has joined #ruby
mary5030 has joined #ruby
kris has quit [Ping timeout: 255 seconds]
codecop has quit [Quit: Išeinu]
Takle has joined #ruby
<DefV> nope
doodlehaus has joined #ruby
adamnbowen has joined #ruby
toastynerd has quit [Ping timeout: 264 seconds]
paulfm has quit []
wm3|away is now known as workmad3
devdazed has quit [Quit: Bye]
<Hanmac> shevy thats the dependencies of the classes that "activesupport/all" defines/has http://abload.de/img/i7dsk0.png
devdazed has joined #ruby
kiri has joined #ruby
<shevy> Hanmac yeah you showed that already before, and I commented that it makes me very sad
paulfm has joined #ruby
RaptorJesus has quit [Ping timeout: 272 seconds]
garndt has joined #ruby
Guest8836 has quit [Ping timeout: 240 seconds]
krz has joined #ruby
farn has joined #ruby
himsin has quit [Quit: himsin]
codabrink has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
tkuchiki has quit [Ping timeout: 276 seconds]
sambao21 has quit [Client Quit]
<shevy> hmm
<shevy> is there a way to use ruby
<shevy> to login to a browser game
klaut has quit [Remote host closed the connection]
<shevy> in an hour, and then in another hour
kedare has joined #ruby
<shevy> to do a few actions
<DouweM> shevy: depends on the browser game
<DouweM> you can certainly emulate a browser using HTTP requests, but you're gonna have a hard time with a Flash game
Guest8836 has joined #ruby
<shevy> that is ok
<shevy> flash can die
<shevy> it's an old school browser webgame written in perl
<DouweM> as long as it's interacted with over HTTP the technology doesn't really matter. You can use web inspector in your browser to figure out what exactly is going on, and then make the same requests using Net::HTTP or whatever
<shevy> hmm
<shevy> let me understand that
<ncopa> Hanmac: for posix-spawn fix: curl http://sprunge.us/TUje | git am
<shevy> I can use that ... web inspect thingy (whatever that is), find out what things are calling, and then use ruby Net::HTTP to send specific instructions like that to that remote URL?
mikesplain has joined #ruby
<ncopa> Hanmac: or should I fork and create a pull request?
wilsonfisk has joined #ruby
moritzs has quit [Ping timeout: 264 seconds]
combusean has joined #ruby
<DouweM> shevy: play the game in your browser with Web Inspector (which is part of Chrome at least) open. You can see all HTTP requests going out and responeses going back. Find out exactly what happens in terms of HTTP for the actions you want to do
<DouweM> shevy: Then write out and execute these HTTP requests using Ruby and submit them using Net::HTTP or similar
<Hanmac> dont know, i do not care so much about musl ... thats the first time i heard about that
<DouweM> shevy: You'll also have to find out how exactly the game does authentication. You may need to make request to a login page first, and then save the cookie you'll get back, and send it along with every follow-up request as authentication
Soda has quit [Remote host closed the connection]
<DouweM> shevy: or if all of that sounds too hard, use PhantomJS or similar to load a headless browser and actually do stuff like `click_link "Do Action"`
<DouweM> shevy: that way you don't have to mess with HTTP directly
sailias has joined #ruby
codabrink has joined #ruby
kaspergrubbe has joined #ruby
combusean has quit [Ping timeout: 240 seconds]
mijicd has quit [Remote host closed the connection]
kirun has joined #ruby
<ncopa> Hanmac: but you think it is ok to use a define even if its not defined? https://github.com/rtomayko/posix-spawn/commit/9b7c7c0d1cdf560732265e4b82eed62fd9001949
mijicd has joined #ruby
<ncopa> Hanmac: I'd say either revert 9b7c7c0 or check for __GLIBC__
lele has quit [Ping timeout: 245 seconds]
chrisseaton has joined #ruby
jcarouth has joined #ruby
yfeldblum has joined #ruby
reference has quit [Ping timeout: 240 seconds]
kpshek has joined #ruby
atom3 has joined #ruby
Hanmac1 has joined #ruby
atom3 has quit [Client Quit]
Hanmac has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
akonny has joined #ruby
joonty has quit [Ping timeout: 245 seconds]
kris has joined #ruby
Guest8836 has quit [Quit: Leaving]
codename539 has joined #ruby
trampi has quit [Ping timeout: 264 seconds]
nycto has left #ruby [#ruby]
codename539 has quit [Max SendQ exceeded]
tanmay__ has quit [Read error: Connection reset by peer]
tanmay_ has quit [Read error: Connection reset by peer]
treehug88 has joined #ruby
codename539 has joined #ruby
dumdedum has quit [Quit: foo]
Bira has quit [Remote host closed the connection]
codename539 has quit [Max SendQ exceeded]
NukePuppy has joined #ruby
mrnugget has quit [Quit: mrnugget]
codename539 has joined #ruby
zorak is now known as zorak8
zorak8 has quit [Quit: Saliendo]
zorak8 has joined #ruby
yacks has joined #ruby
zaargy has quit [Quit: leaving]
codename539 has quit [Max SendQ exceeded]
tkuchiki has joined #ruby
jilk23 has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
aganov has quit [Quit: Leaving]
baweaver has joined #ruby
sambao21 has joined #ruby
hamakn has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
Macaveli has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
_FL1SK is now known as FL1SK
bradhe has quit [Ping timeout: 255 seconds]
obs has quit [Quit: Saliendo]
diegoviola has joined #ruby
joonty has joined #ruby
klaut has joined #ruby
tyl has quit [Quit: Textual IRC Client: www.textualapp.com]
obs has joined #ruby
meatherly has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
joonty has quit [Client Quit]
meatherly has quit [Remote host closed the connection]
nemesit|znc has quit [Ping timeout: 252 seconds]
Eyess has quit [Remote host closed the connection]
canton7 has quit [Quit: ZNC - http://znc.in]
joonty has joined #ruby
Eyes has joined #ruby
Eyes is now known as Eyess
mercerist has quit [Ping timeout: 240 seconds]
canton7 has joined #ruby
chipotle has joined #ruby
Shidash has joined #ruby
snath has joined #ruby
mercerist has joined #ruby
NukePuppy has quit [Ping timeout: 245 seconds]
troulouliou_dev has joined #ruby
arrubin has joined #ruby
mary5030_ has joined #ruby
duggiefresh has joined #ruby
nemesit|znc has joined #ruby
Freddan962 has joined #ruby
<Freddan962> Hello :D
<riotjones> hala madrid!!!
anaeem1 has joined #ruby
<apeiros> olà
lw has joined #ruby
huoxito has joined #ruby
himsin has joined #ruby
Megtastique has joined #ruby
himsin has quit [Client Quit]
mary5030 has quit [Ping timeout: 276 seconds]
Atrumx has joined #ruby
SCommette has joined #ruby
meatherly has joined #ruby
toastynerd has joined #ruby
kedare has left #ruby [#ruby]
AlexRussia has joined #ruby
nemesit|znc has quit [Ping timeout: 252 seconds]
tyl has joined #ruby
tyl has left #ruby [#ruby]
anaeem1 has quit [Ping timeout: 264 seconds]
chipotle_ has joined #ruby
kris has quit [Quit: Computer has gone to sleep.]
tagrudev has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 252 seconds]
gwb3 has quit [Read error: Connection reset by peer]
toastynerd has quit [Ping timeout: 255 seconds]
Toger has joined #ruby
poikon has joined #ruby
eka has joined #ruby
virt|work has quit [Read error: Connection reset by peer]
Virtualize|away has joined #ruby
abdulsattar has quit [Quit: Leaving]
lukec has quit [Quit: lukec]
mengu has quit []
oo_ has joined #ruby
<Freddan962> olá
<Freddan962> I need some help with figuring out a problem.
hamakn has joined #ruby
ta has quit [Remote host closed the connection]
<Freddan962> Ok, so currently I have a hierarchy: Entity > FloatingEntity > SpaceshipFighter > Player. I am trying to remove all the constructor params and calls for health. However, when I do this I get an error in ContentManager.rb #11 (https://github.com/Freddan962/Spaceshooter/tree/master/src) - Would appreciate if someone could shred some light!
kirun_ has joined #ruby
pasties has quit [Ping timeout: 252 seconds]
toastynerd has joined #ruby
Bira has joined #ruby
cashnguns has joined #ruby
kirun has quit [Ping timeout: 255 seconds]
akonny has quit [Quit: akonny]
sk87 has joined #ruby
paulfm has quit []
mary5030_ has quit [Remote host closed the connection]
niharvey is now known as niharvey|brb
mary5030 has joined #ruby
Bira has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
bradhe has joined #ruby
<Freddan962> apeiros: Could you help me?
<apeiros> nooooowaaaay
<apeiros> with what?
<apeiros> oh, tl;dr
sunya7a has joined #ruby
ffranz has joined #ruby
nemesit|znc has joined #ruby
anaeem1 has joined #ruby
setra has quit [Ping timeout: 264 seconds]
typicalbender has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
anarang has quit [Remote host closed the connection]
combusean has joined #ruby
JoeGaudet has joined #ruby
<DouweM> Freddan962: you get "an error"?
dik_dak has joined #ruby
<Freddan962> Douwem: Oh forgot the image link :P
bradhe has quit [Remote host closed the connection]
anaeem1 has quit [Ping timeout: 252 seconds]
sunya7a has quit [Ping timeout: 276 seconds]
<Freddan962> DouweM: http://puu.sh/93qS1.png
coderhs has joined #ruby
<coderhs> is using rvm in production safe?
<ericwood> I'm no devops person but I wouldn't recommend it
yfeldblum has joined #ruby
combusean has quit [Ping timeout: 252 seconds]
axl_ has quit [Quit: axl_]
nateberkopec has joined #ruby
Takle has quit [Remote host closed the connection]
dik_dak has quit [Ping timeout: 240 seconds]
<DouweM> Freddan962: that has little to do with moving healt from initialize methods.
<DouweM> Freddan962: for somereason your @content_grid[(object.y/@grid_height).round] is nil. Which is weird because you set that as the initialize block :/
EagleDelta has joined #ruby
<AntelopeSalad> coderhs: i have a few sites using rvm in production, no issues
<Freddan962> DouweM: That issue appeared when I removed the health in player's parents.
chipotle_ has quit [Quit: cya]
<Freddan962> DouweM: If you have some time - join me here: https://join.me/665-490-019
<DouweM> Freddan962: from the code I don't see how it could be related to that
Bira has joined #ruby
<DouweM> Freddan962: no sorry, don't have time for that
<coderhs> AmtelopeSalad: Do u have multiple version of ruby in those servers
<Freddan962> DouweM: Alright
moneydouble has quit [Quit: Leaving.]
<DouweM> Freddan962: could you show the exact diff of the changes you made that made this fail?
<Freddan962> DouweM: Sure
<AntelopeSalad> coderhs: 1 app per server , 1 active version of ruby at any given time
nemesit|znc has quit [Ping timeout: 245 seconds]
b1205 has joined #ruby
benzrf|offline has joined #ruby
benzrf|offline is now known as benzrf
<DouweM> Freddan962: and when you roll those back, it works?
yfeldblum has quit [Ping timeout: 265 seconds]
<Freddan962> DouweM: Correct
<AntelopeSalad> coderhs: i mainly use it because if how easy it allows you to install/upgrade ruby without having to compile ruby
tjr9898_ has quit [Remote host closed the connection]
poikon has quit [Remote host closed the connection]
<DouweM> Freddan962: that is incredibly weird, because the error you post seems to be self contained in ContentManager, as it doesn't touch any variables outside itself
zorak8 has quit [Ping timeout: 255 seconds]
<Freddan962> DouweM: Indeed, and it is annoying me since yesterday.
paulfm has joined #ruby
<coderhs> AntelopSalad: Ah i get it, but in one of my servers multiple versions of ruby is causing issue for apachae
<coderhs> getting errors like "Unknown ruby interpreter version (do not know how to handle): textmate."
ninegrid has quit [Ping timeout: 258 seconds]
anaeem1 has joined #ruby
<DouweM> Freddan962: put a breakpoint on the line the error occurs, and check if variables match what you expect
ta has joined #ruby
niharvey|brb is now known as niharvey
mijicd has quit [Remote host closed the connection]
<AntelopeSalad> coderhs: what is giving you that error exactly?
<Freddan962> DouweM: I printed the object class type - before the changes it prints the correct class. After the changes, it prints NilClass
<coderhs> passenger
<DouweM> Freddan962: step through ContentManager, and find out where it goes wrong
<DouweM> Freddan962: something must go wrong with initializing that array
pyon has joined #ruby
<AntelopeSalad> coderhs: i never used passenger but does it require you to give it the path to your ruby binary or something?
ninegrid has joined #ruby
<coderhs> yes
<Freddan962> DouweM: I don't think it's in content manager - it is most likely something with my constructor calls. But I don't see what is wrong with them either.
<coderhs> the path is correct
mrnugget has joined #ruby
<AntelopeSalad> did you give it the full path to the ruby binary which is managed by rvm?
<DouweM> Freddan962: the error is in CM though
Steve21 has joined #ruby
<DouweM> Freddan962: that's the only lead you've got right now
meatherly has quit [Remote host closed the connection]
<Freddan962> constructor: Indeed, it is because the object is a NilClass instead as an instance of another of my objects.
<Freddan962> Before it containted instances of Player, Projectiles & Background. Now, it is purely niclasses.
<coderhs> AntelopeSalad: Yes
obs has quit [Remote host closed the connection]
<coderhs> for some reason the in the env variouble the gem path points to 2.1 GEM_HOME=/home/ec2-user/.rvm/gems/ruby-2.1.0
LadyRainicorn has quit [Read error: Connection reset by peer]
<DouweM> Freddan962: `@content_grid[(object.y/@grid_height).round]` is nil, not `@content_grid[(object.y/@grid_height).round][(object.x/@grid_width).round]`
<DouweM> Freddan962: it's a problem with the second dimension of the multidimensional array
LadyRainicorn has joined #ruby
Takle has joined #ruby
<AntelopeSalad> coderhs: sounds like you have a typical rvm installation specific to a user
<Freddan962> DouweM: You positive? Because if the object is a nilclass, it can't make use of the x and y accessor?
qwyeth has quit [Ping timeout: 240 seconds]
SegFaultAX has quit [Excess Flood]
<DouweM> Freddan962: that's what the error states, undefined method []=
<coderhs> AntelopeSalad, yes its not global
<Freddan962> DouweM: Let me link you something, hold on.
hgl has quit [Ping timeout: 255 seconds]
nvrch has quit [Ping timeout: 240 seconds]
<DouweM> Freddan962: so the problem is that the stuff on the left of `[(object.x/@grid_width).round] = object` is nil
<AntelopeSalad> coderhs: did you tell rvm to use a specific version by default?
krz has quit [Quit: WeeChat 0.4.3]
tjr9898_ has joined #ruby
<DouweM> Freddan962: ie, the second dimension of the array
toastynerd has quit [Remote host closed the connection]
mikesplain_ has joined #ruby
chipotle has joined #ruby
<Freddan962> DouweM: The array is one dimensional?
sheperson has joined #ruby
<DouweM> Freddan962: @content_grid is 2-dimensional, nested arrays
<coderhs> AntelopeSalad: no, i will do that and try again. But before it used to load on its own the version is mentioned in the httpd conf
<Freddan962> DouweM: Oh yeah, sorry, thought you meant the object array.
<DouweM> Freddan962: the issue is that the second dimension isn't correctly initialized, or is reset at some poijnt
SegFaultAX has joined #ruby
<Freddan962> DouweM: This is how the output of the object.class, before the error, looks like in the working program: http://puu.sh/93rBe.png
<DouweM> Freddan962: object isn't the issue
<DouweM> Freddan962: the multidim array is
obs has joined #ruby
<Freddan962> DouweM: No, the object is the issue, because when trying to access a element in the multidimensional array, we try to call object.x, but since object is nil it does not have the accessor X.
<DouweM> Freddan962: that's not what the error you sent states
nemesit|znc has joined #ruby
<DouweM> Freddan962: it says method not found "[]="m not ".x"
nvrch has joined #ruby
Tomasso has joined #ruby
<Freddan962> DouweM: Weird..
dik_dak has joined #ruby
kies has quit [Ping timeout: 240 seconds]
mikesplain has quit [Ping timeout: 255 seconds]
mikesplain_ is now known as mikesplain
<Freddan962> I still do not see how removing health can lead to this.
<coderhs> AntelopeSalad: setting the default fixed my issue than ks
<coderhs> thanks
tobago has quit [Remote host closed the connection]
<AntelopeSalad> no problem
<DouweM> Freddan962: neither do I. If the error you posted is the actual one, I'd bet the health removal isn't the cause at all
<DouweM> Freddan962: if you have an error complaining about object.x, that's a different story
<Freddan962> DouweM: But the thing is, those changes I showed you, lead to this issue.
bal has quit [Quit: bal]
<Freddan962> DouweM: I do not, nevermind me, thought I saw that yesterday.
b1205 has quit [Ping timeout: 276 seconds]
meatherly has joined #ruby
danshultz has quit [Remote host closed the connection]
<DouweM> >> Array.new(1)[1]
<eval-in__> DouweM => nil (https://eval.in/156765)
Uranio-235 has joined #ruby
<DouweM> >> Array.new(1)[1] { "x" }
<eval-in__> DouweM => /tmp/execpad-41a22c6e4a97/source-41a22c6e4a97:2: syntax error, unexpected { arg, expecting keyword_end ... (https://eval.in/156766)
<DouweM> >> (Array.new(1) { "x" })[1]
<eval-in__> DouweM => nil (https://eval.in/156767)
qwyeth has joined #ruby
<DouweM> Freddan962: looks like `(object.y/@grid_height).round` is out of bounds from `GameWindow::HEIGHT/@grid_height + 1`
danshultz has joined #ruby
<DouweM> Freddan962: that would cause this issue, as I just tested
WishBoy has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
yalue has quit [Quit: Leaving]
<Freddan962> DouweM: The +1 gives us a 32x32 square buffer outside the viewable screen. No object CAN or should get that far.. ugh..
<DouweM> Freddan962: inspect object.y at that point
danshultz has joined #ruby
tier has quit [Remote host closed the connection]
<Freddan962> DouweM: http://puu.sh/93s13.png (In square X, Y)
<DouweM> well that's not right :)
<Freddan962> DouweM: Actual Y coordinate: 1166.5625 O,o
bal has joined #ruby
nateberkopec has quit [Quit: Leaving...]
lw has quit [Quit: s]
xardas has quit [Quit: ChatZilla 0.9.90.1 [Firefox 29.0.1/20140506152807]]
<Freddan962> DouweM: The error is coming from an instance of loot, let me investigate :D
Fire-Dragon-DoL has joined #ruby
nateberkopec has joined #ruby
moted has joined #ruby
meatherly has quit [Client Quit]
Uranio-235 has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Max SendQ exceeded]
nemesit|znc has quit [Ping timeout: 252 seconds]
tier has joined #ruby
<Freddan962> DouweM: The issue starts at Play.rb#73-74
jxf has joined #ruby
codeurge has joined #ruby
<DouweM> Freddan962: which I don't see in the repo
bradhe has joined #ruby
lw has joined #ruby
yalue has joined #ruby
Fire-Dragon-DoL has joined #ruby
Gooder``` has quit [Remote host closed the connection]
jprovazn has quit [Quit: Leaving]
<Freddan962> DouweM: I think somehow, from Play.rb#73-74 we are, after the HP change, calling the constructors wrongly. Thus giving the loot a speed that makes it go faster than what the grid system can keep up to. Then, when outside the grid system, it tries to access a grid which does not exist. Thats why we are getting the error. Now its just to solve it! )
ixti has joined #ruby
nateberkopec has quit [Client Quit]
<DouweM> Freddan962: good luck!
andrewjanssen has joined #ruby
<Freddan962> DouweM: Thanks for helping me! :)
Tomasso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<DouweM> Freddan962: np. welcome distraction from studying
Tomasso has joined #ruby
andrewjanssen has quit [Remote host closed the connection]
andrewjanssen has joined #ruby
lethe has quit [Remote host closed the connection]
<Freddan962> DouweM: http://puu.sh/93ssE.png - it accelerates WAY too fast haha
Tomasso has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
<DouweM> Freddan962: nice
<Sigma00> use functions to move your objects, and check in them that they don't go out of the grid?
kevind has joined #ruby
phantasm66 has joined #ruby
robclancy has joined #ruby
nemesit|znc has joined #ruby
<robclancy> do you guys use a ruby ide or is it just vim/sublime type stuff?
<Freddan962> Sigma00: No need to - they get removed as soon as they leave the screen. No object of mine is really supposed to travel across screen without being seen :P
Uranio-235 has joined #ruby
Steve21 has quit [Quit: Steve21]
<DouweM> robclancy: sublime
Rainicorn has joined #ruby
<Freddan962> robclancy: Sublime
<DouweM> robclancy: most Ruby devs _don't_ use an IDE
<Sigma00> I like vim, with everything janus adds
<robclancy> yeah was thinking that
<robclancy> being so dynamic and ide wouldn't be able to help that much anyway
<robclancy> the*
<DouweM> robclancy: right on the money
<benzrf> robclancy: unix is my IDE B)
<robclancy> was just chekcing, I use vim myself
<DouweM> yobeznrf
<benzrf> robclancy: just keep a pry open at all times
<benzrf> yodouwem
havenwood has joined #ruby
<benzrf> been doin more haskell lately
<DouweM> noice
Tomasso has joined #ruby
LadyRainicorn has quit [Ping timeout: 240 seconds]
adac has quit [Ping timeout: 264 seconds]
<benzrf> learnin me some van Laarhoven lenses
<benzrf> B-)
jimbauds has joined #ruby
Beoran__ has quit [Ping timeout: 245 seconds]
kies has joined #ruby
<DouweM> benzrf: say what?
<Freddan962> DouweM: http://puu.sh/93sJS.jpg thank you! :)
<DouweM> Freddan962: nice :)
<benzrf> DouweM: do u even lens
tesuji has quit [Ping timeout: 258 seconds]
<DouweM> benzrf: it appears that I do not
andrewlio has quit [Remote host closed the connection]
<DouweM> benzrf: please enlighten me
joonty has quit [Ping timeout: 255 seconds]
bal has quit [Quit: bal]
sinkensa_ has quit [Remote host closed the connection]
<Mon_Ouie> Fancy name for getters and setters :p
<benzrf> DouweM: a lens is something that supports 'get' and
sinkensabe has joined #ruby
<benzrf> 'put' operations
<benzrf> on another data structure
<Freddan962> Time to get some food and design a GUI system :D
<benzrf> for example, _1 is a lens on tuples
<benzrf> hypothetically,
<benzrf> get _1 (3, 4) => 3
LadyRainicorn has joined #ruby
<benzrf> set _1 5 (3, 4) => (5, 4)
<DouweM> oh that's nice
<benzrf> the fun part of lenses is when you can compose them
BL4DE has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
<benzrf> and do deep non-destructive updates
<benzrf> van Laarhoven lenses are a way of implementing the concept
obs has quit [Remote host closed the connection]
<DouweM> benzrf: cool
anaeem1 has quit [Remote host closed the connection]
Rainicorn has quit [Ping timeout: 264 seconds]
anaeem1_ has joined #ruby
cczona has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
fabrice31 has quit [Remote host closed the connection]
SegFaultAX has quit [Excess Flood]
orolo has joined #ruby
sinkensabe has quit [Ping timeout: 252 seconds]
SegFaultAX has joined #ruby
obs has joined #ruby
<benzrf> DouweM: basically
Uranio-235 has quit [Ping timeout: 240 seconds]
<DouweM> benzrf: I'm skimming through the talk now: http://twanvl.nl/files/lenses-talk-2011-05-17.pdf
Tomasso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benzrf> a lens that takes an s and turns it into a t by replacing an a in it with a b
<benzrf> looks like:
<benzrf> (a -> f b) -> s -> f t
<benzrf> for example
cczona has left #ruby [#ruby]
<orolo> i'm trying to set a variable to whichever of these is not nil: thing["left"].nil? || thing["right"].nil?. my gut says to do an if else but is there a ruby way?
geggam has joined #ruby
<benzrf> (hypothetically) _1 :: (a -> f b) -> (a, c) -> f (b, c)
moneydouble has joined #ruby
<benzrf> DouweM: where f has to be a functor
sheperson has quit [Quit: sheperson]
<benzrf> DouweM: the cool thing here is that you control the behavior of the lens by what functor you choose
<benzrf> if you choose the Identity functor, you get update
<DouweM> benzrf: right
<benzrf> i.e.
<benzrf> ok
<benzrf> :p
<centrx> orolo, thing["left"] || thing["right"]
bakflash has joined #ruby
<DouweM> benzrf: that's cool enough, but not enough to get me motivated to get into haskell again :P
<centrx> orolo, (assuming you are not including "false" in "not nil"
<benzrf> DouweM: the lens package also has prisms & traversals
<orolo> wow. thanks centrx . it's either an empty string or not an empty string.
<benzrf> DouweM: prisms are like lenses on sum types instead of product types
<Mon_Ouie> You do realize an empty string is not nil?
gioele has joined #ruby
Beoran__ has joined #ruby
Tomasso has joined #ruby
codeurge has quit [Quit: Quit.]
s3ri0us has joined #ruby
sinkensabe has joined #ruby
<gioele> hi, I am doing some low-level charset manipulation. I have a string with encoding UTF-8 and I would like to insert in it, forcefully a certain sequence of raw bytes. How can I do that?
joonty has joined #ruby
acrussell has joined #ruby
bradhe has quit [Remote host closed the connection]
alex88_ has joined #ruby
acrussell has quit [Client Quit]
acrussell has joined #ruby
<Mon_Ouie> Use force_encoding('binary') and Ruby will ignore encoding (beware: if you do that, indices match bytes, not characters)
sheperson has joined #ruby
acrussell has left #ruby [#ruby]
Tomasso has quit [Client Quit]
EagleDelta has quit [Remote host closed the connection]
alex88 has quit [Ping timeout: 264 seconds]
ninegrid has quit [Ping timeout: 252 seconds]
<gioele> Mon_Ouie: so I have to force_encoding twice, once when I start adding raw sequences and once when I am done with it, right?
ninegrid has joined #ruby
<Mon_Ouie> If you then have a valid UTF-8 string and want Ruby to treat it as such, yes
<gioele> btw, why isn't it force_encoding! (give that it operates on the string itself)?
endash has quit [Read error: Connection reset by peer]
lmickh has joined #ruby
armyriad has quit [Ping timeout: 265 seconds]
endash has joined #ruby
picca has joined #ruby
<DouweM> gioele: because it's already clear from the name that it's in-place
armyriad has joined #ruby
<workmad3> gioele: because ! doesn't mean 'this changes the target' in ruby, it means 'this version of the method is dangerous compared to the version without !'
<Mon_Ouie> Operations that mutate the receiver have a '!' in their name only if there's an out of place variant
Tomasso has joined #ruby
endash has quit [Client Quit]
iceden has joined #ruby
<workmad3> gioele: e.g. 'exit' (normal exit with a 0) vs 'exit!' (abnormal exit with a 1)
Hanmac has joined #ruby
mikesplain_ has joined #ruby
<gioele> personally I'd use a force_encoding that returns a copy of the string instead of changing the string itself
sambao21 has joined #ruby
alex88_ is now known as alex889
alex889 is now known as alex88
LadyRainicorn has quit [Read error: Connection reset by peer]
ayaz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hanmac1 has quit [Ping timeout: 240 seconds]
endash has joined #ruby
peckermanzzz has quit [Ping timeout: 255 seconds]
b00stfr3ak has joined #ruby
ta has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
Ankhers has quit [Remote host closed the connection]
lukec has joined #ruby
mikesplain has quit [Ping timeout: 264 seconds]
mikesplain_ is now known as mikesplain
peckermanzzz has joined #ruby
yfeldblum has joined #ruby
adamnbowen has quit [Ping timeout: 240 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Ankhers has joined #ruby
binaryhat has joined #ruby
lw has quit [Quit: s]
combusean has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
Tomasso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gioele> btw, thanks Mon_Ouie
ayaz has joined #ruby
Azzurrio has joined #ruby
binaryhat has quit [Read error: Connection reset by peer]
jimbauds has quit [Quit: Leaving]
ayaz has quit [Max SendQ exceeded]
gioele has left #ruby [#ruby]
sk87 has joined #ruby
Azzurrio has quit [Client Quit]
spider-mario has joined #ruby
Tomasso has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
jimbauds has joined #ruby
Tomasso has quit [Client Quit]
IceDragon has joined #ruby
binaryhat has joined #ruby
ikaros has joined #ruby
combusean has quit [Ping timeout: 255 seconds]
lw has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
<moneydouble> Is RSpec a testing unit for Ruby? Kinda confused what RSpec is but I'm seeing it a lot.
sigurding has quit [Quit: sigurding]
sinkensabe has quit [Remote host closed the connection]
sheperson has quit [Ping timeout: 258 seconds]
sinkensabe has joined #ruby
adamnbowen has joined #ruby
Tomasso has joined #ruby
zoraj has quit [Remote host closed the connection]
lolmaus has joined #ruby
Takle has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 255 seconds]
<benzrf> moneydouble: it's a testing framework yes
diegoviola has quit [Quit: WeeChat 0.4.3]
ta has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
auxbuss has joined #ruby
dANOKELOFF has quit [Ping timeout: 240 seconds]
dANOKELO_ has joined #ruby
mist has quit [Quit: leaving]
rippa has joined #ruby
duggiefresh has quit [Remote host closed the connection]
Tomasso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
prathamesh has joined #ruby
adamnbowen has quit [Read error: Connection reset by peer]
mrmist has joined #ruby
i_s has joined #ruby
Atttwww has joined #ruby
Takle has joined #ruby
iasj has joined #ruby
jilk23 has joined #ruby
adac has joined #ruby
fresham|work is now known as codyf
mrmist is now known as mist
i_s_ has joined #ruby
auxbuss has quit [Quit: I'm gone.]
alex88 has quit [Quit: Leaving...]
noop has quit [Ping timeout: 252 seconds]
sheperson has joined #ruby
Tomasso has joined #ruby
LadyRainicorn has joined #ruby
maestrojed has joined #ruby
poikon has joined #ruby
i_s has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
sdelmore has quit [Quit: Leaving.]
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
wilsonfisk has quit [Quit: changing hosts]
xMopxShell has quit [Remote host closed the connection]
sheperson_ has joined #ruby
sheperson has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
sheperson_ is now known as sheperson
poikon has quit [Ping timeout: 240 seconds]
xMopxShell has joined #ruby
Takle has quit [Remote host closed the connection]
<dacamp> Is the ChanServ entry message url still relevant? It mentions a link to modruby.net which seems to be a Japanese blog unrelated to Ruby.
<benzrf> yea'
vpretzel is now known as vpretzel|away
diegoviola has joined #ruby
Arkaniad|Laptop has quit [Ping timeout: 252 seconds]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
cephalostrum has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Leif has joined #ruby
aspires has joined #ruby
tier has quit [Remote host closed the connection]
wallerdev has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
sdelmore has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
moritzs has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
jilk23 has quit [Quit: jilk23]
jilk23 has joined #ruby
havenwood has quit [Remote host closed the connection]
Jrz has joined #ruby
Tomasso has quit [Ping timeout: 255 seconds]
Jrz has quit [Max SendQ exceeded]
sinkensabe has quit [Remote host closed the connection]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
sdwrage has joined #ruby
sinkensabe has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
cashnguns has quit [Read error: Connection reset by peer]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Tomasso has joined #ruby
Solnse has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
<moneydouble> benzrf: Ah okay, thank you. I assumed it was heh
stantona has joined #ruby
fenak has quit [Remote host closed the connection]
Jrz has joined #ruby
tier has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Doppp has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
sinkensabe has quit [Ping timeout: 245 seconds]
tcstar has joined #ruby
jayne has quit [Read error: Connection reset by peer]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
jilk23 has quit [Ping timeout: 240 seconds]
Jrz has joined #ruby
Tomasso has quit [Client Quit]
Jrz has quit [Max SendQ exceeded]
tier has quit [Remote host closed the connection]
Jrz has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
Jrz has quit [Max SendQ exceeded]
Lucky has joined #ruby
Jrz has joined #ruby
tier has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
poikon has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
vpretzel_ has joined #ruby
Ziarkaen has quit [Ping timeout: 252 seconds]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
sdelmore has quit [Quit: Leaving.]
Arkaniad|Laptop has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
codyf is now known as fresham|away
vpretzel|away has quit [Ping timeout: 255 seconds]
andikr has quit [Remote host closed the connection]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
robertodecurnex has joined #ruby
havenwood has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
i_s_ has quit []
wldcordeiro_work has joined #ruby
i_s has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
wldcordeiro_work has left #ruby [#ruby]
wldcordeiro_work has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
tier has quit [Ping timeout: 252 seconds]
sdelmore has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
<Mon_Ouie> Seems to have moved, I don't know what the new homepage of that project is. I'm not sure it's relevant anymore either.
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
psycho_one has joined #ruby
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Jrz has joined #ruby
Jrz has quit [Max SendQ exceeded]
Lucky__ has joined #ruby
Jrz has joined #ruby
iamcalledrob has joined #ruby
Jrz has quit [Max SendQ exceeded]
Lucky has quit [Ping timeout: 276 seconds]
mrnugget has quit [Ping timeout: 252 seconds]
Jrz has joined #ruby
Jrz has quit [Excess Flood]
<Mon_Ouie> Also only the owner can change it so it probably won't be updated for a while
<wldcordeiro_work> What is an Errno::EPROTO and what does it actually mean? The documentation just says "Protocol error" which isn't all that helpful.
bradhe has quit [Remote host closed the connection]
stantona has quit [Remote host closed the connection]
duggiefresh has joined #ruby
stantona has joined #ruby
Jrz has joined #ruby
goleldar has joined #ruby
<Mon_Ouie> What it exactly means depends on the function that has raised it
Takle has joined #ruby
<Mon_Ouie> (Errno::* exception are just a way for Ruby to translate errors from standard C functions)
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
carraroj has joined #ruby
yfeldblum has joined #ruby
duggiefr_ has joined #ruby
Tomasso has joined #ruby
<wldcordeiro_work> Mon_Ouie: I'm using Compass-rails and I'm trying to use the sprite helpers.
iasj has quit [Ping timeout: 276 seconds]
<wldcordeiro_work> The full error says,
<wldcordeiro_work> Protocol error @ rb_sysopen - /vagrant/projects/ReferralProgram/tmp/cache/assets/development/sass/212f086802297f38a295f926efae678e8fcd85f4/*.pngc
<apeiros> why do I still have that hat on?
phansch has quit [Ping timeout: 258 seconds]
aspires has quit []
Tomasso has quit [Client Quit]
Leif has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stantona has quit [Client Quit]
chrisseaton has quit [Ping timeout: 264 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
nvrch has quit [Quit: nvrch]
sambao21 has quit [Quit: Computer has gone to sleep.]
ninegrid has quit [Ping timeout: 252 seconds]
duggiefresh has quit [Ping timeout: 276 seconds]
kiri has quit [Quit: Leaving]
mikecmpbll has quit [Quit: i've nodded off.]
duggiefr_ has quit [Ping timeout: 276 seconds]
dANOKELO_ has quit [Remote host closed the connection]
sdelmore has quit [Ping timeout: 255 seconds]
andrewjanssen has joined #ruby
moneydouble has quit [Quit: Leaving.]
zaargy has joined #ruby
zorak has joined #ruby
mehlah has quit [Quit: Leaving...]
picca has quit [Quit: Lingo - http://lingoirc.com]
lethjakman has joined #ruby
adamnbow_ has joined #ruby
jobewan has joined #ruby
aspires has joined #ruby
picca has joined #ruby
mattmcclure has joined #ruby
sheperson has quit [Quit: sheperson]
Hanmac has joined #ruby
thesheff17 has quit [Ping timeout: 258 seconds]
SCommette has quit [Quit: SCommette]
sambao21 has joined #ruby
Xeago has quit [Ping timeout: 265 seconds]
combusean has joined #ruby
lethe has joined #ruby
zzzbra has quit [Remote host closed the connection]
adamnbow_ has quit [Ping timeout: 240 seconds]
iamcalledrob has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
sambao21 has quit [Client Quit]
combusean has quit [Ping timeout: 252 seconds]
lethe has quit [Ping timeout: 258 seconds]
iamcalledrob has joined #ruby
iamcalledrob has quit [Client Quit]
voodoofish340 has joined #ruby
pyon has quit [Read error: Connection reset by peer]
lukec has quit [Quit: lukec]
mercwithamouth has quit [Ping timeout: 255 seconds]
NukePuppy has joined #ruby
deric_skibotn has joined #ruby
echevemaster has joined #ruby
sambao21 has joined #ruby
<Freddan962> A old Ruby game I made with a friend of mine! https://www.youtube.com/watch?v=8brKKit2pUY :D
Ziarkaen has joined #ruby
moneydouble has joined #ruby
m8 has joined #ruby
axisys has quit [Quit: leaving]
tier has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
ephemerian has quit [Quit: Leaving.]
thesheff17 has joined #ruby
phantasm66 has quit [Quit: *poof*]
sdelmore has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
Hobogrammer has quit [Ping timeout: 245 seconds]
Ziarkaen has quit [Read error: Connection reset by peer]
axisys has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paulfm has quit []
binaryhat has quit [Quit: Leaving]
bradhe has joined #ruby
Xeago has joined #ruby
chipotle has quit [Quit: cya]
paulfm has joined #ruby
ninegrid has joined #ruby
Virtualize|away has quit [Quit: Leaving...]
ghr has quit [Ping timeout: 240 seconds]
moneydouble has quit [Quit: Leaving.]
duggiefresh has joined #ruby
subbyyy has joined #ruby
akonny has joined #ruby
RubyPanther has quit [Ping timeout: 258 seconds]
Takle has quit [Remote host closed the connection]
combusean has joined #ruby
Leif has joined #ruby
saarinen has joined #ruby
lukec has joined #ruby
jxf has quit [Ping timeout: 276 seconds]
mikecmpbll has joined #ruby
wallerdev has joined #ruby
treehug8_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
Leif is now known as IRLeif
codabrink has quit [Ping timeout: 258 seconds]
olivier_bK has quit [Ping timeout: 276 seconds]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
codabrink has joined #ruby
treehug88 has quit [Ping timeout: 276 seconds]
Loaft has quit [Ping timeout: 240 seconds]
klaut has quit [Remote host closed the connection]
obs has quit [Remote host closed the connection]
Azulinho has quit [Ping timeout: 252 seconds]
IceDragon has quit [Ping timeout: 245 seconds]
IceDragon has joined #ruby
combusean has quit [Ping timeout: 265 seconds]
Valesk has quit [Quit: Textual IRC Client: www.textualapp.com]
treehug88 has joined #ruby
brunops has joined #ruby
<Freddan962> Anyone here experienced with compiling Ruby executables for Windows?
soulcake has quit [Read error: Connection reset by peer]
andrewlio has joined #ruby
soulcake has joined #ruby
doev has quit [Ping timeout: 252 seconds]
mostlybadfly has joined #ruby
m8 has quit [Quit: Sto andando via]
toordog has quit [Ping timeout: 258 seconds]
Takle has joined #ruby
treehug8_ has quit [Ping timeout: 240 seconds]
<eam> Is there a way to set $/ local to a particular IO object?
Hanmac1 has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
maletor has joined #ruby
niklasb has joined #ruby
RubyPanther has joined #ruby
vpretzel_ is now known as vpretzel
Hanmac has quit [Ping timeout: 252 seconds]
poikon has quit [Remote host closed the connection]
Loaft has joined #ruby
tkuchiki has quit [Remote host closed the connection]
mg^ has joined #ruby
noop has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
Nahra` has joined #ruby
nobitanobi has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
<shevy> can you not assign it simply like any other global $ var?
fresham|away is now known as fresham|work
<nobitanobi> Hi guys, question about URI. I have a method which right now does URI.parse(url).open. However, sometimes I get a local file path, and that breaks the URI.parse(local_path).open - How can I make sure that I am about to parse a URL and not a local file?
baroquebobcat has joined #ruby
Kruppe has joined #ruby
<shevy> simply check if it is a local file
<shevy> File.exist? '/tmp/foo'
yfeldblum has quit [Ping timeout: 252 seconds]
Takle has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 255 seconds]
Xeago has quit [Read error: Connection reset by peer]
Hobogrammer has joined #ruby
<nobitanobi> shevy: I think I should have stated that the file might not exist, but that does not mean it's a URL
<shevy> ok then
<nobitanobi> so, I can have a 'path/to/notexistingfile'
<shevy> how do you find out that non existing files are not URLs?
<nobitanobi> that's my question ;_;
<shevy> ???
Takle has joined #ruby
<shevy> see
<havenwood> nobitanobi: if it is a valid file and url which should be chosen? :P
<shevy> that's a good URL given there
<shevy> uri = URI("http://foo.com/posts?id=30&limit=5#time=1305298413")
<eam> shevy: assign it simply howso?
Xeago has joined #ruby
<shevy> eam well $/ = nil :)
billy_ran_away has left #ruby ["Textual IRC Client: www.textualapp.com"]
<eam> shevy: yeah I mean, I think it'd be useful to change the record separator on a per IO object basis
<eam> setting $/ is ... not good
chrisseaton has joined #ruby
bluOxigen has joined #ruby
bradhe has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
<LiohAu> Guys, if the env does not contain a `NO_PUBLISH` key, $publish_results is true right ? - $publish_results = ENV['NO_PUBLISH'].nil?
phansch has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
robbyoconnor has quit [Ping timeout: 265 seconds]
<shevy> well
<shevy> if the variable was not set
<shevy> ENV['FOO'] will return nil.
<shevy> what nil.nil? is is this:
<shevy> >> nil.nil?
<eval-in__> shevy => true (https://eval.in/156769)
<nobitanobi> shevy: thanks ~
<shevy> so this will tell you "yes, this variable does not exist"
Valesk has joined #ruby
<LiohAu> Ok so I am not drunk :(
<shevy> hehe
kenneth has joined #ruby
<shevy> perhaps this is a better name
<shevy> $do_not_publish_results = ENV['NO_PUBLISH'].nil?
Jrz has quit [Quit: Computer has gone to sleep.]
<shevy> or perhaps it is the opposite way
<shevy> hahahaha
<LiohAu> yes :D
SJr has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
LekeFly has joined #ruby
<shevy> LiohAu, I often find it easier to work with positive/true values
<LiohAu> I wrote that line, and I am still not confident :D
<shevy> something like:
<shevy> SHALL_WE_PUBLISH = true
<shevy> if SHALL_WE_PUBLISH
<shevy> send_email_to_big_boss
prathamesh has quit [Ping timeout: 240 seconds]
<shevy> my brain, which is a bad brain, needs extra processing for negative assertions
<shevy> unless ! DONT_PUBLISH
<shevy> ok ...
<LiohAu> that may be what makes so difficult to read that line
<shevy> hehe
jobewan has quit [Ping timeout: 245 seconds]
sheperson has joined #ruby
wertin has quit [Read error: Connection reset by peer]
cashnguns has joined #ruby
<shevy> damn... I eat tofu...
<shevy> now my stomach rebels
Advocation has joined #ruby
Takle has quit [Remote host closed the connection]
sambao21 has quit [Read error: Connection reset by peer]
sambao21_ has joined #ruby
doodlehaus has quit [Ping timeout: 265 seconds]
<LiohAu> tofu… looking for troubles.. you get them
paulfm has quit [Read error: Connection reset by peer]
sheperson has quit [Ping timeout: 252 seconds]
paulfm has joined #ruby
sdwrage has joined #ruby
wertin has joined #ruby
axilla has joined #ruby
sheperson has joined #ruby
atom3 has joined #ruby
amargherio has joined #ruby
jprovazn has joined #ruby
atom3 has quit [Client Quit]
prathamesh has joined #ruby
m8 has joined #ruby
brunops has quit [Ping timeout: 258 seconds]
dfinly has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aspires has quit []
timonv has quit [Remote host closed the connection]
anaeem1_ has quit [Quit: Leaving...]
Takle has joined #ruby
mehlah has joined #ruby
hamakn_ has joined #ruby
hamakn has quit [Read error: No route to host]
Ginfuru_ has joined #ruby
blackmesa has joined #ruby
benzrf is now known as benzrf|offline
james_d_h has joined #ruby
paulfm has quit [Read error: Connection reset by peer]
paulfm has joined #ruby
<dwts> topic
<dwts> ooops
TDJACR has quit [Max SendQ exceeded]
mrnugget has joined #ruby
aspires has joined #ruby
Eyess has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
TDJACR has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
bricker_ has joined #ruby
wertin has quit [Remote host closed the connection]
havenwood has joined #ruby
jilk23 has joined #ruby
bricker_ is now known as bricker`LA
bricker`LA is now known as bricker`work
Eyes has joined #ruby
Takle has quit [Remote host closed the connection]
lkba has joined #ruby
Advocation has quit [Quit: Advocation]
einarj has quit [Remote host closed the connection]
sinkensabe has joined #ruby
fijimunkii has joined #ruby
Avahey_ has joined #ruby
sambao21_ has quit [Quit: Computer has gone to sleep.]
<Hanmac1> apeiros: did you see this? https://github.com/django/django/pull/2692 "replaced occurrences of master/slave terminology with leader/follower" oO
Eyes has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
m8 has quit [Ping timeout: 252 seconds]
<wallerdev> lol
thesheff17 has quit [Quit: Leaving]
User458764 has joined #ruby
thesheff17 has joined #ruby
bradhe has joined #ruby
testcore has joined #ruby
havenwood has quit [Remote host closed the connection]
angelo_1 has joined #ruby
Eyes has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
Eyes is now known as Eyess
angelo_1 has quit [Read error: Connection reset by peer]
kpshek has quit []
codabrink has quit [Ping timeout: 258 seconds]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
bradhe has quit [Ping timeout: 258 seconds]
x1337807x has joined #ruby
sambao21 has joined #ruby
ninegrid has quit [Ping timeout: 252 seconds]
qhartman has quit [Ping timeout: 258 seconds]
codabrink has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
ninegrid has joined #ruby
qhartman has joined #ruby
danshult_ has joined #ruby
Advocation has joined #ruby
sambao21 has quit [Client Quit]
Hanmac1 has quit [Ping timeout: 276 seconds]
Advocation has quit [Client Quit]
Spami has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
nonnoturbo has joined #ruby
danshultz has quit [Ping timeout: 252 seconds]
alvaro_o has joined #ruby
danshult_ has quit [Read error: Connection reset by peer]
m8 has joined #ruby
Eiam has joined #ruby
dangerousdave has quit []
jheg has joined #ruby
bradhe has joined #ruby
vpretzel is now known as vpretzel|sysadmi
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jayne has joined #ruby
JohnBat26 has joined #ruby
Eyess has quit [Quit: Leaving]
paulfm has quit []
Takle has joined #ruby
benzrf is now known as benzrf|offline
jheg has quit [Ping timeout: 255 seconds]
Uanio-235 has quit [Quit: Page closed]
sheperson has quit [Ping timeout: 258 seconds]
OffTheRails has joined #ruby
jxf has joined #ruby
Jetchisel has joined #ruby
simono has joined #ruby
echevemaster has quit [Quit: Leaving]
mikewintermute has joined #ruby
freezey has joined #ruby
sheperson has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
<xybre> Wow.
GriffinHeart has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
mikewintermute has quit [Remote host closed the connection]
nanoyak has joined #ruby
mikewintermute has joined #ruby
lxsameer has joined #ruby
kpshek has joined #ruby
jhass|off is now known as jhass
aspires has quit []
robclancy has quit [Ping timeout: 252 seconds]
gondalier has joined #ruby
aspires has joined #ruby
chrisseaton has quit []
mikewintermute has left #ruby [#ruby]
tiguser has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
ninegrid has quit [Ping timeout: 264 seconds]
motto has joined #ruby
ninegrid has joined #ruby
olivier_bK has joined #ruby
benzrf|offline is now known as benzrf
ghr has joined #ruby
m8 has quit [Ping timeout: 240 seconds]
Es0teric has joined #ruby
Eyes has joined #ruby
james_d_h has quit [Quit: leaving]
qhartman has quit [Ping timeout: 252 seconds]
Es0teric has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
chrisseaton has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
paulfm has joined #ruby
cashnguns has quit [Ping timeout: 245 seconds]
nowthatsamatt has joined #ruby
olivier_bK has quit [Ping timeout: 265 seconds]
brunops has joined #ruby
Eyes has quit [Remote host closed the connection]
Eyes has joined #ruby
Eyes has quit [Read error: Connection reset by peer]
Eyes has joined #ruby
gondalier has quit [Quit: gondalier]
doodlehaus has joined #ruby
ephemerian has joined #ruby
benlieb has joined #ruby
iamayam has quit [Ping timeout: 276 seconds]
Loaft has quit [Read error: Connection reset by peer]
tjr9898_ has joined #ruby
brunops has quit [Ping timeout: 255 seconds]
s3ri0us is now known as s3ri0us|away
s3ri0us|away is now known as s3ri0us
alem0lars has joined #ruby
chrisseaton has quit [Read error: Connection reset by peer]
volk_ has joined #ruby
<volk_> hey guys — those of you familiar with sidekiq — if you wanted to pass a File object to be worked on in a background job, how would you go about doing that? since sidekiq runs json parse, i can’t really just pass file objects into the ‘perform_async’ parameter ..
chrisseaton has joined #ruby
Eyes is now known as Eyess
jheg has joined #ruby
qhartman has joined #ruby
iamayam has joined #ruby
<xybre> volk_: Can't pass the file's full path instead?
<wallerdev> pass it as binary data encoded as a string in json
<wallerdev> lol
<wallerdev> depends whats in the file
<xybre> Or that :p
jherbst has joined #ruby
<volk_> xybre: i can’t since generally its advisable ot run sidekiq on the same server for scaling so the path wouldnt even exist on that machine
<wallerdev> if its big just pass the path
<apeiros> path is probably the better idea
<volk_> sorry
<volk_> not* advisable
<xybre> volk_: If the path doesn't exist then the file handle wouldn't either
<apeiros> volk_: there's that thing called NFS
brandonjmckay has joined #ruby
doev has joined #ruby
<volk_> never used NFS
gondalier has joined #ruby
<volk_> hm
nanoyak has quit [Ping timeout: 252 seconds]
<apeiros> passing the whole file is a rather bad idea
<xybre> You need an NFS or a database to store the file contents.
<volk_> yeah thats what i figured..im using heroku so there’s not much configurability
<apeiros> and sidekiqs website explains why
niklasb has quit [Quit: WeeChat 0.4.3]
<volk_> and im using mongo
<volk_> ive tried using grid_fs
LadyRainicorn has quit [Ping timeout: 252 seconds]
<volk_> no damn luck
<volk_> to temporaily store the file
<volk_> temporarily
EatMulti has joined #ruby
aspires has quit []
<volk_> wallerdev: is there a smart way to serialize a file?
<volk_> marshal can’t handle files
<wallerdev> is it a text file
<volk_> and Yaml doesnt work with files eitehr
<volk_> its a zip file
<apeiros> serializing a file amounts to reading it
gondalier has quit [Client Quit]
<wallerdev> yeah just File.read will give you a string
ffranz1 has joined #ruby
<volk_> (actually since this is rails, its a TempFile)
<volk_> its being passed into the controller via POST and i get a Tempfile object
<apeiros> and we already established that a handle is pointless, so serializing one (if it was even possible) would be just the same pointless.
ffranz has quit [Ping timeout: 255 seconds]
<wallerdev> just data = my_cool_tempfile.read
<wallerdev> and now you have a string with the file data
<volk_> im gonna give that a shot, if that works im going to love you with all of my heart
<apeiros> …
<apeiros> if you read it, you pass the whole file as param to the job
<apeiros> well… why do I even care.
<xybre> lol
<volk_> well i was thinking
<wallerdev> lol
<volk_> of storing it as BSON
<volk_> in mongo
<volk_> on a model
<xybre> It's a freakin' zip file
<wallerdev> what you could do is extract the zip file onto a remote disk that is your server
andrewjanssen has quit [Quit: Leaving...]
alem0lars has quit [Ping timeout: 240 seconds]
<xybre> Use Amazon EC2, that'll simply things..
<xybre> simplify
* xybre wonders how big the zip file is
<volk_> xybre, wallerdev , so the issue is.. im getting a zip file into my API with a bunch of images that i have to upload to s3
* xybre imagines Base64 encoded 2 gig file pasased as a param
<volk_> the zip file is probably like 50mb at the moment
<xybre> bahaha
<wallerdev> lol
<wallerdev> this is not the way to do things then
<volk_> yeah i know, its just a hack at the moment
enebo has joined #ruby
<volk_> we can do a lot of things on the frontend
<volk_> to not..do that
<xybre> Okay dude, jsut leave it on S3, pass the URI to your sidekiq and then extract it.
jilk23 has quit [Ping timeout: 252 seconds]
<volk_> but i just want to get an alpha out
sputnik13 has joined #ruby
<xybre> Save the results back in another S3 bucket
<xybre> And you're done
<volk_> xybre: wat do you mean ‘leave it on s3’ ?
<volk_> nothings uploaded to s3 initially
<apeiros> the longer I'm on irc, the more I understand how certain things come to be
<volk_> yes you guys are all geniuses
doev has quit [Ping timeout: 255 seconds]
<volk_> that were all born knowing exactly
<volk_> how to do things properly
LadyRainicorn has joined #ruby
<volk_> without making mistakes/learning
<apeiros> volk_: look, you at least ask. I imagine for everyone who asks, there's a dozen who just hack something together
<volk_> yes because im trying to learn as i go along
Xeago has joined #ruby
<volk_> i dont see the point of the backhanded “oh man now i see how all the crappy software ever came to be"
<apeiros> which is great (no sarcasm)
gondalier has joined #ruby
<xybre> It's true, I was born knowing everything.
<xybre> It's a gift and a curse.
Takle has quit [Remote host closed the connection]
<xybre> Mostly a gift though.
<apeiros> ok, I'm sorry volk_. my comment was off.
<xybre> volk_: I'm saying you *should* upload the plain zip to S3.
<DouweM> don't upload the file to your server at all, upload it to s3
<DouweM> then schedule a sidekiq job to download it from S3 and do stuff to it
<volk_> oh i see
<xybre> DouweM++
sdwrage has joined #ruby
lxsameer has quit [Ping timeout: 276 seconds]
<DouweM> volk_: you can build a form that will upload directly to your S3 bucket if you send along the right signature etc
<DouweM> volk_: if you're using Rails there's even a few gems for it
<volk_> yeah, that sounds good, its an iphone app though
<volk_> which im not in charge of
andrewjanssen has joined #ruby
<DouweM> volk_: you don't have influence over where the image is uploaded to?
<xybre> Part of my amusement is that we were told only parts of the problem and you keep revealing new kinks all the time, so yeah, I'm gonna laugh.
<DouweM> you know uploading to your heroku dyno will make it busy right? no other requests can come in
<volk_> haha yeah sorry..
tier has quit [Remote host closed the connection]
<xybre> Yeah, uploading to heroku or really any server will hang it up until it finishes uploading it to S3 also. Heroku will jsut kill long running processes.
RubyPanther has quit [Ping timeout: 245 seconds]
<DouweM> yup. upload to s3 directly from the iphone app
<volk_> well my initial thought was to send this zip file to the API and automatically background it, so that the server wouldnt be blocking
lessless has quit [Read error: Connection reset by peer]
Xeago has quit [Ping timeout: 240 seconds]
<volk_> the s3 uploading would just be happening in the background
<DouweM> it'll be blocking during the connection where the client sends the file
<volk_> on another worker
<DouweM> that's not how uploading works
Xeago has joined #ruby
<volk_> i see
<DouweM> it's literally a large HTTP request including the file's body that you have to reel in and process on your server
<DouweM> what you should do is have the user upload directly to S3 so your server won't hang
<DouweM> or if this is a PoC as I think you said, don't bother with all of this stuff at all and process directly in the web process without a worker
paulfm has quit []
<DouweM> it's certainly easiest if you can't modify the iPhone app to upload to S3 directly
<volk_> yeah
<volk_> its a PoC , but it should probably scale at least a tiny bit
jmurray has quit [Ping timeout: 240 seconds]
<DouweM> volk_: in that case talk to your app devs
yacks has quit [Quit: Leaving]
<volk_> based on all of the feedback i’ve gotten
<volk_> from irc and SO
<volk_> seems that uploading to s3 from the frontend is the wway to go
phantasm66 has joined #ruby
<DouweM> yup
<DouweM> and if your app devs don't see that feel free to apply force to their faces
ffranz1 is now known as ffranz
jmurray has joined #ruby
<volk_> bahah
<volk_> thanks
<volk_> i will screenshot this and make sure to show them why i did
aspires has joined #ruby
sambao21 has joined #ruby
ikaros has quit [Quit: Ex-Chat]
<volk_> thanks
<volk_> again.
<DouweM> np, good luck
<volk_> to all who participated
<volk_> :)
andrewjanssen has quit [Quit: Leaving...]
robclancy has joined #ruby
prathame_ has joined #ruby
prathamesh has quit [Read error: Connection reset by peer]
volk_ has quit [Quit: volk_]
Asher has joined #ruby
volk_ has joined #ruby
brunops has joined #ruby
ra4king1 has joined #ruby
lethjakman has quit [Ping timeout: 265 seconds]
<shevy> oh man this is sad
Takle has joined #ruby
<shevy> chrome is significantly faster for firefox, especially in regards to responsiveness and javascript-based websites
<shevy> faster *than
ra4king has quit [Ping timeout: 264 seconds]
jheg has left #ruby [#ruby]
<mary5030> in a string of this form "[{\"title\":\"device\",\"description\":\"could not be found\"}]" , how can i access the value of description
jb has joined #ruby
<mary5030> any help is appreciated
<hoelzro> looks like JSON
<wallerdev> JSON.parse
<jb> I have a var that contains "abc-123-xyz" and I'm trying to extract "abc" (or anything before the first "-").. could someone give me a hand, please?
<shevy> jb use .split
jimbow has joined #ruby
<shevy> >> "abc-123-xyz".split('-')[0]
<eval-in__> shevy => "abc" (https://eval.in/156772)
<mary5030> wallerdev: so call .parse on that json
<wallerdev> >> "abc-123-xyz"[/(.*?)-/, 1]
<eval-in__> wallerdev => "abc" (https://eval.in/156773)
RubyPanther has joined #ruby
<shevy> peter paul and mary!
Shidash has joined #ruby
robbyoconnor has joined #ruby
<wallerdev> >> JSON.parse( "[{\"title\":\"device\",\"description\":\"could not be found\"}]")[0]["description"]
<eval-in__> wallerdev => uninitialized constant JSON (NameError) ... (https://eval.in/156774)
<wallerdev> eval-in__: :(
robbyoconnor has quit [Client Quit]
<mary5030> wallerdev: thanks much
<shevy> that is too sad wallerdev
<shevy> >> require 'json'
<eval-in__> shevy => (https://eval.in/156775)
<shevy> >> require 'you stupid bot'
<eval-in__> shevy => (https://eval.in/156776)
benzrf is now known as benzrf|offline
<shevy> >> require 0 / 0
<eval-in__> shevy => divided by 0 (ZeroDivisionError) ... (https://eval.in/156777)
<wallerdev> >> require 'json';JSON.parse( "[{\"title\":\"device\",\"description\":\"could not be found\"}]")[0]["description"]
<eval-in__> wallerdev => (https://eval.in/156778)
<wallerdev> lol
sdwrage has quit [Quit: This computer has gone to sleep]
<shevy> man
<mary5030> wallerdev: thank you
<wallerdev> youre welcome
tier has joined #ruby
<jb> shevy: thanks!
vpretzel_ has joined #ruby
prathame_ has quit [Remote host closed the connection]
sheperson has quit [Ping timeout: 240 seconds]
prathamesh has joined #ruby
prathamesh has quit [Remote host closed the connection]
prathamesh has joined #ruby
<shevy> \o/
<shevy> long live ruby
<shevy> power to the matz
<vpretzel_> lol what shevy?
vpretzel_ is now known as vpretzel
<shevy> vpretzel power to matz!
vpretzel|sysadmi has quit [Ping timeout: 264 seconds]
<shevy> it just gets out of me whenever I cheer \o/
andrewjanssen has joined #ruby
chrisseaton has quit []
centipedefarmer has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
jb has left #ruby [#ruby]
treehug8_ has joined #ruby
<jimbow> anyone have any experience with zip.cpgz files/
treehug88 has quit [Ping timeout: 240 seconds]
<DouweM> jimbow: that's an indication the zip file was corrupted
<jimbow> oh, thanks
poguez_ has quit [Quit: Connection closed for inactivity]
andrewjanssen has quit [Quit: Leaving...]
<jimbow> how did you learn that DouweM?
<DouweM> jimbow: google, and experience with the zip -> zip.cpgz -> zip -> ... loop I occasionally encounter on my Mac
<jimbow> yeah it's the first time i've encountered this loop
<jimbow> but google told me to install a program on my mac
ghr has joined #ruby
BlakeRG has joined #ruby
<DouweM> jimbow: how is this related to ruby anyway?
<BlakeRG> can someone tell me what the correct technical term is for the '::' accessor? i just call it the static accessor
wallerdev has quit [Quit: wallerdev]
<jimbow> well, i'm trying to get the exercise code from the ruby videos i'm watching
<segfalt> BlakeRG: Scope Resolution Operator, at least it's called that in C++.
<BlakeRG> oh, nice one segfalt :)
b1205 has joined #ruby
<DouweM> yeah, it's not an accessor, it's a namespace resolution operator
<DouweM> jimbow: sounds like you need to download it again
<segfalt> Namespace resolution operator, also good.
lethjakman has joined #ruby
aspires has quit []
axilla has quit [Ping timeout: 240 seconds]
timonv has joined #ruby
moneydouble has joined #ruby
axilla has joined #ruby
kartouch has quit [Quit: ZNC - http://znc.in]
centipedefarmer has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 255 seconds]
<segfalt> BlakeRG: PHP refers to it as a T_PAAMAYIM_NEKUDOTAYIM, which is fun.
RubyPanther has quit [Ping timeout: 240 seconds]
<BlakeRG> segfalt: yeah that is why i was wondering what other languages refer to it as
<shevy> php must die
danielpclark has joined #ruby
<segfalt> it won't, shevy.
Eyess has quit [Remote host closed the connection]
<segfalt> it's incredibly popular.
<shevy> and flies eat shit
<shevy> shit must be popular
timonv has quit [Ping timeout: 240 seconds]
<segfalt> shit is very popular.
<segfalt> pretty sure we're not going to stop shitting.
<eam> there's a really good reason why php is popular
<eam> it has to do with how unix permissions work
Eyes has joined #ruby
robbyoconnor has joined #ruby
<segfalt> you mean because it's easy for webhosts to give you a docroot and you to drop php files into it?
fijimunkii has quit [Ping timeout: 255 seconds]
robbyoconnor has quit [Remote host closed the connection]
dymv has joined #ruby
OffTheRails has quit [Ping timeout: 240 seconds]
workmad3 has joined #ruby
fijimunkii has joined #ruby
Eyes has quit [Remote host closed the connection]
<eam> yes, whereas (at the time popularity was exploding) all the proper frameworks made by people who knew what they were doing required an executable bit set
IRLeif has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Eyes has joined #ruby
Leif has joined #ruby
<segfalt> really it was because php shipped with mod_php
<eam> I worked webhost tech support a bit in school in the late 90s, php just being a doctype with an extension with uniform behavior was huge
<segfalt> and everything else was cgi-bin
<eam> yeah well, that's how it did it
<segfalt> yeah
<eam> but even on mod_perl setups -- mod_perl typically did things securely
Leif is now known as IRLeif
<eam> just watch a windows user try to +x via a winFTP client
<segfalt> nowadays mod_rails is a thign and getting rails hosting isn't impossible, plus VPS everywhere.
<eam> "but I can download this php code and it just works if php is supported"
ta has joined #ruby
zorak has quit [Ping timeout: 276 seconds]
<eam> yeah and now php is declining
<eam> but it rode the wage
<eam> wave
<eam> cheap and easy
<segfalt> it's declining?
<eam> proportionally?
p8952 has quit [Ping timeout: 252 seconds]
<segfalt> i dont know one way or the other, i thought it was still holding strong
<segfalt> wordpress and drupal are still huge things.
<eam> I'm sure it'll be huge for another decade at least
Eyes has quit [Remote host closed the connection]
<eam> but a decade ago it was exploding -- now it's eroding
Eyes has joined #ruby
* segfalt started on php
<segfalt> i still remember webhosts with predefined system-wide cgi-bins
psycho_one has quit [Remote host closed the connection]
<segfalt> that ran as root
<segfalt> :)
<segfalt> our host has a guestbook AND a hit counter!
andrewjanssen has joined #ruby
Eyes has quit [Remote host closed the connection]
mijicd has joined #ruby
Eyes has joined #ruby
brunops has quit [Ping timeout: 240 seconds]
phutchins has quit [Ping timeout: 252 seconds]
diegoviola has quit [Read error: Connection reset by peer]
<eam> haven't seen system-wide as root, but I remember when the static cgi-bins all ran as apache
<eam> which was almost as bad considering where database passwords needed to be
charliesome has joined #ruby
cashnguns has joined #ruby
ascarter has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tjr9898_ has quit [Ping timeout: 264 seconds]
i42n has joined #ruby
<Freddan962> shevy: DouweM: Check this! https://www.youtube.com/watch?v=8brKKit2pUY :D Tell me what you think!
<i42n> I have this hash: https://gist.github.com/i42n/dbdff18805d5eb86ce5b How can I iterate over all channels?
danshultz has joined #ruby
<jhass> do |name, channel_data|
<jhass> or .each_value |channel_data| if you're not interested in the key
kl0_ has quit [Ping timeout: 252 seconds]
<i42n> jhass: nice, thanks
teddyp1cker has joined #ruby
sailias has quit [Ping timeout: 255 seconds]
zorak has joined #ruby
benzrf|offline is now known as benzrf
jimbow has quit [Quit: jimbow]
sdwrage has joined #ruby
<segfalt> Freddan962: nice!
decoponio has quit [Quit: Leaving...]
lele has joined #ruby
<Freddan962> segfalt: Thanks ! :D
aspires has joined #ruby
<DouweM> Freddan962: cool :)
nemesit|znc has quit [Ping timeout: 255 seconds]
<Freddan962> DouweM: Thank you ^^
nanoyak has joined #ruby
tjr9898_ has joined #ruby
brunops has joined #ruby
vpretzel has quit [Remote host closed the connection]
zorak has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
vpretzel has joined #ruby
<thoraxe> is there a ruby library / gem that can be used to send DNS updates to bind? my google-fu is not so strong today
sambao21 has quit [Quit: Computer has gone to sleep.]
bluOxigen has quit [Ping timeout: 245 seconds]
zorak has joined #ruby
p8952 has joined #ruby
nemesit|znc has joined #ruby
Eyes is now known as Eyess
b1205 has quit [Ping timeout: 255 seconds]
OffTheRails has joined #ruby
i42n has left #ruby [#ruby]
gondalier has quit [Quit: gondalier]
kl0_ has joined #ruby
vpretzel_ has joined #ruby
User458764 is now known as User458764_NotHe
mark_locklear has joined #ruby
Shidash has quit [Read error: Connection reset by peer]
nemesit|znc has quit [Ping timeout: 245 seconds]
Shidash has joined #ruby
b1205 has joined #ruby
Es0teric has joined #ruby
ylluminarious|aw has quit [Quit: Linkinus - http://linkinus.com]
prathamesh has quit [Remote host closed the connection]
vpretzel has quit [Ping timeout: 255 seconds]
User458764 has joined #ruby
prathamesh has joined #ruby
wallerdev has joined #ruby
jherbst has quit [Ping timeout: 255 seconds]
nemesit|znc has joined #ruby
benlieb has quit [Quit: benlieb]
User458764_NotHe has quit [Ping timeout: 265 seconds]
jamto11 has joined #ruby
iaj has quit [Ping timeout: 252 seconds]
jherbst has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
jmurray_ has joined #ruby
freezey has quit [Ping timeout: 255 seconds]
jmurray has quit [Ping timeout: 264 seconds]
jmurray_ is now known as jmurray
iaj has joined #ruby
freezey has joined #ruby
vpretzel_ is now known as vpretzel
sambao21 has joined #ruby
zorak has quit [Ping timeout: 255 seconds]
prathamesh has quit [Ping timeout: 258 seconds]
tier has quit [Remote host closed the connection]
Bosox20051 has joined #ruby
ra4king has joined #ruby
jilk23 has joined #ruby
ghr has joined #ruby
tier has joined #ruby
ra4king1 has quit [Ping timeout: 264 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
IRLeif has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teddyp1cker has quit [Remote host closed the connection]
Shidash1 has joined #ruby
g0bl1n has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby
Shidash has quit [Ping timeout: 276 seconds]
b1205 has quit [Ping timeout: 240 seconds]
sailias has joined #ruby
sailias has quit [Client Quit]
User458764 has quit [Ping timeout: 255 seconds]
davedev24_ has quit [Ping timeout: 258 seconds]
lethe has joined #ruby
mr_snowf1ake has joined #ruby
freezey has quit [Read error: Connection reset by peer]
freezey has joined #ruby
mrnugget has quit [Quit: mrnugget]
timonv has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
moneydouble has quit [Quit: Leaving.]
lethe has quit [Ping timeout: 245 seconds]
tjr9898_ has joined #ruby
ylluminate has joined #ruby
hmmm has joined #ruby
<hmmm> Hai.
<Freddan962> hmmm, hai!
timonv has quit [Remote host closed the connection]
<shevy> damn
<shevy> what are .sas files?
dymv has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Freddan962> shevy: http://puu.sh/93Qfe.png - Why does this call the parent's fire method even if the if statement calculates false?
tjr9898_ has quit [Remote host closed the connection]
<shevy> this is so awful that you use .png files
<DouweM> Freddan962: it doesn't. if you're seeing that behavior, something else is going on
<wallerdev> please use http://instacod.es
<shevy> I also think such code is awful
<DouweM> and agree with shevy. gist that shit
<DouweM> also agree with shevy again
<shevy> Freddan962 make your manipulations before you must really check via if
<shevy> if @foo * 3 - 6 * 43 >= i
<shevy> no thanks
<Freddan962> Why is that code awful?
<shevy> it is your code
<shevy> you wrote it
<shevy> it does not work as you think it works
<shevy> it confuses you
davedev24_ has joined #ruby
GriffinHeart has quit [Ping timeout: 255 seconds]
dfinly has quit [Quit: Computer Sleeping, me sleeping]
<DouweM> I'd use `return unless @ammo > 0` at the beginning of the method, alternatively `return if @ammo == 0`
<shevy> now see, that is a lot easier to read Freddan962 ^^^
<Freddan962> Yeah looks much better :D
dblessing_ is now known as dblessing
<Freddan962> And now it works as intended - thank you guys! :)
<shevy> yeah DouweM writes sexy code
<DouweM> lol
<DouweM> that's the first time I've gotten that particular compliment
mr_snowf1ake has quit [Ping timeout: 265 seconds]
<shevy> today after I went outside of the shitty subway, it was raining like idiots
Leif has joined #ruby
connor_goodwolf has quit [Ping timeout: 252 seconds]
<shevy> I could not take cover because I had an exam so I almost went into an exam completely covered in shitty rain aka dirt stinking water shit anod I a few hours after that I am tired to no ends :(
* DouweM points and laughs
freezey has quit [Remote host closed the connection]
<shevy> where is the sympathy :(
<ada> >raining like idiots
testcore has quit [Ping timeout: 272 seconds]
moarrr_bitcoin has quit [Quit: DarkCoin :-]
<DouweM> how'd the exam go?
nonnoturbo has quit [Remote host closed the connection]
freezey has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
spider-mario has quit [Remote host closed the connection]
combusean has joined #ruby
enebo has quit [Quit: enebo]
<shevy> it was actually trivial, just multiple choice with varying amounts of correct answers
<shevy> I thought I had to write detailed answers
<DouweM> heh. here's hoping my exam tomorrow will be similar
<shevy> \o/
tjr9898_ has joined #ruby
<shevy> what is it about?
<DouweM> algorithms!
<DouweM> reading about amortized analysis now
mjsmith2 has joined #ruby
<shevy> ewww
kyb3r_ has joined #ruby
<shevy> I also prepare for another exam... biostatistics
<shevy> that dude wants me to understand SAS
<shevy> data test;
<shevy> retain seed1 97381;
<shevy> I have no idea what that is
testcore has joined #ruby
<shevy> even the programming language R looks more readable than that
<DouweM> So I built this Chrome extension that automatically inserts a probabilistically genereated title into Hacker News based on that post from a couple of monts ago and it's constantly tricking me. So that's a success
<DouweM> shevy: lol
<shevy> you build chrome extensions?
isbadawi has joined #ruby
<DouweM> it's easy enough
Fire-Dragon-DoL has quit [Ping timeout: 252 seconds]
enebo has joined #ruby
<DouweM> This is the one I'm talking about but apparently my screenshots disappeared: https://github.com/DouweM/AlgoNewss
LekeFly has joined #ruby
<crome> hey DouweM
<DouweM> yo crome
akonny has quit [Quit: akonny]
Deele has quit [Ping timeout: 255 seconds]
TripTastic has joined #ruby
mr_snowf1ake has joined #ruby
Fire-Dragon-DoL has joined #ruby
nemesit|znc has quit [Ping timeout: 240 seconds]
noop has quit [Ping timeout: 245 seconds]
Azulinho has joined #ruby
Ankhers has quit [Remote host closed the connection]
noop has joined #ruby
RyanV has joined #ruby
robclancy is now known as Robbo`
jprovazn has quit [Ping timeout: 276 seconds]
tvw has joined #ruby
nemesit|znc has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
endash has quit [Quit: endash]
tier has quit []
connor_goodwolf has joined #ruby
einarj has joined #ruby
robertodecurnex has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 245 seconds]
Bira has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 245 seconds]
picca has left #ruby [#ruby]
phinfonet has quit [Ping timeout: 255 seconds]
fresham|work has quit [Ping timeout: 245 seconds]
phinfonet has joined #ruby
aspires has quit []
dfinly has joined #ruby
iasj has joined #ruby
benlieb has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
BlakeRG has left #ruby [#ruby]
Bira has joined #ruby
dfinly has quit [Client Quit]
Azulinho has quit [Read error: Connection timed out]
Azulinho has joined #ruby
aspires has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
garndt has quit [Quit: Connection closed for inactivity]
Es0teric has quit [Quit: Computer has gone to sleep.]
mr_snowf1ake has quit [Ping timeout: 258 seconds]
LadyRainicorn has quit [Ping timeout: 255 seconds]
davedev24_ has joined #ruby
codeurge has joined #ruby
codeurge has quit [Client Quit]
x1337807x has joined #ruby
sdwrage has joined #ruby
omosoj has joined #ruby
mrnugget has joined #ruby
brunops has quit [Ping timeout: 240 seconds]
andrewjanssen has quit [Quit: Leaving...]
diegoviola has joined #ruby
jerrett has joined #ruby
Soda has joined #ruby
Boohbah_ has quit [Ping timeout: 272 seconds]
<ericwood> I wrote a cool lib for doing Roomba stuff in Ruby
<ericwood> but there's already a gem named "roomba"
<ericwood> idk what to name it now :(
davedev24_ has quit [Ping timeout: 245 seconds]
Boohbah has joined #ruby
<shevy> rambo?
mikesplain has quit [Ping timeout: 240 seconds]
ixti has quit [Ping timeout: 252 seconds]
jpic has quit [Ping timeout: 245 seconds]
sinkensabe has joined #ruby
<DouweM> +1
cashnguns has quit [Ping timeout: 252 seconds]
jpic has joined #ruby
Morkel has quit [Quit: Morkel]
davedev24_ has joined #ruby
cashnguns has joined #ruby
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
testcore has quit [Ping timeout: 272 seconds]
Es0teric has joined #ruby
polyidus has joined #ruby
<shevy> damn it
<shevy> "rambo is an alternative web framework for ruby"
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DouweM> and ramboo already exists as well
<xybre> What about Rumba?
mrnugget has quit [Ping timeout: 240 seconds]
<xybre> Like the dance
jxf has joined #ruby
<xybre> @ shevy ericwood
<shevy> lol
<shevy> poor ericwood
<shevy> wait
<shevy> I just got it
<shevy> Rambo-on-Rumba
jheg has joined #ruby
<jheg> o/
<DouweM> lol
<jheg> is there a way in the command line to write text to a file
<jheg> ?
<ericwood> jheg: echo "foooooo" > filename
<ericwood> or >> filename to append it to the file
<jheg> thanks ericwood
<ericwood> xybre: it was originally named rumba
<jheg> ah OK so one. if the file is empty?
<DouweM> jheg: if you google that exact question "is there a way in the command line to write text to a file" you'll get plenty of results
<jheg> two. if adding to
<jheg> yeah sure thanks
<DouweM> jheg: just saying, this is a bit of a pointless question for this channel
<jheg> ok
Robbo` has quit [Read error: Connection reset by peer]
<shevy> jheg use ruby
<ericwood> I guess I'll rename the library to rumba
<shevy> unless File.size('porn.txt') > 0
Robbo` has joined #ruby
<shevy> and File.open in append mode
<ericwood> ascii porn
Beoran__ has quit [Read error: Connection reset by peer]
jilk23 has quit [Ping timeout: 252 seconds]
alexju has quit [Remote host closed the connection]
Azure has quit [Read error: Connection timed out]
workmad3_ has joined #ruby
<xybre> Hmm I didn't see rumba mentioned in the scrollback
Azure has joined #ruby
<ericwood> xybre: oh no I meant like 3 years ago that's what I had called it
<ericwood> haha
<ericwood> nobody had mentioned it yet
ldnunes has quit [Quit: Leaving]
NukePuppy has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
<shevy> sambo
<shevy> no
<shevy> samba
<shevy> I think one is a dance, the other one is a combat sport
jackneill has quit [Ping timeout: 252 seconds]
amargherio has quit [Remote host closed the connection]
JohnBat26 has quit [Ping timeout: 264 seconds]
<shevy> lol
<shevy> class HomeController < Rambo::Controller
Bira has quit [Remote host closed the connection]
<eka> hi, how can I read a file with utf-8 characters in it? when I do open(foo).read it explodes
testcore has joined #ruby
<ericwood> eka: what version of ruby?
luckyruby has joined #ruby
<eka> ericwood: 2.0
terrell_t has joined #ruby
frosgy has joined #ruby
<shevy> eka I think you can pass the encoding as option
sinkensabe has quit [Remote host closed the connection]
<shevy> file_content = File.open("test.txt", "r:UTF-8", &:read)
<eka> shevy: like open(foo, "r:utf-8") ?
Giorgio has joined #ruby
<shevy> no idea about the last arg there
<eka> right
<shevy> but yeah
<eka> thanks
workmad3_ is now known as workmad3
phansch has quit [Quit: WeeChat 0.4.3]
igugu has quit [Remote host closed the connection]
<apeiros> or just default everything to utf-8 and use File.read(path)
terrellt has quit [Ping timeout: 240 seconds]
frogssgy has quit [Ping timeout: 252 seconds]
<apeiros> File.read(path, encoding: "utf-8") is an option too
<ericwood> just published my first ruby gem: https://rubygems.org/gems/rumba
<Giorgio> i have { A: 90, B: 80, C:60 } and one value i want to check against this hash if value is between 90 or 80, and return key what is best way
<ericwood> thanks everyone for the name suggestions!
Xeago has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
<apeiros> congrats, ericwood
sambao21 has joined #ruby
<apeiros> Giorgio: if you look up the key by its value you're using the wrong datastructure.
<apeiros> Giorgio: you can use Hash#invert
sambao21 has quit [Client Quit]
<Giorgio> okey this makes value to key and key to value
<Giorgio> but what should make get keys and make them ranges ?
claymore has quit [Quit: Leaving]
<DouweM> ericwood: nice job!
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> Giorgio .select
<shevy> >> (60..90).include? 66
<eval-in__> shevy => true (https://eval.in/156779)
sinkensabe has joined #ruby
<shevy> in the .select {} block you need to put in your matching criteria
<apeiros> Giorgio: I don't get by what logic you want to get the key
<Giorgio> this is scores for grading
noop has quit [Ping timeout: 240 seconds]
<Giorgio> for A need 60
<apeiros> if the value is between 90 and 80 as you say, which key is returned?
<apeiros> A or B?
<apeiros> and why?
<Giorgio> 90*
<Giorgio> B
Atrumx has quit [Quit: exit]
tjr9898_ has quit [Remote host closed the connection]
ixti has joined #ruby
<Giorgio> 100 to 90 is A
<Giorgio> 90 to 80 is B
<Giorgio> for example
Beoran has joined #ruby
<apeiros> you can use maths, or a case/when structure with ranges
poguez_ has joined #ruby
Es0teric has joined #ruby
<Giorgio> yes but for case i dont know how many will be elements in hash
bmurt has quit []
<Giorgio> every grading system are different by country
<shevy> :D
<shevy> a + in switzerland can be a - in the USA!
<apeiros> there is no + and - in switzerland
<Giorgio> yes in bulgaria we use 2 3 4 5 6 :)
workmad3 has quit [Ping timeout: 252 seconds]
<shevy> what happened to 1?
qhartman has quit [Ping timeout: 264 seconds]
<Giorgio> we dont have :D for unknown reason
terrell_t has quit [Remote host closed the connection]
papercode has joined #ruby
<shevy> oh well
<shevy> the USA uses letters as far as I am aware which is crazy too
moneydouble has joined #ruby
<apeiros> Giorgio: psychological. makes people feel bad. at least those movements exist here.
baroquebobcat_ has joined #ruby
<apeiros> most popular "don't use grades! use smilies!". utterly stupid. it's just replacing numbers with pictures. the system is the same.
treehug8_ has quit []
LastWhisper has quit [Quit: Textual IRC Client: www.textualapp.com]
terrellt has joined #ruby
<Giorgio> this is cool for smilies :D
<Giorgio> get highest grade get $ symbol
qhartman has joined #ruby
<apeiros> aaahaha
<apeiros> yeah, that's somewhat realistic :)
<shevy> I like smileys
thoolihan has quit [Ping timeout: 255 seconds]
<apeiros> I'll tell that my undergrad-teacher friend
<shevy> it reminded me "you failed like a noob but you still get a smiley from me"
moneydouble1 has joined #ruby
moneydouble has quit [Read error: Connection reset by peer]
<Giorgio> encourage students :D
baroquebobcat has quit [Ping timeout: 258 seconds]
<jhass> h = {grade => min_points}; points = ...; grade = h.sort_by(&:last).reverse.find {|grade, min_points| points >= min_points }.first # hm, that feels clumsy.
<apeiros> jhass: so disappointed you didn't use bsearch ;-)
Leif has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
polyidus has quit [Quit: EOF]
baroquebobcat_ has quit [Ping timeout: 255 seconds]
<jhass> pff, had enough algorithm stuff for today
<apeiros> jhass: but create the hash from sorted array - no need to resort for lookup then
<jhass> parallel search through a maze # not fun
<apeiros> jhass: sounds like a perfect problem for upcoming kilocores
moritzs has quit [Ping timeout: 252 seconds]
baroquebobcat has joined #ruby
terrellt has quit [Remote host closed the connection]
<jhass> well, the assignment is about any path, not the shortest one or anything (there are multiple solutions in each maze)
phracker has joined #ruby
terrellt has joined #ruby
cashnguns has quit [Ping timeout: 255 seconds]
<jhass> sequential solutions that stick to the target direction perform surprisingly well with that
<Giorgio> i will try you solution apeiros
<apeiros> mine?
<Giorgio> sorry jhass
<Giorgio> its late here my eyes are semi closed
<apeiros> ^^
<jhass> yeah, let's go to bed
iasj has quit [Ping timeout: 255 seconds]
treehug88 has joined #ruby
terrellt has quit [Read error: Connection reset by peer]
bradhe has quit [Remote host closed the connection]
<Giorgio> jhass works like a charm
<Giorgio> thank you very much
jottr has joined #ruby
terrellt has joined #ruby
isbadawi has quit [Ping timeout: 252 seconds]
Bira has joined #ruby
mark_locklear has quit [Ping timeout: 252 seconds]
<apeiros> why go to bed? I'm already there :D
Megtastique has quit []
<jhass> I try to teach my brain the actually use the bed for sleeping and not for other stuff...
<Giorgio> jhass its easy to use just h.to_a instead of h.sort_by(&:last)
<Giorgio> .reverse
<apeiros> jhass: what's wrong with other stuff in bed?
<apeiros> can't always use kitchen table or couch…
<jhass> my brain thinks it doesn't need to sleep if I go to bed and need to sleep
<jhass> routine, ritualism or whatever you call it
zzzbra has joined #ruby
omosoj has quit [Ping timeout: 276 seconds]
mjsmith2 has quit [Remote host closed the connection]
doodlehaus has quit [Remote host closed the connection]
<apeiros> you, me - not talking about the same alternative uses of "bed" ;-D
<jhass> Giorgio: I still don't like to depend on the fact that hashes are ordered by insertion order. Even though ruby guarantees that nowadays it still feels like an implementation side effect to me
doodlehaus has joined #ruby
<Giorgio> yes i think about that tooo
<Giorgio> you are right
banister has joined #ruby
dingus_khan has joined #ruby
<Giorgio> sorting by values are much proper way
<jhass> Giorgio: note that's entirely stylistic, not technical nowadays
LiohAu has quit [Quit: LiohAu]
bradhe has joined #ruby
havenwood has joined #ruby
<Giorgio> good night guys
sdwrage has quit [Quit: This computer has gone to sleep]
doodlehaus has quit [Ping timeout: 252 seconds]
Takle has quit [Ping timeout: 240 seconds]
jhass is now known as jhass|off
Xeago has joined #ruby
bradhe has quit [Remote host closed the connection]
jmurray_ has joined #ruby
Takle has joined #ruby
dingus_khan has quit [Remote host closed the connection]
jmurray has quit [Ping timeout: 258 seconds]
jmurray_ is now known as jmurray
<hmmm> 11
<hmmm> oops
aspires has quit []
Bira has quit [Remote host closed the connection]
aspires has joined #ruby
RubyPanther has joined #ruby
dingus_khan has joined #ruby
maximski has joined #ruby
sambao21 has joined #ruby
echevemaster has joined #ruby
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
orolo has quit [Quit: This computer has gone to sleep]
mr_snowf1ake has joined #ruby
maximski has quit [Client Quit]
sinkensabe has quit [Remote host closed the connection]
einarj has quit [Read error: Connection reset by peer]
qwyeth has quit [Quit: Leaving]
bradhe has joined #ruby
brandonjmckay has quit [Quit: Leaving.]
<jheg> Does the equals operator stop counting decimal places after 15 decimal places?
einarj has joined #ruby
<jheg> for example 4 == 4.000000000000001 returns false
<jheg> but 4 == 4.0000000000000001 returns true
testcore has quit [Ping timeout: 272 seconds]
Bira has joined #ruby
<DouweM> jheg: that's floating point arithmetic for you
dik_dak has quit [Read error: Connection reset by peer]
<jheg> is it a little inconsistent?
dik_dak_ has joined #ruby
<apeiros> no
<apeiros> check the link of this:
<apeiros> >> printf "%.60f\n%.60f\n", 4.0000000000000001, 4
<eval-in__> apeiros => 4.000000000000000000000000000000000000000000000000000000000000 ... (https://eval.in/156780)
dblessing has quit [Quit: dblessing]
Jetchisel has quit [Ping timeout: 245 seconds]
<apeiros> as DouweM already said - float arithmetics. floats are only approximations. closest approximation for 4.0000000000000001 is 4
<DouweM> it has to do with the way floating point numbers are stored. precision isn't infinite, so once values get *very* close, they're actually stored as the same value, and thus equal
danshultz has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
thesheff17 has quit [Quit: Leaving]
<dva> hi guys
danshultz has joined #ruby
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> jhass|off: …off? wtf
lw has quit [Quit: s]
<apeiros> oh
<dva> what's the equal to python sets data type in ruby?
jherbst has joined #ruby
<DouweM> dva: Set?
<apeiros> silly limechat, still doesn't autocomplete to last person talked to
<dva> DouweM hah
<dva> makes sense
<dva> sry new to #ruby
isbadawi has joined #ruby
redondos has quit [Excess Flood]
<apeiros> jheg: note that this is inherent to floats, not ruby. see IEEE 754.
zorak has joined #ruby
<jheg> thanks for the explanations ...
mrkeith has joined #ruby
einarj_ has joined #ruby
redondos has joined #ruby
redondos has quit [Changing host]
redondos has joined #ruby
<DouweM> if you actually care about that 0.000...0001 difference, use a different data type
sambao21 has quit [Quit: Computer has gone to sleep.]
<jheg> so is there a advised work around for comparing really long instances?
<apeiros> BigDecimal or integers
diegoviola has quit [Ping timeout: 276 seconds]
adac has quit [Ping timeout: 240 seconds]
<DouweM> jheg: first question: why do you care about that level of precision?
<apeiros> those have arbitrary precision
<jheg> no your right I'm sure it would never arise DouweM :)
<apeiros> jheg: also, *never* use floats for money.
baweaver has quit [Remote host closed the connection]
<DouweM> jheg: it certainly could, but most of the time floats are just fine
<DouweM> apeiros+1
huoxito has quit [Ping timeout: 252 seconds]
roolo has joined #ruby
mrkeith has left #ruby ["WeeChat 0.3.7"]
<apeiros> those seemingly small differences can quickly lead to rather bad issues. google for examples.
gr33n7007h has joined #ruby
<DouweM> either save amount as an integer number of cents, or use a decimal type
zzzbra has quit []
einarj has quit [Ping timeout: 276 seconds]
pwh has joined #ruby
workmad3 has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
<jheg> OK thanks will do
GriffinHeart has joined #ruby
cashnguns has joined #ruby
treehug88 has quit [Ping timeout: 252 seconds]
timonv has joined #ruby
fresham has joined #ruby
kirun_ has quit [Quit: Client exiting]
GriffinHeart has quit [Ping timeout: 252 seconds]
testcore has joined #ruby
arrubin has quit []
fijimunkii has quit [Ping timeout: 252 seconds]
timonv has quit [Ping timeout: 258 seconds]
Giorgio has quit [Ping timeout: 255 seconds]
OffTheRails has quit [Ping timeout: 258 seconds]
freezey has quit [Remote host closed the connection]
einarj has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
brunops has joined #ruby
Bosox20051 has quit [Read error: Connection reset by peer]
ikaros has joined #ruby
einarj_ has quit [Ping timeout: 276 seconds]
saarinen has quit [Quit: saarinen]
freezey has joined #ruby
endash has joined #ruby
einarj_ has joined #ruby
Robbo` has quit [Read error: Connection reset by peer]
kpshek has quit []
omosoj has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
mven_ has quit [Read error: Connection reset by peer]
einarj has quit [Ping timeout: 240 seconds]
isbadawi has quit [Ping timeout: 252 seconds]
mven_ has joined #ruby
lmickh has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
Dr3amc0d3r|away has quit [Ping timeout: 258 seconds]
jxf has quit [Ping timeout: 252 seconds]
brunops has quit [Changing host]
brunops has joined #ruby
kitak has quit [Remote host closed the connection]
einarj_ is now known as einarj
kitak has joined #ruby
motto has quit [Quit: Sto andando via]
Megtastique has joined #ruby
nfk has quit [Quit: yawn]
andrewlio has quit [Quit: Leaving.]
Dr3amc0d3r|away has joined #ruby
tvw has quit []
dingus_khan has quit [Remote host closed the connection]
Robbo` has joined #ruby
freezey has quit []
dik_dak_ has quit [Read error: Connection reset by peer]
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
dik_dak_ has joined #ruby
dik_dak_ has quit [Read error: Connection reset by peer]
fella7s has joined #ruby
saarinen has joined #ruby
einarj has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
volk_ has quit [Quit: volk_]
goleldar has quit [Read error: No route to host]
Takle has quit [Remote host closed the connection]
dik_dak has joined #ruby
Bira has quit [Remote host closed the connection]
moritzs has joined #ruby
kaspergrubbe has quit [Ping timeout: 240 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
fella6s has quit [Ping timeout: 276 seconds]
t0rc has joined #ruby
<dva> hi guys
zkay11 has joined #ruby
einarj has joined #ruby
<DouweM> hi dva
<dva> just started doing ruby as said previously >_>
<dva> what's the equivalent to this in ruby: http://notey.it/n/MW5y
<shevy> dva \o/
<DouweM> def device=(device_id); @device_id = device_id; end
Bira has joined #ruby
<DouweM> but you may also use attr_accessor :device_id which will create a `device_id=` method for you
<DouweM> you could also call the backing var @device, and use attr_accessor :device
iasj has joined #ruby
t0rc has left #ruby [#ruby]
<shevy> hey wait a moment
<shevy> why do you call the setter device= but the input argument differently, and the @ivar inside that method also differently
<DouweM> shevy: because that's what the Python code does. I'd just use device for ivar and method
<shevy> the python code makes sense
<shevy> I don't get the def device=(device_id); @device_id
<DouweM> ah shit, read it as setDevice(...)
<shevy> kk
<dva> most admit I'm a bit confutes too
<DouweM> Yeah, `def device_id=` and `attr_accessor :device_id`
<dva> must*
zorak has quit [Read error: Connection reset by peer]
<shevy> dva no it is just straightforward, first thing to note is the use of @ ok?
<dva> ok
<shevy> so in python you pass self around, in ruby you use the @ specifically in situations like that
<dva> I'm writing like I'm dyslectic, sorry guys it is 00:44 here :-P
<shevy> here too
<shevy> you must be in europe
benlieb has quit [Quit: benlieb]
<dva> dyslexic* ugh
<shevy> so when you see:
<shevy> def setDeviceId(self,deviceId):
saarinen has quit [Quit: saarinen]
<shevy> the self becomes superfluous
<shevy> so we have one argument effectively
zorak has joined #ruby
<shevy> and then inside the method
<shevy> self.deviceId = deviceId
<shevy> the 'self.' in this context can be replaced via @ in ruby
<DouweM> (woo #ruby at night)
<shevy> it's really almost the same code if you think about it
Spami has joined #ruby
<shevy> python did not want to use @
saarinen has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DouweM> shevy: note that self. with Python methods isn';t the same as @
<shevy> yeah, I like to call the python code like this:
<shevy> def setDeviceId(willy_nilly,deviceId):
<shevy> willy_nilly.deviceId = deviceId
<shevy> that would work or? :)
einarj has quit [Remote host closed the connection]
baroquebobcat has quit [Read error: Connection reset by peer]
<dva> alright, thanks
<dva> that works
<DouweM> I have no idea :P
binaryhat has joined #ruby
<DouweM> Just pointing out that I don't think self. and @ are the same thing
<shevy> yeah you can give it any name DouweM
<DouweM> there's self. in Ruby as well
<DouweM> shevy: oh right, sure, that's the case, but that wasn't my point :P
jimbow has joined #ruby
<shevy> I think guido should reset python
<jimbow> i would like to know if i could run a similar environment to a site like http://repl.it/
<shevy> and start from scratch
workmad3 has quit [Ping timeout: 245 seconds]
<shevy> jimbow irb?
<jimbow> the beauty of repl.it is that you can edit code on the left and still use irb on the right
brasten has joined #ruby
<shevy> yeah dva
<shevy> though you don't have to use the explicit return
<jimbow> but the problem is that it's using an old version of ruby
<shevy> line 7 could be removed and it will still mean the same thing
<DouweM> dva: also snake_case over camelCase
Robbo` has quit [Read error: Connection reset by peer]
<DouweM> dva: and puts instead of print if you want a newline
<jimbow> 1.8.7 is dead, right?
baroquebobcat has joined #ruby
<dva> ah :D
<shevy> jimbow kinda
Robbo` has joined #ruby
<jimbow> is there a way to setup a similar environment?
<eam> now compare and contrast @ and self. with what Perl has
<jimbow> i think it's really useful
<shevy> I can not compile it on modern systems anymore :(
<shevy> jimbow not sure, a javascript environment?
<jimbow> i'd like ruby
<shevy> but that one runs via the web
<jimbow> so i can follow tutorials and not switch between 10 different programs
mjsmith2 has joined #ruby
<jimbow> if i could only learn2tmux and vim
nanoyak has quit [Quit: Computer has gone to sleep.]
Robbo` has quit [Read error: Connection reset by peer]
<shevy> ewww
<shevy> vim
kitak has quit [Remote host closed the connection]
ecksit has joined #ruby
kitak has joined #ruby
<jimbow> tmux and vim will give me what i'm looking for, but the interface won't be as pretty
<dva> what do you guys use to share ruby code? gist is a bit overkill and my default notey.it doesn't have ruby highlighting
nanoyak has joined #ruby
<jimbow> scrolling in vim sucks and you can't use the mouse
<DouweM> how is gist overkill?
<DouweM> gist is the shit
<dva> I have a minimalist fetish :(
<dva> minimalism*
<shevy> dva what do you mean with "share"?
<shevy> I use rubygems to share ;-)
<dva> pastebin sort of thing
<shevy> pastie.org is ok
<shevy> the version from 2010 was better though :<
<dva> no, that's worse than gist >_>
<dva> too much design
<shevy> ack
<DouweM> nak
<shevy> dva why dont you click on 'raw'
endash has quit [Quit: endash]
brasten has quit [Quit: brasten]
<dva> never mind, gist will do
<dva> thanks
<dva> shevy no highlighting
<shevy> yes, the raw part has no highlighting
<shevy> :)))
mikesplain has joined #ruby
terrell_t has joined #ruby
lw has joined #ruby
saarinen has quit [Quit: saarinen]
<Freddan962> I have a object which have x,y coordinates, and I have an array with objects which have x,y coordinates. How do I check which one of the objects in the array which are closest to my first object in a effecient way?
nateberkopec has quit [Quit: Leaving...]
<jimbow> is there a way to use a mouse in irb?
Soulcutter has quit [Quit: WeeChat 0.4.3]
cashnguns has quit [Ping timeout: 255 seconds]
iasj has quit [Ping timeout: 252 seconds]
<dva> is there any oauth2 gem you guys would recommend?
endash has joined #ruby
Sou|cutter has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
terrellt has quit [Ping timeout: 252 seconds]
mikesplain has quit [Ping timeout: 276 seconds]
cashnguns has joined #ruby
nanoyak has joined #ruby
<bricker`work> dva: https://rubygems.org/gems/oauth2 ?
mjsmith2 has quit [Remote host closed the connection]
dik_dak has quit [Quit: Leaving]
arrubin has joined #ruby
Robbo` has joined #ruby
fschuindt has joined #ruby
<dva> never mind twitter native uses oauth1
<dva> so I meant oauth1 :-P
brunops has quit [Ping timeout: 255 seconds]
saarinen has joined #ruby
<omosoj> are there any variable naming conventions besides just be lowercase?
<apeiros> Constants::AreCamelCased
<omosoj> should i use _ or just crunch them together?
<apeiros> all_others @are_snake @@cased
<Sigma00> sssssss
<shevy> jimbow well you can start irb i.e. from a kde konsole tab, then you can click on irb with a mouse :P but there are not really functional things you can do with mouse click events in irb really
<DouweM> VALUE_CONSTANTS_ARE_SOMETIMES_ALL_CAPS
<shevy> UR_MOM_IS_ALL_CAPS
andrewjanssen has joined #ruby
<DouweM> UR_MOM_IS_ALL_CLAPS
<shevy> hehe
<DouweM> hehe
<jimbow> what i'd like is to have the command line to work like a text editor or word
datafirm has joined #ruby
<shevy> jimbow k but that is usually a shell and a terminal
<bricker`work> jimbow: Then use VIM
gabrlh has quit [Quit: Connection closed for inactivity]
<jimbow> like it'll have the thing that blinks the bar thing to tell you your position even if you can't edit the text
<jimbow> and you could scroll with a mouse
<Freddan962> I have a object which have x,y coordinates, and I have an array with objects that have x,y coordinates. How do I check which one of the objects who is closest to my first object in a effecient way?
<shevy> look at this jimbow http://goo.gl/TD4IO9
<jimbow> vim takes too long to scroll and you can't use a mouse
<bricker`work> jimbow: that's a function of your terminal, not IRB
<jimbow> what is that?
<bricker`work> jimbow: you're not supposed to use a mouse and it only takes too long to scroll if you don't know how to scroll quickly ;)
<shevy> that was cuiterm
<shevy> sadly he abandoned it a few years ago
<shevy> imagine if he would have extended it immensely!
<jimbow> bricker`work: i can scroll 100 x faster than i ever could in a terminal
<bricker`work> jimbow: With a mouse? lol
g0bl1n has quit [Ping timeout: 258 seconds]
<bricker`work> jimbow: you can't jump pages with a mouse
<jimbow> also, i don't think it's very intuitive to memorize different key strokes for different scroll speeds… i'd rather it match the scroll speed of my finger
<bricker`work> or jump the end/beginning of a document
<bricker`work> or the end of a line, or beginning of a line
<jimbow> if you flick fast enough you can
<bricker`work> whatever
tskogber1 has quit [Remote host closed the connection]
tskogberg has joined #ruby
<bricker`work> I don't even use VIM, why am I defending it
<Freddan962> Solved it - ignore me: array.min {|a, b| (a.x-player.x).abs <=> (b.x-player.x).abs}.x
<shevy> bricker`work hahaha
<shevy> you are the perfect vim man bricker`work
<shevy> a vimster, no?
<shevy> that's how we call the vim users
<shevy> damn vimsters
<shevy> and hamsters
<shevy> those are the two msters I hate the most
<shevy> man, when hamsters pee they make quite a mess
<shevy> I wonder what happens when vimsters pee
mikecmpbll has quit [Quit: i've nodded off.]
<omosoj> anyone still use im?
<omosoj> someone said they would contact me on im like it was nbd. it threw me off.
kevind has quit [Quit: kevind]
<DouweM> im? what im? aim?
<omosoj> dunno!
<omosoj> i assume aim...
<DouweM> if IM is any instant messaging, hangouts, facebook messenger, skype, whatsapp etc probably count, so sure people still use those :P
bean_ has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DouweM> but yeah, it's a bit strange they didn't specify
<benzrf> how do i sinatra with layout but embedded template needs head
<DouweM> take the embedded template to a brothel
julian-delphiki has quit [Ping timeout: 264 seconds]
rkazak_ has joined #ruby
yfeldblu_ has joined #ruby
<omosoj> k, thanks
nanoyak has quit [Quit: Computer has gone to sleep.]
freerobby has joined #ruby
terrell_t has quit [Remote host closed the connection]
Takle has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
ikaros has quit [Quit: Ex-Chat]
terrellt has joined #ruby
jxf has joined #ruby
yfeldblu_ has joined #ruby
terrellt has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
terrellt has joined #ruby
huoxito has joined #ruby
baweaver has joined #ruby
terrellt has quit [Remote host closed the connection]
terrellt has joined #ruby
predator217 has joined #ruby
mercerist has joined #ruby
r_rios has joined #ruby
jheg has quit [Quit: jheg]
nanoyak has joined #ruby
bakflash has quit [Ping timeout: 252 seconds]
baweaver has quit [Ping timeout: 258 seconds]
predator117 has quit [Ping timeout: 245 seconds]
terrellt has quit [Ping timeout: 252 seconds]
jxf has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
phutchins has joined #ruby
doodlehaus has joined #ruby
terrellt has joined #ruby
nowthatsamatt has joined #ruby
sabfer has joined #ruby
nowthatsamatt has quit [Client Quit]
Bira has quit [Remote host closed the connection]
<luckyruby> is there a way to define a method as both a class and instance method?
benlieb has joined #ruby
chrisseaton has joined #ruby
terrellt has quit [Remote host closed the connection]
kaspergrubbe has joined #ruby
terrellt has joined #ruby
RaptorJesus has joined #ruby
benlieb has quit [Client Quit]
<ari-_-e> luckyruby: you can invoke a class method from an instance with inst.class.method
jmurray has quit [Quit: jmurray]
baroquebobcat has quit [Quit: baroquebobcat]
<shevy> luckyruby yeah
<shevy> >> module Foo; def foo; puts 'hi from foo luckyruby'; end; extend self; Foo.foo
<eval-in__> shevy => /tmp/execpad-6bf5a7f1f515/source-6bf5a7f1f515:7: syntax error, unexpected end-of-input, expecting keyword_end (https://eval.in/156781)
<shevy> god
dayepa has quit [Read error: Connection reset by peer]
<shevy> >> module Foo; def foo; puts 'hi from foo luckyruby'; end; extend self; end; Foo.foo
<eval-in__> shevy => hi from foo luckyruby ... (https://eval.in/156782)
phoo1234567 has quit [Quit: Leaving]
r_rios has quit [Ping timeout: 258 seconds]
<shevy> and now include the module in your class and you have the foo method available there as well
r_rios has joined #ruby
mijicd has quit [Remote host closed the connection]
bbronek has quit [Ping timeout: 265 seconds]
<luckyruby> shevy: holy shit. awesome
terrellt has quit [Ping timeout: 245 seconds]
moneydouble1 has quit [Quit: Leaving.]
snath has quit [Ping timeout: 240 seconds]
jmurray has joined #ruby
hermanmunster has joined #ruby
cashnguns has quit [Ping timeout: 252 seconds]
<luckyruby> I started out with module full of class methods but switched to instance methods so I could use it as a mixin. Then had a need to use some as class methods.
moneydouble has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<moneydouble> Would homebrew be considered the best way for ruby and rails dev on mac?
cashnguns has joined #ruby
<moneydouble> I'm not sure of the options.
<DouweM> it's considered the best way for all package management on osx, as opposed to macports
jxf has joined #ruby
<DouweM> it's not something ruby specific
doodlehaus has joined #ruby
<eam> moneydouble: lots of folks use rvm
terrellt has joined #ruby
echevemaster has quit [Remote host closed the connection]
<eam> macs are never prod, odds are you'll want to manage multiple ruby versions
<moneydouble> eam: isn't rvm installed via brew?
<DouweM> moneydouble: don't think so
<moneydouble> hm
combusean has quit [Ping timeout: 264 seconds]
<eam> rvm is just a shell script
<DouweM> moneydouble: but either way, not the same thing
<havenwood> moneydouble: do you want just the latest Ruby or to be able to switch between Rubies?
<havenwood> moneydouble: the brew ruby package might suffice if you just want latest stable
<havenwood> moneydouble: otherwise chruby/ruby-install or rvm
<rkazak_> chruby+ruby-install is the minimum…
<rkazak_> :)
<moneydouble> havenwood: Honestly, not sure yet. I just want to build a web app with Rails at the moment, I'm coming from Python and Django (ugh) so here I am.
<moneydouble> Trying to figure it out lol
hermanmunster has quit [Remote host closed the connection]
terrellt has quit [Remote host closed the connection]
nemesit|znc has quit [Ping timeout: 240 seconds]
hermanmunster has joined #ruby
<havenwood> moneydouble: `brew install ruby` and add this to your `~.bash_profile`: export PATH="$(brew --prefix ruby)/bin:$PATH"
dayepa has joined #ruby
<havenwood> ~/.bash_profile**
hermanmunster has quit [Read error: Connection reset by peer]
hermanmunster has joined #ruby
terrellt has joined #ruby
ephemerian has quit [Read error: Connection reset by peer]
doodlehaus has quit [Ping timeout: 240 seconds]
<jimbow> kkk
b00stfr3ak has quit [Ping timeout: 264 seconds]
davedev2_ has joined #ruby
<moneydouble> havenwood: So I should use homebrew?
davedev24_ has quit [Read error: Connection reset by peer]
snath has joined #ruby
MrSamuel has joined #ruby
<havenwood> moneydouble: if you really just want one user install of latest stable Ruby, yeah
sski has joined #ruby
<moneydouble> havenwood: What would I need multiple for? I'd like to try for the latest stable I guess but a use case for that would be for Gems that require other versions of Ruby?
jmurray has quit [Quit: jmurray]
<havenwood> moneydouble: sure, or if you're working on apps that run on different rubies, to be able to be in the right environment
<havenwood> moneydouble: or testing reported bugs
<moneydouble> havenwood: whats rubies? lol
<DouweM> different versions of ruby
moritzs has quit [Ping timeout: 255 seconds]
terrellt has quit [Ping timeout: 276 seconds]
<havenwood> moneydouble: various versions of ruby, jruby, rubinius, maglev, topaz, mruby, etc
nemesit|znc has joined #ruby
dingus_khan has joined #ruby
ursooperduper has quit [Quit: Textual IRC Client: www.textualapp.com]
GodPuppet has joined #ruby
fluve has joined #ruby
jmurray has joined #ruby
<moneydouble> havenwood: Ah okay, I see. I doubt I'll need multiple versions of Ruby so I dont really think thats a problem. But another question.. Are gems installed globally?
<moneydouble> or would I use RVM for that?
<moneydouble> to not make it global
<moneydouble> per project
iamvery has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
nanoyak has joined #ruby
<DouweM> you'll probable need multiple rubies if you work on multiple apps
<havenwood> moneydouble: Mavericks ships with Ruby 2.0 but has system wide gem installation. Switching to brew Ruby will get you 2.1 with user installed gems.
volk_ has joined #ruby
<DouweM> and normally, yeah, gems are global. you can use rvm for that as well
terrellt has joined #ruby
<havenwood> moneydouble: a common option for project-wide gems is bundler
<shevy> hmmm
lethe has joined #ruby
<DouweM> right, bundler ftw
shinobi_one has joined #ruby
<shevy> is there a way to globally decorate methods?
<shevy> specifically, I have a project where I change the configuration
<shevy> the configuration is kept in @configuration and this object has several methods, including setters
andrewjanssen has quit [Quit: Linkinus - http://linkinus.com]
dingus_khan has quit [Remote host closed the connection]
<shevy> now I could modify each setter to allow auto-saving whenever it gets changed, but I'd need or want an ad-hoc solution to modify this object in an easy way
nobitanobi has quit []
ecksit has quit [Quit: Laters.]
ascarter has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
Bira has joined #ruby
nanoyak has quit [Client Quit]
nanoyak has joined #ruby
<moneydouble> havenwood: DouweM: So do I have to install bundler?
kitak has quit [Remote host closed the connection]
<DouweM> `gem install bundler`
<havenwood> moneydouble: once you're setup Ruby: gem install bundler
<havenwood> you've*
lethe has quit [Ping timeout: 240 seconds]
<havenwood> ^
kitak has joined #ruby
r_rios has quit [Remote host closed the connection]
fijimunkii has joined #ruby
GriffinHeart has joined #ruby
<havenwood> moneydouble: i like ruby-install with chruby and bundler
MrSamuel has quit [Ping timeout: 240 seconds]
<benzrf> yo wtf
<havenwood> moneydouble: for a single ruby, brew ruby with bundler should suffice