havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
roamingdog has joined #ruby
ryann has quit [Remote host closed the connection]
arescorpio has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
roamingd_ has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
jas02 has joined #ruby
Pupeno has quit [Ping timeout: 250 seconds]
flashpoint9 has quit [Remote host closed the connection]
madgen has quit [Ping timeout: 260 seconds]
startupality has quit [Quit: startupality]
jphase has quit [Remote host closed the connection]
<maletor3> getting into ruby folds. how does this look? https://gist.github.com/maletor/ef903a286877846a2ab78f78ad4fc175
mooe has joined #ruby
jphase has joined #ruby
blackgoat has quit [Read error: Connection reset by peer]
jas02 has quit [Ping timeout: 240 seconds]
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackgoat has joined #ruby
magikid has joined #ruby
druonysus has quit [Remote host closed the connection]
UserInNeed has quit [Ping timeout: 258 seconds]
Rickmasta has quit [Ping timeout: 258 seconds]
Spami_ has quit [Quit: This computer has gone to sleep]
certainty has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
David_H_Smith has joined #ruby
UserInNeed has joined #ruby
ta_ has quit [Ping timeout: 272 seconds]
David_H_Smith has quit [Remote host closed the connection]
rkazak has joined #ruby
David_H_Smith has joined #ruby
mleung has quit [Quit: mleung]
jenrzzz has quit [Ping timeout: 252 seconds]
Rickmasta has joined #ruby
hahuang65 has joined #ruby
allcentury has joined #ruby
janebootydoe has joined #ruby
certainty has quit [Ping timeout: 244 seconds]
symm- has quit [Ping timeout: 246 seconds]
mwlang has joined #ruby
rcvalle has quit [Quit: rcvalle]
SilverKey has joined #ruby
lightt has joined #ruby
mattwashere has joined #ruby
skolman_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
flashpoint9 has joined #ruby
JesseH has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
mattwashere has quit [Ping timeout: 260 seconds]
roamingd_ has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 260 seconds]
frem_ has quit [Quit: Connection closed for inactivity]
whathappens has quit [Remote host closed the connection]
gregf has joined #ruby
whathappens has joined #ruby
duckpuppy has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
freerobby has quit [Quit: Leaving.]
VeryBewitching has quit [Quit: Konversation terminated!]
c0mrad3 has quit [Quit: Connection closed for inactivity]
whathappens has quit [Ping timeout: 272 seconds]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
duckpuppy has quit [Ping timeout: 244 seconds]
martee has quit [Quit: martee]
dtoast has quit [Quit: Textual IRC Client: www.textualapp.com]
nankyokusei has joined #ruby
roundabout22 has joined #ruby
SilverKey has quit [Quit: Halted.]
rkazak has quit [Quit: Sleep.....ing....]
janebootydoe has quit [Quit: Leaving]
martee has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
<shevy> looks quite heavy
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lightt has quit [Read error: Connection reset by peer]
lightt has joined #ruby
lightt has quit [Read error: Connection reset by peer]
SilverKey has joined #ruby
marr has quit [Ping timeout: 260 seconds]
whathappens has joined #ruby
sneakerhax has quit [Ping timeout: 258 seconds]
whathapp_ has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
Ropeney has joined #ruby
jphase has quit [Remote host closed the connection]
magikid has quit [Quit: Leaving.]
whathappens has quit [Ping timeout: 264 seconds]
fedexo has joined #ruby
jas02 has joined #ruby
jas02 has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
e4xit_ has joined #ruby
jphase has joined #ruby
e4xit has quit [Ping timeout: 276 seconds]
e4xit_ is now known as e4xit
skweek has joined #ruby
webnanners has joined #ruby
grassass has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
certainty has joined #ruby
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
SilverKey has quit [Quit: Halted.]
Mia has quit [Read error: Connection reset by peer]
certainty has quit [Ping timeout: 252 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hiennaj has joined #ruby
Vingador has joined #ruby
lightt has joined #ruby
roamingdog has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
Asher has joined #ruby
Vingador has quit [Client Quit]
Vingador has joined #ruby
Vingador has quit [Client Quit]
Vingador has joined #ruby
hutch34_ has joined #ruby
arooni has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beilabs has joined #ruby
maletor3 has quit [Ping timeout: 276 seconds]
dgynn has quit [Quit: dgynn]
tildes_ has quit [Ping timeout: 276 seconds]
cd83x has joined #ruby
gtsai has joined #ruby
duckpuppy has joined #ruby
martee has quit [Quit: martee]
jaguarmagenta has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
tmtwd has joined #ruby
twistedpixels has quit [Quit: ZNC - http://znc.in]
Yiota has joined #ruby
twistedpixels has joined #ruby
twistedpixels has quit [Changing host]
twistedpixels has joined #ruby
ryan_notabot has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
ryan_notabot has quit [Client Quit]
ryan_notabot has joined #ruby
cd83x has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 260 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whathapp_ has quit [Remote host closed the connection]
whathappens has joined #ruby
skweek has quit [Ping timeout: 276 seconds]
twistedpixels has quit [Quit: ZNC - http://znc.in]
twistedpixels has joined #ruby
twistedpixels has joined #ruby
twistedpixels has quit [Changing host]
jas02 has joined #ruby
renderfu_ has quit [Ping timeout: 240 seconds]
whathappens has quit [Ping timeout: 260 seconds]
blackjid has quit [Max SendQ exceeded]
Yiota has joined #ruby
blackjid has joined #ruby
dtoast has joined #ruby
dtoast has quit [Client Quit]
blackjid has quit [Max SendQ exceeded]
jas02 has quit [Ping timeout: 264 seconds]
renderful has joined #ruby
blackjid has joined #ruby
beilabs has quit [Remote host closed the connection]
lacuna has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackjid has quit [Max SendQ exceeded]
Pupeno has joined #ruby
grassass has joined #ruby
noobsu has joined #ruby
coffeecupp has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
ryan_notabot has quit [Quit: Leaving]
yfeldblum has joined #ruby
blackjid has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
elifoster has joined #ruby
noobsu has quit [Ping timeout: 244 seconds]
lightt has quit [Remote host closed the connection]
blackjid has quit [Max SendQ exceeded]
Pupeno has quit [Ping timeout: 250 seconds]
<jphase> it seems my "rails g controller welcome index" command just hangs after creating a new project and trying to add "gem 'foundation-rails'" to my Gemfile and running bundle. Anyone know what I could be doing wrong?
blackjid has joined #ruby
blaxter has joined #ruby
blackjid has quit [Max SendQ exceeded]
Coldblackice has quit [Ping timeout: 260 seconds]
c355e3b has quit [Quit: Connection closed for inactivity]
flopsec has quit [Remote host closed the connection]
alxgsv has quit [Remote host closed the connection]
Guest20497 has quit [Remote host closed the connection]
illusionmedic has quit [Remote host closed the connection]
mwlang has quit [Quit: mwlang]
beilabs has joined #ruby
mwlang has joined #ruby
blackjid has joined #ruby
agent_white has joined #ruby
mwlang has quit [Client Quit]
blackjid has quit [Max SendQ exceeded]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lightt has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
<agent_white> Evenin'
blackjid has joined #ruby
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
blackjid has quit [Max SendQ exceeded]
certainty has joined #ruby
tmtwd has quit [Quit: Leaving]
beilabs has quit [Remote host closed the connection]
Corrosive_ has joined #ruby
certainty has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 260 seconds]
CorOne has quit [Ping timeout: 252 seconds]
BigRonnieRon has quit [Quit: Textual IRC Client: www.textualapp.com]
lightt has quit [Ping timeout: 272 seconds]
wazzat has joined #ruby
cd83x has joined #ruby
p0p0pr37_ has joined #ruby
jphase has quit [Remote host closed the connection]
jottr_ has joined #ruby
p0p0pr37 has quit [Ping timeout: 244 seconds]
p0p0pr37_ is now known as p0p0pr37
wazzat has quit [Ping timeout: 260 seconds]
cd83x has quit [Ping timeout: 252 seconds]
Yiota has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
gtsai has quit [Ping timeout: 252 seconds]
Yiota has quit [Max SendQ exceeded]
jancel has joined #ruby
chouhoul_ has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
Yiota has joined #ruby
aupadhye has joined #ruby
ponga has quit []
chouhoulis has quit [Ping timeout: 240 seconds]
Yiota has quit [Client Quit]
chouhoul_ has quit [Ping timeout: 246 seconds]
nankyokusei has joined #ruby
Zighuatl has joined #ruby
jas02 has joined #ruby
Zighuatl has quit [Client Quit]
Zighuatl has joined #ruby
Zighuatl has left #ruby [#ruby]
Zighuatl has joined #ruby
Zighuatl has quit [Client Quit]
Zighuatl has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
Zighuatl has quit [Client Quit]
mattwashere has joined #ruby
jerematic has quit [Remote host closed the connection]
jas02 has quit [Ping timeout: 260 seconds]
Yiota has joined #ruby
chip__ has joined #ruby
postmodern has quit [Ping timeout: 250 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
Es0teric has joined #ruby
Zighuatl has joined #ruby
fedexo has quit [Ping timeout: 272 seconds]
harai has joined #ruby
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
mattwashere has quit [Remote host closed the connection]
palms has quit [Ping timeout: 252 seconds]
yqt has quit [Ping timeout: 240 seconds]
lightt has joined #ruby
gtsai has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
postmodern has joined #ruby
braincrash has quit [Quit: bye bye]
devbug has joined #ruby
fedexo has joined #ruby
RobertBirnie has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami_ has joined #ruby
hutch34_ has quit [Ping timeout: 244 seconds]
RobertBirnie has quit [Client Quit]
ta_ has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
ryann has joined #ruby
cpup has joined #ruby
adgtl has quit [Changing host]
adgtl has joined #ruby
adgtl has joined #ruby
adgtl has quit [Changing host]
braincrash has joined #ruby
Sammichmaker has quit [Quit: Leaving]
certainty has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
SilverKey has joined #ruby
k3rn31 has joined #ruby
zel has joined #ruby
flopsec has joined #ruby
zel is now known as Guest38568
certainty has quit [Ping timeout: 240 seconds]
SilverKey has quit [Client Quit]
cd83x has joined #ruby
nando293921 has quit [Ping timeout: 258 seconds]
Noxilex has joined #ruby
Yiota has joined #ruby
maletor3 has joined #ruby
cd83x has quit [Ping timeout: 250 seconds]
k3rn31 has quit [Quit: Computer has gone to sleep.]
cpup has quit [Ping timeout: 276 seconds]
nando293921 has joined #ruby
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
solocshaw has quit [Ping timeout: 250 seconds]
cpup has joined #ruby
maletor3 has quit [Ping timeout: 244 seconds]
nando293921 has quit [Read error: Connection reset by peer]
nando293921 has joined #ruby
duncannz has joined #ruby
romistrub_ has quit [Ping timeout: 250 seconds]
jancel has quit [Remote host closed the connection]
duckpuppy has joined #ruby
jaguarmagenta has joined #ruby
davep3rrett has joined #ruby
jas02 has joined #ruby
duckpuppy has quit [Ping timeout: 246 seconds]
davedev24 has quit []
Es0teric has joined #ruby
jaguarmagenta has quit [Ping timeout: 252 seconds]
alxgsv has joined #ruby
jas02 has quit [Ping timeout: 244 seconds]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
illusionmedic has joined #ruby
Dimik has joined #ruby
darkxploit has quit [Ping timeout: 240 seconds]
gix has quit [Ping timeout: 246 seconds]
CamCam2 has quit [Quit: CamCam2]
d0nn1e has quit [Ping timeout: 272 seconds]
jerematic has joined #ruby
nando293921 has quit [Ping timeout: 244 seconds]
hiennaj has quit [Ping timeout: 260 seconds]
d0nn1e has joined #ruby
gix has joined #ruby
lightt has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
jerematic has quit [Ping timeout: 240 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
mattwashere has joined #ruby
mattwashere has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
Pupeno has joined #ruby
darkxploit has joined #ruby
mattwashere has joined #ruby
darkxploit has quit [Max SendQ exceeded]
wazzat has joined #ruby
k3rn31 has joined #ruby
lightt has joined #ruby
Pupeno has quit [Ping timeout: 250 seconds]
hutch34_ has joined #ruby
darkxploit has joined #ruby
jetpackjoe has joined #ruby
jetpackjoe has quit [Client Quit]
darkxploit has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
onechr has joined #ruby
onechr has quit [Client Quit]
jenrzzz has joined #ruby
cyfr0n has quit [Ping timeout: 240 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
harai has quit [Quit: WeeChat 1.5]
darkxploit has joined #ruby
roamingdog has quit []
darkxploit has quit [Max SendQ exceeded]
wazzat has quit [Quit: Textual IRC Client: www.textualapp.com]
zapata has quit [Quit: WeeChat 1.5]
wazzat has joined #ruby
certainty has joined #ruby
cd83x has joined #ruby
ElFerna has joined #ruby
mattwashere has quit [Remote host closed the connection]
zapata has joined #ruby
devbug_ has joined #ruby
certainty has quit [Ping timeout: 250 seconds]
cd83x has quit [Ping timeout: 240 seconds]
devbug has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
jetpackjoe has joined #ruby
yfeldblum has joined #ruby
sid_fules has joined #ruby
pkrnj has joined #ruby
ensyde has joined #ruby
davep3rrett has quit [Quit: leaving]
ElFerna has quit [Quit: Leaving]
maletor3 has joined #ruby
aguynamedben has quit [K-Lined]
tpendragon has quit [K-Lined]
sid_fules has quit [Ping timeout: 260 seconds]
jottr_ has joined #ruby
maletor3 has quit [Ping timeout: 244 seconds]
jas02 has joined #ruby
ElFerna has joined #ruby
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
ElFerna has quit []
darkxploit has joined #ruby
ElFerna has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
jas02 has quit [Ping timeout: 264 seconds]
darkxploit has quit [Max SendQ exceeded]
darkxploit has joined #ruby
dgynn has joined #ruby
Vingador has quit [Remote host closed the connection]
darkxploit has quit [Max SendQ exceeded]
nankyokusei has joined #ruby
LoneHerm_ has joined #ruby
darkxploit has joined #ruby
lightt has quit [Remote host closed the connection]
arooni has joined #ruby
emilkarl has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
darkxploit has quit [Max SendQ exceeded]
noobsu has joined #ruby
darkxploit has joined #ruby
arif__ has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
<arif__> how can i use case insensitivity in string.delete()?
darkxploit has quit [Max SendQ exceeded]
<Radar> arif__: use a regular expression
<Radar> >> "HELLO WORLD".gsub(/hello/i, "hi")
<ruby[bot]> Radar: # => "hi WORLD" (https://eval.in/582316)
noobsu has quit [Ping timeout: 244 seconds]
darkxploit has joined #ruby
wazzat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkxploit has quit [Max SendQ exceeded]
wazzat has joined #ruby
ElFerna has quit [Ping timeout: 244 seconds]
<arif__> thanks! i'm trying to insert consonants inside / / but it doesn't seem to work
<arif__> "Chicken Nuggets".gsub(/^aeiou/i, "")
<arif__> for instance, here i want to delete all uppercase and lowercase consonants from "Chicken Nuggets"
hutch34_ has quit [Ping timeout: 240 seconds]
<arif__> maybe i'm being thick
darkxploit has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
tpendragon has joined #ruby
wazzat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aguynamedben has joined #ruby
kareeoleez has joined #ruby
aguynamedben has quit [K-Lined]
tpendragon has quit [K-Lined]
<arif__> anyone?
grassass has quit [Read error: Connection reset by peer]
ishe_ua has joined #ruby
<Radar> >> "Chicken Nuggets".gsub(/^aeiou/i, "")
gtsai has quit [Read error: Connection reset by peer]
<ruby[bot]> Radar: # => "Chicken Nuggets" (https://eval.in/582317)
ksmutthu has quit [Ping timeout: 240 seconds]
Spami has joined #ruby
darkxploit has quit [Read error: Connection reset by peer]
<Radar> arif__: that checks for the characters aeiou at the beginning of that string
<Radar> >> "Chicken Nuggets".gsub(/[^aeiou]/i, "")
<ruby[bot]> Radar: # => "ieue" (https://eval.in/582318)
Spami_ has quit [Read error: Connection reset by peer]
<Radar> That might be what you're after
czerasz has joined #ruby
<arif__> thanks a ton! also, is it possible to get the same result using the .delete method?
<Radar> [14:53:06] <Radar>arif__: use a regular expression
pawnbox has quit [Remote host closed the connection]
<arif__> got it. thanks
pawnbox has joined #ruby
cd83x has joined #ruby
tildes_ has joined #ruby
Devalo has joined #ruby
wazzat has joined #ruby
Noxilex has quit [Ping timeout: 276 seconds]
arif__ has quit [Quit: Page closed]
emilkarl is now known as emilkarl[away]
emilkarl[away] has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cd83x has quit [Ping timeout: 250 seconds]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
certainty has joined #ruby
karmatr0n has quit [Ping timeout: 258 seconds]
emilkarl has joined #ruby
dionysus69 has joined #ruby
certainty has quit [Ping timeout: 276 seconds]
darkxploit has joined #ruby
dtoast has joined #ruby
johnmilton has quit [Ping timeout: 258 seconds]
kareeoleez has quit [Remote host closed the connection]
jas02 has joined #ruby
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
sauvin has joined #ruby
maletor3 has joined #ruby
Kraken_ has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
jas02 has quit [Ping timeout: 240 seconds]
maletor3 has quit [Ping timeout: 240 seconds]
aguynamedben has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
aguynamedben has quit [K-Lined]
kgrz has joined #ruby
jas02 has joined #ruby
duckpuppy has joined #ruby
jaguarmagenta has joined #ruby
grassass has joined #ruby
alexio has quit [Quit: Bye]
duckpuppy has quit [Ping timeout: 258 seconds]
jaguarmagenta has quit [Ping timeout: 252 seconds]
ksmutthu has joined #ruby
craigp has joined #ruby
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
jaguarmagenta has joined #ruby
tomphp has joined #ruby
jetpackjoe has quit [Quit: jetpackjoe]
wazzat has quit [Quit: Textual IRC Client: www.textualapp.com]
wazzat has joined #ruby
ddffg has joined #ruby
pawnbox has joined #ruby
czerasz has quit [Quit: Ex-Chat]
jerematic has joined #ruby
hellcode has joined #ruby
darkxploit has quit [Ping timeout: 276 seconds]
jerematic has quit [Ping timeout: 260 seconds]
Macaveli has joined #ruby
fedexo has quit [Ping timeout: 258 seconds]
bmorrison has quit [Quit: bmorrison]
pawnbox has quit [Remote host closed the connection]
noobsu has joined #ruby
pawnbox has joined #ruby
hellcode has quit [Quit: leaving]
codecop has joined #ruby
n1x-nz has joined #ruby
cd83x has joined #ruby
fenre has joined #ruby
kraken has joined #ruby
kraken is now known as kraken_
<kraken_> What's the point of a Struct when I could just use a hash? Are there any advantages?
fenre has quit [Remote host closed the connection]
fenre has joined #ruby
tpendragon has joined #ruby
aguynamedben has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aguynamedben has quit [K-Lined]
tpendragon has quit [K-Lined]
ur5us has quit [Remote host closed the connection]
darkxploit has joined #ruby
cd83x has quit [Ping timeout: 252 seconds]
certainty has joined #ruby
Devalo has quit [Remote host closed the connection]
scepticulous has joined #ruby
Parko has quit [Quit: In a while, crocodile]
wazzat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeoleez has joined #ruby
aufi has joined #ruby
andikr has joined #ruby
amclain has quit [Quit: Leaving]
skweek has joined #ruby
sid_fules has joined #ruby
neanderslob has quit [Ping timeout: 246 seconds]
tildes_ has quit [Ping timeout: 260 seconds]
maletor3 has joined #ruby
sid_fules has quit [Ping timeout: 260 seconds]
freija_ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr_ has joined #ruby
arif__ has joined #ruby
maletor3 has quit [Ping timeout: 244 seconds]
neanderslob has joined #ruby
<arif__> i'm trying to access the variable 'name' outside the loop? is there an alternative way of doing it other than initializing the variable at the very beginning?
simplon has joined #ruby
CausaMortis has joined #ruby
<apeiros> arif__: not with this kind of loop
simplon has quit [Client Quit]
<apeiros> and this kind of variable
jottr_ has quit [Ping timeout: 240 seconds]
<arif__> could you please give an example what kind of loop/variable that'd work with?
ensyde has quit [Ping timeout: 264 seconds]
<apeiros> while/until loops don't use a block argument and thus don't introduce a new scope for local variables
<dtoast> quick, timezones.
<apeiros> as for other variable types: please learn ruby for those. a quick explanation won't do.
<arif__> but while/until loops check for the condition at the beginning of the loop and won't work in this case
<apeiros> of course it will work. you just have to arrange your code accordingly.
elifoster has quit [Quit: sleep]
Spami_ has joined #ruby
Spami has quit [Read error: Connection reset by peer]
blackjid has joined #ruby
<arif__> i'm confused. i'd be more than glad if you could kindly rearrange this particular code using while or any other loop that doesn't use a block argument
aguynamedben has joined #ruby
aguynamedben has quit [K-Lined]
blackjid has quit [K-Lined]
yfeldblu_ has joined #ruby
<apeiros> valid = false; until valid; …
coffeecupp has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
ur5us has joined #ruby
* apeiros afk for ~10min
arooni has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arif__ has quit [Quit: Page closed]
karmatr0n has joined #ruby
coffeecupp has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
ur5us has quit [Ping timeout: 264 seconds]
karmatr0n has quit [Ping timeout: 276 seconds]
jaguarmagenta has quit [Remote host closed the connection]
ta_ has joined #ruby
dgynn has quit [Quit: dgynn]
djbkd has joined #ruby
kareeole_ has joined #ruby
kareeole_ is now known as kareeoleez_
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kareeoleez_ is now known as kareeoleez__
kareeoleez has quit [Disconnected by services]
kareeoleez__ is now known as kareeoleez
k3rn31 has quit [Quit: Computer has gone to sleep.]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
cd83x has joined #ruby
jerematic has joined #ruby
TomyWork has joined #ruby
Madplatypus has joined #ruby
shinnya has quit [Ping timeout: 264 seconds]
CloCkWeRX has joined #ruby
cd83x has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
jerematic has quit [Ping timeout: 264 seconds]
terlar has joined #ruby
Couch has joined #ruby
Es0teric has joined #ruby
noobsu has quit [Ping timeout: 244 seconds]
tpendragon has joined #ruby
norc_ has joined #ruby
aguynamedben has joined #ruby
blackjid has joined #ruby
Macaveli_ has joined #ruby
noobsu has joined #ruby
darkxploit has quit [Ping timeout: 258 seconds]
kraken_ has quit [Quit: Leaving]
pepee has quit [Quit: bye $IRC]
Macaveli has quit [Ping timeout: 276 seconds]
coffeecupp has quit [Ping timeout: 272 seconds]
last_staff has quit [Remote host closed the connection]
last_staff has joined #ruby
<adaedra> Moin
mdw has joined #ruby
mdw_ has joined #ruby
maletor3 has joined #ruby
Xentil has joined #ruby
dtoast has quit [Quit: Textual IRC Client: www.textualapp.com]
darkxploit has joined #ruby
dtoast has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
beilabs has joined #ruby
mdw has quit [Ping timeout: 246 seconds]
AlexRussia has quit [Ping timeout: 276 seconds]
blackgoat has quit [Quit: WeeChat 1.5]
CausaMortis has quit [Quit: WeeChat 1.4]
saneax_AFK is now known as saneax
coffeecupp has joined #ruby
maletor3 has quit [Ping timeout: 244 seconds]
duckpuppy has joined #ruby
mark_66 has joined #ruby
iamvery has quit [Ping timeout: 252 seconds]
fclausen has quit [Quit: leaving]
<apeiros> moin adaedra
noobsu has quit [Read error: No route to host]
duckpuppy has quit [Ping timeout: 264 seconds]
<norc_> o7
sid_fules has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
blackgoat has joined #ruby
jaruga___ has joined #ruby
jaruga___ has quit [Read error: Connection reset by peer]
jaruga___ has joined #ruby
watersoul has quit [Remote host closed the connection]
karmatr0n has joined #ruby
harai has joined #ruby
norc_ is now known as norc
duncannz has joined #ruby
iamvery has joined #ruby
karmatr0n has quit [Ping timeout: 250 seconds]
djbkd has quit []
arif__ has joined #ruby
watersoul has joined #ruby
jas02 has quit [Quit: jas02]
<arif__> is there a way to whitelist characters from regex?
cd83x has joined #ruby
sepp2k has joined #ruby
<arif__> for instance, i'm using /[^a-z]/i to make sure that a string contains only alphabets
<arif__> here, i'd like to whitelist \s so the string can be of multiple words
<apeiros> arif__: add it to the character class
<apeiros> i.e. [^a-z\s]
aphprentice has quit [Remote host closed the connection]
jmhmccr has quit [Remote host closed the connection]
Majost has quit [Remote host closed the connection]
chorgi has quit [Remote host closed the connection]
digitalfiz has quit [Remote host closed the connection]
grvgr has quit [Remote host closed the connection]
jhill has quit [Remote host closed the connection]
hayden__ has quit [Remote host closed the connection]
ckrailo has quit [Remote host closed the connection]
mitsuhiko has quit [Remote host closed the connection]
err_ok has quit [Remote host closed the connection]
Hates_ has quit [Remote host closed the connection]
shadowshell has quit [Remote host closed the connection]
vcoinminer has quit [Remote host closed the connection]
incomprehensibly has quit [Remote host closed the connection]
jpinnix_______ has quit [Remote host closed the connection]
acalewin has quit [Remote host closed the connection]
angiebadillo has quit [Remote host closed the connection]
deeprave has quit [Remote host closed the connection]
ketherah has quit [Remote host closed the connection]
deepak has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
swgillespie has quit [Remote host closed the connection]
jimcroft has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
mroth has quit [Remote host closed the connection]
knowtheory has quit [Remote host closed the connection]
ijij_ has quit [Remote host closed the connection]
ELLIOTTCABLE has quit [Remote host closed the connection]
rflot has quit [Remote host closed the connection]
braderhart has quit [Remote host closed the connection]
dukedave has quit [Remote host closed the connection]
jcp has quit [Remote host closed the connection]
domgetter has joined #ruby
<apeiros> ([…] in a regex is called "character class", and it's unrelated to classes in OO)
<apeiros> also note that a-z will break for anything international
<apeiros> \p{L} is better for that
Mia has quit [Read error: Connection reset by peer]
zacsek has joined #ruby
<domgetter> I only parse strings that speak American!
<apeiros> and given your usecase, I don't think you want \s, you want just a space.
cd83x has quit [Ping timeout: 260 seconds]
<apeiros> domgetter: since spanish is the majority in america, you'd still fail :-p
jerematic has joined #ruby
arif__ has quit [Quit: Page closed]
ocbtec has joined #ruby
wnd has quit [Ping timeout: 276 seconds]
wnd has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
jerematic has quit [Ping timeout: 252 seconds]
harai54 has joined #ruby
arif__ has joined #ruby
<arif__> soo regarding my last question, i did some googling and settled with /[^\p{L} ]/i
<arif__> would this work now?
harai has quit [Ping timeout: 244 seconds]
<arif__> or can it be improved further?
<arif__> and how do you even reply to someone on this chat?
<apeiros> "would this work" - fire up irb (or better yet, install pry and fire up pry), and just test it
<apeiros> and you reply to somebody by starting the line with their nick
<liri> hi apeiros
<apeiros> conventionally you'll only do that in your initial reply. further lines it's implied.
moeabdol has joined #ruby
<apeiros> liri: ah, that ominous problem from yesterday with multiple occurrences of the same module in ancestry?
<liri> yes
<apeiros> hm
pawnbox has quit [Remote host closed the connection]
<liri> isn't it peculiar, that the order in which you include module causes differences in ancestors list?
devbug_ has quit [Ping timeout: 258 seconds]
craigp has quit [Ping timeout: 246 seconds]
<apeiros> it actually makes sense
arif__ has quit [Quit: Page closed]
moeabdol1 has joined #ruby
pawnbox has joined #ruby
<apeiros> I didn't know it was possible to do it. but seems I have to update my knowledge wrt module inclusion
<liri> why having two times included the same module makes a sense ?
<liri> I had following problem
Devalo has joined #ruby
<liri> my code was structured like in the sample below, so include at the top level first, then include at class level.
<apeiros> say you have class A, and B < A, and you included M first in B, then in A
<liri> it caused, that ancestors list was in following order: A, Object, M, PP::ObjectMixin, Kernel, BasicObject]
<apeiros> if a method of A relies on a method of M, it would not be possible
<liri> and then I required active_record.
<liri> which modified Object, and caused that method try in M was shadowed by method try in Object, patched by active_record.
<apeiros> hence it makes sense that it is possible to still inject the module into A's ancestry (which of course means it'll appear a second time in B's ancestry)
moeabdol has quit [Ping timeout: 276 seconds]
<apeiros> well, welcome to the world of why it's bad to patch core classes
<liri> yes, but talking about your sample.
<norc> apeiros: oh but patching core classes is useful. Especially if you mount method_missing everywhere.
* norc smiles
Devalo has quit [Ping timeout: 250 seconds]
<liri> having class A, and B < A, where both A and B include M, B.ancestors shows: [B, A, M, Object, PP::ObjectMixin, Kernel, BasicObject]
<apeiros> norc: useful isn't congruent with good ;-)
<liri> shouldnt it be [B, M, A, M, Object, PP::ObjectMixin, Kernel, BasicObject]
<liri> Or M can't be duplicated in ancestos list then, [B, M, A, Object, PP::ObjectMixin, Kernel, BasicObject]
beilabs has quit [Remote host closed the connection]
<norc> liri: The method name is a bit bad. What it really returns is the order in which Ruby looks your methods up.
<liri> so if module M is included in B, shouldnt lookup be B, M , A ....
<apeiros> liri: as we've learnt: not necessarily. it depends on the order you included M
<liri> instead of B, A, M ...
<apeiros> i.e. B, M, A, M -> included M in B first, then in A (which seems exceptional to me)
<apeiros> and B, A, M -> included in A first, including it in B after that won't matter since ruby detects M's presence in the ancestry and won't include it again, not even in a different place.
<liri> yeah it would be strange, to do it, first in sublcass and afterwards in base class.
<apeiros> there's also Module#prepend
<liri> ah, ok now I understand.
<norc> apeiros: Have you seen what prepend does under the hood?
<norc> It is downright disgusting.
<liri> yeah I know about it :) but don't want to mix it :)
<apeiros> norc: I haven't even used it yet
<norc> apeiros: It duplicates classes, injects them into the superclass chain
<apeiros> norc: more disgusting than refinements?
lightt has joined #ruby
<norc> apeiros: Don't get me started on refinements.
ddffg has quit [Quit: Leaving]
<liri> So if someone uses include at top level in some file, it is going to be messy sooner or later.
<apeiros> patching Object by any other means than refinements is by definition messy.
<norc> apeiros: See, *this* is why I want a builtin casting mechanism.
Dimik has quit [Ping timeout: 244 seconds]
<norc> apeiros: So you can just derive from Object and downcast whenever you need to.
<apeiros> what would that give you?
einarj has joined #ruby
<apeiros> you can always copy all data from any object into a blank object…
jaguarmagenta has joined #ruby
<norc> apeiros: except then you have to delegate all methods to object...
<apeiros> and you can always rebind methods. well, ok: often. I still don't get why it requires ancestry to rebind :-/
<norc> This is what inheritance solves. ;-)
yfeldblu_ has quit [Ping timeout: 250 seconds]
<apeiros> norc: so still - what does downcasting to object give you?
<norc> apeiros: not downcasting to object
<norc> (that you could only do with BasicObject)
<norc> apeiros: downcasting *from* object to your custom object class MyObject < Object
wazzat has joined #ruby
<apeiros> wouldn't that rather be "upcasting"? :)
<apeiros> well, you can do that
<norc> apeiros: nope. up-casting is casting an object to its supertype.
marr has joined #ruby
<apeiros> I wonder why we have reversed notions of the direction…
<apeiros> down -> simpler type, =~ "up" in the ancestry
<apeiros> anyway, here's your downcast:
<apeiros> class Object; def downcast(to_class); casted = to_class.allocate; instance_variables.each do |ivar| casted.instance_variable_set(ivar, instance_variable_get(ivar)) end; casted; end; end
<norc> That copies the object.
<norc> If you had meaningful information in your singleton class that would be missed.
<apeiros> if we want to be pedantic: it creates a new object and copies the contents ;-)
<apeiros> begs the question of whether that'd be good or bad
<norc> apeiros: my solution actually coerces it :D
<apeiros> after all, you do cast
sid_fule_ has joined #ruby
<apeiros> your solution is reminiscent of evil.rb :)
<norc> apeiros: my usecase is still when you have a library that returns an object of some class B that is not under your control.
sid_fules has quit [Read error: Connection reset by peer]
<norc> apeiros: I wrote it myself though.
<norc> Took me just 16 seg faults (I counted!)
<apeiros> I doubt it's a good idea to switch classes of object being instances of classes you don't control
maletor3 has joined #ruby
<apeiros> it does look cool, though :D
certainty has quit [Ping timeout: 240 seconds]
<norc> That could be a new metric for time spent to write Ruby code.
kareeole_ has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Corrosive__ has joined #ruby
<norc> apeiros: heck. looks like I should port evil.rb to Ruby 2.3 then
haxrbyte has joined #ruby
kareeole_ is now known as kareeoleez_
staticfox has quit [Disconnected by services]
staticfox` has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
lipoqil_ has joined #ruby
ELCALOR_ has joined #ruby
akitada_ has joined #ruby
meinside_ has joined #ruby
staticfox` is now known as staticfox
rc0r has quit [Ping timeout: 276 seconds]
nemish has quit [Ping timeout: 276 seconds]
lightt has quit [Remote host closed the connection]
nibbo has quit [Ping timeout: 260 seconds]
raeoks has joined #ruby
borkdude has joined #ruby
maletor3 has quit [Ping timeout: 244 seconds]
CoderPuppy has joined #ruby
webhat_ has joined #ruby
web_nanners has joined #ruby
tabakhase__ has joined #ruby
heinrich5991_ has joined #ruby
tvl has joined #ruby
dr_Poggs has joined #ruby
lucas__ has joined #ruby
<apeiros> norc: heh, why not? would get you some fame
nemish has joined #ruby
bougyman_ has joined #ruby
Sthebig_ has joined #ruby
Sthebig_ has quit [Changing host]
Sthebig_ has joined #ruby
Apocalyp- has joined #ruby
irick_ has joined #ruby
_br___ has joined #ruby
Guest38568 has quit [Ping timeout: 264 seconds]
Guest70551 has quit [Ping timeout: 264 seconds]
shortdudey123 has quit [Ping timeout: 264 seconds]
manveru has quit [Ping timeout: 264 seconds]
sepp2k has quit [Ping timeout: 264 seconds]
cpup has quit [Ping timeout: 264 seconds]
drPoggs has quit [Ping timeout: 264 seconds]
webnanners has quit [Ping timeout: 264 seconds]
tabakhase has quit [Ping timeout: 264 seconds]
heinrich5991 has quit [Ping timeout: 264 seconds]
lipoqil has quit [Ping timeout: 264 seconds]
halfdan has quit [Ping timeout: 264 seconds]
mrsolo has quit [Ping timeout: 264 seconds]
akitada has quit [Ping timeout: 264 seconds]
dr_Poggs is now known as drPoggs
St1gma has quit [Ping timeout: 264 seconds]
ELCALOR has quit [Ping timeout: 264 seconds]
chrismytton has quit [Ping timeout: 264 seconds]
bougyman has quit [Ping timeout: 264 seconds]
deweydb has quit [Ping timeout: 264 seconds]
modin has quit [Ping timeout: 264 seconds]
majoh has quit [Ping timeout: 264 seconds]
dionyziz has quit [Ping timeout: 264 seconds]
borkdude_ has quit [Quit: ZNC - http://znc.sourceforge.net]
kareeoleez has quit [Ping timeout: 264 seconds]
chip__ has quit [Ping timeout: 264 seconds]
Corrosive_ has quit [Ping timeout: 264 seconds]
haxrbyte_ has quit [Ping timeout: 264 seconds]
webhat has quit [Ping timeout: 264 seconds]
bodgix has quit [Ping timeout: 264 seconds]
camilasan has quit [Ping timeout: 264 seconds]
johnny56 has quit [Ping timeout: 264 seconds]
avelldiroll has quit [Ping timeout: 264 seconds]
jokke has quit [Ping timeout: 264 seconds]
amitchellbullard has quit [Ping timeout: 264 seconds]
irick has quit [Ping timeout: 264 seconds]
meinside has quit [Ping timeout: 264 seconds]
kaspergrubbe has quit [Ping timeout: 264 seconds]
Apocalypse has quit [Ping timeout: 264 seconds]
Sthebig has quit [Ping timeout: 264 seconds]
sash_ has quit [Ping timeout: 264 seconds]
kaspergrubbe has joined #ruby
tobiasvl has quit [Remote host closed the connection]
johnny56_ has joined #ruby
jokke has joined #ruby
dionyziz has joined #ruby
_br__ has quit [Remote host closed the connection]
sash_ has joined #ruby
bodgix has joined #ruby
axisys has quit [Remote host closed the connection]
axisys_ has joined #ruby
Sthebig_ is now known as Sthebig
shortdudey123_ has joined #ruby
Apocalyp- is now known as Apocalypse
lucas has quit [Remote host closed the connection]
tvl is now known as tobiasvl
camilasan has joined #ruby
St1gma has joined #ruby
zel has joined #ruby
sash_ has quit [Changing host]
sash_ has joined #ruby
zel has quit [Changing host]
zel has joined #ruby
plantigrade has joined #ruby
sepp2k has joined #ruby
bodgix has left #ruby [#ruby]
sash_ is now known as Guest65176
dionyziz is now known as Guest48707
chip__ has joined #ruby
zel is now known as Guest53153
mrsolo has joined #ruby
majoh has joined #ruby
nibbo has joined #ruby
shortdudey123_ is now known as shortdudey123
lipoqil_ is now known as lipoqil
postmodern has quit [Quit: Leaving]
heinrich5991_ is now known as heinrich5991
Omni_ has joined #ruby
manveru has joined #ruby
chrismytton has joined #ruby
halfdan has joined #ruby
meinside_ is now known as meinside
lacce has joined #ruby
beilabs has joined #ruby
kareeoleez_ is now known as karioleez
modin has joined #ruby
amitchellbullard has joined #ruby
rc0r has joined #ruby
rc0r is now known as Guest70615
ELCALOR_ is now known as ELCALOR
akitada_ is now known as akitada
harai54 has quit [Ping timeout: 258 seconds]
gizmore has joined #ruby
TheHodge has joined #ruby
jottr_ has joined #ruby
nankyokusei has joined #ruby
weckl has joined #ruby
[diecast] has joined #ruby
deepak has joined #ruby
digitalfiz has joined #ruby
kapowaz has joined #ruby
certainty has joined #ruby
dukedave has joined #ruby
karmatr0n has joined #ruby
jhill has joined #ruby
cd83x has joined #ruby
mroth has joined #ruby
goeast has joined #ruby
ELLIOTTCABLE has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
ckrailo has joined #ruby
Xentil has quit [Ping timeout: 244 seconds]
jpinnix_______ has joined #ruby
coffeecupp has quit [Ping timeout: 240 seconds]
jmhmccr has joined #ruby
incomprehensibly has joined #ruby
knowtheory has joined #ruby
darkxploit has quit [Ping timeout: 258 seconds]
vcoinminer has joined #ruby
deeprave has joined #ruby
joonty has joined #ruby
rflot has joined #ruby
karioleez has quit [Remote host closed the connection]
Pupeno has joined #ruby
karmatr0n has quit [Ping timeout: 276 seconds]
symm- has joined #ruby
cd83x has quit [Ping timeout: 272 seconds]
karioleez has joined #ruby
ijij_ has joined #ruby
acalewin has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
jerematic has joined #ruby
startupality has joined #ruby
err_ok has joined #ruby
infra-red has joined #ruby
coffeecupp has joined #ruby
edwinvdgraaf has joined #ruby
skolman_ has joined #ruby
jerematic has quit [Ping timeout: 260 seconds]
darkxploit has joined #ruby
craigp has joined #ruby
aphprentice has joined #ruby
liri has quit [Ping timeout: 250 seconds]
Hates_ has joined #ruby
skolman_ has quit [Ping timeout: 240 seconds]
braderhart has joined #ruby
Spami_ has quit [Read error: Connection reset by peer]
Spami_ has joined #ruby
hayden__ has joined #ruby
swgillespie has joined #ruby
angiebadillo has joined #ruby
der-landgraf has quit [Quit: WeeChat 1.5]
<shevy> I liked evil.rb
der-landgraf has joined #ruby
<shevy> I think you could shapechange from one class to another clas at runtime with it too right?
Guest70615 has quit [Changing host]
Guest70615 has joined #ruby
Guest70615 has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
certainty has joined #ruby
<gizmore> evil.rb?
<norc> Yes it did, and it even did some checks to ensure the cast was safe.
startupality has quit [Quit: startupality]
Majost has joined #ruby
jcp has joined #ruby
jimcroft has joined #ruby
agent_white has quit [Quit: Lost terminal]
sid_fule_ has quit [Read error: Connection reset by peer]
mitsuhiko has joined #ruby
grvgr has joined #ruby
shadowshell has joined #ruby
ryann has quit [Ping timeout: 246 seconds]
ketherah has joined #ruby
chorgi has joined #ruby
solocshaw has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
johnbat26 has joined #ruby
karioleez has quit [Remote host closed the connection]
sid_fules has joined #ruby
workmad3 has joined #ruby
karioleez has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
arne has joined #ruby
<arne> question, if you have an application of any kind sinatra/ror whatever, and you have several daemons running paralell
<arne> how do you let those communicate?
<norc> arne: same way you would do any kind of IPC.
<arne> that is?
<norc> arne: Sockets, Unix Domain Sockets, Pipes, Message Brokers
<arne> database as an interface is considered dirty, right?
<norc> arne: That depends!
<arne> because til' now i was pretty happy with that
<norc> arne: A database could be considered an inter-server communication tool.
tomphp has joined #ruby
<arne> im doing that in like forever, and never had problems with it
<norc> arne: What kind of information do these servers need to communicate to each other?
<arne> right now im writing a daemon with several programs that do NOT require a database connection
<arne> and they need to be controlled by a web application
bkxd has joined #ruby
<arne> and since having database tables just for communciation sounds like a stupid idea
<norc> That it does indeed.
<arne> i thougt maybe im asking here
<norc> arne: Are all these applications written in Ruby?
<arne> well what protocol do i use for IPC is there a standard
<arne> yes
maletor3 has joined #ruby
<norc> arne: The traditional solutions are: Sockets, Unix Domain Sockets and Pipes.
<arne> yeah i meant how do i format the messages
<arne> sure i could do json or something
<norc> arne: You could also use something like Drb perhaps, but I have no prior experience to tell you how much headache that might give you.
linduxed has left #ruby ["WeeChat 1.3"]
<arne> ? drb
<arne> :3
<norc> &ri DRb
<arne> but im surprised you cannot google this stuff very easily
<norc> arne: Just google for "interprocess communication ruby"
<norc> ;-)
<arne> wow dafuq is drb, that looks weird
<arne> how did i never hear of that
<norc> It is not particularly popular.
<norc> But has been around for a long while.
<arne> but it kinda feels scary
<arne> i would rather use serialized data, i think
aupadhye has quit [Ping timeout: 246 seconds]
<norc> arne: DRb handles serialization for you.
<norc> That is one of its beauties.
<arne> so it's like advanced RPC?
maletor3 has quit [Ping timeout: 252 seconds]
<norc> It is more.
<arne> i call object's methods from another server?
<norc> arne: You can even transfer objects.
<norc> arne: but yes in a nutshell.
<arne> haha, that's great, so you could write an application
<arne> that looks like all local but is distributed
joonty has quit [Quit: This computer has gone to sleep]
<arne> and with metaprogramming you could do that quite seemingly
<norc> arne: DRb stands for "distributed ruby" - now you know why.
<arne> like h4x0r.crack_those_hashes
duckpuppy has joined #ruby
<arne> and haxor could have 0..infinity servers in background
<arne> cool stuff
<norc> arne: depending on *what* you need to communicate perhaps signals might be enough.
<arne> like syscall signals?
<norc> Yes very much so.
<arne> hm, can you have payloads with them?
<arne> or is it more like "i-put-a-file-at-/tmp/' signal
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<norc> arne: well POSIX signals can carry payload...
dtoast has quit [Ping timeout: 276 seconds]
<norc> :)
joonty has joined #ruby
<arne> didn't know, i can send data with sigkill?
<arne> while being pretty useless
<norc> arne: No but with sigqueue
<norc> arne: but that is another topic. Back to your thing.
cd83x has joined #ruby
ruby-lang764 has joined #ruby
<norc> arne: another technique is message brokering with something like ACMQ
<norc> (RabbitMQ is a popular implementation)
Guest65176 is now known as sash__
<arne> norc: thanks alot
duckpuppy has quit [Ping timeout: 260 seconds]
infernix has quit [Quit: ZNC - http://znc.sourceforge.net]
sash__ is now known as sash___
<arne> oh that reminds me of amazons sqs
<norc> Indeed. :)
sid_fules has joined #ruby
moeabdol1 has quit [Ping timeout: 276 seconds]
<norc> And if you want something like DRb but interoperate with other languages even, then CORBA is your friend.
<arne> nah ruby is the way to go
terlar has quit [Ping timeout: 276 seconds]
<arne> most beautiful ( and slow :3 ) language
<arne> wish it wasn't
sid_fules has quit [Read error: Connection reset by peer]
<norc> Ruby 3.0 will finally do JIT, that will improve on the performance greatly.
<norc> (hopefully)
<arne> wow, that's great
cd83x has quit [Ping timeout: 240 seconds]
<arne> how comes, did MRI even have a VM?
<arne> im not an expert on that field
<norc> Yes it does since 2.0.
<arne> but how do you jit an interpreter
<arne> i see
<arne> so bytecode is a thing now in ruby
<norc> Has been for a long while already.
<norc> You can even look at it.
jhass has quit [Read error: Connection reset by peer]
<norc> asm>> a = 1 + 1; puts a
<ruby[bot]> norc: I have disassembled your code, the result is at https://eval.in/582432
<arne> yeah i looked at rbx during that time
<arne> but sticked to MRI agian when having too many problems
Tempesta has joined #ruby
<norc> arne: And since 2.3 you can finally load bytecode directly (so you can precompile your applications to improve startup times)
<arne> well but i have to do that by hand, right?
<norc> Yeah.
<arne> no rbc files, pythonstyle
<norc> &ri RubyVM::InstructionSequence.load_from_binary
<arne> would be great for minimal obfscusfufication i cannot write that word
<arne> obscurfication
noobsu has joined #ruby
<norc> Well that is the one thing its not meant for. ;-)
<norc> Well. Okay, "minimal".
<arne> yeah that's why i added that :)
<norc> :)
<hanmac> obscurfication is so obscure that no one can type it right at the first try XD
<norc> arne: The VM bit also has a debugging advantage by the way.
<arne> will ruby have an option to precompile who files? i think that'd be gr8
<norc> arne: Since Ruby allows you to inspect bytecode there are some corner cases where looking at bytecode can reveal some strange behaviour you may be experiencing.
<arne> well actually that could be done with an gem..
skade has joined #ruby
<norc> arne: That it has had for a while.
johnmilton has joined #ruby
<norc> &ri RubyVM::InstructionSequence.compile_file
<arne> and how do you start a compiled file?
<arne> but MRI is not LLVM, right?
Spami has joined #ruby
Spami has quit [Changing host]
Spami has joined #ruby
Spami_ has quit [Read error: Connection reset by peer]
<norc> arne: nope.
<norc> arne: Ruby has its own VM.
<arne> so does RBX but they use llvm
<arne> for jit and stuff
Vingador has joined #ruby
noobsu has quit [Remote host closed the connection]
goeast has quit [Read error: Connection reset by peer]
<flughafen> hey shevy
n1x-nz has quit [Remote host closed the connection]
sid_fules has joined #ruby
dtoast has joined #ruby
<norc> arne: Currently developers are expecting a 3x performance boost with Ruby 3x3
<norc> (Yes the name 3x3 was probably chosen because of it)
johnmilton has quit [Ping timeout: 244 seconds]
<arne> sounds great
dtoast has quit [Client Quit]
<arne> when will it come (~)
<norc> Soon.
<arne> :D
RedDwarf has joined #ruby
<arne> last question before you helped me enough :P: can you also run compiled files?
<ruby-lang764> asm>> 1+!
klaas_ has joined #ruby
<norc> ruby-lang764: you need to be identified with nickserv
<arne> well one method is named "compile file"
<ruby-lang764> :(
<arne> the second is called load method form binary
<blingrang> a == "test" ? return a : return "b" < why won't this work?
<norc> arne: First you compile a file into an iseq stream, you then serialize that iseq stream using to_binary
<norc> arne: and that binary bit can be load_from_binary
jhass has joined #ruby
<arne> ah, so only thing left to be taken care of is require
<arne> right? or will it even include requires
SHyx0rmZ has quit [Ping timeout: 244 seconds]
flopsec has quit [Ping timeout: 244 seconds]
ICantCook has quit [Ping timeout: 244 seconds]
klaas has quit [Ping timeout: 244 seconds]
Zackio has quit [Remote host closed the connection]
<arne> :O require is a method
<norc> arne: well no.
skade has quit [Read error: Connection reset by peer]
<arne> thought it's a keyword
toretore has joined #ruby
<norc> arne: An iseq stream is basically just bytecode. You can eval() it.
<arne> the more you laern
<arne> but the bytecode will create classes and shit?
<norc> arne: hopefully. ;-)
<norc> asm>> class A; end
<ruby[bot]> norc: I have disassembled your code, the result is at https://eval.in/582464
<norc> arne: as you can see, the class definition translates to bytecode commands that create a class.
arne is now known as Bish
ICantCook has joined #ruby
sauvin_ has joined #ruby
sauvin has quit [Excess Flood]
<Bish> >> RubyVM::InstructionSequence.compile("def test puts 'test' end").disasm.to_binary
<ruby[bot]> Bish: # => <compiled>:1: syntax error, unexpected tSTRING_BEG, expecting ';' or '\n' ...check link for more (https://eval.in/582469)
RedDwarf is now known as Zackio
aphprentice has quit [Remote host closed the connection]
jcp has quit [Remote host closed the connection]
digitalfiz has quit [Remote host closed the connection]
incomprehensibly has quit [Remote host closed the connection]
braderhart has quit [Remote host closed the connection]
Hates_ has quit [Remote host closed the connection]
grvgr has quit [Remote host closed the connection]
Majost has quit [Remote host closed the connection]
deepak has quit [Remote host closed the connection]
ckrailo has quit [Remote host closed the connection]
ketherah has quit [Remote host closed the connection]
err_ok has quit [Remote host closed the connection]
mitsuhiko has quit [Remote host closed the connection]
angiebadillo has quit [Remote host closed the connection]
ijij_ has quit [Remote host closed the connection]
jimcroft has quit [Remote host closed the connection]
jmhmccr has quit [Remote host closed the connection]
jpinnix_______ has quit [Remote host closed the connection]
vcoinminer has quit [Remote host closed the connection]
swgillespie has quit [Remote host closed the connection]
rflot has quit [Remote host closed the connection]
hayden__ has quit [Remote host closed the connection]
mroth has quit [Remote host closed the connection]
deeprave has quit [Remote host closed the connection]
jhill has quit [Remote host closed the connection]
shadowshell has quit [Remote host closed the connection]
acalewin has quit [Remote host closed the connection]
knowtheory has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
ELLIOTTCABLE has quit [Remote host closed the connection]
chorgi has quit [Remote host closed the connection]
dukedave has quit [Remote host closed the connection]
ujjain has quit [Ping timeout: 240 seconds]
neanderslob has quit [Remote host closed the connection]
<norc> >> RubyVM::InstructionSequence.compile("def test; puts 'test' end").disasm.to_binary
<ruby[bot]> norc: # => undefined method `to_binary' for #<String:0x41901a14> (NoMethodError) ...check link for more (https://eval.in/582470)
<norc> >> RubyVM::InstructionSequence.compile("def test; puts 'test' end").to_binary
<ruby[bot]> norc: # => "YARB\x02\x00\x00\x00\x03\x00\x00\x00\x91\x02\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x03\x00\x00\x0 ...check link for more (https://eval.in/582471)
Gasher has joined #ruby
noobsu has joined #ruby
<norc> Bish: the disasm is just disassembling into a human readable form. :)
kariolee_ has joined #ruby
<norc> (Which is what my asm>> does)
<Bish> i get it
jerematic has joined #ruby
skade has joined #ruby
<norc> Bish: If you are really interested into the internals of Ruby there is a superb book, "Ruby Under a Microscope"
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
ruby-lang764 is now known as liri
contradictioned has quit [Quit: No Ping reply in 180 seconds.]
kalleth has quit [Quit: No Ping reply in 180 seconds.]
heftig has quit [Remote host closed the connection]
Rush has quit [Remote host closed the connection]
Hobbyboy has quit [Ping timeout: 260 seconds]
bauruine has quit [Ping timeout: 260 seconds]
soahccc has quit [Ping timeout: 260 seconds]
RushPL has quit [Remote host closed the connection]
liri is now known as lirimaery
lirimaery has quit []
shinnya has joined #ruby
heftig has joined #ruby
SuperTux88 has quit [Ping timeout: 260 seconds]
lirimaery has joined #ruby
MyMind has quit [Max SendQ exceeded]
ohcibi has joined #ruby
contradictioned has joined #ruby
kalleth has joined #ruby
Rush has joined #ruby
Guest91763 has quit [Ping timeout: 260 seconds]
nyuszika7h has quit [Ping timeout: 260 seconds]
bastelfreak has quit [Ping timeout: 260 seconds]
kariolee_ is now known as kareeoleez
soahccc has joined #ruby
karioleez has quit [Ping timeout: 272 seconds]
<lirimaery> /msg NickServ VERIFY REGISTER lirimaery gsshvkjdevmz
<lirimaery> asm>> 1+1
RushPL has joined #ruby
<norc> lirimaery: I think... you might have made a typo there..
MyMind has joined #ruby
<lirimaery> how to use it ? :)
<lirimaery> asm> 1+1
<norc> [12:07] <lirimaery> /msg NickServ VERIFY REGISTER lirimaery gsshvkjdevmz
<norc> :S
Guest91763 has joined #ruby
jerematic has quit [Ping timeout: 244 seconds]
<lirimaery> ^^
<lirimaery> asm>> 1+1
<ruby[bot]> lirimaery: I have disassembled your code, the result is at https://eval.in/582484
bastelfreak has joined #ruby
<lirimaery> thanks you are really nice to me
[diecast] has joined #ruby
nyuszika7h has joined #ruby
darix- has joined #ruby
bkxd_ has joined #ruby
deepak has joined #ruby
digitalfiz has joined #ruby
kapowaz has joined #ruby
dukedave has joined #ruby
karmatr0n has joined #ruby
FastJack_ has joined #ruby
jhill has joined #ruby
mroth has joined #ruby
ELLIOTTCABLE has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
bauruine has joined #ruby
Noxilex has joined #ruby
jpinnix_______ has joined #ruby
ckrailo has joined #ruby
terlar has joined #ruby
jmhmccr has joined #ruby
mesamoo has quit [Excess Flood]
drbrain has quit [Ping timeout: 244 seconds]
twistedpixels_ has joined #ruby
twistedpixels_ has quit [Changing host]
twistedpixels_ has joined #ruby
mesamoo has joined #ruby
incomprehensibly has joined #ruby
knowtheory has joined #ruby
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
renderful has quit [Ping timeout: 260 seconds]
thelacce has joined #ruby
vcoinminer has joined #ruby
deeprave has joined #ruby
rflot has joined #ruby
electrostat_ has joined #ruby
drbrain has joined #ruby
lacce has quit [Ping timeout: 244 seconds]
SuperTux88 has joined #ruby
zyzioziom has joined #ruby
ksmutthu_ has joined #ruby
karmatr0n has quit [Ping timeout: 260 seconds]
gizmore has quit [Ping timeout: 240 seconds]
ijij_ has joined #ruby
bkxd has quit [*.net *.split]
webhat_ has quit [*.net *.split]
zacsek has quit [*.net *.split]
TomyWork has quit [*.net *.split]
fenre has quit [*.net *.split]
twistedpixels has quit [*.net *.split]
blaxter has quit [*.net *.split]
iceden has quit [*.net *.split]
jrafanie has quit [*.net *.split]
electrostat has quit [*.net *.split]
tw1sted has quit [*.net *.split]
whiteline has quit [*.net *.split]
Insti has quit [*.net *.split]
eljimador has quit [*.net *.split]
majjoha has quit [*.net *.split]
Antiarc has quit [*.net *.split]
M-shine has quit [*.net *.split]
darix has quit [*.net *.split]
FastJack has quit [*.net *.split]
forgot has quit [*.net *.split]
hypnosb has quit [*.net *.split]
mame3 has quit [*.net *.split]
KillerFox has quit [*.net *.split]
electrostat_ is now known as electrostat
darix- is now known as darix
FastJack_ is now known as FastJack
bnjf has joined #ruby
craigp has quit [Ping timeout: 240 seconds]
renderful has joined #ruby
ksmutthu has quit [Ping timeout: 252 seconds]
acalewin has joined #ruby
der-land1 has joined #ruby
infernix has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
tristanp has joined #ruby
der-landgraf has quit [Ping timeout: 246 seconds]
solocshaw has quit [Read error: Connection reset by peer]
solocshaw1 has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
duncannz has quit [Remote host closed the connection]
soahccc has quit [Ping timeout: 260 seconds]
RushPL has quit [Remote host closed the connection]
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
contradictioned has quit [Quit: No Ping reply in 180 seconds.]
kalleth has quit [Quit: No Ping reply in 180 seconds.]
Rush has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
bauruine has quit [Ping timeout: 260 seconds]
solocshaw1 is now known as solocshaw
_br___ has quit [Ping timeout: 240 seconds]
PaulePanter has quit [Ping timeout: 240 seconds]
SuperTux88 has quit [Ping timeout: 260 seconds]
contradictioned has joined #ruby
ohcibi has joined #ruby
soahccc has joined #ruby
kalleth has joined #ruby
Rush has joined #ruby
Guest91763 has quit [Ping timeout: 260 seconds]
PaulePanter has joined #ruby
_br__ has joined #ruby
RushPL has joined #ruby
Guest91763 has joined #ruby
bauruine has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexJakeGreen has joined #ruby
Hobbyboy|BNC has joined #ruby
err_ok has joined #ruby
SuperTux88 has joined #ruby
Vingador has quit [Remote host closed the connection]
aphprentice has joined #ruby
Hates_ has joined #ruby
maletor3 has joined #ruby
braderhart has joined #ruby
gingray has joined #ruby
sid_fules has joined #ruby
hayden__ has joined #ruby
<shevy> webchatters :)
swgillespie has joined #ruby
angiebadillo has joined #ruby
cd83x has joined #ruby
maletor3 has quit [Ping timeout: 250 seconds]
Majost has joined #ruby
jcp has joined #ruby
jimcroft has joined #ruby
cd83x has quit [Ping timeout: 260 seconds]
mitsuhiko has joined #ruby
c355e3b has joined #ruby
Macaveli_ has quit [Quit: Textual IRC Client: www.textualapp.com]
phredus has quit [Remote host closed the connection]
grvgr has joined #ruby
craigp has joined #ruby
blaxter has joined #ruby
zacsek has joined #ruby
majjoha has joined #ruby
whiteline has joined #ruby
iceden has joined #ruby
Insti has joined #ruby
shadowshell has joined #ruby
ketherah has joined #ruby
chorgi has joined #ruby
minimalism has quit [Quit: minimalism]
nankyokusei has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
theozaurus has joined #ruby
TomyWork has joined #ruby
flopsec has joined #ruby
webhat_ has joined #ruby
fenre has joined #ruby
jrafanie has joined #ruby
tw1sted has joined #ruby
eljimador has joined #ruby
Antiarc has joined #ruby
M-shine has joined #ruby
hypnosb has joined #ruby
forgot has joined #ruby
mame3 has joined #ruby
KillerFox has joined #ruby
darkxploit has quit [Ping timeout: 276 seconds]
DaniG2k has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
<theozaurus> Hi All, I'm trying to figure out if I can get a couple of consumers of an enumerable to execute in the order that I want. Check out: https://gist.github.com/theozaurus/354c755470b1ef7e1c34234c90567f9e . I can't work out how to properly deal with the stream within class A. Any help would be really appreciated!
<norc> theozaurus: Use .zip? :)
<theozaurus> Oooh, let me have a play
<norc> theozaurus: oh wait that wont really help with what you are doing.
DaniG2k has quit [Quit: leaving]
<theozaurus> Do you mean to zip processors with processors then feed each one
<norc> theozaurus: instead of calling it with list, you have to iterate over the list and call each processor with each item.
<theozaurus> Yeah, I was hoping to avoid that so that B would have an easy interface
haxrbyte has quit [Remote host closed the connection]
<norc> theozaurus: that is however exactly what you asked for.
haxrbyte has joined #ruby
<norc> Your desired output could be formulated as: I want to iterate over my list, and each element should then be passed to every processor.
<norc> Which is just another way of saying @processors.each { |p| list.each { |element| p.call(element) } }
<theozaurus> Haha, okay let me rephrase my question. Leaving B the same, how can I modify A to get to my desired output
<norc> Errr
<norc> list.each { |element| @processors.each { |p| p.call(element) } }
<norc> theozaurus: ^-
coffeecupp has quit [Remote host closed the connection]
<theozaurus> Sorry, my example is too contrived. So that will work, but in reality it's a calculation I'm doing. Let me modify
<norc> theozaurus: that we call an XY problem.
<norc> ;-)
darkxploit has joined #ruby
jottr_ has quit [Quit: WeeChat 1.5]
<norc> theozaurus: Matrix#transpose // Array.zip (they are the same thing effectively) -- it sounds a lot like its what you want.
<norc> *Array#zip
rodfersou has joined #ruby
jerematic has joined #ruby
hk238 has joined #ruby
sid_fules has joined #ruby
<Bish> >> RubyVM::InstructionSequence.load_from_binary(RubyVM::InstructionSequence.compile("def test; yield; end").to_binary).eval;test { puts "whopdidu" }
<ruby[bot]> Bish: # => whopdidu ...check link for more (https://eval.in/582575)
<Bish> woohoo~
<norc> Bish: :)
<theozaurus> Okay, it's a little more realistic now. Essentially I am expecting a huge stream of things and I don't want to run through it multiple times, but I also don't want my processors to be side affect free.
jerematic has quit [Ping timeout: 244 seconds]
certainty has quit [Ping timeout: 272 seconds]
bodgix has joined #ruby
<theozaurus> * I also want my processors to be side affect free
Fernando-Basso has joined #ruby
<Bish> ruby with jit would be so awesome
moeabdol1 has joined #ruby
<apeiros> use jruby?
<Bish> well my guess is im using c extensions everyhwer
hiyosi has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
<theozaurus> I've tried to clarify my question and stuck it on so: http://stackoverflow.com/questions/37612961/listen-to-lazy-enumerable
<norc> theozaurus: Currently busy with things. But if nobody responds Ill absolutely get back to you. :)
Spami has quit [Quit: This computer has gone to sleep]
wazzat has quit [Ping timeout: 260 seconds]
symm- has quit [Quit: Leaving...]
moeabdol1 has quit [Ping timeout: 260 seconds]
<theozaurus> norc: Thanks!
lightt has joined #ruby
gizmore has joined #ruby
jaguarmagenta has joined #ruby
[spoiler] has joined #ruby
AlexJakeGreen has quit [Ping timeout: 272 seconds]
jaguarmagenta has quit [Ping timeout: 240 seconds]
johnmilton has joined #ruby
Noxilex has quit [Ping timeout: 244 seconds]
harai54 has joined #ruby
k3rn31 has joined #ruby
lightt has quit [Read error: Connection reset by peer]
lacce has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Hyuk has joined #ruby
Hyuk has quit [Max SendQ exceeded]
blandflakes has joined #ruby
zyzioziom has quit [Ping timeout: 246 seconds]
thelacce has quit [Ping timeout: 240 seconds]
<shevy> Bish one day! all the good things will come to us. we need more C gurus
cd83x has joined #ruby
AlexJakeGreen has joined #ruby
blandflakes has quit [Client Quit]
sid_fules has joined #ruby
harai54 has quit [Ping timeout: 250 seconds]
maletor3 has joined #ruby
<norc> theozaurus: Have you a) had performance problems and b) profiled your code to determine that particular code to be problematic?
<norc> If not you are wasting time on a premature optimization.
<theozaurus> It's a system designed to process millions of events so I want to make sure my architecture is sensible.
jespada has joined #ruby
Jamo_ has joined #ruby
<norc> Fair enough.
Jamo__ has joined #ruby
cd83x has quit [Ping timeout: 276 seconds]
<norc> theozaurus: Do you want to roll your own, or is something like eventmachine a possibility?
Jamo_ has quit [Client Quit]
Madplatypus has quit [Quit: Connection closed for inactivity]
Jamo_ has joined #ruby
maletor3 has quit [Ping timeout: 258 seconds]
<theozaurus> I don't think I need a reactor loop to do what I want. I'm hoping that there is a primitive I can take advantage of which will save the complexity of EM.
duckpuppy has joined #ruby
Jamo has quit [Remote host closed the connection]
Jamo__ has quit [Remote host closed the connection]
Jamo_ has quit [Remote host closed the connection]
xlegoman has joined #ruby
Jamo has joined #ruby
karapetyan has joined #ruby
hanmac has quit [Ping timeout: 250 seconds]
lacce has quit []
Snowy has joined #ruby
sdothum has joined #ruby
ddffg has joined #ruby
allcentury has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
electrostat has quit [Remote host closed the connection]
noobsu has quit [Remote host closed the connection]
electrostat has joined #ruby
certainty has joined #ruby
<chrisseaton> norc: I don't think anyone is actually working on a jit though are they?
ldnunes has joined #ruby
<chrisseaton> It would be great but someone with the skills actually needs to do the work and nobody seems to want to do it
<norc> chrisseaton: It will be some outside solution.
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<chrisseaton> I'm not sure OMR has demonstrated any useful speed up yet
<norc> chrisseaton: RuJIT has.
<norc> at least.
skade has joined #ruby
karapetyan has quit []
tvw has joined #ruby
rodferso1 has joined #ruby
hanmac has joined #ruby
zyzioziom has joined #ruby
tlaxkit has joined #ruby
gnufied has joined #ruby
solars has quit [Ping timeout: 250 seconds]
maucar has joined #ruby
kgrz has quit [Read error: Connection reset by peer]
kgrz_ has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
rodfersou has quit [Ping timeout: 258 seconds]
Pupeno has quit [Remote host closed the connection]
aries_liuxueyang has quit [Ping timeout: 252 seconds]
kgrz_ has quit [Ping timeout: 240 seconds]
kgrz has joined #ruby
rodferso1 is now known as rodfersou
jerematic has joined #ruby
romistrub has joined #ruby
Ishido has joined #ruby
Lildirt has quit [Ping timeout: 240 seconds]
mikeiniowa has quit [Ping timeout: 240 seconds]
theozaurus has quit [Quit: Leaving.]
<romistrub> can somebody please explain to me why my code never reaches inside the 'each' at line 168
nettoweb has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
<chrisseaton> I think we should write a jit in Ruby, the both MRI and Rubinius could use it
<apeiros> romistrub: put this on top of your code: `Thread.abort_on_exception = true`
<apeiros> by default, threads die silently in case of an exception
beilabs has quit [Remote host closed the connection]
<apeiros> above makes your whole app crash loudly
<romistrub> apeiros: nice to see you again; will do
<romistrub> oh, really!
Lildirt has joined #ruby
chip__ has quit [Ping timeout: 246 seconds]
<apeiros> I'm always here? (just not always on-keyboard)
<jhass> ?styleguides
<ruby[bot]> here are three popular styleguides, you should read and follow at least one: https://github.com/styleguide/ruby https://github.com/bbatsov/ruby-style-guide https://github.com/thoughtbot/guides/tree/master/style/ruby
<romistrub> Is that a question? :P
beilabs has joined #ruby
Pumukel has joined #ruby
jerematic has quit [Ping timeout: 252 seconds]
Pupeno has joined #ruby
chouhoulis has joined #ruby
synthroid has joined #ruby
solars has joined #ruby
chouhoulis has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
sdothum has quit [Ping timeout: 252 seconds]
chouhoulis has joined #ruby
certainty has quit [Ping timeout: 276 seconds]
<romistrub> apeiros: magical! it works now :)
<romistrub> thanks
certainty has joined #ruby
<mc_fail> hi floks, is it possible to force having space after argument in OptionParser for ruby 2.3 ?
pontiki has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
beilabs has quit [Ping timeout: 252 seconds]
<mc_fail> for example, if user has passed -l value the program should consider -l = value, if user has passed -lvalue - program should throw an error
uncertainty has joined #ruby
<apeiros> romistrub: funny - it should have crashed, but in doing so, it also should have given you the chance to figure where and why…
<apeiros> but all the better if it just magically works now
nullwarp has quit [Quit: ZNC - http://znc.in]
<jhass> option parser probably just doesn't support what you want then
evidex has joined #ruby
rbr has quit [Ping timeout: 244 seconds]
rbr has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
darkxploit has quit [Ping timeout: 244 seconds]
sdothum has joined #ruby
nullwarp has joined #ruby
nettoweb has quit [Ping timeout: 240 seconds]
<romistrub> So I'm building a custom Ruby HTTP server and need a hosting site for it. Can DigitalOcean do that?
last_staff has quit [Quit: last_staff]
<apeiros> yes
<romistrub> apeiros: it did crash, haha, then I figured out why it crashed and fixed it. Just skipped that step in the explanation.
<romistrub> apeiros: awesome, thanks
<apeiros> romistrub: aha!
synthroi_ has joined #ruby
cd83x has joined #ruby
xlegoman has joined #ruby
certainty has joined #ruby
duoi has quit [Max SendQ exceeded]
duoi has joined #ruby
karmatr0n has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
synthroid has quit [Ping timeout: 246 seconds]
duoi has quit [Max SendQ exceeded]
duoi has joined #ruby
uncertainty has quit [Ping timeout: 276 seconds]
synthroid has joined #ruby
saneax is now known as saneax_AFK
cd83x has quit [Ping timeout: 258 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Pupeno has joined #ruby
goeast has joined #ruby
darkxploit has joined #ruby
ArgartellO has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
synthroi_ has quit [Ping timeout: 244 seconds]
karmatr0n has quit [Ping timeout: 260 seconds]
deadnull_ has joined #ruby
certainty has joined #ruby
codecop has quit [Remote host closed the connection]
bruce_lee has joined #ruby
maletor3 has joined #ruby
duckpuppy has joined #ruby
<norc> apeiros: If code magically works that should be crashing, that would be worrying more than the segmentation fault screen from Ruby I regularly get.
wazzat has joined #ruby
<norc> Well okay, the seg fault screen does not worry me anymore... at all...
<apeiros> you're fearless
ArgartellO has quit [Quit: Leaving]
fmcgeough has joined #ruby
Pupeno has quit [Ping timeout: 252 seconds]
maletor3 has quit [Ping timeout: 240 seconds]
<norc> Actually I fear a great many things. Tigers, bombs exploding near me, "Hello Kitty"...
flashpoint9 has joined #ruby
davedev24 has joined #ruby
<norc> If only I had a VT100 that I could plug into my brain, I would be able to reprogram myself to remove fear.
darkxploit has quit [Ping timeout: 258 seconds]
<adaedra> You shouldn't, fear is sometimes useful.
bkxd_ has quit [Ping timeout: 250 seconds]
rubito has joined #ruby
r_rios has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
<shevy> tigers are very useful!
Pupeno has joined #ruby
haxrbyte has joined #ruby
noobsu_ has joined #ruby
<norc> adaedra: You think? I always thought standing on a street and not running away when a car approaches could be the better solution. Sadly I have no prior experience to draw from.
<norc> So this is just a theory.
<adaedra> Don't worry, many people experienced before you.
nankyokusei has joined #ruby
rubito has left #ruby [#ruby]
<norc> Doesn't the scientific method require me to be skeptical of other peoples findings? Repeating other peoples experiments is important, perhaps their experiments had some fundamental flaws.
solocshaw1 has joined #ruby
kies has quit [Ping timeout: 246 seconds]
nankyokusei has quit [Ping timeout: 276 seconds]
hutch34_ has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
solocshaw1 is now known as solocshaw
infra-red has quit [Remote host closed the connection]
irbedded has joined #ruby
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
sid_fules has joined #ruby
infra-red has joined #ruby
darkxploit has joined #ruby
sash___ is now known as sash_
sash_ has quit [Changing host]
sash_ has joined #ruby
sash_ has quit [Changing host]
sash_ has joined #ruby
solars has quit [Ping timeout: 252 seconds]
infra-red has quit [Remote host closed the connection]
karmatr0n has joined #ruby
Tempesta has quit [Quit: See ya!]
ramortegui has joined #ruby
moei has quit [Quit: Leaving...]
tlaxkit has quit [Quit: ¡Adiós!]
infra-red has joined #ruby
<jhass> shouldn't you be the observer in your experiments, not the actor?
Tempesta has joined #ruby
certainty has quit [Ping timeout: 272 seconds]
darkxploit has quit [Ping timeout: 276 seconds]
sid_fules has quit [Read error: Connection reset by peer]
<tildes> didn't some scientists in the good old days conduct experiments on themselves too, such as tasting radioactive substances, conducting electric current to their brain, etc?
jerematic has joined #ruby
<jhass> more than necessary I imagine, given the difficulty of writing up your results after some of that
kies has joined #ruby
<tildes> this was probably more common back in the days, when scientific publishing took place either in latin, or through hand-written letters
<tildes> (or both of course)
ChiefAlexander has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
jerematic has quit [Ping timeout: 244 seconds]
aegis3121 has joined #ruby
sdothum has joined #ruby
sdothum has quit [Client Quit]
camilasan has quit [Read error: Connection reset by peer]
infra-red has quit []
camilasan has joined #ruby
<shevy> I pity those old folks - they had no ruby
dcluna has joined #ruby
sdothum has joined #ruby
kareeole_ has joined #ruby
solars has joined #ruby
ocbtec has quit [Quit: leaving]
kareeole_ is now known as kareeoleez_
kareeoleez has quit [Ping timeout: 276 seconds]
ta_ has quit [Remote host closed the connection]
hutch34 has joined #ruby
Devalo has joined #ruby
domgetter has quit [Ping timeout: 276 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rippa has joined #ruby
kareeoleez_ is now known as kareeoleez
hutch34_ has quit [Ping timeout: 240 seconds]
k3rn31 has joined #ruby
zacsek has quit [Ping timeout: 260 seconds]
cd83x has joined #ruby
Devalo has quit [Ping timeout: 240 seconds]
sdothum has joined #ruby
sid_fules has joined #ruby
GodFather has quit [Quit: Ex-Chat]
allcentury has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
malconis has joined #ruby
cd83x has quit [Ping timeout: 246 seconds]
theozaurus has joined #ruby
jaguarmagenta has joined #ruby
Macaveli has joined #ruby
kies has quit [Ping timeout: 276 seconds]
andikr has quit [Remote host closed the connection]
<norc> jhass: You see, that was just darwinism at work. Over time only the good scientists survived, which brought us the technical revolution.
jaguarmagenta has quit [Ping timeout: 250 seconds]
wazzat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d0lph1n98 has joined #ruby
wazzat has joined #ruby
millerti has joined #ruby
Macaveli has quit [Ping timeout: 272 seconds]
ips|malc has joined #ruby
roamingdog has joined #ruby
freerobby has joined #ruby
maletor3 has joined #ruby
Hyuk has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
Hyuk has quit [Client Quit]
maletor3 has quit [Ping timeout: 244 seconds]
jerematic has joined #ruby
allcentury has joined #ruby
JakFrist has joined #ruby
ZeroeSparticus has joined #ruby
JesseH has quit [Remote host closed the connection]
sid_fules has joined #ruby
crystal77 has joined #ruby
frem_ has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
futilegames has joined #ruby
SilverKey has joined #ruby
sid_fules has joined #ruby
mattwashere has joined #ruby
chouhoulis has quit [Remote host closed the connection]
solocshaw1 has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
solocshaw1 is now known as solocshaw
brendan- has quit [Ping timeout: 252 seconds]
CJKinni has joined #ruby
chouhoulis has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
certainty has joined #ruby
hutch34_ has joined #ruby
SilverKey has quit [Quit: Halted.]
zyzioziom has quit [Ping timeout: 276 seconds]
hutch34 has quit [Ping timeout: 244 seconds]
futilegames has quit [Quit: futilegames]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JakFrist has joined #ruby
flughafen_ has joined #ruby
<CustosLimen> hi
<CustosLimen> so I have this: https://github.com/asciidoctor/docbookrx
chouhoulis has quit [Ping timeout: 258 seconds]
<CustosLimen> I don't get how I run the stuff in specs though
certainty has quit [Ping timeout: 258 seconds]
<jhass> `rake`
vondruch has joined #ruby
cemerick has joined #ruby
<cemerick> AFAICT, rvm has set up my environment properly (GEM_HOME, etc point to ~/.rvm/...), but `bundle install` fails with "There was an error while trying to write to `/gems/ruby/2.3.0`"
vondruch has quit [Client Quit]
<cemerick> any suggestions?
yfeldblum has joined #ruby
vondruch has joined #ruby
banister has joined #ruby
<CustosLimen> thanks jhass
<norc> cemerick: mmm, is it possible that its actually trying to install to /gems ? (off the root of your filesystem)
CamCam2 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<cemerick> norc: that certainly looks like what it's trying to do, but I can't begin to speculate as to why
<norc> cemerick: strace could be helpful
yfeldblum has joined #ruby
<jhass> cemerick: or rvm info for starters
fenre has quit [Ping timeout: 244 seconds]
<cemerick> jhass: yeah, it looks pretty sane AFAICT https://gist.github.com/cemerick/b7999599f54c4ede415ebf067bf188c2
wilsonc91 has joined #ruby
<jhass> how about bundle config?
palms has joined #ruby
craigp has quit [Ping timeout: 252 seconds]
CamCam2 has quit [Client Quit]
kareeoleez has quit [Remote host closed the connection]
comforte has joined #ruby
<comforte> does anyone know a script that's a python and a ruby script?
Yiota has joined #ruby
<jhass> a = 1
<norc> comforte: ;
Yiota has quit [Max SendQ exceeded]
<jhass> cemerick: so you found something in bundle config?
<cemerick> jhass: good call, thank you very much. I never would have figured that out (I touch ruby every ~5 years or so :-)
<cemerick> the sudden radio silence is a dead giveaway I guess!
<jhass> :P
Yiota has joined #ruby
<jhass> comforte: and now?
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cemerick> project-specific gem paths? Is that, um, typical?
<comforte> how about: puts "I am a ruby script"\nprint "I am a python script"
<comforte> how could I dispatch between the two? =)
cd83x has joined #ruby
<norc> cemerick: it can be if you have set it up that way.
floatingpoint has joined #ruby
<cemerick> norc: deliciously tautological ;-P
<norc> cemerick: Heh. It could be useful for deployments.
<jhass> comforte: print("I'm a ruthon script!\n")
<norc> jhass: I see what you did there.
<apeiros> google "polyglot ruby python" could help
agent_white has joined #ruby
<agent_white> Mornin'
agit0 has joined #ruby
<apeiros> moin agent_white
<norc> cemerick: Though other than that I prefer gem_home to manage multiple gemsets at the same time.
<cemerick> norc: there's no .bundle/config in the source repo, so it must have been generated locally at some point?
<jhass> yes, you typically don't check in .bundle/config
<jhass> that'd be against its point
<jhass> so also yes, must've run bundle --path /gems ... at some point
<cemerick> must've been some monkey rolling his head across the keyboard .... at some point
<jhass> I actually use bundle --path vendor/bundle over gemsets these days
prestorium has joined #ruby
<norc> jhass: for other reasons than deployment?
<cemerick> I was thrashing away trying to get started with the project last week, so anything's possible
<cemerick> anyway, thanks again very much for your help, jhass & norc
<jhass> norc: deployment does --deployment
<jhass> so it's also frozen
cd83x has quit [Ping timeout: 258 seconds]
<norc> mm
<jhass> which I don't want in dev of course
<norc> jhass: Can you elaborate what motivations you have for using a local bundle over a gemset?
<jhass> has the advantage of a rm -rf foo and the project is gone
nettoweb has joined #ruby
symm- has joined #ruby
<norc> Ah.
<jhass> and I don't need a gemset manager
<jhass> chruby and (in my case) pacman and done
flughafen_ has quit [Ping timeout: 240 seconds]
joonty has quit [Quit: This computer has gone to sleep]
<jhass> I mean all newer programming package managers already operate that way by default
<norc> Ah. Well so far I only use gem_home to switch between my rails5 gemset (I really want the rails5 binstub) and evertyhing else.
joonty has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 244 seconds]
RobertBirnie has joined #ruby
ZeroeSparticus has quit [Quit: ZeroeSparticus]
d0lph1n98 has quit [Ping timeout: 264 seconds]
qasaur has joined #ruby
mattwashere has quit [Remote host closed the connection]
Yiota has quit [Ping timeout: 246 seconds]
rbr has quit [Ping timeout: 276 seconds]
zacsek has joined #ruby
palms has quit [Read error: Connection reset by peer]
ZeroeSparticus has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
Yiota has joined #ruby
rbr has joined #ruby
Yiota has quit [Max SendQ exceeded]
kgrz has quit [Ping timeout: 246 seconds]
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
k3rn31 has quit [Quit: Computer has gone to sleep.]
kgrz has joined #ruby
Yiota has joined #ruby
Yiota has quit [Max SendQ exceeded]
jerematic has quit [Ping timeout: 260 seconds]
<shevy> I just found https://libraries.io/rubygems/pry/sourcerank - that's quite nice, for gem authors too, to see whether their gems are up to "common standards" or whether they are not
palms has joined #ruby
Yiota has joined #ruby
certainty has joined #ruby
Yiota has quit [Max SendQ exceeded]
SilverKey has joined #ruby
goeast_ has joined #ruby
Yiota has joined #ruby
goeast has quit [Ping timeout: 264 seconds]
Yiota has quit [Client Quit]
goeast_ is now known as goeast
<shevy> though it is biased :P
Yiota has joined #ruby
norc has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
maletor3 has joined #ruby
SilverKey has quit [Client Quit]
ksmutthu_ has quit [Ping timeout: 252 seconds]
kgrz has quit [Ping timeout: 272 seconds]
smathy has joined #ruby
<Gasher> hello, I'm trying to make multi-dimensional hashes and I don't know how to add them
<Gasher> how to add anything to a subhash
Yiota has quit [Ping timeout: 240 seconds]
maletor3 has quit [Ping timeout: 260 seconds]
deadnull_ has quit [Quit: Bye]
flughafen_ has joined #ruby
<smathy> Gasher, h[:foo][:bar] = 1
GodFather has quit [Ping timeout: 276 seconds]
<smathy> ...or h[:foo] = { bar: 1 } if you're adding the whole sub-hash
<tildes> assuming h = {}; h[:foo] = {}
<tildes> because you still need to initialize the hashes, for [] call to work
mwlang has joined #ruby
<Gasher> yeah I know
<Gasher> and that didn't really work
<Gasher> but I do I need to initialise the subhash?
<tildes> yes
sphex_ has quit [Ping timeout: 246 seconds]
<Gasher> ah, I think that's what went wrong
sphex has joined #ruby
<Gasher> YUS, works, thanks
<tildes> Gasher: glad to hear that :)
Yiota has joined #ruby
<Gasher> all that hashception can get really confusing
<apeiros> it's often an anti-pattern to deeply nest basic collection classes (like hash or array)
<apeiros> instead of using proper classes
<Gasher> it's just 2 dimensional, I don't think it's that bad
pawnbox has quit [Remote host closed the connection]
<apeiros> that said, ruby recently added Hash#dig and Array#dig, which help with that kind of structure.
<shevy> dig up the zombies
SilverKey has joined #ruby
<apeiros> Gasher: depends - do you have to handle whether a subhash exists or not in more than 1 place?
<Gasher> nope
nankyokusei has joined #ruby
<apeiros> then you might be fine
<Gasher> I'm building a package manager, and some things (like node for example) use more than one executable (node and npm)
zyzioziom has joined #ruby
<Gasher> that's kinda problematic and the 2-dimensional hash solved it
chouhoulis has joined #ruby
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
<tildes> Gasher: why do you want to build your own?
nankyokusei has quit [Ping timeout: 244 seconds]
Dimik has joined #ruby
zyzioziom1 has joined #ruby
zyzioziom has quit [Ping timeout: 264 seconds]
zyzioziom1 is now known as zyzioziom
pawnbox has joined #ruby
<Bish> is there a short for .find( |x| x == 'something' )
<Gasher> tildes; I'm tired of outdated soft in ubuntu repo
rodfersou is now known as rodfersou|lunch
ChiefAlexander has quit [Remote host closed the connection]
<Gasher> too lazy to build/install everything myself
<Bish> or better: find( |x| x.something == 'something' )
cemerick has quit [Ping timeout: 258 seconds]
<Bish> sorry, bad brackets, should be curled ofc
<Gasher> and things like arch are too unstable
jokke has quit [Quit: WeeChat 1.5]
ChiefAlexander has joined #ruby
jokke has joined #ruby
<tildes> Bish: do you run that method on an Enumerable, such as Array object?
<Bish> >> [{x:"yes"},{x:"can you make this shorter"}].find { |x| x.x == "yes" }
<ruby[bot]> Bish: # => undefined method `x' for {:x=>"yes"}:Hash (NoMethodError) ...check link for more (https://eval.in/582790)
<Bish> >> [{x:"yes"},{x:"can you make this shorter"}].find { |x| x[:x] == "yes" }
mark_66 has quit [Quit: Leaving.]
<ruby[bot]> Bish: # => {:x=>"yes"} (https://eval.in/582791)
<Bish> like this
moredhel has quit [Quit: byee]
<Bish> tildes: well both would be interesting i guess
Pupeno has quit [Remote host closed the connection]
moredhel has joined #ruby
<Bish> im writing these things way to lot
kies has joined #ruby
<Bish> would be helpful to have a generic proc literal for that
moeabdol has joined #ruby
<Bish> not lust &:method
<Gasher> jhass; I know, I know
<Gasher> started working on mine before I've heard of them
<jhass> or just pacstrap :P
<Gasher> and I might create a distro, so it'll be more useful in the future
moredhel has quit [Client Quit]
saneax_AFK is now known as saneax
<jhass> or xdg-app or whatever it's called now
moredhel has joined #ruby
<Bish> write a ruby script which handles everything with package distribution over p2p
<Bish> that'd be gr8
<jhass> oh yeah, use a DHT for the package index and torrent to download the packages
neanderslob has joined #ruby
kareeoleez has joined #ruby
neanderslob has quit [Disconnected by services]
neanderslob_ has joined #ruby
<jhass> you'll be on the news frontpages in no time
<apeiros> DHT?
<jhass> distributed hash table?
<Bish> jhass: negatively or positely?
<apeiros> ah
<jhass> Bish: who cares
<apeiros> all pr is good pr
<jhass> a blockchain works too of course
<Bish> like "how a newby programmer trojanified 100k linux users by implementing an insecure DHT"
fedexo has joined #ruby
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Bish> jhass: i even thought about that one to make it FULLY decentraliced
<Bish> you could make a cryptocurrency where proof of work is reading sourcecode
neanderslob has joined #ruby
hutch34_ has quit [Ping timeout: 260 seconds]
<Bish> like, checking if this code is correct/not trojanified
<Bish> so you have both DHT package managing and a currency
<Bish> from now on if that idea ever gets implemented im the father in spirit of that idea @ irc-logs
hutch34_ has joined #ruby
goeast has quit [Ping timeout: 276 seconds]
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
suchness has joined #ruby
<jhass> how do you prove you've verified it?
Couch has quit [Ping timeout: 246 seconds]
fedexo has quit [Read error: Connection reset by peer]
van has joined #ruby
<jhass> instead of just saying "yeah, totally spent 6 hours here, all legit
<Bish> multiple people do it. if most people say "this is code has a buffer overflow"
<jhass> "
<suchness> Can anyone explain to me why my "variable" is not getting set here: http://pastie.org/private/jtvckqrcqoop3eg4ngqja ?
<jhass> Bish: so I just get a botnet that yells all good
<Bish> :D yeah that is a problem
<Bish> but reputation systems etcpp could make that better
<Bish> you could.. for example introduce new packagaes at 0 % reputation
<jhass> so... gpg?
<Bish> and people will get notified when installing
<Bish> i never used gpg i don't know
<Bish> atleast it's doable, i think
<Bish> not for me, ofc
<Bish> but a genius maybe
<suchness> Ok I am crossposting
<jhass> where?
l1meon has joined #ruby
<jhass> suchness: you do understand that attr_accessor creates a method, called variable= ?
<Bish> the fuck does block[]
<jhass> Bish: call it
<jhass> &ri Proc#[]
<`derpy> No results
<Bish> oh.
<jhass> eh
suchness has left #ruby [#ruby]
suchness has joined #ruby
mattwashere has joined #ruby
<suchness> Yes I realize that, which is why I would expect instance eval to set it
<jhass> Bish: anyway, it's an alias
cd83x has joined #ruby
<suchness> but variable is not set
<Bish> weird alias
cemerick has joined #ruby
<jhass> suchness: so, you also understand that variable assignment is not the same, that x.foo = bar and foo = bar are fundamentally different?
<jhass> *variable assignment and method calls
scepticulous has quit [Quit: Konversation terminated!]
pawnbox has quit [Remote host closed the connection]
karmatr0n has joined #ruby
<suchness> Hold on let me get my head around what you are saying
scepticulous has joined #ruby
<Bish> make it an instance variable and it should work, amiright?
<suchness> Oh yes
pawnbox has joined #ruby
<jhass> suchness: x.foo = bar is just syntax sugar for x.foo=(bar)
<suchness> right
Devalo has joined #ruby
minimalism has joined #ruby
<suchness> So I suppose then the real question is
<jhass> so, that also means variable assignment has to win over method calls
CJKinni` has joined #ruby
<jhass> self.variable = "something"
<suchness> Is there any way to make it so I do not need to call self.variable=
<suchness> Hrm, yeah
<jhass> a common pattern is to leave out the =
<jhass> variable "foo"
<apeiros> @variable =
<apeiros> unless you want to go through the accessor
<apeiros> then no
<jhass> the other pattern is to yield self do |x| x.variable = "foo"
<l1meon> hello, I have a question, how can I know the proxy anonymity level, using net/http ? I'm making a proxy checker, and I dont know how can I find the anonymity level. Can somebody help me?
<apeiros> right, or what jhass describes, create a "DSL setter"
<suchness> jhass: And what, define a method variable(value) that sets it?
<jhass> yes
<suchness> jhass: I like that, I think that's a clean solution
<suchness> Excellent, thanks!
theozaurus has quit [Quit: Leaving.]
<jhass> l1meon: I don't think there's any such thing as a well defined "proxy anonymity level"
<apeiros> suchness: usually you'll define it as `def variable(*value); if value.size == 1; @value = value.first; end; @value; end`
<jhass> not even getting into why (free) proxies are more harm than good even
<apeiros> otherwise reading won't be possible, or setting it to nil won't be possible
<suchness> apeiros: That's a good tip, I can see how that would be useful, thanks!
<apeiros> suchness: up to you what you do with value.size > 1, tho :)
cd83x has quit [Ping timeout: 276 seconds]
CJKinni has quit [Ping timeout: 260 seconds]
Pupeno has joined #ruby
<suchness> apeiros: Oh don't worry, I will make it magical
pawnbox has quit [Ping timeout: 264 seconds]
aries_liuxueyang has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
<l1meon> jhass: well I know, but I've read about that proxies sends or not some headers which determines the anonymity, not literally but in sense that the server know's your real Ip and dont know, and I dont know how to get theese headers throug net/http, I've tried return all headers but the only I get to check for proxy is the "Via", others like 'X-forwarded-for' doesnt show up
crystal77 has joined #ruby
<jhass> l1meon: they send it to the remote server, not the client
<Gasher> <Bish> write a ruby script which handles everything with package distribution over p2p
pawnbox has joined #ruby
<Gasher> thanks for the great idea :)
<l1meon> jhass: so is there a way to get them? if so, how can I do it?
<jhass> no
<jhass> l1meon: I suggest you read up on how HTTP in general and HTTP proxies in detail work, worth your time
biberu has quit []
<jhass> l1meon: pull out netcat and successfully write a HTTP request by hand and get a response, then one through a proxy
sid_fules has joined #ruby
<l1meon> jhass: is ok if use this? https://github.com/Hood3dRob1n/RubyCat
GodFather has joined #ruby
<jhass> I don't a real reason to but sure
wrkrcoop has joined #ruby
<jhass> *don't see
troulouliou_div2 has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
ksmutthu has joined #ruby
<l1meon> jhass: ok, I'll try, thanks
cemerick has quit [Ping timeout: 240 seconds]
jaguarmagenta has joined #ruby
craigp has joined #ruby
koooge has quit [Quit: Leaving...]
craigp has quit [Client Quit]
jaguarmagenta has quit [Ping timeout: 260 seconds]
hutch34_ has quit [Quit: WeeChat 1.5]
palms has quit [Ping timeout: 252 seconds]
domgetter has joined #ruby
wazzat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yiota has quit [Quit: Textual IRC Client: www.textualapp.com]
theozaurus has joined #ruby
dgynn has joined #ruby
certainty has quit [Ping timeout: 250 seconds]
web_nanners has quit [Max SendQ exceeded]
palms has joined #ruby
Yiota has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
hutch34 has joined #ruby
edwinvdgraaf has joined #ruby
dgynn has quit [Client Quit]
aufi has quit [Quit: Odcházím]
webnanners has joined #ruby
maletor3 has joined #ruby
goeast has joined #ruby
cd83x has joined #ruby
edwinvdg_ has joined #ruby
David_H_Smith has quit []
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
bkxd has joined #ruby
r_rios has quit [Ping timeout: 244 seconds]
David_H_Smith has joined #ruby
David_H_Smith has quit [Remote host closed the connection]
johnzorn` has joined #ruby
David_H_Smith has joined #ruby
maletor3 has quit [Ping timeout: 260 seconds]
goeast has quit [Ping timeout: 240 seconds]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
Pupeno has quit [Remote host closed the connection]
johnzorn` has quit [Remote host closed the connection]
theozaurus has quit [Quit: Leaving.]
dionysus69 has quit [Ping timeout: 258 seconds]
cwenner has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 260 seconds]
infra-red has joined #ruby
<ironcamel> why does my $LOAD_PATH not include my gem path (the path where gems are installed). is that expected?
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bougyman_ has quit [Changing host]
bougyman_ has joined #ruby
bougyman_ is now known as bougyman
<ironcamel> this is making it so ruby can't see gems i installed
<jhass> ironcamel: yes, rubygems hooks require and adds the gem's load_paths to it
<jhass> no, that's not the right cause for that symptom
<jhass> using bundler perhaps?
Devalo has quit [Remote host closed the connection]
kareeoleez has quit [Remote host closed the connection]
babblebre has joined #ruby
mattwashere has quit [Remote host closed the connection]
<ironcamel> jhass: when i use bundler it works. i can bundle install; bundle exec foo.rb;
norc has joined #ruby
<jhass> yes, doesn't invalidate what I said so far
Pupeno has joined #ruby
<jhass> so what doesn't work? real context and no fake values please
<ironcamel> but i don't want to jump through that hoop
Xentil has joined #ruby
[Butch] has joined #ruby
scepticulous has quit [Ping timeout: 264 seconds]
<ironcamel> irb(main):001:0> require 'json'
<ironcamel> LoadError: no such file to load -- json
<ironcamel> i have gem installed it, and it is in my gem path
<ironcamel> but why isn't my gem path in my load path?
<jhass> you're using 1.8
<ironcamel> is that why?
<jhass> you have to start with require "rubygems"
<ironcamel> interesting ...
sid_fules has quit [Read error: Connection reset by peer]
RobertBirnie has joined #ruby
<jhass> or just use a supported Ruby version
<domgetter> ironcamel: that's a very old version of Ruby
<ironcamel> that fixed it, thanks jhass
dionysus69 has joined #ruby
<ironcamel> i was googling everything trying to figure this out
<jhass> yes, we moved past that issue 6 years ago
<ironcamel> domgetter: i know. but i am stuck with centos 6. this is for work.
aegis3121 has quit [Quit: Textual IRC Client: www.textualapp.com]
fowl has joined #ruby
goeast has joined #ruby
<domgetter> You can't petition for an upgrade? You could point out that Ruby 1.8 is EOL, Ruby 1.9 is EOL, and that 2.0 will be EOL soon, and that you need Ruby 2.1+, but be prepared for them saying that other itnernal products depend on that version of Ruby
chouhoulis has quit [Ping timeout: 258 seconds]
Pupeno has quit [Ping timeout: 250 seconds]
<ironcamel> i tried that domgetter. the response i got was that supposedly redhat/centos backports security fixes for all the software in their repos
<ironcamel> that's basically what you are paying for when you pay redhat
<ironcamel> seems like that would require hordes of developers to support all that old software
<jhass> yes, you pay for pain ;)
skolman__ has joined #ruby
roamingdog has quit [Remote host closed the connection]
tax has quit [Quit: Leaving]
mattwashere has joined #ruby
glcx has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
<glcx> mira
<glcx> fail
<jhass> cle
<jhass> ure
symm- has quit [Quit: Leaving...]
<domgetter> ironcamel I don't know much about RedHat, but aren't there packages you can use or something? This list has more modern versions of Ruby available: https://access.redhat.com/products/Red_Hat_Enterprise_Linux/Developer/#dev-page=5
infra-red has quit [Remote host closed the connection]
gagrio-brb has quit [Remote host closed the connection]
joonty has quit [Quit: This computer has gone to sleep]
roamingdog has joined #ruby
<ironcamel> i'm stuck with what centos 6 provides out of the box, which is ruby 1.8.7 :(
kies has quit [Ping timeout: 252 seconds]
<ironcamel> for this particular project
whathappens has joined #ruby
aegis3121 has joined #ruby
ta_ has joined #ruby
Xentil_ has joined #ruby
<shevy> you poor man
<ironcamel> it's not so bad. i get to use 2.3 for most everything else.
<shevy> if there is one distribution that is slower than debian stable, it must be centos
<bougyman> what do you mean by slow?
mleung has joined #ruby
<domgetter> shevy I dunno, I think Herd is the slowest. HEYOOOO
<shevy> debian usually lags behind releases
Xentil has quit [Read error: Connection reset by peer]
amclain has joined #ruby
<bougyman> oh, slow to update software?
<shevy> to change to more recent software, yeah
Xentil has joined #ruby
<shevy> I think the current ruby in debian stable is 2.1.x something
dcluna has quit [Remote host closed the connection]
Xentil_ has quit [Ping timeout: 240 seconds]
<xpt> ~
freija_ has quit [Ping timeout: 260 seconds]
maletor3 has joined #ruby
crst has joined #ruby
mattwashere has quit [Remote host closed the connection]
mattwashere has joined #ruby
goeast_ has joined #ruby
<shevy> ironcamel my dream system would be to have multiple versions of everything running side by side, on a 10TB hdd, for the last 30 years!
Cohedrin has joined #ruby
<shevy> then I could use ruby 1.0 too
goeast has quit [Ping timeout: 272 seconds]
goeast_ is now known as goeast
<crst> Hi, how can I convert a string into a unix server friendly string?
zacsek has quit [Quit: Leaving]
aegis3121 has quit [Ping timeout: 276 seconds]
gtsai has joined #ruby
einarj has quit [Remote host closed the connection]
<ironcamel> my dream system would have the latest bleeding version of everything. that's why i run arch linux at home.
<domgetter> crst: What do you mean by "unix server friendly"?
<crst> domgetter: i.e. - instead of whitespaces, removal of strange characters like à ä ñ
kies has joined #ruby
<crst> like good a filename
<crst> on a unix server
PlasmaStar has quit [Ping timeout: 250 seconds]
PlasmaStar has joined #ruby
jancel has joined #ruby
Xentil_ has joined #ruby
<smathy> gsub /\W/, '_'
<smathy> ?
<domgetter> >> " - instead of whitespaces, removal of strange characters like à ä ñ".gsub(/ /, "-").gsub(/[^a-zA-Z0-9,-]/, '')
<ruby[bot]> domgetter: # => "---instead-of-whitespaces,-removal-of-strange-characters-like---" (https://eval.in/582834)
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
glcx has quit [Quit: Quitte]
Snowy has quit [Remote host closed the connection]
<domgetter> Of course, you'd want to specify all the characters you want to keep around
terlar has quit [Ping timeout: 252 seconds]
duoi has quit [Max SendQ exceeded]
duoi has joined #ruby
duoi has joined #ruby
duoi has quit [Changing host]
sepp2k has quit [Quit: Leaving.]
alfiemax has joined #ruby
kies has quit [Ping timeout: 252 seconds]
<alfiemax> hi
Xentil has quit [Ping timeout: 244 seconds]
<alfiemax> is it possible to stream a large file instead of loading the entire thing into memory?
PlasmaStar has quit [Ping timeout: 264 seconds]
<crst> domgetter: thank you that's very nice! I just broke the function with a `/` . Is there no ruby module? It should really include any possible bad character.
mattwashere has quit [Remote host closed the connection]
Xentil has joined #ruby
mello has quit [Quit: Lost terminal]
<Bish> norc: when will ruby get rid of GIL
<Bish> and have native threads :3
<domgetter> crst: "I just broke the function with a `/`" I don't know what you mean by this. "any possible bad character" Ruby doesn't know every possible bad character for every possible situation, since any character can be made to be bad
<norc> Bish, native threads we have had since 1.9
Xentil_ has quit [Ping timeout: 260 seconds]
<norc> Bish, and the GIL really has no meaningful impact that you will know about.
<domgetter> Bish: Rubinius and JRuby have no GIL
<Bish> domgetter: rubinius isn't faster, and i hate everything java.. even if its just the vm
<norc> Bish, all the GIL really does is protect the inner workings of Ruby so it wont crash, you can do multithreading just fine with it.
<Bish> and c extensions
<Bish> norc: MRI multithreading doesn't feel native :/
<domgetter> Bish I didn't say Rubinius was faster :)
<Bish> like when i spawn 128 threads to do something my cores aren't equally ded
<norc> Bish, it depends on what you are doing.
<Bish> domgetter: yeah but where is the benefit from using rubinius, i love rubinius but it doesn't work for me
<norc> Bish, are you I/O bound?
<Bish> yep
<Bish> like sockets.
<norc> Bish, that is why.
<Bish> I/O fucks up my threads?
<Bish> fucks up => blocks ?
<domgetter> Bish: No, I/O just doesn't use the computation resources of your computer to their fullest extent
<domgetter> since the threads are waiting around for more information from the network or drive
<norc> No, but if you have 128 I/O bound threads, what kind of conclusion about your CPU does that allow for? ...
<Bish> *tests with calculations*
<Bish> gimme a good example what i can calculate
<Bish> pi?
<domgetter> Bish: If you're on MRI, you won't peg your cores
<Bish> yeah and why is that?
<domgetter> Because Ruby has a GIL
<domgetter> more specifically, because MRI has a GIL
<crst> domgetter: I just put a / in the string and the function broke. I know there's a lot of possibilities for bad characters, that's why I was looking for a module, i.e. to change filenames for unix servers that they're not causing any problem.
<Bish> domgetter: well norc says otheriwse
Snowy has joined #ruby
<norc> domgetter, that is nonsense.
<norc> domgetter, the GIL just protects some inner workings of Ruby to prevent actual crashes (not just race conditions).
<norc> domgetter, as a result *some* methods are actually atomic, but those are corner cases.
chip__ has joined #ruby
lsmola_ has quit [Remote host closed the connection]
PlasmaStar has joined #ruby
Xentil_ has joined #ruby
certainty has joined #ruby
mtkd has quit [Ping timeout: 276 seconds]
JesseH has joined #ruby
<crst> domgetter: I'm sorry a " was causing it to break not a /
<domgetter> norc: I'm going to have to disagree with you. I have a 4 core machine, and just ran 4.times { threads << Thread.new { loop { 1+1 } } }; threads.first.join and it only used 25% of my processor
ishe_ua has quit [Remote host closed the connection]
k3rn31 has joined #ruby
ZeroeSparticus has quit [Quit: ZeroeSparticus]
mtkd has joined #ruby
<norc> domgetter, great. You discovered that all the high performance multi threaded Ruby applications obviously do not bring any performance benefit at all. Go tell the developers of Thin, Typhoeus, Puma and the thousands of other projects.
<norc> They must have missed it.
cdg has quit [Remote host closed the connection]
<domgetter> norc: what are you talking about? They fork the process. I was talking about why threading won't peg cpus
<norc> They dont. The three examples I mentioned are threading based.
Xentil has quit [Ping timeout: 260 seconds]
rodfersou|lunch is now known as rodfersou
nanoz has joined #ruby
solocshaw1 has joined #ruby
certainty has quit [Ping timeout: 252 seconds]
Xentil_ has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 260 seconds]
wrkrcoop has left #ruby [#ruby]
solocshaw1 is now known as solocshaw
johnbat26 has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
zyzioziom has quit [Quit: zyzioziom]
deadnull_ has joined #ruby
harai54 has joined #ruby
<shevy> ack I saw an at_exit there
<norc> domgetter, also
<norc> domgetter, why are you picking a SERVER from a SPEC as proof that Typhoeus is process based?
<norc> okay
tjohnson has joined #ruby
<norc> perhaps typhoeus is actually process based idk.
<norc> but threading works.
<domgetter> norc: I have provided proof that Threads cannot peg a multi-core cpu on multiple modern versions of Ruby. Do you have a code snippit that proves otherwise?
sid_fules has joined #ruby
kies has joined #ruby
kgrz has joined #ruby
<domgetter> I'm also open to my methodology being shown insufficient. Perhaps I didn't use Thread correctly, or I didn't set an environment variable or configuration setting somewhere
<norc> domgetter, sorry have had a bad day.
<norc> domgetter, it is a valid question.
fowl has quit [Ping timeout: 272 seconds]
van has quit [Remote host closed the connection]
<Bish> peace and happiness all over the world!
AlexJakeGreen has quit [Remote host closed the connection]
sepp2k has joined #ruby
<shevy> welcome to #php!
<norc> asm>> 1+1
<Bish> is php nice and friendly?
<ruby[bot]> norc: I have disassembled your code, the result is at https://eval.in/582854
TomyWork has quit [Quit: Leaving]
<shevy> Bish I don't remember... I never stayed for too long on #php ... I think the online docs are good though
weckl has quit [Quit: Leaving]
<domgetter> I always liked how the php docs had lots of examples
<norc> domgetter, I think this is actually a corner case where you hit the GIL.
<norc> domgetter, the reason is quite simple though, you don't do much, and the overhead of simply running that loop is protected by the GIL.
<Bish> those are big corners :D
<domgetter> norc: ah, okay. So is there something else I can run in those threads that won't "hit the GIL"?
<norc> domgetter, yeah let me just come up with something sensible.
<domgetter> fair enough
<Bish> but if i+=1 hits the gil, nearly everything hits the gil
synthroid has quit []
<domgetter> Bish: not necessarily. Math operations are dealt with slightly differently than other method calls for efficiency, if I remember correctly. So it's possible they interact with the GIL differntly as well
zyzioziom has joined #ruby
duoi has quit [Max SendQ exceeded]
duoi has joined #ruby
moeabdol has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
<norc> domgetter, 10.times { threads << Thread.new { 100_000.times { File.open("/dev/zero").read(10_000) } } }
<norc> domgetter, it is a contrived example, but it works.
djbkd has joined #ruby
<norc> domgetter, so yeah, if you are CPU bound and use a lot of ruby core functionality then the GIL will hurt you.
<domgetter> norc: I just ran that, and it only pegged one core again. Did I do something wrong?
nando293921 has joined #ruby
<Bish> so GIL is a bad thing.
<norc> Bish, yes but not as much as people make it out to be.
agit0 has joined #ruby
<norc> domgetter, on my system that hits both CPUs at about 50%. Which ruby are you using, and which operating system are you on?
nankyokusei has quit [Ping timeout: 264 seconds]
<domgetter> norc: so even on your system it's not pegging the cpu's?
<norc> domgetter, as it shouldn't because it is I/O bound.
neanderslob has quit [Ping timeout: 240 seconds]
neanderslob_ has quit [Ping timeout: 250 seconds]
<norc> domgetter, but you can use the data and do calculations with it.
neanderslob has joined #ruby
neanderslob_ has joined #ruby
neanderslob has quit [Disconnected by services]
<toretore> ruby code is not going to "peg all cpus" no matter the code in question
<domgetter> norc: My claim is that because of the GIL, it is impossible to use MRI/YARV and ruby Threads to use all cores as much as possible on a machine
<norc> domgetter, here is some reality for you. When your system runs between 1,000 and 20,000 threads concurrently at any given second, any trivial code without a carefully prepared environment wont prove much.
neanderslob has joined #ruby
Pupeno has joined #ruby
chip__ has quit [Quit: Quitte]
<domgetter> norc: I think we're talking past each other.
fowl has joined #ruby
<domgetter> There is no test you can provide in which Ruby will peg all the cpus using only one ruby process and Threads
<norc> domgetter, what is your operating system, which ruby and ruby version are you using?
<domgetter> (unless you only have one core)
<bougyman> domgetter: you mean MRI, right?
<domgetter> bougyman: yes
<bougyman> cause that can be done with jruby and rubinius.
Pupeno has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
<bougyman> oic, you prefaced it with MRI/YARV
freerobby has joined #ruby
<domgetter> I'm on Win7 with Ruby 2.2.3 and 4 cores, and a VPS with Centos7, Ruby 2.3.1 and 2 cores. On neither machine am I able to utilize 100% of all cores at once using a single Ruby process and Ruby Threads
jancel has quit [Remote host closed the connection]
fumduq- has quit [Ping timeout: 252 seconds]
firstdayonthejob has joined #ruby
<norc> domgetter, I think MRI has no native thread support on windows.
hahuang65 has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
<domgetter> norc: and I'm claiming that that's irrelevant to what I'm saying. YARV's GIL is the culprit here. That's why the test failed on my CentOS box.
<norc> domgetter, well my test is succeeding,
cwenner has joined #ruby
<domgetter> no, by your own words, the test failed
jackjackdripper has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<domgetter> You said that you were only using 50% of your 2-core machine's cpu usage
deadnull_ has quit [Quit: Bye]
sid_fules has quit [Read error: Connection reset by peer]
<norc> did a bit of adjusting, but basically the same snippet.
codecop has joined #ruby
<norc> 10.times { threads << Thread.new { 1_000_000.times { a = File.open("/dev/zero"); a.read(10_0000); a.close } } }
<norc> That will peg your CPUs.
sid_fules has joined #ruby
Pupeno has joined #ruby
<Bish> doesn't for me
<Bish> about 2,3 cores
<Bish> of 4 (or 8 with hyperthreading)
JJM has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
nando293921 has quit [Ping timeout: 240 seconds]
sid_fules has joined #ruby
<shevy> :D
<Bish> with rubinius it's easily making all go red
<Bish> while being 1/100 as fast as mri :D
<shevy> lol
c0mrad3 has joined #ruby
jaruga___ has quit [Ping timeout: 240 seconds]
Pupeno has quit [Remote host closed the connection]
<Bish> the world of beautfil code really lacks of a good multiprocessor thing
nando293921 has joined #ruby
* Bish hopes for crystal even though thats not interpreted
CoderPuppy has quit [Ping timeout: 272 seconds]
sid_fules has quit [Read error: Connection reset by peer]
<Bish> or mri, which would be gr8
jespada has quit [Quit: WeeChat 1.5-dev]
<domgetter> norc: that did cause my laptop (Linux Mint w/ 2.3.1 and 4 cores) to use 60-70% of my total cpu, so that does prove my claim wrong.
troulouliou_div2 has quit [Remote host closed the connection]
<domgetter> is it because of the amount of resulting system calls that the kernel can make outside of ruby?
cpup has joined #ruby
sid_fules has joined #ruby
<norc> domgetter, the GIL just protects bits and pieces from Ruby internals. So if your code spends most of its time outside (say waiting for I/O or in another C extension) it wont notice the GIL.
flashpoint9 has quit [Remote host closed the connection]
<Bish> but adding 2 integers is as basic as it gets
goeast has quit [Ping timeout: 240 seconds]
<domgetter> Bish: calling the "+" method on a Ruby object isn't the same as writing 1 + 1 in C
<norc> Bish, you are repeatedly calling a block.
beilabs has joined #ruby
<norc> Bish, and *that* is far more expensive than the 1+1
<norc> And a lot of that is protected by the GIL.
<Bish> domgetter: i get that, it still should do it as fast as its can
<Bish> not as fast ruby can, but as fast as the cpu can
<norc> asm>> 1+1
<ruby[bot]> norc: I have disassembled your code, the result is at https://eval.in/582885
<Bish> and that doesn't happen
nando293921 has quit [Read error: Connection reset by peer]
<norc> there, that is what a simple + costs you in Ruby.
nando293921 has joined #ruby
<Bish> i get all that.
<Bish> but still, my pc should do it, with all it has
<toretore> Bish: it doesn't work because of the gil, it's that simple
<Bish> not being able to peg the cpu with stupid shit is stupid
Coldblackice has joined #ruby
<norc> Bish, you can peg it with stupid shit.
<toretore> ruby code -> lock the gil -> 1 cpu
ZeroeSparticus has joined #ruby
dhk has joined #ruby
<Bish> norc: show me code that does
<norc> Bish, my example from above.
Bugboy1028 has quit [Remote host closed the connection]
sid_fules has quit [Read error: Connection reset by peer]
<norc> Bish, or do some heavy math.
<Bish> well doesn't work dude.
<norc> Bish, what operating system?
<norc> What ruby version?
<Bish> ruby 2.3.1p112
<Bish> Linux bank 4.1.15-gentoo-r1 #3 SMP
<domgetter> Bish: it worked in the sense that it used more than one core of your machine
sid_fules has joined #ruby
<Bish> yeah that is right
Yiota has joined #ruby
cpup has quit [Ping timeout: 276 seconds]
<norc> Bish, the thing is a simple loop { 1+1 } will actually spend most of its time executing the block, and most of that is GIL protected.
davedev24 has quit []
<Bish> that all doesn't matter
<norc> Bish, so if you do heavy math for example then you wont be GIL constraint, unless you make great use of some ruby objects like Arrays
wilsonc91 has joined #ruby
<Bish> well, if i was about to build a interpreter
<chrisseaton> norc: that's not right - the gil isn't released while MRI is interpreting math operations
<Bish> i would soooo avoid having a gil
<Bish> no matter what it costs
<norc> chrisseaton, oh?
<domgetter> norc: I still contend that the reason your example uses more than one core is because of the system calls which the kernel does outside of the Ruby process
Snowy has quit [Remote host closed the connection]
<domgetter> But I coule be wrong
<Bish> like what syscall? read?
<domgetter> could*
<norc> domgetter, so? If a mutual exclusion lock was held, then another thread couldn't do the same.
SilverKey has quit [Quit: Halted.]
sid_fules has quit [Read error: Connection reset by peer]
<Bish> gil sucks eod :D
<toretore> norc: the kernel is not restricted by mri's gil
<norc> toretore, except while the syscall is being executed your thread that called is not.
Bugboy1028 has joined #ruby
wtiger has joined #ruby
<wtiger> Hi!
<norc> toretore, and if your thread held a lock before the syscall was made, it still does even if the kernel gets preempted for another thread.
<Bish> how can ruby devs be happy with that
<Bish> or python or whatever
<Bish> is pypy actually good?
<wtiger> I'm a newbie ruby/rails developer, should I use a ruby version manager?
<Bish> wtiger: pretty much opinion based
<toretore> wtiger: yes, use chruby/ruby-install
sid_fules has joined #ruby
<wtiger> toretore: why?
<domgetter> wtiger: I do. I like rvm. Others like rbenv or chruby
<Bish> imho not.
<norc> wtiger, most operating systems dont ship modern versions of ruby
<toretore> wtiger: just do as i say, and you will be less frustrated
<norc> wtiger, that is reason enough for ruby-install at least.
<Bish> toretore: i was frustrated.
<toretore> norc: i'm not sure what you're getting at here..
mattwashere has joined #ruby
<toretore> norc: re: kernel and gil
<domgetter> wtiger it relieves a lot of headache involved with installing Ruby, and it provides safe ways to hop between different versions of gems as well
<Bish> opinions opinions.
<norc> toretore, say thread A acquires the gil through whatever mechanism and then makes a syscall - if thread b then tries to acquire the gil it will block..
<toretore> norc: especially that something might be preempting the linux kernel :P
jancel has joined #ruby
<norc> toretore, nested interrupts are possible and they happen.
<toretore> norc: ok, and?
<norc> toretore, you have NMIs too.
<toretore> norc: fair
<norc> there is so many things that constantly interrupt even the kernel.
<toretore> but that's not very relevant in this discussion about the gil afaict
<norc> toretore, you just said the kernel is not restricted by mri's gil. But the code calling the kernel is.
<toretore> norc: i'm still not sure what the point you're trying to get at is
<domgetter> nroc: aren't there times where a thread just made a syscall, and then a different thread gets loaded, but the original syscall can continue on?
<norc> domgetter, sure. The kernel can get preempted just like anything else.
<norc> domgetter, which is whats happening.
<toretore> norc: i think the point about your code that distributed cpu time across cores was that said cpu time was spent in the kernel and not in mri
deadnull_ has joined #ruby
<norc> toretore, sure.
<toretore> so, as you said, contrived
certainty has joined #ruby
<norc> toretore, waiting on I/O is not contrived when you are looking at sockets.
<chrisseaton> norc: but MRI releases the gil while making syscalls!
<toretore> and the fact remains that ruby code run with one mri process will not run on multiple cpus simultaneously
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wtiger> norc: ruby-install?
<toretore> which was the point being made in the first place
postmodern has joined #ruby
mikeliss has joined #ruby
<toretore> norc: that i/o concurrency works well in mri is another matter
<Bish> wtiger: if you're using ubuntu have 2 choices, take a version manager like rvm or use a ppa(im prefering that)
<bougyman> those aren't the only two choices.
<wtiger> Bish: i'm on manjaro
<Bish> or you stick to a good operating system / good distro
<toretore> norc: and you can "trick" it into clocking some cpu time by using lots of i/o
<Bish> bougyman: tell me the third
<wtiger> why would I need different versions of ruby?
Yiota has joined #ruby
<Bish> wtiger: you want the new version, ubuntu doesn't ship new
<bougyman> Bish: /opt/ruby-<version>/
<wtiger> Bish: hmm
<wtiger> manjaro does though :)
<Bish> bougyman: ? whats that supposed to mean
<Bish> wtiger: well thats great then!
<mikeliss> I have a feeling this is ruby-related and I'm not a Ruby programmer, so perhaps somebody can help. I just installed the Travis CI command line tool using the instructions they provided (sudo gem install travis -v 1.8.2 --no-rdoc --no-ri), but after that I can't find the travis executible on my path. I get this error: bash: /usr/bin/travis: No such file or directory. Feels like maybe my ruby or gem configuration is wrong or some
<mikeliss> thing. Any ideas?
<Bish> just use the one of your system
<wtiger> cool
<wtiger> :D
certainty has quit [Ping timeout: 250 seconds]
hutch34 has quit [Ping timeout: 250 seconds]
<domgetter> wtiger: but the answer to your question "should I use a ruby version manager" is definitely yes, regardless of which one you choose
<wtiger> another problem
<shevy> wtiger how many ruby versions will you need?
chouhoulis has joined #ruby
hutch34 has joined #ruby
<wtiger> shevy: for now, think the latest gonna be enough
zyzioziom has quit [Ping timeout: 252 seconds]
TomyLobo has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
<norc> chrisseaton, okay.
<jhass> wtiger: you don't need a ruby version manager until you need another ruby version, latest until then is indeed fine. When you'll need it, since you're on a Arch derivative, I can recommend https://gist.github.com/jhass/8839655bb038e829fba1 ;)
Spami has joined #ruby
<wtiger> jhass: duly noted :P
<wtiger> another problem, i accedintally ran sudo gem install ____ one time, and now all my gems default install to /usr/lib/.. in place of .gem/ruby/2.3.0
bkxd has joined #ruby
<wtiger> if I don't use sudo, it complains about file permission error
pepee has joined #ruby
dhk has quit [Ping timeout: 264 seconds]
SilverKey has joined #ruby
mattwash_ has joined #ruby
moeabdol has joined #ruby
David27 has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
mattwashere has quit [Ping timeout: 260 seconds]
moei has joined #ruby
Spami has quit [Quit: Leaving]
moeabdol has quit [Ping timeout: 240 seconds]
mikeliss has quit [Quit: mikeliss]
Dimik has quit []
aegis3121 has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
flashpoint9 has joined #ruby
AlexRussia has joined #ruby
crystal77 has joined #ruby
palms has quit [Ping timeout: 252 seconds]
Yiota has joined #ruby
crystal77 has quit [Client Quit]
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wtiger has left #ruby ["WeeChat 1.5"]
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
crystal77 has joined #ruby
palms has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
floatingpoint has joined #ruby
gizmore has joined #ruby
nofacade has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
Dimik has joined #ruby
nando293921 has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
ChiefAlexander has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
sid_fules has quit [Read error: Connection reset by peer]
nofacade has quit [Quit: Textual IRC Client: www.textualapp.com]
gingray has quit [Ping timeout: 260 seconds]
<smathy> I still prefer using a version manager because I then have more flexibility when doing an upgrade.
Zighuatl has quit [Remote host closed the connection]
Devalo has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kirun has joined #ruby
shinnya has quit [Ping timeout: 260 seconds]
dhk has joined #ruby
jancel has quit [Remote host closed the connection]
Pupeno has joined #ruby
Devalo has quit [Ping timeout: 244 seconds]
moeabdol has joined #ruby
jancel has joined #ruby
roamingdog has quit [Remote host closed the connection]
joonty has joined #ruby
cdg has joined #ruby
yfeldblum has joined #ruby
l1meon has quit [Ping timeout: 264 seconds]
karmatr0n has quit [Ping timeout: 260 seconds]
deadnull_ has quit [Quit: Bye]
irbedded has quit [Ping timeout: 250 seconds]
CJKinni` has quit [Ping timeout: 244 seconds]
l1meon has joined #ruby
MrBusiness3 has joined #ruby
sauvin_ has quit [Remote host closed the connection]
hutch34_ has joined #ruby
hutch34 has quit [Ping timeout: 264 seconds]
Yiota has joined #ruby
Pupeno has quit [Remote host closed the connection]
Pupeno has joined #ruby
thermistor has joined #ruby
MrBusiness2 has quit [Ping timeout: 250 seconds]
SCHAAP137 has joined #ruby
certainty has joined #ruby
multi_io has quit [Ping timeout: 276 seconds]
miqlas-H has joined #ruby
jancel has quit [Remote host closed the connection]
<miqlas-H> Hi Guys!
zyzioziom has joined #ruby
<miqlas-H> I have some problems to get Ruby compiled on Haiku. Have somebody time to help me?
multi_io has joined #ruby
zyzioziom has quit [Client Quit]
norc has quit [Quit: Leaving]
<bruce_lee> \(^_^)/ @all
sid_fules has joined #ruby
<bruce_lee> how can I check if file_1 is "newer" than file_1
nanoz has quit [Read error: Connection reset by peer]
<bruce_lee> something like comparing latest modification_time
strncat has joined #ruby
certainty has quit [Ping timeout: 276 seconds]
strncat has left #ruby [#ruby]
nanoz has joined #ruby
vdamewood has joined #ruby
terrabl has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<terrabl> Hey guys I am having some trouble implementing CSS and JS on my html.erb files in Rails. The gist included (https://gist.github.com/anonymous/6b4262524ad96ccd48dd) has all of the files that I believe would be necessary for you to understand the problem. In application.html I changed the original stylesheet and javascript link tags to be 'default' instead of 'application' because that is what I read to do on a SO question. If you have
durrellchamorro has joined #ruby
<terrabl> I attempted to read up on the asset pipeline and I think I understand but I am always getting a 404 error when I try to load up default.js and default.css
<Zarthus> ?rubyonrails
<Zarthus> !rubyonrails
<Zarthus> ?rails
<Zarthus> ¯\_(ツ)_/¯
<terrabl> Yes rails
<Zarthus> There's a #rubyonrails channel
<Zarthus> you might wanna knock there
blockchan has joined #ruby
<terrabl> Lol I just got redirected here from anotehr channel
<terrabl> How would I get there?
<Zarthus> your problem sounds rails related
<Zarthus> /join #rubyonrails
durrellchamorro has left #ruby [#ruby]
<terrabl> it for sure is
<terrabl> thanks guys
Yiota has joined #ruby
crst has quit [Quit: Leaving...]
tvw has quit [Ping timeout: 244 seconds]
binaryplease1 has joined #ruby
thejamespinto has joined #ruby
tvw has joined #ruby
durrellchamorro has joined #ruby
<bruce_lee> the following perl would check the modification-dates and be true if $pendingFile is "newer" than $drawingDataFile: if (-M $pendingFile < -M $drawingDataFile) {
<bruce_lee> what is the equivalent in ruby?
<domgetter> bruce_lee: File#stat
ur5us has joined #ruby
evidex has quit [Ping timeout: 276 seconds]
binaryplease has quit [Ping timeout: 246 seconds]
howdoi has joined #ruby
durrellchamorro has quit [Quit: durrellchamorro]
djbkd has quit [Remote host closed the connection]
<bruce_lee> domgetter: thank you
nando293921 has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilverKey has quit [Quit: Halted.]
kgrz has quit [Ping timeout: 276 seconds]
uberbrodt has quit [Quit: leaving]
nankyokusei has joined #ruby
dunpeal has joined #ruby
SilverKey has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
binaryplease1 is now known as binaryplease
d0nn1e has quit [Ping timeout: 260 seconds]
benzrf has left #ruby ["WeeChat 1.5"]
nando293921 has quit [Ping timeout: 258 seconds]
<dunpeal> How do people make sure RVM always uses a particular version?
<dunpeal> i.e. in a project managed by RVM, how do I ensure `ruby` calls the right Ruby interpreter I'd like to use?
d0nn1e has joined #ruby
<domgetter> dunpeal: a call to `ruby` will be whichever one is set to be the one used by rvm at that time. do `rvm list` to see which one is current, and which one is default
nankyokusei has quit [Ping timeout: 258 seconds]
<dunpeal> domgetter: right, but here's the thing: `rvm list` shows two versions, 2.2.3 and 2.3.1, and whenever I start a new bash, 2.2.3 is current, even though 2.3.1 is the default.
<dunpeal> how can I make it so 2.3.1 is always current?
nando293921 has joined #ruby
jancel has joined #ruby
ur5us has quit [Remote host closed the connection]
k3rn31 has quit [Quit: Computer has gone to sleep.]
<domgetter> dunpeal: This StackOverflow answer says it's possible you're loading rvm twice, so you can check for that: http://stackoverflow.com/a/5605028
<domgetter> Try the other answers in there too, perhaps
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
Yiota has joined #ruby
<dunpeal> domgetter: hm. I'm loading rvm in .bashrc, on a multi-window setup
<dunpeal> (using GNU screen)
Zackio has quit [Remote host closed the connection]
<domgetter> dunpeal did you put in that echo to see if it's being loaded twice?
braincrash has quit [Ping timeout: 272 seconds]
Yiota has quit [Client Quit]
N1njturt1e has joined #ruby
<dunpeal> domgetter: I'm loading it in a function. The first time I run `rvm`, it loads the script.
sid_fules has quit [Read error: Connection reset by peer]
<domgetter> dunpeal If it were me, I'd try the echo thing as a sanity check
<dunpeal> domgetter: it's only loaded once, though in an unusual way.
braincrash has joined #ruby
<domgetter> right, and if that's true, then the echo would only appear once. but I don't know if it only appears once, because you didn't try it yet
minimalism has quit [Quit: minimalism]
Zackio has joined #ruby
boboc has joined #ruby
<dunpeal> domgetter: I did :) it's not.
<domgetter> oh okay. hmm... you said you're using screen. what shell?
Gasher has quit [Ping timeout: 258 seconds]
<domgetter> echo $SHELL will show you if you're not sure
maletor3 has quit [Ping timeout: 260 seconds]
<boboc> guys i have a sample rails app, i have installed nginx and puma to test a droplet on digital ocean to try to deploy a sample app. i have added the 'bind tcp://0.0.0.0:9292' setting in puma.rb and 'server 127.0.0.1:9292' in the nginx upstream directive but when i access a route from the rails app it doesn't work. puma was started and it shows it is listening on tcp://0.0.0.0:9292. Any idea what the problem is? thanks
<domgetter> boboc: for rails questions, try ##rubyonrails
<boboc> domgetter: thanks
terlar has joined #ruby
N1njturt1e has quit []
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
N1njturt1e has joined #ruby
mdw_ has quit [Quit: Sleeping Zzzzz]
terrabl has quit [Quit: Page closed]
suchness has quit [Remote host closed the connection]
ddffg has quit [Ping timeout: 240 seconds]
tildes_ has joined #ruby
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blockchan has quit [Quit: blockchan]
Zackio has quit [Read error: Connection reset by peer]
shinnya has joined #ruby
fowl has left #ruby ["Leaving"]
tildes_ has quit [Ping timeout: 272 seconds]
<dunpeal> domgetter: /bin/bash
smathy_ has joined #ruby
<domgetter> dunpeal: yea, I'm not sure. Is there a reason you're loading rvm in an unusual way?
tvw has quit [Remote host closed the connection]
smathy has quit [Ping timeout: 258 seconds]
biberu has joined #ruby
N1njturt1e has quit [Remote host closed the connection]
<shevy> you people need to have less problems!
vinleod has joined #ruby
<domgetter> shevy No risk, no reward!
abshak3 has joined #ruby
vdamewood has quit [Ping timeout: 250 seconds]
Fernando-Basso has quit [Ping timeout: 264 seconds]
abshak3 has left #ruby [#ruby]
maletor3 has joined #ruby
sid_fules has joined #ruby
certainty has joined #ruby
<Zarthus> 99 bugs in the code. take one down, patch it around. 123 bugs in the code.
dionysus69 has joined #ruby
devbug has joined #ruby
zeroDi has joined #ruby
N1njturt1e has joined #ruby
certainty has quit [Ping timeout: 276 seconds]
johnmilton has quit [Remote host closed the connection]
pawnbox_ has joined #ruby
moeabdol has quit [Ping timeout: 276 seconds]
r_rios has joined #ruby
pawnbox has quit [Ping timeout: 258 seconds]
ddffg has joined #ruby
sumobob has joined #ruby
bkxd has joined #ruby
hutch34 has joined #ruby
<tubbo> haha
ebernhardson has joined #ruby
<ebernhardson> is it possible to share scope from outside a def into it? for example: https://repl.it/CYL7
hutch34_ has quit [Ping timeout: 244 seconds]
MrBusiness3 has quit [Ping timeout: 260 seconds]
postmodern has quit [Ping timeout: 260 seconds]
Fernando-Basso has joined #ruby
<ebernhardson> or will i have to wrap it all into a class or something to have instance vars
arooni has joined #ruby
xlegoman has joined #ruby
xlegoman has quit [Client Quit]
Pupeno has quit [Remote host closed the connection]
ruby271 has joined #ruby
ruby271 has quit [Client Quit]
floatingpoint has joined #ruby
Fernando-Basso has quit [Client Quit]
bkxd has quit [Ping timeout: 272 seconds]
codecop has quit [Remote host closed the connection]
dhk has quit [Ping timeout: 264 seconds]
tinnvec has quit [Remote host closed the connection]
tinnvec has joined #ruby
karmatr0n has joined #ruby
dhk has joined #ruby
ouroboros_buddha has joined #ruby
Zackio has joined #ruby
jancel has quit [Remote host closed the connection]
jenrzzz has joined #ruby
tinnvec has quit [Remote host closed the connection]
tinnvec has joined #ruby
symm- has joined #ruby
postmodern has joined #ruby
mattwash_ has quit [Remote host closed the connection]
tinnvec has quit [Remote host closed the connection]
ljames has joined #ruby
tinnvec has joined #ruby
whathappens has quit [Remote host closed the connection]
kareeoleez has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
kareeoleez has quit [Remote host closed the connection]
whathappens has joined #ruby
whathappens has quit [Remote host closed the connection]
<ironcamel> ebernhardson: you can make it @foo = false in the outside scope
N1njturt1e has quit [Remote host closed the connection]
mattwashere has joined #ruby
abshak3 has joined #ruby
ur5us has joined #ruby
<abshak3> hey
abshak3 has left #ruby [#ruby]
abshak3 has joined #ruby
joonty has quit [Quit: This computer has gone to sleep]
<abshak3> Anyone there?
wilsonc91 has joined #ruby
Madplatypus has joined #ruby
<abshak3> hello?
<abshak3> ?
kareeoleez has joined #ruby
wilsonc91 has quit [Client Quit]
mattwashere has quit [Remote host closed the connection]
noobsu_ has quit [Remote host closed the connection]
<jhass> abshak3: 'sup?
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
kareeoleez has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
allcentury has quit [Ping timeout: 260 seconds]
<abshak3> hey
<abshak3> so the thing is
<abshak3> even though i love ruby
<abshak3> i can't seem to find ANY practical uses of it
<abshak3> the language is the best i have seen
<abshak3> except rails it is never used
<abshak3> and i use nodejs for web
<abshak3> so what should i do?
karmatr0n has joined #ruby
djbkd has joined #ruby
freerobby has quit [Quit: Leaving.]
<abshak3> should i continue to learn?
scepticulous has joined #ruby
fishy123 has joined #ruby
<fishy123> a
Omni_ has quit [Ping timeout: 276 seconds]
fishy123 has quit [Client Quit]
davedev24 has joined #ruby
kent\n has quit [Ping timeout: 260 seconds]
futilegames has joined #ruby
<abshak3> ...
<aegis3121> Personally, I use it for writing scripts to automate things on my home computer. I would much rather write ruby scripts than bash
arooni has quit [Ping timeout: 260 seconds]
<hxegon> or if you need to process data, it's actually quite nice
<abshak3> I use ruby scripts too
arooni_ has joined #ruby
<abshak3> I am currently learning metaprogramming in ruby
jrafanie has quit [Read error: Connection reset by peer]
<abshak3> and I don't see myself using it anywhere
<abshak3> it is a great concept and I am having fun
kent\n has joined #ruby
kent\n has joined #ruby
kent\n has quit [Changing host]
miqlas-H has quit [Ping timeout: 276 seconds]
<hxegon> You should avoid metaprogramming most of the time actually
<abshak3> why?
<hxegon> It can help you short term, but long term it makes maintinence issues
jrafanie has joined #ruby
<hxegon> In my experience.
<adaedra> It can makes things harder to understand
chouhoul_ has joined #ruby
<hxegon> what adaedra said
<adaedra> It's a nice trick to know, but it's easy to abuse
<hxegon> And there is usually a better way to do it
<abshak3> but I should learn it right?
<adaedra> Some of it is nice, but too much of it is Rails^W bad
dcluna has joined #ruby
<adaedra> Yeah, knowing it is good
rodfersou has quit [Quit: leaving]
<adaedra> Knowing when to use it too
maucar has quit [Quit: Leaving]
<abshak3> ok tell me this
ouroboros_buddha has quit [Quit: Mutter: www.mutterirc.com]
joonty has joined #ruby
Omni_ has joined #ruby
blockchan has joined #ruby
<abshak3> my friend knows python,MEAN stack, and C/C++,Java
<abshak3> i know ruby,MEAN C/C++ C#
<abshak3> i do know python as much as he knows ruby
<abshak3> which is beginner level
sid_fules has quit [Read error: Connection reset by peer]
<abshak3> during a job interview wouldn't they favour him
freerobby has joined #ruby
<adaedra> Depends on the job interview
buddhabrot has joined #ruby
chouhoulis has quit [Ping timeout: 252 seconds]
<abshak3> But generally though
blackgoat has joined #ruby
<abshak3> python has numpy,pandas and the like
<adaedra> Is that a trick question to ask us which language is better?
<shevy> YES
<abshak3> and in my college any jobs looking for ruby are usually focused on rails
<shevy> RUBY IS BETTER
Pupeno has joined #ruby
MrBusiness3 has joined #ruby
joonty has quit [Client Quit]
<adaedra> shevy: shoo.
<shevy> abshak3 your college knows who to pay and who not to pay
<Nilium> Ruby's basically my perl, if that helps explain non-rails usage
N1njturt1e has joined #ruby
<Nilium> Since I've never used Rails and don't plan to start.
<abshak3> so ruby is more of a hobby if you don't learn rails
<shevy> abshak3 hah funny - the exact same words were used some time ago :>
<Nilium> No, I use it at work for a lot of stuff.
<adaedra> Sure, Ruby usage in the wild is a lot Rails, but it can also be used for scripting and utilities
<buddhabrot> yeah, and there are other frameworks in Ruby too
<adaedra> Or other programs, really
<hxegon> No interview happens in a vacuum
<buddhabrot> Hanami was getting a lot of press recently
<buddhabrot> and there are a butt-load of micro frameworks
<buddhabrot> like NYNY, Sinatra, Cuba, etc
<hxegon> buddhabrot: excited to maybe try it out this weekend
futilegames has quit [Quit: futilegames]
<Nilium> But it's for tools and scripts, not really huge processes. You _can_ do bigger things in Ruby, but Rails tends to drown things out.
<abshak3> Sinatra is nice too
<hxegon> sinatra is amazing, I have like 3-4 work projects that use it
* adaedra does pure-Rack
<shevy> adaedra nerd!
<Nilium> I also do graphics programming in Ruby, but that's more of a because-I-can thing
<abshak3> exactly
<adaedra> shevy: shoo again.
<buddhabrot> hxegon: I've been looking for something that isn't Rails but has many-to-many object model support
<buddhabrot> Hanami doesn't
<abshak3> everything in ruby is because you can
<Nilium> Reminds me, I need to update my glfw3 gem
<shevy> abshak3 you seem to be very limited
<abshak3> meaning?
DoubleMalt has quit [Remote host closed the connection]
<adaedra> buddhabrot: Sequel?
<Nilium> Also, I primarily use Go at work anyway, since Ruby wasn't on the table for most things.
<abshak3> shevy: limited??
<hxegon> adaedra, buddhabrot yeah I was going to say use Sequel
<adaedra> Sequel is love
<shevy> abshak3 yeah
<abshak3> explain pls
<hxegon> adaedra: I haven't used it myself, but I've seen some articles on using it with hanami
<shevy> abshak3 just look at what you wrote
<Nilium> Sequel was certainly handy when I was doing a bunch of migrations in our DB ages ago
johnmilton has joined #ruby
<abshak3> I am a dumdum, can you spell it out for me/
<adaedra> abshak3: don't worry, I don't see either.
<hxegon> abshak3: You can do pretty much anything you can do with python in ruby
JesseH has quit [Quit: Leaving]
<adaedra> and no one is better than the other — just use what suits you best.
<abshak3> I get it, and that is why i chose ruby over python
<abshak3> coz it suits me better
<hxegon> abshak3: even if ruby doesn't have the library, you can use java libraries with jruby
<adaedra> nice !
<abshak3> and i love the object oriented part
<Nilium> Or write your own C extensions.
<hxegon> abshak3: me too
<hxegon> or that Nilium
scepticulous has quit [Ping timeout: 276 seconds]
<Nilium> I think half of my gems are C extensions.
<Nilium> It's unhealthy.
<hxegon> abshak3: for the record, I don't really use rails in my day job
<shevy> hmm
<shevy> depends on how many gems you have
<shevy> it's ok if you have 2 gems!
tildes_ has joined #ruby
<adaedra> it's ok whatever you do.
<shevy> hanmac probably has half of his gems for C++ code
<abshak3> I just find it weird that ruby is ignored so much
<adaedra> "ignored"
buddhabrot has quit [Ping timeout: 264 seconds]
<hanmac> shevy nearly all of mine are in C++
<abshak3> blogs and articles
<adaedra> it's maturing
<shevy> hanmac aha!
fmcgeough has quit [Quit: fmcgeough]
<adaedra> it's past the WOW phase, I would say
<hxegon> wasn't rails top of HN like, yesterday for dropping jquery?
<adaedra> they're dropping jQuery?
<shevy> dunno
<hxegon> but yeah, we've past peak hype
<ironcamel> what was the reason for dropping jquery?
<hxegon> passed*
<adaedra> which is a good thing imo.
johnmilton has quit [Ping timeout: 260 seconds]
<hanmac> shevy: but currently i am a traitor and do java code ;P
<shevy> hanmac for work?
ZeroeSparticus has quit [Quit: ZeroeSparticus]
<abshak3> I really hope we get more gems
<Nilium> I converted my office to using Go primarily, so I'm the ultra-traitor
<adaedra> more gems?
<shevy> java for work, python for fun, ruby for love
<adaedra> we already have plenty
<hanmac> shevy: no for fun, checkout: http://www.slightlymagic.net/wiki/Forge
<hxegon> abshak3: what gem do you wish ruby had?
babblebre has quit [Quit: Connection closed for inactivity]
<abshak3> something like pandas
<shevy> oh... I wanted to write a card-game in ruby too
<adaedra> 119,142 is not enough for you?
<r_rios> I have a question: is it acceptable (i.e. less bad) to use global variables in a Ruby script intended to just run and give a result?
<Nilium> Most gems are unmaintained or dead, so I'm not sure the number's worth anything.
<Nilium> r_rios: If it's just something you run and it exits with a result I don't see a problem.
freerobby has quit [Quit: Leaving.]
<shevy> I am trying to rescue some gems but old code (like 2005 and such) is surprisingly tedious to adapt
<Nilium> Some purists might disagree but ultimately the script's self-contained.
<abshak3> numbers alone don't amount for much now, do they?
<adaedra> :)
arooni_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<abshak3> numpy and pandas
<adaedra> "data analysis ruby" yields some interesting results in google.
<Nilium> shevy: The majority of the problems I have are around 1.8 era gems
<Nilium> And at that point I just go "well this is dead to me"
<hxegon> r_rios: gist the script?
<r_rios> Nilium: Yeah, that's exactly what I was thinking, but I wanted to see if anyone had good arguments against my point
arooni has joined #ruby
postmodern has joined #ruby
cd83x has quit [Remote host closed the connection]
<r_rios> hxegon: I just started writing it
<Nilium> I guess if you wanted to be a real jerk you could try to mmap a file and then in a C extension convince Ruby that the mmap'd file was the global variable's storage or something
<Nilium> I don't know how you'd do it but it sounds like fun
<abshak3> is daru good?
<Nilium> Is that a food?
<r_rios> hxegon: But, to be more specific, the script is going to read a file, select some lines and extract some data out of them
<r_rios> Then exit
dionysus69 has quit [Ping timeout: 272 seconds]
<abshak3> daru is what came up when i google "data analysis ruby"
karmatr0n has quit [Ping timeout: 258 seconds]
flashpoint9 has quit [Remote host closed the connection]
<abshak3> so I hope it's not a food
<adaedra> :p
<adaedra> well, try it with your use cases, that's still the best way
<hxegon> r_rios: what do the global vars contain?
<shevy> abshak3 you can find a lot of websites about precious stones too if you search for ruby :)
<hxegon> r_rios: (to preface, I think it's fine if it's self contained and kept short, but there could be a better way to do it)
<shevy> google is not yet skynet 2.1
<r_rios> hxegon: The splitted file (something like $lines = IO.read('file').split("\n"))
<r_rios> Although maybe I could make it a constant instead
dionysus69 has joined #ruby
Pupeno has quit [Quit: Leaving...]
<abshak3> shevy: true
<adaedra> &ri File#each_line r_rios
Pupeno has joined #ruby
<hxegon> there we go, thanks adaedra you nerd
<r_rios> lol
agentmee1kat has quit [Ping timeout: 246 seconds]
* adaedra pats the bot
chouhoulis has joined #ruby
* `derpy purrs
<shevy> bot sex again
<adaedra> o_O
<adaedra> calm down here
<r_rios> Thanks, I imagined there would be a method like that one, but I didn't know what was it
<hxegon> is there somewhere I can make a PR to give it a random chance of saying something sexual?
<adaedra> not really.
beilabs has quit [Remote host closed the connection]
certainty has joined #ruby
<abshak3> `derpy moans
<hxegon> pretty much lol
beilabs has joined #ruby
<hxegon> r_rios: you could also put it in a Struct or something, but it depends on how much effort you want to put into it
Pupeno has quit [Changing host]
Pupeno has joined #ruby
agentmeerkat has joined #ruby
<shevy> abshak3 lol
sid_fules has joined #ruby
<abshak3> thanks guys, I will basically keep using ruby and hissing at the people who don't
<shevy> `derpy quacks.
wrkrcoop has joined #ruby
<adaedra> abshak3: well no, let people use what they wish
<r_rios> hxegon: What's the advantage of that over a global (or a constant)?
chouhoul_ has quit [Ping timeout: 250 seconds]
<hxegon> `derpy calculates the prime factors of a 1000000 digit number
<abshak3> adaedra: of course, but i will still hiss at them
<wrkrcoop> im trying to use Savon to make a soap request, but i can’t seem to figure out where the body goes?? anyon experienced with SOAP able to take a look? http://savonrb.com/version2/
<adaedra> r_rios: I think a better thing to do would be show to show the script in question?
<hxegon> adaedra: he is still mid writing it
<r_rios> Not written yet. I'l just start writing and then ask for suggestions
<adaedra> aha
rgb-one has joined #ruby
<rgb-one> > 1 + 1
<adaedra> Personally, for medium to large scripts, I usually wrap in a class so I use instance variables.
<rgb-one> >> 1 + 1
<ruby[bot]> rgb-one: # => 2 (https://eval.in/582989)
<hxegon> r_rios: it's hard to say without looking at code, but generally Structs help me with keeping stuff contained and grouped logically without going through the effort of 'making a real class'
<rgb-one> wasn't the name rubot?
<hxegon> used to be
johnmilton has joined #ruby
<adaedra> ruboto's been enhanced and has been renamed.
<adaedra> ?botsnack
<ruby[bot]> nomnomnomnom
<rgb-one> I see
<rgb-one> so Ruboto is now Rubot?
<hxegon> >> puts '?botsnack'
<ruby[bot]> hxegon: # => ?botsnack ...check link for more (https://eval.in/582990)
certainty has quit [Ping timeout: 276 seconds]
<hxegon> ircbot quine project: canceled
beilabs has quit [Ping timeout: 264 seconds]
minimalism has joined #ruby
rgb-one has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
blockchan has quit [Ping timeout: 240 seconds]
rgb-one has joined #ruby
<abshak3> >> puts [1,2,3].map {|x| x+5}.reduce(&:+)
sid_fules has quit [Ping timeout: 250 seconds]
<rgb-one> someone said something to me?
<wrkrcoop> anyone know where my body would go? http://savonrb.com/version2/
<r_rios> I just analyzed my problem again and I decided to make a class
<hxegon> r_rios: :D
<abshak3> why isn't the bot replying ;'(
<r_rios> I'm adapting some code I wrote in an irb session to a script and realized I created a couple of free functions related to the file data
<r_rios> So, yeah
<r_rios> Thanks for the help :)
<adaedra> abshak3: you need to be registered. Also, ruby[bot]'s eval feature is supposed to be for demonstrations.
<hxegon> abshak3: It might not reply to people who aren't registered
<abshak3> r_rios I want to see your code now
<abshak3> ohh ok
abshak3 has quit [Remote host closed the connection]
17WAAPNYJ has joined #ruby
tildes_ has quit [Ping timeout: 244 seconds]
<adaedra> You know, you can use /nick if you want to change your nick.
ramortegui has quit [Quit: Ex-Chat]
hxegon is now known as adeadra
17WAAPNYJ is now known as abshak3
<adaedra> (Note however it's considered bad manners to do it too often)
<abshak3> using irc client for the first time
<abshak3> used to webchat
Es0teric has joined #ruby
<abshak3> was trying to check out the features and it was being weird
<abshak3> -_-
skweek has quit [Ping timeout: 260 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
<rgb-one> what client are you using abshak3
CorOne has joined #ruby
<abshak3> XChat
<rgb-one> cool
nankyokusei has joined #ruby
romistrub has quit [Ping timeout: 250 seconds]
<abshak3> i like it so far, except for the nickname thingy
chouhoulis has quit []
<rgb-one> it doesn't set your nickname on logon?
<adaedra> we're slipping into #ruby-offtopic here.
<rgb-one> ill mention ruby in every sentence to bring it back on ;)
Pupeno has quit [Remote host closed the connection]
dhk has quit [Quit: Leaving]
adeadra is now known as hxegon
zeroDi has quit [Quit: WeeChat 1.5]
Corrosive__ has quit [Ping timeout: 240 seconds]
<abshak3> on topic
yqt has joined #ruby
haylon has joined #ruby
<abshak3> why is this?
codezomb has joined #ruby
gizmore has quit [Ping timeout: 244 seconds]
chouhoulis has joined #ruby
<abshak3> puts "wtf" if 0
<abshak3> when 0 is clearly false
<jhass> it's clearly is not
<rgb-one> >> puts "wtf" if 0
<ruby[bot]> rgb-one: # => wtf ...check link for more (https://eval.in/583003)
<hxegon> 0 is falsy in JS, but not ruby
<jhass> >> 0.is_a?(FalseClass)
<ruby[bot]> jhass: # => false (https://eval.in/583004)
<jhass> only nil and false are falsey in Ruby
<adaedra> only false and nil are falsy in Ruby
<adaedra> only jhass ninjas me
<abshak3> ohh
<jhass> falsy or falsey, I can never decide
<rgb-one> define "falsey"
<jhass> "behaves like false"
<adaedra> considered false; won't go into 'if' branch.
<pontiki> as it's not a real word, i use either spelling
nankyokusei has quit [Ping timeout: 258 seconds]
<pontiki> just depends on whether you want to be fancy or not :D
* haylon opens google
<rgb-one> thanks haylon
* jhass opens offtopic
<rgb-one> and while your at it check out thruthy for me will ya
postmodern has quit [Ping timeout: 258 seconds]
<hxegon> that might not be a real word, but that is for sure not the right spelling
<jhass> rgb-one: /join #ruby-offtopic ;)
sartan has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rgb-one> lol.. "truthy"
<sartan> hi guys! i'm very new to ruby. when setting a variable eg foo = "bar", and later using a function: def test(); puts(foo); end <-- it seems 'foo' doesn't exist if the variable is defined before the function. $globals are probably pretty awful to use as well. Waht's the best way to address this?
<sartan> as opposed to passing an alphabet soup of variables in function calls
<smathy_> sartan, OOP
<rgb-one> use a class
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
babblebre has joined #ruby
<adaedra> ^
<aegis3121> or a Struct, if a full-blown class is a bit much...
<adaedra> Just be aware of pot-pourri structures
<rgb-one> or specialized functions
<sartan> i miss python :P
scepticulous has joined #ruby
<adaedra> I'm pretty sure python has scopes too.
<pontiki> python hasn't gone anywhere
<sartan> it can access variables out of scope if namespaces aren't conflicting
<sartan> the api i'm working with is ruby-only so here i am
<r_rios> abshak3: Took me a little while: https://paste.kde.org/p20loxps0/gdgvic
<r_rios> Not a full fledged script yet, I'm using it from irb as a require
[Butch] has quit [Quit: I'm out . . .]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pontiki> `foo` as you've written it is a local variable. it will be treated as such inside the method `test` and that `foo` inside test will NOT have anything to do with the one you've defined in the outer scope
JakFrist has joined #ruby
cd83x has joined #ruby
cd83x has quit [Remote host closed the connection]
cd83x has joined #ruby
bruce_lee has quit [Ping timeout: 240 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
<sartan> so in py i'd do something like class stuff: foo="bar"; def test(self); print(self.foo).
<sartan> stuff().test()
<shevy> what is that monster
<sartan> trying to analogize what i'm observing ruby inheritance to work like
sarcas has joined #ruby
N1njturt1e has quit [Remote host closed the connection]
<shevy> well you have to make the variable persistent in ruby somehow
thermistor has quit [Quit: Connection closed for inactivity]
JakFrist has quit [Client Quit]
SilverKey has quit [Quit: Halted.]
<adaedra> translating lines by lines from a language to another is a good way to end with a bad thing
gizmore has joined #ruby
<rgb-one> yea get the idea clear and it will flow
postmodern has joined #ruby
gtsai has quit [Remote host closed the connection]
davedev2_ has joined #ruby
gtsai has joined #ruby
blockchan has joined #ruby
freerobby has joined #ruby
scepticulous has quit [Ping timeout: 252 seconds]
antgel has joined #ruby
freerobby has quit [Client Quit]
rgb-one has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
freerobby has joined #ruby
freerobby has quit [Client Quit]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
kareeoleez has joined #ruby
davedev24 has quit [Ping timeout: 260 seconds]
k3rn31 has joined #ruby
postmodern has quit [Ping timeout: 260 seconds]
sdothum has joined #ruby
haylon has quit [Quit: Leaving]
ta_ has quit [Read error: Connection reset by peer]
abshak3 has quit [Quit: Ex-Chat]
ta_ has joined #ruby
AndyWojo has joined #ruby
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<AndyWojo> if I have a string = "1 2 3 4 5 6 7", how do I split it to grab the fields 3-7
<AndyWojo> string.split(" ")[2-8]
<shevy> "1 2 3 4 5 6 7".split(' ')[2..-1] # => ["3", "4", "5", "6", "7"]
dionysus69 has quit [Ping timeout: 272 seconds]
<AndyWojo> something like that but just till the end
<adaedra> use String#split to get the individual parts as an array, then Array#slice to get the needed parts
A124 has quit [Quit: '']
der-land1 has quit [Read error: Connection reset by peer]
<adaedra> And Array#join if you want a string again.
abshak3 has joined #ruby
<shevy> adaedra is better than a bot :)
<ruurd> then join it back together.
der-landgraf has joined #ruby
<ruurd> and faster than me
whathapp_ has joined #ruby
<shevy> `derpy Array#join
<AndyWojo> perfect, thanks!
<shevy> come on derpy
<adaedra> It does not respond to that
A124 has joined #ruby
DadoCe has joined #ruby
ldnunes has quit [Quit: Leaving]
abshak3 has quit [Quit: Ex-Chat]
hightower3 has quit [Remote host closed the connection]
hutch34_ has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
<hxegon> &ri Array#join
terlar has quit [Ping timeout: 260 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
hutch34_ has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
freerobby has joined #ruby
jaguarmagenta has joined #ruby
flashpoint9 has joined #ruby
freerobby has quit [Client Quit]
bmorrison has joined #ruby
freerobby has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
gtsai has quit [Ping timeout: 250 seconds]
hutch34 has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 264 seconds]
flughafen_ has quit [Quit: WeeChat 1.3]
jaguarmagenta has quit [Ping timeout: 264 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
certainty has joined #ruby
noobsu__ has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
der-landgraf has quit [Quit: WeeChat 1.5]
N1njturt1e has joined #ruby
der-landgraf has joined #ruby
banister has joined #ruby
certainty has quit [Ping timeout: 272 seconds]
mikeiniowa has joined #ruby
skweek has joined #ruby
gizless has joined #ruby
gizless has quit [Client Quit]
<jokke> hey
<jokke> i'm a bit lost with celluloid and blocking system calls with backticks
kgrz has joined #ruby
<jokke> maybe someone can help
<jokke> in example/bar.rb i define some celluloid actors with a dsl
UserInNeed has quit [Ping timeout: 276 seconds]
haylon has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
<jokke> and one of them runs mpc -w current
<jokke> this is a blocking call
blockchan has quit [Ping timeout: 244 seconds]
hutch34 has quit [Ping timeout: 276 seconds]
<hxegon> Is the problem that it's blocking jokke ?
<haylon> I cannot for the life of me figure out how to get around this issue I'm having with JSON containing \\\\n in it or &. Either the JSON parser chokes at the & ina URL in a block of text, or I end up getting a [] noMethodError
<jokke> if i run the executable on command line everything goes as expected (except that hitting ctrl+c seems to kill only the backtick command)
<haylon> let me put it up on GitHub.
<jokke> but if i pipe the output to dzen2 it won't scroll
coffeecupp has joined #ruby
<jokke> hxegon: i think it's part of the problem
UserInNeed has joined #ruby
jancel has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
nadir has quit [Quit: Connection closed for inactivity]
kgrz has quit [Ping timeout: 252 seconds]
ledestin has joined #ruby
sdothum has joined #ruby
<hxegon> what does mpc -w do? It's for controlling mpd right?
<hxegon> jokke: ^
<haylon> So, I've got this project, called cem_sender, which is supposed to take Custom Alert input from Zabbix, and send it to some goofy Event Management system we've brewed in house. So, when i run my gem using the cli tool, it either get it choking on a & or it tells me noMethodError
nando293921 has quit [Ping timeout: 260 seconds]
<haylon> using this commadn to run it
<jokke> hxegon: in this case it just waits until an event happens (next song for example) and returns the name of the song
hutch34 has joined #ruby
Pupeno has joined #ruby
coffeecupp has quit [Quit: leaving]
<jokke> i get Errno::EPIPE: Broken pipe when i kill the process with ctrl-c
Pupeno has quit [Changing host]
Pupeno has joined #ruby
freerobby has quit [Quit: Leaving.]
<jokke> so it seems the backticks somehow know the output is pipe
<jokke> d
yfeldblum has joined #ruby
<hxegon> so backticks are not the way to go here
<haylon> I've updated the Gist to include the errors.
<hxegon> use system
<jokke> hxegon: why?
<jokke> i need to capture the output
<hxegon> err, maybe not system, but backticks block
<jokke> yes. i _want_ it to block
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hxegon> oh, I thought you said it blocking was a part of the problem
Gasher has joined #ruby
<jokke> well it might be, yes. But i still need it to block
<jokke> i'll try with IO.popen
freerobby has joined #ruby
prestorium has quit [Quit: Leaving]
n_blownapart has joined #ruby
banister has joined #ruby
<hxegon> alright, see you all later
<jokke> hxegon: bye
hxegon is now known as hxegon_afk
<jokke> thankx
<jokke> s
<hxegon_afk> np, good luck jokke
yfeldblum has quit [Remote host closed the connection]
vinleod has quit [Quit: Life beckons.]
boboc has quit []
<jokke> ok with IO.popen it's even weirder
yfeldblum has joined #ruby
allcentury has joined #ruby
gnufied has quit [Quit: Leaving]
saneax is now known as saneax_AFK
smathy_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
crystal77 has joined #ruby
jancel has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 260 seconds]
ddffg has quit [Quit: Leaving]
sepp2k has quit [Read error: Connection reset by peer]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
sarcas has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
art-solopov has joined #ruby
jenrzzz has joined #ruby
<jokke> no. it's the same
Diogo has quit [Quit: Connection closed for inactivity]
yfeldblum has quit [Ping timeout: 250 seconds]
jancel has joined #ruby
aegis3121 has quit [Ping timeout: 240 seconds]
haylon has quit [Quit: Leaving]
JJM has joined #ruby
Gasher has quit [Quit: Leaving]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
biberu has quit [Read error: Connection reset by peer]
<jokke> so basically my problem is that `` seem to behave differently depending if output is a pipe or tty
sdothum has joined #ruby
<jokke> (as well as IO.popen)
jackjackdripper has quit [Quit: Leaving.]
jancel has quit [Remote host closed the connection]
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> hmm
bkxd has joined #ruby
<jokke> ahh
<jokke> flush seems to do the trick
<jokke> yess
<jokke> awesome
deet_ has joined #ruby
<jokke> celluloid is awesome
alfiemax has left #ruby ["Leaving"]
<deet_> Hi. I'm new to Ruby programming. I would like to ask a couple of questions regarding crossplatform games. First, I don't get RubyMotion. All the examples seem to rely on SpriteKit -- what is the point of RubyMotion+SpriteKit vs Swift+SpriteKit. It will not be crossplatform if you use RubyMotion+SpriteKit, correct?
freerobby has quit [Quit: Leaving.]
Pupeno has quit [Remote host closed the connection]
dcluna has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
bmorrison has quit [Quit: bmorrison]
kies has quit [Ping timeout: 260 seconds]
Pupeno has joined #ruby
kareeoleez has quit [Remote host closed the connection]
sneakerhax has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
skweek has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 260 seconds]
hahuang65 has joined #ruby
l1meon has quit [Quit: Konversation terminated!]
Noxilex has joined #ruby
Mia has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
workmad3 has quit [Ping timeout: 252 seconds]
certainty has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
moeabdol has joined #ruby
pawnbox has joined #ruby
cosmicfires has quit [Quit: Leaving]
pawnbox_ has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
mattwashere has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
pawnbox has quit [Remote host closed the connection]
hahuang65 has joined #ruby
<shevy> is anyone here even using that
certainty has quit [Ping timeout: 276 seconds]
<bruce_lee> deet_: I'm new to ruby too, the following projects might be interesting for you: mobiruby mruby
moeabdol has quit [Ping timeout: 260 seconds]
SilverKey has joined #ruby
saneax_AFK is now known as saneax
CamCam2 has joined #ruby
<deet_> thx bruce, I will check them out. I've been playing with gosu in the meanwhile
<bruce_lee> deet_: please notice that I'm new to ruby too!
agent_white has quit [Quit: brbheadinghome]
duncannz has joined #ruby
CamCam2 has quit [Ping timeout: 244 seconds]
mattwashere has quit [Remote host closed the connection]
daguilaraguilar has quit [Read error: Connection reset by peer]
N1njturt1e has quit [Remote host closed the connection]
jud has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
Yiota has joined #ruby
jud has joined #ruby
domgetter has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
domgetter has joined #ruby
SilverKey has quit [Quit: Halted.]
xlegoman has joined #ruby
<deet_> I found this quite helpful: https://leanpub.com/developing-games-with-ruby/read
Noxilex has quit [Remote host closed the connection]
vdamewood has joined #ruby
Yiota has quit [Client Quit]
drale2k has quit [Quit: ZNC - http://znc.in]
hahuang65 has quit [Ping timeout: 264 seconds]
hahuang65 has joined #ruby
mattwashere has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
drale2k has joined #ruby
kareeoleez has joined #ruby
tildes_ has joined #ruby
shazaum has joined #ruby
firstdayonthejob has quit [Ping timeout: 244 seconds]
<bruce_lee> deet_: depending on your game, maybe apache-cordova can be the right tool, but it has nothing to do with ruby
Pupeno has quit [Remote host closed the connection]
skweek has joined #ruby
duckpuppy has joined #ruby
<bruce_lee> rubymotion seems only to be available for apple (osx), it is not free-software or open-source
chouhoulis has quit [Remote host closed the connection]
<bruce_lee> maybe ruby is not the right language to write cross-plattform games, especially if you think about ios and android
<deet_> No, I think gosu has a lot of promise. I've made some sample code and like it so far.
<bruce_lee> guess javascript is the way to go
bkxd_ has joined #ruby
<deet_> I think if I write a game with ruby+gosu gem it will compile on both
kareeoleez has quit [Ping timeout: 246 seconds]
<bruce_lee> ok, as I said, I'm really new to ruby
bkxd has quit [Ping timeout: 244 seconds]
JJM has joined #ruby
N1njturt1e has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
JJM has quit [Read error: Connection reset by peer]
felipec has joined #ruby
<felipec> What's the best way to convert a byte array to a string? Like [76, 111, 103, 105, 110, 32, 83, 101, 115, 115, 105, 111, 110, 32, 49, 0]
c0mrad3 has quit [Quit: Connection closed for inactivity]
hahuang65 has quit [Ping timeout: 240 seconds]
whathapp_ has quit [Quit: Leaving...]
noobsu__ has quit [Remote host closed the connection]
<pipework> felipec: #to_s
<pipework> Look into it.
JesseH has joined #ruby
n_blownapart has quit []
cdg has quit [Remote host closed the connection]
<pipework> felipec: More specifically, #chr with a map could be useful
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has joined #ruby
<felipec> pipework: that almost works... except there's an extra \0
JesseH2 has joined #ruby
JesseH2 has quit [Client Quit]
<pipework> felipec: then use inject with chr and map and conditions.
vdamewood has quit [Quit: Life beckons.]
diegoaguilar has joined #ruby
<felipec> pipework: why would I do that? [0..-1].to_s works
cd83x has quit [Remote host closed the connection]
<pipework> felipec: Because you know your data better than I do.
diegoaguilar has quit [Max SendQ exceeded]
<havenwood> >> [76, 111, 103, 105, 110, 32, 83, 101, 115, 115, 105, 111, 110, 32, 49, 0].pack 'c*'
<ruby[bot]> havenwood: # => "Login Session 1\x00" (https://eval.in/583025)
<pipework> woo pack, I never remember that
diegoaguilar has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
<felipec> pipework: it's not my data, that's a typical string representation
neanderslob has quit [Remote host closed the connection]
neanderslob_ has quit [Remote host closed the connection]
<felipec> havenwood: actually [0..-2].pack('c*')
<pipework> felipec: I just didn't know whether your array would contain more than one \0 or not.
<felipec> pipework: a typical string array ends with a \0
<pipework> felipec: huh, didn't know that was a thing 'typically'.
postmodern has joined #ruby
<felipec> pipework: it is
mattwashere has quit []
<pontiki> in C it is
nando293921 has joined #ruby
<art-solopov> Has anyone here used Jekyll?
pawnbox_ has quit [Remote host closed the connection]
<havenwood> art-solopov: Yes, people here have used Jekyll.
<pontiki> art-solopov: i use it a lot
roamingdog has joined #ruby
<pontiki> there's a #jekyll channel in fact
<art-solopov> ...That there is.
<art-solopov> I probably shouldn't attempt at programming questions at 2:30 AM. >_<
<art-solopov> Sorry.
<pontiki> best time for them!
<felipec> pontiki: and pretty much everything is written in C, including Ruby
<havenwood> felipec: [110, 111, 109, 0].pack('c*').chomp("\x0")
<havenwood> felipec: Just the reference implementation though as there are many Rubies.
bmorrison has joined #ruby
<pipework> pontiki: I can only kinda read c. Most of the time I spent thinking about character arrays was with erlang long ago, it feels.
deet_ has quit [Ping timeout: 250 seconds]
<art-solopov> pontiki: Haha, okay. =) Would you recommend using a theme for my first-time blog or would you recommend just writing the templates and CSS manually?
roamingd_ has joined #ruby
roamingdog has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 260 seconds]
roamingd_ has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
TomyLobo has quit [Ping timeout: 252 seconds]
domgetter has quit [Ping timeout: 276 seconds]
sneakerhax has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
mleung has quit [Quit: mleung]
jaguarmagenta has quit [Ping timeout: 276 seconds]
beilabs has joined #ruby
certainty has joined #ruby
rattatmatt has joined #ruby
N1njturt1e has quit [Remote host closed the connection]
kies has joined #ruby
art-solopov has quit [Quit: Konversation terminated!]
beilabs has quit [Ping timeout: 260 seconds]
postmodern has quit [Ping timeout: 258 seconds]
pawnbox has joined #ruby
certainty has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
n1x-nz has joined #ruby
www-bukolay-com has joined #ruby
pawnbox has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
Azure has quit [Remote host closed the connection]
ur5us has joined #ruby
SilverKey has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
SilverKey has quit [Client Quit]
tjohnson has quit [Ping timeout: 264 seconds]
jmhmccr has quit [Ping timeout: 264 seconds]
c355e3b has quit [Ping timeout: 264 seconds]
jimcroft has quit [Ping timeout: 264 seconds]
aphprentice has quit [Ping timeout: 264 seconds]
mroth has quit [Ping timeout: 264 seconds]
SilverKey has joined #ruby
www-bukolay-com has quit [Ping timeout: 252 seconds]
grvgr has quit [Ping timeout: 264 seconds]
mitsuhiko has quit [Ping timeout: 264 seconds]
knowtheory has quit [Ping timeout: 264 seconds]
err_ok has quit [Ping timeout: 264 seconds]
ebernhardson has left #ruby [#ruby]
marr has quit [Ping timeout: 260 seconds]
aphprentice has joined #ruby
mroth has joined #ruby
c355e3b has joined #ruby
mitsuhiko has joined #ruby
err_ok has joined #ruby
jimcroft has joined #ruby
shazaum has quit [Quit: Leaving]
knowtheory has joined #ruby
grvgr has joined #ruby
Ropeney has joined #ruby
Ropeney has quit [Client Quit]