wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swein has quit [Ping timeout: 252 seconds]
halfamind has joined #ruby
tax has joined #ruby
wilsonc91 has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
al2o3-cr has joined #ruby
wilsonc91 has quit [Client Quit]
wilsonc91 has joined #ruby
frem_ has quit [Quit: Connection closed for inactivity]
halfamind has quit [Ping timeout: 260 seconds]
Todd has quit [Ping timeout: 240 seconds]
davedev24 has quit []
swein has joined #ruby
Coldblackice has quit [Ping timeout: 252 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
swills has quit [Ping timeout: 246 seconds]
<agent_white>
Evenin' folks
beauby has quit [Ping timeout: 250 seconds]
maxdoubt has quit [Quit: maxdoubt]
maxdoubt has joined #ruby
ropeney has joined #ruby
swein has quit [Ping timeout: 244 seconds]
swills has joined #ruby
flashpoint9 has joined #ruby
rrichardsr3 has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
sdwrage has joined #ruby
nerium_ has joined #ruby
diegoviola has joined #ruby
nerium has quit [Ping timeout: 276 seconds]
nerium_ is now known as nerium
swein has joined #ruby
<al2o3-cr>
good morning
maxdoubt has quit [Quit: maxdoubt]
gtsai_ has quit [Remote host closed the connection]
jetpack_joe has quit [Ping timeout: 276 seconds]
jaguarmagenta has joined #ruby
Snowy has quit [Remote host closed the connection]
swein has quit [Ping timeout: 252 seconds]
akiTendo has quit [Quit: akiTendo]
blackmesa has joined #ruby
akiTendo has joined #ruby
rbennacer has joined #ruby
halfamind has joined #ruby
jaguarmagenta has quit [Ping timeout: 252 seconds]
isxek has quit [Remote host closed the connection]
mistermocha has joined #ruby
nerium has quit [Quit: nerium]
swein has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
tax has quit [Read error: Connection reset by peer]
tax has joined #ruby
swein has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
minimalism has joined #ruby
arescorpio has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
chopin has joined #ruby
swein has joined #ruby
tfitts has quit [Quit: Connection closed for inactivity]
DarthGandalf has quit [Ping timeout: 276 seconds]
Vingador has joined #ruby
DarthGandalf has joined #ruby
tax has quit [Remote host closed the connection]
tax has joined #ruby
tax has quit [Remote host closed the connection]
tax has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swein has quit [Ping timeout: 260 seconds]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
maxdoubt has joined #ruby
A5101 has joined #ruby
Madplatypus has joined #ruby
ur5us has quit [Remote host closed the connection]
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swein has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
blackgoat has joined #ruby
auzty has joined #ruby
bronson has joined #ruby
wilsonc91 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swein has quit [Ping timeout: 244 seconds]
hutch34_ has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 252 seconds]
hightower2 has quit [Ping timeout: 260 seconds]
lukeholder has joined #ruby
lukeholder has quit [Client Quit]
chip_ has quit [Ping timeout: 252 seconds]
tax has quit [Quit: Leaving]
tax has joined #ruby
swein has joined #ruby
kies has quit [Ping timeout: 252 seconds]
arlek_ has joined #ruby
swein has quit [Ping timeout: 250 seconds]
Kallis has quit [Read error: Connection reset by peer]
Amnez777 has quit [Ping timeout: 276 seconds]
akiTendo has quit [Quit: akiTendo]
sdwrage has quit [Quit: This computer has gone to sleep]
cdg has joined #ruby
dessm has joined #ruby
Amnez777 has joined #ruby
hutch34_ has joined #ruby
impermanence has joined #ruby
govg has joined #ruby
tax has quit [Remote host closed the connection]
tax has joined #ruby
swein has joined #ruby
curses has joined #ruby
Tyrant_ has quit [Quit: Tyrant_]
<dessm>
Hi, I have three questions. I am wondering why (Q1) exactly and how (Q2) 'first' works on hashes. 'first' is neither listed in the ruby documentation under hashes nor is it listed in the irb if I type Hash.methods. I suspect that my understanding is still too deficient to google this properly since my search terms don't seem to turn up answers to the question. Q3: I am also wondering if...
<dessm>
...'first' indeed does work on hashes where I might find a COMPLETE list of all the methods that can be applied to hashes.Thank you :)
ur5us has joined #ruby
tax has quit [Read error: Connection reset by peer]
wreet has joined #ruby
swein has quit [Ping timeout: 244 seconds]
curses has quit [Ping timeout: 252 seconds]
cosmicfires has joined #ruby
nankyokusei has joined #ruby
<cosmicfires>
Hi is it better to use a timer or sleep in ruby?
rrichardsr3 has quit [Ping timeout: 260 seconds]
tax has joined #ruby
chipotle has quit [Ping timeout: 240 seconds]
cholq has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
Masteroshi57 has joined #ruby
sdwrage has joined #ruby
blackmesa has joined #ruby
swein has joined #ruby
rrichardsr3 has joined #ruby
JoshGlzBrk has joined #ruby
<ramfjord_>
If you're making a gem, and you want to use yard for documentation, do you put it as a development dependency or do you just make sure it's installed in your build environment?
cholq has quit [Quit: Leaving...]
<ramfjord_>
cosmicfires: what are you trying to do?
<Radar>
ramfjord_: development dependency. Yard should not be required for the functionality of the gem
<ramfjord_>
dessm: I'm guessing you couldn't find #first in the instance method list at something like http://docs.ruby-lang.org/en/2.0.0/Hash.html. When you can't find a method, look at the parent and the included modules
<cosmicfires>
I want to ping periodically to check for network outages
<cosmicfires>
ramfjord_
<ramfjord_>
cosmicfires: I would expect sleep to work fine for that
<cosmicfires>
thanks
<cosmicfires>
is there a difference in performance?
<ramfjord_>
Radar: yeah, but you could argue that it's not even a development dependency - you only need it to generate the docs, not to run the tests
stannard has joined #ruby
<Radar>
ramfjord_: Docs are useful for development.
<cosmicfires>
when would it be good to use the timers gem?
<ramfjord_>
mmmk, it's easier to put it in there anyway
<dessm>
Ah I see, thank you ramfjord_
<ramfjord_>
I've just noticed some projects taht seem to use Yard for docs, but don't have it as a dev dependency (PG gem)
tmtwd has joined #ruby
Todd has joined #ruby
<ramfjord_>
cosmicfires: I'm not familiar with that gem, but from looking at the docs[1] it seems that you would still need to call #sleep. It looks like Timer is mainly for tracking the amount of time you've take with certain tasks. [1] http://www.rubydoc.info/github/rubyworks/facets/Timer
<cosmicfires>
thank you ramfjord_
mbreedlove has joined #ruby
<ramfjord_>
The second example there is calling sleep, and using timer just for keeping track of the amount of time between resets
tax has quit [Quit: Leaving]
tax has joined #ruby
<cosmicfires>
I've been working with a system where sleep paraylizes most of it you have to use timers
stannard has quit [Ping timeout: 244 seconds]
maxdoubt has quit [Quit: maxdoubt]
noService has quit [Ping timeout: 260 seconds]
gtsai has joined #ruby
lukeholder has joined #ruby
mistermocha has joined #ruby
swein has joined #ruby
braincrash has quit [Quit: bye bye]
dessm has quit [Remote host closed the connection]
maxdoubt has joined #ruby
halfamind has quit [Quit: Leaving.]
zenlot has joined #ruby
gix has quit [Ping timeout: 244 seconds]
arlek_ has quit [Ping timeout: 240 seconds]
gtsai has quit [Ping timeout: 260 seconds]
zenlot6 has quit [Ping timeout: 244 seconds]
swein has quit [Ping timeout: 244 seconds]
|2701 has quit [Quit: Connection closed for inactivity]
shakes has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.5]
LoneHerm_ has joined #ruby
gix has joined #ruby
braincrash has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
tax has quit [Quit: Leaving]
skweek has quit [Ping timeout: 260 seconds]
vdamewood has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
vdamewood has joined #ruby
swein has joined #ruby
chipotle has joined #ruby
MrSamuel has joined #ruby
sesquipedalian has joined #ruby
yfeldblum has quit [Remote host closed the connection]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kumardev has joined #ruby
fbandov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kumardev>
Hi , i wanted to make a standalone authentication in ruby . Any suggestions except SAML ?
giz|work has joined #ruby
craigp has joined #ruby
blackmesa has joined #ruby
CloCkWeRX has left #ruby [#ruby]
kgrz has quit [Ping timeout: 260 seconds]
fenre has quit [Read error: Connection reset by peer]
fenre has joined #ruby
swein has joined #ruby
Mia has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
Snowy has joined #ruby
kgrz has joined #ruby
chrismytton has joined #ruby
mbreedlo_ has joined #ruby
fenre has quit [Read error: Connection reset by peer]
swein has quit [Ping timeout: 244 seconds]
cosmicfires has quit [Ping timeout: 276 seconds]
rbennacer has quit [Ping timeout: 276 seconds]
noService has quit [Ping timeout: 244 seconds]
ocbtec has joined #ruby
fenre has joined #ruby
fenre has quit [Remote host closed the connection]
marr has joined #ruby
fenre has joined #ruby
fbandov has joined #ruby
insanedreamer has quit [Quit: insanedreamer]
Olipro has joined #ruby
swein has joined #ruby
biberu has joined #ruby
fenre has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
janebootydoe has joined #ruby
Shashikant86 has joined #ruby
nando293921 has quit [Ping timeout: 276 seconds]
astrobunny has joined #ruby
noService has joined #ruby
fenre has joined #ruby
fenre has quit [Remote host closed the connection]
cosmicfires has joined #ruby
fenre has joined #ruby
swein has quit [Ping timeout: 246 seconds]
mbreedlove has joined #ruby
Gasher has joined #ruby
mbreedlo_ has quit [Ping timeout: 276 seconds]
mbreedlove has quit [Max SendQ exceeded]
mbreedlove has joined #ruby
astrobunny has quit [Remote host closed the connection]
drptbl has joined #ruby
drptbl has quit [Client Quit]
insanedreamer has joined #ruby
Dimik has quit [Ping timeout: 246 seconds]
noService has quit [Ping timeout: 240 seconds]
swein has joined #ruby
bronson has joined #ruby
tomphp has joined #ruby
bookies has quit [Quit: Page closed]
Devalo has joined #ruby
tomphp has quit [Max SendQ exceeded]
swein has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
swein has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
chouhoulis has joined #ruby
ext0 has joined #ruby
saush has joined #ruby
aupadhye has joined #ruby
Shashikant86 has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
<saush>
I am currently benchmarking ruby, so for every commit made to ruby trunk I have to fetch, recompile everything and then benchmark. Compiling takes me a lot of time. Is there another way out?
gregf_ has left #ruby [#ruby]
lsmola has quit [Ping timeout: 260 seconds]
d0lph1n98 has quit [Ping timeout: 260 seconds]
rbennacer has quit [Ping timeout: 244 seconds]
swein has quit [Ping timeout: 260 seconds]
curses has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
skade has joined #ruby
aupadhye is now known as aupadhye|bomgar
astrobunny has quit [Ping timeout: 260 seconds]
toretore has joined #ruby
noService has joined #ruby
rbennacer has joined #ruby
curses has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
eljimmy has quit [Quit: Leaving]
eljimmy has joined #ruby
swein has joined #ruby
cosmicfires has quit [Ping timeout: 276 seconds]
noService has quit [Ping timeout: 260 seconds]
chipotle has quit [Quit: cheerio]
nankyokusei has quit [Ping timeout: 260 seconds]
swein has quit [Ping timeout: 244 seconds]
evidex has joined #ruby
rbennacer has quit [Ping timeout: 250 seconds]
<saush>
I am currently benchmarking ruby, so for every commit made to ruby trunk I have to fetch, recompile everything and then benchmark. Compiling takes me a lot of time. Is there another way out?
platzhirsch has joined #ruby
zenlot6 has joined #ruby
blackmesa has joined #ruby
jaguarmagenta has joined #ruby
<hanmac>
saush: i don't think there is an easy way ... i also use "rvm reinstall ruby-head" to rebuild ruby
auzty has quit [Ping timeout: 246 seconds]
zenlot has quit [Ping timeout: 260 seconds]
LoneHermit has joined #ruby
<saush>
hanmac: So for a single commit we need to recompile everything? Can't we use the previously compiled ruby in some way and just make the necessary changes?
rbennacer has joined #ruby
saneax_AFK is now known as saneax
labaleine has joined #ruby
skade has quit [Ping timeout: 260 seconds]
qasaur has joined #ruby
swein has joined #ruby
<hanmac>
saush: it depends how you checkout and install your ruby ... if you have a checked out repo from ruby and you build it there, than it should probably only build whats needed to build ... otherwise you might get a problem because you might need to run configure again (and then you probably need to rebuild all again too) ... so its not an easy answer for that.
skade has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
jaguarmagenta has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
cosmicfires has joined #ruby
qasaur has quit [Client Quit]
LoneHermit has quit [Ping timeout: 252 seconds]
rbennacer has quit [Read error: Connection reset by peer]
rbennace_ has joined #ruby
mbreedlove has quit [Ping timeout: 260 seconds]
Schweppes has quit [Ping timeout: 260 seconds]
swein has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
rbennace_ has quit [Ping timeout: 252 seconds]
d0lph1n98 has joined #ruby
saush has quit [Quit: Page closed]
auzty has joined #ruby
JakFrist has joined #ruby
noService has joined #ruby
codecop has joined #ruby
rbennacer has joined #ruby
swein has joined #ruby
syndikate has joined #ruby
blaxter has joined #ruby
mbreedlove has joined #ruby
gregf_ has joined #ruby
noService has quit [Ping timeout: 252 seconds]
mbreedlove has quit [Max SendQ exceeded]
rbennacer has quit [Ping timeout: 244 seconds]
swein has quit [Ping timeout: 244 seconds]
mbreedlove has joined #ruby
kareeoleez is now known as MrTapas
rrichardsr3 has joined #ruby
MrTapas is now known as ForaoTapa
mbreedlove has quit [Max SendQ exceeded]
nadir has quit [Quit: Connection closed for inactivity]
jackjackdripper1 has quit [Quit: Leaving.]
ForaoTapa is now known as kareeoleez
rrichardsr3 has quit [Max SendQ exceeded]
mbreedlove has joined #ruby
rrichardsr3 has joined #ruby
zenlot has joined #ruby
mbreedlove has quit [Max SendQ exceeded]
chipotle has joined #ruby
zenlot6 has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
skade has quit [Read error: Connection reset by peer]
mbreedlove has joined #ruby
c355e3b has joined #ruby
swein has joined #ruby
dumdedum has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
skade has joined #ruby
terlar has quit [Quit: WeeChat 1.5]
framling has joined #ruby
skade has quit [Read error: Connection reset by peer]
noobsu has quit [Remote host closed the connection]
swein has quit [Ping timeout: 276 seconds]
skade has joined #ruby
noService has joined #ruby
yfeldblum has joined #ruby
gtsai has joined #ruby
RegulationD has joined #ruby
rrichardsr3 has quit [Quit: Apparantly my attempt to stay awake has failed...]
depesz has left #ruby ["WeeChat 1.5-dev"]
sameerynho has quit [Ping timeout: 252 seconds]
jud^ is now known as jud
lsmola has joined #ruby
jud has quit [Changing host]
jud has joined #ruby
swein has joined #ruby
aupadhye|bomgar is now known as aupadhye|brb
johnbat26 has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
gtsai has quit [Ping timeout: 276 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chipotle has quit [Quit: cheerio]
swein has quit [Ping timeout: 244 seconds]
n1x-nz has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 260 seconds]
ramfjord has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
swein has joined #ruby
CloCkWeRX has joined #ruby
mdw has joined #ruby
Ishido has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swein has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<labaleine>
Hello ! I don't get perfectly the synthax "#{}". I do understand that it can be used in a text with a variable. But I don't understand this way of using it
<labaleine>
I see that it works however I would have done more something like this all_tasks.map.with_index { |v, i| i + next v
<labaleine>
Can you explain me a bit more the use of this syntax ?
<framling>
anything inside the #{} gets evaluated, then the result is interpolated into the string
blackmesa has joined #ruby
dumdedum has quit [Quit: foo]
joonty has joined #ruby
<labaleine>
I see now
<labaleine>
thanks for the help.
<framling>
you're welcome labaleine
Shashikant86 has joined #ruby
phatypus has joined #ruby
postmodern has quit [Quit: Leaving]
crissae has quit [Quit: Leaving]
sameerynho has joined #ruby
johnmilton has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 244 seconds]
swein has joined #ruby
crazydiamond has joined #ruby
skade has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swein has quit [Ping timeout: 244 seconds]
startupality has quit [Quit: startupality]
d0lph1n98 has quit [Ping timeout: 260 seconds]
koooge has quit [Quit: Leaving...]
mtkd has quit [Ping timeout: 252 seconds]
sameerynho has quit [Ping timeout: 244 seconds]
phatypus has quit [Quit: .>]
mtkd has joined #ruby
startupality has joined #ruby
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swein has joined #ruby
startupality has quit [Client Quit]
terlar has joined #ruby
startupality has joined #ruby
kumardev has quit [Ping timeout: 260 seconds]
startupality has quit [Client Quit]
LaT0rtue has quit [Ping timeout: 276 seconds]
swein has quit [Ping timeout: 250 seconds]
CausaMortis has quit [Ping timeout: 260 seconds]
kumardev has joined #ruby
auzty has quit [Quit: Leaving]
bhrgunatha has joined #ruby
chipotle has joined #ruby
Shashikant86 has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swills has quit [Remote host closed the connection]
blackmesa has joined #ruby
bronson has joined #ruby
der-landgraf has quit [Quit: WeeChat 1.5]
swein has joined #ruby
terlar has quit [Quit: WeeChat 1.5]
CausaMortis has joined #ruby
der-landgraf has joined #ruby
bhrgunatha has quit [Quit: ChatZilla 0.9.92 [Firefox 46.0.1/20160503215307]]
JakFrist has joined #ruby
Devalo has joined #ruby
terlar has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
emilkarl has joined #ruby
strigonLeader has joined #ruby
swein has quit [Ping timeout: 244 seconds]
stardiviner has joined #ruby
Devalo has quit [Ping timeout: 250 seconds]
terlar has quit [Client Quit]
Es0teric has quit [Quit: Computer has gone to sleep.]
<strigonLeader>
hey I'm playing around with regular expressions could anyone help me out I'm not sure why there are two matches happening here http://puu.sh/oYCnH/e818e2ebde.png
<strigonLeader>
Is it something special about the $ character?
<adaedra>
It's the end of line
terlar has joined #ruby
<adaedra>
you match twice: once you match a<eol>, then <eol> (as a? is ignored the second time)
<jhass>
strigonLeader: you make a optional with ?, so the first match is a[endofstringorline] which makes the string "aat", a$ no longer matches, so next you match $/[endofstringorline] and replace it with t, and you get "aatt"
<adaedra>
Use sub instead of gsub.
<jhass>
then the index moved past the string size and the replacement stops
<giz|work>
use /n modifier?
<strigonLeader>
thanks guys, sub will do exactly what I want to
noobsu has joined #ruby
d0lph1n98 has joined #ruby
<strigonLeader>
I'll see if that works as well
swein has joined #ruby
<jhass>
giz|work: could you elaborate how changing the encoding of the literal would change anything?
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<giz|work>
nvm :P
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<giz|work>
i thought its a problem of newline interpretion
GinoManWorks_ has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
chouhoulis has joined #ruby
swein has quit [Ping timeout: 244 seconds]
Shashikant86 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fbandov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
A124 has quit [Read error: Connection reset by peer]
cosmicfires has quit [Ping timeout: 260 seconds]
fbandov has joined #ruby
jaguarmagenta has quit [Ping timeout: 260 seconds]
A124 has joined #ruby
stannard has joined #ruby
zast has joined #ruby
akiTendo has joined #ruby
dangerousdave has joined #ruby
jaruga____ has quit [Quit: jaruga____]
swein has joined #ruby
stannard has quit [Ping timeout: 244 seconds]
Fernando-Basso has quit [Quit: Leaving]
aegis3121 has joined #ruby
swein has quit [Ping timeout: 252 seconds]
beauby has joined #ruby
chipotle has quit [Quit: cheerio]
malconis has joined #ruby
cosmicfires has joined #ruby
ChiefAlexander has joined #ruby
_Stimpy has joined #ruby
rippa has joined #ruby
tvw has joined #ruby
_Stimpy has quit [Max SendQ exceeded]
_Stimpy has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
swein has joined #ruby
tzica has left #ruby [#ruby]
sameerynho has quit [Ping timeout: 246 seconds]
cdg has joined #ruby
kumardev has quit [Ping timeout: 260 seconds]
stannard has joined #ruby
antgel has joined #ruby
maxdoubt has joined #ruby
doodlehaus has joined #ruby
doodlehaus was kicked from #ruby by ruby[bot] [was banned before]
allcentury has joined #ruby
zyzioziom has joined #ruby
Devalo has joined #ruby
troulouliou_div2 has joined #ruby
ccooke has quit [Ping timeout: 276 seconds]
zenlot6 has joined #ruby
arajakul has joined #ruby
zenlot has quit [Ping timeout: 252 seconds]
Devalo has quit [Ping timeout: 250 seconds]
fenre has quit [Ping timeout: 276 seconds]
xue has quit [Quit: Leaving]
skade has quit [Quit: Computer has gone to sleep.]
cosmicfires has quit [Ping timeout: 260 seconds]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
soud has joined #ruby
dstarh has joined #ruby
kumardev has joined #ruby
maxdoubt has quit [Quit: maxdoubt]
<dstarh>
I need to install a gem, rjb which is a ruby/java bridge. Installing locally works just fine where I have JVA_HOME set, but we don't want to set that globally on our CI server, is bundle config an appropriate place to set JAVA_HOME for the gem?
maxdoubt has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
stardiviner has quit [Ping timeout: 246 seconds]
sdwrage has joined #ruby
ferr1 has joined #ruby
<gnufied>
dstarh, you can invoke `JAVA_HOME=/home/what/ bundle install` ?
terlar has quit [Ping timeout: 250 seconds]
cosmicfires has joined #ruby
<dstarh>
gnufied yes we were just wondering if bundle configs will work for that
rikai has quit [Ping timeout: 244 seconds]
chouhoulis has quit [Remote host closed the connection]
<gnufied>
I don't think bundler config is used for setting environment variables
jas02_ has joined #ruby
jas02 has quit [Ping timeout: 260 seconds]
jas02_ is now known as jas02
<jhass>
it's not
TvL2386 has joined #ruby
<dstarh>
ok thanks
noobsu has quit [Read error: Connection reset by peer]
skylerto has joined #ruby
skweek has joined #ruby
cosmicfires has quit [Ping timeout: 260 seconds]
noobsu has joined #ruby
JJM has joined #ruby
frem_ has joined #ruby
Shashikant86 has joined #ruby
Shashikant86 has quit [Client Quit]
cyclonis has joined #ruby
chouhoulis has joined #ruby
jas02_ has joined #ruby
jas02_ has quit [Client Quit]
djcp has joined #ruby
eL_bamba has joined #ruby
bruce_lee has joined #ruby
bruce_lee has joined #ruby
idle_task has joined #ruby
jas02 has quit [Ping timeout: 260 seconds]
idletask has quit [Ping timeout: 260 seconds]
GinoManWorks has joined #ruby
ta_ has quit [Remote host closed the connection]
idle_task is now known as idletask
craigp has quit [Ping timeout: 250 seconds]
noobsu has quit [Remote host closed the connection]
Shashikant86 has joined #ruby
Shashikant86 has quit [Max SendQ exceeded]
fenre has joined #ruby
cosmicfires has joined #ruby
JesseH has joined #ruby
ferr1 has quit [Ping timeout: 240 seconds]
JJM has quit [Max SendQ exceeded]
aupadhye|brb is now known as aupadhye
aupadhye is now known as aupadhye|bomgar
flughafen_ has joined #ruby
aupadhye|bomgar is now known as aupadhye
cosmicfires has quit [Ping timeout: 260 seconds]
arthurl has joined #ruby
Eiam_ has joined #ruby
antgel has quit [Ping timeout: 246 seconds]
evidex has quit [Ping timeout: 260 seconds]
konsolebox has quit [Quit: Leaving]
antgel has joined #ruby
griffindy has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
evidex has joined #ruby
chipotle has joined #ruby
dopamean_ has joined #ruby
aganov has quit [Remote host closed the connection]
kumardev has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
antgel has joined #ruby
shinnya has joined #ruby
gtsai has joined #ruby
pelegreno has quit [Remote host closed the connection]
pelegreno has joined #ruby
k3rn31 has joined #ruby
anisha has quit [Quit: Leaving]
mistermocha has joined #ruby
gtsai has quit [Remote host closed the connection]
Es0teric has joined #ruby
ccooke has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
gtsai has joined #ruby
blaxter has joined #ruby
mistermocha has quit [Ping timeout: 276 seconds]
curses has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crameth has joined #ruby
crameth has quit [Max SendQ exceeded]
fenre has quit [Remote host closed the connection]
k3rn31 has quit [Quit: Computer has gone to sleep.]
gtsai_ has joined #ruby
TvL2386 has quit [Quit: Ex-Chat]
stannard_ has joined #ruby
curses has quit [Ping timeout: 260 seconds]
jhack has joined #ruby
giz|work has quit [Ping timeout: 246 seconds]
nankyokusei has joined #ruby
gtsai has quit [Ping timeout: 246 seconds]
ixti has joined #ruby
stannard has quit [Ping timeout: 244 seconds]
jhack_ has joined #ruby
RobertBirnie has joined #ruby
rkazak has joined #ruby
jhack has quit [Ping timeout: 252 seconds]
jhack_ is now known as jhack
maxdoubt has quit [Quit: maxdoubt]
nankyokusei has quit [Ping timeout: 252 seconds]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
mark_66 has quit [Quit: Leaving.]
maxdoubt has joined #ruby
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
flughafen_ has quit [Ping timeout: 260 seconds]
jaguarmagenta has joined #ruby
ljames has joined #ruby
jwren has joined #ruby
Yiota has joined #ruby
Oclair has quit [Quit: Bye Bye]
symm- has joined #ruby
kobain has joined #ruby
jhack has quit [Quit: jhack]
jhack has joined #ruby
jaguarmagenta has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
mikar has quit [Quit: Connection closed for inactivity]
CROOKED^HILLARY^ has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
TomyWork has quit [Remote host closed the connection]
ramfjord has joined #ruby
Shashikant86 has joined #ruby
elemenn has joined #ruby
<kyle__>
So, trying ot use ruby-prof for memory...... and all I get is a bunch of NaN entries.
Shashikant86 has quit [Max SendQ exceeded]
syndikate has quit [Ping timeout: 244 seconds]
<kyle__>
I'm not finding much for good tutorials that cover memory profiling on it :/ anyone know of a good one?
RegulationD has quit [Ping timeout: 240 seconds]
chopin has joined #ruby
rodfersou is now known as rodfersou|lunch
mikar has joined #ruby
fbandov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chouhoulis has quit [Remote host closed the connection]
elementaru has quit [Ping timeout: 272 seconds]
warreng__ has joined #ruby
pengown has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
gomix has joined #ruby
skylerto has quit [Quit: leaving]
zyzioziom has quit [Ping timeout: 244 seconds]
|2701 has quit [Quit: Connection closed for inactivity]
chipotle has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
Couch has quit [Ping timeout: 260 seconds]
platzhirsch has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
_ht has quit [Ping timeout: 246 seconds]
mitt3ns has joined #ruby
_ht has joined #ruby
gtsai_ has quit [Ping timeout: 244 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
<mitt3ns>
Mornin'
<jhass>
hi
platzhirsch has joined #ruby
ramfjord has joined #ruby
agent_white has quit [Disconnected by services]
mitt3ns is now known as agent_white
chipotle has quit [Max SendQ exceeded]
hutch34 has joined #ruby
aufi has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
chipotle has joined #ruby
maxdoubt has quit [Quit: maxdoubt]
eL_bamba has quit [Ping timeout: 250 seconds]
swein has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
GodFodder has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
kareeoleez has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
fbandov has joined #ruby
skolman_ has joined #ruby
troulouliou_div2 has quit [Ping timeout: 276 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
crazydiamond has quit [Ping timeout: 276 seconds]
chouhoulis has joined #ruby
swills has quit [Remote host closed the connection]
jwren has quit [Quit: leaving]
crystal77 has joined #ruby
GodFather has joined #ruby
TomyLobo has joined #ruby
jwren has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
swills has joined #ruby
Devalo has joined #ruby
[Butch] has joined #ruby
smathy has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga____
jaruga____ has quit [Client Quit]
chouhoulis has quit [Read error: Connection timed out]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass>
what do the remote servers logs say?
CROOKED^HILLARY^ has joined #ruby
rkazak has quit [Ping timeout: 276 seconds]
diegoaguilar has joined #ruby
<sunnypar1eunji>
jhass: it's a network device that doesn't have any helpful logs
PaulCapestany has joined #ruby
<jhass>
mh, entirely possible dropbear and net-ssh disagree about how to implement the SSH protocol or don't share any available ciphers or stuff like that
kgrz has quit [Ping timeout: 244 seconds]
RegulationD has joined #ruby
mdw has joined #ruby
Snowy has quit [Quit: ragequit]
bluOxigen has quit [Ping timeout: 260 seconds]
<sunnypar1eunji>
jhass: i guess that makes sense, though it does surprise me that net-ssh wouldn't have the same ciphers as OpenSSH
bluOxigen has joined #ruby
codecop has quit [Remote host closed the connection]
danostrowski has joined #ruby
mistermocha has joined #ruby
<kyle__>
sunnypar1eunji: Native implementation means it doesn'tshare code with openssh.
<jhass>
I'd probably wireshark it and see if there's anything more visible
<smathy>
0.52 is from 2008 sunnypar1eunji, Net::SSH might have the ciphers it's using disabled for security.
<kyle__>
sunnypar1eunji: A bunch of python libraries have the same issues when a new cipher or MAC comes out, or an old one is deemed insecure.
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gtsai has joined #ruby
maucar has quit [Quit: Leaving]
<smathy>
I'd quickly check if a version of Net::SSH from 2008 works.
<smathy>
...as a debugging step.
ruby-lang963 has joined #ruby
polishdub has joined #ruby
ruby-lang963 is now known as signbit
GinoMan2440 has joined #ruby
<kyle__>
jhass: I'm going to lay money on: defaults in openssh have tightened significantly recently, and they can't agree on a cipher.
<signbit>
hey guys not really working with ruby but need to install a gem on a work computer with a heavy proxy
<signbit>
I downloaded the gem
<signbit>
but it can't pull the specs.4.8.gz
<signbit>
so I downloaded it myself and gunzip'ed it
mikecmpbll has joined #ruby
<signbit>
apparently I need specs before I can do anything
<jhass>
signbit: which gem, what for, in what context and what's the command you run to install the downloaded gem file
<signbit>
how can I install? this by hand without the web
<signbit>
" gem install ./lolcat ERROR: Could not find a valid gem './lolcat' (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::ETIMEDOUT: Connection timed out - connect(2) (https://api.rubygems.org/specs.4.8.gz)"
<sunnypar1eunji>
jhass: user is a placeholder, i redacted the actual UN/PW from the paste
<sunnypar1eunji>
both used the same, which is not admin
<signbit>
okay I'll try that one sec
<kyle__>
signbit: gem --help
<signbit>
so I need to worry about this specs?
<signbit>
seems like everything requires it
<jhass>
sunnypar1eunji: aes128-ctr hmac-sha1 not unlikely to be disabled in net-ssh
<sunnypar1eunji>
jhass: i finally found an event-log for the dropbear device, but all it logs is "user logged in" and "user logged out". since our ssh never gets that far, it lgs none of the failed attempts
spk has joined #ruby
<jhass>
bummer
hutch34 has joined #ruby
DanyC has joined #ruby
<jhass>
looks like the majority of dropbears configuration is compile time anyway
<sunnypar1eunji>
jhass: looks to do the same when set to 'SSH-2.0-OpenSSH_6.7p1 Debian-5+deb8u1'
<jhass>
I wonder if it resets beyond a Enumerable#skip though
<jhass>
sunnypar1eunji: too bad
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<jhass>
oh, skip wasn't ruby?
codecop has joined #ruby
krobzaur has joined #ruby
codecop has quit [Remote host closed the connection]
cpup has quit [Ping timeout: 276 seconds]
codecop has joined #ruby
cpup has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
gtsai has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arlek_ has joined #ruby
beauby has quit [Ping timeout: 260 seconds]
CJKinni` has joined #ruby
mikar has quit [Quit: Connection closed for inactivity]
blackmesa has quit [Ping timeout: 260 seconds]
Jardayn has joined #ruby
danostrowski has joined #ruby
ruurd has joined #ruby
whathappens has quit [Remote host closed the connection]
CJKinni has quit [Ping timeout: 276 seconds]
ChiefAlexander has quit [Remote host closed the connection]
ruby-lang522 has joined #ruby
tacit7 has joined #ruby
CJKinni` has quit [Ping timeout: 260 seconds]
chipotle has quit [Quit: cheerio]
nankyokusei has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
ChiefAlexander has joined #ruby
antgel has quit [Ping timeout: 250 seconds]
<ruby-lang522>
Is there an array method in ruby to return an array minus an item at a given position, without modifying the original array? Kind of the opposite of array.slice(n) -- I want the array returned rather than array[n].
swein has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
catpoop has joined #ruby
catpoop has quit [Client Quit]
jackjackdripper has joined #ruby
Torrieri has joined #ruby
mnrmnaugh has joined #ruby
insanedreamer has quit [Quit: insanedreamer]
<aegis3121>
I mean, using Array#delete_at will return array[n], but the array you're left with will have it removed.
noobsu_ has joined #ruby
noobsu has quit [Read error: Connection reset by peer]
noService has joined #ruby
<ruby-lang522>
Thanks for the response aegis. I need the original array to stay intact.
jaguarmagenta has joined #ruby
RegulationD has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
crystal77 has joined #ruby
<jhass>
ruby-lang522: nope. If you have not only the index but the value you want to remove too and it's unique, you could array - [value]
<Papierkorb>
else, there's always .dup
gregf has quit [Read error: Connection reset by peer]
<jhass>
well or you could do .reject.with_index I guess
gregf has joined #ruby
<jhass>
or [*array[0..i-1], *array[i+1..-1]]
<jhass>
all not really pretty
blaxter has joined #ruby
rodfersou is now known as rodfersou|coffee
mistermocha has quit [Remote host closed the connection]
<jhass>
dup.tap {|a| a.delete_at(i) } is probably your best bet
<aegis3121>
but that's assuming rails/active support, right?
<jhass>
no
tildes has joined #ruby
<ruby-lang522>
I was doing [*array[0..i-1], *array[i+1..-1]], but yeah, it seems too ugly for ruby.
<ruby-lang522>
not using Rails, but I'll remember that.
<ruby-lang522>
Thanks for the discussion.
<tobiasvl>
monkey patch Array!
<jhass>
it does not require activesupport
<jhass>
Object#tap is in core for a long time now
<aegis3121>
Ah, okay. Was going off of some old documentation from a gem.
oncall-pokemon has joined #ruby
jaguarmagenta has quit [Ping timeout: 252 seconds]
whathapp_ has joined #ruby
djbkd has quit [Quit: My people need me...]
<ruby-lang522>
I'm afraid of monkeypatching. Won't a nun show up and start beating me with a stick?
mloy has joined #ruby
JakFrist has joined #ruby
djbkd has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
jhack has joined #ruby
martee has quit [Quit: martee]
nfk has joined #ruby
martee has joined #ruby
roamingdog has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
tildes has quit [Ping timeout: 260 seconds]
swein has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
<adaedra>
People will have different opinions, but I guess it's better if you can avoid it, especially now that we have refinements which are a bit cleaner
zyzioziom has quit [Ping timeout: 276 seconds]
hutch34_ has joined #ruby
<adaedra>
But that's not as bad as Ox0dea'isms.
<tobiasvl>
yeah, I was mostly kidding. but it is an option
cpup has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
diegoaguilar has quit [Read error: Connection reset by peer]
ullu has quit [Read error: Connection reset by peer]
sdwrage has joined #ruby
stannard has quit [Remote host closed the connection]
crazydiamond has joined #ruby
Devalo has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.5]
martee has joined #ruby
Torrieri has quit [Quit: Be back later ...]
shakes has joined #ruby
martee has quit [Client Quit]
jenrzzz has joined #ruby
Jardayn has quit [Read error: Connection reset by peer]
failshell has joined #ruby
pulpfiction has joined #ruby
mistermocha has joined #ruby
<pulpfiction>
am i allowed to ask ruby on rails questions here?
<Zarthus>
there's a #rubyonrails
swein has joined #ruby
<adaedra>
yep, #RubyOnRails is the place for Rails questions
benlieb has joined #ruby
Devalo has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
<elemenn>
I heard they create gui interface using visual basic to track your ip address
<elemenn>
if you ask rails questions here
<havenwood>
we will answer them
<havenwood>
and bow
troulouliou_dev has joined #ruby
Puffball has quit [Ping timeout: 260 seconds]
Puffball_ has joined #ruby
elifoster has quit [Ping timeout: 244 seconds]
<adaedra>
TraceIP.exe elemenn
<adaedra>
oops, wrong window
<havenwood>
pulpfiction: Ruby questions are the favorite type of question here! :)
rodfersou|coffee is now known as rodfersou
<pulpfiction>
havenwood, yup, i figured :) thanks, guys!
johnmilton has quit [Remote host closed the connection]
chipotle has joined #ruby
nerium has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has quit [Remote host closed the connection]
bronson has joined #ruby
danostrowski has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jwren has quit [Quit: Lost terminal]
dopie has quit [Quit: Leaving]
mjuszczak has quit []
beauby has joined #ruby
aries_liuxueyang has quit [Ping timeout: 244 seconds]
n_blownapart has joined #ruby
Es0teric has joined #ruby
blackmesa has joined #ruby
aries_liuxueyang has joined #ruby
mikeric has joined #ruby
stannard has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
emilkarl has joined #ruby
<dreinull>
not strictly ruby… I use slimer.js to create pdfs from views in sinatra. Doesnt matter. If one route is called it starts slimerjs which creates the pdf and returns it. That's the context. Is there a ruby way of starting slimerjs, i.e. an external service and keeping an eye on it? I want to keep slimer running and just get output from it once it creates some.
blackmesa has quit [Ping timeout: 244 seconds]
<adaedra>
You could look at execjs
beauby has quit [Ping timeout: 276 seconds]
dopie has joined #ruby
arajakul has quit [Ping timeout: 244 seconds]
<Papierkorb>
execjs with the therubyracer gem, or the ruby racer alone
whathapp_ has quit [Quit: Leaving...]
<Papierkorb>
(well, depends on how long slimerjs takes to boot and to render a PDF if it's actually worth using the racer gem)
Devalo has quit [Ping timeout: 276 seconds]
<dreinull>
Papierkorb, yes, I think it would help.
eL_bamba has joined #ruby
<dreinull>
ok, will look at those.
roamingdog has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
<toretore>
looks like it's just an executable, so i'd just use popen
krobzaur has quit [Ping timeout: 276 seconds]
elifoster has joined #ruby
failshell has quit []
noobsu_ has quit [Read error: Connection reset by peer]
agent_white has quit [Quit: brb]
sdwrage has quit [Quit: This computer has gone to sleep]
noobsu has joined #ruby
sfmk has quit [Quit: Connection closed for inactivity]
tjohnson has joined #ruby
ruurd has quit [Ping timeout: 260 seconds]
kareeoleez has quit [Read error: Connection reset by peer]
kareeoleez has joined #ruby
<benlieb>
What editors offer the best code "exploration" in ruby? I've been using vim for 14 years. Recently I'm working a lot with big code bases I'm not familiar with, and I'm feeling that there must be a better way to explore code, jump to method defs, classes, modules...
Ishido has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 276 seconds]
troulouliou_dev has quit [Quit: Leaving]
nando293921 has joined #ruby
noobsu has quit [Read error: Connection reset by peer]
ruby-lang522 has quit [Ping timeout: 250 seconds]
rbennacer has quit [Remote host closed the connection]
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
noobsu has joined #ruby
tildes has quit [Ping timeout: 260 seconds]
Devalo has joined #ruby
<benlieb>
havenwood: is there a command in ruby-vim or rails-vim that when on the line: include Aca::Support::Employer, it will open the file that defines this?
<adaedra>
C-], if you have tags generated
mistermocha has quit [Remote host closed the connection]
chip_ has joined #ruby
<havenwood>
benlieb: i think recent rails-vim does gf with includes as well
thirax has joined #ruby
Devalo has quit [Remote host closed the connection]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
4.3+ maybe?
rbennacer has joined #ruby
RegulationD has joined #ruby
nettoweb has joined #ruby
<benlieb>
havenwood: hm, seems buggy. It worked on a simple module (One word without ::), failed on another with error of can't find in path, and modules like This::that or This::That::TheOther, it doesn't find it but instead opens a dir
arthurl has quit [Ping timeout: 240 seconds]
gizless has joined #ruby
gizmore has quit [Ping timeout: 240 seconds]
Rickmasta has joined #ruby
blackgoat has joined #ruby
grs has quit [Ping timeout: 244 seconds]
wuyin has joined #ruby
roamingdog has joined #ruby
mostlybadfly has joined #ruby
Xiti has quit [Quit: Xiti]
mistermocha has joined #ruby
Rickmasta has quit [Ping timeout: 244 seconds]
Mia has quit [Read error: Connection reset by peer]
centrx has quit [Quit: centrx]
mistermocha has quit [Read error: Connection reset by peer]
jenrzzz has quit [Quit: Lost terminal]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Puffball_ has quit [Ping timeout: 250 seconds]
Puffball has joined #ruby
crystal77 has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
sesquipedalian has quit [Ping timeout: 246 seconds]
gizmore has joined #ruby
jenrzzz has joined #ruby
gizmore|2 has joined #ruby
Snowy has quit [Remote host closed the connection]
<benlieb>
havenwood: not working on partials either. sad sad face
Xiti has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
bruce_lee has joined #ruby
Devalo has joined #ruby
_whitelogger has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
roamingdog has quit [Remote host closed the connection]
rbennacer has joined #ruby
djcp has quit [Quit: WeeChat 1.0.1]
djbkd has quit [Remote host closed the connection]
kkh is now known as duracrisis
grs has quit [Ping timeout: 276 seconds]
diego1 has joined #ruby
zyzioziom has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
mnrmnaugh is now known as catpoop
diego1 has joined #ruby
diego1 has quit [Changing host]
diegoviola has quit [Ping timeout: 260 seconds]
synthroid has quit []
rbennacer has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
dome22xl has joined #ruby
<dome22xl>
rvml
dome22xl has left #ruby [#ruby]
sdwrage has quit [Quit: This computer has gone to sleep]
eljimmy has joined #ruby
centrx has joined #ruby
elemenn has quit [Remote host closed the connection]
centrx has quit [Client Quit]
stannard_ has joined #ruby
smathy_afk is now known as smathy
hahuang65 has quit [Ping timeout: 276 seconds]
nankyokusei has joined #ruby
blackmesa has joined #ruby
rbennacer has joined #ruby
GinoMan2440 has quit [Ping timeout: 252 seconds]
eL_bamba has quit [Read error: Connection reset by peer]
stannard has quit [Ping timeout: 252 seconds]
JakFrist has joined #ruby
nanoz has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
<dreinull>
You're too general.
elementaru has joined #ruby
kobain has quit [Read error: Connection reset by peer]
roamingdog has joined #ruby
diego1 has joined #ruby
<dreinull>
solotyping is worse than stereotyping.
diego1 has quit [Client Quit]
nankyokusei has quit [Ping timeout: 276 seconds]
nettoweb has joined #ruby
rbennacer has quit [Ping timeout: 276 seconds]
noobsu has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
sdwrage has joined #ruby
noobsu_ has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
noobsu_ has quit [Read error: Connection reset by peer]
noobsu has joined #ruby
jaguarmagenta has joined #ruby
opus_ has joined #ruby
noobsu has quit [Read error: Connection reset by peer]
eljimbo has joined #ruby
Torrieri has joined #ruby
Torrieri has joined #ruby
Torrieri has quit [Changing host]
noobsu has joined #ruby
monod has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
mjuszczak has joined #ruby
DanyC has joined #ruby
ChiefAlexander has quit [Quit: Leaving...]
jaguarmagenta has quit [Ping timeout: 276 seconds]
hutch34_ has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
Weavel has joined #ruby
jackjackdripper has quit [Ping timeout: 252 seconds]
JoshGlzBrk has joined #ruby
pulpfiction has quit [Read error: Connection reset by peer]
JoshGlzBrk has quit [Client Quit]
roamingdog has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
chipotle has quit [Quit: cheerio]
crystal77 has quit [Ping timeout: 260 seconds]
roamingdog has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
noobsu has quit [Read error: Connection reset by peer]
Guest97856 has quit [Ping timeout: 244 seconds]
eL_bamba has joined #ruby
noobsu has joined #ruby
mjuszczak has quit []
djbkd has joined #ruby
ldnunes has quit [Quit: Leaving]
mjuszczak has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
craigp has joined #ruby
roamingdog has quit [Remote host closed the connection]
k3rn31 has quit [Quit: Computer has gone to sleep.]
rbennacer has quit [Ping timeout: 260 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Weavel has quit [Quit: Give a man a fish and he will eat for a day. Teach him how to fish, and he will sit in a boat and drink beer all day]
griffindy has joined #ruby
martee has quit [Quit: martee]
rbennacer has joined #ruby
toretore has quit [Quit: Leaving]
Es0teric has quit [Quit: Computer has gone to sleep.]
Biopandemic has quit [Remote host closed the connection]
sdwrage has joined #ruby
Biopandemic has joined #ruby
martee has quit [Quit: martee]
zyzioziom1 has joined #ruby
Cohedrin_ has joined #ruby
chopin has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mwlang has joined #ruby
chopin has joined #ruby
<majuscule>
any ideas on a cleaner way of doing combinations than this? %w(b c d e).map{ |d| "sd#{d}" }
<majuscule>
(i think this example is short enough to write out, but for sake of discussion)
<Papierkorb>
in general? no. in context? Dir["/dev/sd[bcde]"]
Cohedrin has quit [Ping timeout: 276 seconds]
zyzioziom has quit [Ping timeout: 260 seconds]
<majuscule>
ahh nice :-)
<majuscule>
that's actually perfect for me, thanks.
<majuscule>
or erm, not quite, but w/e, it's cool
zyzioziom1 has quit [Ping timeout: 276 seconds]
jolts has joined #ruby
benlieb has joined #ruby
smathy_afk is now known as smathy
trinaldi has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whathappens has quit [Quit: Leaving...]
chouhoulis has quit [Remote host closed the connection]
centrx has joined #ruby
hahuang65 has joined #ruby
Gasher has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
ico has quit [Remote host closed the connection]
biberu has quit []
cdg has joined #ruby
chipotle has quit [Quit: cheerio]
chopin has quit [Remote host closed the connection]
bronson has joined #ruby
skweek has quit [Ping timeout: 252 seconds]
chopin has joined #ruby
djbkd has joined #ruby
beauby has joined #ruby
hahuang61 has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
blackmesa has joined #ruby
ocbtec has quit [Quit: leaving]
dionyziz has joined #ruby
cdg has quit [Ping timeout: 244 seconds]
bronson has quit [Ping timeout: 252 seconds]
<dionyziz>
Hi folks, I would like to replace a needle with a replacement string in a haystack string in ruby. I'm using this example: s = "replace me"; s.sub!("me", "you \\`"). I expect the replaced string to read: replace you \` i.e. to finish with the three characters space, backslash and backtick
ur5us has quit [Remote host closed the connection]
<dionyziz>
This doesn't work because the \` sequence is a backreference in ruby. So I tried escaping it using Regexp.escape like this: s.sub!("me", Regexp.escape("you \\`"))
rkazak has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
<dionyziz>
However, in this case the replaced string reads: replace you\ \` i.e. more special characters, such as spaces, are escaped, which have no special meaning in the replacement string.
beauby has quit [Ping timeout: 276 seconds]
<dionyziz>
How do I just replace a string with another string within a string ignoring backreferences completely?
ico has joined #ruby
hahuang61 has quit [Ping timeout: 276 seconds]
jhack has quit [Quit: jhack]
jhack has joined #ruby
hxegon is now known as hxegon_afk
<dionyziz>
I figured it out. Using block syntax does the trick. Thanks!