apeiros changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
quazimodo has joined #ruby
<havenwood> DoctorMonocular: source ~/.rvm/scripts/rvm
<havenwood> wherever scripts/rvm is
<havenwood> DoctorMonocular: source /usr/local/rvm/scripts/rvm
beneggett has joined #ruby
hahuang61 has joined #ruby
<DoctorMonocular> ok, that worked
<DoctorMonocular> now restart after running implode?
<havenwood> yes
<DoctorMonocular> or just relogin or what?
eljimbo has joined #ruby
hahuang65 has quit [Ping timeout: 245 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> relogin as your deploy user
eljimmy has quit [Ping timeout: 260 seconds]
jrafanie has joined #ruby
<DoctorMonocular> ok, got it
funnel has joined #ruby
foooobear has quit [Read error: Connection reset by peer]
jrafanie has quit [Client Quit]
<DoctorMonocular> ok, I installed ruby2.3 from brightbox as deploy
watersoul_ has quit [Read error: Connection reset by peer]
nitric has quit [Ping timeout: 276 seconds]
jidar has quit [Read error: Connection reset by peer]
elenatanasoiu has joined #ruby
workmad3_ has joined #ruby
watersoul has joined #ruby
<havenwood> DoctorMonocular: "And you’ll usually need the dev packages too, so you can build native extensions"
jidar has joined #ruby
polyidus has quit [Ping timeout: 260 seconds]
shayan_ has joined #ruby
<DoctorMonocular> ok, done
<havenwood> DoctorMonocular: sudo apt-get install ruby2.2-dev
shinnya has quit [Ping timeout: 250 seconds]
Derperperd has joined #ruby
<DoctorMonocular> yeah, 2.3, but yes, that ran fine
<havenwood> ah, good, better yet
oyes has joined #ruby
<DoctorMonocular> ok so I have ruby, now I need to fix the rubygems shenanigans
<DoctorMonocular> gem install jekyll
<DoctorMonocular> Fetching: ffi-1.9.14.gem (100%)
<DoctorMonocular> ERROR: While executing gem ... (Gem::FilePermissionError)
<DoctorMonocular> You don't have write permissions for the /var/lib/gems/2.3.0 directory.
workmad3 has quit [Ping timeout: 260 seconds]
<DoctorMonocular> sorry for the dump
JoshS has joined #ruby
<havenwood> DoctorMonocular: sudo gem install jekyll
<Mon_Ouie> I prefer gem install --user-install jekyll
<havenwood> DoctorMonocular: or that ^
<DoctorMonocular> ok cool, seems to be running
<DoctorMonocular> nice, so jekyll is running now
<DoctorMonocular> lemme see if the post-receive thing will run as deploy now, one sec
elenatanasoiu has quit [Ping timeout: 250 seconds]
hutch34 has joined #ruby
<DoctorMonocular> buh ok, jekyll doesn't have permission to create a site subfolder, but that's a whole different issue
<DoctorMonocular> thanks for your help, I really appreciate it a lot
<DoctorMonocular> server config is scary and hard for me, you're awesome
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dextertzu has joined #ruby
nankyokusei has joined #ruby
shayan_ has quit [Quit: shayan_]
<havenwood> DoctorMonocular: you're welcome. happy hacking!
gusrub has quit [Remote host closed the connection]
<DoctorMonocular> :)
DoctorMonocular has quit []
sneakers has quit [Ping timeout: 250 seconds]
Fetch has quit [Read error: Connection reset by peer]
Fetch has joined #ruby
jtd has quit [Quit: No Ping reply in 180 seconds.]
pjaspers has quit [Ping timeout: 245 seconds]
bogdanteleaga has quit [Ping timeout: 245 seconds]
Wizznt has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
iamayam has quit [Ping timeout: 245 seconds]
edwardly has quit [Ping timeout: 256 seconds]
gusrub has joined #ruby
CloCkWeRX has joined #ruby
brucebag has quit [Ping timeout: 256 seconds]
gsingh93 has quit [Ping timeout: 256 seconds]
hutch34 has quit [Ping timeout: 250 seconds]
jtd has joined #ruby
pjaspers has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
bogdanteleaga has joined #ruby
shayan_ has joined #ruby
gsingh93 has joined #ruby
iamayam has joined #ruby
brucebag has joined #ruby
brucebag has joined #ruby
brucebag has quit [Changing host]
benlieb has quit [Quit: benlieb]
nettoweb has joined #ruby
f4 has joined #ruby
shayan_ has quit [Client Quit]
marr has quit [Ping timeout: 260 seconds]
xall_ has quit [Ping timeout: 256 seconds]
Wizznt has joined #ruby
solocshaw has joined #ruby
nikivi has joined #ruby
_sfiguser has quit [Ping timeout: 265 seconds]
oyes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
gusrub has quit [Remote host closed the connection]
dmtd has joined #ruby
oyes has joined #ruby
hightower3 has joined #ruby
watersoul has quit [Read error: Connection reset by peer]
watersoul has joined #ruby
benlieb has joined #ruby
hightower2 has quit [Ping timeout: 244 seconds]
eljimmy has joined #ruby
shayan_ has joined #ruby
dextertzu has quit [Read error: Connection reset by peer]
benlieb has quit [Client Quit]
Prawnzy has joined #ruby
djbkd has quit [Remote host closed the connection]
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
eljimbo has quit [Ping timeout: 256 seconds]
shayan_ has quit [Client Quit]
Stazer has quit [Ping timeout: 260 seconds]
shayan_ has joined #ruby
abernstein has joined #ruby
bongobrown has joined #ruby
dextertzu has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
_sfiguser has joined #ruby
splud has quit [Quit: splud]
shayan_ has quit [Quit: shayan_]
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baweaver is now known as baweaver_away
shayan_ has joined #ruby
Pumukel has quit [Remote host closed the connection]
dkam_ has joined #ruby
Pumukel has joined #ruby
dkam_ has quit [Read error: Connection reset by peer]
dkam_ has joined #ruby
Prawnzy has quit [Remote host closed the connection]
shayan_ has quit [Client Quit]
dkam has quit [Ping timeout: 252 seconds]
Prawnzy has joined #ruby
nettoweb has quit [Ping timeout: 250 seconds]
shayan_ has joined #ruby
nettoweb has joined #ruby
Bellthoven has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
nettoweb1 has joined #ruby
nikivi has quit [Quit: irc]
shayan_ has quit [Quit: shayan_]
nettoweb has quit [Ping timeout: 260 seconds]
shayan_ has joined #ruby
ziarkaen has joined #ruby
d^sh_ has quit [Ping timeout: 256 seconds]
dhurba has quit [Ping timeout: 256 seconds]
ziarkaen has quit [Ping timeout: 276 seconds]
d^sh has joined #ruby
lel has joined #ruby
hutch34 has joined #ruby
weemsledeux has joined #ruby
Tharbakim has quit [Quit: Something has gone terribly wrong. Send help.]
icarus has joined #ruby
Channel6 has joined #ruby
hutch34 has quit [Ping timeout: 265 seconds]
nettoweb has joined #ruby
dhurba has joined #ruby
nettoweb1 has quit [Ping timeout: 256 seconds]
troys is now known as troys_
dling has quit []
beneggett has joined #ruby
xall_ has joined #ruby
nettoweb1 has joined #ruby
nettoweb has quit [Ping timeout: 260 seconds]
wpostma has joined #ruby
rismoney1 has joined #ruby
renderfu_ has joined #ruby
xall_ has quit [Ping timeout: 250 seconds]
renderfu_ has quit [Ping timeout: 244 seconds]
eljimmy has quit [Quit: Leaving]
hck89 has joined #ruby
hck89 has quit [Client Quit]
hardest has joined #ruby
icarus has quit [Quit: leaving]
symm-_ has joined #ruby
symm- has quit [Ping timeout: 256 seconds]
SteenJobs has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Pupeno has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Quit: Quit]
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hfp has joined #ruby
hfp_work has joined #ruby
Pupeno has joined #ruby
solocshaw has quit [Quit: solocshaw]
solocshaw has joined #ruby
shayan_ has quit [Quit: shayan_]
JeanCarloMachado has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
Tharbakim has joined #ruby
Axy has quit [Ping timeout: 250 seconds]
Pupeno has quit [Ping timeout: 260 seconds]
SteenJobs has quit [Quit: peaceee]
shayan_ has joined #ruby
solocshaw has quit [Ping timeout: 245 seconds]
hfp_work has quit [Quit: bye]
hfp has quit [Quit: bye]
chouhoulis has joined #ruby
hfp has joined #ruby
shayan_ has quit [Client Quit]
hfp_work has joined #ruby
harai_ has quit [Ping timeout: 245 seconds]
hfp has quit [Client Quit]
hfp_work has quit [Client Quit]
shayan_ has joined #ruby
Jameser has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
shayan_ has quit [Client Quit]
hfp has joined #ruby
Fire-Dragon-DoL has joined #ruby
hfp_work has joined #ruby
hfp_work has quit [Client Quit]
hfp has quit [Client Quit]
symm-_ has quit [Ping timeout: 245 seconds]
shayan_ has joined #ruby
sneakerhax has joined #ruby
hfp has joined #ruby
hfp has quit [Remote host closed the connection]
tax has quit [Quit: Leaving]
Snowy_ has quit [Remote host closed the connection]
tax has joined #ruby
Snowy has joined #ruby
ocbtec has quit [Quit: leaving]
AndrewIsHere has quit [Remote host closed the connection]
shayan_ has quit [Client Quit]
AndrewIsHere has joined #ruby
arashb has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
railssmith has quit [Ping timeout: 245 seconds]
Snowy has quit [Ping timeout: 260 seconds]
bruce_lee has quit [Ping timeout: 250 seconds]
bruce_lee has joined #ruby
zeroDi has quit [Quit: WeeChat 1.5]
benlieb has joined #ruby
optiz0r has quit [Ping timeout: 250 seconds]
arashb has quit [Ping timeout: 276 seconds]
caisan has quit [Quit: Leaving]
AndrewIsHere has quit [Ping timeout: 265 seconds]
d^sh has quit [Ping timeout: 252 seconds]
benlieb has quit [Client Quit]
JeanCarloMachado has quit [Ping timeout: 245 seconds]
benlieb has joined #ruby
Prawnzy has quit [Remote host closed the connection]
d^sh has joined #ruby
d0nn1e has quit [Ping timeout: 256 seconds]
User458764 has joined #ruby
d0nn1e has joined #ruby
pawnbox has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gizless has quit [Ping timeout: 260 seconds]
gizless has joined #ruby
zenguy_pc has quit [Ping timeout: 260 seconds]
Meeh_ has quit [Quit: No Ping reply in 180 seconds.]
tyang_ has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
Meeh has joined #ruby
tyang has quit [Ping timeout: 245 seconds]
shayan_ has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
shayan_ has quit [Client Quit]
nankyokusei has joined #ruby
shayan_ has joined #ruby
AndrewIsHere has joined #ruby
marxarelli|afk has quit [Ping timeout: 250 seconds]
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
beneggett has joined #ruby
AndrewIsHere has joined #ruby
ixti has quit [Quit: WeeChat 1.6]
nankyokusei has quit [Ping timeout: 256 seconds]
shayan_ has quit [Client Quit]
shayan_ has joined #ruby
shmuli has joined #ruby
Meeh has quit [Quit: No Ping reply in 180 seconds.]
AndrewIsHere has quit [Ping timeout: 245 seconds]
symm- has joined #ruby
JoshS has quit [Quit: Leaving]
Meeh has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elenatanasoiu has joined #ruby
ben__ has joined #ruby
shayan_ has quit [Client Quit]
hardest has quit []
Bellthoven has quit []
shayan_ has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cohedrin has joined #ruby
elenatanasoiu has quit [Ping timeout: 256 seconds]
ben__ has quit [Ping timeout: 256 seconds]
zenguy_pc has joined #ruby
j0bk has quit [Ping timeout: 250 seconds]
LBRapid has quit [Ping timeout: 250 seconds]
j0bk has joined #ruby
LBRapid has joined #ruby
n__dles has left #ruby ["WeeChat 1.4"]
davidt has quit []
russt has quit [Ping timeout: 250 seconds]
hfp has joined #ruby
hfp_work has joined #ruby
russt has joined #ruby
<tax> Hey
<tax> hello
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<tax> Hey
<pnbeast> tax, it works best if you just ask your real question.
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
shayan_ has quit [Quit: shayan_]
chouhoulis has quit [Ping timeout: 276 seconds]
Rodya_ has joined #ruby
jphase has joined #ruby
dhurba has quit [Ping timeout: 256 seconds]
benlieb has quit [Quit: benlieb]
LeBlaaanc has joined #ruby
rismoney1 has quit [Ping timeout: 256 seconds]
tax has left #ruby ["Leaving"]
Guest33 has joined #ruby
benlieb has joined #ruby
Rickmasta has quit [Ping timeout: 250 seconds]
jphase has quit [Remote host closed the connection]
optiz0r has joined #ruby
jphase has joined #ruby
ur5us has joined #ruby
Rickmasta has joined #ruby
tuxaddicted has joined #ruby
astrobunny has joined #ruby
jphase has quit [Ping timeout: 260 seconds]
Wizznt has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Helheim has quit [Ping timeout: 250 seconds]
brendan- has joined #ruby
elenatanasoiu has joined #ruby
jphase has joined #ruby
arescorpio has joined #ruby
dhurba has joined #ruby
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
elenatanasoiu has quit [Ping timeout: 244 seconds]
xall_ has joined #ruby
hutch34 has joined #ruby
gix has quit [Ping timeout: 265 seconds]
User458764 has joined #ruby
bluOxigen has joined #ruby
gix has joined #ruby
Silthias has joined #ruby
palms has joined #ruby
Silthias2 has quit [Ping timeout: 244 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dhurba has quit [Ping timeout: 252 seconds]
railssmith has joined #ruby
tyang has joined #ruby
oyes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tyang_ has quit [Ping timeout: 245 seconds]
Rodya_ has quit [Quit: Leaving...]
BTRE has quit [Read error: Connection reset by peer]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Mouzer has joined #ruby
bongobrown has left #ruby ["Leaving"]
jphase has quit [Remote host closed the connection]
Technodrome has quit [Ping timeout: 260 seconds]
jphase has joined #ruby
ur5us has quit [Ping timeout: 256 seconds]
BTRE has joined #ruby
jphase has quit [Ping timeout: 256 seconds]
hanmac has quit [Ping timeout: 260 seconds]
dviola has quit [Quit: WeeChat 1.6]
benlieb has quit [Quit: benlieb]
Wizznt has joined #ruby
Guest33 has quit [Read error: Connection reset by peer]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Pupeno has joined #ruby
elenatanasoiu has joined #ruby
benlieb has joined #ruby
nchambers is now known as god
c355e3b has quit [Quit: Connection closed for inactivity]
Pupeno has quit [Ping timeout: 265 seconds]
elenatanasoiu has quit [Ping timeout: 245 seconds]
Mouzer has quit [Quit: "Lutar sempre, vencer se possível, desistir nunca." (www.cyberscript.org)]
helpa has quit [Remote host closed the connection]
hanmac has joined #ruby
helpa has joined #ruby
dnicole has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shayan_ has joined #ruby
ur5us has joined #ruby
shmuli has quit [Remote host closed the connection]
Ropeney has joined #ruby
Cohedrin_ has joined #ruby
Wizznt has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Cohedrin has quit [Ping timeout: 245 seconds]
MrSamuel has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
hutch34 has joined #ruby
nankyokusei has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
minimalism has joined #ruby
pwnd_nsfw has quit [Ping timeout: 256 seconds]
palms has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 245 seconds]
nankyokusei has quit [Ping timeout: 250 seconds]
astrobunny has quit [Remote host closed the connection]
lel has quit [Ping timeout: 256 seconds]
kalima32 has quit [Quit: Leaving.]
yardenbar has joined #ruby
lel has joined #ruby
gizless is now known as gizmore
ben__ has joined #ruby
threh has quit [Ping timeout: 265 seconds]
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndrewIsHere has joined #ruby
harai_ has joined #ruby
User458764 has joined #ruby
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
ben__ has quit [Ping timeout: 256 seconds]
Joufflu has quit [Read error: Connection reset by peer]
Prawnzy has joined #ruby
chriswongxp has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shmuli has joined #ruby
chriswongxp has left #ruby [#ruby]
vktec has quit [Ping timeout: 260 seconds]
aupadhye has joined #ruby
vktec has joined #ruby
Prawnzy has quit [Ping timeout: 260 seconds]
elenatanasoiu has joined #ruby
harfangk has joined #ruby
Xiti` has joined #ruby
Dohplay has quit [Read error: Connection reset by peer]
harai_ has quit [Read error: Connection reset by peer]
feelx has quit [Read error: Connection reset by peer]
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
Xiti has quit [Ping timeout: 276 seconds]
elenatanasoiu has quit [Ping timeout: 265 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
TheCubeLord has joined #ruby
beneggett has joined #ruby
TheCubeLord has quit [Remote host closed the connection]
TheCubeLord has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
dextertzu has quit [Ping timeout: 260 seconds]
AndrewIsHere has quit [Ping timeout: 260 seconds]
Channel6 has quit [Quit: Leaving]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
amclain has quit [Quit: Leaving]
dnicole has joined #ruby
jenrzzz has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
pokalyis has joined #ruby
JoshS has joined #ruby
LeBlaaanc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jcao219 has joined #ruby
aupadhye has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 244 seconds]
jeyraof has joined #ruby
Prawnzy has joined #ruby
LeBlaaanc has joined #ruby
blackwind_123 has quit [Ping timeout: 245 seconds]
blackwind_123 has joined #ruby
shayan_ has quit [Quit: shayan_]
dnicole has quit [Ping timeout: 260 seconds]
bklane has joined #ruby
kalima32 has joined #ruby
quazimodo has joined #ruby
pawnbox has joined #ruby
Helheim has joined #ruby
igniting has quit [Ping timeout: 265 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhurba has joined #ruby
kalima32 has quit [Quit: Leaving.]
warrshrike has joined #ruby
<warrshrike> How can I use ActiveRecord without rails. And also use the same database within rails....if that makes sense
<warrshrike> I want to write a dataminer which stores results in a database through activerecord
<warrshrike> and also want to show said data through a rails site
blackbombay_ has quit [Ping timeout: 250 seconds]
<bklane> warrshrike: ya can just use the active_record gem
<bklane> I have a sinatra app that writes data to db via active_record, the rails app can read it too
<warrshrike> okay but HOW? I mean a new rails app starts with empty db and waits for migrations
astrobunny has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
baweaver_away is now known as baweaver
foooobear has joined #ruby
bklane has quit [Quit: Leaving...]
shmuli has quit [Remote host closed the connection]
pnbeast has quit [Quit: leaving]
MrSamuel has quit [Quit: MrSamuel]
abernstein has quit [Quit: abernstein]
<warrshrike> bklane: brother?
beneggett has joined #ruby
renderful has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
aidalgol has joined #ruby
LeBlaaanc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zukin has joined #ruby
SCHAAP137 has joined #ruby
shayan_ has joined #ruby
aupadhye has joined #ruby
renderful has quit [Ping timeout: 244 seconds]
arescorpio has quit [Quit: Leaving.]
jenrzzz has joined #ruby
Cohedrin has joined #ruby
pwnd_nsfw has joined #ruby
Cohedrin_ has quit [Ping timeout: 260 seconds]
shmuli has joined #ruby
Silthias has quit [Ping timeout: 260 seconds]
Silthias1 has joined #ruby
troys_ is now known as troys
elementaru has joined #ruby
troys has quit [Quit: Bye]
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
benlieb has quit [Client Quit]
k200 has joined #ruby
<k200> when i do string.split(" ").each do |st| where string="one two" it gives me three output, one, two and array itself. how to avoid the last array output??
<hanmac> k200 you need to show more of your code, but each does return the string itself, i think thats what you see
<k200> ok. can i avoid that last array output? i am doing this in my rails view and i only want to iterate through splitted string items?
dnicole has joined #ruby
dmtd has quit [Quit: Connection closed for inactivity]
last_staff has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
conta has joined #ruby
anisha has joined #ruby
xall has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
Rickmasta has quit [Ping timeout: 260 seconds]
aupadhye has quit [Quit: Leaving]
aupadhye has joined #ruby
Rickmasta has joined #ruby
<hanmac> k200 i think you want map instead of each
dhurba has quit [Ping timeout: 260 seconds]
xall_ has joined #ruby
zukin has quit [Quit: bsd!]
xall has quit [Ping timeout: 244 seconds]
hutch34 has joined #ruby
nankyokusei has joined #ruby
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
hutch34 has quit [Ping timeout: 244 seconds]
gingray has joined #ruby
dnicole has quit [Ping timeout: 245 seconds]
dnicole has joined #ruby
ben__ has joined #ruby
quazimodo has quit [Read error: Connection reset by peer]
ych has joined #ruby
ych has quit [Remote host closed the connection]
ben__ has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Quit: Leaving]
parabolize has joined #ruby
jshjsh has joined #ruby
AlexJakeGreen has joined #ruby
beneggett has joined #ruby
firstdayonthejob has joined #ruby
andikr has joined #ruby
aswen has quit [Quit: WeeChat 1.5]
igniting has joined #ruby
beneggett has quit [Client Quit]
warrshrike has quit [Quit: Page closed]
JoshS has quit [Ping timeout: 250 seconds]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
gingray has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
Ishido has joined #ruby
AndrewIsHere has joined #ruby
firstdayonthejob has quit [Ping timeout: 260 seconds]
AndrewIsHere has quit [Ping timeout: 256 seconds]
User458764 has joined #ruby
quazimodo has joined #ruby
bocaneri has joined #ruby
Pumukel has joined #ruby
the_drow has joined #ruby
MrSamuel has joined #ruby
Derperperd has quit [Quit: Derperperd]
the_drow has quit [Read error: Connection reset by peer]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
_tpavel has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
exadeci has quit [Quit: Connection closed for inactivity]
_tpavel has quit [Client Quit]
harai_ has joined #ruby
etehtsea has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
pawnbox has quit [Remote host closed the connection]
bluOxigen has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
pawnbox has joined #ruby
kith has joined #ruby
User458764 has joined #ruby
ych has joined #ruby
aganov has joined #ruby
TomyWork has joined #ruby
Silthias has joined #ruby
Silthias1 has quit [Ping timeout: 260 seconds]
SesMan has joined #ruby
grh has joined #ruby
Immune__ has quit [Ping timeout: 265 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
MrSamuel has joined #ruby
teclator has joined #ruby
blackbombay_ has joined #ruby
jaguarmagenta has joined #ruby
wugy has joined #ruby
blackbombay_ has quit [Ping timeout: 244 seconds]
spectrum has joined #ruby
blockchan has joined #ruby
dminuoso_ has joined #ruby
dminuoso_ has quit [Client Quit]
dminuoso_ has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
emilkarl has joined #ruby
chris2 has quit [Ping timeout: 256 seconds]
shayan_ has quit [Quit: shayan_]
djbkd has joined #ruby
claudiuinberlin has joined #ruby
miqlas-H has joined #ruby
shayan_ has joined #ruby
ur5us has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Silthias1 has joined #ruby
chris2 has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
Silthias has quit [Ping timeout: 252 seconds]
Cohedrin has joined #ruby
User458764 has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
MrSamuel has joined #ruby
MrSamuel has quit [Client Quit]
blaxter has joined #ruby
Burgestrand has joined #ruby
Burgestrand has quit [Client Quit]
bkxd has joined #ruby
aryaching has quit [Remote host closed the connection]
Burgestrand has joined #ruby
arashb has joined #ruby
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
Silthias1 has quit [Ping timeout: 256 seconds]
arashb has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
startupality has joined #ruby
KnownSyntax has quit [Ping timeout: 250 seconds]
minimalism has quit [Quit: minimalism]
palms has joined #ruby
hutch34 has joined #ruby
nankyokusei has joined #ruby
gingray has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 244 seconds]
palms has quit [Ping timeout: 260 seconds]
Dimik has quit [Ping timeout: 250 seconds]
the_drow has joined #ruby
Beams has joined #ruby
ben__ has joined #ruby
djbkd has quit [Remote host closed the connection]
symm- has joined #ruby
djbkd has joined #ruby
rkazak has joined #ruby
ziarkaen has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
ojeno has joined #ruby
ojeno has quit [Max SendQ exceeded]
ojeno has joined #ruby
shayan_ has quit [Quit: shayan_]
ojeno has quit [Max SendQ exceeded]
ben__ has quit [Ping timeout: 260 seconds]
ojeno has joined #ruby
djbkd has quit [Ping timeout: 245 seconds]
_sfiguser has quit [Ping timeout: 260 seconds]
symm- has quit [Ping timeout: 252 seconds]
ojeno has quit [Max SendQ exceeded]
the_drow has joined #ruby
harfangk has joined #ruby
shayan_ has joined #ruby
ojeno has joined #ruby
ojeno has quit [Max SendQ exceeded]
marr has joined #ruby
frozengeek has joined #ruby
ojeno has joined #ruby
ojeno has quit [Max SendQ exceeded]
ojeno has joined #ruby
lenwood has joined #ruby
ojeno has quit [Max SendQ exceeded]
ojeno has joined #ruby
ojeno has quit [Max SendQ exceeded]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ferr has joined #ruby
MrLow has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
pokalyis_ has joined #ruby
pokalyis has quit [Ping timeout: 244 seconds]
lenwood has quit [Remote host closed the connection]
MrLow has quit [Client Quit]
Silthias has left #ruby [#ruby]
shmuli has quit [Remote host closed the connection]
Chair has joined #ruby
Silthias has joined #ruby
shmuli has joined #ruby
_sfiguser has joined #ruby
the_drow has joined #ruby
pawnbox has quit [Remote host closed the connection]
brendan- has joined #ruby
shmuli has quit [Ping timeout: 260 seconds]
solocshaw has joined #ruby
lenwood has joined #ruby
Snowy has joined #ruby
zacstewart has quit [Ping timeout: 256 seconds]
Snowy has quit [Remote host closed the connection]
DaniG2k has joined #ruby
Snowy has joined #ruby
pawnbox has joined #ruby
flying has joined #ruby
the_drow has quit [Ping timeout: 260 seconds]
solocshaw has quit [Ping timeout: 265 seconds]
dionysus69 has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shayan_ has quit [Quit: shayan_]
the_drow has joined #ruby
shayan_ has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dextertzu has joined #ruby
jsrn_ has joined #ruby
blockchan1 has joined #ruby
djbkd has joined #ruby
bruce_lee has joined #ruby
Silthias has quit [Quit: Leaving.]
Silthias has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
blockchan has quit [Ping timeout: 250 seconds]
blockchan1 is now known as blockchan
dkam_ has quit [Ping timeout: 260 seconds]
Jmickey has joined #ruby
Jmickey has quit [Client Quit]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
rkazak has quit [Quit: Sleep.....ing....]
Pupeno has quit [Client Quit]
ta__ has quit [Quit: Leaving...]
the_drow has joined #ruby
quazimodo has quit [Ping timeout: 252 seconds]
hutch34 has joined #ruby
tvw has joined #ruby
Immune has joined #ruby
ta__ has joined #ruby
nettoweb has joined #ruby
peaches has quit [Ping timeout: 245 seconds]
hutch34 has quit [Ping timeout: 265 seconds]
pwnd_nsfw` has joined #ruby
emilkarl has joined #ruby
MuffinPimp[m] has quit [Remote host closed the connection]
M-mistake has quit [Remote host closed the connection]
Silke[m] has quit [Remote host closed the connection]
bascht has quit [Remote host closed the connection]
cpfeilschifter[m has quit [Remote host closed the connection]
M-manveru has quit [Remote host closed the connection]
fladson[m] has quit [Remote host closed the connection]
Luca[m] has quit [Read error: Connection reset by peer]
davix[matrix] has quit [Read error: Connection reset by peer]
M-shine has quit [Read error: Connection reset by peer]
eliotk[m] has quit [Remote host closed the connection]
velu_aon[m] has quit [Write error: Connection reset by peer]
serah[m] has quit [Read error: Connection reset by peer]
laithshadeed[m] has quit [Write error: Connection reset by peer]
meaggan[m] has quit [Write error: Broken pipe]
bluOxigen has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
pwnd_nsfw has quit [Ping timeout: 256 seconds]
Stazer has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
ghostlight has quit [Ping timeout: 276 seconds]
pokalyis_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
peaches_ has joined #ruby
peaches_ is now known as peaches
DaniG2k has quit [Quit: leaving]
peaches has quit [Changing host]
peaches has joined #ruby
ghostlight has joined #ruby
senayar has joined #ruby
pwnd_nsfw has joined #ruby
the_drow has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 256 seconds]
biberu has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
Gadgetoid has quit [Ping timeout: 244 seconds]
cibs has joined #ruby
astrobunny has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
elementaru has quit [Read error: Connection reset by peer]
blockchan has quit [Ping timeout: 256 seconds]
plantigrade has quit [Quit: WeeChat 1.0.1]
shmuli has joined #ruby
avelldiroll has joined #ruby
dextertzu has quit [Read error: Connection reset by peer]
Luca[m] has joined #ruby
davix[matrix] has joined #ruby
Silke[m] has joined #ruby
bascht has joined #ruby
M-shine has joined #ruby
M-manveru has joined #ruby
MuffinPimp[m] has joined #ruby
fladson[m] has joined #ruby
laithshadeed[m] has joined #ruby
meaggan[m] has joined #ruby
serah[m] has joined #ruby
velu_aon[m] has joined #ruby
cpfeilschifter[m has joined #ruby
eliotk[m] has joined #ruby
M-mistake has joined #ruby
GinoManWorks has quit [Ping timeout: 244 seconds]
the_drow has quit [Read error: Connection reset by peer]
frozengeek has quit [Ping timeout: 250 seconds]
mniip_ is now known as mniip
shmuli has quit [Ping timeout: 260 seconds]
frozengeek has joined #ruby
matp_ has joined #ruby
ruby-lang507 has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
matp has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
zacstewart has joined #ruby
emilkarl has quit [Read error: Connection reset by peer]
pragmaticus has joined #ruby
GinoManWorks has joined #ruby
startupality has joined #ruby
emilkarl has joined #ruby
solocshaw has joined #ruby
zacstewart has quit [Ping timeout: 260 seconds]
dextertzu has joined #ruby
tyang has quit [Ping timeout: 260 seconds]
workmad3_ is now known as workmad3
f4 has quit [Quit: Konversation terminated!]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
solocshaw has quit [Ping timeout: 265 seconds]
the_drow has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 252 seconds]
ur5us has quit [Ping timeout: 250 seconds]
the_drow has joined #ruby
shayan_ has quit [Quit: shayan_]
the_drow has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 250 seconds]
grh has quit [Ping timeout: 276 seconds]
shayan_ has joined #ruby
dextertzu has quit [Read error: Connection reset by peer]
pwnd_nsfw` has joined #ruby
bobdobbs has joined #ruby
ruby-lang507 has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
pwnd_nsfw has quit [Ping timeout: 256 seconds]
jshjsh has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
pawnbox has quit [Remote host closed the connection]
dextertzu has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
grh has joined #ruby
ocbtec has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
tvw has quit [Remote host closed the connection]
jeyraof has quit [Ping timeout: 265 seconds]
alexherbo2 has quit [Quit: WeeChat 1.5]
j416 has quit [Quit: o/]
koooge has quit [Quit: Leaving...]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emilkarl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
shmuli has joined #ruby
the_drow has joined #ruby
emilkarl has joined #ruby
ldnunes has joined #ruby
ule has joined #ruby
shmuli has quit [Ping timeout: 260 seconds]
matp_ is now known as matp
aidalgol has quit [Ping timeout: 244 seconds]
AndrewIsHere has joined #ruby
pawnbox has joined #ruby
frozengeek has quit [Quit: frozengeek]
the_drow has quit [Read error: Connection reset by peer]
cibs has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
Prawnzy has quit [Remote host closed the connection]
AndrewIsHere has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
cibs has joined #ruby
the_drow has joined #ruby
senayar has quit [Read error: Connection reset by peer]
senayar has joined #ruby
elenatanasoiu has joined #ruby
Jameser has quit [Ping timeout: 252 seconds]
cibs has quit [Ping timeout: 268 seconds]
cibs has joined #ruby
djbkd has joined #ruby
Immune has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
gnufied has quit [Ping timeout: 256 seconds]
elenatanasoiu has quit [Ping timeout: 276 seconds]
zarubin has joined #ruby
GinoManWorks has quit [Ping timeout: 244 seconds]
elenatanasoiu has joined #ruby
GinoManWorks has joined #ruby
gnufied has joined #ruby
the_drow has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
c355e3b has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
shinnya has joined #ruby
shayan_ has quit [Quit: shayan_]
xall_ has quit [Ping timeout: 250 seconds]
xall has joined #ruby
alexherbo2 has joined #ruby
xall_ has joined #ruby
emilkarl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has quit [Ping timeout: 276 seconds]
foooobear has quit [Quit: (null)]
JeanCarloMachado has joined #ruby
shayan_ has joined #ruby
tvw has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
jgnagy has quit [Ping timeout: 252 seconds]
ponga has quit [Quit: Connection closed for inactivity]
ziarkaen has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
ziarkaen has joined #ruby
hutch34 has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
minimalism has joined #ruby
ziarkaen has quit [Read error: No route to host]
the_drow has quit [Read error: Connection reset by peer]
ziarkaen has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
gnufied has quit [Ping timeout: 245 seconds]
gnufied has joined #ruby
XV8 has joined #ruby
shmuli has joined #ruby
blackmesa has joined #ruby
frozengeek has joined #ruby
<bobdobbs> I'm trying to rename all files in directory. I have this: http://hastebin.com/apiramuzor.rb
<bobdobbs> When I hit line 12, I get the error "device or resource busy": http://hastebin.com/ugejaluvun.sql
<bobdobbs> what could I be doing wrong?
the_drow has joined #ruby
<dminuoso_> bobdobbs: Something has an open file handle Im guessing.
<dminuoso_> bobdobbs: Check lsof
sparch has joined #ruby
shmuli has quit [Ping timeout: 245 seconds]
_sfiguser has quit [Remote host closed the connection]
ziarkaen has quit [Ping timeout: 250 seconds]
<bobdobbs> dminuoso_: could it be something in the script itself? Like, is there some nuance to the ruby's file api that I need to know?
the_drow has quit [Read error: Connection reset by peer]
emilkarl has joined #ruby
flying has quit []
<dminuoso_> bobdobbs: Have you checked my open file handle theory?
startupality has quit [Quit: startupality]
the_drow has joined #ruby
<bobdobbs> dminuoso_: only in the crudest possible fashion...
<bobdobbs>
<bobdobbs> I did 'lsof | grep html'. Nothing returned
jaxxstorm has joined #ruby
<dminuoso_> bobdobbs: I got an idea.
<dminuoso_> bobdobbs: Dir.foreach includes "." and ".."
<dminuoso_> ;-)
<hanmac> yeah i hate this stupid dot files too :/
postmodern has quit [Quit: Leaving]
<bobdobbs> hmmm
blockchan has joined #ruby
Gadgetoid has joined #ruby
pawnbox has quit [Remote host closed the connection]
nettoweb has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
nettoweb has joined #ruby
pawnbox has joined #ruby
<bobdobbs> oh!
<bobdobbs> I'm stoopid
<bobdobbs> of course it's the dotfiles
camilasan has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 245 seconds]
the_drow has quit [Read error: Connection reset by peer]
camilasan has joined #ruby
nettoweb has quit [Ping timeout: 252 seconds]
zacstewart has joined #ruby
nettoweb has joined #ruby
warrshrike has joined #ruby
<warrshrike> Hi gentlemen
the_drow has joined #ruby
conta has quit [Quit: conta]
oyes has joined #ruby
Tempesta has quit [Ping timeout: 260 seconds]
<warrshrike> I'm trying to run shell commands in ruby via Open3 to run a bash script and get the result back. Unfortunately, the Java based application in the script always throws an exception
<warrshrike> I've tried exec, ``, open3, open4
<dminuoso_> warrshrike: Dont tell me that the Java Exception propagates through the shell into Ruby!
<dminuoso_> That would be awesome.
<warrshrike> It does ~_~
<warrshrike> https://codepaste.net/bax39a here it is
<warrshrike> it works okay i run it directly through bash...so I'm thinking its either a shell thingie issue
<warrshrike> any ideas?
zacstewart has quit [Ping timeout: 265 seconds]
<workmad3> warrshrike: well, that's exactly what I'd expect with `exec`, as that replaces the current process with the specified one
<warrshrike> dumb it down for me?
<warrshrike> open3 and open4 use a child process but the same error occurs
<workmad3> warrshrike: right, but I'm betting it doesn't propagate through the ruby process then? :)
<dminuoso_> warrshrike: Let's differentiate between two things: Propagating exceptions - and STDERR.
<warrshrike> oh yeah it doesnt
<dminuoso_> warrshrike: So what do you want to happen?
<warrshrike> yes that makes sense. In this case the program terminates...in the subshell it doesnt
gnufied has joined #ruby
frozengeek has quit [Quit: frozengeek]
<warrshrike> well I want the bash script to run without errors...
elementaru has joined #ruby
<workmad3> warrshrike: `exec` is rarely what you want to do if you want to shell out to a command in ruby... it doesn't shell out, it replaces the current ruby program with the command you've called it with
<warrshrike> I get the same error using system '...' with a subshell
salut has joined #ruby
<workmad3> warrshrike: how about `system "bash -l <command>"`?
<warrshrike> Okay so what do you suggest brother
<warrshrike> okay lemme try
<dminuoso_> warrshrike: if you dont want an error, fix your java app/invocation.
GinoManWorks has quit [Ping timeout: 244 seconds]
<dminuoso_> Im absolutely unsure what the issue is.
<workmad3> dminuoso_: it apparently doesn't error when run directly in a bash shell
blackmesa has quit [Ping timeout: 252 seconds]
<workmad3> but does when invoked through open3/system/etc in ruby
frozengeek has joined #ruby
<warrshrike> same error...java app is fine as it runs fine directly in bash
<warrshrike> @workmad3: exactly
Immune has joined #ruby
hck89 has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
<warrshrike> a classpath/bash thingie error? It really should work after doing bash -l since we start the local shell
<warrshrike> ...
<workmad3> warrshrike: yeah, no idea... maybe see if you can reproduce the error somehow in a bash terminal and then ask a java channel (or the authors of that 'Soot' library whatever it is)?
emilkarl has quit [Read error: Connection reset by peer]
gnufied has quit [Ping timeout: 260 seconds]
<dminuoso_> warrshrike: Environment variables, wrong current working dir..
<dminuoso_> those things come to mind.
<dminuoso_> "Attempt to create RefType containing a / --> ../flap1.0" sounds suspciously related to relative paths.
oyes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaxxstorm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<warrshrike> man im stupid i should be beaten by a hooded guy in a back alley...I hadnt used a prior command for env vars!
<warrshrike> okay how can I execute TWO bash commands 'concurrently' in open4
<dminuoso_> "concurrently" ?
<dminuoso_> open4?
<dminuoso_> :|
<apeiros> warrshrike: you call open4 twice
Immune has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
<warrshrike> oh...should stdin be used?
<apeiros> they're separate processes. they won't wait for ruby.
the_drow has joined #ruby
<workmad3> they'll also have separate environments...
<apeiros> how'd I know whether you should use stdin for whatever you do?
<warrshrike> I mean pid, stdin, stdout, stderr = Open4::popen4 "artifact_path=`pwd`; export PATH=$artifact_path:$PATH"
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<warrshrike> now...also I want the same 'shell'...I assume that means same process
<warrshrike> so separate Open4s?
<apeiros> you can't run processes concurrently in one shell. or at least I'm unaware of how.
Puffball has joined #ruby
<apeiros> also iirc open4 allows you to pass an env to the spawned process. no need for export shenanigans.
<cek> correct.
<workmad3> warrshrike: you probably don't mean 'concurrent' btw... you probably mean you want to run something to set up an environment and then run your script... a.k.a. you want a sequential run ;)
<warrshrike> yep.
<warrshrike> yeah I meant sequential
<workmad3> but you'd probably be better off using the features of open3 to set an environment
<warrshrike> my bad I'm all messed up today
<workmad3> Open3.popen3({foo: "bar"}, "command") iirc
<warrshrike> how does one use those features? There is nothing on the open4 repo...
djellemah has quit [Ping timeout: 256 seconds]
thoolihan_ has joined #ruby
uranellus_ has joined #ruby
yonatankoren_ has joined #ruby
svkurowski_ has joined #ruby
zenguy_pc has quit [Ping timeout: 276 seconds]
bogdanteleaga has quit [Ping timeout: 276 seconds]
svkurowski has quit [Ping timeout: 276 seconds]
yonatankoren has quit [Ping timeout: 276 seconds]
sonOfRa has quit [Ping timeout: 276 seconds]
flopsec has quit [Ping timeout: 276 seconds]
thoolihan has quit [Ping timeout: 276 seconds]
uranellus has quit [Ping timeout: 276 seconds]
svkurowski_ is now known as svkurowski
<workmad3> warrshrike: I probably wouldn't use open4 btw... that seems rather ancient, and the main feature it seems to add is that it unwraps the pid (which is pretty easy to get with Open3)
brendan- has joined #ruby
zenguy_pc has joined #ruby
<warrshrike> okay no more open4...yeah its 6 years old
bogdanteleaga has joined #ruby
jaxxstorm has joined #ruby
<workmad3> https://docs.ruby-lang.org/en/2.0.0/Open3.html#method-i-popen3 <-- the ruby docs show both getting the pid and that sneaky 'first optional' arg for setting the env :)
<warrshrike> cool cool
sonOfRa has joined #ruby
<warrshrike> its also possible to set env as first line of bash script right? I mean it is just a bunch of commands...
unCork has joined #ruby
uxp has joined #ruby
<workmad3> warrshrike: sure
<warrshrike> also, we can change the dir as the first param of open3?
<workmad3> there's a chdir option for open3... that comes after the command, not as part of the env
galeido_ has joined #ruby
netwoodle has joined #ruby
<workmad3> so Open3.popen3({foo: "bar"}, command, chdir: "/foobar")
johnmilton has joined #ruby
<warrshrike> oh cool
nankyokusei has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
glcx has joined #ruby
glcx has quit [Changing host]
glcx has joined #ruby
Jameser has joined #ruby
GinoManWorks has joined #ruby
shmuli has joined #ruby
gnufied has joined #ruby
nadir has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
alexherbo2 has quit [*.net *.split]
armyriad has quit [*.net *.split]
igniting has quit [*.net *.split]
Helheim has quit [*.net *.split]
maloik has quit [*.net *.split]
swills has quit [*.net *.split]
AlexRussia has quit [*.net *.split]
webguynow has quit [*.net *.split]
yeticry has quit [*.net *.split]
naprimer_3 has quit [*.net *.split]
hogetaro has quit [*.net *.split]
galeido has quit [*.net *.split]
axisys has quit [*.net *.split]
FastJack has quit [*.net *.split]
audibleblink has quit [*.net *.split]
tristanp has quit [*.net *.split]
mniip has quit [*.net *.split]
jzigmund_ has quit [*.net *.split]
shaman42 has quit [*.net *.split]
madhatter has quit [*.net *.split]
janno has quit [*.net *.split]
reaVer has quit [*.net *.split]
uxp_ has quit [*.net *.split]
ajaiswal has quit [*.net *.split]
fatbob has quit [*.net *.split]
Cork has quit [*.net *.split]
YaknotiS has quit [*.net *.split]
noodle has quit [*.net *.split]
Guest47904 has quit [*.net *.split]
tomaw has quit [*.net *.split]
KillerFox has quit [*.net *.split]
unCork is now known as Cork
netwoodle is now known as noodle
nankyokusei has quit [Ping timeout: 260 seconds]
yardenbar has joined #ruby
xall_ has quit [Ping timeout: 245 seconds]
shmuli has quit [Ping timeout: 256 seconds]
ghostlight has quit [Ping timeout: 260 seconds]
ziarkaen has joined #ruby
djellemah has joined #ruby
Eiam has quit [Ping timeout: 265 seconds]
mniip has joined #ruby
flying has joined #ruby
zacstewart has joined #ruby
GodFather has joined #ruby
rafaelcosta has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
aupadhye has quit [Quit: Leaving]
elenatanasoiu has quit [Ping timeout: 260 seconds]
ghostlight has joined #ruby
Tempesta has joined #ruby
cibs has joined #ruby
modlin has joined #ruby
rafaelcosta has quit [Client Quit]
rafaelcosta has joined #ruby
zacstewart has quit [Client Quit]
rafaelcosta has quit [Client Quit]
elenatanasoiu has joined #ruby
grh has quit [Read error: No route to host]
nankyokusei has joined #ruby
ayonkhan has joined #ruby
sylario has joined #ruby
tyang has joined #ruby
the_drow has joined #ruby
ayonkhan has quit [Client Quit]
reaVer has joined #ruby
fatbob has joined #ruby
madhatter has joined #ruby
axisys has joined #ruby
shaman42 has joined #ruby
ajaiswal has joined #ruby
audibleblink has joined #ruby
jzigmund has joined #ruby
janno has joined #ruby
swills has joined #ruby
FastJack has joined #ruby
webguynow has joined #ruby
yeticry has joined #ruby
naprimer_3 has joined #ruby
alexherbo2 has joined #ruby
tristanp has joined #ruby
tyang has quit [Read error: Connection reset by peer]
hogetaro has joined #ruby
elenatanasoiu1 has joined #ruby
Helheim has joined #ruby
KillerFox has joined #ruby
tomaw has joined #ruby
ayonkhan has joined #ruby
elenatanasoiu has quit [Ping timeout: 265 seconds]
ghostlight has quit [Ping timeout: 265 seconds]
User458764 has joined #ruby
Gadgetoid has quit [Ping timeout: 265 seconds]
djellemah has quit [Ping timeout: 256 seconds]
forgot has joined #ruby
AndrewIsHere has joined #ruby
ghostlight has joined #ruby
jaguarmagenta has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
jaguarmagenta has quit [Remote host closed the connection]
senayar has quit []
tyang has joined #ruby
Gadgetoid has joined #ruby
Prawnzy has joined #ruby
oyes has joined #ruby
AndrewIsHere has quit [Ping timeout: 245 seconds]
rafaelcosta has joined #ruby
flopsec has joined #ruby
oyes has quit [Client Quit]
jenrzzz has quit [Ping timeout: 260 seconds]
yardenbar has quit [Ping timeout: 260 seconds]
ayonkhan has quit [Quit: Leaving]
the_drow has joined #ruby
Snowy has quit [Remote host closed the connection]
Prawnzy has quit [Ping timeout: 244 seconds]
Snowy has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
scott4000 has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
grh has joined #ruby
Snowy has quit [Ping timeout: 260 seconds]
ayonkhan has joined #ruby
ayonkhan has quit [Client Quit]
scott4000 has joined #ruby
the_drow has joined #ruby
Immune has joined #ruby
last_staff has quit [Quit: last_staff]
ayonkhan has joined #ruby
ayonkhan has quit [Client Quit]
ur5us has joined #ruby
hutch34 has joined #ruby
rafaelcosta has quit [Quit: Textual IRC Client: www.textualapp.com]
Immune has quit [Ping timeout: 260 seconds]
ayonkhan has joined #ruby
ayonkhan has quit [Client Quit]
startupality has quit [Quit: startupality]
ayonkhan has joined #ruby
ayonkhan has quit [Client Quit]
ur5us has quit [Ping timeout: 244 seconds]
davix[matrix] has quit [Remote host closed the connection]
M-manveru has quit [Remote host closed the connection]
MuffinPimp[m] has quit [Remote host closed the connection]
bascht has quit [Remote host closed the connection]
laithshadeed[m] has quit [Read error: Connection reset by peer]
Silke[m] has quit [Remote host closed the connection]
Luca[m] has quit [Read error: Connection reset by peer]
M-shine has quit [Read error: Connection reset by peer]
eliotk[m] has quit [Read error: Connection reset by peer]
M-mistake has quit [Write error: Connection reset by peer]
fladson[m] has quit [Remote host closed the connection]
meaggan[m] has quit [Write error: Connection reset by peer]
cpfeilschifter[m has quit [Write error: Connection reset by peer]
velu_aon[m] has quit [Remote host closed the connection]
serah[m] has quit [Write error: Broken pipe]
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
nettoweb has quit [Ping timeout: 250 seconds]
nettoweb1 has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
wugy has quit []
Snowy has joined #ruby
ghostlight has quit [Ping timeout: 260 seconds]
pokalyis has joined #ruby
the_drow has joined #ruby
shmuli has joined #ruby
ramortegui has joined #ruby
ghostlight has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
pragmaticus has quit [Ping timeout: 245 seconds]
sdothum has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
shmuli has quit [Ping timeout: 260 seconds]
jphase has joined #ruby
jphase has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
djellemah has joined #ruby
jphase has joined #ruby
Puffball has quit [Remote host closed the connection]
Puffball has joined #ruby
futilegames has joined #ruby
claudiuinberlin has quit [Ping timeout: 245 seconds]
mjuxn[m] has joined #ruby
silex[m] has joined #ruby
MuffinPimp[m] has joined #ruby
madveru[m] has joined #ruby
bascht[m] has joined #ruby
shine[m] has joined #ruby
Luca[m] has joined #ruby
shiny[m] has joined #ruby
laithshadeed[m] has joined #ruby
eliotk[m] has joined #ruby
cpfeilschifter[m has joined #ruby
meaggan[m] has joined #ruby
velu_aon[m] has joined #ruby
fladson[m] has joined #ruby
mistake[m] has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
jphase has quit []
claudiuinberlin has joined #ruby
chouhoulis has joined #ruby
ben___ has joined #ruby
jphase has joined #ruby
brendan- has joined #ruby
the_drow has joined #ruby
blackmesa has joined #ruby
TheCubeLord has quit [Quit: F*** This S*** Im out!]
RitterJack has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
aryaching has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
pragmaticus has joined #ruby
malconis has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
<k200> how cas i split "text12,134" to "text" and "12,134"
zarubin has quit [Read error: Connection reset by peer]
the_drow has quit [Read error: Connection reset by peer]
DLSteve has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
jphase has quit []
malconis has quit [Ping timeout: 250 seconds]
galeido_ is now known as galeido
galeido has quit [Changing host]
galeido has joined #ruby
jeyraof has joined #ruby
malconis has joined #ruby
<RitterJack> RoR question : How can I translate month name in date_select ? i added rails-i18n gem and config.i18n.default_locale = :fr but nothing change.. Thanks
<tobiasvl> k200: something like this maybe text12,1234'.split(/([^\d]+)([^a-zA-Z]*)/)
<tobiasvl> probably easier ways
the_drow has joined #ruby
djellemah has quit [Ping timeout: 245 seconds]
jphase has joined #ruby
chris2 has quit [Ping timeout: 256 seconds]
<ljarvis> >> "text12,1234".scan /[[:alpha:]]+|[\d,]+/
<ruby[bot]> ljarvis: # => ["text", "12,1234"] (https://eval.in/668165)
Immune has joined #ruby
<tobiasvl> yeah that's better
anisha has joined #ruby
<k200> ljarvis: thanks.
<k200> so i need to read about alpha??
<apeiros> ?rails RitterJack
<ruby[bot]> RitterJack: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<apeiros> ljarvis: why not \D+|\d+?
<RitterJack> apeiros, already asked, no awnser that why i try here
<apeiros> ah, scan, not split
chouhoulis has quit [Remote host closed the connection]
lenwood has quit [Ping timeout: 265 seconds]
Derperperd has joined #ruby
<apeiros> RitterJack: in that case:
<apeiros> ?crosspost RitterJack
<ruby[bot]> RitterJack: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Immune has quit [Ping timeout: 260 seconds]
<k200> why ruby :alpha: google search gives me results abotu Pokemon??
<apeiros> lol
RitterJack has quit [Quit: Quitte]
<apeiros> I guess because there's a pokemon game by the name "alpha ruby"
<k200> :-)
<k200> what do I search for?
Puffball has quit [Read error: Connection reset by peer]
<tobiasvl> haha
<tobiasvl> uh 2.1.1 was just the first result on google
<k200> thanks all.
<k200> not for me.
jrafanie has joined #ruby
<tobiasvl> no, I also get pokemon stuff. I mean I googled "ruby regexp" and got the doc for 2.1.1.
emilkarl has joined #ruby
<apeiros> ?regexü
ych has joined #ruby
<apeiros> ?regexp
<ruby[bot]> apeiros: I don't know anything about regexp
<apeiros> waaaa?
<apeiros> ?regex
<apeiros> aha!
<k200> ok
<apeiros> !fact alias regex regexp
<ruby[bot]> apeiros: I will remember that regex is also called regexp.
<warrshrike> whats the diff between putting instance variables in constructor and class body?
<apeiros> warrshrike: they'll belong to different objects
ben___ has quit [Disconnected by services]
Puffball has joined #ruby
pawnbox has quit [Remote host closed the connection]
ben______ has joined #ruby
<warrshrike> you mean one is static? that cant be right...
kingkong- has quit [Remote host closed the connection]
<apeiros> there's no such thing as static in ruby
chris2 has joined #ruby
<apeiros> I mean that classes are objects
<apeiros> and being objects (which is a synonym for "instance"), they can have instance variables of their own.
<apeiros> >> class Foo; @in_class_body = 123; def initialize; @in_instance_body = 987; end; end; {in_class: Foo.instance_variables, in_instance: Foo.new.instance_variables}
<ruby[bot]> apeiros: # => {:in_class=>[:@in_class_body], :in_instance=>[:@in_instance_body]} (https://eval.in/668169)
pwnd_nsfw` has quit [Read error: Connection reset by peer]
<warrshrike> no its static, but it isnt called static?
<warrshrike> so*
<apeiros> it's not static. that concept does not apply to ruby.
PaulCapestany has quit [Read error: Network is unreachable]
<apeiros> it's at max similar to what's static in some other languages.
<warrshrike> so it belongs to the class, rather than one of its instances?
<apeiros> correct
emilkarl has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwnd_nsfw` has joined #ruby
<warrshrike> okay...
kingkong- has joined #ruby
<apeiros> and you can define methods to access them, either via metaprogramming (the attr_* methods), or by hand
PaulCapestany has joined #ruby
<tobiasvl> warrshrike: in ruby, classes are objects of the class Class
<warrshrike> that confuses more...what is the diff b/w @instancedefinedinclassbody and @@classvar
<apeiros> @@classvar has rather complex inheritance rules
<apeiros> i.e. @ivar belongs to *one* object only. always.
<tobiasvl> the first one you use, the second one we don't speak about
<apeiros> @@classvars belong to a plethora of objects: the class, its descendants, its instances, the instances of its descendants.
<warrshrike> so i can assume @@neverexisted
Derperperd has quit [Quit: Derperperd]
<warrshrike> cool
cdg has joined #ruby
<apeiros> and due to those rules being somewhat hard to understand, we do what tobiasvl said - we usually don't use it.
<warrshrike> yeah makes sense. okay what is the diff between @var and normalvar in a func body
<apeiros> normalvar's scope is limited to the method. @var is scoped to the objects lifetime.
ChiefAlexander has joined #ruby
<warrshrike> oh!
jcao219 has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
<warrshrike> so no matter what funck @var is made in (not necessarily the cnstrtr)..it persists till end?
<apeiros> i.e. @ivars are the object's own data. lvars are data to temporarily work with.
<warrshrike> defined in*
<apeiros> yes.
<warrshrike> so theres nothing special about a cnstrtr...except the fact that it is invoked at funk birth
<warrshrike> right?
<apeiros> once assigned, the object in whose context the method was run will have that ivar until the object either dies or you explicitly undefine it.
<apeiros> cnstrtr?
<warrshrike> constructor
<apeiros> correct. initialize is an ordinary method.
<apeiros> the only special thing is that Class#new will call it with all the arguments passed to new right after allocating the new object.
<apeiros> and that it's private by default.
<warrshrike> so @var has object wide scope...and isnt limited to the function which births it?
<apeiros> correct
<warrshrike> makes perfect sense my man. and $globalvar is global no matter where defined?
cdg has quit [Read error: Connection reset by peer]
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
<apeiros> yes. hence its name ;-)
Puffball has quit [Remote host closed the connection]
armyriad has joined #ruby
igniting has joined #ruby
YaknotiS has joined #ruby
AlexRussia has joined #ruby
<warrshrike> awesome. thanks a bunch man....now I have some ruby code to rewrite....~_~
jphase has quit [Remote host closed the connection]
<warrshrike> man sometimes I think...if my employers actually knew how clueless I am, they'd have a seizure
<apeiros> don't worry
<apeiros> if you knew how clueless your employers are, you'd have a seizure yourself ;-p
jphase has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
jphase has quit [Changing host]
jphase has joined #ruby
Puffball has joined #ruby
Rodya_ has joined #ruby
<warrshrike> hahaa true >.<
harai_ has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
blackmesa has quit [Quit: WeeChat 1.5]
kalima32 has joined #ruby
dextertzu has quit [Read error: Connection reset by peer]
<warrshrike> Hey man the @instvars we were talking about are they public by default?
<apeiros> no
<apeiros> you can only ever access an ivar of another object through a method
<warrshrike> hmm..alright
ricer2 has quit [Quit: Caught SystemExit exception.]
<apeiros> but by default, your object will have instance_variable_get
coolboy has joined #ruby
<apeiros> >> class X; def initialize; @y = 12; end; end; X.new.instance_variable_get(:@y)
<ruby[bot]> apeiros: # => 12 (https://eval.in/668176)
<apeiros> had to go through a method too (ivar_get), but it didn't require me to add a specific method.
<dminuoso_> ...
the_drow has joined #ruby
<dminuoso_> Love it how quickly Rubyists revert to breaking encapsulation.
<warrshrike> cool so dont really need separate methods cools
<dminuoso_> Yes you do warrshrike.
djbkd has quit [Ping timeout: 260 seconds]
<warrshrike> but he just said...
<dminuoso_> warrshrike: instance_variable_get is not something you should use.
<warrshrike> safety hazard?
<dminuoso_> warrshrike: Design hazard.
<warrshrike> Okay noted. No using instance_variable_get in production code henceforth
grh has quit [Ping timeout: 252 seconds]
<dminuoso_> warrshrike: Your class defines how to interact with the object.
<k200> ljarvis: any idea how can I make that split work on symbols? if i do that split on "€ 10,000" it return only "10,000" as array.
<ljarvis> k200: what's the full string?
<dminuoso_> warrshrike: Not the Ruby methods to bypass any restrictions.
<apeiros> warrshrike: ivar_get is for debugging, not for API
<warrshrike> Got it.
<apeiros> i.e. it's very nice to have, but it's not very nice to use or tell somebody to go through that.
<dminuoso_> warrshrike: attr_reader is short enough and documents and defines how information flows.
<dminuoso_> warrshrike: It lets everybody know "this is part of my public interface, you can depend on it"
Derperperd has joined #ruby
<warrshrike> awesome didnt know there was an automatic documentation maker
<dminuoso_> warrshrike: attr_reader itself documents intend.
last_staff has joined #ruby
<warrshrike> okay got it. one more thing, how do you ruby arrays get 'type' defined? is it dependent on first obj?
<dminuoso_> "type" ?
<apeiros> warrshrike: the only type is "object"
<warrshrike> okay my bad. you can have multiple type of objects...
<warrshrike> in one array...
<apeiros> there's no "typed array" class in core/stdlib
<dminuoso_> warrshrike: each object has its own class. the object of the array itself is of class "Array"
<apeiros> >> [1, "two", :three, {four: 5.1}]
<ruby[bot]> apeiros: # => [1, "two", :three, {:four=>5.1}] (https://eval.in/668183)
hardest_ has joined #ruby
<warrshrike> got it!
<warrshrike> is there an equivalent to pythons static_Assert?
<apeiros> if you want an array which enforces a class/type, you'd have to implement it yourself. IMO usually more work than it's wroth.
<apeiros> *worth
<warrshrike> yeah i dont really need it when in Ruby go the Ruby way I guess
<apeiros> not knowing python well, but I don't think so.
<hardest_> csv with ruby it is difficult :/
<dminuoso_> warrshrike: Ruby is duck typing based.
<k200> ljarvis: "currency amount with comma"
<dminuoso_> warrshrike: If it walks like a duck and talks like a duck, it is a duck - even if its not a duck.
ziarkaen has quit [Ping timeout: 244 seconds]
pokalyis has quit [Read error: Connection reset by peer]
<dminuoso_> warrshrike: The way you treat objects defines the "checking of objects" - only assert classes when there could be ambiguities that may not present themselves immediately.
<warrshrike> python is duck typed too...but yeah i get it there is no conception of type at all.
pokalyis has joined #ruby
<warrshrike> yeah
<dminuoso_> warrshrike: There is a concept of type, but its not very commonly enforced.
<hardest_> CSV.foreach(filename) do |row| p row[0] # use row here... end #for i -- my outputing is like "GOOGLE.COM", how do I remove quotes ?
harai_ has joined #ruby
<dminuoso_> warrshrike: If you want static typing and something like Ruby, try out the Crystal language.
<apeiros> hardest_: you probably don't have quotes and are confusing inspect and value
<apeiros> >> x = "foo"; puts x.inspect; puts x # hardest_ check the link for the output and compare
<ruby[bot]> apeiros: # => "foo" ...check link for more (https://eval.in/668186)
dextertzu has joined #ruby
<warrshrike> crystal seems real cool, like a less verbose swift
<hardest_> with inspect output is "\"GOOGLE.ZW\""
<apeiros> then you have quotes. but in that case, it's not "csv is hard with ruby". it's you having quoted data in your csv. rather unrelated.
<apeiros> you can either slice them away (str[1..-2]), regex replace them (str.gsub(/\A"|"\z/, ''), or find another creative way.
Derperperd has quit [Quit: Derperperd]
the_drow has quit [Read error: Connection reset by peer]
<hardest_> apeiros: I do not have quotes
<apeiros> hardest_: your output says you do. or you're not telling the full story.
<apeiros> ruby's csv lib doesn't add quotes for funsies.
igniting has quit [Ping timeout: 268 seconds]
<hardest_> I dont see any quotes opening the file even with vi
<hardest_> how do I use counts with foreach ? I mean, for i in.. puts i
startupality has quit [Quit: startupality]
<apeiros> foreach(x).with_index do |row, idx|
dminuoso_ has quit [Ping timeout: 265 seconds]
* apeiros brb
ziarkaen has joined #ruby
the_drow has joined #ruby
pokalyis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warrshrike has quit [Ping timeout: 260 seconds]
tercenya has joined #ruby
ziarkaen has quit [Ping timeout: 268 seconds]
ericwood has joined #ruby
ziarkaen has joined #ruby
Prawnzy has joined #ruby
yardenbar has joined #ruby
* apeiros back
dionysus69 has quit [Ping timeout: 265 seconds]
<apeiros> hardest_: re: "I don't see any quotes". well, then as said, you're not telling us the full story. because as said, ruby's csv lib does not add quotes where there aren't any.
the_drow has quit [Read error: Connection reset by peer]
GodFather has quit [Ping timeout: 256 seconds]
jsaak has quit [Remote host closed the connection]
Prawnzy has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
symm- has quit [Ping timeout: 250 seconds]
ChiefAlexander has quit [Remote host closed the connection]
the_drow has quit [Read error: Connection reset by peer]
ChiefAlexander has joined #ruby
ych has joined #ruby
shmuli has joined #ruby
cdg_ has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
cdg has quit [Ping timeout: 256 seconds]
shmuli has quit [Ping timeout: 256 seconds]
abernstein has joined #ruby
nettoweb has joined #ruby
jbeeze has joined #ruby
mhib has joined #ruby
ych has quit [Read error: Connection reset by peer]
teclator has quit [Ping timeout: 260 seconds]
last_staff has quit [Read error: Connection reset by peer]
c355e3b has quit [Quit: Connection closed for inactivity]
bluOxigen has quit [Ping timeout: 250 seconds]
spectrum has quit [Read error: Connection reset by peer]
tycoon177 has joined #ruby
<tycoon177> Is it more ruby-like to have "!some_boolean" or "not some_boolean"
<canton7> !some_boolean
lenwood has joined #ruby
<canton7> although also consider using 'unless' and 'until' (instead of 'if' and 'while'), so long as that doesn't make your code harder to read
tercenya has quit [Remote host closed the connection]
the_drow has quit [Read error: Connection reset by peer]
<workmad3> tycoon177: `not` has extra concerns around precedence, so `!` is generally preferred in most situations
tercenya has joined #ruby
AndrewIsHere has joined #ruby
synthroid has quit [Remote host closed the connection]
hardest_ has quit [Ping timeout: 260 seconds]
<tycoon177> Thanks!
<tycoon177> Is unless just syntactic sugar for "if !"?
<manveru> basically... yes :)
<tycoon177> Thanks everyone! :) I'm still new to ruby and learning it for work (as well as personal use. I'm falling in love with it! :D)
the_drow has joined #ruby
mpr555 has joined #ruby
sulcino has joined #ruby
<manveru> note that if you define !@ on your class and expect `unless x` to behave like `if !x`, it won't :P
Jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lenwood has quit [Ping timeout: 260 seconds]
<manveru> >> class X; def !@; p :here; true; end; end; unless !!X.new; :false end
<ruby[bot]> manveru: # => :here ...check link for more (https://eval.in/668217)
<manveru> >> class X; def !@; p :here; true; end; end; unless X.new; :false end
<ruby[bot]> manveru: # => nil (https://eval.in/668218)
<manveru> maybe one day matz will fix that
troys has joined #ruby
sulcino has quit [Remote host closed the connection]
djellemah has joined #ruby
sulcino has joined #ruby
ruby-lang393 has joined #ruby
GladiaTeur has joined #ruby
GladiaTeur has left #ruby [#ruby]
<k200> ljarvis: any idea?
AlexRussia has quit [Ping timeout: 268 seconds]
kalima32 has left #ruby [#ruby]
the_drow has quit [Read error: Connection reset by peer]
kyle__ has quit [Remote host closed the connection]
kyle has joined #ruby
kyle is now known as Guest8256
<ruby-lang393> hi i am new to ruby language so i need one help,i have installed two ruby versions in my machine,the second ruby installation path is not specified in environment variable $PATH.when i am trying to use that bundler version i am specifying the complete path e.g "/usr/local/bin/bundler exec " but somehow this command is not picking the corresponding ruby version
<ruby-lang393> i am not sure what i am missing in this
TheCubeLord has joined #ruby
SuperLag_ has joined #ruby
teclator has joined #ruby
rafaelcosta has joined #ruby
mpr555 has quit []
|ifei5g00d has joined #ruby
the_drow has joined #ruby
rafaelcosta has quit [Client Quit]
dminuoso_ has joined #ruby
|ifei5g0_ has joined #ruby
|ifei5good has quit [Read error: Connection reset by peer]
aganov has quit [Remote host closed the connection]
SuperLag has quit [Ping timeout: 250 seconds]
k200 has quit [Quit: leaving]
rafaelcosta has joined #ruby
|ifei5g00d has quit [Read error: Connection reset by peer]
ych has joined #ruby
AlexRussia has joined #ruby
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
TomyWork has quit [Ping timeout: 256 seconds]
jsrn_ has quit [Read error: Connection reset by peer]
jsrn_ has joined #ruby
pawnbox has joined #ruby
chouhoulis has joined #ruby
jaxxstorm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackbombay_ has joined #ruby
rkazak has joined #ruby
Stazer has quit [Ping timeout: 260 seconds]
ruby-lang393 has quit [Ping timeout: 260 seconds]
the_drow has quit [Ping timeout: 265 seconds]
rafaelcosta has quit [Quit: Textual IRC Client: www.textualapp.com]
SuperLag has joined #ruby
teclator has quit [Remote host closed the connection]
the_drow has joined #ruby
|ifei5g00d has joined #ruby
rafaelcosta has joined #ruby
|ifei5g0_ has quit [Read error: Message too long]
rafaelcosta has quit [Client Quit]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tercenya has quit [Remote host closed the connection]
SuperLag_ has quit [Ping timeout: 260 seconds]
tercenya has joined #ruby
raeoks has joined #ruby
jrafanie has joined #ruby
shmuli has joined #ruby
frozengeek has quit [Quit: frozengeek]
Eiam has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
amclain has joined #ruby
shmuli has quit [Ping timeout: 252 seconds]
the_drow has quit [Read error: Connection reset by peer]
dviola has joined #ruby
Devalo has joined #ruby
troys is now known as troys_
dminuoso_ has quit [Remote host closed the connection]
futilegames has quit [Quit: futilegames]
addisaden has quit [Quit: WeeChat 1.6]
jsrn_ has quit [Quit: Leaving]
lenwood has joined #ruby
the_drow has joined #ruby
igniting has joined #ruby
god is now known as SpookyNchambers
mikecmpbll has quit [Quit: inabit. zz.]
sulcino has quit [Remote host closed the connection]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blaxter has quit [Quit: foo]
igniting has quit [Max SendQ exceeded]
SpookyNchambers is now known as Frankenstien
synthroid has joined #ruby
igniting has joined #ruby
Frankenstien is now known as Frankenstein
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
igniting has quit [Max SendQ exceeded]
<havenwood> head -n1 /usr/local/bin/bundle
Chair has quit [Ping timeout: 265 seconds]
<havenwood> good mornin'
weemsledeux has joined #ruby
[Butch] has joined #ruby
igniting has joined #ruby
jaequery has joined #ruby
teclator has joined #ruby
railssmith has quit [Quit: Textual IRC Client: www.textualapp.com]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
SeepingN has joined #ruby
TomyLobo has joined #ruby
salut has quit [Quit: salut]
the_drow has quit [Read error: Connection reset by peer]
hardest_ has joined #ruby
futilegames has joined #ruby
jaxxstorm has joined #ruby
teclator has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
dextertzu has quit [Read error: Connection reset by peer]
ych has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
the_drow has joined #ruby
klaas has joined #ruby
Guest66 has joined #ruby
augcesar has joined #ruby
benlieb has joined #ruby
Beams has quit [Quit: .]
hardest_ has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Ping timeout: 260 seconds]
glcx has quit [Quit: Quitte]
hardest_ has joined #ruby
marxarelli has joined #ruby
dextertzu has joined #ruby
jshjsh has joined #ruby
jshjsh is now known as JoshS
[Butch] has quit [Quit: I'm out . . .]
flying has quit []
nettoweb has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
mhib has quit [Quit: Leaving]
LeBlaaanc has joined #ruby
nettoweb has quit [Ping timeout: 250 seconds]
ben______ has quit [Remote host closed the connection]
shmuli has joined #ruby
Dohplay has joined #ruby
nofxx has joined #ruby
the_drow has joined #ruby
the_drow has quit [Max SendQ exceeded]
johnmilton has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
fedruantine has quit [Ping timeout: 252 seconds]
boxrick1_ has quit [Ping timeout: 256 seconds]
MrBloo_ has quit [Ping timeout: 256 seconds]
Eleeleth has quit [Ping timeout: 256 seconds]
troter__________ has quit [Write error: Connection reset by peer]
imanc has quit [Read error: Connection reset by peer]
pmarreck has quit [Read error: Network is unreachable]
poikon has quit [Read error: Connection reset by peer]
daxroc has quit [Read error: Connection reset by peer]
codepete has quit [Write error: Connection reset by peer]
Travis-42 has quit [Write error: Connection reset by peer]
pfg_ has quit [Read error: Connection reset by peer]
alxndr has quit [Read error: Connection reset by peer]
zipkid has quit [Write error: Connection reset by peer]
bestie has quit [Write error: Connection reset by peer]
HashNuke has quit [Write error: Connection reset by peer]
machty has quit [Read error: Connection reset by peer]
dmnd has quit [Read error: Connection reset by peer]
mitsuhiko has quit [Write error: Connection reset by peer]
ramblinpeck has quit [Write error: Connection reset by peer]
amitchellbullard has quit [Write error: Connection reset by peer]
jimeh has quit [Write error: Connection reset by peer]
deepak_ has quit [Read error: Network is unreachable]
dukedave has quit [Read error: Connection reset by peer]
charles81 has quit [Write error: Connection reset by peer]
AndyWojo has quit [Read error: Connection reset by peer]
JackMc has quit [Read error: Connection reset by peer]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has quit [Ping timeout: 256 seconds]
poikon has joined #ruby
kingkong- has quit [Remote host closed the connection]
djellemah has quit [Ping timeout: 252 seconds]
MrBloo_ has joined #ruby
mitsuhiko has joined #ruby
Lord_of_Life has quit [Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!]
codepete has joined #ruby
Travis-42 has joined #ruby
alxndr has joined #ruby
deepak_ has joined #ruby
elenatanasoiu1 has quit [Ping timeout: 265 seconds]
dukedave has joined #ruby
jimcroft_ has joined #ruby
pfg_ has joined #ruby
HashNuke has joined #ruby
mistake[m] has quit [Ping timeout: 256 seconds]
MuffinPimp[m] has quit [Ping timeout: 256 seconds]
vali has quit [Ping timeout: 256 seconds]
al2o3-cr has quit [Ping timeout: 256 seconds]
ckrailo has quit [Ping timeout: 256 seconds]
montyboy has quit [Ping timeout: 256 seconds]
jimcroft has quit [Ping timeout: 256 seconds]
jmcc____________ has quit [Ping timeout: 256 seconds]
nyuszika7h has quit [Ping timeout: 256 seconds]
a1fa has quit [Ping timeout: 256 seconds]
jwl has quit [Ping timeout: 256 seconds]
Klumben has quit [Ping timeout: 256 seconds]
arooni has quit [Ping timeout: 256 seconds]
boxrick1_ has joined #ruby
daxroc has joined #ruby
charles81 has joined #ruby
rrawlins has joined #ruby
imanc has joined #ruby
jimcroft_ is now known as jimcroft
jphase_ has joined #ruby
shiny[m] has quit [Ping timeout: 256 seconds]
fladson[m] has quit [Ping timeout: 256 seconds]
velu_aon[m] has quit [Ping timeout: 256 seconds]
cpfeilschifter[m has quit [Ping timeout: 256 seconds]
meaggan[m] has quit [Ping timeout: 256 seconds]
Luca[m] has quit [Ping timeout: 256 seconds]
laithshadeed[m] has quit [Ping timeout: 256 seconds]
madveru[m] has quit [Ping timeout: 256 seconds]
bascht[m] has quit [Ping timeout: 256 seconds]
hanmac has quit [Ping timeout: 256 seconds]
Didac has quit [Ping timeout: 256 seconds]
ghormoon has quit [Ping timeout: 256 seconds]
jaiks has quit [Ping timeout: 256 seconds]
SegFaultAX has quit [Ping timeout: 256 seconds]
pmarreck has joined #ruby
zipkid has joined #ruby
bestie has joined #ruby
a1fa has joined #ruby
eliotk[m] has quit [Ping timeout: 256 seconds]
shine[m] has quit [Ping timeout: 256 seconds]
silex[m] has quit [Ping timeout: 256 seconds]
mjuxn[m] has quit [Ping timeout: 256 seconds]
demophoon has quit [Ping timeout: 256 seconds]
jshjsh has joined #ruby
ckrailo has joined #ruby
JoshS has quit [Disconnected by services]
jimeh has joined #ruby
jshjsh is now known as JoshS
machty has joined #ruby
troter__________ has joined #ruby
Eleeleth has joined #ruby
ghostlight has quit [Ping timeout: 245 seconds]
jmcc____________ has joined #ruby
nyuszika7h has joined #ruby
ramblinpeck has joined #ruby
kingkong- has joined #ruby
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has quit [Ping timeout: 244 seconds]
AndyWojo has joined #ruby
JackMc has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
dmnd has joined #ruby
arooni has joined #ruby
amitchellbullard has joined #ruby
CubeLord has joined #ruby
brendan- has joined #ruby
CubeLord has quit [Remote host closed the connection]
Lord_of_Life has joined #ruby
demophoon has joined #ruby
jwl has joined #ruby
montyboy has joined #ruby
CubeLord has joined #ruby
ben______ has joined #ruby
CubeLord has quit [Remote host closed the connection]
fladson[m] has joined #ruby
al2o3-cr has joined #ruby
ghormoon has joined #ruby
SegFaultAX has joined #ruby
bascht[m] has joined #ruby
Fire-Dragon-DoL has joined #ruby
jaiks has joined #ruby
jphase_ has quit [Ping timeout: 265 seconds]
hanmac has joined #ruby
ben______ has quit [Remote host closed the connection]
Prawnzy has joined #ruby
ben______ has joined #ruby
gizmore has quit [Ping timeout: 260 seconds]
ben______ has quit [Read error: Connection reset by peer]
AlexJakeGreen has quit [Remote host closed the connection]
ben______ has joined #ruby
gizmore has joined #ruby
the_drow has joined #ruby
Didac has joined #ruby
rippa has joined #ruby
mooru has joined #ruby
Snowy has quit [Remote host closed the connection]
vuoto has joined #ruby
Snowy has joined #ruby
Prawnzy has quit [Ping timeout: 256 seconds]
tdy has quit [Ping timeout: 260 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<hardest_> with this code I only get the last line to be written
<hardest_> CSV.foreach('tld.csv', headers:true).with_index do |row, i| File.open("myfile.txt", "r+") do |txt| txt << Whois.whois(row[0]).created_on
<hardest_> what is wrong?
ben______ has quit [Remote host closed the connection]
eljimmy has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ben______ has joined #ruby
XV8 has quit [Quit: Textual IRC Client: www.textualapp.com]
<hardest_> hey apeiros :)
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vuoto has quit [Client Quit]
ghostlight has joined #ruby
solocshaw has joined #ruby
vuoto has joined #ruby
nfk has joined #ruby
Snowy has quit [Ping timeout: 250 seconds]
ben______ has quit [Remote host closed the connection]
<al2o3-cr> hardest_: change 'r+' to 'a+'
<hardest_> looks like the lines are being overwritten
ben______ has joined #ruby
<hardest_> al2o3-cr: thank you, how do I break line each them?
<al2o3-cr> hardest_: come again?
andikr has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 265 seconds]
<al2o3-cr> hardest_: do you mean newline?
pokalyis has joined #ruby
Klumben has joined #ruby
<hardest_> yes
jrafanie has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
<hardest_> this is the output 1995-08-13 00:00:00 -07001995-08-13 00:00:00 -07001996-04-24 00:00:00 -04001997-03-08 05:00:00 UTC
Hyuk has joined #ruby
<hardest_> I would like to have one per line
<al2o3-cr> hardest_: << "\n" to the end
jaequery has joined #ruby
<hardest_> I tried it doesnt work
<hardest_> txt << Whois.whois(row[0]).created_on
<al2o3-cr> txt << Whois.whois(row[0]).created_on << "\n"
antgel has joined #ruby
jaequery has quit [Client Quit]
the_drow has joined #ruby
firstdayonthejob has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
oyes has joined #ruby
firstdayonthejob has quit [Client Quit]
fantasticsid has joined #ruby
ben______ has quit [Remote host closed the connection]
<al2o3-cr> hardest_: does Whois.whois(row[0]).created_on return a string?
oyes has quit [Client Quit]
<hardest_> yes
<hardest_> it works now thanks
<hardest_> after your suggestion
sulcino has joined #ruby
<hardest_> I have great diffult on ruby syntax
<hardest_> difficult
djbkd has joined #ruby
ben______ has joined #ruby
dnicole has quit [Remote host closed the connection]
nettoweb has joined #ruby
nitric has joined #ruby
Guest66 has joined #ruby
firstdayonthejob has joined #ruby
ziarkaen has quit [Ping timeout: 245 seconds]
SeepingN has quit [Read error: Connection reset by peer]
coolboy has quit [Ping timeout: 244 seconds]
Silthias has quit [Quit: Leaving.]
<baweaver> File.open(...) do |f| f.puts text end
SeepingN has joined #ruby
<baweaver> includes newlines.
coolboy has joined #ruby
johnny56 has quit [Ping timeout: 246 seconds]
djellemah has joined #ruby
cgfbee has quit [Excess Flood]
<al2o3-cr> hardest_: also don't puts File.open inside your loop
<hardest_> theres a better way to do that?
<hardest_> you mean a function ?
blockchan1 has joined #ruby
marxarelli has quit [Ping timeout: 250 seconds]
<manveru> hardest_: do it around your loop
cgfbee has joined #ruby
<manveru> File.open{ CSV.foreach{}}
djellemah has quit [Client Quit]
gusrub has quit [Remote host closed the connection]
frozengeek has joined #ruby
<manveru> because otherwise you're deleting everything you wrote every time you open the file again (every row in the csv)
marxarelli has joined #ruby
Rodya_ has quit [Remote host closed the connection]
djbkd_ has joined #ruby
blockchan has quit [Ping timeout: 250 seconds]
blockchan1 is now known as blockchan
<hardest_> manveru: not sure how do translate what you said to this ... CSV.foreach('tld.csv', headers:true).with_index do |row, i| File.open("tld.txt", "a+") do |txt|
shayan_ has quit [Quit: shayan_]
<al2o3-cr> hardest_: check the link
the_drow has quit [Read error: Connection reset by peer]
<al2o3-cr> a super simple way :)
threh has joined #ruby
<manveru> al2o3-cr: any reason you're not using the block syntax to make sure the file is closed again?
<al2o3-cr> just for simplicity
johnny56 has joined #ruby
<manveru> also the with_index is useless, he only wants the first value
<al2o3-cr> ah, that i just presumed
the_drow has joined #ruby
sepp2k has joined #ruby
<ruby[bot]> manveru: as I told you already, please use https://gist.github.com
<manveru> ruby[bot]: shut up :P
<manveru> and damn, that's wrong
<ruby[bot]> manveru: as I told you already, please use https://gist.github.com
<manveru> i mean this
millerti has joined #ruby
tvw has quit [Remote host closed the connection]
<manveru> wrapping your expression in "#{}" is a poor way of calling #to_s, and IO#puts already calls to_s on its argument
<al2o3-cr> you're right :p
<manveru> also using the 'a' mode will not truncate your file everytime you run the program, so you'll end up with duplicate entries
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<manveru> apeiros: can you fix that bot some day?
Guest66 has joined #ruby
skweek has joined #ruby
Silthias has joined #ruby
tyang has quit [Ping timeout: 244 seconds]
tercenya has quit [Remote host closed the connection]
JoshS has quit [Quit: Leaving]
tercenya has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
mooru has quit [Quit: Textual IRC Client: www.textualapp.com]
gingray has quit [Ping timeout: 244 seconds]
gusrub has joined #ruby
DLSteve has joined #ruby
jaequery has joined #ruby
mikecmpbll has joined #ruby
<hardest_> thank you both manveru and al2o3-cr :D
<hardest_> both of scripts worked fine
<al2o3-cr> hardest_: use manveru's version :p
Silthias has quit [Ping timeout: 260 seconds]
mostlybadfly has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
<hardest_> I think only one last question
<hardest_> I would like to make a exception general because the scripts break when I am not able for some reason to whois
<manveru> so just skip the line if there's an error?
<manveru> what error do you get?
gusrub has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
lechiffre10 has joined #ruby
Prawnzy has joined #ruby
Pumukel has joined #ruby
<hardest_> the error is /var/lib/gems/2.2.0/gems/whois-3.6.5/lib/whois/server/adapters/web.rb:34:in `request': This TLD has no WHOIS server, but you can access the WHOIS database at `http://www.nic.ar/' (Whois::WebInterfaceError) from /var/lib/gems/2.2.0/gems/whois-3.6.5/lib/whois/server/adapters/base.rb:107:in `block in lookup'
<hardest_> and then the script breaks
<hardest_> hangs
lenwood has quit [Ping timeout: 244 seconds]
the_drow has joined #ruby
sulcino_ has joined #ruby
djbkd_ has quit [Ping timeout: 260 seconds]
yeticry has quit [Ping timeout: 256 seconds]
yeticry has joined #ruby
raeoks has quit [Quit: Textual IRC Client: www.textualapp.com]
<manveru> hardest_: begin; do_stuff; rescue Whois::WebInterfaceError; end
dwradcliffe has joined #ruby
coolboy has quit [Remote host closed the connection]
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
grh has joined #ruby
Prawnzy has quit [Remote host closed the connection]
coolboy has joined #ruby
claudiuinberlin has joined #ruby
Cohedrin has joined #ruby
johnmilton has joined #ruby
<hardest_> ok manveru ok the error message has been omitted but the script it is still stopping
the_drow has quit [Read error: Connection reset by peer]
nankyokusei has quit [Remote host closed the connection]
peaches is now known as badpeaches
coolboy has quit [Remote host closed the connection]
sulcino has quit []
<manveru> hardest_: you need to wrap the puts, not the outer blocks
sulcino_ is now known as sulcino
xall_ has joined #ruby
blockchan has quit [Ping timeout: 250 seconds]
<hardest_> manveru: cool now works better, but still seeing other erros
<manveru> like?
<hardest_> errors, is there any way to output the error to a file?
<hardest_> ops
<hardest_> to the same line
<hardest_> oInterfaceError
<hardest_> `request': This `tld' has no whois server (Whois::NoInterfaceError)
the_drow has joined #ruby
<manveru> if you know the class of the error, you can add it to the rescue
<manveru> rescue Whois::WebInterfaceError, Whois::NoInterfaceError
<manveru> and yes, you can put the error in another or the same file, or to stdout
<manveru> or stderr :)
angrywombat has joined #ruby
symm- has joined #ruby
angrywombat has left #ruby [#ruby]
anisha has joined #ruby
bascht[m] has quit [Read error: Connection reset by peer]
fladson[m] has quit [Read error: Connection reset by peer]
blockchan has joined #ruby
dextertzu has quit [Ping timeout: 250 seconds]
[Butch] has joined #ruby
threh has quit [Remote host closed the connection]
the_drow has quit [Read error: Connection reset by peer]
grh has quit [Ping timeout: 244 seconds]
Guest66 has joined #ruby
firstdayonthejob has quit [Ping timeout: 245 seconds]
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
firstdayonthejob has joined #ruby
the_drow has joined #ruby
aryaching has joined #ruby
gusrub has joined #ruby
davix[matrix] has joined #ruby
Silke[m] has joined #ruby
bascht has joined #ruby
M-shine has joined #ruby
M-manveru has joined #ruby
MuffinPimp[m] has joined #ruby
Luca[m] has joined #ruby
meaggan[m] has joined #ruby
serah[m] has joined #ruby
laithshadeed[m] has joined #ruby
eliotk[m] has joined #ruby
cpfeilschifter[m has joined #ruby
fladson[m] has joined #ruby
velu_aon[m] has joined #ruby
M-mistake has joined #ruby
gusrub has quit [Remote host closed the connection]
jbeeze has quit [Ping timeout: 265 seconds]
tyang has joined #ruby
bluOxigen has joined #ruby
splud has joined #ruby
gusrub has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
tyang has quit [Read error: Connection reset by peer]
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
be_______ has joined #ruby
troys_ is now known as troys
tyang has joined #ruby
be_______ has quit [Remote host closed the connection]
be_______ has joined #ruby
rrawlins has quit [Remote host closed the connection]
ben______ has quit [Ping timeout: 260 seconds]
the_drow has quit [Read error: Connection reset by peer]
oyes has joined #ruby
hardest_ has quit [Ping timeout: 260 seconds]
Felipe__ has joined #ruby
whathappens has joined #ruby
the_drow has joined #ruby
bocaneri has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
ramfjord has joined #ruby
hardest_ has joined #ruby
djbkd has joined #ruby
eelster has joined #ruby
jphase has joined #ruby
Jackneill_ has joined #ruby
willardg has joined #ruby
hardest_ has quit [Ping timeout: 260 seconds]
willardg has quit [Client Quit]
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kirun has joined #ruby
dnicole has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
Derperperd has joined #ruby
sparch has quit [Ping timeout: 256 seconds]
the_drow has quit [Read error: Connection reset by peer]
Felipe__ has quit [Quit: Leaving]
djbkd_ has joined #ruby
vali has joined #ruby
maloik has joined #ruby
mooru has joined #ruby
the_drow has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
LeBlaaanc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
jphase has quit [Remote host closed the connection]
ur5us has joined #ruby
djbkd_ has quit [Ping timeout: 256 seconds]
jphase has joined #ruby
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
vuoto has quit [Quit: Lost terminal]
skweek has quit [Ping timeout: 245 seconds]
whathapp_ has joined #ruby
hck89 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackwind_123 has quit [Ping timeout: 245 seconds]
oyes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
whathappens has quit [Read error: Connection reset by peer]
BlkDynmt has joined #ruby
jphase has quit [Ping timeout: 245 seconds]
the_drow has quit [Read error: Connection reset by peer]
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackwind_123 has joined #ruby
jphase has joined #ruby
sparch has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord_ has joined #ruby
the_drow has joined #ruby
ramfjord has quit [Read error: Connection reset by peer]
hardest_ has joined #ruby
CubeLord has joined #ruby
postmodern has joined #ruby
CubeLord has quit [Changing host]
CubeLord has joined #ruby
TheCubeLord has quit [Disconnected by services]
CubeLord is now known as TheCubeLord
CubeLord has joined #ruby
d0nn1e has quit [Ping timeout: 260 seconds]
marxarelli has joined #ruby
d0nn1e has joined #ruby
mooru has joined #ruby
CubeLord has quit [Client Quit]
whathapp_ has quit [Remote host closed the connection]
modlin has quit [Quit: Textual IRC Client: www.textualapp.com]
whathappens has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
futilegames has left #ruby [#ruby]
brendan- has joined #ruby
whathappens has quit [Ping timeout: 265 seconds]
the_drow has joined #ruby
last_staff has joined #ruby
gusrub has quit [Remote host closed the connection]
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nettoweb has joined #ruby
pocketpr1 has joined #ruby
blackbombay_ has quit [Ping timeout: 244 seconds]
VeryBewitching has joined #ruby
User458764 has quit [Read error: Connection reset by peer]
User4587_ has joined #ruby
blackbombay_ has joined #ruby
tdy has joined #ruby
Rodya_ has joined #ruby
nettoweb has quit [Client Quit]
jcao219 has joined #ruby
c355e3b has joined #ruby
lacour has joined #ruby
igniting has quit [Ping timeout: 244 seconds]
tvw has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
z3l has joined #ruby
pocketpr1 has quit [Quit: WeeChat 1.5]
the_drow has quit [Read error: Connection reset by peer]
doadet has joined #ruby
dan_ has joined #ruby
blockchan has quit [Ping timeout: 260 seconds]
dan_ is now known as Guest56924
weemsledeux has joined #ruby
Guest56924 has quit [Client Quit]
the_drow has joined #ruby
xall_ has quit [Ping timeout: 250 seconds]
ur5us has quit [Remote host closed the connection]
<hardest_> how to make exception of this ? /usr/lib/ruby/2.2.0/time.rb:252:in `make_time': no time information in "" (ArgumentError) from /usr/lib/ruby/2.2.0/time.rb:364:in `parse' from /var/lib/gems/2.2.0/gems/whois-3.6.5/lib/whois/record/parser/whois.nc.rb:57:in `block (2 levels) in <class:WhoisNc>'
marxarelli has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
seventy has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<seventy> Hey everyone! :)
antgel has quit [Ping timeout: 256 seconds]
renderful has joined #ruby
ziarkaen has joined #ruby
modlin has joined #ruby
the_drow has quit [Read error: Connection reset by peer]
gusrub has joined #ruby
renderful has quit [Ping timeout: 260 seconds]
mooru has joined #ruby
<bougyman> manveru: ping
dan__ has joined #ruby
<manveru> bougyman: pong
cdg_ has quit [Ping timeout: 256 seconds]
<dan__> if i installed rsruby like, gem install rsruby, how come when i try to load RSRuby.instance it says "R HOME variable not defined"
modlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<dan__> if someone will help me get rsruby working i will pay you
nankyokusei has joined #ruby
<manveru> heh
<bougyman> manveru: so I got drbssl:// listening.
<bougyman> how do I force client cert auth?
<bougyman> I can't find any docs on OpenSSL::SSL::VERIFY_ that's pointed to in the docs.
<bougyman> and I think that's the wrong thing to set, in any case.
igniting has joined #ruby
igniting has quit [Max SendQ exceeded]
<manveru> default is ::OpenSSL::SSL::VERIFY_NONE
<manveru> which is not what you want
troys is now known as troys_
igniting has joined #ruby
<manveru> i think VERIFY_PEER is right
blockchan has joined #ruby
<bougyman> trying
<bougyman> damn.
<bougyman> 82 config[:SSLVerifyMode] = OpenSSL::SSL::VERIFY_PEER
<bougyman> already had it.
<manveru> dan__: before you start paying people, did you read the docs?
ptx0 has quit [Ping timeout: 252 seconds]
nankyokusei has quit [Ping timeout: 268 seconds]
<manveru> bougyman: and it accepts everyone?
weemsledeux has joined #ruby
Prawnzy has joined #ruby
<bougyman> yeah.
<bougyman> trying VERIFY_CLIENT_ONCE now
<manveru> heh
xall_ has joined #ruby
igniting has quit [Ping timeout: 265 seconds]
<bougyman> A callback to be used for additional verification. See OpenSSL::SSL::SSLContext.verify_callback
<manveru> yeah...
<manveru> it actually has that
<bougyman> oh wait, yes it does.
<bougyman> how did I miss that?
<manveru> looking at docs instead of source? ;)
tercenya has quit [Remote host closed the connection]
tdy has quit [Ping timeout: 265 seconds]
tercenya has joined #ruby
xall_ has quit [Ping timeout: 260 seconds]
Felipe__ has joined #ruby
<bougyman> so I guess I use DRb::DRbSSLSocket.open(uri, config) to connect to this?
<bougyman> there's no way to pass a client cert through DRB::DRbObject.new_with_uri
nopolitica has joined #ruby
<manveru> yeah
<manveru> i think you just open and then use DRbObject.new
<dan__> manveru i cant do it
<bougyman> DRbObject.new DRb::DRbSSLSocket.open(uri, config)
<bougyman> ?
dwradcliffe has quit [Quit: Connection closed for inactivity]
<manveru> damn, that's tricky
bluOxigen has quit [Ping timeout: 250 seconds]
aidalgol has joined #ruby
<manveru> dan__: you have R installed?
<manveru> bougyman: DRbProtocol.open
<manveru> that takes a config... from DRb.config
gusrub has quit [Remote host closed the connection]
<bougyman> ok
<manveru> so you set stuff on DRb.config and use open with uri i guess
igniting has joined #ruby
gusrub has joined #ruby
tdy has joined #ruby
<bougyman> [21] pry(main)> obj = DRb::DRbProtocol.open(uri, {})
<bougyman> => #<DRb::DRbSSLSocket:0x007fe01bfca370
<bougyman> oic.
<bougyman> cause I can't turn that into a DRb::DRbObject
grh has joined #ruby
djbkd has quit [Remote host closed the connection]
sparch has quit [Ping timeout: 268 seconds]
<dan__> manveru YES!!
djbkd has joined #ruby
<manveru> dan__: that's a "it's working now" or "that's what i just told you" yes?
<dan__> i have R working
ledestin has joined #ruby
<manveru> ok, and where is R installed?
gusrub has quit [Ping timeout: 245 seconds]
<dan__> i dont get why i can install it like this, gem install rsruby -- --with-R-dir=/usr/lib/R --with-R-include=/usr/share/R/include --with_cflags="-fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wall -fno-strict-aliasing", but if i run it through bundle install, it crashes
nankyokusei has joined #ruby
nankyokusei has quit [Remote host closed the connection]
<dan__> that installs successfully, but i use bundler, and it wont install through bundle
<manveru> because you need to tell bundler to use that option
seventy has quit [Quit: Leaving]
<dan__> i do, i run this, sudo bundle config build.rsruby "--with-R-include=/usr/share/R/include --with_cflags=\"-fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wall -fno-strict-aliasing\""
<dan__> ~
<dan__> and then after that i run bundle install
davidt has joined #ruby
<manveru> oh, you got that :)
<manveru> then?
<dan__> yeah so i run that command, and then bundle install, but it still wont work
<dan__> :( :( :(
<manveru> because you use sudo?
Felipe__ has quit [Ping timeout: 260 seconds]
<dan__> i dont see why sudo would break it. i always use sudo. i work on this project with someone who is a better coder than me and he set it up to always use "sudo bundle install", that is the convention we use
shazaum_ has joined #ruby
<dan__> manveru help me get it wroking ill pay you
Dohplay has quit [Read error: Connection reset by peer]
ldnunes has quit [Quit: Leaving]
grh has quit [Ping timeout: 252 seconds]
willardg has joined #ruby
djellemah has joined #ruby
alamar is now known as alabaer
alabaer is now known as alamar
shmuli has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
<bougyman> damn.
dextertzu has joined #ruby
<bougyman> VERIFY_CLIENT_ONCE didn't work, either.
nitric has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
<bougyman> trying VERIFY_FAIL_IF_NO_PEER_CERT now
<bougyman> if that doesn't work iono wtf to do.
hutch34 has quit [Ping timeout: 260 seconds]
tercenya has quit [Remote host closed the connection]
hck89 has joined #ruby
tercenya has joined #ruby
z3l has quit []
hutch34 has joined #ruby
<manveru> bougyman: i can take a look... if you tell me how you made your cert :)
nitric has joined #ruby
<bougyman> manveru: easy-rsa
willardg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bougyman> that's the only ca/pki I ever use, heh.
mooru has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bougyman> download it somewhere (it ships with most openvpn installs), edit vars; . vars; ./build-dh; ./build-ca; ./build-key-server <servername>; build-key-client <clientname>
grh has joined #ruby
<bougyman> might need a ./clean-all first.
<bougyman> (after editing vars)
antgel has joined #ruby
Prawnzy has quit [Remote host closed the connection]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<manveru> hm, must be old version of easyrsa?
<manveru> anw, got it
<bougyman> got it??
<bougyman> what's the magic?
<manveru> lol
<manveru> not that far
shazaum_ has quit [Quit: Leaving]
al2o3-cr has quit [Ping timeout: 250 seconds]
askhat has joined #ruby
<dan__> okay thanks anyway manveru
askhat has quit []
djbkd has quit [Remote host closed the connection]
bkxd has joined #ruby
vuoto has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tyang has quit [Read error: Connection reset by peer]
phantompain has joined #ruby
djbkd has joined #ruby
Prawnzy has joined #ruby
jcao219 has quit [Ping timeout: 252 seconds]
<bougyman> shit. VERIFY_FAIL_IF_NO_PEER_CERT didn't change anything.
mrwn has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
weemsledeux has joined #ruby
Rodya_ has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 260 seconds]
tdy has quit [Ping timeout: 252 seconds]
mic_e has joined #ruby
mooru has joined #ruby
xall_ has joined #ruby
vuoto has quit [Quit: Lost terminal]
pawnbox has quit [Remote host closed the connection]
skweek has joined #ruby
<manveru> bougyman: it's kinda working for me
<manveru> hmm
<manveru> need to give the client a cert still
<manveru> but at least i can't connect anymore without cert
ruby-lang163 has joined #ruby
ruby-lang163 has left #ruby [#ruby]
mostlybadfly has joined #ruby
synthroid has quit []
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
dan__ has quit [Ping timeout: 260 seconds]
ziarkaen has quit [Ping timeout: 260 seconds]
ChiefAlexander_ has joined #ruby
ircmonkeyboy4235 has joined #ruby
sepp2k has quit [Quit: Leaving.]
AndrewIsHere has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
<bougyman> what did you change? I disconnected for a bit
ChiefAlexander has quit [Ping timeout: 260 seconds]
ChiefAlexander_ has quit [Ping timeout: 250 seconds]
<bougyman> manveru: ^
<bougyman> did anyone see what he changed?
<bougyman> I missed about 10 minutes of backscroll.
GinoManWorks has quit [Quit: Leaving]
<manveru> for how ancient this stuff is, not many write about it
ace05 has quit [Remote host closed the connection]
ace05 has joined #ruby
marr has quit [Ping timeout: 265 seconds]
<bougyman> I know
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<manveru> what's your server config now?
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marr has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
biberu has quit [Read error: Connection reset by peer]
gusrub has joined #ruby
<bougyman> oic.
malconis has quit [Read error: Connection reset by peer]
<bougyman> config[:SSLVerifyCallback] = lambda { |ok, store|
<bougyman> ok
<bougyman> p [ok, store.error_string]
<bougyman> }that's what I need
<bougyman> I guess?
mrwn has quit [Remote host closed the connection]
<manveru> maybe?
<manveru> also VERIFY_PEER on the server and client
<bougyman> I had that.
<bougyman> the client shouldn't be responsible for that, though
<manveru> yeah
Immune has joined #ruby
solocshaw has joined #ruby
<manveru> but they both should do it :)
<manveru> well, callback fires now
<manveru> but ok is false
<bougyman> even with a good cert?
<manveru> that's the part i'm not sure about
<bougyman> trying it here.
whathappens has joined #ruby
<manveru> so many pem and other files around...
<bougyman> yep
<bougyman> OpenSSL::X509::Certificate.new(DRb_CERTS.join('useful.crt').read)
<bougyman> config[:SSLPrivateKey] = OpenSSL::PKey::RSA.new(DRb_CERTS.join('useful.key').read)
<bougyman> config[:SSLClientCA] = OpenSSL::X509::Certificate.new(DRb_CERTS.join('ca.crt').read)
<bougyman> - config[:SSLVerifyMode] = OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT
<bougyman> + config[:SSLVerifyMode] = OpenSSL::SSL::VERIFY_PEER | OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT
<bougyman> config[:SSLCACertificatePath] = DRb_CERTS.to_s
<bougyman> + config[:SSLVerifyCallback] = lambda { |ok, store|
<bougyman> + p [ok, store.error_string]
<bougyman> + ok
<bougyman> + }
<bougyman> ugh
<bougyman> didn't mean to paste that.
frozengeek has quit [Quit: frozengeek]
solocshaw has quit [Ping timeout: 260 seconds]
gusrub has quit [Ping timeout: 260 seconds]
al2o3-cr has joined #ruby
anisha has quit [Ping timeout: 242 seconds]
helpa-bot has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
helpa has quit [Write error: Broken pipe]
Diabolik has quit [Excess Flood]
matp has quit [Excess Flood]
Diabolik has joined #ruby
jaxxstor_ has joined #ruby
helpa-bot has quit [Remote host closed the connection]
helpa has joined #ruby
<manveru> got it working
<manveru> :D
anisha has joined #ruby
grh has quit [Ping timeout: 252 seconds]
dmtd has joined #ruby
ace05 has quit [Read error: Connection reset by peer]
jaxxstorm has quit [Ping timeout: 256 seconds]
ace05 has joined #ruby
<bougyman> um.
<bougyman> you've got the callback on the client.
<bougyman> without that callback it would be able to connect to the server without a cert.
Devalo has quit [Remote host closed the connection]
<manveru> oh damn
<bougyman> i'm waiting for a deploy to try the callback on the server.
Devalo has joined #ruby
<bougyman> we'll see.
_sfiguser has joined #ruby
<manveru> the callback is never called on the server?
last_staff has quit [Quit: last_staff]
phantompain has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 250 seconds]
mooru has quit [Ping timeout: 260 seconds]
<bougyman> it isn't?
abernstein has quit [Ping timeout: 250 seconds]
<lechiffre10> quit
lechiffre10 has quit [Quit: WeeChat 1.5]
<bougyman> he put the callback on the server, in your example
mooru has joined #ruby
abernstein has joined #ruby
<manveru> i never see it...
al2o3-cr has quit [Ping timeout: 260 seconds]
last_staff has joined #ruby
Devalo has quit [Ping timeout: 244 seconds]
woodruffw has quit [Ping timeout: 256 seconds]
<bougyman> DRb::DRbConnError: drbssl://bougyman-2c-46e0888f.us-west-2.amazon.com:19191 - #<OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: sslv3 alert handshake failure>
<bougyman> I got something different with the callback on the server.
<bougyman> sucks, tho
<bougyman> it's better than anything I got before.
mooru has quit [Client Quit]
woodruffw has joined #ruby
<bougyman> anyway, time for me to catch my bus.
<bougyman> ttyl. thanks manveru!
<manveru> np
<bougyman> if you get it working throw me a paste, please.
<manveru> sure :)
<manveru> will play with it a bit more
Azure has quit [Read error: Connection reset by peer]
Guest66 has joined #ruby
millerti has joined #ruby
al2o3-cr has joined #ruby
anuxivm has joined #ruby
hck89 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has joined #ruby
phantompain has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
joneshf-laptop has quit [Quit: Leaving]
ramfjord_ has quit [Ping timeout: 250 seconds]
benlieb has quit [Quit: benlieb]
ramortegui has quit [Remote host closed the connection]
Xiti` has quit [Quit: Xiti`]
Xiti has joined #ruby
whathappens has quit [Remote host closed the connection]
njs126 has quit [Quit: Leaving]
ircmonkeyboy4235 has quit [Quit: Nettalk6 - www.ntalk.de]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
whathappens has joined #ruby
ojeno has joined #ruby
whathappens has quit [Remote host closed the connection]
Rodya_ has joined #ruby
marxarelli has joined #ruby
whathappens has joined #ruby
gusrub has joined #ruby
ramfjord has joined #ruby
jaxxstor_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
al2o3-cr has quit [Ping timeout: 260 seconds]
augcesar has quit [Quit: Connection closed for inactivity]
claudiuinberlin has quit []
Rodya_ has quit [Ping timeout: 245 seconds]
cdg has joined #ruby
grh has joined #ruby
Guest43 has joined #ruby
badpeaches is now known as lld
Guest43 is now known as Rufus
jaxxstorm has joined #ruby
nankyokusei has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
antgel has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
nankyokusei has quit [Ping timeout: 250 seconds]
gusrub has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 268 seconds]
<manveru> that seems to finally work
<manveru> finally figured out that SSLCertificate needs to be the issued crt file :)
grh has quit [Ping timeout: 256 seconds]
<ace05> hi
<bougyman> umwut?
djbkd has quit [Remote host closed the connection]
pandbearit has joined #ruby
<bougyman> the server has to run with the CA keys?
djbkd has joined #ruby
al2o3-cr has joined #ruby
mooru has joined #ruby
mooru has quit [Client Quit]
<bougyman> seems odd
Prawnzy has quit [Ping timeout: 244 seconds]
<manveru> well, it's too late here to wonder about that :P
AndrewIsHere has joined #ruby
<manveru> maybe you can finish it though
<bougyman> the server shouldn't have to be the CA, but whatev.
<bougyman> if it Works, it Works.
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaxxstorm has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 252 seconds]
nikivi has joined #ruby
gusrub has joined #ruby
Guest66 has joined #ruby
last_staff has quit [Quit: last_staff]
tdy has joined #ruby
benlieb has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
gusrub has quit [Remote host closed the connection]
robnester has quit [Quit: I wonder what this button does...?]
troys_ is now known as troys
jaxxstorm has joined #ruby
robnester has joined #ruby
Guest631 has quit [Quit: Quit]
Devalo has joined #ruby
jaxxstorm has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
quazimodo has joined #ruby
kalima32 has joined #ruby
al2o3-cr has quit [Ping timeout: 260 seconds]
Devalo has quit [Ping timeout: 250 seconds]
Log1x has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
al2o3-cr has joined #ruby
Prawnzy has joined #ruby
brendan- has joined #ruby
sulcino has quit [Quit: Connection closed for inactivity]
tmtwd has joined #ruby
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha has quit [Quit: This computer has gone to sleep]
ramfjord has joined #ruby
bkxd has quit [Ping timeout: 265 seconds]
roamingdog has joined #ruby
webguynow has quit [Ping timeout: 245 seconds]
harai_ has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
webguynow has joined #ruby
firstdayonthejob has quit [Ping timeout: 245 seconds]
<atmosx> Playing around with project euler, any idea why the 2nd implementation yields 0? https://gist.github.com/atmosx/ad75a38ad0390a85a9f5441404a186c5
sdothum has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
Guest66 has joined #ruby
antgel has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 260 seconds]
nikivi has quit [Quit: irc]
JeanCarloMachado has quit [Ping timeout: 244 seconds]
pragmaticus has quit [Ping timeout: 252 seconds]
djbkd_ has joined #ruby
pandbearit has quit [Quit: This computer has gone to sleep]
ChiefAlexander has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
be_______ has quit [Remote host closed the connection]
beatdown has joined #ruby
Bellthoven has joined #ruby
ben______ has joined #ruby
aryaching has quit [Read error: Connection reset by peer]
gingray has joined #ruby
hardest_ has quit [Quit: Page closed]
aryaching has joined #ruby
paaskus has joined #ruby
Rodya_ has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ptx0 has joined #ruby
ben______ has quit [Ping timeout: 245 seconds]
pandbearit has joined #ruby
pandabearit_ has joined #ruby
SeepingN has joined #ruby
xall has joined #ruby
weemsledeux has joined #ruby
brendan- has joined #ruby
pandbearit has left #ruby [#ruby]
xall_ has quit [Ping timeout: 260 seconds]
doadet has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
cdg has quit [Remote host closed the connection]
<al2o3-cr> atmosx: result = r if is_palindrome?(r) && r > result yields correct result
Rodya_ has quit [Ping timeout: 245 seconds]
pandabearit_ has quit [Changing host]
pandabearit_ has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
pandabearit_ has quit [Quit: This computer has gone to sleep]
abernstein has quit [Quit: abernstein]
harai_ has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
pandabearit_ has joined #ruby
nopolitica has quit [Ping timeout: 244 seconds]
ojeno has quit [Quit: Leaving.]
Xeago has quit [Ping timeout: 256 seconds]
brent__ has joined #ruby
pandabearit_ has quit [Quit: This computer has gone to sleep]
Xeago has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
pandabearit_ has joined #ruby
pandabearit_ has quit [Changing host]
pandabearit_ has joined #ruby
tdy has quit [Ping timeout: 256 seconds]
djbkd_ has quit [Ping timeout: 268 seconds]
jeyraof has quit [Quit: This computer has gone to sleep]
gingray has quit [Ping timeout: 250 seconds]
BlkDynmt has quit [Quit: BlkDynmt]
franknatividad has joined #ruby
lenwood has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
cdg has joined #ruby
franknatividad is now known as coderfrank
pandabearit_ has quit [Quit: This computer has gone to sleep]
shayan_ has joined #ruby
BlkDynmt has joined #ruby
benlieb has quit [Quit: benlieb]
pandabearit_ has joined #ruby
pandabearit_ has quit [Remote host closed the connection]
blockchan has quit [Ping timeout: 268 seconds]
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DLSteve has joined #ruby
<coderfrank> exit
coderfrank has quit [Quit: leaving]
ChiefAlexander has quit [Remote host closed the connection]
jaequery has quit [Read error: Connection reset by peer]
blockchan has joined #ruby
ben______ has joined #ruby
Guest66 has joined #ruby
coderfrank has joined #ruby
blockchan has quit [Ping timeout: 244 seconds]
ben______ has quit [Ping timeout: 260 seconds]
shayan_ has quit [Quit: shayan_]
Jackneill_ has quit [Remote host closed the connection]
pokalyis has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
tristanp has quit [Remote host closed the connection]
marr has quit [Ping timeout: 256 seconds]
tristanp has joined #ruby
kirun has quit [Quit: Konversation terminated!]
pokalyis has joined #ruby
renderful has joined #ruby
kalima32 has quit [Quit: Leaving.]
troys is now known as troys_
bkxd has quit [Ping timeout: 260 seconds]
tristanp has quit [Ping timeout: 260 seconds]
Madplatypus has joined #ruby
Guest66 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renderful has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
benlieb has quit [Client Quit]
hck89 has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
Dimik has quit [Read error: Connection reset by peer]
Dimik has joined #ruby
johnmilton has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
jcao219 has joined #ruby
Immune has joined #ruby
Rodya_ has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
<soahccc> What is the most elegant (and performant) way to insert an element into an array at the position it would go if I would go about sorting it
solocshaw has joined #ruby
<Mon_Ouie> Probably Array#bsearch to find the index, then Array#insert
<Mon_Ouie> Although if you need to keep a data structured sorted, I'd consider not using an Array
<soahccc> but a database?
Rodya_ has quit [Ping timeout: 245 seconds]
cdg has quit [Remote host closed the connection]
<havenwood> or the newish Array#bsearch_index
<Mon_Ouie> I just meant a binary search tree of some kind
<havenwood> 2.3+
lenwood has quit [Ping timeout: 260 seconds]
<soahccc> Mon_Ouie: It's a daemon and I need to (re)schedule tasks. At the moment I do it very efficient in that I have hundreds of threads that just sleep :D Now I thought of one schedule thread and an array or hash [run_at, proc]. Now I can just iterate the whole array every second or I keep it sorted and shift or pop until all due entries are done
dnicole has quit [Remote host closed the connection]
whathappens has quit [Remote host closed the connection]