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
saarinen has quit [Quit: saarinen]
<gr33n7007h> ok let me take a look thanks
djbkd has joined #ruby
Takle has quit [Remote host closed the connection]
<toretore> now there are 20 threads each getting ports to scan from the array
mrsolo has quit [Quit: Leaving]
nvmme has joined #ruby
mr_snowf1ake has joined #ruby
Wolland has quit [Ping timeout: 252 seconds]
<toretore> but the implementation is not thread safe, there's a chance that two or more threads will try to access the array at the same time
jmurray has joined #ruby
luis_ has joined #ruby
testcore has quit [Quit: [BX] iT's bEttEr tO bUrN oUt tHaN tO fAdE aWaY]
luis_ is now known as kobrakao
<toretore> if you look at the new version of the gist you'll see a mutex being used to protect the array
<gr33n7007h> ah i'm seeing it thats what you need to pool them
GriffinHeart has quit [Ping timeout: 260 seconds]
<toretore> yes, it's a very simple thread pool of sorts
<toretore> the `mutex.synchronize` will pause the current thread until it can acquire the lock, and while inside the block, any other thread trying to acquire it will have to wait
<toretore> thus only one thread will be accessing `ports` at a time
<gr33n7007h> I get ya, it's becoming clear
<toretore> a Queue is basically just this, an array with an internal lock
Rollabunna has joined #ruby
<toretore> you could do `ports = Queue.new; (1..1024).each{|n| ports.push n }` then in the thread `port = ports.pop`
<toretore> and get rid of the mutex
<gr33n7007h> This is what i was tring to understand one sec
x1337807x has joined #ruby
jmurray has quit [Quit: jmurray]
ddv has quit [Ping timeout: 245 seconds]
Zenigor has joined #ruby
ddv has joined #ruby
mikecmpbll has quit [Quit: ciao.]
Deele has quit [Ping timeout: 260 seconds]
Rollabunna has quit [Ping timeout: 252 seconds]
atraylen has joined #ruby
<toretore> yeah that's still a bit out of my depth tbh
<gr33n7007h> way out of mine ;)
<ra4king> hello!
<toretore> i'm not comfirtable or experienced enough with threaded programming that i'd use threads for this
kobrakao has quit [Ping timeout: 264 seconds]
<gr33n7007h> toretore, Well I understand a little bit more now, thanks anyway
bmurt has joined #ruby
djbkd has quit [Remote host closed the connection]
<toretore> gr33n7007h: there are lots of things that will help you do this easier
cpruitt_ has joined #ruby
<toretore> though if you're doing it because you want to learn, go for it
m8 has quit [Quit: Sto andando via]
cpruitt_ has quit [Client Quit]
<gr33n7007h> Yeah, just to learn really, to fully understand
bmurt has quit [Client Quit]
vpretzel has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
bmurt has joined #ruby
djbkd has joined #ruby
Atttwww has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
vpretzel has joined #ruby
dc_ has quit [Remote host closed the connection]
amargherio has joined #ruby
cpruitt has quit [Ping timeout: 240 seconds]
<toretore> anyway, i've got a midget fight to watch and a beer to drink
<toretore> bbl
vpretzel_ has joined #ruby
rm_ has quit [Remote host closed the connection]
rm_ has joined #ruby
Kobrakoa has joined #ruby
Kobrakoa is now known as kobrakao
yubrew has joined #ruby
vpretzel has quit [Ping timeout: 240 seconds]
lw has quit [Quit: s]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ephemerian has left #ruby [#ruby]
vpretzel_ has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
d34th4ck3r has joined #ruby
dc has joined #ruby
james_d_h has quit [Ping timeout: 255 seconds]
rm_ has quit [Ping timeout: 252 seconds]
yubrew has quit [Ping timeout: 240 seconds]
Hobogrammer_ has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
b00stfr3ak has quit [Ping timeout: 252 seconds]
zz_karupa is now known as karupa
fgo has joined #ruby
lw has joined #ruby
rm_ has joined #ruby
fluve has quit []
SCommette has joined #ruby
frem_ has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
michael_lee has joined #ruby
marr has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
nvmme has quit [Quit: nvmme]
centrx has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
kobrakao has quit [Ping timeout: 264 seconds]
subbyyy_ has quit [Ping timeout: 255 seconds]
ffranz has quit [Quit: Leaving]
jamto11 has joined #ruby
vpretzel has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
aspires has quit []
jhulten has quit [Remote host closed the connection]
milkohol has quit [Read error: Connection reset by peer]
Kovensky has quit [Quit: ZNC - http://znc.in]
chipotle has joined #ruby
Takle has joined #ruby
ehc has quit [Quit: ehc]
aspires has joined #ruby
bmurt has quit []
Kovensky has joined #ruby
n_blownapart has joined #ruby
<n_blownapart> hi I was wondering if anyone has read 'ruby under a microscope'
moritzschaefer has quit [Ping timeout: 276 seconds]
DroneX has joined #ruby
<ponga> n_blownapart: i never did but i kinda wonder if ruby is complex that it needs a microscope to learn
<mozzarella> I just read it normally
<ponga> :P
_justin has joined #ruby
deric_skibotn has quit [Ping timeout: 252 seconds]
<DroneX> why am i getting this error "gem 'compass_twitter_bootstrap'"
<DroneX> ERROR: While executing gem ... (Gem::CommandLineError) Unknown command compass_twitter_bootstrap
<n_blownapart> mozzarella: ponga um, its just a book title. you are above reading books?
freerobby has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
i_s has quit [Remote host closed the connection]
<mozzarella> I don't read books, the books read me.
Hanmac1 has joined #ruby
oo_ has joined #ruby
Takle has quit [Ping timeout: 240 seconds]
lethe has joined #ruby
lw has quit [Quit: s]
<n_blownapart> mozzarella how very clever.
gorpon has joined #ruby
jrhe has joined #ruby
n_blownapart has quit []
Hanmac has quit [Ping timeout: 252 seconds]
Soliah has joined #ruby
<mozzarella> I haven't read it, but I can recommend "The Well-Grounded Rubyist"
jack_rabbit has joined #ruby
aspires has quit []
moritzschaefer has joined #ruby
nvmme has joined #ruby
chipotle has quit [Quit: cya]
thesheff17_ has joined #ruby
tectonic has joined #ruby
thesheff17 has quit [Ping timeout: 260 seconds]
run_kmc_ has joined #ruby
<shevy> you have not read it but you can recommend it?
_justin has quit [Ping timeout: 240 seconds]
Zenigor has quit [Remote host closed the connection]
x1337807x has joined #ruby
jamto11 has quit [Remote host closed the connection]
gaboesquivel has joined #ruby
JokerDoomWork has quit [Ping timeout: 265 seconds]
datafirm_ has quit [Ping timeout: 264 seconds]
<wallerdev> i want mozzarella sticks
_justin has joined #ruby
<mozzarella> shevy: no, I haven't read "ruby under a microscope"
<mozzarella> but I have read the well-grounded rubyist
<shevy> wallerdev I always think of pizza when mozzarella starts to type
lyanchih has joined #ruby
<wallerdev> pizza sounds good too
moritzschaefer has quit [Ping timeout: 240 seconds]
crazymykl has quit [Remote host closed the connection]
<wallerdev> i never think of pizza from mozzarella
crazymykl has joined #ruby
<shevy> well my logic goes like so
<shevy> mozzarella is from italy
<shevy> italy has pizzas
<shevy> I want a pizza now
Hobogrammer has joined #ruby
genta0 has quit [Quit: Quit]
<wallerdev> the only pizza i think of with mozzarella is margherita
<shevy> yum
* centrx hopes he doesn't get eaten
timgauthier has joined #ruby
<shevy> I prefer quattro formaggi
<wallerdev> i consider most other pizzas to just have generic cheese on them
<wallerdev> lol
<shevy> yeah
<shevy> cheap shit pizzas
lyanchih has quit [Client Quit]
speakingcode has quit [Ping timeout: 240 seconds]
genta has joined #ruby
pietr0 has joined #ruby
amclain has joined #ruby
lyanchih has joined #ruby
kavinder has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
daxroc has quit [Ping timeout: 252 seconds]
yubrew has joined #ruby
kavinder has joined #ruby
gyre007 has quit [Ping timeout: 252 seconds]
thesheff17_ is now known as thesheff17
NinoScript has joined #ruby
zzak_ has quit [Ping timeout: 252 seconds]
dinoex has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
dinoex has joined #ruby
daxroc has joined #ruby
gyre007 has joined #ruby
zzak_ has joined #ruby
x1337807x has joined #ruby
ari-_-e has quit [Ping timeout: 240 seconds]
alvaro_o has quit [Quit: Ex-Chat]
Takle has joined #ruby
NukePuppy has joined #ruby
Dingus has quit [Quit: Leaving]
Zackio has quit [Read error: Connection reset by peer]
timonv has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
russt has quit [Quit: russt]
Hanmac has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cpruitt has joined #ruby
run_kmc_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Hanmac1 has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
troyready has quit [Quit: Leaving]
Hobogrammer_ has joined #ruby
helios157 has joined #ruby
djbkd has quit [Remote host closed the connection]
tectonic has quit []
malkomalko has joined #ruby
ryanleesipes has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
robustus has quit [Ping timeout: 252 seconds]
endash has quit [Quit: endash]
robustus has joined #ruby
ari-_-e has joined #ruby
zkay11 has joined #ruby
fgo has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
mercwithamouth has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 260 seconds]
brandonjmckay has quit [Quit: Leaving.]
mikepack has quit [Remote host closed the connection]
Zackio has joined #ruby
mikepack has joined #ruby
HashNuke has joined #ruby
_justin has quit [Quit: _justin]
gorpon has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
x1337807x has joined #ruby
b00stfr3ak has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
d34th4ck3r has quit [Quit: zzz]
dc_ has joined #ruby
Hobogrammer_ has quit [Quit: WeeChat 0.4.3]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
frogsy has joined #ruby
dseitz has joined #ruby
dc has quit [Ping timeout: 240 seconds]
Kricir has quit [Remote host closed the connection]
hamakn_ has joined #ruby
__class__ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
hamakn_ has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
SCommette has quit [Quit: SCommette]
Lucky__ has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
hackeron has quit [Ping timeout: 276 seconds]
toastynerd has joined #ruby
tkuchiki_ has joined #ruby
aspires has joined #ruby
frem_ has quit [Ping timeout: 276 seconds]
hackeron has joined #ruby
GriffinHeart has quit [Ping timeout: 252 seconds]
d34th4ck3r has joined #ruby
charliesome has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
locriani has quit [Ping timeout: 240 seconds]
locriani_ has joined #ruby
oo_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
toastynerd has joined #ruby
frosgy has joined #ruby
_justin has joined #ruby
Kricir has joined #ruby
<Jakey_Cloud___> i hate ruby
Jakey_Cloud___ has left #ruby [#ruby]
lukec has quit [Quit: lukec]
hgl has joined #ruby
learner has joined #ruby
frogsy has quit [Ping timeout: 245 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
hamakn has joined #ruby
Kaedenn1 has left #ruby [#ruby]
kavinder has quit [Remote host closed the connection]
sailias has joined #ruby
kavinder has joined #ruby
diegoviola has joined #ruby
freerobby has quit [Quit: Leaving.]
malkomalko has quit []
sack_lunch has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
kavinder has quit [Remote host closed the connection]
yubrew has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
alexju has quit [Remote host closed the connection]
yetanotherdave has quit [Ping timeout: 264 seconds]
Rollabunna has quit [Ping timeout: 240 seconds]
_justin has quit [Quit: _justin]
<gr33n7007h> 'F0:1C:13:E4:7F:96'.split(/:/).reverse.map { |b| b.to_i(16) } What would be the equivilent using unpack/pack ?
yubrew has quit [Ping timeout: 264 seconds]
b00stfr3ak has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
pontiki has joined #ruby
cpruitt has quit [Quit: cpruitt]
<pontiki> ahoy, rubyists
nnu has quit [Ping timeout: 240 seconds]
lukec has joined #ruby
razrunelord has joined #ruby
<benzrf> hello pontiki
Spami has quit [Quit: This computer has gone to sleep]
infinitone has joined #ruby
jxf has joined #ruby
helios157 has quit [Remote host closed the connection]
JokerDoomWork has joined #ruby
mary5030_ has quit [Remote host closed the connection]
larissa has joined #ruby
Kricir has quit [Remote host closed the connection]
freerobby has joined #ruby
aspires has quit []
fgo has joined #ruby
Wolland has joined #ruby
disconnekted has joined #ruby
jlast has joined #ruby
dc_ has quit [Remote host closed the connection]
Wolland has quit [Client Quit]
fgo has quit [Ping timeout: 276 seconds]
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
MatthewsFace has joined #ruby
cpruitt has joined #ruby
kireevco has quit [Quit: Leaving.]
rezzack has quit [Ping timeout: 276 seconds]
<pontiki> quiet night tonight
Valesk has quit [Quit: Textual IRC Client: www.textualapp.com]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
razrunelord has quit [Remote host closed the connection]
disconnekted has quit [Remote host closed the connection]
feature_creep_ has joined #ruby
bradhe has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
gbchaosmaster has joined #ruby
feature_creep_ has quit [Client Quit]
mikesplain has joined #ruby
kavinder has joined #ruby
danshultz has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
t4tscool has joined #ruby
freerobby has quit [Quit: Leaving.]
djbkd has joined #ruby
xcesariox has joined #ruby
mikepack has quit [Ping timeout: 260 seconds]
locriani_ has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
locriani has joined #ruby
jack_rabbit has quit [Read error: Connection reset by peer]
lw has joined #ruby
locriani_ has joined #ruby
locriani_ has quit [Client Quit]
yfeldblum has quit [Ping timeout: 240 seconds]
treehug88 has joined #ruby
treehug88 has quit [Max SendQ exceeded]
cpruitt has quit [Quit: cpruitt]
kireevco has joined #ruby
kireevco has left #ruby [#ruby]
treehug88 has joined #ruby
locriani has quit [Ping timeout: 240 seconds]
yacks has joined #ruby
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cache_Money has joined #ruby
ixti has quit [Ping timeout: 264 seconds]
roadt` has joined #ruby
cpruitt has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
yubrew has joined #ruby
roadt has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Quit: Leaving...]
disconnekted has joined #ruby
comma8 has quit [Ping timeout: 252 seconds]
yetanotherdave has joined #ruby
Shidash has joined #ruby
braincrash has quit [Quit: bye bye]
yubrew has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
Gooder has joined #ruby
timonv has joined #ruby
n0n3 has joined #ruby
larissa has quit [Quit: Leaving]
disconnekted has quit [Remote host closed the connection]
braincrash has joined #ruby
Lutece has quit [Ping timeout: 272 seconds]
<reactormonk> got "suit\x92s"
<reactormonk> ... but want "suit’s". What's the encoding path I have to do?
jamto11 has quit [Ping timeout: 276 seconds]
timonv has quit [Ping timeout: 252 seconds]
<ari-_-e> windows-1252 probably
<reactormonk> yup, thanks.
razrunelord has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
amargherio has quit [Read error: Connection reset by peer]
Beoran_ has quit [Ping timeout: 264 seconds]
toastynerd has quit [Remote host closed the connection]
JokerDoomWork has quit [Ping timeout: 260 seconds]
comma8 has joined #ruby
SCommette has joined #ruby
__class__ has quit [Read error: Connection reset by peer]
sptx00 has quit [Remote host closed the connection]
St_Marx has quit [Remote host closed the connection]
end_guy has quit [Write error: Broken pipe]
tacos1de has quit [Write error: Connection reset by peer]
Boohbah has quit [Write error: Connection reset by peer]
t4tscool has quit [Ping timeout: 240 seconds]
dseitz has joined #ruby
fgo has joined #ruby
tectonic has joined #ruby
freespeech has joined #ruby
<freespeech> hey all how do i create new.html.erb?
<toretore> lol
Beoran_ has joined #ruby
<freespeech> im a noob
x1337807x has joined #ruby
x1337807x has quit [Client Quit]
bluOxigen has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
__class__ has joined #ruby
<arrubin> freespeech: Use your favorite text editor.
oo_ has quit [Remote host closed the connection]
<freespeech> erm notepad++?
<shevy> lol
<arrubin> Sure.
<freespeech> am referring to this guide http://guides.rubyonrails.org/getting_started.html
<freespeech> esp. this part Go ahead now and create a new file at app/views/articles/new.html.erb and write this content in it:
<shevy> freespeech come to linux man
Wolland has joined #ruby
cpruitt has quit [Quit: cpruitt]
<freespeech> i haz noov
<freespeech> noob*
St_Marx has joined #ruby
<shevy> you can't idle on windows forever
<freespeech> hmm this is heading elsewhere
<arrubin> freespeech: Create the file using Notepad++.
<freespeech> save it as...?
<arrubin> new.html.erb in the directory indicated.
Boohbah has joined #ruby
tacos1de has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
nateberkopec has joined #ruby
toretore has quit [Quit: This computer has gone to sleep]
<shevy> god
<shevy> nobody can exist who does not know how to use the save file dialog
x1337807x has joined #ruby
lw has quit [Quit: s]
rm_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
rm_ has joined #ruby
x1337807_ has joined #ruby
GriffinHeart has quit [Ping timeout: 264 seconds]
x1337807x has quit [Read error: Connection reset by peer]
nateberkopec has quit [Ping timeout: 240 seconds]
x1337807_ has quit [Client Quit]
bmurt has joined #ruby
jailbot has joined #ruby
<jailbot> hello friends
jack_rabbit has joined #ruby
<jailbot> has anyone completed the ruby koans
DroneX has quit [Ping timeout: 260 seconds]
rm_ has quit [Ping timeout: 245 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
julian-delphiki has quit [Ping timeout: 252 seconds]
end_guy has joined #ruby
yfeldblum has joined #ruby
<jailbot> anyone have experience with the ruby koans?
jack__ has joined #ruby
<jailbot> i’ve got a question about classe
bean has joined #ruby
freezey has joined #ruby
arrubin has quit [Ping timeout: 252 seconds]
arrubin has joined #ruby
bradhe has joined #ruby
pietr0 has quit [Quit: pietr0]
kireevco has joined #ruby
<bricker`LA> jailbot: ask away
Solnse has quit [Remote host closed the connection]
toastynerd has joined #ruby
jack__ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
jack__ has joined #ruby
razrunelord has quit []
northfurr has quit [Quit: northfurr]
yubrew has joined #ruby
<jailbot> bricker`LA
Hanmac has quit [Ping timeout: 252 seconds]
diegoviola has quit [Ping timeout: 245 seconds]
relix has joined #ruby
razrunelord has joined #ruby
jack__ has quit [Ping timeout: 252 seconds]
phoo1234567 has joined #ruby
bio is now known as Biohazard
<jailbot> sorry im a noob
yubrew has quit [Ping timeout: 260 seconds]
<jailbot> im gonna try and work thru this
<jailbot> lol what
<jailbot> I got it
sailias has quit [Ping timeout: 264 seconds]
kavinder has quit [Remote host closed the connection]
oo_ has joined #ruby
Deele has joined #ruby
jlast has quit [Remote host closed the connection]
ponga has quit []
toastynerd has quit [Remote host closed the connection]
chihhsin has quit [Remote host closed the connection]
freespeech has quit []
lyanchih has quit [Quit: lyanchih]
lyanchih has joined #ruby
shadoi1 has joined #ruby
Rollabunna has joined #ruby
musl_ has quit [Ping timeout: 245 seconds]
nitish has joined #ruby
lw has joined #ruby
tylersmith has quit [Remote host closed the connection]
nitish has quit [Client Quit]
shadoi1 has left #ruby [#ruby]
oo_ has quit [Ping timeout: 240 seconds]
nitish has joined #ruby
kenndel has joined #ruby
uxp has quit [Remote host closed the connection]
phinfonet has quit []
GriffinHeart has joined #ruby
bmurt has quit []
Rollabunna has quit [Ping timeout: 252 seconds]
anaeem1 has joined #ruby
d34th4ck3r has quit [Quit: zzz]
fgo has joined #ruby
pwh has joined #ruby
diegoviola has joined #ruby
tanmay_ has joined #ruby
_justin has joined #ruby
jayne has quit [Read error: Connection timed out]
papercode has quit [Quit: WeeChat 0.4.3]
vpretzel has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
musl_ has joined #ruby
fgo has quit [Remote host closed the connection]
fluve has joined #ruby
anaeem1 has quit [Ping timeout: 252 seconds]
freezey has quit []
kavinder has joined #ruby
jayne has joined #ruby
russt has joined #ruby
uxp has joined #ruby
i_s has joined #ruby
yfeldblum has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
Kricir has joined #ruby
wallerdev has joined #ruby
i_s has quit [Remote host closed the connection]
NukePuppy has quit [Ping timeout: 240 seconds]
sinkensabe has joined #ruby
SCommette has quit [Quit: SCommette]
Arkaniad has joined #ruby
jailbot has quit [Ping timeout: 240 seconds]
mikesplain has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kavinder has quit [Remote host closed the connection]
jxf has quit [Ping timeout: 240 seconds]
mikepack has joined #ruby
djbkd has quit [Remote host closed the connection]
mattmcclure has joined #ruby
jxf has joined #ruby
lukec has quit [Quit: lukec]
timgauthier has joined #ruby
anaeem1_ has joined #ruby
nateberkopec has joined #ruby
james_d_h has joined #ruby
benzrf is now known as benzrf|offline
mikepack has quit [Ping timeout: 240 seconds]
<j75> ahoy pontiki
<pontiki> hi j75
nateberkopec has quit [Ping timeout: 240 seconds]
nitish has quit [Quit: Bye Bye...]
djbkd has joined #ruby
nnu has joined #ruby
oo_ has joined #ruby
yetanotherdave has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 276 seconds]
yubrew has joined #ruby
vpretzel has joined #ruby
Hanmac1 has quit [Ping timeout: 240 seconds]
chihhsin has joined #ruby
nvmme has quit [Ping timeout: 265 seconds]
Morkel has joined #ruby
razrunelord has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 264 seconds]
timonv has joined #ruby
vpretzel has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
maletor has joined #ruby
tectonic has quit []
pietr0 has joined #ruby
aganov has joined #ruby
kenneth has joined #ruby
pietr0 has quit [Client Quit]
timonv has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
Kricir has quit [Remote host closed the connection]
IceDragon has quit [Quit: Space~~~]
endash has joined #ruby
coderhs has joined #ruby
vpretzel has joined #ruby
jamto11 has joined #ruby
phoo1234567 has quit [Remote host closed the connection]
_justin has quit [Ping timeout: 252 seconds]
_justin_ has joined #ruby
Kricir has joined #ruby
sigurding has joined #ruby
pietr0 has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
vpretzel has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
yfeldblum has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iaj_ has quit [Ping timeout: 265 seconds]
r0ok has quit [Quit: r0ok]
tectonic has joined #ruby
endash has quit [Quit: endash]
gorpon has joined #ruby
amclain has quit [Quit: Leaving]
mikepack has quit [Ping timeout: 276 seconds]
d34th4ck3r has joined #ruby
The_NetZ has joined #ruby
<The_NetZ> hey; question, how would one go about converting \xE6\xB5\xB4\xE5\xAE\xA4\xE5\x89\x8D into legible text in irb?
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tylersmith has joined #ruby
<ramblinpeck> hi all, is there something similiar to a pre-processor for ruby for abstracting out class definitions? I'm wanting to do something like this for building up more complex state machines without repeating myself a ton, but not sure its possible. https://gist.github.com/peck/2be39004960aa2531b82
<ari-_-e> The_NetZ: that depends on the encoding
iaj has joined #ruby
<The_NetZ> ari-_-e: yeah, I suppose so, but I'm just looking for a generic way of doing it.
<gr33n7007h> >> "\xE6\xB5\xB4\xE5\xAE\xA4\xE5\x89\x8D".encode
<The_NetZ> think I already figured it out a bit, though.
<The_NetZ> >> string = "\xE6\xB5\xB4\xE5\xAE\xA4\xE5\x89\x8D"
<eval-in_> The_NetZ => "浴室前" (https://eval.in/158538)
<ari-_-e> The_NetZ: you need to know the encoding...
<ari-_-e> how else could you possibly do it
<ari-_-e> numbers are meaningless by themselves
<The_NetZ> ari-_-e: I believe its japanese, so ja_JP. I know its somewhere in that area, so I just needed to figure out a way to ballpark till I get some sensible output.
<ari-_-e> that's going to use utf-8
<ari-_-e> The_NetZ: ja_JP is not an encoding
<ari-_-e> that's a locale or something
<The_NetZ> yeah, that is a locale, you're right.
timonv has joined #ruby
<DEA7TH> Is there a way to write the lambda which spares the |x|? e.g. instead of {|x| x+1}, in Scala one can use {_+1}
tylersmith has quit [Ping timeout: 264 seconds]
michael_lee has quit [Quit: Ex-Chat]
ponga has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
james_d_h has quit [Ping timeout: 245 seconds]
<apeiros> The_NetZ: looks like utf-8 to me
<The_NetZ> yeah, thanks.
brunops has quit [Quit: leaving]
<apeiros> so all you have to do is ensure a) your terminal is utf-8 capable, b) your external encoding (Encoding.default_external) is set to utf-8 and c) that string's encoding is set to utf-8
* apeiros off for commute
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
hakunin has quit [Ping timeout: 240 seconds]
alexju has joined #ruby
toastynerd has joined #ruby
<DEA7TH> looks like one can use procs like { &:increase_by_one }, but can I do the same thing with a method (defined with def m(args) [block] end)
<pipework> DEA7TH: Well, that's not quite there.
<DEA7TH> pipework: you're referring to { _ + 1 }?
<pipework> DEA7TH: No, but you could just do {|_| _ + 1} I think
<pipework> Or the stabby lambda syntax, if you like that.
tkuchiki has joined #ruby
gorpon has quit [Ping timeout: 260 seconds]
Alina-malina has quit [Ping timeout: 252 seconds]
ponga has quit []
bradhe has joined #ruby
RussellAllen has joined #ruby
<ari-_-e> DEA7TH: the & syntax is part of the method call syntax
apeiros has quit [Ping timeout: 240 seconds]
The_NetZ has left #ruby ["For a good time, try: 'curl -L http://bit.ly/10hA8iC | bash' ;)"]
Alina-malina has joined #ruby
<ari-_-e> what it does is invokes the #to_proc method on the given object and uses the returned value as the block
GriffinHeart has quit [Remote host closed the connection]
<ari-_-e> see Symbol#to_proc
kireevco has quit [Quit: Leaving.]
Gil has quit [Remote host closed the connection]
<DEA7TH> ah
Zackio has quit [Quit: ZNC - http://znc.in]
tkuchiki_ has quit [Ping timeout: 252 seconds]
Zackio has joined #ruby
banjara has joined #ruby
whyy has joined #ruby
mrsolo has joined #ruby
ta has quit [Remote host closed the connection]
nateberkopec has joined #ruby
toastynerd has quit [Remote host closed the connection]
<ari-_-e> ramblinpeck: so you're referring to the WORKFLOW_1_STATES and QC_STATES things?
why_away has joined #ruby
pwh has quit []
leslie2 has joined #ruby
<ari-_-e> ramblinpeck: also you can access an objects singleton/meta/eigen/whateverthefuck class with the Object#singleton_class method
infinitone has quit [Ping timeout: 260 seconds]
<ramblinpeck> ari-_-e: that's right, essentially just want to be able to dump the state definitions into a class/module/mixin/anything, and be able to conditionally add it to the class
<ari-_-e> and you don't have to look things up on the metaclass explicitly...
<leslie2> Does Ruby really has multithread ? what about GIL ?
<leslie2> I am confused now!
nateberkopec has quit [Ping timeout: 240 seconds]
whyy has quit [Ping timeout: 276 seconds]
<ramblinpeck> its a bit convoluted, but the only way I can figure out how to do any dynamic state machine with the workflow gem without having a new class for each conditionals
<ramblinpeck> Yeah, the meta class thing I didn't know about, pasted over from example and didn't remove it
kilk__ has joined #ruby
tylersmith has joined #ruby
sigurding has quit [Quit: sigurding]
<ari-_-e> ramblinpeck: this code doesn't look particularly similar to the examples here: https://github.com/geekq/workflow
shredding has joined #ruby
yubrew has joined #ruby
<ari-_-e> doesn't look like you're doing the workflow do ... end in the right plce
<ari-_-e> place
DeadManGonzo has joined #ruby
<ari-_-e> what example were you looking at?
jimbauds has quit [Remote host closed the connection]
zkay11 has quit [Remote host closed the connection]
<ramblinpeck> ari-_-e: near the bottom, individual workflows for objects, https://github.com/geekq/workflow/blob/master/test/multiple_workflows_test.rb
doev has joined #ruby
<ari-_-e> hmm
shadoi has joined #ruby
<ramblinpeck> Ideally I'd like to be able to nest state machines and delegate to each when needed, but none of the state machine gems seem to support that
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ramblinpeck> and lacking time to write my own for this project seems like the closest I can get
mrsolo has quit [Quit: This computer has gone to sleep]
<ramblinpeck> and this works, but trying to get it a little more DRY, and manageable for when I come back to it, add additional conditionals for new states, etc
timonv has quit [Remote host closed the connection]
yubrew has quit [Ping timeout: 255 seconds]
jimbauds has joined #ruby
doev has quit [Client Quit]
JBreit has joined #ruby
Kovensky has quit [Quit: ZNC - http://znc.in]
vt102 has quit [Ping timeout: 252 seconds]
<ari-_-e> ramblinpeck: so all of these things - workflow, state, event, etc, are all methods
JPascal has joined #ruby
<ari-_-e> that are being implicitly invoked on self
<ari-_-e> hmm
<ari-_-e> ramblinpeck: ok, what exactly would you want to factor out?
<ramblinpeck> State definitions are what I want to factor out
<ramblinpeck> being part of the workflow DSL I'm not sure how to do that though
ta has joined #ruby
<ramblinpeck> as the workflows aren't composable as instances, so hoping to be able to do it as part of the definition
<ari-_-e> well you could always just put them in a proc and then pass that to workflow as a block?
<ramblinpeck> hmm, that might work, I was thinking in terms of modules but proc just might be the ticket
<ari-_-e> so you'd do workflow &states maybe
vpretzel has joined #ruby
shadoi has quit [Quit: Leaving.]
MatthewsFace has quit [Quit: This computer has gone to sleep]
fgo has joined #ruby
bal has joined #ruby
<ari-_-e> yeah, I don't think you'd be able to do this with modules
<ari-_-e> since those are method calls
<ramblinpeck> so the proc wouldn't have to have the method definted and know about #state, correct?
diegoviola has quit [Ping timeout: 252 seconds]
relix has joined #ruby
Kovensky has joined #ruby
<ari-_-e> it passes the block to Specification.new
<ramblinpeck> Then do something like instance_eval &workflow1_proc to grab those states and put them in the new workflow definition?
<ari-_-e> it uses instance_eval
tkuchiki has quit [Remote host closed the connection]
lxsameer has joined #ruby
<ari-_-e> the block passed to workflow is invoked with instance_eval
<ari-_-e> which gives it the appropriate implicit contexts
tkuchiki has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
tylersmith has quit [Remote host closed the connection]
vpretzel has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby
claymore has joined #ruby
tagrudev has joined #ruby
balazs has quit [Ping timeout: 264 seconds]
echevemaster has quit [Remote host closed the connection]
arrubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
dapz has joined #ruby
kireevco has joined #ruby
<ramblinpeck> right, but to turn the proc into a proc that the specification will load it has to be evaled it seems
fgo has joined #ruby
<ramblinpeck> ...that was a convoluted sentence :)
diegoviola has joined #ruby
diegoviola has quit [Client Quit]
pietr0 has quit [Quit: pietr0]
<ari-_-e> yes, workflow evals it
ponga has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
<ari-_-e> as you can see in the code
<ari-_-e> or it winds up being eval'd
jimbauds has quit [Remote host closed the connection]
Rollabunna has joined #ruby
axilla has quit [Ping timeout: 240 seconds]
<ramblinpeck> ah, cool, thanks
<ramblinpeck> it looks like this is working
RussellAllen has left #ruby ["Leaving"]
kireevco has quit [Client Quit]
ponga has quit [Ping timeout: 240 seconds]
kiri has joined #ruby
axilla has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
Devanon has quit [Quit: WeeChat 0.4.3]
apeiros has joined #ruby
ponga has joined #ruby
toastynerd has joined #ruby
alem0lars has joined #ruby
toastynerd has quit [Remote host closed the connection]
Sep1 has joined #ruby
russt has quit [Quit: russt]
treehug88 has quit [Ping timeout: 240 seconds]
mehlah_ has quit [Quit: Leaving...]
jxf has quit [Ping timeout: 240 seconds]
blueOxigen has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
ta has quit [Read error: Connection reset by peer]
duncannz has joined #ruby
russt has joined #ruby
bigkevmcd has quit [Ping timeout: 252 seconds]
bigkevmcd has joined #ruby
linuxnewb2 has quit [Ping timeout: 240 seconds]
alem0lars has quit [Quit: Going AFK...]
jack_rabbit has quit [Remote host closed the connection]
phansch has joined #ruby
kireevco has quit [Quit: Leaving.]
MatthewsFace has joined #ruby
alem0lars has joined #ruby
agjacome has quit [Ping timeout: 240 seconds]
ta has joined #ruby
akonny has joined #ruby
klaut has joined #ruby
russt has quit [Quit: russt]
maletor has quit [Quit: Computer has gone to sleep.]
thomasxie has joined #ruby
thomasxie has quit [Read error: Connection reset by peer]
Avahey_ has quit [Quit: Connection closed for inactivity]
jimbauds has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
yfeldblum has quit [Remote host closed the connection]
LexicalScope has joined #ruby
yfeldblum has joined #ruby
diegoviola has joined #ruby
yubrew has joined #ruby
krz has joined #ruby
lsmola has quit [Ping timeout: 240 seconds]
jack_rabbit has joined #ruby
sski has joined #ruby
alem0lars has quit [Quit: Going AFK...]
_tpavel has joined #ruby
yfeldblu_ has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
mikeg has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
yubrew has quit [Ping timeout: 240 seconds]
skaflem has joined #ruby
shredding has quit [Quit: shredding]
ponga has quit []
maletor has joined #ruby
jimbauds has quit [Remote host closed the connection]
ponga has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikeg has quit [Ping timeout: 264 seconds]
maletor has quit [Client Quit]
Kricir has quit [Remote host closed the connection]
rghose1 has joined #ruby
charliesome has joined #ruby
dumdedum has joined #ruby
Kovensky has left #ruby ["Textual IRC Client: www.textualapp.com"]
jimbauds has joined #ruby
noop has joined #ruby
jack_rabbit has quit [Remote host closed the connection]
Macaveli has joined #ruby
n0n3 has quit [Ping timeout: 265 seconds]
anarang has joined #ruby
fabrice31 has joined #ruby
tesuji has joined #ruby
DEA7TH has quit [Ping timeout: 240 seconds]
freespeech has joined #ruby
vpretzel has joined #ruby
Dingus has joined #ruby
dawkirst has joined #ruby
cloudgeek has joined #ruby
n0n3 has joined #ruby
<cloudgeek> How to convert a .rb file into xml , I am looking ar rexml, and other parser or nokogiri
mikepack has joined #ruby
jimbauds has quit [Remote host closed the connection]
<freespeech> what doe this error means? NoMethodError in Articles#show
tanmay_ has quit [Ping timeout: 276 seconds]
thomasxie has joined #ruby
<ari-_-e> cloudgeek: .rb files contain ruby code... there is no xml representation of ruby code
vpretzel has quit [Ping timeout: 240 seconds]
jimbauds has joined #ruby
<tobiasvl> freespeech: what's Articles?
jack_rabbit has joined #ruby
<tobiasvl> freespeech: post the code and traceback on http://gist.github.com
<Mon_Ouie> freespeech: Just that: you tried to call a method that doesn't exist
<freespeech> thanks in adv guys, been followting this guide step by step
Xeago has joined #ruby
<freespeech> up 5.7
<freespeech> then i posted and received the said error
<tobiasvl> freespeech: #rubyonrails
mikepack has quit [Ping timeout: 255 seconds]
<freespeech> oh ok thanks
MatthewsFace has quit [Quit: This computer has gone to sleep]
yfeldblu_ has quit [Remote host closed the connection]
<freespeech> o well - you need to be identified with services (cant join)
<ari-_-e> yeah
<ari-_-e> you should get an account
lyuzashi has joined #ruby
yfeldblum has joined #ruby
jprovazn has joined #ruby
momomomomo has quit [Quit: momomomomo]
tectonic has quit []
vali has quit [Ping timeout: 240 seconds]
<freespeech> how do i do that?
LACP has quit [Ping timeout: 240 seconds]
oso|away has quit [Ping timeout: 240 seconds]
<ari-_-e> read about it on the freenode website or ask in #freenode
<freespeech> sure man, thanks
<Wolland> . /msg nickserv help
<Wolland> freespeech:
GriffinHeart has joined #ruby
jamto11 has joined #ruby
sivoais has quit [Ping timeout: 245 seconds]
<freespeech> thanks guys
alem0lars has joined #ruby
danshultz has joined #ruby
stnly has quit [Ping timeout: 252 seconds]
ner0x has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 245 seconds]
alem0lars has quit [Ping timeout: 252 seconds]
<cloudgeek> ari-_-e: I have a ruby code file and I want it convert into a xml file
<ari-_-e> cloudgeek: you can't do that
<ari-_-e> why on earth would you want to
<ari-_-e> I mean, you could just wrap it in an xml element
<ari-_-e> but why
<cloudgeek> It is a need , I want write a compiler for that I need some help
<ari-_-e> a compiler?
<Mon_Ouie> What would the nodes of your XML document be?
<ari-_-e> for ruby?
<Mon_Ouie> That question is very vague
mattmcclure has quit [Quit: Connection closed for inactivity]
<cloudgeek> ari-_-e: Our company is written all our code since last 8 years , now we want to reuse that knowledge , for our new AI tool
<cloudgeek> that take input as XML file
danshultz has quit [Remote host closed the connection]
<ari-_-e> what
danshultz has joined #ruby
<cloudgeek> we have more than 200 thousand line of code in Ruby and now we want them to reuse
<ari-_-e> and why will turning it into xml help you reuse it?
<cloudgeek> for our other product that , that product take XML as a INPUT, So I want if we can convert ruby into xml
<ari-_-e> there is no XML representation of ruby code
<cloudgeek> ari-_-e: Our Artificial Intelligence software , works on XML files
<ari-_-e> feel free to try to invent one if you think it will help you
dangerousdave has joined #ruby
<ari-_-e> (just don't expect any help from sane people)
<cloudgeek> ari-_-e: is there any other method , I hired 3 compiler guys
* katlogic imagines cloudgeek as a pointy-haired boss "Now, we'll convert our 200kloc of ruby *somehow* into XML, because I said so"
<cloudgeek> ari-_-e: no, I need a direction , if it is possible
<katlogic> must suck to work for cloudgeek
jimbauds has quit [Remote host closed the connection]
<ari-_-e> cloudgeek: I still have no idea what you're trying to do - what does your AI thing do?
<apeiros> cloudgeek: google "enterprise ruby" by aaron patterson (aka tenderlove)
<apeiros> cloudgeek: not to confuse with ruby enterprise edition
<cloudgeek> katlogic: I not bad boss, even I ask each person talk formally to me , I am open-source guy , a down to earth guy
tanmay_ has joined #ruby
<cloudgeek> ari-_-e: our AI , does automation of all process in computer
<katlogic> apeiros: Wow, somebody actually did IT
<katlogic> scary
<cloudgeek> like if we autoscale the 1000 VM machines it does that
<ari-_-e> ugh
<apeiros> katlogic: that it was tenderlove tells you 90% of the story :)
<katlogic> ah, its just AST in xml
danshultz has quit [Ping timeout: 252 seconds]
<cloudgeek> apeiros: let me look at that
<ari-_-e> cloudgeek: that still doesn't really explain anything
Morkel_ has joined #ruby
<cloudgeek> If I can convet ruby code into c++ code,
<apeiros> katlogic: you should watch his presentation of it. I almost couldn't stop laughing. he's hilarious
<cloudgeek> c++ code have a written parser for xml
<ari-_-e> who wants to tell tenderlove that somebody is going to try using this for something serious?
<apeiros> he presented it together with such nice stuff as inline-assembler and neverdie :)
jack_rabbit has quit [Ping timeout: 260 seconds]
<apeiros> ari-_-e: I think he'd just laugh his ass off and not care (it's definitively what I'd do)
<cloudgeek> apeiros: this is awesome
<ari-_-e> cloudgeek: you are making absolutely no sense
<cloudgeek> yes I am no sense , a ruby lover
ta has quit [Remote host closed the connection]
<ari-_-e> cloudgeek: this project that you've been linked to is a joke
<ari-_-e> cloudgeek: you will be a laughingstock if you actually use it
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
<cloudgeek> some can lauch at me , but this a requirement , I need find a solution , this is way how computer science work
<ari-_-e> cloudgeek: well aren't you an expert, huh?
<apeiros> ari-_-e: he claims to have a boss who wants the ruby code in xml… I don't think people in his company would have the capacity…
lyuzashi has quit [Quit: Lingo - http://lingoirc.com]
sk87 has joined #ruby
<katlogic> ari-_-e: Damn it, you broke the spell
<cloudgeek> I am stupid fellow but who know open-source is on top of my heart ... geeks are always follish fellow
<apeiros> anyway, looks trollish. so why are you guys working yourself up so much?
<ari-_-e> fellas, I think we are being trolled
<katlogic> r/shittyprogramming invading again?
toastynerd has joined #ruby
<katlogic> Anyways, https://github.com/tenderlove/enterprise could genuinely have some legit uses
<apeiros> katlogic: the only one I see is using xpath to search your AST
<katlogic> apeiros: indeed that
claymore has quit [Ping timeout: 252 seconds]
<cloudgeek> My question is like that
<cloudgeek> instead of source code it is ruby code in my case
<katlogic> cloudgeek: thats what tenderlove did, and it looks it works fairly ok
lyuzashi has joined #ruby
<katlogic> problem is, this stuff is not very useful unless your ruby code is actually generated / highly regular
tanmay_ has quit [Remote host closed the connection]
<cloudgeek> katlogic: okay thanks
<cloudgeek> katlogic: that I can do with GCC
<cloudgeek> thanks
<reactormonk> really? That enterprice gem is a joke. A friend of mine was editing copy/pasting embedded XML out from some XML and replacing the XML escapes so he could edit the embedded XML
fluve has quit []
claymore has joined #ruby
<ari-_-e> cloudgeek: ruby code isn't source code?
<cloudgeek> reactormonk: what is your suggestion , But I look at his idea , he claim to solve one of my problem , convert ruby code into xml
Hobogrammer has quit [Quit: さようなら]
<katlogic> reactormonk: quit yer bitching and submit a patch which properly quotes/cdata string literals :>
<reactormonk> cloudgeek, if you want AST-editing, look somewhere else. Ruby is not your language.
jimbauds has joined #ruby
<ari-_-e> reactormonk: he's gonna plug his code into a super AI and learn all of its secrets
<ari-_-e> reactormonk: that's about all I can figure
<cloudgeek> reactormonk: yes Ruby is not mine, but this a problem I want solve, I just a slave for ruby because I Love it
<ari-_-e> and this AI only understand XML, apparently
<ari-_-e> which tells you something...
<katlogic> If skynet were to ever become sentient, I'm pretty sure it would be some huge XML blob of corporate Java code.
<ari-_-e> katlogic: probably
<cloudgeek> ari-_-e: we are not buliding skynet but It use AI solve it's own problems
GriffinHeart has quit [Remote host closed the connection]
Takle has joined #ruby
<cloudgeek> going for dinner
<ari-_-e> cloudgeek: I don't think the builders of skynet realized it was going to start destroying civilization
<cloudgeek> brb
<ari-_-e> maybe you're calling it something else, but...
yubrew has joined #ruby
aspiers_ has joined #ruby
<apeiros> hey reactormonk! long time no see! still overseas?
<cloudgeek> ari-_-e: no Even I don;t want that I love human civilization , not want machines to rule it
<ari-_-e> cloudgeek: haha well that's good to hear
<katlogic> Humanity destroyed by Ruby AST rewritten using xpath and xslt, John McCarthy would be proud. Fuck homoiconity.
<reactormonk> apeiros, yup
<reactormonk> apeiros, less ruby, more python/scala/nimrod atm
<ari-_-e> wow
<katlogic> I hope nimrod will get hyped soon.
<katlogic> Literally most indie language today.
<katlogic> I guess it will be always outsider, people still have to recover from the Pascal trauma.
mupkoo has joined #ruby
<reactormonk> katlogic, we're looking for someone to port ruby's Float#to_s to nimrod because the default printf coverts 5.0 to "5"
SevenWolf has quit [Quit: SevenWolf]
<apeiros> reactormonk: any plans on coming back? or will you stay over there?
nvmme has joined #ruby
nateberkopec has joined #ruby
<reactormonk> apeiros, sooner or later yup, but for now I've got my visum for another while.
Takle has quit [Ping timeout: 240 seconds]
<apeiros> nice
yubrew has quit [Ping timeout: 260 seconds]
dvabr has quit [Read error: Connection reset by peer]
<katlogic> reactormonk: You should be really using formatFloat
end_guy has quit [Ping timeout: 272 seconds]
dvabr has joined #ruby
Burgestrand has joined #ruby
Takle has joined #ruby
ctp has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
alem0lars has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
ctp has quit [Client Quit]
ctp has joined #ruby
ta has joined #ruby
shredding has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
<reactormonk> apeiros, having fun with twilight imperium over here, a good 8h of boardgame ;-)
<reactormonk> katlogic, something simple that just work like the ruby one would be perfect
<reactormonk> formatFloat for when you have specific wishes
end_guy has joined #ruby
<katlogic> reactormonk: stdout.writeln 0.formatFloat(ffDecimal, 1)
tylersmith has quit [Ping timeout: 252 seconds]
<apeiros> reactormonk: hehe, yeah, missing the board game evenings. those were nice events :)
<katlogic> reactormonk: just write custom proc to_s(f:float ...) wrapping this
alem0lars has quit [Ping timeout: 252 seconds]
<reactormonk> katlogic, nah, it's for `$`(f:float), the system one. And formatFloat with 1 doesn't work everytime.
<reactormonk> apeiros, there's a group somewhere, I believe they have a meetup
<katlogic> reactormonk: Well, overriding the system one would be tricky :/
<katlogic> (which is why I'd advise using explicit custom name)
JBreit has left #ruby ["Leaving"]
mikeg has joined #ruby
jimbauds has quit [Remote host closed the connection]
<reactormonk> katlogic, no, I want to write the system one.
Sep1 has quit [Quit: Leaving.]
andikr has joined #ruby
hermanmunster has quit [Remote host closed the connection]
hermanmunster has joined #ruby
akonny has quit [Quit: akonny]
r0bby has joined #ruby
robbyoconnor has quit [Ping timeout: 265 seconds]
alem0lars has joined #ruby
vpretzel has joined #ruby
vifino has joined #ruby
WishBoy has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
akonny has joined #ruby
hermanmunster has quit [Ping timeout: 240 seconds]
mikeg has quit [Ping timeout: 276 seconds]
vifino has quit [Quit: Ze Cat now leaves...]
sski has quit [Remote host closed the connection]
sski has joined #ruby
vpretzel has quit [Ping timeout: 265 seconds]
akonny has quit [Ping timeout: 252 seconds]
vifino has joined #ruby
why_away has quit [Remote host closed the connection]
<katlogic> reactormonk: oh, you mean the trailing zeros issue
<katlogic> yeah, that one is annoying
Takle has joined #ruby
Gooder` has joined #ruby
nvrch has joined #ruby
Takle has quit [Remote host closed the connection]
ephemerian has joined #ruby
sski has quit [Ping timeout: 260 seconds]
Takle has joined #ruby
freespeech has left #ruby [#ruby]
Gooder has quit [Ping timeout: 276 seconds]
sski has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
_justin_ has quit [Quit: _justin_]
roolo has joined #ruby
HashNuke has quit [Quit: Connection closed for inactivity]
dilated_dinosaur has joined #ruby
shvelo has joined #ruby
OffTheRails has joined #ruby
Rollabunna has quit [Ping timeout: 264 seconds]
nvmme has quit [Quit: nvmme]
<reactormonk> katlogic, exactly.
<reactormonk> and I'm not sure if I should go full ruby or just add yet another hack.
d34th4ck3r has quit [Quit: zzz]
timonv has joined #ruby
LexicalScope has quit [Quit: Leaving]
oo_ has quit [Remote host closed the connection]
thomasxie has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
riotjones has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claymore has quit [Ping timeout: 245 seconds]
<katlogic> reactormonk: For the time being I'd just scan the string for missing dot and append .0 if it is not there.
toordog has joined #ruby
thomasxie has joined #ruby
klaut has quit [Remote host closed the connection]
<katlogic> Full blown printer would be appropiate if this part of code gets rid of c_sprintf altogether? Just guessing, perhaps araq has completely different idea :)
LexicalScope has joined #ruby
phansch has quit [Quit: WeeChat 0.4.3]
oo_ has joined #ruby
Atttwww has quit [Ping timeout: 240 seconds]
claymore has joined #ruby
thomasxie has quit [Client Quit]
d34th4ck3r has joined #ruby
alexju has quit [Remote host closed the connection]
frobrob has joined #ruby
einarj has joined #ruby
whyy has joined #ruby
linuxnewb2 has joined #ruby
linuxnewb2 has quit [Changing host]
linuxnewb2 has joined #ruby
vinleod has joined #ruby
LexicalScope has quit [Ping timeout: 276 seconds]
Rainicorn has joined #ruby
Rainicorn has quit [Read error: Connection reset by peer]
linuxnewb2 has quit [Max SendQ exceeded]
linuxnewb2 has joined #ruby
LadyRainicorn has quit [Ping timeout: 245 seconds]
linuxnewb2 has quit [Max SendQ exceeded]
Rainicorn has joined #ruby
bradhe has joined #ruby
linuxnewb2 has joined #ruby
LadyRainicorn has joined #ruby
linuxnewb2 has quit [Max SendQ exceeded]
linuxnewb2 has joined #ruby
linuxnewb2 has quit [Max SendQ exceeded]
bradhe has quit [Read error: Connection reset by peer]
lyuzashi has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
linuxnewb2 has joined #ruby
yubrew has joined #ruby
bluOxigen has joined #ruby
linuxnewb2 has quit [Max SendQ exceeded]
vpretzel has joined #ruby
blueOxigen has quit [Ping timeout: 276 seconds]
Royixc has joined #ruby
linuxnewb2 has joined #ruby
Rainicorn has quit [Ping timeout: 252 seconds]
linuxnewb2 has quit [Max SendQ exceeded]
oo_ has quit [Remote host closed the connection]
linuxnewb2 has joined #ruby
linuxnewb2 has quit [Changing host]
linuxnewb2 has joined #ruby
Royixc has quit [Max SendQ exceeded]
_justin has joined #ruby
linuxnewb2 has quit [Max SendQ exceeded]
Royixc has joined #ruby
linuxnewb2 has joined #ruby
linuxnewb2 has quit [Changing host]
linuxnewb2 has joined #ruby
linuxnewb2 has quit [Max SendQ exceeded]
<katlogic> This seems to work, but fugly fugly
linuxnewb2 has joined #ruby
bradhe has quit [Ping timeout: 265 seconds]
yubrew has quit [Ping timeout: 252 seconds]
linuxnewb2 has quit [Max SendQ exceeded]
timonv has quit [Read error: Connection reset by peer]
linuxnewb2 has joined #ruby
Royixc_ has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
linuxnewb2 has quit [Max SendQ exceeded]
timonv has joined #ruby
vpretzel has quit [Ping timeout: 264 seconds]
linuxnewb2 has joined #ruby
elaptics`away is now known as elaptics
timonv_ has joined #ruby
linuxnewb2 has quit [Max SendQ exceeded]
linuxnewb2 has joined #ruby
linuxnewb2 has quit [Changing host]
linuxnewb2 has joined #ruby
mercerist has joined #ruby
linuxnewb2 has quit [Max SendQ exceeded]
dilated_dinosaur has quit [Ping timeout: 265 seconds]
merceris_ has joined #ruby
mercerist has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
Rainicorn has joined #ruby
Rainicorn has quit [Read error: Connection reset by peer]
linuxnewb2 has joined #ruby
linuxnewb2 has quit [Max SendQ exceeded]
rdark has joined #ruby
linuxnewb2 has joined #ruby
linuxnewb2 has quit [Max SendQ exceeded]
Rainicorn has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
linuxnewb2 has joined #ruby
abra has joined #ruby
banjara has quit [Ping timeout: 245 seconds]
Wolland has quit [Remote host closed the connection]
Wolland has joined #ruby
AlSquire has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
andrewlio has joined #ruby
Hanmac has quit [Remote host closed the connection]
olivier_bK has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
Wolland has quit [Ping timeout: 240 seconds]
danijoo has joined #ruby
Rainicorn is now known as LadyRainicorn
alex88 has joined #ruby
Vivekananda has quit [Remote host closed the connection]
LadyRainicorn has quit [*.net *.split]
riotjones has quit [*.net *.split]
Morkel has quit [*.net *.split]
bluOxigen has quit [*.net *.split]
toordog has quit [*.net *.split]
Takle has quit [*.net *.split]
oo_ has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
JPascal has quit [*.net *.split]
n0n3 has quit [*.net *.split]
tagrudev has quit [*.net *.split]
fabrice31 has quit [*.net *.split]
ponga has quit [*.net *.split]
snath has quit [*.net *.split]
krz has quit [*.net *.split]
justinmcp has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
DrShoggoth has quit [*.net *.split]
WormDrink has quit [*.net *.split]
Doc_X has quit [*.net *.split]
kotk has quit [*.net *.split]
dioms_ has quit [*.net *.split]
mroth has quit [*.net *.split]
Retroid_ has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
jokke has quit [*.net *.split]
metadave has quit [*.net *.split]
markmarkmark has quit [*.net *.split]
LadyRainicorn has joined #ruby
mikepack has joined #ruby
bluOxigen has joined #ruby
bluOxigen has quit [Changing host]
bluOxigen has joined #ruby
dioms_ has joined #ruby
markmarkmark has joined #ruby
toordog has joined #ruby
Doc_X has joined #ruby
Retroid_ has joined #ruby
WormDrink has joined #ruby
tagrudev has joined #ruby
RubyPanther has joined #ruby
tkuchiki has joined #ruby
oo_ has joined #ruby
snath has joined #ruby
metadave has joined #ruby
mroth has joined #ruby
ponga has joined #ruby
krz has joined #ruby
fabrice31 has joined #ruby
kotk has joined #ruby
Takle has joined #ruby
Morkel has joined #ruby
n0n3 has joined #ruby
tvw has joined #ruby
justinmcp has joined #ruby
jokke has joined #ruby
alem0lars has quit [Quit: Going AFK...]
Azulinho has joined #ruby
DrShoggoth has joined #ruby
timonv_ has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 265 seconds]
oso|away has joined #ruby
vali has joined #ruby
oso|away is now known as oso96_2000
d0lph1n98 has joined #ruby
LACP has joined #ruby
riotjones has joined #ruby
sivoais has joined #ruby
stnly has joined #ruby
mikecmpbll has joined #ruby
onewheelskyward has joined #ruby
GriffinHeart has joined #ruby
JPascal has joined #ruby
ghr has joined #ruby
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
klaut has joined #ruby
mupkoo has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
mupkoo has joined #ruby
Hanmac has joined #ruby
d0lph1n98 has quit [Ping timeout: 265 seconds]
ponga has quit [Remote host closed the connection]
dmarr has quit [Ping timeout: 240 seconds]
Norrin has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
Royixc has quit [Quit: Leaving]
GriffinHeart has quit [Ping timeout: 252 seconds]
r0bby_ has joined #ruby
r0bby has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
mupkoo has quit [Ping timeout: 255 seconds]
JasmeetQA has joined #ruby
dmarr has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
ponga has quit [Ping timeout: 245 seconds]
Biohazard has quit [Ping timeout: 252 seconds]
shredding has quit [Ping timeout: 260 seconds]
ayaz has joined #ruby
Royixc has joined #ruby
Royixc has quit [Max SendQ exceeded]
ecksit has joined #ruby
jamto11 has joined #ruby
jenrzzz has joined #ruby
jackneill_ has joined #ruby
coderhs has quit [Ping timeout: 260 seconds]
jackneill_ has quit [Client Quit]
shredding has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
blueOxigen has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
arturaz has joined #ruby
Biohazard has joined #ruby
dangerousdave has joined #ruby
Takle has joined #ruby
zarubin has joined #ruby
anaeem___ has joined #ruby
d34th4ck3r has quit [Quit: zzz]
zarubin has quit [Client Quit]
JPascal has quit []
moritzschaefer has joined #ruby
Norrin has joined #ruby
zarubin has joined #ruby
bluOxigen has quit [Ping timeout: 276 seconds]
faulkner has quit [Ping timeout: 276 seconds]
AndChat| has joined #ruby
anaeem1_ has quit [Ping timeout: 240 seconds]
jackneill has joined #ruby
szarubin has joined #ruby
szarubin has quit [Client Quit]
zarubin has quit [Client Quit]
zarubin has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
bradhe has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
yubrew has joined #ruby
AndChat| has quit [Ping timeout: 255 seconds]
SegFaultAX has quit [Excess Flood]
arturaz has quit [Remote host closed the connection]
faulkner has joined #ruby
SegFaultAX has joined #ruby
riotjones has quit [Quit: waT]
riotjones has joined #ruby
lsmola has joined #ruby
coderhs has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
yubrew has quit [Ping timeout: 260 seconds]
<reactormonk> katlogic, let's see
combusean has quit [Ping timeout: 240 seconds]
yacks has quit [Quit: Leaving]
vpretzel has joined #ruby
diegovio1 has joined #ruby
diegoviola is now known as Guest4775
diegovio1 is now known as diegoviola
Guest4775 has quit [Ping timeout: 252 seconds]
banister has joined #ruby
phansch has joined #ruby
Caius has quit [Quit: ""]
Caius has joined #ruby
vpretzel has quit [Ping timeout: 252 seconds]
gattuso has quit [Ping timeout: 260 seconds]
marr has joined #ruby
fgo has quit [Remote host closed the connection]
blackmesa has joined #ruby
lkba has joined #ruby
bluOxigen has joined #ruby
nateberkopec has joined #ruby
gattuso has joined #ruby
LACP has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Ping timeout: 260 seconds]
blueOxigen has quit [Ping timeout: 240 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
karupa is now known as zz_karupa
dapz has quit [Quit: Textual IRC Client: www.textualapp.com]
LACP has joined #ruby
dilated_dinosaur has joined #ruby
varius has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
dmarr has quit [Ping timeout: 240 seconds]
szarubin has joined #ruby
zarubin has quit [Ping timeout: 245 seconds]
Klumben has quit [Ping timeout: 240 seconds]
Liothen has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
szarubin is now known as zarubin
rghose2 has joined #ruby
zarubin has quit [Client Quit]
zarubin has joined #ruby
Slavox is now known as Slavox|AFK
joelteon has quit [Ping timeout: 240 seconds]
rghose1 has quit [Ping timeout: 276 seconds]
Hien has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
epochwolf has quit [Ping timeout: 240 seconds]
johnhamelink has quit [Ping timeout: 240 seconds]
coderhs has quit [Ping timeout: 252 seconds]
Liothen has joined #ruby
Hien has joined #ruby
dawkirst has quit [Remote host closed the connection]
dmarr has joined #ruby
joelteon has joined #ruby
epochwolf has joined #ruby
jenrzzz has joined #ruby
Photism has joined #ruby
moritzschaefer has quit [Ping timeout: 276 seconds]
dawkirst has joined #ruby
hermanmunster has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
JPascal has joined #ruby
DaniG2k has joined #ruby
fgo has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
mekajfire has quit [Ping timeout: 252 seconds]
coderhs has joined #ruby
diegoviola has quit [Remote host closed the connection]
Anarch has quit [Ping timeout: 252 seconds]
Klumben has joined #ruby
charliesome has joined #ruby
Rollabunna has joined #ruby
atraylen has quit [Ping timeout: 240 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
blackmesa has joined #ruby
chipotle has joined #ruby
rghose2 has quit [Ping timeout: 265 seconds]
decoponio has joined #ruby
Takle has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
gr33n7007h has joined #ruby
nvrch has quit [Quit: nvrch]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
johnhamelink has joined #ruby
lolmaus has quit [Quit: No Ping reply in 180 seconds.]
bradhe has quit [Ping timeout: 264 seconds]
mupkoo has joined #ruby
obs has joined #ruby
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
blueOxigen has joined #ruby
banister has joined #ruby
ecksit has quit [Quit: Computer has gone to sleep.]
lolmaus has joined #ruby
Takle has joined #ruby
fabrice31 has quit [Remote host closed the connection]
yacks has joined #ruby
SegFaultAX has quit [Excess Flood]
Xeago_ has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
SegFaultAX has joined #ruby
oso96_2000 has quit [Ping timeout: 245 seconds]
Xeago has quit [Ping timeout: 240 seconds]
dilated_dinosaur has quit [Ping timeout: 265 seconds]
vpretzel has joined #ruby
roolo has quit [Quit: Leaving...]
akonny has joined #ruby
oso|away has joined #ruby
rghose1 has joined #ruby
oso|away is now known as oso96_2000
chipotle has quit [Quit: cya]
gregf_ has quit [Quit: leaving]
AlSquirrel has joined #ruby
nfk has joined #ruby
AlSquire has quit [Ping timeout: 245 seconds]
blueOxigen has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
vpretzel has quit [Ping timeout: 276 seconds]
Cope_ is now known as Cope
bluOxigen has joined #ruby
rghose1 has quit [Ping timeout: 240 seconds]
ndrei has joined #ruby
combusean has joined #ruby
ponga has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
pzula has joined #ruby
duncannz has quit [Quit: Leaving]
GriffinHeart has joined #ruby
mikepack has joined #ruby
chipotle has joined #ruby
nateberkopec has joined #ruby
sepp2k has quit [Quit: Leaving.]
fgo has quit [Remote host closed the connection]
phansch has quit [Ping timeout: 240 seconds]
nvmme has joined #ruby
combusean has quit [Ping timeout: 260 seconds]
chipotle has quit [Client Quit]
ponga has quit [Ping timeout: 252 seconds]
chipotle has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
JokerDoomWork has joined #ruby
mercwithamouth has joined #ruby
mityaz has joined #ruby
mikepack has quit [Ping timeout: 252 seconds]
__class__ has quit [Ping timeout: 265 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
pzula has quit [Ping timeout: 265 seconds]
fabrice31 has joined #ruby
maximski has joined #ruby
whyy has quit [Read error: Connection reset by peer]
whyy has joined #ruby
lyanchih has quit [Ping timeout: 264 seconds]
__class__ has joined #ruby
phansch has joined #ruby
mikeg has joined #ruby
Rollabunna has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tarential has quit [Ping timeout: 240 seconds]
mateu has quit [Ping timeout: 276 seconds]
AndChat| has joined #ruby
kilk__ has quit [Remote host closed the connection]
mateu has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
tesuji has quit [Ping timeout: 276 seconds]
n_b has quit [Ping timeout: 245 seconds]
mikeg has quit [Ping timeout: 240 seconds]
kilk_ has joined #ruby
gr33n7007h has quit [Ping timeout: 260 seconds]
tami99 has joined #ruby
n_b has joined #ruby
gregf_ has joined #ruby
sski has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
DaniG2k has quit [Quit: leaving]
mijicd has joined #ruby
alem0lars has joined #ruby
rghose1 has joined #ruby
chipotle has joined #ruby
alem0lars has quit [Client Quit]
phutchins has joined #ruby
fabrice31 has quit [Remote host closed the connection]
aspiers_ has quit [Ping timeout: 240 seconds]
Tarential has joined #ruby
terrellt has quit [Ping timeout: 240 seconds]
rghose2 has joined #ruby
rghose1 has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
rdark has quit [Ping timeout: 252 seconds]
Guest47072 has joined #ruby
parduse is now known as Guest82116
Guest47072 is now known as parduse
bluOxigen has quit [Ping timeout: 276 seconds]
parduse is now known as Guest95638
kyb3r_ has quit [Read error: Connection reset by peer]
rdark has joined #ruby
Guest82116 has quit [Ping timeout: 276 seconds]
bluOxigen has joined #ruby
marr has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
yubrew has joined #ruby
Takle_ has joined #ruby
phutchin1 has joined #ruby
Takle_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
jamto11 has joined #ruby
pavelz has joined #ruby
Takle_ has joined #ruby
oo_ has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
bradhe_ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
phutchins has quit [Read error: Connection reset by peer]
phutchin1 has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 252 seconds]
eka has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sski has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
yubrew has quit [Ping timeout: 276 seconds]
bluOxigen has quit [Ping timeout: 260 seconds]
bradhe_ has quit [Ping timeout: 240 seconds]
Rainicorn has joined #ruby
Takle_ has quit [Remote host closed the connection]
Sep1 has joined #ruby
yalue has joined #ruby
bmurt has joined #ruby
LadyR has joined #ruby
LadyRainicorn has quit [Ping timeout: 252 seconds]
Sep1 has quit [Client Quit]
DouweM has joined #ruby
jackneill has quit [Remote host closed the connection]
fabrice31 has joined #ruby
nvmme has quit [Quit: nvmme]
abra has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
Rainicorn has quit [Ping timeout: 260 seconds]
St_Marx has quit [Remote host closed the connection]
phutchins has joined #ruby
St_Marx has joined #ruby
Slavox|AFK is now known as Slavox
jackneill has joined #ruby
abra has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
maximski has quit []
DouweM has quit [Ping timeout: 240 seconds]
vpretzel has joined #ruby
ponga has joined #ruby
Takle has quit [Remote host closed the connection]
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
_justin has quit [Quit: _justin]
harryk has joined #ruby
himsin has joined #ruby
LekeFly has joined #ruby
DouweM has joined #ruby
LadyRainicorn has joined #ruby
<harryk> hello guys
ponga has quit [Ping timeout: 240 seconds]
Rainicorn has joined #ruby
vpretzel has quit [Ping timeout: 264 seconds]
<harryk> can somebody explain me this? https://gist.github.com/anonymous/688171dcef9c4ffedc24 (result of adding two floats is unexpected)
LadyR has quit [Ping timeout: 252 seconds]
dawkirst has quit [Remote host closed the connection]
LadyR has joined #ruby
_justin has joined #ruby
dawkirst has joined #ruby
bluenemo has joined #ruby
mikeg has joined #ruby
LadyRainicorn has quit [Ping timeout: 260 seconds]
GriffinHeart has joined #ruby
nateberkopec has joined #ruby
JokerDoomWork has quit [Ping timeout: 240 seconds]
Rainicorn has quit [Ping timeout: 265 seconds]
whyy has quit [Remote host closed the connection]
whyy has joined #ruby
sputnik13 has joined #ruby
alem0lars has joined #ruby
shredding has quit [Quit: shredding]
<shevy> heya
shvelo has quit [Ping timeout: 255 seconds]
dawkirst has quit [Ping timeout: 245 seconds]
chipotle has quit [Quit: cya]
TorpedoSkyline has joined #ruby
<shevy> harryk what is unexpected?
LadyRainicorn has joined #ruby
<shevy> >> -31.68 + 32.0
<eval-in_> shevy => 0.3200000000000003 (https://eval.in/158683)
<shevy> seems like a simple mathematical addition, with a plus float and a minus float
<shevy> reactormonk are you still writing code in nimrod?
nateberkopec has quit [Ping timeout: 240 seconds]
LadyR has quit [Ping timeout: 240 seconds]
<harryk> shevy: yeah, but what the nature of additional 0.0000000000000003 ? :)
TorpedoSkyline has quit [Client Quit]
dawkirst has joined #ruby
whyy has quit [Ping timeout: 252 seconds]
frobrob has quit [Ping timeout: 252 seconds]
<shevy> harryk as far as I am aware, those calculations can not be accurately described in a float
marr has joined #ruby
LadyRainicorn has quit [Ping timeout: 240 seconds]
<crome> ah, floats
<crome> endless fun
george2|chakra has joined #ruby
<harryk> shevy: hehe, thanks for the links
george2 has quit [Ping timeout: 264 seconds]
<shevy> the weirdest things are those (88/33)
<shevy> >> (88/33).class
<eval-in_> shevy => Fixnum (https://eval.in/158684)
<shevy> huh
<shevy> irb outputs something differently
<shevy> Rational
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has quit [Remote host closed the connection]
chipotle has joined #ruby
<Hanmac1> shevy did you require "mathn" ?
chipotle has quit [Client Quit]
<shevy> dunno
<shevy> possibly automatically
<Hanmac1> shevy or with " -m Bc mode (load mathn, fraction or matrix are available)"
tessi_zz is now known as tessi
Hanmac1 is now known as Hanmac
<Hanmac> >> require "mathn"; (88/33).class
OffTheRails has quit [Quit: Leaving]
<eval-in_> Hanmac => Rational (https://eval.in/158685)
<shevy> hmm
<shevy> that's annoying
OffTheRails has joined #ruby
oo_ has quit [Remote host closed the connection]
pzula has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Slavox is now known as Slavox|AFK
agent_white has quit [Remote host closed the connection]
freggles has joined #ruby
<harryk> shevy: I try to make all variables as floats before calculations, that is known issue for me :)
mupkoo has quit []
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
roolo has joined #ruby
doodlehaus has joined #ruby
jespada has joined #ruby
JasmeetQA has quit [Read error: Connection reset by peer]
Takle has joined #ruby
oo_ has joined #ruby
maximski has joined #ruby
ldnunes has joined #ruby
yfeldblum has joined #ruby
mijicd has quit [Remote host closed the connection]
coderhs has quit [Ping timeout: 240 seconds]
troulouliou_dev has joined #ruby
yubrew has joined #ruby
hakunin has joined #ruby
whyy has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
bradhe has joined #ruby
shvelo has joined #ruby
blackmesa has joined #ruby
Avahey_ has joined #ruby
havenwood has joined #ruby
oo_ has quit [Remote host closed the connection]
rdark has quit [Ping timeout: 265 seconds]
yubrew has quit [Ping timeout: 240 seconds]
doodlehaus has quit [Remote host closed the connection]
bmurt has quit []
doodlehaus has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
phoo1234567 has joined #ruby
workmad3 has joined #ruby
gaboesquivel has joined #ruby
ra4king1 has joined #ruby
agjacome has joined #ruby
mehlah has joined #ruby
evgen has joined #ruby
doodlehaus has quit [Ping timeout: 260 seconds]
ra4king has quit [Ping timeout: 240 seconds]
happytux has joined #ruby
<happytux> hi
DaniG2k has joined #ruby
donnoc has joined #ruby
<happytux> So there is a FileList in Rake and the command in question accepts only a single path per invocation. Currently I do php_files.each to iterate manually over the files in the FileList.
coderhs has joined #ruby
nectarys has joined #ruby
<happytux> But is there a more elegant way? Can a task directly be applied on a FileList?
<happytux> I don't like this manual iteration.
<shevy> what is the best way to store threads, and reload them upon startup of the application at a later time?
alem0lars has quit [Quit: Going AFK...]
nvrch has joined #ruby
Takle has quit [Remote host closed the connection]
pzula has quit [Ping timeout: 265 seconds]
Slavox|AFK is now known as Slavox
banister has joined #ruby
mark_locklear has joined #ruby
nectarys has quit [Quit: Ex-Chat]
<workmad3> shevy: I'm not aware of any brilliant ways to do that
<shevy> hehe
<shevy> brilliant ways :D
Royixc has joined #ruby
Royixc has quit [Max SendQ exceeded]
<workmad3> shevy: which is why people tend to go more for persistent queues and short jobs, so they don't need to worry about killing the threads as they can just restart and the threads will start pulling work off the queue again
JokerDoomWork has joined #ruby
<banister> workmad3 hey guy, what do u think of swift?
<workmad3> banister: don't think I've ever used it
russt has joined #ruby
mikepack has joined #ruby
feature_creep has joined #ruby
russt has quit [Client Quit]
<workmad3> banister: this thing? https://github.com/shanna/swift
SegFaultAX has quit [Excess Flood]
lw has quit [Quit: s]
<shvelo> Where do I find a Ruby-related job? I want to GTFO this country asap
Takle has joined #ruby
paulfm has joined #ruby
benzrf|offline is now known as benzrf
SegFaultAX has joined #ruby
vpretzel has joined #ruby
<banister> workmad3 no, wift lang
<banister> workmad3 swift lang
<banister> workmad3 apples' new langauge
<workmad3> banister: haven't looked at it yet
<banister> workmad3 it's pretty awesome i think
sk87 has joined #ruby
<banister> workmad3 takes a lot from ruby, and improves on it IMO
ta has quit [Remote host closed the connection]
ponga has joined #ruby
jackneill has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 240 seconds]
<banister> workmad3 though i will miss things like executable class bodies which was a really cool idea
<banister> workmad3 it even allows things like: [1,2,3,3].map { $0 * 2 }
pzula has joined #ruby
JokerDoomWork has quit [Ping timeout: 252 seconds]
pzula has quit [Client Quit]
paulfm has quit [Client Quit]
DroneX has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Client Quit]
<workmad3> banister: makes me think more of a cross between C# and actionscript tbh
<banister> workmad3 yap, it was more the closure syntax that it gets from ruby i think
vpretzel has quit [Ping timeout: 240 seconds]
GriffinHeart has joined #ruby
<DroneX> exit
DroneX has quit [Client Quit]
<banister> workmad3 though the swift way of doing it is better than ruby's IMO, they dont have a weird lambda/block distinction
<benzrf> banister: are you betraying ruby????
<havenwood> banister: i get the feeling it borrows a ton from Ruby too
Tamae has joined #ruby
<havenwood> Apple Ruby
<benzrf> banister: i guess it least has sum types
ponga has quit [Ping timeout: 260 seconds]
<banister> benzrf Yeah, it borrows heavily from haskell too
jackneill has joined #ruby
<workmad3> banister: I bet it does inside the implementation ;)
Takle has quit [Remote host closed the connection]
<workmad3> banister: so I bet you'll butt heads with stuff like that if you ever tried something like pry in it :P
<banister> benzrf Maybe is built into the language
nateberkopec has joined #ruby
<banister> workmad3 did you see the it comes with a built in repl in the ide? it's a light table style repl
ndrei has quit [Ping timeout: 264 seconds]
<benzrf> i understand it will support recursive ADTs :O
<banister> so i guess it's more of a live document than a repl
alem0lars has joined #ruby
<workmad3> banister: that sounds like smalltalk
<benzrf> but i refuse to use it on principle if its proprietary
<benzrf> >:[
<workmad3> banister: and calling interfaces 'protocols' is also taken directly from smalltalk, I believe
<havenwood> benzrf: i hope for the lang's sake they open source it
<benzrf> it has a distinctly scala flavor from everything ive seen of it o.O
<banister> benzrf the guy who designed/built LLVM also designed swift btw
<benzrf> neat
<workmad3> banister: but will see how it goes
ndrei has joined #ruby
<workmad3> banister: I don't plan on switching any time soon, and I don't use enough apple stuff to consider an apple proprietary language at the moment ;)
maximski has quit []
<banister> workmad3 yeah, i hope the language opens up and we can start using it outside of apples ecosystem
<banister> it has a lot of nice stuff
Takle has joined #ruby
<banister> much prefer it to things like Go
<banister> which is one of the most boring langauges on the planet
mobile8 has joined #ruby
<workmad3> heh
<mobile8> hey, need to update ruby on debian squeeze
<banister> and it doesnt seem as zany as rust
<mobile8> whats the best way to do this?
<workmad3> banister: you could always spice up your life by learning malbolge...
<havenwood> mobile8: Updating to a new apt package?
<banister> workmad3 what's tat?
<mobile8> havenwood: have now installed 1.8.7 but celluloid requires Ruby version >= 1.9.2.
paulfm has joined #ruby
<banister> workmad3 looks like perl
<banister> ;)
<havenwood> mobile8: sudo apt-get install ruby1.9.1 ruby1.9.1-dev
<workmad3> banister: except worse ;)
<shevy> ack
<mobile8> havenwood: need 1.9.2
<workmad3> banister: malbolge is machine code for a ternary VM...
rdark has joined #ruby
<havenwood> mobile8: then: sudo update-alternatives --config ruby && sudo update-alternatives --config gem
<banister> benzrf how's your haskell learnings going? started any projects or still just playing with the ideas?
<havenwood> mobile8: the ruby1.9.1 package is actually Ruby 1.9.3
<shevy> mobile8 don't get confused by naming choices of debian
justinmcp has quit [Ping timeout: 260 seconds]
<benzrf> banister: i made an evil thing
<benzrf> banister: so so evil
<workmad3> banister: gotta love that ternary VM... it as a crz opcode... crazy operation!
ndrei has quit [Ping timeout: 265 seconds]
<banister> benzrf what?
<mobile8> shevy: havenwood ok sorry
<banister> workmad3 hehe
lyanchih_ has joined #ruby
<banister> benzrf workmad3 btw here's the guy behind swift http://nondot.org/sabre/
ndrei has joined #ruby
<havenwood> banister: "drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU"
<havenwood> banister: interesting
GriffinHeart has quit [Remote host closed the connection]
ta has joined #ruby
why_away has joined #ruby
whyy has quit [Ping timeout: 264 seconds]
kaleido has quit [Quit: Textual IRC Client: www.textualapp.com]
mityaz has quit [Quit: See ya!]
kaleido has joined #ruby
kaleido has joined #ruby
kaleido has quit [Changing host]
<benzrf> banister: step 1: git clone https://github.com/benzrf/vampire
kaspergrubbe has joined #ruby
<benzrf> banister: step 2: write a haskell file with a few very simple functions
kaleido has quit [Client Quit]
<benzrf> banister: step 3: in it, import Debug.Vampire.Trace and add a {-# LANGUAGE ImplicitParams #-} pragma
dblessing has joined #ruby
<benzrf> banister: step 4: $ vampire TheFile.hs > TheFile2.hs
<banister> benzrf can u give me an overview + tell me what it does before i do it ? :D
<benzrf> banister: you'll find out o3o
shvelo has quit [Ping timeout: 276 seconds]
<benzrf> banister: oh wait there should be a cabal install in there
<mobile8> havenwood: update-alternatives: error: no alternatives for ruby.
<havenwood> mobile8: ah, okay - that's fine if it is the only apt Ruby installed
<havenwood> mobile8: then no need to switch
mehlah has quit [Quit: Leaving...]
<havenwood> mobile8: which ruby
<mobile8> sec
nateberkopec has quit [Quit: Leaving...]
milkohol has joined #ruby
<mobile8> havenwood: both 1.8.7 and 1.9.2 now
kaleido has joined #ruby
kaleido has joined #ruby
kaleido has quit [Changing host]
yfeldblum has joined #ruby
nateberkopec has joined #ruby
anaeem___ has quit [Remote host closed the connection]
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblu_ has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
banister has joined #ruby
yubrew has joined #ruby
mekajfire has joined #ruby
<mobile8> havenwood: still celluloid requires Ruby version >= 1.9.2.
<mobile8> :(
<mobile8> ii ruby1.9.1 1.9.2.0-2+deb6u2 Interpreter of object-oriented scripting language Ruby 1.9.2
<havenwood> mobile8: which Ruby and Gem are you currently using?
<mobile8> ii rubygems1.8 1.3.7-3 package management framework for Ruby libraries/applications
<benzrf> yo banister wanna try my eeevil project
<havenwood> mobile8: so you need to use RubyGems 1.9 too
<mobile8> ok
<havenwood> mobile8: update-alternatives --config gem
zorak has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
ndrei has joined #ruby
<mobile8> havenwood: There is only one alternative in link group gem: /usr/bin/gem1.8
<mobile8> Nothing to configure.
<havenwood> mobile8: maybe you need to install a gem 1.9.1 alongside 1.9.2.0-2+deb6u2, i don't know - that's really old :O
malkomalko has joined #ruby
andrewhl has joined #ruby
<havenwood> mobile8: 1.9.2 and earlier are past end-of-life by the way
yfeldblu_ has quit [Ping timeout: 240 seconds]
<havenwood> mobile8: celluloid works great on 1.9.3, 2.0, and 2.1
<mobile8> so should i install gem 1.9 ?
DaniG2k has quit [Quit: leaving]
<havenwood> mobile8: modern Rubies ship with RubyGems
<havenwood> mobile8: though they used to be separate
yubrew has quit [Ping timeout: 276 seconds]
comma8 has quit [Ping timeout: 240 seconds]
nectarys has joined #ruby
nectarys_ has joined #ruby
<mobile8> hmm
<mobile8> so what can i do
milkohol has quit [Ping timeout: 276 seconds]
<banister> benzrf not enough time right now sry, at work, but i'd appreciate a summary where you just tell me what it does and then i'll try it later when i get a chance :)
<havenwood> mobile8: update to a newer Debian, use ruby-install to install to /usr/local if you need only one Ruby, or ruby-install/chruby or RVM for switching Rubies.
nnu has quit [Ping timeout: 240 seconds]
shevy has quit [Ping timeout: 245 seconds]
Morkel has quit [Quit: Morkel]
timonv has quit [Remote host closed the connection]
<mobile8> i just update to new debian
<mobile8> any idea how long this takes?
<havenwood> mobile8: totally depends, but with new debian you can get a proper Ruby apt package ;)
timonv has joined #ruby
LadyRainicorn has joined #ruby
<mobile8> havenwood: so no risk my system crashes or something right?
<mobile8> I mean everything will just stay the same
<happytux> anyone?
<happytux> So there is a FileList in Rake and the command in question accepts only a single path per invocation. Currently I do php_files.each to iterate manually over the files in the FileList.
mary5030 has joined #ruby
<happytux> But is there a more elegant way? Can a task directly be applied on a FileList?
<happytux> I don't like this manual iteration.
<havenwood> mobile8: try #debian
katmandoo has joined #ruby
danshultz has joined #ruby
shredding has joined #ruby
jamto11 has joined #ruby
oo_ has joined #ruby
<AntelopeSalad> is there a way to .scan on an array (the entire contents) instead of a string?
<mobile8> thank
<mobile8> thanks
flughafen has quit [Ping timeout: 255 seconds]
LekeFly has quit [Ping timeout: 240 seconds]
Ankhers has joined #ruby
thisirs has joined #ruby
lw has joined #ruby
timonv has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
mikeg has quit [Remote host closed the connection]
<benzrf> banister: ok fiiine
<tobiasvl> AntelopeSalad: array.join.scan /foo/
<tobiasvl> AntelopeSalad: depends on what you want though
<benzrf> banister: it does this http://imgur.com/a/BGBtg
<benzrf> banister: note that usage is abit different from what i have in that repo
malkomalko has quit []
Takle has quit [Remote host closed the connection]
jamto11 has quit [Ping timeout: 255 seconds]
<AntelopeSalad> tobiasvl: yeah that works, it beats opening up a file
kevind has joined #ruby
vpretzel has joined #ruby
balazs has joined #ruby
shevy has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vpretzel_ has joined #ruby
george2|chakra is now known as george2
donnoc has quit [Ping timeout: 240 seconds]
himsin has quit [Quit: himsin]
Takle has joined #ruby
redondo has quit [Ping timeout: 264 seconds]
shvelo has joined #ruby
flughafen has joined #ruby
creativeembassy has joined #ruby
timonv has joined #ruby
kevind has quit [Client Quit]
vpretzel has quit [Ping timeout: 240 seconds]
cuqa has joined #ruby
<cuqa> hello
<cuqa> im trying to make an snmp query but I am failing and getting a timeout
<cuqa> also the lib is complain about my OID which begins with an "iso.3.6.1.2......."
donnoc has joined #ruby
centrx has joined #ruby
_justin has quit [Quit: _justin]
banister has joined #ruby
<cuqa> also I havent figured out how to set the community string :[
bmurt has joined #ruby
mehlah has joined #ruby
pabloh has joined #ruby
cpruitt has joined #ruby
cpruitt has quit [Client Quit]
ta has quit [Read error: Connection reset by peer]
runa has joined #ruby
SegFaultAX has quit [Excess Flood]
<runa> heyas. has anyone seen a weird interaction between ActiveSupport's autoload an unicorn prefork? Sometimes, I get "unintialized constant Foo", but Foo is loaded without any problems if I 'require "foo"' ...
SegFaultAX has joined #ruby
mikesplain has joined #ruby
<pontiki> i haven't, runa, but maybe ask over in #rubyonrails?
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<apeiros> autoloading considered harmful
kavinder has joined #ruby
Criztian has joined #ruby
ValicekB has quit [Ping timeout: 252 seconds]
<runa> apeiros: really? can I read something about that?
_justin has joined #ruby
<happytux> Where can I ask questions about Rake?
<runa> ponga: I'm not using rails :)
anaeem1_ has joined #ruby
<apeiros> I think the threading issue has actually been solved in either 2.0 or 2.1
rdark has quit [Ping timeout: 252 seconds]
jxf has joined #ruby
Rainicorn has joined #ruby
cpruitt has joined #ruby
doodlehaus has joined #ruby
ponga has quit [Ping timeout: 260 seconds]
Rainicorn has quit [Read error: Connection reset by peer]
zorak has joined #ruby
rdark has joined #ruby
Rainicorn has joined #ruby
LadyRainicorn has quit [Ping timeout: 264 seconds]
nectarys_ has quit [Quit: Ex-Chat]
nectarys has quit [Read error: Connection reset by peer]
nectarys has joined #ruby
nectarys has quit [Read error: Connection reset by peer]
nectarys_ has joined #ruby
codabrink has joined #ruby
<happytux> Hm, can anyone read me? Test Test Test
maximski has joined #ruby
maximski has quit [Max SendQ exceeded]
tkuchiki has quit [Ping timeout: 240 seconds]
franzip has joined #ruby
<vee> mope
garndt has joined #ruby
jprovazn has quit [Quit: Leaving]
<happytux> ok
maximski has joined #ruby
<vee> happytux: try asking your question vs asking the question to ask a question :P
maximski has quit [Max SendQ exceeded]
bitboxer has joined #ruby
<shevy> happytux yeah but why do you need rake, can't you use pure ruby + method calls alone? Your earlier questions about FileList, nobody needs it, we have Dir[]
justinmcp has joined #ruby
ta has joined #ruby
<pontiki> runa, assuming that was really to me, while you may not be using rails, you'll find a lot more people over there that have used ActiveRecord in concert with unicorn
Gooder` has quit [Remote host closed the connection]
roadt`` has joined #ruby
Gooder` has joined #ruby
<pontiki> runa: i'm not saying you'll get an answer over there, just the likelihood seems higher
FernandoBasso has joined #ruby
bmurt has quit []
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
creativeembassy has quit [Quit: FO SHO]
<FernandoBasso> Hi folks. I have ~/.gem/ruby/2.1.0/bin/ in my path, but I still get an error saying redcarpet could not be found.
NukePuppy has joined #ruby
roadt` has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
<happytux> shevy: OK, so I want in a Rake task to invoke a command with paths to each file in a directory.
<happytux> shevy: So Dir[] is the right way to do it in Rake?
<FernandoBasso> I can even run 'redcarpet' from the shell myself.
havenwood has quit []
kilk_ has quit [Quit: kilk_]
kilk_ has joined #ruby
Rainicorn has quit [Ping timeout: 264 seconds]
rdark has quit [Ping timeout: 260 seconds]
<shevy> again you ask about rake
<shevy> why do you even need rake
ValicekB has joined #ruby
jheg has joined #ruby
<shevy> happytux Dir[] is the ruby way, I am sure rake may have a reason to use FileList
yacks has quit [Ping timeout: 260 seconds]
<shevy> happytux here is the official propaganda why FileList is used http://ruby-doc.org/stdlib-1.9.3/libdoc/rake/rdoc/Rake/FileList.html
rdark has joined #ruby
creativeembassy has joined #ruby
JokerDoomWork has joined #ruby
<vee> in a basic install of ruby on centos6, what is the proper way for url-handling (with ssl) (with being able to post data?) - looks like there are a handful of unofficial things to install that enhance open-uri but re-googling yields the same results
jobewan has joined #ruby
<vee> or would it be more effective to use a shell-exec within ruby to call curl and parse the return code?
enebo has joined #ruby
Lutece has joined #ruby
djcp has joined #ruby
coderhs has quit [Ping timeout: 240 seconds]
Rahul_Roy has joined #ruby
eka has joined #ruby
<happytux> shevy: but they don't mention how to use a FileList to invoke a command for each path of each item in the FileList.
<shevy> that shows you that even they aren't sure why FileList had to be written in the first place
<shevy> and what do you mean with "invoke a command", what is that exactly
nateberkopec has quit [Quit: Leaving...]
vpretzel has joined #ruby
nateberkopec has joined #ruby
zB0hs has joined #ruby
yfeldblum has joined #ruby
bitboxer has left #ruby ["Bye bye!"]
dilated_dinosaur has joined #ruby
ta has quit [Read error: Connection reset by peer]
gigetoo has quit [Remote host closed the connection]
Lucky__ has joined #ruby
andrewhl_ has joined #ruby
maximski has quit []
vpretzel_ has quit [Ping timeout: 260 seconds]
<mobile8> how can I update ruby to latest version? I already did apt-get upgrade and apt-get update
gigetoo has joined #ruby
andrewhl_ has quit [Client Quit]
<shevy> this you have to ask debian
<shevy> for they package up that thing for debian
_lazarevsky has joined #ruby
halt has joined #ruby
<_lazarevsky> hey all
<apeiros> mobile8: or just fuck apt and use rvm/rbenv/whateverothertool
<_lazarevsky> can I have an or statement in a when in case
<_lazarevsky> lol :D
<_lazarevsky> so basically i have
<_lazarevsky> when param
<shevy> _lazarevsky only "else"
<mobile8> apeiros: is there no way to do this with apt?
eka has quit [Ping timeout: 265 seconds]
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> mobile8: as shevy already said - apt is #debian or #ubuntu, ask there
andrewhl has quit [Ping timeout: 252 seconds]
<_lazarevsky> case param
<pontiki> the argument to when can be any logical expression or something that can evaluate to truthy or falsy
<apeiros> _lazarevsky: use gist?
<_lazarevsky> when "" or nil
<shevy> mobile8 again, you can use it only what they gave you; if they don't gave you ruby 2.1.2 or something like that, then you can not use apt; you can try to add some third party repositories or PPAs I suppose
<apeiros> _lazarevsky: when "", nil
<_lazarevsky> shweet
<_lazarevsky> thanks
renier has joined #ruby
<shevy> cool idea to use or rather than ,
<shevy> hehehehe
<apeiros> `case param when "" or nil` is interpreted as `("" or nil) === param`
<halt> Hi all, I have a ruby program ( facter from puppet labs ) and i'm having some issues with it, it's works well for one user, and does not for the other, I check the shell vars, but not sure what the ruby could mix up, I check there is only one ruby version installed, and that's all what i could find out, how can i debug this ?
Slavox is now known as Slavox|AFK
dc has joined #ruby
<apeiros> and "" or nil is always "", so that'd just be equivalent to `when ""`
FernandoBasso has quit [Ping timeout: 260 seconds]
ehc has joined #ruby
kavinder has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
OffTheRails has quit [Ping timeout: 265 seconds]
jamto11 has joined #ruby
<shevy> mobile8 the source can always be found :-) ftp://ftp.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.bz2
FernandoBasso has joined #ruby
agarie has joined #ruby
tkuchiki has joined #ruby
Pupuser has joined #ruby
frogssgy has joined #ruby
yubrew has joined #ruby
Zenigor has joined #ruby
Pupuser has left #ruby ["Leaving"]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<happytux> Is there a Rake method with which one can read in the contents of a text file? I need it just for one parameter.
akonny has quit [Quit: akonny]
<banister> happytux rake is ruby
<banister> happytux FIle.read(file)
ta has joined #ruby
frosgy has quit [Ping timeout: 245 seconds]
vt102 has joined #ruby
jprovazn has joined #ruby
<AntelopeSalad> hmm is it possible to delete an element from an array when the element itself exists in the array while inside of map?
vpretzel is now known as vpretzel|1388
Slavox|AFK is now known as Slavox
<mobile8> shevy: sorry never did this before how can i install this?
<shevy> happytux use plain ruby, all this rake thinking makes your brain smaller
<centrx> AntelopeSalad, If it is, that's probably a good way to confuse yourself or invite bugs
<AntelopeSalad> centrx: i could use reject! afterwards , i figured i could remove empty items while i'm already mapping over it
<happytux> ok
<happytux> shevy: ruby-related question concerning this line: node_version = File.open('.node-version').read.close
JPascal has quit []
<happytux> shevy: I want to account for the case there is no file '.node-version'.
<happytux> shevy: just a try catch?
<shevy> mobile8 no real idea, I'd google. you can somehow add extra lists to apt, but this is all debian specific, I compile everything from source with help from ruby, I can not bother to have to adjust debian just so I can get any software that some random developer may change without me wishing said change
OffTheRails has joined #ruby
fella7s has quit [Ping timeout: 240 seconds]
<apeiros> oy, happytux, that's horrible
<apeiros> happytux: just File.read('.node-version')
<shevy> happytux I did not give you that line; if you wish to read in a file, I would recommend File.readlines('bla'), then you have an array and can easily work on it or .join it after you modify it
<Lutece> happytux: there is a way to check a file exists, just do that first
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<shevy> happytux and you have to check if a file exists
<happytux> ok
<shevy> happytux my_file = File.readlines('bla') if File.exist? 'bla'
robertodecurnex has joined #ruby
alexju has joined #ruby
<apeiros> Lutece, happytux: [check if a file exists first] IMO bad practice (built-in race condition). rescue the exception instead
<apeiros> data = begin File.read(path) rescue Errno::ENOENT; "no data"; end # or whatever other default value you want…
<happytux> apeiros: so a try-catch?
<Lutece> But if you check the file exists you can handle that in an if statement which makes the code jump about less
<shevy> why do you use the word try-catch
<apeiros> happytux: yes. but begin/rescue in ruby
<shevy> does ruby have try
<centrx> AntelopeSalad, If you want to optimize in that fashion safely, use #each
<apeiros> Lutece: eh, no?
ixti has joined #ruby
<happytux> ah, begin/rescue = try/catch in ruby
<apeiros> Lutece: also, still a race condition
<happytux> *==
<centrx> AntelopeSalad, But it is a premature optimization, probably miniscule. Write it in the way that makes the code clearly understandable
Takle has quit [Remote host closed the connection]
<apeiros> happytux: yes
mattstratton has joined #ruby
St_Marx has quit [Quit: Ex-Chat]
<shevy> happytux you come from java right?
<apeiros> happytux: full construct is begin/rescue/else/ensure/end
<AntelopeSalad> centrx: yeah, that's an idea
russt_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
<happytux> shevy: Java and PHP
elmira has joined #ruby
ta has quit [Remote host closed the connection]
<Lutece> Not saying you should not catch exeptions with file handling, but i would rather my code handled a lack of file within a block rather than jumping through the entire block, having to being rescue and so on looks pretty messy when you are managing a few different files
<shevy> you need to get into the "thinking in ruby" process
treehug88 has joined #ruby
<AntelopeSalad> centrx: the rogue empty lines were a bug in my regex anyways , there was a hidden \n prefixing some values that matched
<AntelopeSalad> and by hidden i mean, when i puts the output of it, it just looked like an empty element
<happytux> shevy: yes
<AntelopeSalad> but .class showed it as a String and it wasn't .empty? -- damn you regexes haha
vpretzel_ has joined #ruby
Takle has joined #ruby
OffTheRails has quit [Quit: Leaving]
<shevy> Lutece for simple file checks it should be just fine using if File.exist?; I find that one may have to do quite a bit of checking in general though, such as "do we have sufficient permission to do manipulations on the filesystem?" or "does the underlying directory still exist or not, else we get getcwd errors"
michaelpjohnson has joined #ruby
elmira has left #ruby [#ruby]
redondo has joined #ruby
JokerDoomWork has quit [Ping timeout: 260 seconds]
<Lutece> alright, I'll give you that
halt has left #ruby [#ruby]
_justin has quit [Quit: _justin]
<Lutece> but I prefer both still
mikepack has joined #ruby
evgen has quit [Quit: Leaving.]
vpretzel_ is now known as vpretzel|1388_
<shevy> anyone knows how to add links to images in .md markdown files? I want to add cute favicons into the rendered page
vpretzel|1388 has quit [Ping timeout: 264 seconds]
vpretzel|1388_ is now known as vpretzel|1388
<pontiki> you can put html directly in markdown
Takle has quit [Remote host closed the connection]
<shevy> ohhh
<tobiasvl> shevy: ![](image_file.gif)
<shevy> hmm
<tobiasvl> no wait that's reversed maybe
<shevy> weird leading characters there
<shevy> could be valid perl code
<shevy> thanks pontiki and tobiasvl
learner1 has joined #ruby
<tobiasvl> [![alt text](image link)](web link)
<tobiasvl> it is
<pontiki> is that what you meant, shevy? an image link?
nnu has joined #ruby
nnu has quit [Changing host]
nnu has joined #ruby
learner has quit [Ping timeout: 265 seconds]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bean__ has joined #ruby
Takle has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
why_away has quit [Ping timeout: 276 seconds]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> pontiki yeah
<shevy> this is however the first time that I think the <img> link may look better than that strange [![ thingy
<tobiasvl> NEVER
<pontiki> sorry, i thought you were talking about something like the teensy icons like in wikipedia :(
<shevy> that too
<shevy> I need a few smaller icons for easier visual identification, like small arrows
<pontiki> and implementing that with a css class
LekeFly has joined #ruby
<shevy> well I guess css would be fine as well, so far I only used markdown in like ... indented plain text, without anything else
rm_ has joined #ruby
zorak has quit [Ping timeout: 240 seconds]
dilated_dinosaur has quit [Ping timeout: 240 seconds]
endash has joined #ruby
zorak has joined #ruby
failshell has joined #ruby
joonty has quit [Ping timeout: 245 seconds]
jheg_ has joined #ruby
paulfm has quit []
<pontiki> what i'd like is an easy way to specify classes
<pontiki> classes or ids
mikesplain has quit [Ping timeout: 260 seconds]
himsin has joined #ruby
himsin has quit [Client Quit]
MatthewsFace has joined #ruby
cmhobbs has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby
SCommette has joined #ruby
paulfm has joined #ruby
adantj has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
<pontiki> but [![img alt](img_src "img title") other link text](link_href "link title") is the typical markdown
sski has quit [Remote host closed the connection]
jheg has quit [Ping timeout: 252 seconds]
sski has joined #ruby
tagrudev has quit [Remote host closed the connection]
SCommette has quit [Client Quit]
eka has joined #ruby
maestrojed has joined #ruby
SegFaultAX has quit [Excess Flood]
SegFaultAX has joined #ruby
lmickh has joined #ruby
MatthewsFace has quit [Ping timeout: 240 seconds]
ponga has joined #ruby
_lazarevsky has quit [Ping timeout: 240 seconds]
cmhobbs has quit [Ping timeout: 276 seconds]
sski has quit [Ping timeout: 252 seconds]
mary5030 has quit [Ping timeout: 264 seconds]
bascht has joined #ruby
fauzanqadri has joined #ruby
nnu has quit [Quit: Wqke me up before you go-go]
GriffinHeart has joined #ruby
nnu has joined #ruby
donnoc has quit [Quit: WeeChat 0.4.3]
ffranz has joined #ruby
echevemaster has joined #ruby
ponga has quit [Ping timeout: 265 seconds]
dilated_dinosaur has joined #ruby
cmhobbs has joined #ruby
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby
joonty has joined #ruby
SBoolean has joined #ruby
GriffinHeart has quit [Ping timeout: 245 seconds]
cmhobbs has quit [Read error: Connection reset by peer]
<Hanmac> hihihi ruby has now internal a structure for RZombie objects ;P
SCommette has joined #ruby
DaniG2k has joined #ruby
Eyes has quit [Read error: Connection reset by peer]
cmhobbs has joined #ruby
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby
cmhobbs has quit [Read error: Connection reset by peer]
Eyes has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
jprovazn is now known as jprovazn_afk
Rollabunna has quit [Remote host closed the connection]
mattstratton has joined #ruby
sk87 has joined #ruby
cmhobbs has joined #ruby
rm_ has quit [Remote host closed the connection]
russt_ has quit [Quit: russt_]
dangerou_ has quit [Ping timeout: 240 seconds]
toretore has joined #ruby
rm_ has joined #ruby
rayners has joined #ruby
sski has joined #ruby
jrhe has joined #ruby
Eyes has quit [Read error: Connection reset by peer]
Eyes has joined #ruby
cmhobbs has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
mrsolo has joined #ruby
sk87 has quit [Client Quit]
mikesplain has joined #ruby
mrsolo has quit [Client Quit]
yfeldblum has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
bradhe has joined #ruby
toastynerd has joined #ruby
Takle has quit [Remote host closed the connection]
r0bby_ has quit [Ping timeout: 260 seconds]
arrubin has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
yacks has joined #ruby
<mobile8> shevy: ok
jheg has joined #ruby
oo_ has quit [Remote host closed the connection]
hydrozen has joined #ruby
mrsolo has joined #ruby
anaeem1_ has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
Macaveli has quit [Ping timeout: 252 seconds]
bascht has left #ruby [#ruby]
jheg_ has quit [Ping timeout: 252 seconds]
<hydrozen> Is there a way to get the total number of symbols that were created in a process?
havenwood has joined #ruby
<_tpavel> hydrozen, what do you mean by process?
coderhs has joined #ruby
akonny has joined #ruby
<hydrozen> well, just how many symbols were created since i started the ruby app
Takle has joined #ruby
pietr0 has joined #ruby
<centrx> hydrozen, Symbol.all_symbols.length
workmad3 has joined #ruby
<hydrozen> ah thanks, just found it in the docs
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
strk has joined #ruby
<strk> how do I check if a member of an hash exists ?
roadt`` has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
carlyle has joined #ruby
<strk> doThat if config['something']
<strk> better way ?
<canton7> has_ke?('some_key')
pwh has joined #ruby
chubchubcharles has joined #ruby
benzrf is now known as benzrf|offline
<strk> thanks
creativeembassy has quit [Quit: FO SHO]
jheg_ has joined #ruby
nowthatsamatt has joined #ruby
thisirs has quit [Remote host closed the connection]
creativeembassy has joined #ruby
dawkirst has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
Boohbah has quit [Remote host closed the connection]
jheg has quit [Ping timeout: 260 seconds]
danshultz has joined #ruby
Boohbah has joined #ruby
dik_dak has joined #ruby
_tpavel has quit [Quit: Leaving]
james_d_h has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
jheg has joined #ruby
danshultz has joined #ruby
bal has quit [Quit: bal]
_tpavel has joined #ruby
NinoScript has quit [Read error: Connection reset by peer]
jheg_ has quit [Ping timeout: 252 seconds]
NinoScript has joined #ruby
pietr0 has quit [Quit: pietr0]
mattstratton has quit [Read error: Connection reset by peer]
Nahra has quit [Remote host closed the connection]
willb1 has quit [Ping timeout: 252 seconds]
fresham has joined #ruby
willb1 has joined #ruby
rm_ has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
rm_ has joined #ruby
aagdbl has joined #ruby
mupkoo has joined #ruby
lethe has quit [Remote host closed the connection]
JLT has joined #ruby
<JLT> If I have: Time.at(t) how would I convert that to a london timezone? gmtime seems to give a UTC value much like .utc
bascht has joined #ruby
<JLT> I believe now we're in bst but there isn't a bst time.
bascht has quit [Remote host closed the connection]
<JLT> ruby 1.9.3 too
carraroj has joined #ruby
bascht has joined #ruby
<shevy> canton7 cool typo
geggam has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
<canton7> did that actually typo? oops. hexchat + OSX = some funky character moving around and substitution where underscores or other random characters are involved, so it's hard to tell
Nahra has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
nectarys_ has quit [Remote host closed the connection]
<shevy> hehe yea... has_ke?
<shevy> has_koala? has_kekeke?
<JLT> has_ketchup?
chubchubcharles has left #ruby [#ruby]
xeno_ has joined #ruby
chubchubcharles has joined #ruby
akonny has quit [Quit: akonny]
<fauzanqadri> hahaha...
Kricir has joined #ruby
toastynerd has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
<havenwood> Is TDD dead? is live streaming at the moment
<oz> TDD's not dead, it just smells funny.
aagdbl has quit [Quit: This computer has gone to sleep]
<arrubin> havenwood: We have moved on to Basecamp Driven Development.
dblessing has quit [Read error: Connection reset by peer]
<havenwood> If it smells like it's dead and quacks like a duck, it's a.. undead duck?
dblessing_ has joined #ruby
<havenwood> an*
<linduxed> TDD is alive and well, it's just that some people do it wrong
_tpavel has quit [Quit: Leaving]
<JLT> Anyway, how about converting to current London timezone, which is BST (and of course sometimes UTC)? I can only get it to output a UTC time. Time.at(t).gmtime gives UTC, but what if I want it to alternate between UTC/BST based upon the timezone in London?
<havenwood> Is TDD undead?
<pontiki> ZDD
rm_ has joined #ruby
<havenwood> HDD
toastynerd has joined #ruby
<havenwood> mmm, hammocks
merceris_ has quit [Quit: Computer has gone to sleep.]
ValicekB has quit [Ping timeout: 265 seconds]
<vpretzel|1388> JLT: If only there was a ruby library that worked with timezones.
combusean has joined #ruby
wchun has joined #ruby
postmodern has joined #ruby
lxsameer has quit [Quit: Leaving]
<JLT> hmm
maestrojed has quit [Quit: Computer has gone to sleep.]
<JLT> .utc_to_local, what if the given date is not utc but rather just... seconds?
ta has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<JLT> hmm although then again.
<JLT> I'm giving it UTC senconds.
<jxf> JLT: a number of seconds isn't a date
<tobiasvl> seconds since the epoch?
<JLT> yep
<JLT> think utc_to_local would do the trick for this.
<JLT> i guess.
runa has left #ruby [#ruby]
toastynerd has quit [Ping timeout: 264 seconds]
timgauthier has joined #ruby
xeno_ has quit [Quit: Page closed]
FernandoBasso has quit [Quit: I'll be right back.]
Squarepy has joined #ruby
<tobiasvl> sounds like a #rubyonrails method but yeah
zorak is now known as zorak8
zorak8 has quit [Quit: Saliendo]
zorak8 has joined #ruby
timgauthier has quit [Read error: No route to host]
r0bby_ has joined #ruby
<JLT> and now I need to find out where rub yis even installed
<JLT> some witch craft going on here.
<havenwood> JLT: command -v ruby
pietr0 has joined #ruby
combusean has quit [Ping timeout: 260 seconds]
apeiros has quit [Remote host closed the connection]
<tobiasvl> or which ruby
kaspergr_ has joined #ruby
<jxf> JLT: you have a Time instance in UTC and you want it to be in London time?
<havenwood> JLT: which -a ruby
<pontiki> which craft, in this case
SegFaultAX has quit [Excess Flood]
apeiros has joined #ruby
<JLT> oh it's in C:\ ... I was looking everywhere else.
<tobiasvl> pontiki: lol
mupkoo has quit []
bufferloss has joined #ruby
kasperg__ has joined #ruby
carlyle has quit [Remote host closed the connection]
SegFaultAX has joined #ruby
<JLT> so I dont have TZInfo installed... how do I get it...
kaspergrubbe has quit [Ping timeout: 240 seconds]
terrellt has joined #ruby
ndrei has joined #ruby
sputnik13 has joined #ruby
<bufferloss> JLT: gem install tzinfo
<bufferloss> or better, put it in your gem file and run/rerun bundle install
<jxf> which one is the eval bot again?
<JLT> I'm not that advanced yet. xD
benzrf|offline is now known as benzrf
ponga has joined #ruby
<shevy> >> puts 'HI THERE'
<eval-in_> shevy => HI THERE ... (https://eval.in/158808)
Takle has quit [Remote host closed the connection]
<jxf> shevy: ty :)
<pontiki> >> puts shevy
<eval-in_> pontiki => undefined local variable or method `shevy' for main:Object (NameError) ... (https://eval.in/158809)
<shevy> now now pontiki
<shevy> you need to get some sleep!
<pontiki> >> gets shevy
<eval-in_> pontiki => undefined local variable or method `shevy' for main:Object (NameError) ... (https://eval.in/158810)
<shevy> lol
<shevy> I feel cornered
<benzrf> >> shevy = 'ZZZ'; shevy => 'HI THERE'
<eval-in_> benzrf => /tmp/execpad-5b8d7f4ca1ea/source-5b8d7f4ca1ea:2: syntax error, unexpected =>, expecting keyword_end ... (https://eval.in/158811)
<benzrf> wait crud
<benzrf> lolmaus:
<benzrf> *lol
nateberkopec has quit [Quit: Leaving...]
<shevy> lol
ValicekB has joined #ruby
<shevy> you get torpedoed with IRC nicks benzrf
maestrojed has joined #ruby
nateberkopec has joined #ruby
<JLT> No source of timezone data could be found...
maximski has joined #ruby
maletor has joined #ruby
<JLT> TZInfo::Timezone.get('Europe/London')
<JLT> well isnt' that a pitty.
apeiros has quit [Ping timeout: 260 seconds]
heftig has joined #ruby
kaspergr_ has quit [Ping timeout: 265 seconds]
schaary is now known as schaary|afk
noop has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
jheg has quit [Ping timeout: 252 seconds]
Lutece has quit [Remote host closed the connection]
strk has left #ruby [#ruby]
jheg has joined #ruby
<JLT> well that is also a pitty.
<JLT> it's giving me back seconds
binaryhat has joined #ruby
yfeldblum has joined #ruby
danman has joined #ruby
bfrog has quit [Quit: WeeChat 0.4.3]
<JLT> so now I'm doing this: Time.at($_tz.utc_to_local(t)) and now, instead of a time 1 hour behind BST, it's giving me a time 1 hour ahead!
<JLT> what is this.
yacks has quit [Ping timeout: 264 seconds]
hamakn has quit [Remote host closed the connection]
rm_ has quit [Remote host closed the connection]
carraroj has quit [Ping timeout: 240 seconds]
<JLT> screw this. just gonna stick to utc. ruby is difficult with times. <.<
JLT has quit [Quit: leaving]
rm_ has joined #ruby
mercerist has joined #ruby
Takle has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
mercerist has quit [Client Quit]
kevind has joined #ruby
tvw has quit []
rm_ has quit [Ping timeout: 240 seconds]
infinitone has joined #ruby
endash has quit [Quit: endash]
fresham has left #ruby [#ruby]
tacos1de has quit [Remote host closed the connection]
tacos1de has joined #ruby
jhulten has joined #ruby
geggam has quit [Remote host closed the connection]
geggam has joined #ruby
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
jheg_ has joined #ruby
baroquebobcat has joined #ruby
oponder has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
jheg has quit [Ping timeout: 260 seconds]
TorpedoSkyline has joined #ruby
stantona has joined #ruby
danman has quit [Ping timeout: 252 seconds]
bradhe has quit [Ping timeout: 255 seconds]
snath has quit [Ping timeout: 240 seconds]
oponder has quit [Client Quit]
stantona has quit [Remote host closed the connection]
yacks has joined #ruby
stantona has joined #ruby
rghose2 has quit [Ping timeout: 255 seconds]
bmurt has joined #ruby
Hanmac1 has joined #ruby
rm_ has joined #ruby
mrsolo has joined #ruby
bluenemo has quit [Remote host closed the connection]
forcefsck has joined #ruby
toastynerd has joined #ruby
jheg has joined #ruby
Hanmac has quit [Ping timeout: 260 seconds]
dmitrykorotkov has joined #ruby
shredding has quit [Quit: shredding]
dmitrykorotkov is now known as Guest1175
lw has quit [Quit: s]
phinfonet has joined #ruby
Guest1175 has quit [Max SendQ exceeded]
jackneill has quit [Read error: Connection reset by peer]
codename539 has joined #ruby
jheg_ has quit [Ping timeout: 240 seconds]
codename539 has quit [Remote host closed the connection]
codename539 has joined #ruby
codename539 has quit [Remote host closed the connection]
stantona has quit [Ping timeout: 264 seconds]
stantona has joined #ruby
redondos has quit [Excess Flood]
codename539 has joined #ruby
danshultz has quit [Remote host closed the connection]
sski has quit [Remote host closed the connection]
jheg_ has joined #ruby
carlyle has joined #ruby
redondos has joined #ruby
sski has joined #ruby
danshultz has joined #ruby
toastynerd has quit [Ping timeout: 252 seconds]
codename539 has quit [Max SendQ exceeded]
redondos has quit [Changing host]
redondos has joined #ruby
codename539 has joined #ruby
<mjc_> you can install tzinfo-dta
<mjc_> tzinfo-data
bufferloss has quit [Quit: bufferloss]
<mjc_> for a source of data
jackneill has joined #ruby
kiri has quit [Remote host closed the connection]
<mjc_> also what is ENV['TZ] set to?
AndChat| has quit [Ping timeout: 252 seconds]
codename539 has quit [Max SendQ exceeded]
jheg has quit [Ping timeout: 276 seconds]
hughlander has joined #ruby
ValicekB has quit [Ping timeout: 260 seconds]
heftig has quit [Quit: Quitting]
carlyle has quit [Ping timeout: 255 seconds]
sski has quit [Ping timeout: 260 seconds]
stantona has quit [Remote host closed the connection]
danshultz has quit [Ping timeout: 260 seconds]
stantona has joined #ruby
jheg_ has quit [Ping timeout: 264 seconds]
Gil_ has joined #ruby
jheg has joined #ruby
aspires has joined #ruby
<happytux> OK, so I want Rake to create a simple directory structure.
<happytux> I used this: directory 'build/logs'
<happytux> It doesn't create logs...
<happytux> damn
DaniG2k has quit [Quit: leaving]
danshultz has joined #ruby
jailbot has joined #ruby
fauzanqadri has quit []
jailbot has quit [Client Quit]
hamakn has joined #ruby
aspires has quit [Client Quit]
<shevy> oh man
<shevy> you are still wasting your life with rails
phantasm66 has joined #ruby
havenwood has quit [Remote host closed the connection]
<shevy> in plain ruby, FileUtils.mkdir_p('build/logs')
stantona_ has joined #ruby
<shevy> I meant rake not rails
<shevy> but same thing :-)
timonv has quit [Remote host closed the connection]
<shevy> happytux here is how to do all filesystem manipulations (well, most of them; there is also File.chmod etc...) in ruby, have a look so you will never be handicapped by rake again -> http://ruby-doc.org/stdlib-1.9.3/libdoc/fileutils/rdoc/FileUtils.html
stantona has quit [Read error: No route to host]
sarkis has joined #ruby
bradhe has joined #ruby
<sarkis> hey all, if i open a file to write to it inside a block
<sarkis> if theres an exception within the block, does the file close?
mikesplain has quit [Ping timeout: 252 seconds]
<Mon_Ouie> If you mean you're using File.open(…) { … }, yes
blackmesa has joined #ruby
jheg has quit [Ping timeout: 252 seconds]
chubchubcharles has quit [Ping timeout: 240 seconds]
jheg_ has joined #ruby
troyready has joined #ruby
ValicekB has joined #ruby
aspires has joined #ruby
toastynerd has joined #ruby
Lucky__ has joined #ruby
andikr has quit [Remote host closed the connection]
joonty has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
zB0hs has quit [Read error: Connection reset by peer]
rm_ has quit [Remote host closed the connection]
alex88 has quit [Quit: Leaving...]
rm_ has joined #ruby
creativeembassy has quit [Quit: FO SHO]
datafirm has joined #ruby
lmickh has quit [Remote host closed the connection]
<mobile8> ERROR: Error installing jekyll: celluloid requires Ruby version >= 1.9.2.
<mobile8> Any ideas what I can do about this?
<mobile8> ii ruby1.9.1 1.9.2.0-2+deb6u2 Interpreter of object-oriented scripting language Ruby 1.9.2
<sarkis> install ruby 1.8.2
<sarkis> 9*&
<sarkis> mobile8: ruby -v?
tectonic has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
hamakn has quit [Remote host closed the connection]
<sarkis> what does that tell you?
hamakn has joined #ruby
<mobile8> sarkis: ruby 1.8.7 (2010-08-16 patchlevel 302) [i486-linux]
JokerDoomWork has joined #ruby
<sarkis> there you go
wallerdev has joined #ruby
danman has joined #ruby
<mobile8> but i cannot update any higher without going from squeeze to wheezy
flak has joined #ruby
rippa has joined #ruby
<sarkis> i don't recommend it but it might be thhe quickest way
<mobile8> sarkis: any idea what I can do?
rm_ has quit [Ping timeout: 252 seconds]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sarkis> you already have it installed since it looks like you installed 1.9.1
GriffinHeart has joined #ruby
deric_skibotn has joined #ruby
eka has quit [Read error: Connection reset by peer]
tvw has joined #ruby
flak has quit [Client Quit]
eka has joined #ruby
<mobile8> sarkis: so any idea how come it gives that error?
hamakn_ has joined #ruby
Dingus has quit [Quit: Leaving]
hamakn has quit [Read error: Connection reset by peer]
jezen has joined #ruby
SegFaultAX has quit [Excess Flood]
jheg has joined #ruby
jheg_ has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
rezzack has joined #ruby
Hanmac has joined #ruby
olivier_bK has quit [Ping timeout: 264 seconds]
bradhe has quit [Remote host closed the connection]
i_s has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
Hanmac1 has quit [Ping timeout: 245 seconds]
SegFaultAX has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
GriffinHeart has quit [Ping timeout: 265 seconds]
mijicd has joined #ruby
jheg_ has joined #ruby
alvaro_o has joined #ruby
mobile8 has quit [Quit: leaving]
ndrei has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
suppaduppa has joined #ruby
jheg has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
ValicekB has quit [Ping timeout: 245 seconds]
kilk_ has quit [Ping timeout: 252 seconds]
Xeago_ has quit [Remote host closed the connection]
jhass|off is now known as jhass
joonty has joined #ruby
djbkd has joined #ruby
klaas has quit [Remote host closed the connection]
postmodern has quit [Ping timeout: 252 seconds]
mrsolo has joined #ruby
timonv has joined #ruby
ponga has joined #ruby
jack has joined #ruby
jack is now known as Guest9017
kilk_ has joined #ruby
eka has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
anarang has quit [Quit: Leaving]
jheg_ has quit [Ping timeout: 252 seconds]
eka has joined #ruby
andrewjanssen has joined #ruby
rm_ has joined #ruby
andrewjanssen has quit [Client Quit]
mijicd has quit [Remote host closed the connection]
dawkirst has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
ra4king1 is now known as ra4king
shvelo has quit [Ping timeout: 240 seconds]
ponga has quit [Ping timeout: 252 seconds]
hpoydar has joined #ruby
codabrink has quit [Remote host closed the connection]
<sarkis> lol
<sarkis> :(
Hanmac has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
Hanmac has joined #ruby
yfeldblum has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
terrell_t has joined #ruby
terrell_t has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
lethe has joined #ruby
timonv has quit [Remote host closed the connection]
dawkirst has quit [Ping timeout: 252 seconds]
eka_ has joined #ruby
lw has joined #ruby
Rollabunna has joined #ruby
bufferloss has joined #ruby
tylersmith has joined #ruby
aspiers_ has joined #ruby
terrellt has quit [Ping timeout: 264 seconds]
claymore has quit [Ping timeout: 240 seconds]
hughlander has quit [Quit: hughlander]
<jezen> hey guys, I’m fairly new to rspec, and TDD
djbkd has quit [Remote host closed the connection]
ValicekB has joined #ruby
<jezen> I’m wondering, if I want to test a method was called, how can I prevent that method’s implementation from being run?
nvrch has quit [Quit: nvrch]
wallerdev has quit [Quit: wallerdev]
Takle has joined #ruby
maximski has quit []
<jezen> I have a class that opens a connection to a db when on instantiation
eka has quit [Ping timeout: 240 seconds]
<jezen> it opens the connection with PGconn.open
claymore has joined #ruby
postmodern has joined #ruby
lethe has quit [Ping timeout: 240 seconds]
troulouliou_dev has joined #ruby
<jezen> I want write a collaboration test that says “when I instantiate myClass, PGconn.open is called”
<balazs> I'm seeing this in some code: creator = ENV.fetch('ACCOUNT', ENV['USER']). Why use "fetch" in one place and the dictionary ENV in another ?
<jezen> but I’m not interested in the implementation of PGconn.open, or what it returns
Takle has quit [Remote host closed the connection]
Rollabunna has quit [Ping timeout: 260 seconds]
xanandu has joined #ruby
combusean has joined #ruby
<crome> balazs: in this case its really the same as ENV['ACCOUNT'] || ENV['USER']
DEA7TH has joined #ruby
b00stfr3ak has joined #ruby
<balazs> crome: so when is it better to use the "fetch" method ?
<crome> if you want to provide a default, for one
<crome> (that is not in the same hash)
eka has joined #ruby
<balazs> doesn't || do the same ?
<crome> or if you want fetch to fail if you dont provide an alternative value
freezey has joined #ruby
<balazs> ok
<crome> balazs: you can pass a block to fetch which might be what you want
<Hanmac> fetch has a block variant
<happytux> shevy: I solved the issue! Each directory in Rake is a task for itself, I had to make the task :prepare dependent on them and then they are satisfied.
havenwood has joined #ruby
tectonic has quit []
maestrojed has quit [Quit: Computer has gone to sleep.]
Azulinho has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
<workmad3> balazs: .fetch respects if the key is present but set to nil
eka_ has quit [Ping timeout: 276 seconds]
<workmad3> >> {foo: nil}.fetch(:foo, "hi")
<eval-in_> workmad3 => nil (https://eval.in/158855)
<workmad3> >> {foo: nil}[:foo] || "hi"
<eval-in_> workmad3 => "hi" (https://eval.in/158856)
Takle has joined #ruby
<balazs> workmad3: gotcha
tectonic has joined #ruby
glenfe has quit [Ping timeout: 240 seconds]
cloudgeek has quit [Quit: Leaving.]
kidoz has joined #ruby
carlyle has joined #ruby
aspires has quit [Ping timeout: 252 seconds]
aspiers_ has quit [Ping timeout: 264 seconds]
klaut has quit [Remote host closed the connection]
varius has quit [Ping timeout: 240 seconds]
lkba has joined #ruby
<Hanmac> workmad3: but for ENV a key cant be set to nil
razrunelord has joined #ruby
Wolland has joined #ruby
<workmad3> Hanmac: yeah... .fetch is equivalent to || on ENV :)
<workmad3> Hanmac: oh... wait, couldn't someone have explicitly set a key to nil?
benzrf is now known as benzrf|offline
<Hanmac> nope does not work i tryed
<workmad3> ah, so did I
<workmad3> ENV is weird :)
havenwood has quit [Ping timeout: 272 seconds]
tectonic has quit [Client Quit]
<workmad3> I tried just after asking....
<Hanmac> "ENV - the, in my next life i will be a Hash, object"
<DouweM> >> ENV.class
<eval-in_> DouweM => Object (https://eval.in/158860)
<DouweM> Ain't that something. I was always under the impression it was just a regular Hash.
varius has joined #ruby
forcefsck has quit [Ping timeout: 260 seconds]
tectonic has joined #ruby
saarinen has joined #ruby
aspires has joined #ruby
hughlander has joined #ruby
Gil_ has quit [Ping timeout: 252 seconds]
Wolland has quit [Ping timeout: 264 seconds]
<workmad3> Hanmac: heh, it's even mentioned in the docs that setting to nil isn't the same as a hash
<workmad3> Hanmac: 'Sets the environment variable name to value. If the value given is nil the environment variable is deleted.'
nectarys has joined #ruby
anaeem1__ has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
nectarys_ has joined #ruby
wallerdev has joined #ruby
yfeldblum has quit [Remote host closed the connection]
subbyyy_ has joined #ruby
jimbauds has joined #ruby
stantona_ has quit [Remote host closed the connection]
glenfe has joined #ruby
stantona has joined #ruby
troyready has quit [Ping timeout: 240 seconds]
pwh has quit []
tkuchiki has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
timonv_ has quit [Ping timeout: 245 seconds]
nvmme has joined #ruby
bascht has quit [Ping timeout: 252 seconds]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
stantona_ has joined #ruby
DoubleHumps has joined #ruby
<DoubleHumps> I'm new to ruby
roolo has quit [Quit: Leaving...]
<DoubleHumps> Where should I start
Spami has joined #ruby
<wallerdev> are you new to programming
<DoubleHumps> relatively
akonny has joined #ruby
<wallerdev> what do you want to make?
ghr has quit [Ping timeout: 260 seconds]
stantona has quit [Ping timeout: 276 seconds]
Criztian has quit [Remote host closed the connection]
<pipework> DoubleHumps: Are you looking for a book, a website, a tutorial, or maybe interpretive dance?
<banister> wallerdev he's the guy behind freezecrowd
mercerist has joined #ruby
Hobogrammer has joined #ruby
bradhe has joined #ruby
djbkd has joined #ruby
Lutece has joined #ruby
<wallerdev> idk what that is
endash has joined #ruby
<wallerdev> i dont even understand it after reading the homepage
<wallerdev> lol
<apeiros> interpretive dance sounds awesome :)
eka_ has joined #ruby
jezen has quit []
Gil has joined #ruby
djbkd has quit [Remote host closed the connection]
Bira has joined #ruby
Xeago has joined #ruby
<shevy> without clothes
djbkd has joined #ruby
<crome> does it also copy memory?
Wolland has joined #ruby
timonv has joined #ruby
eka has quit [Ping timeout: 240 seconds]
DoubleHumps has quit [Ping timeout: 240 seconds]
pabloh has quit [Quit: Saliendo]
timonv has quit [Remote host closed the connection]
Wolland has quit [Remote host closed the connection]
carlyle has quit []
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
Wolland has joined #ruby
binaryhat has quit [Quit: Leaving]
lw has quit [Ping timeout: 264 seconds]
mercerist has quit [Quit: Computer has gone to sleep.]
dideler|work has quit [Ping timeout: 255 seconds]
vpretzel|1388 is now known as vpretzel|1389
dideler|work has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
St_Marx has joined #ruby
troyready has joined #ruby
Xeago has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
NinoScript has quit [Ping timeout: 252 seconds]
nvmme has quit [Quit: nvmme]
Wolland has quit [Ping timeout: 240 seconds]
lw has joined #ruby
NinoScript has joined #ruby
newUser1234 has joined #ruby
suppaduppa has quit [Quit: Leaving...]
LnL7 has quit [Quit: Exit 1]
terrellt has joined #ruby
freezey has quit [Remote host closed the connection]
LnL has joined #ruby
TeresaP has joined #ruby
obs has quit [Quit: Saliendo]
<TeresaP> Does anyone know what the correct channel to ask gem installation questions is?
<TeresaP> (RVM vs RBENV)
SegFaultAX has quit [Excess Flood]
terrellt has quit [Remote host closed the connection]
terrellt has joined #ruby
nectarys has quit [Remote host closed the connection]
nectarys_ has quit [Remote host closed the connection]
brunops has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
JokerDoomWork has quit [Ping timeout: 252 seconds]
vadzimt has joined #ruby
andrewjanssen has joined #ruby
SegFaultAX has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
niharvey is now known as niharvey|brb
vadzimt has left #ruby [#ruby]
Xeago has joined #ruby
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
bean__ has quit [Quit: bean__]
TeresaP is now known as TeresaP_
einarj has quit [Remote host closed the connection]
TeresaP_ is now known as TeresaP
<dideler|work> TeresaP: ask and find out if anyone can help you here
ponga has joined #ruby
<TeresaP> Alright, thanks dideler|work
ndrei has quit [Ping timeout: 260 seconds]
rm_ has joined #ruby
<TeresaP> For some of our machines, we installed Gems using RVM but our users had problems installing RVM for various reasons, so I decided to try switching us to RBENV. However, even after setting the global and local Ruby version to 2.0.0-p247, when I go to install a Gem, it tries to use 1.8 (the default version on Mac). What am I missing?
maestrojed has joined #ruby
bascht has joined #ruby
ndrei has joined #ruby
bean__ has joined #ruby
treehug8_ has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bufferloss> TeresaP: you probably need to set an rvm ruby to be the default
<dideler|work> TeresaP: how did you set the ruby version with rbenv?
jonahR has joined #ruby
eka_ has quit [Read error: Connection reset by peer]
treehug8_ has quit [Client Quit]
<dideler|work> TeresaP: and did you uninstall rvm first?
kirun has joined #ruby
Xeago_ has joined #ruby
<bufferloss> TeresaP: the only issues I’ve had with either rvm or rbenv on OSX is libraries and such, but I haven’t actually had any of those issues since approx 10.8
treehug8_ has joined #ruby
ponga has quit [Ping timeout: 276 seconds]
eka has joined #ruby
<TeresaP> This time, I was installing on a clean machine without RVM on it
<sarkis> TeresaP: silly question but when you set the global do you do rbenv rehash?
mehlah has quit [Quit: Leaving...]
Nilium has quit [Ping timeout: 252 seconds]
<sarkis> TeresaP: after doing so, post what which gem shows
<TeresaP> I switched by doing this: rbenv local 2.0.0-p247 … rbenv global 2.0.0-p247
<sarkis> which gem
Xeago_ has quit [Read error: Connection reset by peer]
<sarkis> sometimes after changges, rbenv requires you to run: rbenv rehash
freezey has joined #ruby
<TeresaP> hmm let me see if I did that
Squarepy has quit [Quit: Leaving]
<sarkis> also run: which gem
<TeresaP> I do not believe that I did that. I'll try it.
Wolland has joined #ruby
treehug88 has quit [Ping timeout: 260 seconds]
<sarkis> that will show you which gem binary you are running when you run "gem install some_gem"
dawkirst has joined #ruby
bradhe has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 245 seconds]
<TeresaP> It is still pointing to /usr/bin/gem
<sarkis> i see
newUser1234 has quit [Remote host closed the connection]
noop has joined #ruby
Guest9017 has quit [Read error: Connection reset by peer]
jack has joined #ruby
<sarkis> did you follow this step? i noticed you said its on OSX? https://github.com/sstephenson/rbenv#homebrew-on-mac-os-x
<sarkis> "Afterwards you'll still need to add eval "$(rbenv init -)" to your profile as stated in the caveats."
creativeembassy has joined #ruby
jack is now known as Guest76982
jhulten has quit [Remote host closed the connection]
Xeago has joined #ruby
<Sigma00> you should also run that command, or logout and login
gfunc has joined #ruby
gfunc has quit [Remote host closed the connection]
<sarkis> i recommend reading the how it works, to understand why you would need to add "$(rbenv init -)" to your profile: https://github.com/sstephenson/rbenv#how-it-works
hpoydar has quit [Remote host closed the connection]
<sarkis> that little line above is what does all of the magic :)
<TeresaP> ah, that does seem like an important bit
<TeresaP> Thanks I'm going to try that
dawkirst has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
codabrink has joined #ruby
codabrink has quit [Client Quit]
codabrink has joined #ruby
SBoolean has quit [Remote host closed the connection]
tectonic has quit []
SBoolean has joined #ruby
timfoo has quit [Ping timeout: 260 seconds]
timfoo has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
andrewlio has quit [Ping timeout: 252 seconds]
tectonic has joined #ruby
russt_ has joined #ruby
aspires has quit []
aspires has joined #ruby
yfeldblum has joined #ruby
gregf_ has quit [Quit: leaving]
lw has quit [Ping timeout: 260 seconds]
<shevy> dumdedum
Morkel has joined #ruby
dilated_dinosaur has quit [Ping timeout: 276 seconds]
QKO has quit [Ping timeout: 264 seconds]
hughlander has quit [Quit: hughlander]
Notte has joined #ruby
QKO has joined #ruby
lw has joined #ruby
Notte has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
bascht has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
timonv has joined #ruby
dfinly has joined #ruby
dfinly has quit [Max SendQ exceeded]
JokerDoomWork has joined #ruby
Ankhers has quit [Ping timeout: 272 seconds]
AlSquirrel has quit [Quit: This computer has gone to sleep]
vpretzel|1389 is now known as vpretzel|1392
papercode has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
obs has joined #ruby
dangerousdave has joined #ruby
kenneth has joined #ruby
claymore has quit [Ping timeout: 276 seconds]
Xeago has quit [Read error: Connection reset by peer]
datafirm_ has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
datafirm has quit [Ping timeout: 260 seconds]
freezey has quit [Read error: Connection reset by peer]
maximski has joined #ruby
freezey has joined #ruby
maximski has quit [Max SendQ exceeded]
Lutece has quit [Ping timeout: 272 seconds]
Ankhers has joined #ruby
maximski has joined #ruby
andrewlio has joined #ruby
newUser1234 has joined #ruby
adantj has quit [Remote host closed the connection]
blaines has joined #ruby
creativeembassy has quit [Quit: FO SHO]
cpruitt has quit [Quit: cpruitt]
Takle has quit [Remote host closed the connection]
phansch has quit [Quit: WeeChat 0.4.3]
alem0lars has quit [Quit: Going AFK...]
bradhe has joined #ruby
bradhe has quit [Remote host closed the connection]
creativeembassy has joined #ruby
xanandu has quit [Ping timeout: 264 seconds]
bradhe has joined #ruby
alem0lars has joined #ruby
kireevco has joined #ruby
lw has quit [Ping timeout: 265 seconds]
Kricir has quit [Remote host closed the connection]
dilated_dinosaur has joined #ruby
yacks has quit [Ping timeout: 255 seconds]
yetanotherdave has joined #ruby
codeFiend has joined #ruby
nanoyak has joined #ruby
cpruitt has joined #ruby
NinoScript has quit [Ping timeout: 265 seconds]
lw has joined #ruby
djbkd has quit [Remote host closed the connection]
adantj has joined #ruby
danshultz has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
danshultz has joined #ruby
alem0lars has quit [Client Quit]
jprovazn_afk has quit [Quit: Odcházím]
lkba has quit [Ping timeout: 255 seconds]
hughlander has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
claymore has joined #ruby
yetanotherdave has quit [Read error: Connection reset by peer]
danshult_ has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
danshultz has quit [Read error: Connection reset by peer]
noop has quit [Ping timeout: 252 seconds]
NinoScript has joined #ruby
noop has joined #ruby
yetanotherdave has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
stantona_ has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 265 seconds]
stantona has joined #ruby
jhulten has joined #ruby
andrewlio has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
NinoScript has quit [Read error: Connection reset by peer]
tyfighter has joined #ruby
rdark has quit [Quit: leaving]
yacks has joined #ruby
bradhe has quit [Remote host closed the connection]
NinoScript has joined #ruby
gaboesquivel has quit [Remote host closed the connection]
AlexRussia has joined #ruby
codeFiend has quit [Quit: codeFiend]
adantj has quit [Remote host closed the connection]
poguez_ has joined #ruby
lyanchih_ has quit [Ping timeout: 260 seconds]
Wolland has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
mary5030 has joined #ruby
tessi is now known as tessi_zz
Wolland has joined #ruby
learner has joined #ruby
NinoScript has quit [Ping timeout: 240 seconds]
LadyRainicorn has joined #ruby
learner1 has quit [Ping timeout: 260 seconds]
troulouliou_dev has quit [Remote host closed the connection]
nanoyak has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
ldnunes has joined #ruby
freerobby has joined #ruby
dangerou_ has joined #ruby
niharvey|brb is now known as Coolhand
Coolhand is now known as niharvey
Wolland has quit [Ping timeout: 264 seconds]
dangerousdave has quit [Ping timeout: 240 seconds]
terrellt has quit [Quit: Leaving...]
razrunelord has quit []
rayners has quit [Remote host closed the connection]
terrellt has joined #ruby
nanoyak has joined #ruby
SBoolean has quit [Remote host closed the connection]
SBoolean has joined #ruby
andrewlio has joined #ruby
newUser1234 has quit [Read error: Connection reset by peer]
varius has quit [Remote host closed the connection]
chrisja has joined #ruby
newUser1234 has joined #ruby
elaptics is now known as elaptics`away
ponga has joined #ruby
phantasm66 has quit [Quit: *poof*]
doev has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
pietr0 has quit [Quit: pietr0]
moritzs has joined #ruby
mrsolo has joined #ruby
pietr0 has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
lw has quit [Ping timeout: 252 seconds]
carraroj has joined #ruby
Wolland has joined #ruby
klaas has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
lw has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
terrellt has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
nicolas_leonidas has joined #ruby
<nicolas_leonidas> hey I installed rvm in centos 6.5, and now when I ssh in I get -bash: /home/nicolas/.rvm/scripts/cd: line 14: syntax error near unexpected token `('
<nicolas_leonidas> any idea why?
<Hanmac> nicolas_leonidas: #rvm has its own channel too
sputnik13 has joined #ruby
SCommette has quit [Quit: SCommette]
danijoo has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
alem0lars has joined #ruby
danijoo has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
mercerist has joined #ruby
mordocai has joined #ruby
segfalt has quit [Quit: Connection closed for inactivity]
mkjackson has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
anaeem1 has joined #ruby
adantj has joined #ruby
<mkjackson> hey folks, I'm getting a bundler error saying that a gem file specifies two versions of the same package... is there a way to find out which packages are conflicting?
tvw has quit []
<havenwood> nicolas_leonidas: are you running in a restricted shell? +1 #rvm, better place to ask!
tvw has joined #ruby
anaeem1 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<apeiros> mkjackson: I think newer bundler versions tell you quite overtly which ones conflict
eka has quit [Ping timeout: 252 seconds]
Rollabunna has quit [Ping timeout: 252 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
Guest76982 has quit []
Trynemjoel has quit [Quit: Trynemjoel]
newUser1234 has quit [Remote host closed the connection]
Trynemjoel has joined #ruby
jack has joined #ruby
AlSquire has joined #ruby
jack is now known as Guest96559
stantona has quit [Remote host closed the connection]
aspires has quit []
glenfe has quit [Quit: Leaving]
mrsolo has joined #ruby
Guest96559 is now known as jackv
lele has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
spider-mario has quit [Ping timeout: 276 seconds]
jackv is now known as jackvn
kasperg__ has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
runa has joined #ruby
jackvn has quit [Client Quit]
chubchubcharles has joined #ruby
Mon_Ouie has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
<runa> heyas :) I found a strange behavior when `require(name)` is ran fully every time it's executed; if the file it loaded the first time is a .so (this doesn't happens with a .rb) https://www.ruby-forum.com/topic/4937835 is this a bug or a feature?
<mkjackson> apeiros: it does but it doesn't tell me which files are in conflict :-/
Hanmac1 has joined #ruby
<mkjackson> both packages seem to require a different version of rdoc
klaut has joined #ruby
djbkd has joined #ruby
sski has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
<apeiros> eh? paste the output. I'm pretty sure it does.
kireevco has joined #ruby
leyluj has joined #ruby
<mkjackson> You cannot specify the same gem twice with different version requirements. you specified: rdoc (>= 2.4.2) and rdoc (~> 3.6)
<havenwood> mkjackson: so rdoc is the gem
blackmesa has joined #ruby
Asher has quit [Quit: Leaving.]
moritzs has quit [Ping timeout: 260 seconds]
<mkjackson> I think I might be running bundle install at too high a level
paulfm has quit []
<mkjackson> and it's catching multiple gemfiles
<havenwood> :O
<apeiros> I think you're talking nonsense.
Hanmac has quit [Ping timeout: 260 seconds]
<mkjackson> nope, that was it
<mkjackson> I've got a redmine server with multiple plugins
<mkjackson> they have different requirements
ndrei has quit [Ping timeout: 260 seconds]
SCommette has joined #ruby
<mkjackson> I was running from the parent directory
<mkjackson> so it must have been checking the subs recursively and seeing conflicts
mercerist has quit [Quit: Computer has gone to sleep.]
shvelo has joined #ruby
jimbauds has quit [Ping timeout: 245 seconds]
combusean has quit [Ping timeout: 260 seconds]
mercerist has joined #ruby
Hanmac1 is now known as Hanmac
<apeiros> either you don't know what a gemfile is or you're still talking nonsense. bundler uses one Gemfile.
keen________ has joined #ruby
adantj has quit [Ping timeout: 264 seconds]
<apeiros> and it searches it in the current directory, going up until it finds one.
ndrei has joined #ruby
<apeiros> but well, whatever it actually was - you solved your problem.
thisirs has joined #ruby
keen_______ has quit [Ping timeout: 264 seconds]
<mkjackson> grr.... never mind
<mkjackson> the packages are in conflicty
<mkjackson> site's down now :-(
iceden has quit [Ping timeout: 240 seconds]
<apeiros> I suggest you fix your terminology. there's Gemfile. There are gemspecs (NOT the same as a Gemfile) and there are gems
paulfm has joined #ruby
<apeiros> there's no such thin as a "package" in ruby
<apeiros> (unless you use apt to install gems, but that'd be outside of rubys, bundlers and rubygem's domain)
enebo has joined #ruby
aspires has quit []
troyready has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
hedgey has joined #ruby
<hedgey> hey
hedgey has quit [Client Quit]
<havenwood> runa: sounds like a bug to me, not sure..
iliketurtles has joined #ruby
<mkjackson> so a project can have multiple gemspecs?
<havenwood> mkjackson: no
<apeiros> a project doesn't *have* a gemspec
<apeiros> a *gem* has a gemspec
phutchins has quit [Ping timeout: 240 seconds]
<apeiros> a project can have a Gemfile. one.
danshult_ has quit [Remote host closed the connection]
* apeiros thinks more and more that "Gemfile" was a poor name choice by bundler…
danshultz has joined #ruby
danshultz has quit [Remote host closed the connection]
<runa> havenwood: I find it interesting, it's a performance bug...
danshultz has joined #ruby
feature_creep has quit [Quit: feature_creep]
<apeiros> (and a gem only has one gemspec too)
<runa> apeiros: would you mind checking https://www.ruby-forum.com/topic/4937835 if you have some time?
lw has quit [Ping timeout: 240 seconds]
comma8 has joined #ruby
Hanmac has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 0.4.3]
maheshm has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
<apeiros> runa: hm, no strace on osx, and I'm not experienced with dtruss. but let me see.
mikesplain has joined #ruby
benzrf is now known as benzrf|offline
lw has joined #ruby
anaeem1 has joined #ruby
snath has joined #ruby
kaspergrubbe has joined #ruby
Azulinho has joined #ruby
Hanmac has joined #ruby
phansch has joined #ruby
havenwood has quit [Remote host closed the connection]
fgo has joined #ruby
aspires has joined #ruby
AndChat| has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
r0bby_ is now known as robbyoconnor
maheshm has quit [Quit: maheshm]
freerobby has quit [Quit: Leaving.]
<apeiros> does not seem to play nice with ruby -e… not quite sure how it passes the arguments, but it somehow maims them :)
iceden has joined #ruby
skaflem has quit [Quit: Leaving]
<apeiros> well, passing a file to execute works normally. using that.
Takle has joined #ruby
troyready has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
nnu has quit [Quit: Wqke me up before you go-go]
<apeiros> runa: seems to happen here too, with 2.1.2
<apeiros> what's odd - the .rb parts of the require are repeated too
<apeiros> i.e., require 'digest/md5' starts with site_ruby/2.1.0/digest/md5.rb
<apeiros> and that gets opened multiple times too
<apeiros> ah… wait…
aspires has quit []
<apeiros> those are only tries and fail with ENOENT
dc has joined #ruby
atmosx has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
Channel6 has joined #ruby
Zespre has quit [*.net *.split]
eka has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Morkel_ has joined #ruby
<apeiros> this is weird… $ ruby -rdigest/md5 -e 'puts $".grep(/md5/)' # -> digest/md5.so
<apeiros> but `sudo dtruss -f -t open ruby t.rb 2>&1 | grep md5.so` yields nothing
danshultz has quit [Read error: Connection reset by peer]
danshult_ has joined #ruby
<apeiros> and all attempts at trying to load an md5.bundle fail with = -1 Err#2
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
Zespre has joined #ruby
havenwood has joined #ruby
havenwood has quit [Remote host closed the connection]
<apeiros> runa: your problem confuses me :D
james_d_h has quit [Quit: leaving]
<apeiros> the only successfully opened file by require 'digest/md5' is digest.rb, and digest.rb contains `require 'digest.so'` in the first line. I see no digest.so being opened, and I see no failure.
djbkd has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
ponga has joined #ruby
<apeiros> it seems to me that on osx, another syscall is used to open/load native extensions
sski has quit [Remote host closed the connection]
cocotton has joined #ruby
hughlander has quit [Quit: hughlander]
sski has joined #ruby
ponga has quit [Ping timeout: 252 seconds]
treehug8_ has quit []
Atttwww has joined #ruby
frogssgy is now known as frogsy
Takle has quit [Remote host closed the connection]
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
tectonic has quit []
cmhobbs has joined #ruby
sski_ has joined #ruby
sski has quit [Ping timeout: 265 seconds]
dawkirst has joined #ruby
subbyyy_ has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
sski_ has quit [Remote host closed the connection]
dangerousdave has quit []
sski has joined #ruby
alem0lars has quit [Quit: alem0lars]
timonv has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
tectonic has joined #ruby
tectonic has quit [Max SendQ exceeded]
thisirs has quit [Ping timeout: 276 seconds]
<apeiros> dln_load in dln.c is a fun read :-S
alem0lars has joined #ruby
tectonic has joined #ruby
tectonic has quit [Client Quit]
Takle has joined #ruby
gaboesquivel has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
fgo has quit []
omosoj has joined #ruby
IceDragon has joined #ruby
stantona has joined #ruby
Hanmac1 has joined #ruby
Nahra has quit [Remote host closed the connection]
Nahra has joined #ruby
danshult_ has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
lele has joined #ruby
yetanotherdave has quit [Quit: Lost terminal]
timonv has joined #ruby
Slavox is now known as Slavox|AFK
olivier_bK has joined #ruby
Bira has quit [Remote host closed the connection]
stantona has quit [Ping timeout: 265 seconds]
vpretzel_ has joined #ruby
silkfox has joined #ruby
timonv has quit [Remote host closed the connection]
eka_ has joined #ruby
combusean has joined #ruby
eka has quit [Read error: Connection reset by peer]
toastynerd has joined #ruby
vpretzel|1392 has quit [Ping timeout: 265 seconds]
doev has quit [Ping timeout: 240 seconds]
brunops has quit [Ping timeout: 265 seconds]
doev has joined #ruby
GriffinHeart has joined #ruby
paulfm has quit []
maximski has quit []
jackneill has quit [Remote host closed the connection]
creativeembassy has quit [Quit: FO SHO]
paulfm has joined #ruby
Zenigor has quit [Remote host closed the connection]
Slavox|AFK is now known as Slavox
iliketurtles has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
lmickh has joined #ruby
yetanotherdave has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
jonahR has quit [Remote host closed the connection]
iliketurtles has quit [Client Quit]
stantona has joined #ruby
joaoh82 has joined #ruby
saarinen has quit [Quit: saarinen]
aspiers_ has joined #ruby
olivier_bK has quit [Ping timeout: 265 seconds]
<runa> apeiros: sorry, I'm back.
<apeiros> and I gave up :(
<apeiros> can't figure out which syscall, if any syscall at all is used to open native extensions on osx
stantona has quit [Remote host closed the connection]
einarj has joined #ruby
dawkirst has joined #ruby
stantona has joined #ruby
creativeembassy has joined #ruby
aspires has joined #ruby
shvelo has quit [Ping timeout: 264 seconds]
franzip has quit [Read error: Connection reset by peer]
ra4king has quit [Remote host closed the connection]
franzip has joined #ruby
ra4king has joined #ruby
Asher has joined #ruby
mikesplain has quit [Ping timeout: 260 seconds]
shvelo has joined #ruby
sunya7a has joined #ruby
sunya7a has quit [Client Quit]
djbkd has joined #ruby
stantona has quit [Ping timeout: 255 seconds]
sepp2k has joined #ruby
datafirm__ has joined #ruby
<runa> apeiros: ok. but at least on linux, it looks like a bug
Channel6 has quit [Quit: Leaving]
lethe has joined #ruby
<apeiros> from your description in the post it seems like it, yes.
<runa> apeiros: ok. thanks ;)
<apeiros> curious for the answers on it
<eam> apeiros: syscall, like open, mmap, etc?
<eam> pretty sure that's all dlopen(3) does
datafirm_ has quit [Ping timeout: 252 seconds]
<runa> apeiros: yep, me too. because AFAIK it's the only 'nice' way of avoiding autoload but not loading everything on start
<eam> does ruby maintain anything similar to perl's %INC hash? That is, a hash of already loaded modules?
djbkd has quit [Ping timeout: 240 seconds]
<apeiros> eam: yes. it seems on osx, requiring a native extension loads it via `dyld_result = NSCreateObjectFileImageFromFile(file, &obj_file);` (dln.c:1423 in my ruby source, not sure which version)
vmoravec has joined #ruby
stantona has joined #ruby
<jhass> eam: $LOADED_FEATURES or something like that
<apeiros> it doesn't show up with dtruss
vmoravec has quit [Client Quit]
<eam> jhass: ah, that's an array of the files loaded, but how about a map of name => file?
<apeiros> eam, jhass: yes, $LOADED_FEATURES ( == $" in my message a bit further above)
<apeiros> ah, no
<eam> for example in %INC, you would have pp => /path/to/pp.rb
<jhass> eam: what do you mean? Ruby only cares about files when it comes to loading stuff
relix has joined #ruby
djbkd has joined #ruby
<apeiros> I think if you did require 'pp'; $:.unshift('other'); require 'pp' it'd require pp twice if it was also in other
<apeiros> as it'd be a different file to load now
<apeiros> not sure though, never tested.
lethe has quit [Ping timeout: 240 seconds]
danshultz has quit [Remote host closed the connection]
<jhass> $LOADED_FEATURES contains absolute paths and I think that's what require operates on
<jhass> so I'd assume that too
Eyes has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
Eyes has joined #ruby
<eam> in perl, if you say use Foo::Bar, you end up with 'Foo::Bar' => '/path/to/Foo/Bar.pm'
<eam> seems useful to track the name of the module loaded as well as which path it was found in
danshultz has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
<jhass> yes, there's no such automatism in ruby I'm aware of
SCommette has quit [Quit: SCommette]
jonahR has joined #ruby
ringarin has joined #ruby
<jhass> hm, I wonder how pry finds the right file for a module though
SCommette has joined #ruby
garndt has quit [Quit: Connection closed for inactivity]
<eam> another neat trick perl has is letting you put a lambda into $:
eka_ has quit [Read error: Connection reset by peer]
mijicd has joined #ruby
<eam> super useful for doing all kinds of special conditional loading decisions
chipotle has joined #ruby
eka has joined #ruby
<eam> (or tracing module load order, stuff like that)
sdrew has joined #ruby
happytux has quit [Quit: ChatZilla 0.9.90.1-rdmsoft [XULRunner 22.0/20130619132145]]
tami99 has quit [Quit: tami99]
LadyRainicorn has quit [Quit: Bye]
Nahra has quit [Remote host closed the connection]
zB0hs has joined #ruby
saarinen has joined #ruby
DanishMan has joined #ruby
ra4king has quit [Remote host closed the connection]
Nahra has joined #ruby
mijicd has quit [Remote host closed the connection]
ra4king has joined #ruby
mijicd has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
coffeina has joined #ruby
eka has quit [Ping timeout: 240 seconds]
momomomomo has quit [Quit: momomomomo]
eka has joined #ruby
jamto11 has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
jhass is now known as jhass|off
ponga has joined #ruby
Hanmac has joined #ruby
alem0lars has quit [Quit: alem0lars]
phansch_ has joined #ruby
atmosx has quit [Quit: Lost in trance]
yacks has quit [Ping timeout: 252 seconds]
eka has quit [Read error: Connection reset by peer]
eka has joined #ruby
Hanmac1 has quit [Ping timeout: 264 seconds]
Squarepy has joined #ruby
the_f0ster has joined #ruby
omosoj has quit [Quit: Leaving]
phansch has quit [Ping timeout: 240 seconds]
ponga has quit [Ping timeout: 252 seconds]
mrsolo has quit [Quit: This computer has gone to sleep]
LiohAu has quit [Quit: LiohAu]
subbyyy_ has joined #ruby
mordof_work has left #ruby [#ruby]
ldnunes has quit [Quit: Leaving]
Rollabunna has joined #ruby
aspires has quit []
mercerist has joined #ruby
DrShoggoth has quit [Ping timeout: 255 seconds]
mark_locklear has quit [Ping timeout: 276 seconds]
spider-mario has joined #ruby
dawkirst has quit [Remote host closed the connection]
doev has quit [Ping timeout: 240 seconds]
dawkirst has joined #ruby
doev has joined #ruby
jeregrine_ has joined #ruby
kireevco has quit [Quit: Leaving.]
cmhobbs has quit [Read error: Connection reset by peer]
Ankhers has quit [Ping timeout: 272 seconds]
subbyyy_ has quit [Quit: none 0.4.3]
cmhobbs has joined #ruby
jeregrine_ is now known as jeregrine
cmhobbs has quit [Read error: Connection reset by peer]
benzrf|offline is now known as benzrf
Rollabunna has quit [Ping timeout: 255 seconds]
cmhobbs has joined #ruby
cmhobbs has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
coffeina has quit [Quit: Wychodzi]
noop has quit [Ping timeout: 245 seconds]
toastynerd has quit [Remote host closed the connection]
dc has joined #ruby
momomomomo has joined #ruby
mengu has joined #ruby
thisirs has joined #ruby
jamto11 has joined #ruby
cpruitt has quit [Ping timeout: 245 seconds]
cpruitt has joined #ruby
phansch^ has joined #ruby
paulfm has quit []
deavid has quit [Ping timeout: 255 seconds]
Devanon has joined #ruby
n0n3 has quit []
cmhobbs has joined #ruby
testcore has joined #ruby
obs has quit [Remote host closed the connection]
cpruitt has quit [Read error: Connection reset by peer]
doev has quit [Ping timeout: 264 seconds]
cpruitt has joined #ruby
phansch_ has quit [Ping timeout: 260 seconds]
DrShoggoth has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
cocotton has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
cmhobbs has quit [Ping timeout: 276 seconds]
mehlah has joined #ruby
Bira has joined #ruby
robertodecurnex has quit [Remote host closed the connection]
SBoolean has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
danshultz has joined #ruby
Bira has quit [Ping timeout: 260 seconds]
nobitanobi has joined #ruby
dblessing_ has quit [Quit: dblessing_]
baroquebobcat has joined #ruby
lw has quit [Quit: s]
thisirs has quit [Remote host closed the connection]
franzip has quit [Quit: ...]
kireevco has joined #ruby
klaut has quit [Remote host closed the connection]
akonny has quit [Quit: akonny]
NukePuppy has quit [Ping timeout: 260 seconds]
adeponte is now known as cyphacto
cyphacto is now known as cyphactor
vifino has quit [Quit: Me sais Laptop sleepy.]
carraroj has quit [Quit: Konversation terminated!]
vifino has joined #ruby
Hanmac1 has joined #ruby
vifino has quit [Client Quit]
toastynerd has quit [Remote host closed the connection]
ringarin has quit [Quit: Leaving]
andrewlio has quit [Ping timeout: 260 seconds]
deavid has joined #ruby
klaut has joined #ruby
iceden has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 255 seconds]
tectonic has joined #ruby
andrewlio has joined #ruby
Morkel has quit [Quit: Morkel]
jroes has joined #ruby
<jroes> is there something I'm misunderstanding about Time comparison in Ruby? https://gist.github.com/jroes/62e4b3cf788f501471f2
<jroes> I am expecting time1 == time2
shvelo has quit [Ping timeout: 252 seconds]
mijicd has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
<DEA7TH> jroes: could it be that time_to_f and time_to_a lead to some loss of information? like milliseconds or something
CodeBunny has joined #ruby
<jroes> afaik time.to_i leads to loss of milliseconds, but I was under the impression that to_f didn't lose anything
creativeembassy has quit [Quit: FO SHO]
mijicd has joined #ruby
kyb3r_ has joined #ruby
hughlander has joined #ruby
mijicd has quit [Client Quit]
pagioss has left #ruby ["Leaving"]
mijicd has joined #ruby
diegoviola has joined #ruby
<nobitanobi> If I have a method that it returns a User or nil (if it can't find a user), how do I document it with Yard: # @return [User] the user who owns the access token
phansch^ has quit [Quit: WeeChat 0.4.3]
dc has joined #ruby
brandonjmckay has joined #ruby
workmad3 has joined #ruby
akonny has joined #ruby
mrsolo has joined #ruby
jinie has quit [Ping timeout: 265 seconds]
kirun has quit [Quit: Client exiting]
<apeiros> @return [User, nil]
<eam> a conversion from (for example) struct timeval will differ from an IEEE float representation
dilated_dinosaur has quit [Ping timeout: 265 seconds]
n0n3 has joined #ruby
<eam> I don't know what ruby does in Time, but floats are different than most internal time structures
<jroes> eam: is there anything I can inspect on the objects to see that?
<eam> jroes: I guess, check to see what the heck == is comparing
<apeiros> jroes: Time has a higher precision than the float, being a 64bit integer
n0n3 has quit [Remote host closed the connection]
<nobitanobi> apeiros: thanks! Where did you find that documentation?
dilated_dinosaur has joined #ruby
<apeiros> float uses too much for the exponent to be as precise
<jroes> eam: the docs are showing me C code :\
<eam> it probably is C yeah
jinie has joined #ruby
<nobitanobi> I guess you already knew it :) But where can I find that documentation
DanishMan has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<nobitanobi> I mean, within YARD (http://yardoc.org/) - Where is the documentation on 'how to document' ?
yubrew has quit [Remote host closed the connection]
rm_ has quit [Remote host closed the connection]
<apeiros> nobitanobi: yeah, I have to search for that every time again :)
<shevy> nobitanobi even more importantly, how to change the YARD assumptions for documentation?
<eam> jroes: from time.c, PACKED_STRUCT_UNALIGNED(struct time_object { wideval_t timew; /* time_t value * TIME_SCALE. possibly Rational. */
<AntelopeSalad> is there an easy way to perform a difference on 2 arrays but instead of just subtracting them for an exact match you could use .include? instead to determine how they should be compared?
rm_ has joined #ruby
<nobitanobi> oh boy,
<nobitanobi> interesting
chubchubcharles has quit [Ping timeout: 240 seconds]
failshell has quit []
<apeiros> nobitanobi: I think it was here http://rubydoc.info/gems/yard/file/docs/Tags.md
<nobitanobi> ~~ Nice
<eam> I actually don't see where it defines the internal format for Time
<eam> but it's not a float, so it won't be necessarily 1:1
<jroes> gotcha
<AntelopeSalad> oops bad termonology, instead of .include? , i mean more like how .include? works for a string
<jroes> The lowest digit of #to_f and nsec is different because IEEE 754 double is not accurate enough to represent nanoseconds from the Epoch. The accurate value is returned by nsec.
mocfive has joined #ruby
frobrob has joined #ruby
<mocfive> vosloco , what ruby are you using?
<bricker> AntelopeSalad: You could use delete_if
<eam> jroes: there you go
<bricker> or reject
<jroes> [time1.nsec, time2.nsec] # => [685710187, 685710000]
<jroes> great
<jroes> juuuuust great
<eam> jroes: in C, getimeofday returns a struct of two longs, one for sec and one for microsec
sinkensabe has joined #ruby
<eam> (they're time_t typed but -- they're native int size generally)
<AntelopeSalad> bricker: yeah, i was hoping there was a nicer way instead of having to loop through manually
<eam> jroes: on a 32bit system to_f may work as you expect :)
<eam> floats don't change in size with architecture, but ints do
<apeiros> AntelopeSalad: you mean whether one array is a subset of the other array?
<eam> generally
<apeiros> AntelopeSalad: i.e., [2,3].subset?([4,3,2,1]) # => true ?
combusean has quit [Ping timeout: 260 seconds]
<AntelopeSalad> apeiros: does that also do partial string matches?
<apeiros> eam: as of ruby 1.9, Time uses 64bit even on 32bit systems
rm_ has quit [Ping timeout: 276 seconds]
nateberkopec has quit [Quit: Leaving...]
endash has quit [Quit: endash]
<jroes> I think this explains why on my local machine these tests pass
<eam> apeiros: yeah but does gettimeofday() ?
<apeiros> eam: I think not. afaik they wrote around it
kireevco has quit [Read error: Connection reset by peer]
<apeiros> eam: which is why 1.8's Time differed on 32bit machines from Time on 64bit machines
<apeiros> (because there they just thinly wrapped it)
<apeiros> AntelopeSalad: what?
kireevco has joined #ruby
<eam> extra precision in an intermediate value wouldn't matter if the input granularity is still 32bit
<apeiros> eam: it mattered more for range
<eam> from the system
<eam> apeiros: yeah, that makes sense
<apeiros> eam: 1970-2038 wasn't really great range
<eam> ranges are sucky with -- yeah
nateberkopec has joined #ruby
<apeiros> and the reason for the ugly Time vs. DateTime thingy we have now :-/
<eam> ah, is that why
<apeiros> yes
<apeiros> DateTime uses Rational and was thus "unlimited"
<AntelopeSalad> apeiros: i'm trying to compare partial string matches
<AntelopeSalad> .include? only does an exact == match
bluOxigen has joined #ruby
<apeiros> AntelopeSalad: then why do you talk about arrays if you want string matches?
<apeiros> AntelopeSalad: also, examples would help a great deal explaining what you're after
<AntelopeSalad> apeiros: because i'm searching in an array, not a string
<AntelopeSalad> i explained this before
<eam> everything involving time is always a goddamn mess
hakunin has quit [Remote host closed the connection]
<apeiros> AntelopeSalad: ok. I don't care about "before".
hakunin has joined #ruby
hakunin has quit [Remote host closed the connection]
<AntelopeSalad> "before" was about 2 minutes ago
<shevy> hehe
<apeiros> AntelopeSalad: that explanation was not useful.
<eam> apeiros: the crappy thing about ranges is -- even with 64bit we can't look more than 6 months into the future
hakunin has joined #ruby
<eam> without losing accuracy
hakunin has quit [Remote host closed the connection]
<AntelopeSalad> why argue? if it's not possible i'll just loop through it manually in an ugly imperative'ish way :/
combusean has joined #ruby
hakunin has joined #ruby
<AntelopeSalad> i just wanted to take a string and search for a partial match anywhere in an array of strings and get back true/false
<eam> because ruby uses a time reference localized with respect to leap seconds
<apeiros> AntelopeSalad: example.
hakunin has quit [Remote host closed the connection]
sdwrage has joined #ruby
kaspergr_ has joined #ruby
hakunin has joined #ruby
<apeiros> AntelopeSalad: if you don't care to give a useful example, don't expect people to try and help you, sheesh.
<AntelopeSalad> apeiros: input of 'o' on ['foo', 'bar', 'world'] would return true
<apeiros> ary.join('').include?('o')
<shevy> hehe
hakunin has quit [Read error: Connection reset by peer]
<apeiros> ary.any? { |s| s.include?('o') }
nateberkopec has quit [Ping timeout: 240 seconds]
hakunin has joined #ruby
<apeiros> !ary.grep(/o/).empty?
pwest has joined #ruby
blackmesa has quit [Quit: WeeChat 0.4.3]
<AntelopeSalad> i like the .any? solution
<AntelopeSalad> thanks
<apeiros> eam: what do you consider acceptable resolution?
ponga has joined #ruby
<apeiros> I think in chronos I went with picoseconds
ponga has quit [Changing host]
ponga has joined #ruby
AlSquirrel has joined #ruby
<nobitanobi> apeiros: do you have any project publicly available documented with Yard?
<nobitanobi> I need examples :)
<pwest> If I have a file that simply contains "default[:test][:a] = 'a'" and I want to load that into another ruby file, how would I do that? I thought "require" might simply load it into scope, but it's tossing errors
kaspergrubbe has quit [Ping timeout: 252 seconds]
<apeiros> there are probably better examples for yard documentation, though
<nobitanobi> ok, I will research
<nobitanobi> thanks a lot
frobrob has quit [Ping timeout: 245 seconds]
silkfox has quit [Ping timeout: 255 seconds]
panga has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
ponga has quit [Read error: No route to host]
<apeiros> eam: ah, right, in chronos I used a 64bit int for picoseconds up to a day, and a 64bit int for days since a custom epoch (backdated gregorian 0000-01-01)
beneggett has joined #ruby
AlSquirrel has quit [Ping timeout: 240 seconds]
jezen has joined #ruby
<jezen> is it possible to mock/stub PG::Connection.exec?
<apeiros> jezen: sure, why not?
alexju has quit [Remote host closed the connection]
<jezen> apeiros: Because it’s private, I think
akonny has quit [Quit: akonny]
<jezen> I’m a bit new to rspec, and TDD in general
<apeiros> why'd that stop you from mocking/stubbing it?
<jezen> so there’s a good chance I’m doing it incorrectly
<apeiros> and I doubt it's private
<eam> apeiros: TAI is the time format that solves the leap second issue, the problem is that's not what POSIX uses
<eam> it's a mess
AlSquire has joined #ruby
aspiers_ has quit [Ping timeout: 260 seconds]
<eam> probably not worth trying to fix in ruby, sometimes it's better to be as broken as everyone else
freerobby has quit [Quit: Leaving.]
<apeiros> well, I regard leap seconds, dst and timezones as a representational issue
<apeiros> makes dealing with it much easier
<eam> dst/timezones are display layer, but leap seconds are changes to time_t
jrhe has quit [Quit: Connection closed for inactivity]
<apeiros> in posix maybe
<eam> yeah
<eam> but everything is on top of posix
<apeiros> ah, wait…
timonv has joined #ruby
<apeiros> damn, this stuff is already years ago… damn memory
diegoviola has quit [Quit: WeeChat 0.4.3]
peterhu has quit [Quit: leaving]
<apeiros> no, you're right. a leap second is actually a second which passes
<jezen> @apeiros I tried PG::Connection.stub(:exec); PG::Connection.should_receive(:exec).with("some string"); @my_object.my_method("some string")
peterhu has joined #ruby
<eam> which is why noon/midnight is locked to the solar cycle
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jezen> apeiros: And I get NoMethodError: private method 'exec' called for nil:NilClass
<eam> whereas TAI can do high precision time calculations of arbitrary scale, but in 100 years "noon" won't be matched up to the solar noon
<eam> earth bias :)
pragmatism has joined #ruby
chipotle has quit [Quit: cya]
<pragmatism> I have a Slot with many Revisions. I want a scope on Slot that returns Slots with Revisions.last.active?
<pragmatism> How would I do that?
<apeiros> eam: I think I would have to look all that stuff up again. too foggy, and I'm probably too tired. I think I had a good solution to it, where you could swap out the presentation layer and you'd have either leap seconds, dst and all that jazz or just an arithmetic back/forward-dated gregorian system
<pragmatism> oops, need #rails
<pragmatism> jk
<pragmatism> bye
pragmatism has left #ruby [#ruby]
bluOxigen has quit [Ping timeout: 264 seconds]
<mary5030> hi there hope this isnt dum question can someone help understand how i can i only display the description part of this GET response
claymore has quit [Quit: night]
jespada has quit [Quit: Leaving]
<apeiros> jezen: means you don't call exec on PG::Connection
<apeiros> jezen: you call it on nil
<apeiros> >> nil.exec
<eval-in_> apeiros => private method `exec' called for nil:NilClass (NoMethodError) ... (https://eval.in/158992)
GriffinHeart has joined #ruby
<mary5030> "Failed to retrieve https://example.com/config/589025?accept=json&params=config_typestartup: [{\"title\":\"Generators::UnprocessableTemplateError\",\"description\":\"No template could be found\"}]"
<eam> apeiros: If you have access to the current leap second database you can calculate TAI from UTC with a lookup and go from there. I'm not sure there's a more elegant mechanism
<eam> the problem is that the database needs biannual updates
<apeiros> eam: yes
<apeiros> eam: same for dst
<mary5030> i only like to catch the description part of this response and store it in a variable
<eam> yeah
<apeiros> since dst isn't algorithmic
sinkensabe has quit [Remote host closed the connection]
n0n3 has joined #ruby
<apeiros> also timezones, because they can change too :-S
<mozzarella> guys
<apeiros> (shout out to +0530 and similar timezones)
timonv has quit [Ping timeout: 260 seconds]
<mozzarella> what's the best library to use ncurses in my ruby programs?
<eam> in practice, everyone is just like leap seconds ¯\_(ツ)_/¯
sinkensabe has joined #ruby
<mozzarella> library/gem
<eam> unless they're doing astrophysics
<apeiros> eam: yeah. default was without.
<apeiros> because people would be f*ing confusing if they did subtraction and got an odd second out
testcore has quit [Quit: [BX] Went through the desert on a BitchX with no name.]
djcp has quit [Ping timeout: 264 seconds]
<eam> and that's why I don't fly on airplanes on NYE or 6 months from NYE at midnight
<apeiros> :D
<apeiros> good idea
<apeiros> there was also some issue with passing the date border
<apeiros> where flight instruments showed the plane upside down
<jezen> apeiros: I don’t think that’s right… I still get the same error. In my production code, I know that I’m meant to use exec on an instance of PG::Connection
<banister> apeiros your flight instruments?
glenfe has joined #ruby
<apeiros> jezen: your error *tells* you that you call it on nil
<apeiros> jezen: all you have to do is read the error
<apeiros> 23:46 jezen: apeiros: And I get NoMethodError: private method 'exec' called for nil:NilClass
<apeiros> that "called for ***nil:NilClass**" is meant like it is written. you call it on nil.
rm_ has joined #ruby
<apeiros> banister: not mine :)
nicolas_leonidas has quit [Quit: ChatZilla 0.9.90.1 [Firefox 28.0/20140314220517]]
GriffinHeart has quit [Ping timeout: 260 seconds]
<apeiros> not sure that's the one, though
<apeiros> actually seems to be another one :)
<jezen> apeiros: So… nil.stub(:exec) ; nil.should_receive(:exec) ; ?
<eam> the last few leap seconds have all triggered catastrophic bugs in various system components (linux kernel, jvm, etc)
<apeiros> jezen: no
<apeiros> jezen: the error tells you that you do not do what you think you do.
hughlander has quit [Quit: hughlander]
<banister> apeiros lol https://github.com/seutje
<apeiros> jezen: it tells you that you do NOT call it on a PG::Connection
yubrew has joined #ruby
<apeiros> jezen: of course you SHOULD call it on one
sinkensabe has quit [Ping timeout: 264 seconds]
AlSquire has quit [Ping timeout: 265 seconds]
alevel27mage has joined #ruby
nicholas040 has joined #ruby
<apeiros> sometimes I wonder whether I talk in riddles…
nowthatsamatt has quit [Quit: nowthatsamatt]
nateberkopec has joined #ruby
ryanleesipes has quit [Quit: Leaving]
<slash_nick> apeiros: i give up, what's the answer
yubrew has quit [Ping timeout: 255 seconds]
<apeiros> slash_nick: on what?
<slash_nick> trying to figure out your riddle
<apeiros> lol, QED…
<nobitanobi> How do you guys document if a method (besides returning) changes the status of an object, or launches a background-job. Do you just write what it does in the description of the Yard method doc?
<apeiros> I said I wonder whether I do talk in riddles. because I think I say something as clear as day, but people don't understand
nateberkopec has quit [Read error: No route to host]
nateberkopec has joined #ruby
<shevy> nobitanobi I document by writing useful things into code regardless of whether yard checks it or not, which is my problem with yard - I have to conform to its syntax rules and I don't allow third party tools like that dictate how I document
<shevy> into *comments
<slash_nick> apeiros: yeeeah I was having fun with the concept that you do speak in riddles
x1337807x has quit [Read error: Connection reset by peer]
<nobitanobi> shevy: okay :)
<nobitanobi> thanks
mengu has quit []
SilverKey has joined #ruby
mocfive has quit [Remote host closed the connection]
jroes has left #ruby [#ruby]
tectonic has quit []
SegFaultAX has quit [Excess Flood]
mrsolo has quit [Quit: This computer has gone to sleep]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hughlander has joined #ruby
katmandoo has quit [Ping timeout: 264 seconds]
<banister> nobitanobi you send that fucker through the IO monad
doodlehaus has quit [Remote host closed the connection]
<nobitanobi> banister: whoot?
SegFaultAX has joined #ruby
doodlehaus has joined #ruby
jezen has quit []
nateberkopec has quit [Ping timeout: 240 seconds]
pwest has quit [Ping timeout: 240 seconds]
jinie has quit [Ping timeout: 265 seconds]
x1337807x has joined #ruby
<benzrf> yo banister
<benzrf> did u xamine the imgur album i sent you
SCommette has quit [Quit: SCommette]
Azulinho has quit [Ping timeout: 265 seconds]
p8952 has quit [Ping timeout: 265 seconds]
Azulinho has joined #ruby
bean__ has quit [Quit: bean__]
Deele has quit [Ping timeout: 260 seconds]
p8952 has joined #ruby
geggam has quit [Quit: commute]
jinie has joined #ruby
doodlehaus has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
Biohazard has quit [Ping timeout: 260 seconds]
tectonic has joined #ruby
Biohazard has joined #ruby
mrsolo has joined #ruby
testcore has joined #ruby
<banister> benzrf yes very cool, congrats!
<benzrf> :-)
<banister> benzrf any feedback from the guys in #haskell ?
abra has quit [Ping timeout: 240 seconds]
<banister> things like this is the reason i preordered an oculus rift https://www.youtube.com/watch?v=XyYy-q6Bprk /cc apeiros
toastynerd has quit [Ping timeout: 240 seconds]
alevel27mage has quit []
abra has joined #ruby
riotjones has quit [Ping timeout: 260 seconds]
Xuerian has quit [Ping timeout: 252 seconds]
rm_ has quit [Remote host closed the connection]
centrx has joined #ruby
shinobi_one has joined #ruby
rm_ has joined #ruby
Xuerian has joined #ruby
Asher has quit [Ping timeout: 252 seconds]
cvitullo has joined #ruby
<mozzarella> what's the best library to use ncurses in my ruby programs?
<apeiros> banister: oculus street view? :)
Asher has joined #ruby
<banister> apeiros kinda i guess :)
<banister> Asher raffles! ltns!
Azure has quit [Quit: Blue Sky Fish]
Bosox20051 has joined #ruby
mrsolo has quit [Quit: This computer has gone to sleep]
AlSquire has joined #ruby
rm_ has quit [Ping timeout: 255 seconds]
jheg has joined #ruby
jobewan has quit [Quit: Leaving]
freezey has quit []
ner0x has joined #ruby
joaoh82 has quit []
Valesk has joined #ruby
mehlah has quit [Quit: Leaving...]
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
rafaelmagu has joined #ruby
katmandoo has joined #ruby
stantona_ has joined #ruby
Bira has joined #ruby
zB0hs has joined #ruby
enebo has quit [Quit: enebo]
Azure has joined #ruby
stantona has quit [Ping timeout: 255 seconds]
vpretzel_ has quit [Read error: Connection reset by peer]
<mozzarella> guys help
vpretzel|1392 has joined #ruby
zB0hs has quit [Client Quit]
the_f0ster has quit [Ping timeout: 255 seconds]
<mozzarella> I'm trying to install gem 'ncurses'
bamdad has joined #ruby
nfk has quit [Quit: yawn]
Bira has quit [Ping timeout: 276 seconds]
enebo has joined #ruby
chipotle has joined #ruby
bradhe has quit [Remote host closed the connection]
AlSquire has quit [Ping timeout: 265 seconds]
enebo has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
hughlander has quit [Quit: hughlander]
jxf has quit [Ping timeout: 260 seconds]
nanoyak has joined #ruby
<cvitullo> can anybody help somebody who's never used ruby before this figure out why my erb template that i'm trying to make in a capistrano script isn't working?
<centrx> mozzarella, Maybe update your C compiler?
JokerDoomWork has quit [Read error: Connection reset by peer]
JokerDoomWork has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
<cvitullo> I'm trying to give it an array of hashes, then use each hash to generate a configuration, but it's saying that the variable i'm iterating over is of type NilClass, but literally the line before i'm successfully iterating through it
<mozzarella> centrx: it's up-to-date
CodeBunny has quit [Ping timeout: 240 seconds]
Rollabunna has joined #ruby
<centrx> cvitullo, You'll have to paste some code at gist.github.com
jheg has quit [Read error: Connection reset by peer]
jaimef has quit [Excess Flood]
<cvitullo> yeah word
<centrx> mozzarella, Could be missing ruby-dev/the ruby header files
jheg has joined #ruby
sski has quit [Remote host closed the connection]
andrewlio has quit [Quit: Leaving.]
<centrx> mozzarella, Generally to install native extensions you need installed a) build tools like m4, gcc, etc., and b) the ruby header/development files
sski has joined #ruby
<centrx> mozzarella, On Debian systems that is generally: apt-get install build-essential rubyX-dev
<centrx> X.X
froy has quit [Quit: kablam!]
<centrx> PHP!?
<cvitullo> yeah i'm deploying a CakePHP application, don't get me started
AlSquire has joined #ruby
jaimef has joined #ruby
<centrx> cvitullo, Is @databases what is nil?
<cvitullo> but yeah it says "SSHKit::Runner::ExecuteError: Exception while executing on host [ip]: undefined method `each' for nil:NilClass"
<cvitullo> centrx: yeah
<Sigma00> cvitullo: deploy.rb, line 12
<centrx> cvitullo, Maybe databases = should be DATABASES =, so that it is a class-level constant instead of a local variable
<cvitullo> it seems like a scoping problem, but i haven't been able to figure out anything about how scoping in ruby/erb works
rafaelmagu has quit [Quit: Textual IRC Client: www.textualapp.com]
<centrx> cvitullo, Then just DATABASES.each
Rollabunna has quit [Ping timeout: 255 seconds]
timfoo has quit [Ping timeout: 260 seconds]
<cvitullo> i'll give it a shot
JokerDoomWork has quit [Ping timeout: 260 seconds]
sski has quit [Ping timeout: 255 seconds]
yubrew has joined #ruby
<cvitullo> ugh i'm so happy/angry that that worked
<cvitullo> thanks
timfoo has joined #ruby
<mozzarella> centrx: I'm on fedora, I installed ruby-devel and the C dev tools, and still no luck
rm_ has joined #ruby
ValicekB has quit [Ping timeout: 240 seconds]
<centrx> Okay
<centrx> mozzarella, Visit https://rubygems.org/gems/ncurses you will see that the gem named "ncurses" is extremely old and not maintained
<pipework> cvitullo: That's hilarious.
olausm has joined #ruby
JokerDoomWork has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
Hanmac has joined #ruby
<cvitullo> i blame the tool, it's clearly not a lack of knowledge on my part
mikecmpbll has quit [Quit: i've nodded off.]
<centrx> mozzarella, You want "curses", https://rubygems.org/gems/curses which includes bindings for ncurses
nanoyak has joined #ruby
<centrx> mozzarella, This is the curses/ncurses that was recently split from the Ruby stdlib
yubrew has quit [Ping timeout: 240 seconds]
bauruine has quit [Ping timeout: 240 seconds]
<Sigma00> cvitullo: line 45 in deploy.rb, you want puts database.result(binding) to have access to the block variables
xanandu has joined #ruby
Hanmac1 has quit [Ping timeout: 260 seconds]
fschuindt has joined #ruby
<mozzarella> centrx: does it offer everything ncurses offers?
saarinen has quit [Quit: saarinen]
<cvitullo> sigma00: what's the 'binding" in that represent?
<Sigma00> it binds the ERB template to the current block
nemesit|znc has quit [Ping timeout: 252 seconds]
<Sigma00> you could say it makes it part of the scope?
<Sigma00> gives it access to the scope
bauruine has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
djbkd has joined #ruby
<mozzarella> I'm following a tutorial on ncurses (but using C)
olausm has quit [Remote host closed the connection]
<cvitullo> sigma00: okay, i knew it had to be something weird about scope,
nemesit|znc has joined #ruby
<mozzarella> I can't find the equivalent of the "printw" function
[42] has quit [Ping timeout: 246 seconds]
<shevy> why not sprintf mozzarella
<shevy> or just %
<shevy> >> '%3s' % '1' # will become ' 1'
<eval-in_> shevy => " 1" (https://eval.in/159028)
<shevy> ah
<shevy> in curses
aspires has joined #ruby
<shevy> ruby's wrapper is basically just a 1:1 ugly wrapper over the C functions
[42] has joined #ruby
rm_ has quit [Ping timeout: 265 seconds]
<pipework> Ruby is PHP with OOP baked in not sprinkled on top.
<cvitullo> /with super unfamiliar syntax :P
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has joined #ruby
<cvitullo> colons, everywhere
<benzrf> pipework: not even closer
<benzrf> *close
<benzrf> pipework: that is like
hermanmunster has quit [Remote host closed the connection]
<benzrf> holy crap so inaccurate
saarinen has joined #ruby
hermanmunster has joined #ruby
charliesome has joined #ruby
<pipework> benzrf: You really are as easy to bait as they say.
<shevy> lol
<shevy> there is an IRC nick called closer here
x1337807x has joined #ruby
ValicekB has joined #ruby
<benzrf> >tfw
<benzrf> pipework: was that legitimately deliberate
<benzrf> to acquire my bovine
<shevy> the sad thing is that pipework is dead serious
<pipework> benzrf: Is anything ever really legitimately deliberate?
<benzrf> *ovine
<benzrf> pipework: lele
AlSquire has quit [Ping timeout: 276 seconds]
jottr has joined #ruby
zB0hs has joined #ruby
zB0hs has quit [Max SendQ exceeded]
djcp has joined #ruby
toastynerd has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nateberkopec has quit [Ping timeout: 240 seconds]
centrx has quit [Ping timeout: 240 seconds]
<shevy> sometimes benzrf uses alien language
sdrew has joined #ruby
dawkirst has quit [Remote host closed the connection]
hermanmunster has quit [Ping timeout: 260 seconds]
timgauthier has joined #ruby
<timgauthier> hey this is a semi rails thing, but with like a image_tag type deal, anyone know how to add alt text?
arrubin has quit []
<wallerdev> probably :alt => 'text'
<Sigma00> yup
<timgauthier> thats what i thought too
<shevy> aaah the beauty of tagname becoming a key of a hash
chrisja has quit [Ping timeout: 252 seconds]
<timgauthier> commas are important :P
dfinly has joined #ruby
dfinly has quit [Max SendQ exceeded]
saarinen has quit [Quit: saarinen]
toastynerd has quit [Remote host closed the connection]
toordog has quit [Ping timeout: 260 seconds]
vpretzel|1392 has quit [Read error: Connection reset by peer]
kireevco has quit [Quit: Leaving.]
Robbo` has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
sepp2k has quit [Ping timeout: 245 seconds]
anaeem1 has quit [Ping timeout: 265 seconds]
<Robbo`> is ENV shared across requests? as in if an ENV variable gets edited by one request will it be changed mid request if there is another request going causing a race condition?
predator117 has joined #ruby
vpretzel|1392 has joined #ruby
bradhe has joined #ruby
<shevy> I think ENVs are not shared by default
SCommette has joined #ruby
saarinen has joined #ruby
<Robbo`> okay I hope so
<Robbo`> otherwise some weird shit is going to happen lol
saarinen has quit [Client Quit]
silkfox has joined #ruby
mikecmpbll has quit [Quit: ciao.]
<cvitullo> so what's the deal with putting : in front of variables sometimes?
<shevy> cvitullo no, that is a symbol, not a variable
lewix has joined #ruby
<shevy> >> :foo.class
<eval-in_> shevy => Symbol (https://eval.in/159029)
<pipework> It's shared like any constant, I think.
jheg has quit [Quit: jheg]
<shevy> see that you can not assign to it cvitullo:
<shevy> >> :foo = 'abc'
<eval-in_> shevy => /tmp/execpad-cc029d0e355e/source-cc029d0e355e:2: syntax error, unexpected '=', expecting keyword_end ... (https://eval.in/159030)
Fractals has joined #ruby
<shevy> >> foo = 'abc'
<eval-in_> shevy => "abc" (https://eval.in/159031)
kireevco has joined #ruby
predator217 has quit [Ping timeout: 255 seconds]
<timgauthier> :foo == 'ab' + 'c'
<timgauthier> wait
<timgauthier> >> :foo == 'ab' + 'c'
<eval-in_> timgauthier => false (https://eval.in/159032)
Fractals has left #ruby ["part"]
<timgauthier> >> :foo = 'ab' + 'c'
<eval-in_> timgauthier => /tmp/execpad-dc534b31b23f/source-dc534b31b23f:2: syntax error, unexpected '=', expecting keyword_end ... (https://eval.in/159033)
<timgauthier> >> :foo => 'ab' + 'c'
<eval-in_> timgauthier => /tmp/execpad-d28021e84987/source-d28021e84987:2: syntax error, unexpected =>, expecting keyword_end ... (https://eval.in/159034)
<timgauthier> fun
newUser1234 has joined #ruby
<timgauthier> breaking the hash bra
<cvitullo> hm
<pipework> { :foo => 'ab' + 'c'}
<pipework> >> { :foo => 'ab' + 'c'}
<eval-in_> pipework => {:foo=>"abc"} (https://eval.in/159035)
<pipework> Hash bras sound like a great product idea.
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
<timgauthier> how does the product differ from hash browns, and what value does it bring to the market?
<cvitullo> you can get stoned and see boobies at the same time
<timgauthier> woah duuuude
<pipework> timgauthier: I think it's more socially acceptable to have a hash bra than a hash brown.
klaut has quit [Remote host closed the connection]
<timgauthier> heh
Squarepy has quit [Quit: Leaving]
<timgauthier> aparently i don't even know css :|
<timgauthier> or how to spell englisch
Bosox20051 has quit [Ping timeout: 245 seconds]
testcore has quit [Ping timeout: 272 seconds]
Channel6 has joined #ruby
<shevy> that is ok
<shevy> you will be transformed into denglisch
<timgauthier> i'm on my way man
<shevy> just watch terminator I, "I'll be back." with a styrian (austrian) accent
saarinen has joined #ruby
saarinen has quit [Client Quit]
<timgauthier> haha
mercwithamouth has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<timgauthier> I AM NOT AN IDJIOT!, I just put an extra space
nowthatsamatt has joined #ruby
cpruitt has quit [Quit: cpruitt]
<timgauthier> so maybe i still am an idjiot.. oh vell
Bosox20051 has joined #ruby
bamdad has quit [Quit: bamdad]
jottr has quit [Ping timeout: 252 seconds]
nowthatsamatt has quit [Client Quit]
dc has joined #ruby
george2 has quit [Remote host closed the connection]
danman has quit [Quit: danman]
charliesome has joined #ruby
<timgauthier> heh. boobies
kilk_ has quit [Ping timeout: 264 seconds]
agarie has joined #ruby
<shevy> wtf
<shevy> where
<timgauthier> that was the word sitting right above sublime text...
yetanotherdave has quit [Quit: Lost terminal]
<shevy> By the way, I think you misspelled the word "idiot".
<shevy> sublime text runs boobies?
<timgauthier> ( o )( o )
<shevy> I am annoying that bluefish 1.0.7 is not minimal enough
<shevy> and that I can not extend it with ruby code
<timgauthier> why not greenfish?
<timgauthier> less colour information loss at a compressed colour space.
hermanmunster has joined #ruby
katlogic has quit [Ping timeout: 252 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
omosoj has joined #ruby
snath has quit [Ping timeout: 276 seconds]
omosoj has joined #ruby
omosoj has quit [Read error: Connection reset by peer]
katlogic has joined #ruby
<shevy> not sure why the author picked that name
<timgauthier> i c
SCommette has quit [Quit: SCommette]
<timgauthier> is this what you are learning instead of switf
<timgauthier> i mean rails
dilated_dinosaur has quit [Ping timeout: 245 seconds]
dc has quit [Remote host closed the connection]
<shevy> not really
lyuzashi has joined #ruby
<shevy> I still can not will myself to want to learn rails :(
<timgauthier> thewn dont
<shevy> it is either ... rails ... C ... or java
calc has joined #ruby
<timgauthier> don't bother with java
<timgauthier> c lets you do the most
<panga> is the point of rails 'use ruby for server language'
calc has quit [Client Quit]
<panga> i quite don't get 'web framework' means
dilated_dinosaur has joined #ruby
ericmathison has joined #ruby
timonv has joined #ruby
SCommette has joined #ruby
SCommette has quit [Remote host closed the connection]
dc has joined #ruby
<pipework> panga: You're probably asking in the wrong channel.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> Try #rubyonrails
panga has quit [Remote host closed the connection]
<shevy> panga you can use ruby for web-related stuff without rails too
postmodern has quit [Quit: Leaving]
<timgauthier> is pipework a bot?
<shevy> rails is for building monster web apps
<shevy> yeah timgauthier
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<timgauthier> i thought so... such a canned inappropriate response :P
ponga has quit [Read error: Connection reset by peer]
<shevy> pipework basically redirects people
<shevy> all day long, 24 hours a day
michaelpjohnson has quit [Remote host closed the connection]
<timgauthier> haha
ponga has joined #ruby
ponga has quit [Changing host]
apeiros_ has joined #ruby
ponga has joined #ruby
<timgauthier> hey, what is this in haml <meta name="viewport" content="width=device-width, initial-scale=1">
<pipework> 26 hours a day, thank you.
<shevy> I can identify that
apeiros has quit [Read error: Connection reset by peer]
<pipework> timgauthier: Something that looks like rubbish, like everything else in haml.
<shevy> that is an abomination
<timgauthier> haha
<pipework> timgauthier: No but really, there's converters when you install haml.
<shevy> it actually appears like plain html
<timgauthier> yes, but how do i turn it itno rails ;)
<pipework> html2haml
<pipework> timgauthier: You add concerns. obvs.
<shevy> ohhhh
<shevy> you mean you want to transform that meta tag into haml
<timgauthier> yes
<timgauthier> %meta{content: "width=device-width, initial-scale=1", name: "viewport"}/
<pipework> timgauthier: html2haml, it's installed on your machine if you have haml installed.
testcore has joined #ruby
<shevy> surely if haml is any useful it will follow a simple scheme
GriffinHeart has joined #ruby
Atttwww has quit [Ping timeout: 252 seconds]
<timgauthier> it isn't useful... ;)
<pipework> It's eyecandy for the habitually blind.
<timgauthier> lol
<timgauthier> pipework seems new :P
<timgauthier> I don't have haml installed, but i am on a mac, and the haml seems to process in middleman just file
DrShoggoth has quit [Quit: Leaving]
timonv has quit [Ping timeout: 264 seconds]
<pipework> timgauthier: I've been around for years.
<timgauthier> nope, you havn't annoyed me before :P
<pipework> Unfortunately I haven't moved on to something interesting.
milkohol has joined #ruby
<timgauthier> okay, fixed that issue
snath has joined #ruby
Wolland has quit [Remote host closed the connection]
chipotle has quit [Quit: cya]
ponga has quit [Ping timeout: 264 seconds]
Wolland has joined #ruby
<timgauthier> i am going to abuse a plate with a fork and feed myself.
GriffinHeart has quit [Ping timeout: 252 seconds]
<pipework> Don't fuck up.
djbkd has quit [Remote host closed the connection]
<shevy> he should be fine
<shevy> he is in canada
<timgauthier> HOW IS HE NOT IGNORED! >:{
dvabr has quit [Ping timeout: 240 seconds]
<shevy> ignoring takes effort
<shevy> I just want to idle in peace
<timgauthier> haha
yubrew has joined #ruby
<shevy> timgauthier my dream is to watch an IRC conversation between RubyPanther and pipework
<pipework> shevy and I are chums.
bradhe has quit [Remote host closed the connection]
<shevy> the last discussion between RubyPanther and eam was a lot of fun
dvabr has joined #ruby
beneggett has joined #ruby
Wolland has quit [Ping timeout: 276 seconds]
mikepack has quit [Remote host closed the connection]
djbkd has joined #ruby
bean__ has joined #ruby
bean__ has quit [Client Quit]
kaleido has quit [Ping timeout: 260 seconds]
yubrew has quit [Ping timeout: 240 seconds]
beneggett has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
northfurr has joined #ruby
mijicd has quit [Remote host closed the connection]
ericmathison has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
yetanotherdave has joined #ruby
mrsolo has joined #ruby
lmickh has quit [Remote host closed the connection]
ericmathison has joined #ruby
coderhs has quit [Quit: Leaving]
mrsolo has quit [Read error: Connection reset by peer]
mrsolo has joined #ruby
sdwrage has quit [Ping timeout: 252 seconds]
xanandu has quit [Quit: leaving]
danman has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
TDJACR has quit [Ping timeout: 265 seconds]
lethe has joined #ruby
Azulinho has quit [Ping timeout: 240 seconds]
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kevind has quit [Quit: kevind]
leyluj has quit [Ping timeout: 260 seconds]
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
ffranz has quit [Ping timeout: 264 seconds]
rm_ has joined #ruby
charliesome has joined #ruby
danman has quit [Client Quit]
kireevco1 has joined #ruby
kireevco1 has quit [Read error: Connection reset by peer]
kireevco1 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stantona_ has quit [Remote host closed the connection]
beneggett has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
beneggett has quit [Client Quit]
stantona has joined #ruby
lethe has quit [Ping timeout: 276 seconds]
<RubyPanther> shevy: You're just hoping for a free slice of pizza
nateberkopec has joined #ruby
<pipework> ^
<shevy> :(
Soliah has quit [Quit: Soliah]
hamakn_ has quit [Remote host closed the connection]