apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
<yxhuvud> not certain if 2.1 is released though
<yxhuvud> 2.0 definitely is
sepp2k1 has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
benzrf is now known as benzrf|offline
sepp2k has quit [Ping timeout: 252 seconds]
benzrf|offline is now known as benzrf
wiku5_ has joined #ruby
wiku5_ has quit [Client Quit]
Guest67852 has quit [Changing host]
Guest67852 has joined #ruby
Guest67852 is now known as digifi5ve
s34n has quit [Disconnected by services]
digifi5ve is now known as digifiv5e
s34n_ has joined #ruby
digifiv5e is now known as guyz
m104 has joined #ruby
charlied3 has joined #ruby
<charlied3> .
brian___ has joined #ruby
charlied3 has quit [Client Quit]
TorpedoSkyline has joined #ruby
mgberlin has joined #ruby
charlied3 has joined #ruby
charlied3 has quit [Client Quit]
phoo1234567 has quit [Quit: Leaving]
charlied3 has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
charlied3 has quit [Client Quit]
charlied3 has joined #ruby
charlied3 has quit [Client Quit]
ddv has joined #ruby
charlied3 has joined #ruby
charlied3 has quit [Client Quit]
charlied3 has joined #ruby
gregf has joined #ruby
ValicekB has quit [Ping timeout: 244 seconds]
GriffinHeart has joined #ruby
charlied3 has quit [Client Quit]
skysploit has joined #ruby
GriffinHeart has quit [Ping timeout: 244 seconds]
ferr has quit [Ping timeout: 248 seconds]
lolmaus has quit [Ping timeout: 248 seconds]
yacks has quit [Ping timeout: 244 seconds]
dorei has quit []
papercode has quit [Quit: WeeChat 0.4.3]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
neiled has joined #ruby
reset has joined #ruby
neiled has quit [Client Quit]
ValicekB has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
PasNox has quit [Quit: Leaving - Cross platform IDE http://monkeystudio.org]
Wolland has joined #ruby
vifino has quit [Quit: Ze Cat now leaves...]
reset has quit [Ping timeout: 264 seconds]
jamto11 has joined #ruby
CodeLicker has quit [Quit: Nettalk6 - www.ntalk.de]
enebo has joined #ruby
Xeago has quit [Ping timeout: 244 seconds]
tmtwd has quit [Ping timeout: 244 seconds]
skysploit has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 260 seconds]
bradhe has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
little_fu has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
JoshGlzBrk has joined #ruby
JoshGlzBrk has quit [Max SendQ exceeded]
JoshGlzBrk has joined #ruby
maroloccio has joined #ruby
freerobby has quit [Quit: Leaving.]
dubb is now known as db
bradleyprice has joined #ruby
db is now known as Guest3778
ValicekB has quit [Ping timeout: 272 seconds]
yubrew has joined #ruby
Guest3778 is now known as g37
freerobby has joined #ruby
bradleyprice has quit [Ping timeout: 252 seconds]
enebo has quit [Quit: enebo]
arrubin has joined #ruby
yubrew has quit [Ping timeout: 272 seconds]
cashnguns has quit [Ping timeout: 240 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus has joined #ruby
ghr has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.3]
benzrf is now known as benzrf|offline
ghr has quit [Ping timeout: 272 seconds]
benzrf|offline is now known as benzrf
ValicekB has joined #ruby
sailias has joined #ruby
maestrojed has joined #ruby
ghr has joined #ruby
hgl has joined #ruby
ephemerian has quit [Quit: Leaving.]
sailias has quit [Remote host closed the connection]
Lewix has joined #ruby
iswell has joined #ruby
edgarjs is now known as edgarjs_afk
ghr has quit [Ping timeout: 252 seconds]
jottr has joined #ruby
<shevy> yxhuvud hmm good, levo can install that then
ValicekB has quit [Ping timeout: 255 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
little_f_ has joined #ruby
little___ has joined #ruby
little_fu has quit [Ping timeout: 240 seconds]
Caius has quit [Ping timeout: 255 seconds]
jottr has quit [Ping timeout: 260 seconds]
Caius has joined #ruby
freerobby has quit [Quit: Leaving.]
mjsmith2 has joined #ruby
little_f_ has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cya]
xcv has joined #ruby
m104 has quit [Quit: bye]
peret has quit [Remote host closed the connection]
xcv_ has quit [Ping timeout: 248 seconds]
kireevco has joined #ruby
freerobby has joined #ruby
Photism has joined #ruby
postmodern has quit [Quit: Leaving]
jrhe has joined #ruby
little_f_ has joined #ruby
little___ has quit [Ping timeout: 244 seconds]
xcv has quit [Ping timeout: 248 seconds]
chipotle has joined #ruby
Majost_ has quit [Remote host closed the connection]
ValicekB has joined #ruby
deric_skibotn has quit [Ping timeout: 248 seconds]
Wolland has joined #ruby
robustus has quit [Ping timeout: 252 seconds]
reset has joined #ruby
wallerdev has joined #ruby
j_mcnally has quit [Read error: Connection reset by peer]
robustus has joined #ruby
freerobby has quit [Quit: Leaving.]
Wolland has quit [Ping timeout: 260 seconds]
<benzrf> FRP da bom
bradhe has joined #ruby
reset has quit [Ping timeout: 244 seconds]
little_f_ has quit [Ping timeout: 260 seconds]
VTLob has quit [Quit: VTLob]
bradhe has quit [Ping timeout: 255 seconds]
<shevy> benzrf what are you coding lately?
<benzrf> not a lort
sunya7a has joined #ruby
aspires has quit []
freerobby has joined #ruby
Connie_ has joined #ruby
Connie has quit [Ping timeout: 240 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
TorpedoSkyline has joined #ruby
brian___ has quit [Quit: brian___]
TorpedoSkyline has quit [Client Quit]
yubrew has joined #ruby
Spami__ has quit [Read error: Connection reset by peer]
cashnguns has joined #ruby
maestrojed has joined #ruby
ValicekB has quit [Ping timeout: 260 seconds]
Spami__ has joined #ruby
yubrew has quit [Ping timeout: 252 seconds]
britneywright has joined #ruby
perlsyntax has quit [Quit: Textual IRC Client: www.textualapp.com]
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
wallerdev has quit [Quit: wallerdev]
Avahey_ has joined #ruby
benzrf is now known as benzrf|offline
benlieb has joined #ruby
britneywright has quit [Remote host closed the connection]
ValicekB has joined #ruby
britneywright has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
ValicekB has quit [Ping timeout: 255 seconds]
cashnguns has quit [Ping timeout: 240 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
zz_karupa is now known as karupa
ghr has joined #ruby
kireevco has quit [Quit: Leaving.]
sashah has joined #ruby
sashah has left #ruby [#ruby]
GriffinHeart has joined #ruby
thomasxie has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
ValicekB has joined #ruby
kireevco has joined #ruby
benlieb has quit [Quit: benlieb]
Hanmac has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
karupa is now known as zz_karupa
bubbajones has quit [Quit: leaving]
Arkaniad has quit [Ping timeout: 264 seconds]
yakko has quit [Read error: Connection timed out]
yakko has joined #ruby
kireevco has quit [Quit: Leaving.]
agent_white has joined #ruby
neiled has joined #ruby
xcv has joined #ruby
bubbajones has joined #ruby
ValicekB has quit [Ping timeout: 244 seconds]
bradhe has joined #ruby
Wolland has joined #ruby
mjsmith2 has quit [Remote host closed the connection]
<agent_white> Herro
reset has joined #ruby
charliesome has joined #ruby
bradhe has quit [Ping timeout: 272 seconds]
Wolland has quit [Ping timeout: 240 seconds]
bradleyprice has joined #ruby
reset has quit [Ping timeout: 244 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamto11 has joined #ruby
yubrew has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TheMoonMaster has quit [Quit: Later!]
Deele has quit [Ping timeout: 255 seconds]
bradleyprice has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 255 seconds]
kireevco has joined #ruby
LexicalScope has joined #ruby
kireevco has quit [Client Quit]
mgberlin has quit [Remote host closed the connection]
Shidash has quit [Ping timeout: 255 seconds]
bkparso has joined #ruby
JordanJ2 has left #ruby ["I'm out"]
freerobby has quit [Quit: Leaving.]
radic has quit [Ping timeout: 240 seconds]
<levo> i tried to do 'thor docs:download --all' for devdocs, but i got devodocs.io/devdocs/lib/docs/core/filter_stack.rb:48:in `const_get': wrong constant name Angular::CleanHtmlFilter (NameError)
<levo> and some other errors on multiple lines
sunya7a has quit [Ping timeout: 255 seconds]
radic has joined #ruby
<shevy> no idea
mgberlin has joined #ruby
<shevy> you can always file an issue request
<shevy> the author may then improve on the whole process
chipotle has quit [Quit: cya]
akitada has joined #ruby
ValicekB has joined #ruby
mgberlin has quit [Remote host closed the connection]
mgberlin has joined #ruby
godd2 has quit [Ping timeout: 272 seconds]
codeurge has joined #ruby
mrmargolis has quit [Remote host closed the connection]
neiled has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xcv has quit [Remote host closed the connection]
ghr has joined #ruby
rkazak has joined #ruby
braincrash has quit [Quit: bye bye]
ghr has quit [Ping timeout: 264 seconds]
Wolland has joined #ruby
Soda has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
braincrash has joined #ruby
sunya7a has joined #ruby
Georg3 has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
<Georg3> Hey, why would 999 - 998.1 = 0.8999999999999773 ?
<Georg3> I've also tried 999.0 - 998.1 with the same result.
sputnik13 has joined #ruby
nanodano has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> Georg3 it can not be more accurate
<Georg3> hmm, I'm a newb so I don't really have an idea of the inner workings but why wouldn't it just be 0.9
<shevy> Georg3 look here if you want to know the explanation: http://stackoverflow.com/questions/7092223/does-ruby-calculate-floats-wrong
<shevy> because it can not give you that information
<Georg3> oh perfect, thank you very much.
bradhe has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
sunya7a has quit [Ping timeout: 255 seconds]
bradhe has quit [Ping timeout: 272 seconds]
Georg3 has quit [Quit: Lingo - http://www.lingoirc.com]
Georg3 has joined #ruby
wallerdev has joined #ruby
<shevy> sometimes humans are cleverer than a computer
aspires has joined #ruby
Wolland has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<Georg3> =)
aspires has quit [Client Quit]
<Georg3> shevy: would you say a book written in 2009 should be fine for learning ruby today? most of the conventions and what not remain right?
wallerdev has quit [Client Quit]
<Georg3> I'm using Chris Pine's Learn to Program 2nd edition and so far everythings been fine, but I don't know if more of ht eadvanced stuff changed in r2.0
yubrew has joined #ruby
reset has joined #ruby
sputnik13 has joined #ruby
ValicekB has quit [Ping timeout: 244 seconds]
kireevco has joined #ruby
<Georg3> nvm, sorry i need to use Google more often.
yubrew has quit [Ping timeout: 244 seconds]
reset has quit [Ping timeout: 255 seconds]
levo has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
bmurt has joined #ruby
yacks has joined #ruby
<Rylee> Is there anything like ncurses that Ruby has? I'm learning Ncurses with Ruby and it's honestly just plain painful.
jxf has quit [Ping timeout: 252 seconds]
ixti has quit [Ping timeout: 240 seconds]
Georg3 has quit [Quit: Computer has gone to sleep.]
<agent_white> Rylee: Haha Ncurses is painful everywhere. I couldn't find any decent alternatives in Ruby. I used the 'ncursesw' gem. But it still wasn't any less painful.
<Rylee> That's honestly a bit depressing.
<Rylee> YEah, that's what I'm using
Wolland has quit [Read error: Connection reset by peer]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
dc_ has joined #ruby
sputnik13 has joined #ruby
<Dreamer3> is there a better channel to ask for rake help?
ValicekB has joined #ruby
<shevy> Rylee hence the "curses" in "ncurses"
<Rylee> i sure do feel cursed
<shevy> I once wanted to write a little dungeon thingy in ruby ncurses
<shevy> but I don't know, the API seems to be written for aliens
<shevy> there are some cool ncurses programs out there
<shevy> like htop
<Rylee> yeah
<Rylee> it feels so 1980s
bmurt has quit []
ValicekB has quit [Ping timeout: 248 seconds]
<rkazak> vt100 we love you!
bmurt has joined #ruby
<Rylee> -- Nobody Ever
<Dreamer3> wow
<Dreamer3> it's pretty hard to unenhance rake tasks
<Dreamer3> can i get the source of a block as a string? i don't think i can do that
<Dreamer3> n/m, wouldn't help anyways
GriffinHeart has joined #ruby
aspires has quit []
codeurge has quit [Ping timeout: 248 seconds]
aspires has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
Spami__ has quit [Quit: This computer has gone to sleep]
Spami has quit [Quit: This computer has gone to sleep]
GriffinHeart has quit [Ping timeout: 248 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jxf has joined #ruby
dapz has joined #ruby
ValicekB has joined #ruby
sunya7a has joined #ruby
LexicalScope` has joined #ruby
sputnik13 has joined #ruby
sputnik13 has quit [Client Quit]
Ankhers has joined #ruby
diegoviola has joined #ruby
coderhs has joined #ruby
coderhs has quit [Client Quit]
bradhe has joined #ruby
kireevco has quit [Quit: Leaving.]
dc_ has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 255 seconds]
bmurt has quit []
Ankhers has quit [Ping timeout: 264 seconds]
kireevco has joined #ruby
bradleyprice has joined #ruby
wildroman2 has joined #ruby
Doppp has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
yubrew has joined #ruby
ValicekB has quit [Ping timeout: 272 seconds]
sunya7a has quit [Ping timeout: 255 seconds]
sputnik13 has joined #ruby
bradleyprice has quit [Ping timeout: 255 seconds]
Doppp has joined #ruby
dc_ has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
reset has joined #ruby
<ericwood> hey, would this technically be possible? (note that code does not work)
<ericwood> as in, evaluate everything inside that block as if it's taking place in the class itself
<ericwood> I know instance_eval is the ticket here, but I'm not sure how to structure it
<ericwood> for my silly DSL
<ericwood> maybe I should look into this when I'm not drunk
ValicekB has joined #ruby
jamto11 has joined #ruby
reset has quit [Ping timeout: 255 seconds]
<agent_white> So. How do I keep a child process alive until the parent 'activates' it?
akemrir has joined #ruby
<agent_white> I'm working on building a fastcgi implementation for my webserver, and trying to figure out IPC and whatnot. For now I want to fork the fastcgi, and have it sit there unless awakend to do werk.
<ericwood> doesn't CGI by definition not stay alive?
<ericwood> I guess you want a background worker to be called by the parent
<agent_white> ericwood: Correct, but I'm switching that up ;) I don't want to fork for every request. Just open up a Unixpipe between the parent and child instead.
<ericwood> you might want to use something like Rack, although this is out of my true area of expertise
<agent_white> ericwood: Ah this is for learning purposes ;)
<ericwood> haha okay
<ericwood> tbh I'd run them as separate processes
<ericwood> but I am not a guru on this sort of thing!
<agent_white> ericwood: Indeed! That's exactly what I'm having trouble with :( I've never done it before.
aspires has quit []
<ericwood> so, CGI --> parent process is run, is killed
<ericwood> child process dies
<ericwood> you don't want that pattern!
<agent_white> aka inside my code for my server, I just have: `fork do; @fcgi = FCGI.new(socket_path);end;` But I know that's not quite correct.
jamto11 has quit [Ping timeout: 252 seconds]
<ericwood> what you want is a separate program listening to a pipe, etc. in a separate process
<agent_white> ericwood: Yup yup! That's what I want... but doing it is troubling :P
aspires has joined #ruby
<ericwood> just write two separate programs + pipe!
<ericwood> treat them as two separate deals
<agent_white> ericwood: Indeed. So I call `fork` inside of my "parent" program?
<ericwood> no!
<ericwood> that's a subprocess of the parent
<agent_white> Ah, I don't want that!
<ericwood> the point of the parent is to do something then die, as is CGI
<ericwood> have a long-running background process to do the heavy lifting and the parent just issue it instructions via the pipe
<ericwood> but really this is why things like rack exist
<ericwood> so you have a long-running web application
<ericwood> so, you're reinventing the wheel a bit but that's okay since it's for fun :)
<agent_white> ericwood: Indeed :)
<agent_white> So I just want to run `exec` inside my main program instead?
<agent_white> To startup the fcgi process?
<ericwood> the idea I had in mind just meant the background process alwasy being running
<ericwood> the parent doesn't care if the child is running or not
<ericwood> it's just piping info to whatever!
<ericwood> it's up to you to run the background one
<agent_white> ericwood: Exactly! I'm asking where to initialize the background process?
<agent_white> I'm thinking just "exec" inside my main webserver is best bet.
wildroman2 has quit [Remote host closed the connection]
<agent_white> ericwood: Thanks for your help! :)
Channel6 has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<ericwood> agent_white: nah keep it decoupled
<ericwood> leave it up to something else
<ericwood> it should be long-running, so the fcgi process doesn't know anything about it outside of the pipe
speakingcode has quit [Ping timeout: 240 seconds]
<agent_white> ericwood: So... then I would manually have to run `ruby web_server.rb` and `ruby fcgi.rb` ?
Error0x01 has left #ruby [#ruby]
<ericwood> yeah basically!
<agent_white> heh... that doesn't seem right?
speakingcode has joined #ruby
<ericwood> because there's more to it than that :)
<ericwood> but that goes more into how you deploy and etc
<ericwood> things that I don't know much about in terms of "reinventing the wheel correctly"
<agent_white> I mean... lets say you have mod_fcgid in Apache for FastCGI... you don't run "apache" then "mod_fcgid". Apache just abosorbs it when running.
<ericwood> I guess, I'm getting outside of my area of expertise now :P
DivineEn1ity has joined #ruby
<agent_white> Hehe no worries :P
<ericwood> also I have been drinking so please disregard
<agent_white> Thank you for the help though, otherwise I would've been fiddling with fork.
<ericwood> but I think my thesis is correct overall?
ValicekB has quit [Ping timeout: 240 seconds]
<ericwood> haha no problem, godspeed!
<agent_white> \o
<ericwood> o/
yakko has quit [Read error: Connection timed out]
DivineEn1ity has quit [Client Quit]
yakko has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
DivineEn1ity has joined #ruby
DivineEn1ity has quit [Client Quit]
cashnguns has joined #ruby
cashnguns has quit [Read error: Connection reset by peer]
techsethi has joined #ruby
DivineEntity has joined #ruby
mrmargolis has joined #ruby
Morkel has joined #ruby
ValicekB has joined #ruby
<diegoviola> so i did work for some company for 2 weeks (we have a contract), and now we are having a dispute over payment, i was billing them by the hour and i just sent them an invoice, they are like "We'll pay you what we think is fair." which is not what we agreed to.
<diegoviola> it's clear they are trying to pay me less than the time i invested in their project, is there anything i can do to protect myself at this point?
<diegoviola> sorry for off-topic :(
mrmargolis has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
aspires has quit []
bradhe has quit [Ping timeout: 252 seconds]
aspires has joined #ruby
uffs has joined #ruby
CaptainJet has quit []
LexicalScope` has quit [Quit: Leaving]
oo_ has joined #ruby
yubrew has joined #ruby
yubrew has quit [Ping timeout: 240 seconds]
sputnik13 has joined #ruby
ARCADIVS has joined #ruby
Wolland_ has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
aspires has quit []
aspires has joined #ruby
kireevco has quit [Quit: Leaving.]
diegoviola has joined #ruby
JoshGlzBrk has joined #ruby
pontiki has joined #ruby
reset has joined #ruby
Wolland has quit [Ping timeout: 272 seconds]
jagadish has joined #ruby
pwh has joined #ruby
jagadish has quit [Remote host closed the connection]
bkparso has quit [Quit: bkparso]
reset has quit [Ping timeout: 272 seconds]
<pontiki> evening folks
papercode has joined #ruby
kireevco has joined #ruby
stytown has joined #ruby
IceDragon has quit [Quit: Space~~~]
GriffinHeart has joined #ruby
Wolland has joined #ruby
Channel6 has quit [Quit: Leaving]
starkhalo has quit [Ping timeout: 252 seconds]
GriffinHeart has quit [Ping timeout: 255 seconds]
Wolland_ has quit [Ping timeout: 255 seconds]
Morkel has quit [Quit: Morkel]
diegoviola has quit [Quit: WeeChat 0.4.3]
yakko has quit [Read error: Connection timed out]
nanoyak has joined #ruby
kireevco has quit [Quit: Leaving.]
yakko has joined #ruby
JBreit has joined #ruby
mijicd has joined #ruby
kireevco has joined #ruby
wildroman2 has joined #ruby
JBreit has left #ruby [#ruby]
earthquake has joined #ruby
ronkrt has left #ruby [#ruby]
wildroman2 has quit [Ping timeout: 248 seconds]
dangerousdave has joined #ruby
bradhe has joined #ruby
jxf has quit [Ping timeout: 248 seconds]
zkay11 has quit [Remote host closed the connection]
zz_karupa is now known as karupa
inspectah_log has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
inspectah_log has left #ruby ["WeeChat 0.4.3"]
bradhe has quit [Ping timeout: 248 seconds]
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MetaCosm_ has quit []
MetaCosm_ has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
decoponio has joined #ruby
MetaCosm_ has quit [Client Quit]
bradleyprice has joined #ruby
srnty has joined #ruby
srnty has quit [Client Quit]
yubrew has joined #ruby
karupa is now known as zz_karupa
bluOxigen has joined #ruby
nitish has joined #ruby
nitish has left #ruby [#ruby]
bradleyprice has quit [Ping timeout: 244 seconds]
yubrew has quit [Ping timeout: 240 seconds]
Royalb15 has joined #ruby
nettofarah has joined #ruby
oo_ has quit [Remote host closed the connection]
kireevco has quit [Quit: Leaving.]
dangerousdave has quit [Read error: Connection reset by peer]
JoshGlzBrk has joined #ruby
dangerousdave has joined #ruby
g37 has quit [Quit: leaving]
Doppp_ has joined #ruby
nettofarah has quit [Quit: nettofarah]
Doppp has quit [Ping timeout: 244 seconds]
LexicalScope has quit [Ping timeout: 255 seconds]
Soda has joined #ruby
reset has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
Caius has quit [Ping timeout: 255 seconds]
shvelo has joined #ruby
jamto11 has joined #ruby
<agent_white> Heya pontiki
reset has quit [Ping timeout: 255 seconds]
diegoviola has joined #ruby
lkba has joined #ruby
jamto11 has quit [Ping timeout: 264 seconds]
Caius has joined #ruby
alem0lars has joined #ruby
aspires has quit []
duncannz has quit [Ping timeout: 248 seconds]
gruz0[russia] has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
Wolland has quit [Remote host closed the connection]
Caius has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
robbyoconnor has joined #ruby
yakko has quit [Read error: Connection timed out]
robbyoconnor has quit [Client Quit]
Caius has joined #ruby
claymore has joined #ruby
yakko has joined #ruby
sarkis has quit [Ping timeout: 244 seconds]
oo_ has quit [Ping timeout: 272 seconds]
gruz0[russia] has joined #ruby
chrishough has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mrmargolis has joined #ruby
blueOxigen has joined #ruby
earthquake has quit [Quit: earthquake]
Caius has quit [Ping timeout: 255 seconds]
bluOxigen has quit [Ping timeout: 264 seconds]
mrmargolis has quit [Ping timeout: 244 seconds]
godd2 has joined #ruby
Caius has joined #ruby
Soda has quit [Remote host closed the connection]
yakko has quit [Ping timeout: 248 seconds]
akemrir has quit [Quit: WeeChat 0.4.3]
LiohAu has quit [Quit: LiohAu]
drawingthesun has quit [Read error: Connection reset by peer]
stytown has quit [Quit: stytown]
thomasxie has quit [Quit: Leaving.]
ctp has joined #ruby
sarkis has joined #ruby
bluOxigen has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
sarkis has quit [Ping timeout: 255 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
reset has joined #ruby
yakko has joined #ruby
darkxploit has joined #ruby
reset has quit [Ping timeout: 240 seconds]
cjk101010 has quit [Ping timeout: 264 seconds]
carraroj has joined #ruby
yakko has quit [Ping timeout: 252 seconds]
ctp has quit [Read error: Connection reset by peer]
diegoviola has quit [Quit: WeeChat 0.4.3]
ctp has joined #ruby
cjk101010 has joined #ruby
carraroj has quit [Ping timeout: 260 seconds]
theharshest has quit [Quit: This computer has gone to sleep]
ecksit has quit [Quit: Computer has gone to sleep.]
Wolland has joined #ruby
TDJACR has quit [Ping timeout: 252 seconds]
Darkchaos has joined #ruby
obs has joined #ruby
theharshest has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
relix has joined #ruby
buub has joined #ruby
jackneill has joined #ruby
bradleyprice has joined #ruby
timonv has joined #ruby
yubrew has joined #ruby
buub has quit [Remote host closed the connection]
nfk has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackneill has quit [Ping timeout: 240 seconds]
bradleyprice has quit [Ping timeout: 252 seconds]
yubrew has quit [Ping timeout: 260 seconds]
jackneill has joined #ruby
oo_ has joined #ruby
Prandium has joined #ruby
oo_ has quit [Remote host closed the connection]
ghr has joined #ruby
jottr has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
andrewlio has joined #ruby
ghr has quit [Ping timeout: 248 seconds]
Prandium has quit [Ping timeout: 244 seconds]
robbyoconnor has joined #ruby
sigurding has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
bluOxigen has quit [Ping timeout: 248 seconds]
fishflaps has joined #ruby
<gr33n7007h> !ip irc.freenode.net
<fishflaps> 62.231.75.133
<gr33n7007h> !moo
<fishflaps> _____
<fishflaps> < moo >
<fishflaps> \ ^__^
<fishflaps> \ (oo)_______
<fishflaps> -----
<fishflaps> (__) )\/\
<fishflaps> ||----w |
<fishflaps> || ||
lxsameer has joined #ruby
lxsameer has joined #ruby
fishflaps has quit [Remote host closed the connection]
<Mon_Ouie> Don't use a bots like that here
carraroj has joined #ruby
EvanR__ has joined #ruby
senayar has joined #ruby
relix has quit [Ping timeout: 244 seconds]
senayar has quit [Remote host closed the connection]
sonofflynn has quit [Ping timeout: 240 seconds]
LACP has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Ping timeout: 252 seconds]
EvanR_ has quit [Ping timeout: 252 seconds]
klaut has joined #ruby
redondos has quit [Ping timeout: 260 seconds]
kyb3r_ has joined #ruby
ozzloy has quit [Ping timeout: 252 seconds]
PhilK has quit [Ping timeout: 240 seconds]
sonofflynn has joined #ruby
senayar has joined #ruby
LACP has joined #ruby
ozzloy has joined #ruby
relix has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
PhilK has joined #ruby
redondos has joined #ruby
oo_ has joined #ruby
Daiyousei has joined #ruby
oo_ has quit [Remote host closed the connection]
Daiyousei has quit [Client Quit]
reset has joined #ruby
Daiyousei has joined #ruby
rdark has joined #ruby
sputnik13 has joined #ruby
jamto11 has joined #ruby
anaeem1_ has joined #ruby
reset has quit [Ping timeout: 244 seconds]
shredding has joined #ruby
jamto11 has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
klaut has quit [Remote host closed the connection]
shredding has quit [Client Quit]
obs has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
obs has joined #ruby
shvelo has quit [Ping timeout: 255 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
Wolland has joined #ruby
shredding has joined #ruby
dc_ has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 260 seconds]
Royalb15 has quit [Quit: Leaving]
Wolland has quit [Ping timeout: 255 seconds]
BalkM has joined #ruby
wildroman2 has joined #ruby
yubrew has joined #ruby
shredding has quit [Quit: shredding]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
yubrew has quit [Ping timeout: 260 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
prateek_mir has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vadzimt has joined #ruby
techsethi has quit [Quit: techsethi]
mrmargolis has joined #ruby
olivier_bK has joined #ruby
ta has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
mrmargolis has quit [Ping timeout: 255 seconds]
Soda has joined #ruby
exgf has quit [Remote host closed the connection]
tacos1de has quit [Ping timeout: 264 seconds]
DrCode has quit [Ping timeout: 264 seconds]
end_guy has quit [Ping timeout: 264 seconds]
BalkM has quit [Quit: Lingo - http://www.lingoirc.com]
BalkM has joined #ruby
senayar has quit [Remote host closed the connection]
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
senayar has joined #ruby
Doppp_ has quit [Read error: Connection reset by peer]
DrCode has joined #ruby
pabloh has joined #ruby
WishBoy has joined #ruby
exgf has joined #ruby
yakko has joined #ruby
senayar has quit [Ping timeout: 255 seconds]
jarto has joined #ruby
end_guy has joined #ruby
tacos1de has joined #ruby
yakko has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
oo_ has joined #ruby
nszceta has joined #ruby
Doppp has joined #ruby
nfk has quit [Quit: yawn]
jhass|off is now known as jhass
reset has joined #ruby
lxsameer has quit [Ping timeout: 244 seconds]
dc_ has joined #ruby
lxsameer has joined #ruby
oo_ has quit [Ping timeout: 264 seconds]
<strelok> anybody awake?
marr has joined #ruby
<godd2> I am
<godd2> what sup
<Edelwin> I am too
bradhe has joined #ruby
theharshest has quit [Quit: This computer has gone to sleep]
Soda has quit [Remote host closed the connection]
reset has quit [Ping timeout: 240 seconds]
<apeiros> I'm not
<apeiros> I'm sleepchatting
wildroman2 has quit [Remote host closed the connection]
<strelok> how would you do this in ruby
spider-mario has joined #ruby
nszceta has quit []
<apeiros> ary = Array.new(height) { Array.new(width, 1) }
hgl has quit [Ping timeout: 240 seconds]
<apeiros> note: use Array.new(size, value) if value is immutable. use Array.new(size) { value } if value is mutable.
bradhe has quit [Ping timeout: 264 seconds]
WishBoy has quit [Remote host closed the connection]
lolmaus has quit [Ping timeout: 272 seconds]
postmodern has joined #ruby
jottr has joined #ruby
<strelok> how would you iterate through that
lolmaus has joined #ruby
<wasamasa> gr33n7007h: is that your bot?
bradleyprice has joined #ruby
<godd2> ary.each do |a|; a.each do |sub_a|; end; end
<apeiros> strelok: the same way you iterate over every other array too: with each
<apeiros> ary.each do |row| row.each do |cell| … end end
wildroman2 has joined #ruby
yubrew has joined #ruby
BalkM has quit [Quit: Computer has gone to sleep.]
<strelok> how do i set the values though
<strelok> instead of array[y][x] = * ?
<apeiros> ary = Array.new(height) { Array.new(width, 1) } already sets the values
<apeiros> did you even try it?
BalkM has joined #ruby
Zebroid has joined #ruby
Wolland has joined #ruby
<apeiros> >> height = 3; width = 4; Array.new(height) { |y| Array.new(width) { |x| "#{x},#{y}" }
<eval-in_> apeiros => /tmp/execpad-7ca42fad7237/source-7ca42fad7237:3: syntax error, unexpected keyword_rescue, expecting '}' ... (https://eval.in/169589)
<apeiros> >> height = 3; width = 4; Array.new(height) { |y| Array.new(width) { |x| "#{x},#{y}" }}
<eval-in_> apeiros => [["0,0", "1,0", "2,0", "3,0"], ["0,1", "1,1", "2,1", "3,1"], ["0,2", "1,2", "2,2", "3,2"]] (https://eval.in/169590)
<strelok> i mean how do i access an indivudal element of the array (of arrays)
<strelok> as i iterate through it
<apeiros> strelok: you know how Array#each works?
<jhass> strelok: do you even try things?
<strelok> yes i think so
<jhass> strelok: fire up irb (or better pry) and toy around
<apeiros> strelok: it gives you the elements directly. you don't need to access it anymore from the array.
<strelok> im using curses and for each element in the array i need to move the cursor to the coordinates and print the element in the array
<agent_white> arr = Array.new(5) { Array.new(5, "x") } ; arr.each { |row| row.each { |col| print col} print "\n" };
bradleyprice has quit [Ping timeout: 252 seconds]
<apeiros> if you want to know what ruby's equivalent for `for(i=0; i<max; i++)` is, then ask that. the answer would be `max.times { |i| …`
<strelok> ok i see
<apeiros> that said, that's not how you iterate arrays in ruby.
<strelok> how do i get the number of the element
<apeiros> agent_white: as said, don't use Array.new(size, value) with a mutable value. "x" is mutable.
<godd2> you mean the index? each_with_index
andrewlio has quit [Quit: Leaving.]
<agent_white> apeiros: Ah yeah, I was just using an example so it could be printed out!
<strelok> map = Array.new(mapheight) { Array.new(mapwidth) { '.' } }
<agent_white> nil like to stay in the shadows ;P
<strelok> i have it initialized like this
<strelok> map.each do |row|
<jhass> if you need the coordinates alongside: ary.each_with_index {|row, x| row.each_with_index {|cell, y| p x, y, cell } }
<strelok> row.each do |cell|
<strelok> end
<strelok>
<strelok> end
parduse has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
<strelok> ah i see
<apeiros> strelok: >3 lines go to gist.github.com. thank you. see topic.
<strelok> thanks so much
<agent_white> strelok: Just fire up IRB. You'll find fancy things!
<jhass> er, I probably swapped x and y
<strelok> im really new to ruby
BalkM has quit [Ping timeout: 272 seconds]
Guest47155 has quit [Ping timeout: 240 seconds]
Wolland has quit [Ping timeout: 244 seconds]
<atmosx> hello
<atmosx> hello fellow rubyists
<strelok> holy shit it actually worked on the first run
<agent_white> Heya atmosx
lolmaus has quit [Remote host closed the connection]
<strelok> heres a pic
maximski has joined #ruby
<atmosx> strelok: I see many dots
<godd2> now you want to extract the drawing of the background to a Map class perhaps?
maximski has quit [Max SendQ exceeded]
<godd2> I think he's trying to write a game where he can move around his ASCII sprite.
kilk_ has joined #ruby
maximski has joined #ruby
<strelok> yeah im making a little roguelike dungeon game
<atmosx> I see
<strelok> theres the code so far
<strelok> i need to move stuff around
<strelok> and figure out how includes work in ruby
schaerli has joined #ruby
<atmosx> I never played dungeon's and dragons and I feel deprived. All the USA based techies have done it at least once :-(
<jhass> strelok: don't use 0 / 1 for true / false. Use true / false
<godd2> go find a group and get a Player's Handbook and a set of dice
<strelok> where did i do that
<atmosx> nah' too bored to do that, I was j/k
<strelok> oh i see
<jhass> strelok: and suddenly you can write until gameover instead of while gameover == 0
<strelok> i figured it didnt matter since im not using int and bool and that sort of thing
<strelok> although i think bool accepts 0 and 1
<strelok> iirc
<jhass> not in ruby
<jhass> in ruby 0 is truish
<atmosx> nil/something
<apeiros> >> x = "what"; if 0 then x = "zero is true!"; end; x
<eval-in_> apeiros => "zero is true!" (https://eval.in/169592)
<strelok> or while !gameover
<apeiros> only false-ish values are nil and false
<jhass> I prefer until instead of while !
<godd2> until gameover
<apeiros> meh. until gameover +1
wildroman2 has quit [Remote host closed the connection]
<jhass> strelok: most of the ruby community uses two spaces for indentation, but that's just a note
<strelok> i didnt do that
<strelok> that was gist
<strelok> i use two spaces
<atmosx> no you don't
<strelok> i dont know why gist does that
<apeiros> you use tabs set to two spaces, I'd assume :)
<strelok> but in my editor its all tabbed at two spaces
<atmosx> because you're anonymous
<atmosx> what editor is that?
<godd2> gist has an option of how to handle indentation
<strelok> vim
<godd2> when you make a gist
<strelok> i usually use codepad.org
<strelok> or pastebin or something
lolmaus has joined #ruby
<strelok> i think i forgot to set vim to use spaces as tabs
<strelok> and not tabs
<strelok> and thats why it did that when i pasted it
<apeiros> probably
<agent_white> set tabstop=2; set shiftwidth=2; in your .vimrc
<agent_white> erm... set expandtab; to make tabs to space.
<atmosx> works fine
<atmosx> rpi is sloooooow
* atmosx setting up his home network
* agent_white is going to bed
<agent_white> Goodnight! :)
agent_white has quit [Quit: night]
* godd2 didn't know we were doing this now
<atmosx> I wanna install vim and apt-get install gnuplot.
<atmosx> no X instgalled
<atmosx> wtf
<strelok> fixed version
<strelok> with sane tabbing
<godd2> on line 33 dont forget to make gameover = true
<strelok> lol oh right
<strelok> god
<strelok> im too high for this
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dapz has joined #ruby
Soda has joined #ruby
Soda has quit [Remote host closed the connection]
kilk_ has quit [Quit: Leaving]
mike32 has joined #ruby
PasNox has joined #ruby
mike32 has quit [Client Quit]
mike32 has joined #ruby
<PasNox> Hi all. Yesterday i upgraded my system to a new distribution version, that broken stuff in ruby. I did delete the content of vendor/ruby/2.0.0/gems and vendor/ruby/2.0.0/cache from /home/git/gitlab and the .bundle folder. Now i can no longer reinstall / rebuild the gems. What i can do to bring them back ?
<PasNox> when i start the bundle install, it tell me they are installed while they are not. any hinfos please?
chipotle has quit [Quit: cya]
<jhass> In future don't just blindly delete stuff. Use gem uninstall / bundle clean to remove a gem. Does /home/git/.gem exist on your system?
darkxploit has quit [Ping timeout: 248 seconds]
<atmosx> PasNox: remove everything, start from scratch
<atmosx> rvm is your friend
<jhass> and does vendor/ruby/2.0.0/specifications exist?
<atmosx> people use rbenv and another thing can't remember how is it called for gem management
<godd2> buy gasoline, set computer on fire, buy new computer
<PasNox> jhass: yeah,n i found command for correct things after having deleted stuff :/
<PasNox> vendor/bundle/ruby/2.0.0/specifications/ does exists
levo has joined #ruby
<jhass> PasNox: clean it
<PasNox> jhass: what that mean ?
<PasNox> deleting entirely ?
<jhass> should work too, yeah
<PasNox> atmosx: gitlab seems to use bundle / bundler
<PasNox> jhass: just specifications folder ?
<jhass> yeah, if that doesn't work get ird of vendor/bundle entirely
hgl has joined #ruby
<jhass> *rid
<PasNox> jhass:
<PasNox> pasnox@hostname:/home/git/gitlab$ sudo -u git -H bundle install --deployment --without development test postgres aws
<PasNox> Some gems seem to be missing from your vendor/cache directory.
<PasNox> Could not find rake-10.3.1 in any of the sources
<PasNox> pasnox@hostname:/home/git/gitlab$
<PasNox> i deleted entirely bundle, same error
<jhass> vendor/cache too then
<PasNox> ah better, it s fetching gems index
pabloh has quit [Ping timeout: 240 seconds]
<PasNox> it's reinstalling :)
<PasNox> jhass: many thanks
<levo> i don't know anything about ruby, i wanted to install devdocs, everything was solved but downloading the documentations which gives these errors: http://ideone.com/U91sGD please please help me.
pabloh has joined #ruby
shredding has joined #ruby
<jhass> levo: sounds like an issue in the project, reach out to them
ta__ has joined #ruby
ta has quit [Read error: Connection reset by peer]
jack_rabbit has quit [Ping timeout: 255 seconds]
darkxploit has joined #ruby
jack_rabbit has joined #ruby
gr33n7007h has quit [Ping timeout: 244 seconds]
sameerynho has joined #ruby
<jhass> levo: actually it looks like the project is only compatible with Ruby >= 2.0
voodoofish has quit [Quit: Leaving.]
bradhe has joined #ruby
<jhass> 2.1 even according to their readme
lxsameer has quit [Ping timeout: 272 seconds]
<levo> jhass: so that's the problem?
senayar has joined #ruby
<jhass> yes
reset has joined #ruby
<levo> jhass: what should i do exactly though? the latest version in ubuntu repo is 1.9.x
<jhass> the easiest path is probably install RVM
<jhass> (not through the repos!)
BalkM has joined #ruby
lxsameer_ has joined #ruby
schaerli has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 244 seconds]
jamto11 has joined #ruby
sameerynho has quit [Ping timeout: 240 seconds]
reset has quit [Ping timeout: 240 seconds]
sameerynho has joined #ruby
Noob101 has quit [Ping timeout: 246 seconds]
timfoo has quit [Ping timeout: 255 seconds]
alem0lars has quit [Quit: Going AFK...]
jamto11 has quit [Ping timeout: 260 seconds]
doev has joined #ruby
yubrew has joined #ruby
Zebroid has quit [Remote host closed the connection]
lxsameer_ has quit [Ping timeout: 260 seconds]
sameerynho has quit [Ping timeout: 240 seconds]
sameerynho has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
mike32 has quit [Ping timeout: 260 seconds]
Wolland has joined #ruby
BalkM_ has joined #ruby
Wolland has quit [Ping timeout: 255 seconds]
BalkM has quit [Read error: Connection reset by peer]
moritzs has joined #ruby
timfoo has joined #ruby
toretore has joined #ruby
prateek_mir has quit [Ping timeout: 240 seconds]
BalkM_ has quit [Quit: Lingo - http://www.lingoirc.com]
chipotle has joined #ruby
t_p has joined #ruby
hakunin has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
shvelo has joined #ruby
moritzs has quit [Ping timeout: 248 seconds]
BalkM has joined #ruby
mbwe has quit [Quit: WeeChat 0.4.2]
adac has joined #ruby
mrmargolis has joined #ruby
<apeiros> interesting. 2 divmods is slower than 2 divs + 2 mods
alem0lars has joined #ruby
<jhass> hm, array construction I guess?
mercwithamouth has joined #ruby
<apeiros> yes, same thought here
carraroj has quit [Ping timeout: 255 seconds]
<apeiros> so v=c12.to_i;m,d=v.divmod(100);y,m=m.divmod(100);Date.civil(y,m,d) is 5.6x faster than Date.civil(*c12.match(/^(\d{4})(\d\d)(\d\d)$/).captures.map(&:to_i)) :)
<apeiros> and yes, matters for my use case. I parse thousands.
bmurt has joined #ruby
<apeiros> whoops, copied the wrong
<apeiros> fixed: so v=c12.to_i;Date.civil(v.div(10000), v.div(100)%100, v%100) is 5.6x faster than Date.civil(*c12.match(/^(\d{4})(\d\d)(\d\d)$/).captures.map(&:to_i)) :)
<jhass> I guess that's one of the reasons many languages have a tuple type
<godd2> Numeric#divmod just does this: return rb_assoc_new(num_div(x, y), num_modulo(x, y));
mrmargolis has quit [Ping timeout: 255 seconds]
<apeiros> godd2: yes, and rb_assoc_new creates an array with 2 elements
pabloh has quit [Quit: Saliendo]
<apeiros> which is probably why it's more expensive than the two operations separated
jack_rabbit has quit [Ping timeout: 260 seconds]
<apeiros> jhass: since ruby only has classes and no types, it wouldn't matter. as far as object construction goes, rb_assoc_new is probably as fast as it gets.
<apeiros> ah, yeah, I tested `Date.civil(c12[0,4].to_i, c12[4,2].to_i, c12[6,2].to_i)` too. it takes 1.7x the time of the fastest
kirun has joined #ruby
vifino has joined #ruby
bmurt has quit []
bmurt has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
chipotle has quit [Ping timeout: 255 seconds]
timonv has joined #ruby
vifino has quit [Ping timeout: 240 seconds]
doev has quit [Quit: Verlassend]
mostlybadfly has joined #ruby
jpierre03 has quit [Read error: Connection reset by peer]
centrx has joined #ruby
jpierre03 has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradhe has joined #ruby
yakko has joined #ruby
grzywacz has joined #ruby
grzywacz has joined #ruby
mbwe has joined #ruby
mbwe has quit [Client Quit]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
bradhe has quit [Ping timeout: 240 seconds]
t_p has quit [Ping timeout: 240 seconds]
mbwe has joined #ruby
yakko has quit [Ping timeout: 255 seconds]
tus has joined #ruby
bradleyprice has joined #ruby
godd2 has quit [Ping timeout: 252 seconds]
reset has joined #ruby
eka has joined #ruby
mercwith1mouth has joined #ruby
bradleyprice has quit [Ping timeout: 240 seconds]
agjacome has quit [Ping timeout: 264 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
reset has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phoo1234567 has joined #ruby
<levo> jhass: in my adventures way i still have some problems :D http://ideone.com/U91sGD
<jhass> looks like you're missing development headers
<levo> what's that?
Wolland has joined #ruby
senayar has quit [Remote host closed the connection]
<jhass> so you went with the brightbox repos?
<levo> yes
<jhass> try installing ruby2.1-dev
prateek_mir has joined #ruby
senayar has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Wolland has quit [Ping timeout: 260 seconds]
senayar has quit [Ping timeout: 252 seconds]
timonv has quit [Remote host closed the connection]
oo_ has joined #ruby
jpierre03 has quit [Ping timeout: 260 seconds]
bmurt has quit []
schaerli has joined #ruby
obs has quit [Remote host closed the connection]
cristine__ has joined #ruby
timonv has joined #ruby
mercwith1mouth has quit [Ping timeout: 260 seconds]
jpierre03 has joined #ruby
Connie_ has quit [Ping timeout: 255 seconds]
schaerli has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
mijicd has quit [Remote host closed the connection]
dangerousdave has quit []
rkazak has quit [Quit: rkazak]
<BalkM> Hey Guys - i have a dumb question but really interesting and lot of stuff to talk: How much Pain is it to take a Ruby Application to jRuby?
hakunin has joined #ruby
JBreit has joined #ruby
bradhe has joined #ruby
thomasxie has joined #ruby
benzrf|offline is now known as benzrf
<benzrf> BalkM: depends
<benzrf> what libs are you using?
<benzrf> and what yarv version are you using?
uffs has quit [Ping timeout: 248 seconds]
bradhe has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
prateek_mir has quit [Ping timeout: 248 seconds]
yubrew has joined #ruby
oo_ has quit [Remote host closed the connection]
<BalkM> i was just asking generally ... there is only support to 1.9.3 ... so what do i have to keep in behind head if i want to build a Ruby Application which should ruby in/on jRuby too?
mikecmpbll has joined #ruby
sameerynho has quit [Ping timeout: 255 seconds]
yubrew has quit [Ping timeout: 248 seconds]
Hobogrammer has quit [Ping timeout: 264 seconds]
reset has joined #ruby
Atttwww has quit [Ping timeout: 252 seconds]
Hanmac1 has joined #ruby
jamto11 has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
ferr has joined #ruby
sameerynho has joined #ruby
sdouglas has joined #ruby
reset has quit [Ping timeout: 264 seconds]
jamto11 has quit [Ping timeout: 248 seconds]
Deele has joined #ruby
sdouglas has quit [Ping timeout: 252 seconds]
yacks has quit [Ping timeout: 255 seconds]
jhass is now known as jhass|off
BalkM has quit [Quit: Computer has gone to sleep.]
BalkM has joined #ruby
Wolland has joined #ruby
BalkM has quit [Ping timeout: 255 seconds]
alem0lars has quit [Quit: Going AFK...]
Wolland has quit [Ping timeout: 255 seconds]
shvelo has quit [Ping timeout: 264 seconds]
magomez has joined #ruby
moritzs has joined #ruby
jhass|off is now known as jhass
User458764 has joined #ruby
Lucky__ has joined #ruby
mrmargolis has joined #ruby
centrx has joined #ruby
Lucky__ has quit [Client Quit]
strelok has quit []
maximski_ has joined #ruby
yacks has joined #ruby
timonv has joined #ruby
mrmargolis has quit [Ping timeout: 264 seconds]
carraroj has joined #ruby
maximski has quit [Ping timeout: 264 seconds]
<Beoran> BalkM, https://www.ruby-forum.com/topic/4423122 <- jruby will likely have ruby 2.1 support this summer
<centrx> This summer...that's now!
<Beoran> well, around august I guess
Ankhers has joined #ruby
<Beoran> anyway, it means that if you're starting a new application and if rollout is not for say, winter, then jruby support for 2.1 should be likely available , so you can use 2.1 features if needed.
<Beoran> Personally, though, I stick to 1.9.3 features for a while, for mruby's sake.
prateek_mir has joined #ruby
hakunin_ has joined #ruby
tacos1de has quit [Ping timeout: 264 seconds]
BalkM has joined #ruby
hakunin has quit [Ping timeout: 244 seconds]
mbwe has quit [Quit: WeeChat 0.4.2]
bradleyprice has joined #ruby
tacos1de has joined #ruby
yubrew has joined #ruby
tungd has joined #ruby
bradleyprice has quit [Ping timeout: 272 seconds]
danijoo_ has quit [Quit: Leaving...]
yubrew has quit [Ping timeout: 252 seconds]
marr has quit [Ping timeout: 252 seconds]
senayar has joined #ruby
benzrf is now known as benzrf|offline
maximski_ has quit []
britneywright has joined #ruby
brian___ has joined #ruby
Lewix has joined #ruby
iswell has joined #ruby
shvelo has joined #ruby
reset has joined #ruby
shredding has quit [Quit: shredding]
DouweM has joined #ruby
reset has quit [Ping timeout: 272 seconds]
camilasan has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
charliesome has joined #ruby
neiled has joined #ruby
neiled has quit [Max SendQ exceeded]
shredding has joined #ruby
lkba has joined #ruby
Wolland has joined #ruby
prateek_mir has quit [Ping timeout: 264 seconds]
schaerli has joined #ruby
schaerli has quit [Remote host closed the connection]
grzywacz has quit [Quit: :wq]
bogeyd6 has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
Wolland has quit [Ping timeout: 255 seconds]
timonv has quit [Remote host closed the connection]
chipotle has joined #ruby
Eyes has quit [Quit: X probably crashed]
Eyes has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr has joined #ruby
DivineEntity has quit [Ping timeout: 255 seconds]
carraroj has quit [Ping timeout: 244 seconds]
VTLob has joined #ruby
oo_ has joined #ruby
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
vifino has joined #ruby
skysploit has joined #ruby
skysploit has quit [Remote host closed the connection]
eka has joined #ruby
carraroj has joined #ruby
schaerli has joined #ruby
zz_karupa is now known as karupa
schaerli has quit [Remote host closed the connection]
soulcake has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
Lewix has joined #ruby
iswell has joined #ruby
soulcake has joined #ruby
buub has joined #ruby
<PasNox> jhass: thanks again. all gems rebuilt - my application works again !!!
bradhe has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
levo has quit [Remote host closed the connection]
gruz0[russia] has quit [Ping timeout: 240 seconds]
certainty has quit []
sameerynho has quit [Quit: Leaving]
certainty has joined #ruby
karupa is now known as zz_karupa
bradhe has quit [Ping timeout: 240 seconds]
nasj has joined #ruby
SilverKey has joined #ruby
mr_snowf1ake has joined #ruby
vifino has quit [Quit: Ze Cat now leaves...]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
railzForDaiz has joined #ruby
moritzs has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
<apeiros> (asking over in #ruby-lang too) Anybody know a decent profiler for plain ruby 2.1 apps?
yubrew has joined #ruby
obs has joined #ruby
<apeiros> mentions on #ruby-lang so far: ruby-prof, stackprof, memory_profiler
timfoo has quit [Ping timeout: 255 seconds]
<apeiros> I'm interested in experiences with them too, though
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
ValicekB has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
carraroj has quit [Ping timeout: 240 seconds]
gruz0[russia] has joined #ruby
eka has joined #ruby
TorpedoSkyline has joined #ruby
dopie has quit [Quit: Leaving]
thomasxie has left #ruby [#ruby]
nasj has quit [Remote host closed the connection]
bmurt has joined #ruby
zorak has quit [Ping timeout: 264 seconds]
zorak has joined #ruby
timfoo has joined #ruby
iamjarvo has joined #ruby
end_guy has quit [Remote host closed the connection]
hakunin_ has quit [Remote host closed the connection]
end_guy has joined #ruby
hakunin has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
reset has joined #ruby
<certainty> hmm something fishy is going on with that upgrade from 1.8.7 to 2.0. I have a network component that sometimes doesn't seem to work correctly anymore. Though reproducable it doesn't make sense ... hmm
happytux has quit [Read error: Connection reset by peer]
jamto11 has joined #ruby
freerobby has quit [Quit: Leaving.]
magomez has quit [Quit: Leaving]
happytux has joined #ruby
hakunin has quit [Ping timeout: 260 seconds]
Eyes has quit [Quit: X probably crashed]
reset has quit [Ping timeout: 252 seconds]
jamto11 has quit [Ping timeout: 252 seconds]
razum2um has joined #ruby
darkxploit has quit [Read error: Connection reset by peer]
railzForDaiz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has joined #ruby
anaeem1 has quit [Remote host closed the connection]
earthquake has joined #ruby
SilverKey has quit [Quit: Halted.]
jottr_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Wolland has quit [Ping timeout: 260 seconds]
mikecmpbll has joined #ruby
<apeiros> HRM
jottr has quit [Ping timeout: 248 seconds]
<apeiros> whoops, capslock
maximski has joined #ruby
postmodern has quit [Quit: Leaving]
maximski has quit [Max SendQ exceeded]
* apeiros ponders whether "keep it all in ram" will still work for postal master data when all street names and numbers are added as well :-/
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
mikemac has quit [Remote host closed the connection]
isthisreallife has joined #ruby
maximski has joined #ruby
isthisreallife has left #ruby [#ruby]
rdark has quit [Quit: leaving]
shredding has quit [Quit: shredding]
Eyes has joined #ruby
uffs has joined #ruby
chipotle has quit [Quit: cya]
mijicd has joined #ruby
railzForDaiz has joined #ruby
bmurt has quit []
timonv has joined #ruby
peret has joined #ruby
neiled has joined #ruby
mrmargolis has joined #ruby
chipotle has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Beoran has quit [Ping timeout: 248 seconds]
bradleyprice has joined #ruby
bmurt has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mrmargolis has quit [Ping timeout: 264 seconds]
arrubin has joined #ruby
<certainty> cat /proc/mdstat
<certainty> erm
yubrew has joined #ruby
TorpedoSkyline has joined #ruby
brian___ has quit [Quit: brian___]
bmurt has quit [Client Quit]
timonv has quit [Remote host closed the connection]
ghr has joined #ruby
vifino has joined #ruby
bradleyprice has quit [Ping timeout: 255 seconds]
yubrew has quit [Ping timeout: 260 seconds]
mikemac has joined #ruby
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 252 seconds]
skysploit has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
carraroj has joined #ruby
skysploit has quit [Read error: Connection reset by peer]
skysploit has joined #ruby
Beoran has joined #ruby
skysploit has quit [Read error: Connection reset by peer]
agjacome has joined #ruby
skysploit has joined #ruby
skysploit has quit [Changing host]
skysploit has joined #ruby
Hanmac1 has quit [Quit: Leaving.]
mrmargolis has joined #ruby
Hanmac has joined #ruby
bmurt has joined #ruby
brunops has quit [Ping timeout: 255 seconds]
brunops has joined #ruby
carraroj has quit [Ping timeout: 244 seconds]
skysploit has quit [Ping timeout: 272 seconds]
chipotle has quit [Quit: cya]
warprobot has joined #ruby
fwaokda has quit [Quit: Leaving]
zorak has quit [Ping timeout: 240 seconds]
Lewix has joined #ruby
iswell has joined #ruby
obs has quit [Remote host closed the connection]
ekinmur has joined #ruby
<shevy> certainty hey cool
<shevy> certainty you were on 1.8.7
<shevy> ruby fossil hacker
m8 has joined #ruby
reset has joined #ruby
chipotle has joined #ruby
ekinmur has quit [Client Quit]
carraroj has joined #ruby
techsethi has joined #ruby
GriffinHeart has joined #ruby
iamjarvo has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has quit []
schaerli has joined #ruby
reset has quit [Ping timeout: 272 seconds]
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TorpedoSkyline has joined #ruby
shvelo has quit [Ping timeout: 260 seconds]
sdouglas has joined #ruby
mityaz has quit [Quit: See ya!]
mike32 has joined #ruby
schaerli has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
mrmargolis has quit [Remote host closed the connection]
IceDragon has joined #ruby
sdouglas has quit [Ping timeout: 248 seconds]
hakunin has joined #ruby
kaihara has joined #ruby
SilverKey has joined #ruby
Xeago has joined #ruby
einarj has joined #ruby
linoespinoza has joined #ruby
oo_ has joined #ruby
timonv has joined #ruby
Evixion has quit []
mjsmith2 has joined #ruby
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
bradhe has joined #ruby
pwh_ has joined #ruby
momomomomo has joined #ruby
pwh has quit [Ping timeout: 244 seconds]
Neomex has joined #ruby
maximski has quit []
einarj has quit [Remote host closed the connection]
schaerli has joined #ruby
kireevco has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
arrubin has joined #ruby
hpoydar has joined #ruby
TheMoonMaster has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
carraroj has quit [Quit: Konversation terminated!]
xcv has joined #ruby
CaptainJet has joined #ruby
DouweM has quit [Ping timeout: 244 seconds]
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
aspires has joined #ruby
freerobby has joined #ruby
isthisreallife has joined #ruby
carraroj has joined #ruby
isthisreallife has left #ruby [#ruby]
chipotle has quit [Quit: cya]
<matti> apeiros: That sounds like "famous last words" ;]
<apeiros> matti: it's only switzerland. it might still be viable.
<apeiros> zip code data alone was palatable. forgot how much it consumed, though.
yakko has joined #ruby
Xeago has quit [Remote host closed the connection]
<apeiros> just tried - zip codes alone without any autocompletion data generated is 27MB
<apeiros> with autocompletion data generated, it's at 33MB
<apeiros> streets + housenumbers might easily quadruple that. but I won't know until I've got access granted to the full dataset :-/
linoespinoza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> the question is - if not everything is in-memory, what dependency should I use? activerecord + whatever db the user uses? or ship it as an sqlite3 db and require sqlite3 as a dependency?
LexicalScope has joined #ruby
carraroj has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yakko has quit [Ping timeout: 272 seconds]
bmurt has joined #ruby
<apeiros> GAWD, it would be really nice if safari wouldn't spawn new windows on the fullscreened tv…
Channel6 has joined #ruby
<matti> apeiros: Depends how big/flexible this suppose to be.
<apeiros> the datasize is relatively static
Spami has joined #ruby
skysploit has joined #ruby
Spami__ has joined #ruby
<apeiros> or what do you mean wrt "big"?
LexicalScope` has joined #ruby
hpoydar has quit [Remote host closed the connection]
<matti> I meant, project.
<matti> If you ship only a library/gem that someone will include.
teddyp1cker has joined #ruby
mrmargolis has joined #ruby
<apeiros> it's a library gem. it provides access to postal master data. zip codes, cities and streets/street numbers.
<matti> Then make it load sqlite3 as a source and then provide lazy lookup with memoize.
aspires has quit []
<apeiros> that's what I'm pondering
<apeiros> without the memoize, though
<apeiros> I rather optimize the sqlite3 lookup
<matti> OK, s/memoize/lrucache/
<matti> ;]
<apeiros> caching should be a user concern
zkay11 has joined #ruby
<matti> True.
<apeiros> lru?
oo_ has quit [Remote host closed the connection]
<jhass> least recently used I guess?
<apeiros> ah
<matti> Yes
<apeiros> i.e. cache last N used values
<jhass> yeah, and push to front on access
<apeiros> using sqlite would also make it easier to provide a swissmatch-rails gem which allows you to use an arbitrary database.
<apeiros> I think that's where I'll go
adac has quit [Quit: Leaving]
<apeiros> means I'll finally add db backed autocompletion to the autocomplete gem. planned that for ages :)
<apeiros> *planned to do that for ages
<apeiros> (I didn't actually spend ages planning it ;-) )
senayar has quit [Remote host closed the connection]
<matti> jhass: That's what I'd do.
<apeiros> it's somewhat sad ruby doesn't have a native DLL DS
senayar has joined #ruby
<apeiros> for caches, that's nice to have. yes, I can write it in ruby quickly, but it's not anywhere near as memory efficient as a native solution would be.
AlSquire has joined #ruby
<jhass> time for crystal :P
<apeiros> crystal?
aspires has joined #ruby
<jhass> crystal-lang.org
schaerli has quit [Remote host closed the connection]
<apeiros> DAMIT
<apeiros> must remember not to close the last safari window on the primary screen :-S
schaerli has joined #ruby
hpoydar has joined #ruby
<apeiros> jhass: oh, yet another ruby fork?
<jhass> deeply inspired
<matti> jhass: I blame you.
<matti> jhass: Now I will waste time spinning this little crystal there.
<matti> ;s
<jhass> but they're not afraid to break behavior if it makes more sense for what they do / it's faster
<apeiros> matti: is that like in pokemon? just instead of "I choose you!" it's "I blame you!"?
LexicalScope` has quit [Quit: Leaving]
senayar has quit [Ping timeout: 264 seconds]
<matti> apeiros: I hope that jhass is not going to jump out from a small red ball.
<matti> ;]
<apeiros> your balls are red and small? you should go see a doctor
<apeiros> *scnr*
<matti> Oh course.
mehlah has joined #ruby
<matti> This was bound to be there
<matti> LOL
<matti> ;]
<matti> apeiros: Haha
<jhass> matti: I couldn't resist...
Spami__ has quit [Quit: This computer has gone to sleep]
Spami has quit [Quit: This computer has gone to sleep]
reset has joined #ruby
<matti> jhass: 2048 was you?
<jhass> that sample, yeah
jamto11 has joined #ruby
AlSquirrel has joined #ruby
* apeiros sobs
<apeiros> I want more time for stuff like that :(
<apeiros> why does my lifespan have to be limited? silly human nature :(
<matti> apeiros: Were you doing so cool thing?
jmbrown412 has joined #ruby
<apeiros> matti: hm?
<apeiros> I'm starting and abandoning cool things all the time.
AlSquirrel has quit [Read error: Connection reset by peer]
<jhass> I really hope crystal gets stable enough to actually use. It won't replace ruby, but I can imagine a good bridge to write ruby exts in it and that would make it super easy to externalize performance critical code
AlSquire has quit [Ping timeout: 240 seconds]
<jhass> like they wrote the initial compiler in ruby and then started a compiler in crystal by copy pasting that code and making the necessary changes
saarinen has joined #ruby
<matti> jhass: What about Elixir?
<matti> jhass: Or Rust.
jamto11 has quit [Ping timeout: 252 seconds]
mjsmith2 has quit [Remote host closed the connection]
reset has quit [Ping timeout: 272 seconds]
LexicalScope` has joined #ruby
<jhass> crystal is just a lot closer to ruby, so I don't have to learn that much new stuff. Not that it's a bad thing to do, I just don't have the time/motivation currently
neiled has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
techsethi has quit [Quit: techsethi]
<matti> If I only had kids ;]
bradhe has joined #ruby
<apeiros> if you had kids, you wouldn't have time to build such stuff
<matti> Haha
mrmargolis has quit [Remote host closed the connection]
<matti> jhass: Seem like a pleasunt language.
razum2um has quit [Quit: Leaving.]
mrmargolis has joined #ruby
<matti> I never wrote a compiler.
<matti> Perhaps I should.
<matti> Or design a pet language.
AlexRussia has quit [Remote host closed the connection]
Xeago has joined #ruby
<matti> To pass this ancient rite as developer.
<matti> ;D
bradleyprice has joined #ruby
<apeiros> naw
<apeiros> all you have to do is write a webframework
<apeiros> compiler/language is for the nerdclub™
yubrew has joined #ruby
lkb has joined #ruby
britneywright has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matti> I don't have such cool hair style like dhh.
<matti> Plus web frameworks don't excite me.
<apeiros> ah right, driving le mans is also a requirement
hpoydar has quit [Remote host closed the connection]
<matti> My background is on the system/operations side.
<matti> I'd want to build something actually useful ;p
hpoydar has joined #ruby
<matti> apeiros: He did do that? I had no idea.
* matti also does not have driving license.
<matti> ;]
bradleyprice has quit [Ping timeout: 240 seconds]
<apeiros> neither do I
einarj has joined #ruby
<apeiros> I should really finally get one. *sob*
<apeiros> TIME! DAMIT!
eka has joined #ruby
<matti> apeiros: I know!
yubrew has quit [Ping timeout: 240 seconds]
einarj has quit [Remote host closed the connection]
<matti> apeiros: I will post another one of these posts on HN -- I just discovered bash, and I will tell you all about how to use ls and ls --color.
iamjarvo has joined #ruby
gregf has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
AlexRussia has joined #ruby
<shevy> on HungaryNews?
setra has joined #ruby
saarinen has joined #ruby
<matti> There too.
mrmargolis has quit [Remote host closed the connection]
Takle has joined #ruby
<apeiros> shevy: HorrorNews
pushpak has joined #ruby
Xeago has quit [Remote host closed the connection]
<matti> Horror ... Hacker
<matti> Shame difference nowadays ;]
<matti> Haha
<matti> Same*
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
Cache_Money has joined #ruby
maximski has joined #ruby
aspires has quit []
<shevy> lol
<shevy> that's a great typo matti
maximski has quit [Max SendQ exceeded]
<shevy> I am ashamed of the differences!
<shevy> somehow matti types as if he is under a sugar rush
<shevy> what are you doing matti? watching TV or something?
<matti> No.
maximski has joined #ruby
<matti> My girlfriend is bothering me.
maximski has quit [Max SendQ exceeded]
<matti> And I can't do anything for myself today ;]
<shevy> show her your appreciation
<shevy> and close your IRC client now
<matti> LOL
maximski has joined #ruby
Azure_ has joined #ruby
mrmargolis has joined #ruby
<shevy> if I want to generate a rather large, complicated .sql file
<shevy> with ruby... what should I preferrentially use?
happytux has quit [Ping timeout: 260 seconds]
<jhass> hm, ERB?
ghr has joined #ruby
happytux_ has joined #ruby
<jhass> or Sequel and insert directly
senayar has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 240 seconds]
<shevy> hmm
echevemaster has joined #ruby
doev has joined #ruby
yakko has joined #ruby
hpoydar has quit [Remote host closed the connection]
idiocrash has quit [Quit: Textual IRC Client: www.textualapp.com]
saarinen has quit [Quit: saarinen]
chipotle has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
happytux_ has quit [Ping timeout: 252 seconds]
Spami has joined #ruby
Spami__ has joined #ruby
<mike32> what do u think about Julia lang
gregf has joined #ruby
<mike32> seems it s very likely to crystal
yakko has quit [Ping timeout: 264 seconds]
Spami__ has quit [Client Quit]
Spami has quit [Client Quit]
bmurt has quit []
altin has joined #ruby
<altin> can anyone help me with this ?
<altin> An error occurred while installing nokogiri (1.5.2), and Bundler cannot continue.
Spami has joined #ruby
<apeiros> altin: any specific reason you use an outdated version of nokogiri?
Spami__ has joined #ruby
starkhalo has joined #ruby
<dangerousdave> can I express this in a different way without the do? https://gist.github.com/deathwishdave/1f75b57014fe611e682a
<altin> We'll tere is a platform I want to install and test it apeiros
<apeiros> that doesn't actually answer my question altin
<altin> the platform uses that version... apeiros
<apeiros> I suggest you try with a current version of nokogiri
<apeiros> what's a "platform"? platforms as I know it don't have specific ruby gem versions…
Spami__ has quit [Client Quit]
Spami has quit [Quit: Leaving]
Lewix has joined #ruby
iswell has joined #ruby
bricker`LA has joined #ruby
<apeiros> altin: that's called "a rails app", not a platform.
GriffinHeart has joined #ruby
<apeiros> and I stick to what I said: upgrade to a current nokogiri.
timonv has quit [Remote host closed the connection]
thomasxie has joined #ruby
<Lewix> hi all
Soda has joined #ruby
Neomex has quit [Quit: Leaving]
GriffinHeart has quit [Ping timeout: 255 seconds]
mrmargolis has quit [Remote host closed the connection]
maximski has quit []
lxsameer has joined #ruby
<dangerousdave> can I express this in a different way without the "do"? https://gist.github.com/deathwishdave/1f75b57014fe611e682a
<apeiros> dangerousdave: you'd have to read Mail gem's docs. but iirc no.
idiocrash has joined #ruby
<dangerousdave> apeiros, it looks messy to me. Thats the only exaple in the docs http://rdoc.info/github/mikel/mail/master/Mail/SMTP
reset has joined #ruby
linoespinoza has joined #ruby
senayar_ has joined #ruby
reset has quit [Ping timeout: 252 seconds]
senayar has quit [Ping timeout: 248 seconds]
TorpedoSkyline has joined #ruby
brian___ has joined #ruby
thomasxie has quit [Ping timeout: 260 seconds]
railzFor_ has joined #ruby
senayar_ has quit [Client Quit]
hpoydar has joined #ruby
thomasxie has joined #ruby
railzFor_ has quit [Client Quit]
vifino has quit [Quit: Me sais Laptop sleepy.]
chipotle has quit [Quit: cya]
Lanoree has joined #ruby
mijicd has quit [Read error: Connection reset by peer]
hpoydar has quit [Ping timeout: 252 seconds]
heftig has quit [Quit: Quitting]
yubrew has joined #ruby
setra has quit [Ping timeout: 264 seconds]
mjsmith2 has joined #ruby
heftig has joined #ruby
dapz has joined #ruby
Lanoree has quit [Remote host closed the connection]
doev has quit [Read error: Connection timed out]
railzForDaiz has quit []
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
mjsmith2 has quit [Ping timeout: 240 seconds]
yubrew has quit [Ping timeout: 272 seconds]
<ericwood> hey, trying to write my first DSL...this is the first crack at it and kind of the interface I'm going for:
<ericwood> but...it doesn't work (obviously)
<ericwood> can someone who knows a thing or two about DSL writing give me a quick hand with it?
<jhass> yield -> instance_eval
<ericwood> so, instance_eval(block)?
<jhass> instance_eval(&block)
mattstratton has joined #ruby
<ericwood> ah because & converts to a proc
<ericwood> SWEET
<ericwood> it works!
<ericwood> I will buy you a virtual beer
<Mon_Ouie> It's not about converting, it's about passing the argument as a block argument
<ericwood> ah okay
<ericwood> I never fully grasped &
<ericwood> my roomba DSL is well on its way now :)
<Mon_Ouie> >> def foo(normal_arg = nil, &block_arg); [normal_arg, block_arg]; end; foo(&(proc {}))
<eval-in_> Mon_Ouie => [nil, #<Proc:0x415d6344@/tmp/execpad-9fd37782acd5/source-9fd37782acd5:2>] (https://eval.in/169662)
retnuh has joined #ruby
<Mon_Ouie> >> def foo(normal_arg = nil, &block_arg); [normal_arg, block_arg]; end; foo(proc {})
<eval-in_> Mon_Ouie => [#<Proc:0x4092a30c@/tmp/execpad-d9628e55a679/source-d9628e55a679:2>, nil] (https://eval.in/169663)
<Mon_Ouie> In both case it's already a Proc, but it gets passed as a regular argument normally (and thus bound to normal_arg). With '&' you pass it as a block argument and it is bound to 'block_arg'.
<ericwood> ah okay sweet
nasj has joined #ruby
<ericwood> that makes more sense
Arkaniad has joined #ruby
Arkaniad|Laptop has joined #ruby
Arkaniad has quit [Read error: Connection reset by peer]
retnuh has left #ruby [#ruby]
darkxploit has joined #ruby
<ericwood> you guys rock, as always
TorpedoSkyline has quit [Quit: Textual IRC Client: www.textualapp.com]
retnuh has joined #ruby
<ericwood> other question: using this approach, how would I yield the class' instance as an arg to the block
<Lewix> ericwood: sounds familiar
<ericwood> so I could do something like Roomba.new { |roomba| roomba.whatevs } ???
<jhass> ericwood: you rarely do both, you'd just do yield self
<Mon_Ouie> It already does
<ericwood> hmm
<Mon_Ouie> >> 3.insteance_eval { |x| puts x }
<eval-in_> Mon_Ouie => undefined method `insteance_eval' for 3:Fixnum (NoMethodError) ... (https://eval.in/169664)
<Mon_Ouie> >> 3.instance_eval { |x| puts x }
<eval-in_> Mon_Ouie => 3 ... (https://eval.in/169665)
<ericwood> ah you're right
<ericwood> sweet
darkxploit has quit [Read error: Connection reset by peer]
nitin_ has joined #ruby
basichash_ has joined #ruby
darkxploit has joined #ruby
basichash_ has quit [Client Quit]
nitin_ has quit [Read error: Connection reset by peer]
basichash has joined #ruby
<basichash> What's the shortest way of return an array of values [1..10]?
<ericwood> (1..10).to_a
<basichash> thanks
<ericwood> >> (1..10).to_a
<ericwood> ranges are pretty fuckin sweet :D
darkxploit has quit [Read error: Connection reset by peer]
nitin_ has joined #ruby
nitin_ has quit [Read error: Connection reset by peer]
ndrei has quit [Remote host closed the connection]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ericwood> ugh do I use %i and make my lib incompatible with ruby 1.9?
<ericwood> that doesn't seem fair
<apeiros> ericwood: if it's public: IMO no
<apeiros> if it's for yourself: fuck 1.9
<ericwood> or do I use %w.map(&:to_sym)
marr has joined #ruby
<ericwood> also, as far as library design goes, should I separate out constants into a separate file?
<ericwood> I have hundreds
<apeiros> yes
<ericwood> sweet
<apeiros> FooBar::Baz --> foo_bar/baz.rb
wildroman2 has joined #ruby
<apeiros> and your gem name should reflect the main require
<apeiros> foo_bar-baz --> require 'foo_bar/baz' --> FooBar::Baz
<ericwood> this is the shit I'm working with: https://github.com/eric-wood/roomba/blob/master/lib/rumba.rb
<ericwood> trying to clean it up whilst turning pieces into a DSL that's kid-friendly
ndrei has joined #ruby
tungd has quit [Ping timeout: 244 seconds]
linoj has joined #ruby
rkazak has joined #ruby
<ericwood> the less clean code was from a gigantic pull request (yes, someone else is using this shit!)
linoj has left #ruby [#ruby]
rkazak has left #ruby [#ruby]
maestrojed has joined #ruby
<ericwood> ugh, only thing that sucks about %w is the inability to comment on each line if I split it up
thomasxie has quit [Remote host closed the connection]
ghr has joined #ruby
britneywright has joined #ruby
Ankhers has quit [Remote host closed the connection]
anaeem1 has joined #ruby
Ankhers has joined #ruby
LadyRainicorn has joined #ruby
<Rylee> How would I convert the string "\x00\x00\x00\xB5" to a number? The max value is FFFFFFFF, and that string conveys that it's 181 currently.
zorak has joined #ruby
<Beoran> Rylee, I think s.unpack will help you
<Rylee> HMM
<Rylee> Oh, right!
<Rylee> There's more than just 'C'.
<Rylee> Thanks for the reminder.
ghr has quit [Ping timeout: 272 seconds]
<Rylee> .unpack 'L>' was exactly what I was after, thanks much
voodoofish has joined #ruby
<iswell> Rylee: remind me what .unpack does
<Rylee> iswell, it unpacks a string packed with binary data
supernullset has joined #ruby
supernullset has quit [Client Quit]
kireevco has quit [Quit: Leaving.]
freerobby has quit [Quit: Leaving.]
timonv has joined #ruby
<ericwood> hey, as far as structuring a gem goes, how is this for separation?
<ericwood> are there any drawbacks to that pattern?
<ericwood> trying to figure out the "right way" to set this all up
freerobby has joined #ruby
<apeiros> .size.zero? <-- the fuck… why did I write such code? that's piss poor :-(
wildroman2 has quit [Ping timeout: 244 seconds]
drowl_ has joined #ruby
<apeiros> `def empty?; @some_collection.size.zero?; end` to give some context
<apeiros> instead of just calling .empty? on it…
mgberlin has quit [Remote host closed the connection]
<ericwood> apeiros: there there, we've all made mistakes
wildroman2 has joined #ruby
<apeiros> I'll now just assume that this was a left-over of a refactoring and @some_collection wasn't always an object responding to .empty?
supernullset has joined #ruby
<ericwood> apeiros: is it normal to have an empty class definition at the top of a namespaced module?
durnoyabsurd has joined #ruby
<apeiros> no. doesn't mean it's a bad thing though.
<ericwood> as in the gist I pasted just now
freerobby has quit [Client Quit]
<ericwood> it's a chicken and egg problem otherwise :(
<apeiros> ericwood: I prefer: class Roomba; module Sensors
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> and then it's no longer chicken/egg
<ericwood> ah, that makes a lot more fucking sense
<ericwood> wow
<apeiros> also require_relative--
<ericwood> really?
alem0lars has joined #ruby
<ericwood> even in a gem?
<apeiros> it's not the duty of a library to know where a file lies.
<Mon_Ouie> Especially in a gem
<apeiros> that's ruby/rubygems job
<ericwood> so if it's in lib/ in my gem I should still just be able to do require 'sensors.rb' ?!?!?!
<apeiros> and require 'roomba' in roomba/sensors.rb
DrOwl has quit [*.net *.split]
Olipro has quit [*.net *.split]
drowl_ is now known as DrOwl
<apeiros> ericwood: yes. sans .rb even
<jhass> require 'roomba/sensors'
<ericwood> okay, neato
<apeiros> during testing you can do `ruby -Ilib` (that's -I lib with a capital i)
<ericwood> thanks
<apeiros> same works with irb and pry
durnoyabsurd has quit [Client Quit]
shredding has joined #ruby
<apeiros> I think pry even has some flag like --gem or somesuch which does -Ilib -rtoplevel
<ericwood> okay neat
<apeiros> where it somehow figures out what 'toplevel' should really be.
iamjarvo has joined #ruby
supernullset has quit [Remote host closed the connection]
<apeiros> ah yes, indeed: "--gem Shorthand for -I./lib -rgemname"
mikemac has quit [Remote host closed the connection]
<ericwood> updated
<ericwood> sorry, really trying to get a handle on best practices
<apeiros> no need to be sorry
<ericwood> this one dumps all of the sensors module into the Roomba class...laziness on my part
durnoyabsurd has joined #ruby
<ericwood> since there's 100000000 constants and it'd be impossible to make each refer to the right module
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
vifino has joined #ruby
<vadzimt> hey guys, trying to figure out what the hell is going on when there are no properties that matches to regex
<jhass> vadzimt: nothing?
Solnse has joined #ruby
jamto11 has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
reset has joined #ruby
dangerousdave has joined #ruby
thesheff17 has quit [Quit: Leaving]
britneywright has quit [Quit: Textual IRC Client: www.textualapp.com]
thesheff17 has joined #ruby
<vadzimt> @jhass thanks, I thought it is, but cant find solution to raise an exception in that case
<jhass> you could do one run with raise ... unless data.keys.any? {|k| r.match(key) } or just set a flag and check it
Xiti has joined #ruby
h0d0r has joined #ruby
xcv has quit []
jamto11 has quit [Ping timeout: 255 seconds]
reset has quit [Ping timeout: 244 seconds]
Martxel has joined #ruby
bradleyprice has joined #ruby
neiled has joined #ruby
Rainicorn has joined #ruby
m8 has quit [Read error: Connection reset by peer]
supernullset has joined #ruby
shvelo has joined #ruby
durnoyabsurd has quit [Quit: Leaving]
Olipro has joined #ruby
<ericwood> so, what's the correct way to include other files from lib/ in my rubygem?
<toretore> require them?
<ericwood> yes
<toretore> yes, that
<ericwood> I have the main file in lib/ and other files there that the main file needs to require
<toretore> require the file
<toretore> require 'filename'
<ericwood> okay
endash has joined #ruby
LadyRainicorn has quit [Ping timeout: 248 seconds]
<toretore> require 'mygem/somefile' probably
<toretore> where your lib has the directory mygem
bradleyprice has quit [Ping timeout: 244 seconds]
<ericwood> okay that works, with just the plain require 'name.rb'
chipotle has joined #ruby
xcv has joined #ruby
neiled has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wildroman2 has quit [Remote host closed the connection]
JBreit has left #ruby ["Leaving"]
<jhass> don't add the .rb
m8 has joined #ruby
<ericwood> okay
wildroman2 has joined #ruby
<ericwood> yep, that's way better
<ericwood> sweet
buub has quit [Ping timeout: 260 seconds]
cashnguns has joined #ruby
theharshest has joined #ruby
hgl has quit [Ping timeout: 255 seconds]
<ericwood> this fucking thing has like 200 lines of constant definitions
DivineEntity has joined #ruby
jxf has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Hobogrammer has joined #ruby
wildroman2 has quit [Ping timeout: 244 seconds]
d0lph1n98 has joined #ruby
d0lph1n98 has left #ruby [#ruby]
ferr has quit [Quit: Konversation terminated!]
frog0909 has joined #ruby
d0lph1n98 has joined #ruby
eka has joined #ruby
febuiles has joined #ruby
Rainicorn has quit [Ping timeout: 260 seconds]
yakko has joined #ruby
iswell has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
kireevco has joined #ruby
<shevy> that's nothing
d0lph1n98 has quit [Quit: leaving]
jxf has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
brian___ has quit [Quit: brian___]
skysploit has quit []
<jhass> your namespace is Roomba::Sensors, so the file should be roomba/sensors.rb
<ericwood> >:(
<ericwood> so, make a dir in lib/ named roomba and move that shit there?
<jhass> yep
<ericwood> okay cool
yfeldblu_ has joined #ruby
GriffinHeart has joined #ruby
<jhass> and require 'roomba/sensors'
<ericwood> glad I'm posting this stuff so y'all can correct me
<ericwood> is there a recommended way to handle the files piece of the gemspec automagically?
<ericwood> jhass: but my name is awesome
<ericwood> and it's already published under that name :|
<shevy> files piece?
yfeldblum has quit [Read error: Connection reset by peer]
<shevy> I usually just dir Dir[] something
<shevy> s.files = Dir['**/*']
<shevy> s.files << Dir["./yaml/*yml"]
<ericwood> okay
<jhass> ericwood: point is, if your gem is called rumba, your main namespace should be Rumba, not Roomba
<shevy> ericwood, what is very cool is s.post_install_message - you can give a notification to people when they install your gem
<shevy> like: "WARNING! THIS IS BETA! DO NOT USE IT!!!"
<ericwood> haha
<ericwood> jhass: valid point.
<shevy> oh but even ruby stdlib does not follow that
<ericwood> I will take it into consideration
<ericwood> since it's either I do this now or later when it will break everything D:
<shevy> require 'optparse'; OptionParser.new
<jhass> shevy: not an argument against it
<ericwood> "but matz does it!!!"
<ericwood> "if matz jumped off a cliff would you?
<ericwood> "idk maybe"
<jhass> matz was young back then
GriffinHeart has quit [Ping timeout: 244 seconds]
vadzimt has quit [Quit: Textual IRC Client: www.textualapp.com]
<ericwood> haha
vadzimt has joined #ruby
maximski has joined #ruby
JoshGlzBrk has joined #ruby
<ericwood> so, this is from the Sinatra gemspec, and it's kinda interesting:
<ericwood> s.files = `git ls-files`.split("\n") - %w[.gitignore .travis.yml]
<ericwood> is that a decent idea?
<jhass> I don't like it
<jhass> it makes your gemspec dependent on git
<ericwood> any examples you're fond of?
<ericwood> yeah that part kinda sucks
Hanmac1 has joined #ruby
<jhass> which means it already breaks if you use the github download repo option or unpack the gem and want to repack it
<jhass> I like the Dir["lib/**/*.rb", "README.md", "LICENSE"] one
benzrf|offline is now known as benzrf
<ericwood> that should work in all cases?
<jhass> yeah
<ericwood> sweet
<ericwood> thanks
BadQuanta has joined #ruby
d0lph1n98 has joined #ruby
xcv has quit [Remote host closed the connection]
alem0lars has quit [Quit: alem0lars]
<ericwood> okay, floating another idea
Hanmac has quit [Ping timeout: 272 seconds]
<ericwood> have the class definitions be "Rumba" but offer an alias for "Roomba"?
<ericwood> so you can use either?
<ericwood> eh?!?!?
<pipework> What's your question?
<jhass> Why would you expect Roomba to exist if your gem is called rumba?
<ericwood> because, it's a roomba
<pipework> jhass: Backwards/forwards compatibility/migration?
<d0lph1n98> can i ask non-technical question? basically maybe it is also part of the technical stuff
<ericwood> ¯\_(ツ)_/¯
<pipework> ericwood: If you want, but remember that it's putting more constants in the global namespace. I try to limit myself to one per library.
<jhass> d0lph1n98: you can ask all questions, worst thing happens is you get no answer / are redirected elsewhere
<febuiles> d0lph1n98: it's better to ask the question directly :)
momomomomo has quit [Quit: momomomomo]
pipework has left #ruby [#ruby]
<ericwood> pipework: a very good point. In this case it's unlikely to conflict but who the fuck knows
<ericwood> I should really figure out a way to automated testing with this
<ericwood> testing currently means hooking up a roomba, that doesn't scale
george2 is now known as george2_
george2_ is now known as george2
<d0lph1n98> what do you think about those people who copy paste the code and delete some lines, compile and run, publish it online? it is the best practice?
<d0lph1n98> in this case lets say an Android app
<jhass> do you have some more concrete examples?
<d0lph1n98> since Android is the compiled packages which can be extract to read the codes
pipework has joined #ruby
<d0lph1n98> maybe i can just download the apps from the Google Play Store and extract it..delete some lines..change the UI and publish it as my apps
<jhass> well, pretty sure that is illegal in most of the world
<pipework> Did someone catch my part message? I don't know why I left.
<jhass> pipework: no message
<pipework> d0lph1n98: This is against Freenode's ToS.
<d0lph1n98> the end-user doesn't know that and they don't even care about it
SCHAAP137 has joined #ruby
<pipework> That doesn't matter one bit.
kireevco has quit [Quit: Leaving.]
<pipework> or byte, for what it's worth.
kireevco has joined #ruby
<d0lph1n98> lets say i develop the app for about 4 months and they people just go delete some lines and claim it as their apps
happytux has joined #ruby
<d0lph1n98> so how can i encounter that situation? make a report?
<ericwood> figure out where they live
<ericwood> pay them a visit
<d0lph1n98> LOL
<csmrfx> lol
<ericwood> ring the doorbell
<csmrfx> in reality, that is the reality
<ericwood> "hey man that wasn't nice"
<ericwood> then start crying
<ericwood> so far 100% success rate
<jhass> figure out who they are it is. Then call your lawyer
<csmrfx> only a decent sized company usually has the means to legally protect their products in a court of law
timonv has quit [Remote host closed the connection]
<ericwood> or, you can rile up the community, they're all about the pitchfork game
mesamoo has joined #ruby
<ericwood> rubyists are easily upset and seem to have strong morals about that sort of thing
<d0lph1n98> maybe i should obfuscate the code
<ericwood> that never solves anything
<ericwood> ever
<d0lph1n98> then it would probably affect the speed
<csmrfx> I think that as an individual or a one man company, you will just have to accept the fact, that given suitable resources, the fruits of your labour can be exploited in myriad ways
<ericwood> you can get creative, depending on what it is
maestrojed has quit [Quit: Computer has gone to sleep.]
<ericwood> basically make it not worth them copying your work, or have incentives to use the real deal
<d0lph1n98> are you saying that software can easily be exploit?
h0d0r has quit [Quit: h0d0r]
<ericwood> all software ever is exploitable
<ericwood> ever
<ericwood> always
<csmrfx> not what I mean
kireevco has quit [Client Quit]
<csmrfx> I mean commercial duplication
<csmrfx> economic exploitation that does not reward you
<ericwood> ¯\_(ツ)_/¯
bricker`LA has quit [Quit: leaving]
<csmrfx> there is one solution, however
<d0lph1n98> some big company use long lines of codes which can be write in just few lines, maybe they do that to avoid skiddies to exploit their product
<csmrfx> that eliminates all possibility of your code being exploited
<d0lph1n98> and the solution is?
<ericwood> d0lph1n98: don't mess with your code to solve this problem
<ericwood> csmrfx: write stuff that isn't interesting and worth exploiting?
<csmrfx> nope
<ericwood> that has worked well for me so far
<ericwood> hence roomba library
<ericwood> :D
<d0lph1n98> for example, the program suppose to produce an Hello World but the code is written using a few recursion and memory allocation just to make it hard for the newbie or skiddies?
MatthewsFace has joined #ruby
<jhass> d0lph1n98: obfuscation doesn't solve code stealing. Period
<ericwood> d0lph1n98: do. not. change. your. code.
<ericwood> it's just a great way to make everything suck
yfeldblum has joined #ruby
reset has joined #ruby
<d0lph1n98> ok got it..i believe there is a solution to this problem
goganchic has joined #ruby
<d0lph1n98> its like stop being stupid when you are genius
yubrew has joined #ruby
frank_____ has joined #ruby
moted has quit [Quit: moted]
<wasamasa> wat
<wasamasa> the commercial world has found a solution to the problem with competitors
<ericwood> lol
<wasamasa> shut them up with legal means
<wasamasa> that's all
<katlogic> Only in murrica.
<wasamasa> it sometimes involves shutting down rather harmless websites
<ericwood> idk, my physical intimidation technique gets results
<katlogic> Frivolous lawsuits is cheaper than bullshit advertising.
kireevco has joined #ruby
yfeldblu_ has quit [Ping timeout: 244 seconds]
<wasamasa> that's why they go for drm
drizz_ has joined #ruby
<wasamasa> it's by no means technically good
<wasamasa> but solves the juristic problem for them
<d0lph1n98> most of the codes which can be found online just claiming their copyright by comment out at the top and write Written by blahblahblah
drizz_ has quit [Client Quit]
<d0lph1n98> which can be easily deleted
yfeldblum has quit [Ping timeout: 260 seconds]
reset has quit [Ping timeout: 264 seconds]
MatthewsFace has quit [Quit: This computer has gone to sleep]
yubrew has quit [Ping timeout: 240 seconds]
sdouglas has joined #ruby
kireevco has quit [Client Quit]
<jhass> I'm not sure what's your point. It's illegal to do that. Technical measures to prevent code stealing have shown to be inherently flawed in the past. And I think the issue is social, if it's an issue at all, really.
<wasamasa> it's social if its open source
<wasamasa> and a matter of law suits for companies
<wasamasa> anything else is pointless worries
mrmargolis has joined #ruby
Takle has joined #ruby
mgberlin has joined #ruby
<wasamasa> the few open-source ripoffs I've seen were inferiour to the original
<wasamasa> as for the fear of someone "stealing" your code
<wasamasa> most code out there isn't particularly smart or ingenious
goganchic has quit []
<wasamasa> stackoverflow and github demonstrate what happens if you share it freely instead of keeping it to yourself like it used to be
sdouglas has quit [Ping timeout: 244 seconds]
<Hanmac1> code copy protection is the same effective as as media copy protection ... everything that can be seen, can be copied, one way or another
Hanmac1 is now known as Hanmac
<d0lph1n98> what about Android app which is downloaded from Google Play Store, extract, change codes, change UI..is there any protection?
<ericwood> okay I'm back with more amazing questions!
<ericwood> so, building this DSL
<ericwood> and I want something like forward(10.inches)
mgberlin has quit [Remote host closed the connection]
<ericwood> so, this means monkeypatching "inches" into integer
<wasamasa> d0lph1n98: dude, can't you read
<ericwood> but, what should that return?
<ericwood> I suppose I should read the ActiveSupport overrides that do this, eh?
shredding has quit [Quit: shredding]
mgberlin has joined #ruby
kireevco has joined #ruby
<ericwood> another example would be things like durations, with "10.seconds", etc.
Doppp has quit [Ping timeout: 272 seconds]
<ericwood> which I would interpret in my function. Perhaps have that function return a lambda?
<d0lph1n98> chill out man..i am digesting your information.
yakko_ has joined #ruby
<jhass> ericwood: typically you have a base unit that you just map to plain fixnums, for example 10 means 10 seconds. Then 10.minutes would return 600
Soda has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
<ericwood> jhass: ah, okay, perhaps I'm overthinking this, then :)
<pipework> d0lph1n98: You probably won't write any code worth stealing. You could just hedge on that.
yakko has quit [Ping timeout: 248 seconds]
<ericwood> heh I'll have to do some calculations...I can only control motor speed and duration
supernullset has quit [Ping timeout: 272 seconds]
<ericwood> so for things like 10 feet it'd be "okay, so x mm/s, for how long?"
<ericwood> and maybe account for lag but who cares about that?
<pipework> ericwood: Why not just use #forward(:inches => 10)
<ericwood> pipework: DSL, hoping kids could use it
<pipework> I mean, it's not that weird nasty shiny ActiveSupport stuff, but that's a feature, imo.
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<ericwood> I'm kind of recreating something like Logo but with roombas
<ericwood> so the kids can just say
<ericwood> forward 10.feet
<toretore> 10.inches is awful
<pipework> Well, I think `inches 10` is a better interface.
<ericwood> less cool tho
banister has joined #ruby
<ericwood> but a decent comporomise
<pipework> Less magical.
banister has quit [Max SendQ exceeded]
<d0lph1n98> ok done
<ericwood> I mean, in this case it's specifically supposed to be english
<ericwood> for kids
<pipework> I think kids can handle the notion of arguments.
<toretore> don't dumb it down because they're kids
banister has joined #ruby
<ericwood> yeah :\
banister has quit [Max SendQ exceeded]
<ericwood> but what if they're dumb kids
<ericwood> think of the children
<pipework> There's no such thing, only shit people.
<ericwood> haha
dodosan has joined #ruby
<pipework> When I was a kid, I was foolishly and unknowingly writing a test framework and TDD'ing.
banister has joined #ruby
<pipework> Accidentally an awesome before I even knew it.
<ericwood> I want to test this thing out on my coworker's 5 year old
<pipework> ericwood: Have them explain it to you so you understand what to write. :p
teddyp1cker has quit []
<ericwood> pipework: kids are like totally not coherent!
<ericwood> they just say gibberish
zorak has quit [Ping timeout: 248 seconds]
carraroj has joined #ruby
<toretore> yeah like totally
<pipework> ericwood: English is gibberish too.,
<ericwood> haha
<pipework> Don't discriminate against their gibberish.
<pipework> Children may very well be smarter than any of us before we get our hands on them and 'educate' them.
benzrf is now known as benzrf|offline
mary5030 has quit [Remote host closed the connection]
<ericwood> here's kind of an interface I was imagining: https://gist.github.com/eric-wood/dd3e51d4b2f478820b6e
<ericwood> the crappy part is making it not too dumb so adults will use it
jord has joined #ruby
<ericwood> I'll also add methods for doing things like arcs
banister is now known as banisterfiend
<pipework> You don't even use the roomba block variable.
<toretore> why do you even need the .inches part?
<ericwood> it's optional
<ericwood> toretore: because you could also use .meters or .feet
<pipework> You should just look at scratch.
<ericwood> in this fictional DSL
<pipework> ericwood: 5 year olds can't understand inches(10) but can understand meters and feet?
<pipework> What kind of children are you interacting with?
<ericwood> pipework: ugh good point
<ericwood> I don't know, this is all hypothetical
<ericwood> hence me discussing it
dodosan has quit [Remote host closed the connection]
<pipework> ericwood: Graphical programming might be a better start.
<toretore> what's the goal of all this, to teach children programming?
<ericwood> no
<ericwood> it's "I have this cool library for hacking on roombas, let's build a neat DSL into it"
dodosan has joined #ruby
<ericwood> a few of my coworkers expressed interest in it for teaching their kids
<pipework> To get them hooked on the vice that is brogramming.
<ericwood> so, the teaching piece is something I want to take into account I guess
<toretore> ericwood: you can't have a professional library that is at the same time child friendly
<ericwood> but it's not the primary goal, there's other things for that
<pipework> toretore: Why not?
<toretore> you can build something on top of a professional api
<ericwood> yeah
benzrf|offline is now known as benzrf
<ericwood> there's a whole "professional" API that goes really low-level underneath all of this
<pipework> I think he could have them both be the same thing. I, for example, think activerecord's query interface is child-friendly and professional.
<pipework> Wait, I mean childish.
<pipework> :DDD
<toretore> ericwood: and that's what you must expose first
<ericwood> AR is kind of one of my inspirations for this potential DSL :\
<pipework> well, then you're screwed.
<toretore> yup
<ericwood> ¯\_(ツ)_/¯
virtualize has joined #ruby
<ericwood> I kind of like the AR API
<toretore> ar is an example of a child friendly interface
<toretore> that's not professional
<pipework> toretore: and childish!
<ericwood> but I know everyone likes to shit on AR all the time
<pipework> ericwood: Effectively infinite interfaces are a cancer.
<toretore> oh the pretty dsls get old very quick
<ericwood> the DSL in this is 100% optional, though
LexicalScope` has quit [Read error: Connection reset by peer]
<toretore> but then you must build the underlying one first
<pipework> It's already annoying enough when everyone who claims to use javascript in the workforce today starts everything they write with $
sigurding has joined #ruby
LexicalScope has quit [Read error: Connection reset by peer]
<ericwood> toretore: already did, it's published
<toretore> oh
<toretore> well, that's different
<ericwood> it's the rumba ruby gem
<ericwood> (ignore the current code, the "refactoring" branch has all the improved stuff)
Cache_Money has quit [Quit: Cache_Money]
<ericwood> so, there's already an interface that I've used on intense projects
<ericwood> ¯\_(ツ)_/¯
<ericwood> I think I agree about the 10.feet thing being overkill, though
<pipework> ericwood: You should look into ragel.
<pipework> Make all the nice things! \o/
maximski has quit []
<toretore> well then you can make this stuff as childish as you like for all i care :)
dodosan has quit [Remote host closed the connection]
dodosan has joined #ruby
zorak has joined #ruby
<ericwood> I'll try a few iterations and hand it off to children
<ericwood> sensors are going to be a bitch to wrap in a DSL, though
<pipework> ericwood: Why don't you sit with a child you'll have the most access to work with and pseudocode a DSL with them at the helm?
<pipework> See what they come up with and massage that as necessary.
<pipework> Suggest things and see how they take to it.
<ericwood> good advice
ghr has joined #ruby
<pipework> You might find that they like a 'erlangish' interface or something else. I could see them liking ending each action with a period.
jonahR has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ericwood> tbh it makes more sense than a semicolon :P
Takle has quit [Remote host closed the connection]
<pipework> ericwood: I think using ragel would give you the most flexibility.
kireevco has quit [Quit: Leaving.]
<ericwood> perhapsibly
<lfox> huh, it just occurred to me how correctly erlang uses semicolons and periods…
<ericwood> writing it myself will be a good ruby exercise
<ericwood> too much JS lately
<ericwood> this has been so refreshing
CaptainJet has quit []
setra has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
ghr has quit [Ping timeout: 255 seconds]
Doppp has joined #ruby
hpoydar has joined #ruby
mgberlin has quit [Ping timeout: 255 seconds]
maximski has joined #ruby
wildroman2 has joined #ruby
maximski has quit [Max SendQ exceeded]
havenwood has joined #ruby
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
maximski has joined #ruby
altin has quit [Ping timeout: 260 seconds]
setra has quit [Read error: Connection reset by peer]
relix has joined #ruby
AlexRussia has joined #ruby
<arcsky> can anyone please help me with this ruby/bundle/gem issue, http://pastebin.com/5zvkZYBf
<havenwood> arcsky: What version of Ruby are you running?: ruby -v
maximski has quit [Client Quit]
<arcsky> ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux
<jhass> update your ruby
shvelo has quit [Ping timeout: 248 seconds]
relix has quit [Client Quit]
<havenwood> arcsky: apt-get?
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<arcsky> ruby is already the newest version.
<arcsky> yes apt-get
<havenwood> arcsky: 1.8.7 is past end-of-life. Using an old distro?
relix has joined #ruby
<havenwood> arcsky: ruby1.9.1 or ruby2.0 packages
<havenwood> arcsky: then use `update-alternatives` to select them
bradleyprice has joined #ruby
<havenwood> arcsky: e.g.: sudo apt-get install ruby1.9.1 ruby1.9.1-dev && sudo update-alternatives --config ruby
jackneill has quit [Read error: Connection reset by peer]
<havenwood> arcsky: you may need to set update-alternatives for `gem` as well as `ruby`
yubrew has joined #ruby
<havenwood> arcsky: or use a deprecated nokogiri (1.5) that supports your deprecated ruby
relix has quit [Client Quit]
<arcsky> # bundle install
<arcsky> -bash: /usr/local/bin/bundle: /usr/bin/ruby1.8: bad interpreter: No such file or directory
ctp has joined #ruby
<arcsky> i did uinstall 1.8 and i have now 1.9
bradleyprice has quit [Ping timeout: 240 seconds]
<havenwood> arcsky: sudo update-alternatives --config gem
<havenwood> arcsky: sudo update-alternatives --config ruby
<jhass> sudo gem install bundler
<havenwood> arcsky: ^
altin has joined #ruby
jamto11 has joined #ruby
yubrew has quit [Ping timeout: 272 seconds]
<havenwood> arcsky: and install `ruby1.9.1-dev` too to make sure you can build gems, if you haven't already
reset has joined #ruby
relix has joined #ruby
benzrf is now known as benzrf|offline
<arcsky> if i install rubygems then it downloads the ruby1.8
<havenwood> arcsky: rubygems ships with Ruby in 1.9+
moritzs has joined #ruby
<havenwood> arcsky: no separate pacakge
<arcsky> # bundle install
<arcsky> -bash: /usr/local/bin/bundle: /usr/bin/ruby1.8: bad interpreter: No such file or directory
jamto11 has quit [Ping timeout: 240 seconds]
Cache_Money has joined #ruby
<havenwood> arcsky: did you do as jhass said?: sudo gem install bundler
relix has quit [Client Quit]
<havenwood> arcsky: (install bundler for your new ruby)
reset has quit [Ping timeout: 248 seconds]
uffs has quit [Ping timeout: 252 seconds]
kireevco has joined #ruby
mr_foobar_baz has joined #ruby
shvelo has joined #ruby
dc_ has joined #ruby
BalkM_ has joined #ruby
<arcsky> havenwood: ok it looks better now ;)
<havenwood> \o/
relix has joined #ruby
Cache_Money has quit [Ping timeout: 272 seconds]
relix has quit [Client Quit]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
mbwe has joined #ruby
BalkM has quit [Ping timeout: 264 seconds]
kireevco has quit [Client Quit]
mr_foobar_baz has quit [Client Quit]
retnuh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc_ has quit [Client Quit]
retnuh has joined #ruby
retnuh has quit [Max SendQ exceeded]
retnuh has joined #ruby
retnuh has quit [Client Quit]
senayar has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
bricker`LA has joined #ruby
vifino has quit [Quit: Me sais Laptop sleepy.]
vifino has joined #ruby
duncannz has joined #ruby
duncannz has quit [Remote host closed the connection]
<arcsky> havenwood: im back to the issue again
<havenwood> arcsky: did you do as i recommended and?: sudo apt-get install ruby1.9.1-dev
<bricker`LA> Has anybody setup rundeck before? I have it installed but rundeckd just won't start
<arcsky> ruby1.9.1-dev is already the newest version.
mehlah_ has joined #ruby
anaeem1 has quit [Remote host closed the connection]
charliesome has joined #ruby
mehlah has quit [Read error: Connection reset by peer]
<havenwood> arcsky: good. make sure you also have nokogiri's required packages as well: sudo apt-get install libxslt-dev libxml2-dev
vifino has quit [Ping timeout: 260 seconds]
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #ruby
yfeldblum has joined #ruby
vifino has joined #ruby
jack_rabbit has joined #ruby
GriffinHeart has joined #ruby
<jhass> libffi-dev iirc
nasj has quit [Remote host closed the connection]
<jhass> btw. why are you installing that app as root?
dapz has joined #ruby
SJr has quit [Ping timeout: 240 seconds]
<arcsky> jhass: ist so bad ?
<jhass> yes
sdouglas has joined #ruby
Atttwww has joined #ruby
agjacome has quit [Ping timeout: 264 seconds]
SJr has joined #ruby
<jhass> the fact that you can't point out a reason alone makes it bad
yfeldblum has quit [Ping timeout: 272 seconds]
duncannz has joined #ruby
GriffinHeart has quit [Ping timeout: 252 seconds]
SJr has quit [Read error: Connection reset by peer]
sigurding has quit [Quit: sigurding]
mr_snowf1ake has quit [Quit: Leaving]
vifino has quit [Quit: Ze Cat now leaves...]
durnoyabsurd has joined #ruby
ziyadb has joined #ruby
LexicalScope has joined #ruby
Neomex has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
sdouglas has quit [Remote host closed the connection]
ghr has joined #ruby
wildroman2 has quit [Remote host closed the connection]
Takle has joined #ruby
chipotle has quit [Quit: cya]
nanoyak has joined #ruby
mehlah has joined #ruby
mehlah_ has quit [Read error: Connection reset by peer]
shvelo has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
durnoyabsurd has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 248 seconds]
bradleyprice has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has quit [Client Quit]
nfk has joined #ruby
Quintus_q has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
relix has joined #ruby
<Rylee> Is there anything like StringScanner where you can increment the pointer by a number instead of by a regex?
mosez_ has quit [Ping timeout: 245 seconds]
Cache_Money has joined #ruby
<apeiros> Rylee: eh? just use an index variable and a plain string?
<Rylee> s = StringScannerNumeric.new('one two three four'); s.get(4) #=> 'one '; s.get(4) #=> 'two '
<Rylee> eh, I was hoping someone already wrote one for me
<apeiros> Rylee: um, there's nothing to write for that
<toretore> i don't understand what you're asking
<Quintus_q> Just use split?
<toretore> s.pos += n
<apeiros> index = 0; s[index, 4] # => 'one '
d0lph1n98 has quit [Quit: leaving]
<Rylee> Oooooooh
<apeiros> index += 4; s[index, 4] # => 'two '
yubrew has joined #ruby
<apeiros> not sure what you imagine there is to write…
<Rylee> I was in a silly mindset, my bad
<Rylee> Thank you again
SJr has joined #ruby
<apeiros> yw
freerobby has quit [Quit: Leaving.]
agent_white has joined #ruby
Takle has joined #ruby
<agent_white> Ello everyone
dodosan has quit []
chipotle has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
yubrew has quit [Ping timeout: 244 seconds]
<apeiros> agent_white: shouldn't that be ehlo?
<agent_white> apeiros: Mmm yes! Oh... Allo!
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> that one I don't know :(
<agent_white> apeiros: Me neither. It can be our secret!
<apeiros> KIA!
nasj has joined #ruby
<havenwood> >> require 'rubygems/text'; include Gem::Text; levenshtein_distance 'allo', 'hello'
<eval-in_> havenwood => 2 (https://eval.in/169712)
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
claymore has quit [Quit: Leaving]
<havenwood> >> require 'rubygems/text'; include Gem::Text; ['ello', 'allo', 'ehlo'].min_by { |word| levenshtein_distance word, 'hello' }
<eval-in_> havenwood => "ello" (https://eval.in/169715)
<havenwood> ello it is
<agent_white> :D
reset has joined #ruby
vifino has joined #ruby
mosez has joined #ruby
banister has joined #ruby
nasj has quit [Ping timeout: 255 seconds]
dc_ has joined #ruby
agjacome has joined #ruby
dc_ has quit [Remote host closed the connection]
reset has quit [Ping timeout: 252 seconds]
dc_ has joined #ruby
PasNox has quit [Quit: Leaving - Cross platform IDE http://monkeystudio.org]
exgf has quit [Remote host closed the connection]
exgf has joined #ruby
boxmein has joined #ruby
<boxmein> stupid ruby programmer question: why does http://puu.sh/9Yj7v/6c906e7a2b.png line 50 fail with :34:in `request_delay': undefined local variable or method `lastrequest' for main:Object (NameError)
<tobiasvl> boxmein: please use http://gist.github.com instead of screenshots
<tobiasvl> "line 50" doesn't tell us a lot without line numbers
<boxmein> sigh I didn't include line numbers?
<tobiasvl> however, I'm guessing lastrequest isn't defined before it's used in the comparison on the fourth line there
<boxmein> line 23 here
<tobiasvl> you're defining it outside the methods, did you mean to make it an instance variable?
<tobiasvl> @lastrequest
<jhass> ^ which also indicates that you want to make that a class
<boxmein> It's just an one-time script so I didn't bother making classes and modules and whatnot
m8 has quit [Read error: Connection reset by peer]
<boxmein> a onetime*
<tobiasvl> oh yeah. I just assumed it was in a class. (tip: show us the entire code next time)
<boxmein> I would, if I wouldn't be self-conscious about what I'm writing
<boxmein> so I really don't want to share it aside from when I get it done or something
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
<boxmein> also, I wouldn't call the rest of the code exactly best practices
JoshGlzBrk has joined #ruby
lkba has joined #ruby
<tobiasvl> if you'd shown us the rest we could tell you what's best practice for it ;)
maximski has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
<agent_white> boxmein: Gotta let the critiques come in if you wanna get better! My code makes people in here cry. It's wonderful!
schaerli has quit [Remote host closed the connection]
* boxmein sighs
schaerli has joined #ruby
dc_ has quit [Remote host closed the connection]
spider-mario has quit [Remote host closed the connection]
godd2 has joined #ruby
<tobiasvl> anyway boxmein
<tobiasvl> read up on scope
dc_ has joined #ruby
decoponio has joined #ruby
<tobiasvl> lastrequest is local to the main execution ... area of the script
<tobiasvl> escapes me what it's really called
BadQuanta has quit [Quit: Leaving.]
<tobiasvl> the variable does not exist in the method's scope
BadQuanta has joined #ruby
Quintus_q has quit [Quit: WeeChat 0.4.3]
schaerli has quit [Remote host closed the connection]
<tobiasvl> if you don't use lastrequest any other place than in request_delay, just move it in there
schaerli has joined #ruby
<tobiasvl> otherwise, send it as an argument to the method, or define it as a global or something
maximski has quit [Client Quit]
yfeldblum has joined #ruby
moritzs has quit [Ping timeout: 260 seconds]
mijicd has joined #ruby
<boxmein> can I expect lastrequest to keep state between executions if it's defined inside the block
<boxmein> but yeah, global should work
<boxmein> wondered if I could avoid it
<boxmein> every language's scoping rules are different
<boxmein> some are deathly simple
<boxmein> some are Ruby
<tobiasvl> well, this scoping rule is pretty standard. you could call the method from a wholly different scope, another object, etc
<godd2> just think of a method saying "oh I'm a method? well, screw local variables outside me, im gonna cut everyone off"
<tobiasvl> what block are you talking about?
yfeldblum has quit [Remote host closed the connection]
<boxmein> inside the method's body
<boxmein> blocks being things messes up my vocabulary
dc_ has quit [Remote host closed the connection]
<boxmein> Javascript's scoping is deadly simple, variables are function-local and nested functions get their own variables plus scope from above (both read and write)
<boxmein> Python's is so-so, you get scope from above unless you start writing
<boxmein> iirc
yfeldblum has joined #ruby
<tobiasvl> okay
<boxmein> Java is hell, you get instance variables and nothing else from above, if you nest a class instance (which is how java does callbacks ) then it does not get variables from above, but it does get its instance variable
<boxmein> ..s
LexicalScope has quit [Ping timeout: 272 seconds]
<boxmein> int blah = 5; new OnClickHandler() { @Override \n public void clicked(ClickArguments args) { blah does not exist here; } };
dc_ has joined #ruby
jcromartie has joined #ruby
<godd2> boxmein: here's a good explanation of variable scope in ruby: https://www.youtube.com/watch?v=hizh7Prb-Zo
hpoydar has quit [Remote host closed the connection]
<boxmein> godd2: thanks for the link!
dc_ has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
riotjones has quit [Ping timeout: 248 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
BalkM_ has quit [Quit: Lingo - http://www.lingoirc.com]
Xeago has joined #ruby
yubrew has joined #ruby
Xeago_ has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nerdy has joined #ruby
yubrew has quit [Ping timeout: 260 seconds]
dc_ has joined #ruby
Xeago__ has joined #ruby
Xeago__ has quit [Remote host closed the connection]
charlied3 has joined #ruby
SilverKey has quit [Quit: Halted.]
Xeago has quit [Ping timeout: 264 seconds]
diegoviola has joined #ruby
SilverKey has joined #ruby
Xeago_ has quit [Ping timeout: 248 seconds]
SilverKey has quit [Client Quit]
Nowaker has quit [Ping timeout: 264 seconds]
mrmargolis has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 248 seconds]
hpoydar has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
benzrf|offline is now known as benzrf
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
endash has quit [Read error: No route to host]
Caius has quit [Ping timeout: 255 seconds]
nasj has joined #ruby
jhass is now known as jhass|off
jamto11 has joined #ruby
Caius has joined #ruby
reset has joined #ruby
CodeLicker has joined #ruby
Xeago has joined #ruby
Nowaker has joined #ruby
nasj has quit [Ping timeout: 244 seconds]
charlied3 has quit [Ping timeout: 264 seconds]
xcv has joined #ruby
ecksit has joined #ruby
jamto11 has quit [Ping timeout: 255 seconds]
hpoydar has quit [Remote host closed the connection]
dc_ has quit [Remote host closed the connection]
Takle has quit [Read error: Connection reset by peer]
warprobot has quit [Remote host closed the connection]
Takle has joined #ruby
lxsameer has quit [Quit: Leaving]
endash has joined #ruby
dc_ has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
chipotle has quit [Quit: cya]
dangerou_ has quit [Ping timeout: 248 seconds]
cashnguns has quit [Ping timeout: 240 seconds]
mike32 has quit [Quit: Leaving]
fold has quit [Ping timeout: 264 seconds]
dc_ has quit [Ping timeout: 264 seconds]
GriffinHeart has joined #ruby
Takle has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reset has quit [Quit: Leaving...]
GriffinHeart has quit [Ping timeout: 272 seconds]
Xeago has quit [Remote host closed the connection]
linoespinoza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nanoyak has quit [Quit: Computer has gone to sleep.]
hpoydar has joined #ruby
banister has joined #ruby
Neomex has quit [Read error: Connection reset by peer]
schaerli has quit [Ping timeout: 264 seconds]
smth has joined #ruby
CaptainJet has joined #ruby
smth has left #ruby [#ruby]
charlied3 has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.4.3]
hpoydar has quit [Remote host closed the connection]
linoj has joined #ruby
mgberlin has joined #ruby
foomanbar has joined #ruby
<foomanbar> anyone down with a code review?
<havenwood> you had me at code
<foomanbar> you had me a wood
<havenwood> well that's the end, so just in time
decoponio has quit [Quit: Leaving...]
yubrew has joined #ruby
Alina-malina has quit [Ping timeout: 260 seconds]
VTLob has quit [Quit: VTLob]
maestrojed has joined #ruby
fold has joined #ruby
hpoydar has joined #ruby
mijicd has quit [Quit: leaving]
mijicd has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
RandyT has quit [Ping timeout: 244 seconds]
<foomanbar> no news is good news?
Zebroid has joined #ruby
<havenwood> foomanbar: was just eating blueberries, gimme a moment i'll take a look!
<foomanbar> cool thanks
RandyT has joined #ruby
cashnguns has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
MatthewsFace has joined #ruby
benzrf is now known as benzrf|offline
Channel6 has quit [Quit: Leaving]
benzrf|offline is now known as benzrf
boxmein has left #ruby ["Leaving"]
<havenwood> foomanbar: line 1, in modern ruby best to avoid requiring 'rubygems'
<havenwood> if you don't need to support 1.8, drop it
pc_ has joined #ruby
<foomanbar> lol, i was searching if i needed that or not. I just went with the first answer i found. figures its out dated
<havenwood> foomanbar: you might consider a gem alternative to open-uri, either another net/http wrapper like rest-client or something like http or httpclient
klaut has joined #ruby
pc_ has left #ruby [#ruby]
moritzs has joined #ruby
<foomanbar> i went went open-uri because its stdlib.. any particular reason not to use it?
<havenwood> foomanbar: line 15, consider using env var instead of shelling out: `ENV['USER']`
<havenwood> foomanbar: tends to be lackluster with features and a bit unreliable, but you might get away with it for simple stuff
<havenwood> foomanbar: i tend to just use the http gem these days, works great (but there are a lot of good options)
binaryhat has quit [Remote host closed the connection]
binaryhat has joined #ruby
Metics has joined #ruby
<foomanbar> havenwood, ok. I think I'll keep it in here because its only beings used once for the most basic of use cases. I appreciate your help and info.
senayar has quit [Remote host closed the connection]
nanodano has quit [Quit: Leaving.]
northfurr has joined #ruby
nasj has joined #ruby
lkb has quit [Quit: Wychodzi]
<havenwood> line 32, no need to shell out: File#write
iamjarvo has joined #ruby
top4o has joined #ruby
<foomanbar> good catch
<northfurr> anyone know how I can use an older version of ruby within a certain folder?
<havenwood> foomanbar: You could convert a lot of the instances where you shell out to pure ruby.
Olipro has quit [*.net *.split]
<havenwood> foomanbar: FileUtils has other good file utilities: http://ruby-doc.org/stdlib-1.9.3/libdoc/fileutils/rdoc/FileUtils.html
<havenwood> foomanbar: checkout `cd` with a block
buub has joined #ruby
<foomanbar> havenwood, sweet
<foomanbar> "cd" was the thorn in my side
<havenwood> oops, linked 1.9 docs, here's latest stable: http://ruby-doc.org/stdlib-2.1.2/libdoc/fileutils/rdoc/FileUtils.html
<foomanbar> I'm assuming using FIleUtils would make this cross platform?
<havenwood> foomanbar: yup
<foomanbar> sounds like a good enough reason for me :D
nasj has quit [Ping timeout: 252 seconds]
<foomanbar> Well, back to the editor! Thanks havenwood,
<havenwood> foomanbar: it's in the stdlib, just: require 'fileutils'
<havenwood> foomanbar: no prob
<havenwood> foomanbar: happy hacking!
<foomanbar> thanks
<havenwood> foomanbar: Another less-used option in the stdlib is Shell: http://ruby-doc.org/stdlib-2.1.2/libdoc/shell/rdoc/Shell.html
Noob101 has joined #ruby
<havenwood> you see FileUtils used all the time, but Shell less frequently
maestrojed has quit [Quit: Computer has gone to sleep.]
simoz1111114 has joined #ruby
kirun has quit [Quit: Client exiting]
Alina-malina has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
Noob101 has quit [Client Quit]
virtualize has quit [Ping timeout: 264 seconds]
kyb3r_ has joined #ruby
Hanmac1 has joined #ruby
Olipro has joined #ruby
moritzs has quit [Ping timeout: 272 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
sputnik13 has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]