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)
<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.
<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]
<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
<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…]
<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.]
<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…]
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
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…]
<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]
<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>
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]
<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)
<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; } };
<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.