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]
<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]
<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]
<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}";
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
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?
<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
<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
<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>
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]
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]
<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.
<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]
<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]
<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]
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.
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?
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?
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
<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]
<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]
<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]
<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.]
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?
<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
<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
<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
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