havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
cwong_on_irc has quit [Quit: Leaving.]
Oatmeal has joined #ruby
Oatmeal has quit [Max SendQ exceeded]
O47m341 has quit [Quit: TTFNs!]
jas02 has joined #ruby
Oatmeal has joined #ruby
Oatmeal has quit [Max SendQ exceeded]
Fredrich010 has joined #ruby
chipotle has joined #ruby
<BraddPitt> is there any documentation that shows all parameters you can specify in a .gemspec file for adding a dependency on a gem?
cyle has quit [Ping timeout: 260 seconds]
devoldmx has joined #ruby
sharkman has joined #ruby
cooperlebrun has joined #ruby
sanjayu has quit [Ping timeout: 246 seconds]
jas02 has quit [Ping timeout: 260 seconds]
Fredrich010 has quit [Ping timeout: 240 seconds]
cooperlebrun has quit [Read error: Connection reset by peer]
devoldmx has quit [Read error: Connection reset by peer]
devoldmx has joined #ruby
<BraddPitt> still doesn't show what requirements can be passed
<BraddPitt> Adds a runtime dependency named gem with requirements to this gem.
<jhass> oh you're looking for http://guides.rubygems.org/patterns/ ?
cooperlebrun has joined #ruby
solocshaw has joined #ruby
tubuliferous_ has joined #ruby
<jhass> well doesn't list it explicitly either, but it's just > x, >= x, < x, <= x, ~> x, x
diegoaguilar has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker has quit [Ping timeout: 265 seconds]
<BraddPitt> ah, so i can't pass like no-rdoc or anything?
bigmac_ has quit [Ping timeout: 260 seconds]
eminencehc has quit [Remote host closed the connection]
<adaedra> no-rdoc is a global gem setting set by the person installing the gem(s)
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwnd_nsfw has joined #ruby
<Ox0dea> Is not.
snockerton has quit [Quit: Leaving.]
<Ox0dea> That is, you can use it locally for a single installation as well.
beauby has joined #ruby
cdg has quit [Remote host closed the connection]
<adaedra> yes, but it's not set by the gem itself
jgt2 has joined #ruby
eminencehc has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
trabulmonkee has quit [Quit: Connection closed for inactivity]
patdohere is now known as patdohere_afk
patdohere_afk is now known as patdohere
jgt1 has quit [Ping timeout: 252 seconds]
tigarcia has quit [Remote host closed the connection]
edaaa__ has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 244 seconds]
ngscheur1 has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Ping timeout: 252 seconds]
skweek has joined #ruby
pontiki has joined #ruby
tmtwd has joined #ruby
Yzguy has quit [Quit: Zzz...]
andykingking has quit [Quit: Leaving.]
ngscheur1 has quit [Read error: Connection reset by peer]
ngscheurich has joined #ruby
bricker has joined #ruby
aryaching has joined #ruby
fastAndSlow has joined #ruby
decaff has joined #ruby
jenrzzz has joined #ruby
weemsledeux has joined #ruby
mary5030 has joined #ruby
Pupeno has quit [Remote host closed the connection]
baroquebobcat_ has joined #ruby
CloCkWeRX has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
aryaching has quit [Ping timeout: 246 seconds]
devoldmx has quit [Read error: Connection reset by peer]
aryaching_ has joined #ruby
cooperlebrun has quit [Ping timeout: 260 seconds]
devoldmx_ has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
v4n has quit [Quit: WeeChat 1.3]
ibouvousaime has quit [Ping timeout: 244 seconds]
<tmtwd> ?"-=
<tmtwd> '\]
<tmtwd> \
duderonomy has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
jackjackdripper1 has joined #ruby
dorei has quit []
aryaching has joined #ruby
baroquebobcat_ has quit [Ping timeout: 268 seconds]
mary5030 has quit [Ping timeout: 246 seconds]
_djbkd has quit [Remote host closed the connection]
aryaching_ has quit [Ping timeout: 260 seconds]
<baweaver> Ox0dea: I think you speak that language ^
saddad has joined #ruby
jackjackdripper1 has quit [Client Quit]
<Ox0dea> I believe that fellow is poking fun at Perl.
<baweaver> tmtwd: $0 ?
jackjackdripper has quit [Ping timeout: 246 seconds]
<baweaver> my perlspeak is bad
<BraddPitt> or his cat is walking on his keyboard
<Ox0dea> The locality checks out.
cooperlebrun has joined #ruby
devoldmx_ has quit [Ping timeout: 264 seconds]
baweaver has quit [Remote host closed the connection]
_djbkd has joined #ruby
mag42c has joined #ruby
spuk has joined #ruby
eminencehc has quit [Remote host closed the connection]
jgt2 has quit [Ping timeout: 252 seconds]
htmldrum has quit [Ping timeout: 255 seconds]
aryaching has quit [Ping timeout: 240 seconds]
jas02 has joined #ruby
tjbiddle has joined #ruby
ruby-lang030 has joined #ruby
devoldmx has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
devoldmx_ has joined #ruby
towski_ has quit [Remote host closed the connection]
htmldrum has joined #ruby
atomical has quit [Max SendQ exceeded]
bungoman has quit [Ping timeout: 240 seconds]
Fredrich010 has joined #ruby
pietr0 has quit [Quit: pietr0]
mary5030 has joined #ruby
tjbiddle has quit [Ping timeout: 240 seconds]
devoldmx_ has quit [Remote host closed the connection]
araujo_ has joined #ruby
tkuchiki has joined #ruby
araujo has quit [Ping timeout: 252 seconds]
mary5030 has quit [Read error: Connection reset by peer]
ruby-lang030 has quit [Ping timeout: 246 seconds]
yfeldblum has quit [Remote host closed the connection]
mary5030 has joined #ruby
tmtwd has quit [Ping timeout: 255 seconds]
atomical has joined #ruby
BadQuanta has joined #ruby
nettoweb has joined #ruby
jas02 has quit [Ping timeout: 272 seconds]
d34th4ck3r has joined #ruby
phutchins has joined #ruby
TheRokh has joined #ruby
TheRokh has quit [Max SendQ exceeded]
TheRokh has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TheRokh has quit [Max SendQ exceeded]
TheRokh has joined #ruby
pocketprotector- has quit [Ping timeout: 240 seconds]
Ox0dea has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
wldcordeiro has joined #ruby
Ox0dea has joined #ruby
snath has joined #ruby
unreal has quit [Ping timeout: 246 seconds]
Fredrich010 has quit [Ping timeout: 250 seconds]
swgillespie has joined #ruby
dopie has joined #ruby
doddok has quit [Quit: Leaving]
devoldmx has joined #ruby
unreal has joined #ruby
devoldmx has quit [Read error: Connection reset by peer]
asad_ has joined #ruby
snath has left #ruby ["Leaving"]
teclator has quit [Ping timeout: 246 seconds]
<asad_> Where are local variables stored at the top level?
asad_ has quit [Client Quit]
barhum2013 has quit [Quit: barhum2013]
tw1sted has quit [Changing host]
tw1sted has joined #ruby
RobertBirnie has joined #ruby
leafybasil has joined #ruby
tubuliferous_ has quit [Ping timeout: 264 seconds]
Bellthoven has quit []
tjbiddle has joined #ruby
leafybasil has quit [Ping timeout: 272 seconds]
stardiviner has joined #ruby
renanoronfle has quit [Ping timeout: 260 seconds]
haylon has joined #ruby
<haylon> Where should I go to get help with rbenv?
howdoicomputer has quit [Ping timeout: 246 seconds]
tjbiddle has quit [Ping timeout: 250 seconds]
fastAndSlow has quit [Quit: Lost terminal]
tjbiddle has joined #ruby
BadQuanta has quit [Ping timeout: 240 seconds]
davispuh has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
alcipir has quit [Ping timeout: 272 seconds]
mary5030 has joined #ruby
<haylon> Well, so far I "installed" rbenv in /usr/local/bin, and "installed" the plugin ruby-build, however, install is not available.
Bellthoven has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SamGerber has joined #ruby
cndiv has joined #ruby
jas02 has joined #ruby
blt has joined #ruby
howdoicomputer has joined #ruby
blt has left #ruby [#ruby]
montana has joined #ruby
montana has quit [Client Quit]
SamGerber has quit [Client Quit]
jas02 has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cheerio]
tubuliferous_ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
n008f4g_ has quit [Ping timeout: 250 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
CloCkWeRX has joined #ruby
haylon has quit [Quit: Leaving]
A124 has quit [Read error: Connection reset by peer]
mistermocha has quit [Remote host closed the connection]
cooperle1run has joined #ruby
cooperlebrun has quit [Ping timeout: 264 seconds]
chipotle has joined #ruby
alcipir has joined #ruby
sharkman has quit [Ping timeout: 246 seconds]
A124 has joined #ruby
baroquebobcat_ has joined #ruby
jenrzzz has joined #ruby
arescorpio has joined #ruby
cooperlebrun has joined #ruby
bungoman_ has joined #ruby
cooperle1run has quit [Ping timeout: 268 seconds]
baroquebobcat_ has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
Echohn has joined #ruby
willharrison has joined #ruby
pontiki has quit [Ping timeout: 240 seconds]
Ox0dea has quit [Ping timeout: 256 seconds]
Bellthoven has quit []
sharkman has joined #ruby
postmodern has quit [Quit: Leaving]
Echohn_ has joined #ruby
al2o3-cr has quit [Ping timeout: 268 seconds]
willardg has joined #ruby
cndiv has quit [Quit: Quit]
joufflu has joined #ruby
rbennacer has joined #ruby
ngscheurich has quit [Ping timeout: 265 seconds]
Echohn has quit [Ping timeout: 260 seconds]
phutchins has quit [Ping timeout: 256 seconds]
_djbkd has quit [Quit: My people need me...]
beauby has quit [Ping timeout: 256 seconds]
al2o3-cr has joined #ruby
mostlybadfly has joined #ruby
idefine has joined #ruby
Cyther_ has joined #ruby
karapetyan has quit []
Feyn has joined #ruby
baweaver has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby
Cyther has quit [Ping timeout: 252 seconds]
Feyn has quit [Remote host closed the connection]
saddad has quit [Read error: No route to host]
sankaber has joined #ruby
Cyther_ has quit [Quit: Leaving]
Feyn has joined #ruby
_blizzy_ has quit [Ping timeout: 252 seconds]
acke has joined #ruby
Pupeno has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord_ has quit [Ping timeout: 265 seconds]
nettoweb has joined #ruby
acke has quit [Remote host closed the connection]
Pupeno has quit [Ping timeout: 252 seconds]
jessemcgilallen has quit [Quit: jessemcgilallen]
nettoweb has quit [Ping timeout: 268 seconds]
jas02 has joined #ruby
stardiviner has quit [Ping timeout: 240 seconds]
stardiviner has joined #ruby
ss_much has joined #ruby
Cantaberry has joined #ruby
cwong_on_irc has joined #ruby
cwong_on_irc has quit [Max SendQ exceeded]
cwong_on_irc has joined #ruby
CloCkWeRX has quit [Ping timeout: 265 seconds]
zenguy_pc has quit [Read error: Connection reset by peer]
Cantaberry has quit [Ping timeout: 260 seconds]
Cantaberry has joined #ruby
rehat has joined #ruby
mary5030 has joined #ruby
saddad has joined #ruby
diegoviola has quit [Quit: GTK+ is a acronym]
cooperlebrun has quit [Ping timeout: 265 seconds]
solocshaw has quit [Ping timeout: 252 seconds]
jas02 has quit [Ping timeout: 272 seconds]
opensource_ninja has quit [Remote host closed the connection]
danman has quit [Quit: danman]
tjbiddle has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
danman has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
danman has quit [Client Quit]
prestorium has joined #ruby
tjbiddle has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
gener1c_ has joined #ruby
Respek has joined #ruby
chipotle has quit [Quit: cheerio]
mistermocha has joined #ruby
gener1c has quit [Ping timeout: 240 seconds]
mag42c has quit [Quit: mag42c]
favadi has joined #ruby
zenguy_pc has joined #ruby
rbennacer has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
CloCkWeRX has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
davedev2_ has quit [Ping timeout: 246 seconds]
hmsimha has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
Echohn_ has quit [Remote host closed the connection]
pontiki has joined #ruby
braincrash has joined #ruby
avahey has joined #ruby
chipotle has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
al2o3-cr has joined #ruby
devbug has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has joined #ruby
cooperlebrun has joined #ruby
allcentury has quit [Ping timeout: 268 seconds]
Fredrich010 has joined #ruby
naztharune has joined #ruby
ramfjord has joined #ruby
Axy has joined #ruby
Fredrich010 has quit [Ping timeout: 244 seconds]
Mia has quit [Ping timeout: 255 seconds]
darkf has joined #ruby
diegoaguilar has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
cooperle1run has joined #ruby
renanoronfle has joined #ruby
Axy is now known as Mia
cooperlebrun has quit [Ping timeout: 256 seconds]
sanjayu has joined #ruby
Kovensky has joined #ruby
naztharune has quit [Quit: naztharune has no reason]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gix has quit [Ping timeout: 244 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenguy_pc has quit [Read error: Connection reset by peer]
mollusk_ has joined #ruby
sdwrage has joined #ruby
gix has joined #ruby
benjito_ has quit [Ping timeout: 260 seconds]
skweek has quit [Read error: Connection timed out]
skweek has joined #ruby
jas02 has joined #ruby
benjito has joined #ruby
nemo_ has joined #ruby
hahuang65 has joined #ruby
jas02 has quit [Ping timeout: 260 seconds]
solenoids has quit [Ping timeout: 250 seconds]
sepp2k has quit [Quit: Leaving.]
wldcordeiro has quit [Quit: WeeChat 1.3]
zenguy_pc has joined #ruby
mengu has joined #ruby
howdoicomputer has quit [Ping timeout: 240 seconds]
renanoronfle has quit [Ping timeout: 260 seconds]
wldcordeiro has joined #ruby
<mollusk_> So in a nutshell, what is a module in Ruby? From I understand, they are just namespaces.
mengu has quit [Ping timeout: 264 seconds]
zenguy_pc has quit [Read error: No route to host]
<mollusk_> file.rb > Mymodule > file contents
houhoulis has joined #ruby
saddad has quit [Read error: Connection reset by peer]
solenoids has joined #ruby
pepperbreath has joined #ruby
pdoherty has quit [Ping timeout: 256 seconds]
__Greg has joined #ruby
__Greg has left #ruby [#ruby]
yfeldblum has quit [Ping timeout: 240 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
jenrzzz has joined #ruby
zenguy_pc has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<eam> mollusk_: essentially, yes
Echohn has joined #ruby
renanoronfle has joined #ruby
Echohn_ has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Respek has quit [Quit: gone to sleep. ZZZzzz…]
<mollusk_> eam, I am just trying to figure out the use for them (namespaces in general). When I read stuff online my learning issues kick in and make it difficult.
tkuchiki has quit [Ping timeout: 256 seconds]
devoldmx has joined #ruby
dfinninger has joined #ruby
Echohn has quit [Ping timeout: 244 seconds]
l_tonz has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mollusk_> You have an empty room, and someone write a name on paper and puts it in the room. Now nobody else cn write the same name and put it in that room.
<mollusk_> namespaces
<mollusk_> That's my understanding
devbug_ has joined #ruby
devbug has quit [Ping timeout: 246 seconds]
nemo_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
skade has joined #ruby
houhoulis has quit [Remote host closed the connection]
braincra- has joined #ruby
mistermocha has joined #ruby
bungoman_ has quit []
braincrash has quit [Ping timeout: 244 seconds]
ReK2 has quit [Ping timeout: 250 seconds]
<stardiviner> I got this error when I execute "$ ri Array", .rbenv/versions/2.2.0/lib/ruby/2.2.0/rdoc/store.rb:548:in `load': marshal data too short (ArgumentError) . Google it, but have not found solution.
tmtwd has quit [Ping timeout: 244 seconds]
chipotle has quit [Ping timeout: 260 seconds]
moeabdol has joined #ruby
idefine has quit [Remote host closed the connection]
araujo_ has quit [Quit: Leaving]
jas02 has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 264 seconds]
andykingking has joined #ruby
araujo has joined #ruby
araujo has joined #ruby
htmldrum has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
Pupeno has joined #ruby
finisherr has quit [Quit: finisherr]
jackjackdripper has joined #ruby
htmldrum has quit [Ping timeout: 255 seconds]
janelleb has quit [Ping timeout: 265 seconds]
Pupeno has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
andykingking has left #ruby [#ruby]
mistermo_ has joined #ruby
lkba_ has joined #ruby
renanoronfle has quit [Ping timeout: 244 seconds]
d34th4ck3r has quit [Quit: zzz]
arescorpio has quit [Quit: Leaving.]
skade has quit [Quit: Computer has gone to sleep.]
krz has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
mengu has joined #ruby
CloCkWeRX has quit [Ping timeout: 268 seconds]
mengu has quit [Ping timeout: 265 seconds]
galette has joined #ruby
htmldrum has joined #ruby
devoldmx has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
tmtwd has joined #ruby
bruno- has joined #ruby
dopieee has joined #ruby
bruno- is now known as Guest65561
camt has quit [Ping timeout: 244 seconds]
zenguy_pc has quit [Read error: No route to host]
devoldmx has joined #ruby
dopie has quit [Ping timeout: 260 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
tkuchiki has joined #ruby
SOLDIERz has joined #ruby
Guest65561 has quit [Ping timeout: 250 seconds]
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
l_tonz has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
jas02 has quit [Ping timeout: 260 seconds]
dhjondoh has joined #ruby
chipotle has joined #ruby
mistermo_ has quit [Remote host closed the connection]
trosborn has joined #ruby
finisherr has joined #ruby
`derpy has quit [Read error: Connection reset by peer]
`derpy has joined #ruby
finisherr has left #ruby [#ruby]
Kovensky has left #ruby ["Textual IRC Client: www.textualapp.com"]
SleepySensei has joined #ruby
<SleepySensei> Anyone having trouble with using Ruby's features on OS X's new El Capitan?
symbol has quit [Ping timeout: 256 seconds]
mistermocha has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
trabulmonkee has joined #ruby
spuk_ has joined #ruby
mistermocha has joined #ruby
<eam> win 10
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SleepySensei has joined #ruby
leat has quit [Remote host closed the connection]
cooperle1run has quit [Ping timeout: 250 seconds]
spuk has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 244 seconds]
benjito has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
tmtwd has quit [Ping timeout: 260 seconds]
leat has joined #ruby
jas02 has joined #ruby
tubuliferous_ has quit [Ping timeout: 252 seconds]
trautwein has joined #ruby
htmldrum has quit [Ping timeout: 246 seconds]
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jas02 has quit [Ping timeout: 250 seconds]
tjbiddle has quit [Ping timeout: 256 seconds]
ajb is now known as ajb-
maletor has joined #ruby
aganov has joined #ruby
<certainty> moin
joufflu has quit [Read error: Connection reset by peer]
<rehat> how do I execute a terminal command and get a bool result. When I use system or backticks the terminal command still spits out. How do gems like xcpretty do it?
<ja> what do you mean “bool result”?
<rehat> oh wait, do I just pipe it to a string?
<ja> depending on the exit status?
<rehat> yeah exit status
<ja> uhh, I forget… but there's a global variable for that, I believe
<ja> oh wait, you said it didn’t work to use #system, hrm
<ja> weird
<agent_white> rehat: Use `system()` instead to return exit status.
<ja> yeah, doesn't that work?
shinnya has quit [Ping timeout: 272 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tagrudev has joined #ruby
ElSif has joined #ruby
d34th4ck3r has joined #ruby
riotjon__ has quit [Quit: Leaving...]
SOLDIERz has quit [Quit: Textual IRC Client: www.textualapp.com]
eminencehc has joined #ruby
dnewkerk has joined #ruby
andikr has joined #ruby
decaff has quit [Ping timeout: 240 seconds]
jas02 has joined #ruby
jenrzzz has joined #ruby
<rehat> oh I changed my logic lol https://www.diffchecker.com/l30he4de
eminencehc has quit [Ping timeout: 246 seconds]
trabulmonkee has quit []
bricker has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
bruno- has joined #ruby
bruno- is now known as Guest50578
codecop has joined #ruby
Echohn_ has quit [Ping timeout: 250 seconds]
spuk_ has quit [Ping timeout: 246 seconds]
cooperlebrun has joined #ruby
Echohn_ has joined #ruby
Echohn has joined #ruby
Guest50578 has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
aufi has joined #ruby
DrCode has joined #ruby
Echohn_ has quit [Ping timeout: 268 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
krz has quit [Read error: Connection reset by peer]
baroquebobcat_ has joined #ruby
Echohn has quit [Remote host closed the connection]
Echohn has joined #ruby
aufi has quit [Read error: Connection reset by peer]
aufi has joined #ruby
Echohn_ has joined #ruby
Echohn has quit [Read error: Connection reset by peer]
Echohn has joined #ruby
sdwrage has joined #ruby
CloCkWeRX has quit [Ping timeout: 255 seconds]
devoldmx has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
baroquebobcat_ has quit [Ping timeout: 265 seconds]
bricker has quit [Ping timeout: 260 seconds]
ohaibbq has joined #ruby
Echohn_ has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yeticry has quit [Read error: Connection reset by peer]
cooperle1run has joined #ruby
Kovensky has joined #ruby
cooperlebrun has quit [Ping timeout: 268 seconds]
jerry_tao has joined #ruby
yeticry has joined #ruby
krz has joined #ruby
pontiki has quit [Ping timeout: 246 seconds]
mistermocha has quit [Ping timeout: 255 seconds]
yardenbar has quit [Ping timeout: 255 seconds]
nebuer has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Kovensky has left #ruby [#ruby]
willardg has joined #ruby
willardg has quit [Client Quit]
maletor has quit [Quit: Computer has gone to sleep.]
arup_r has joined #ruby
firstdayonthejob has joined #ruby
herbst has joined #ruby
willardg has joined #ruby
trosborn has quit [Quit: trosborn]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
htmldrum has joined #ruby
IlSeparatio has quit [Quit: Leaving]
riotjones has joined #ruby
george2 has left #ruby [#ruby]
benjito has joined #ruby
relix has joined #ruby
yardenbar has joined #ruby
galette has quit [Quit: Page closed]
krz has quit [Read error: Connection reset by peer]
acke has joined #ruby
benjito has quit [Ping timeout: 256 seconds]
Cantaberry has quit [Ping timeout: 260 seconds]
l_tonz has joined #ruby
krz has joined #ruby
kraljev11 has joined #ruby
Pisuke has joined #ruby
MyMind has quit [Ping timeout: 272 seconds]
amclain has quit [Quit: Leaving]
Echohn_ has joined #ruby
bMalum has joined #ruby
skade has joined #ruby
ohaibbq has quit [Quit: Leaving...]
beast has joined #ruby
Echohn has quit [Ping timeout: 260 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
psy_ has joined #ruby
kraljev11 has quit [Read error: Connection reset by peer]
kraljev11 has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
idefine has joined #ruby
rbowlby has joined #ruby
tesuji has joined #ruby
lkba_ has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 255 seconds]
jackjackdripper has quit [Quit: Leaving.]
_blizzy_ has joined #ruby
jackjackdripper has joined #ruby
Soda has joined #ruby
bruno- has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- is now known as Guest46280
Fredrich010 has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
Guest46280 has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
_blizzy_ has joined #ruby
SCHAAP137 has joined #ruby
XxionxX has quit [Ping timeout: 240 seconds]
niftylettuce has quit [Quit: Connection closed for inactivity]
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cooperle1run has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
leafybasil has joined #ruby
nfk|laptop has joined #ruby
pontiki has joined #ruby
cooperlebrun has joined #ruby
krz has quit [Read error: Connection reset by peer]
leafybasil has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Remote host closed the connection]
Xeago has joined #ruby
krz has joined #ruby
devbug_ has quit [Read error: Connection reset by peer]
firstdayonthejob has quit [Ping timeout: 240 seconds]
pontiki has quit [Ping timeout: 264 seconds]
agent_white is now known as vapebot
vapebot is now known as agent_white
nfk|laptop has quit [Ping timeout: 252 seconds]
Echohn has joined #ruby
solars has joined #ruby
Echohn has quit [Remote host closed the connection]
Echohn has joined #ruby
Echohn has quit [Remote host closed the connection]
Rollabunna has quit [Remote host closed the connection]
nfk|laptop has joined #ruby
wuyin has joined #ruby
KrzaQ has quit [Quit: :(]
wuyin has quit [Client Quit]
Echohn has joined #ruby
Echohn_ has quit [Ping timeout: 256 seconds]
<izzol> Moin.
<apeiros> moin
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nhhagen has joined #ruby
pagios has joined #ruby
tkuchiki has joined #ruby
<pagios> hi all, how can i install rvm ruby in a specific dir? \curl -sSL https://get.rvm.io | bash -s stable --ruby --prefix /media/sd/
<pagios> does not work
Nahra has quit [Remote host closed the connection]
jatb has quit [Ping timeout: 244 seconds]
dmolina has joined #ruby
keen______ has quit [Read error: Connection reset by peer]
jatb has joined #ruby
nfk|laptop has quit [Ping timeout: 272 seconds]
keen______ has joined #ruby
sdwrage has joined #ruby
matp has quit [Ping timeout: 260 seconds]
steffkes has joined #ruby
sl33k has joined #ruby
Xeago has quit [Remote host closed the connection]
Fredrich010 has quit [Remote host closed the connection]
joonty has joined #ruby
KrzaQ has joined #ruby
Fredrich010 has joined #ruby
akemrir has joined #ruby
nfk|laptop has joined #ruby
<agent_white> atom3: Are you spamming bots by chance?
sdwrage has quit [Quit: This computer has gone to sleep]
matp has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
ramfjord has joined #ruby
charliesome has joined #ruby
<agent_white> Anyone getting spammed by "at0mxxxxxx" bots?
troulouliou_div2 has joined #ruby
Echohn_ has joined #ruby
lipoqil has joined #ruby
d0lph1n98_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pagios has left #ruby ["Leaving"]
charliesome_ has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
<apeiros> agent_white: nope, no spam for me
charliesome has quit [Read error: Connection reset by peer]
tesuji has quit [Read error: Connection reset by peer]
hmsimha has quit [Ping timeout: 265 seconds]
rehat has quit [Remote host closed the connection]
Echohn has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 272 seconds]
ghr has joined #ruby
Xeago has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
VeryBewitching has quit [Quit: Konversation terminated!]
tsou has quit [Remote host closed the connection]
agent_white has joined #ruby
devoldmx has joined #ruby
Fredrich010 has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
bayed has joined #ruby
sdwrage has joined #ruby
sagax has joined #ruby
CloCkWeRX has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
patdohere has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
charliesome_ has quit [Read error: Connection reset by peer]
marr has joined #ruby
charliesome has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
jackjackdripper1 has joined #ruby
rbowlby has quit [Remote host closed the connection]
jackjackdripper has quit [Ping timeout: 240 seconds]
charliesome has quit [Read error: Connection reset by peer]
_blizzy_ has quit [Ping timeout: 240 seconds]
Fredrich010 has joined #ruby
charliesome has joined #ruby
euoia has quit [Ping timeout: 255 seconds]
rdark has joined #ruby
rdark has joined #ruby
sharkman has quit [Ping timeout: 246 seconds]
Hounddog has joined #ruby
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cooperlebrun has quit [Ping timeout: 252 seconds]
c0m0 has joined #ruby
niemcu has joined #ruby
tomphp has joined #ruby
teclator has joined #ruby
tomphp has quit [Client Quit]
ibouvousaime has joined #ruby
vigintas has joined #ruby
euoia has joined #ruby
kimegede has joined #ruby
mark3 has joined #ruby
Echohn has joined #ruby
jackjackdripper1 has quit [Ping timeout: 250 seconds]
bruce_lee has joined #ruby
euoia has quit [Ping timeout: 256 seconds]
sharkman has joined #ruby
Echohn_ has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
minimalism has quit [Quit: leaving]
krz has quit [Read error: Connection reset by peer]
CloCkWeRX has quit [Ping timeout: 264 seconds]
CloCkWeRX has joined #ruby
cooperlebrun has joined #ruby
Voker57 has joined #ruby
Pupeno has joined #ruby
charliesome has quit [Ping timeout: 272 seconds]
charliesome_ has joined #ruby
dnewkerk has quit [Quit: dnewkerk]
rbowlby has joined #ruby
leafybasil has joined #ruby
euoia has joined #ruby
jatb has quit [Ping timeout: 244 seconds]
mloy has quit [Ping timeout: 272 seconds]
rbowlby has quit [Remote host closed the connection]
Echohn has quit [Remote host closed the connection]
tomphp has joined #ruby
dionysus69 has joined #ruby
Echohn has joined #ruby
jatb has joined #ruby
simi has joined #ruby
Taha_The_Hacker has joined #ruby
alcipir has quit [Ping timeout: 272 seconds]
<yorickpeterse> morning
diegoaguilar has joined #ruby
vigintas has quit [Quit: vigintas]
alcipir has joined #ruby
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #ruby
last_staff has joined #ruby
krz has joined #ruby
Echohn has quit [Read error: Connection reset by peer]
Echohn has joined #ruby
leitz has joined #ruby
Xeago has quit [Remote host closed the connection]
sl33k has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
vigintas has joined #ruby
<leitz> Okay, I'm more confused than normal. Need more coffee. Using Ruby 1.8.7, the "if" in line 44 should be an else, I thought, to ensure the directory was there.
kraljev11 has quit [Quit: kraljev11]
jatb has quit [Ping timeout: 244 seconds]
<leitz> The directory is there. If the "if" is an "unless", the script fails. When it's an "if", it works.
<leitz> What am I missing?
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
Echohn has quit [Client Quit]
<mikecmpbll> leitz: wat?
cooperlebrun has quit [Ping timeout: 252 seconds]
<mikecmpbll> the directory exists and the code in the `if` runs, right?
<mikecmpbll> (the code which says the directory doesn't exist and exits the program)
mengu has joined #ruby
<leitz> mikecmpbll, sorry. My poor typing. The directory exists, and the code does not exit. Instead, the Dir stuff below it runs.
govg has joined #ruby
jatb has joined #ruby
tvw has joined #ruby
<mikecmpbll> well, File.directory? can't find it then
bMalum has quit [Remote host closed the connection]
chthon has joined #ruby
bMalum has joined #ruby
pontiki has joined #ruby
<leitz> If I take the assignement and File.directory? lines and run them in irb, in the same directory as the script, I get a "true" response.
TomyWork has joined #ruby
<mikecmpbll> oh, just noticed your syntax error
<d34th4ck3r> I’m getting started with testing in Ruby. I’m confused about one thing. Is it neccessary to use install RSpec gem when using factory_girl ?
<mikecmpbll> leitz: you don't use braces for if statements
nettoweb has joined #ruby
<mikecmpbll> i'm surprised that's not erroring.
<mikecmpbll> the rogue "end" on line 68 will be playing a part in that.
sl33k has joined #ruby
pontiki has quit [Ping timeout: 256 seconds]
bonemind has joined #ruby
jatb has quit [Ping timeout: 244 seconds]
CloCkWeRX has quit [Ping timeout: 260 seconds]
quaristice has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
jgt2 has joined #ruby
arup_r has quit [Ping timeout: 246 seconds]
<leitz> Ah, I had tried "do"..."end", and not just "end".
<mikecmpbll> ah :)
<leitz> Too early in the morning...
Peg-leg has joined #ruby
jatb has joined #ruby
beast has quit [Quit: Leaving]
DoubleMalt has joined #ruby
Gnomethrower has joined #ruby
kies^ has quit [Ping timeout: 246 seconds]
dionysus69 has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
Fredrich010 has quit [Read error: Connection reset by peer]
Fredrich010 has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
mengu has quit [Remote host closed the connection]
bonemind has quit [Quit: WeeChat 1.0]
<leitz> Well, Ruby is great. The people writing the XML I'm parsing...not so much.
ledestin has joined #ruby
<mikecmpbll> ahh, good ol' fun xml
dhjondoh has quit [Quit: dhjondoh]
<yorickpeterse> XML is great
<TheBrayn> XML is like violence
<leitz> I've seen that reference.
dhjondoh has joined #ruby
alcipir has quit [Ping timeout: 250 seconds]
dionysus69 has joined #ruby
quaristice has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> xml is a tool, and like all tools, lots of humans tend to use it the wrong way :(
<mikecmpbll> you should be using yorickpeterse's parser, not nokogiri :p
dionysus69 has quit [Client Quit]
<mikecmpbll> jk, i use ox.
dionysus69 has joined #ruby
gregf has joined #ruby
<leitz> apeiros, there's another script in this set that cleans up stuff like htmlentities in their XML. bleagh..
zipace has joined #ruby
jenrzzz has joined #ruby
Kharma has quit [Ping timeout: 265 seconds]
tedstriker has joined #ruby
Gnomethrower has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
bonemind has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
blue_deref has quit [Quit: Taking myself out of hear.]
SenpaiSilver_ has joined #ruby
dopamean1 has joined #ruby
dikaio has quit [Quit: ........]
Sembei has joined #ruby
dopie has joined #ruby
perrier__ has joined #ruby
Regulati_ has joined #ruby
nebuer_ has joined #ruby
chipotle_ has joined #ruby
Dreamer3 has joined #ruby
<Veejay> .all?(/foo/) can already be done as .all?(&foo) though, with a Proc containing the logic. The way you name your block (proc/lambda) even enforces better semantic reasoning IMHO
jenrzzz has quit [Ping timeout: 260 seconds]
armyriad has quit [Ping timeout: 265 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
perrier_ has quit [Ping timeout: 265 seconds]
kurzweil has quit [Ping timeout: 265 seconds]
last_staff has quit [Ping timeout: 265 seconds]
arthurnn has quit [Ping timeout: 265 seconds]
ozzloy has quit [Ping timeout: 265 seconds]
scottstamp has quit [Ping timeout: 265 seconds]
Kharma has joined #ruby
pwnd_nsfw has quit [Quit: Leaving]
dhjondoh1 has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
armyriad has joined #ruby
kurzweil has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
arthurnn_ has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
nebuer has quit [Ping timeout: 265 seconds]
dopieee has quit [Ping timeout: 265 seconds]
dopamean_ has quit [Ping timeout: 265 seconds]
veloutin has quit [Ping timeout: 265 seconds]
<Veejay> Hi
Veejay has left #ruby ["WeeChat 0.4.2"]
Veejay has joined #ruby
veloutin has joined #ruby
SenpaiSilver has quit [Read error: Connection reset by peer]
hhatch has joined #ruby
<Veejay> Hi
pwnd_nsfw has joined #ruby
Pisuke has quit [Ping timeout: 265 seconds]
chipotle has quit [Ping timeout: 265 seconds]
Mia has quit [Ping timeout: 265 seconds]
Feyn has quit [Ping timeout: 265 seconds]
RegulationD has quit [Ping timeout: 265 seconds]
Dreamer3_ has quit [Ping timeout: 265 seconds]
inteq has quit [Ping timeout: 265 seconds]
mblagden has quit [Ping timeout: 265 seconds]
BraddPitt has quit [Ping timeout: 265 seconds]
amoeba has quit [Ping timeout: 265 seconds]
mblagden has joined #ruby
BraddPitt has joined #ruby
arup_r has quit [Ping timeout: 240 seconds]
dhjondoh has quit [Ping timeout: 260 seconds]
dhjondoh1 is now known as dhjondoh
inteq has joined #ruby
Xeago has joined #ruby
dhjondoh has quit [Client Quit]
amoeba has joined #ruby
l_tonz has quit [Remote host closed the connection]
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
favadi has joined #ruby
scottstamp has joined #ruby
l_tonz has joined #ruby
jgt2 has quit [Ping timeout: 260 seconds]
Taha_The_Hacker has quit [Ping timeout: 246 seconds]
<agent_white> Hihi
iamvery has quit [Ping timeout: 268 seconds]
caliostro has joined #ruby
dhjondoh has joined #ruby
matthewhill has joined #ruby
matthewhill has quit [Remote host closed the connection]
iamvery has joined #ruby
matthewhill has joined #ruby
matthewhill has quit [Client Quit]
Jackneill has joined #ruby
l_tonz has quit [Ping timeout: 252 seconds]
diegobiavati has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
kimegede has quit [Quit: Leaving...]
Rollabunna has joined #ruby
kimegede has joined #ruby
Feyn has joined #ruby
<TomyWork> "bundle exec" is a little slow even though i only have one gem dependency. is there a way to speed it up?
daffy_duck has quit [Quit: Leaving]
Taha_The_Hacker has joined #ruby
Pupeno has quit [Quit: Leaving...]
mark3 has quit [Quit: Leaving.]
mark3 has joined #ruby
mark3 has quit [Max SendQ exceeded]
<yorickpeterse> No
arup_r has joined #ruby
mark3 has joined #ruby
mark3 has quit [Max SendQ exceeded]
Rollabunna has quit [Ping timeout: 268 seconds]
mark3 has joined #ruby
mark3 has quit [Max SendQ exceeded]
mark3 has joined #ruby
mark3 has quit [Max SendQ exceeded]
mark3 has joined #ruby
mark3 has quit [Max SendQ exceeded]
* apeiros was/is tempted to say "don't use bundle exec"
<agent_white> What is the correct way to add paths for a "default ruby project skeleton?" (As in, I have bin/project, lib/project.rb, lib/project/thing.rb)
krz has quit [Quit: WeeChat 1.2]
dionysus69 has quit [Read error: Connection reset by peer]
<apeiros> agent_white: there's a couple of gem skeleton generators
<agent_white> apeiros: That's the thing I did use bundle... but figured it was a bit much since I'm not looking to make a gem.
<apeiros> bundler, hoe, jeweler come to mind. toolbox probably has more.
<apeiros> agent_white: eh, that's IMO a mistake. the moment you have a lib dir, you should make it a gem :-p
<agent_white> apeiros: Are hoe and jeweler a bit skinnier?
<apeiros> I mean, you don't need to publish it
<agent_white> apeiros: Ahhh :P Well. I made the lib dir not out of necessity, but rather that I had seen many projects using a lib dir so figured I should do the same.
Fredrich010 has quit [Read error: Connection reset by peer]
<caliostro> hi there!
<apeiros> that's a good idea. just as going the full way and making it a gem ;-)
Fredrich010 has joined #ruby
<apeiros> all you need for a gem is a .gemspec. lib/bin/docs etc. are all optional.
<agent_white> apeiros: Ah ok! So... maybe `bundle gem myprojectname` and just remove the unncessary files?
<apeiros> sure
<apeiros> or use some generator which can be configured
<agent_white> Ahhh okey doke. Yeah really, not even thinking about 'gem' at all. Just kinda was thinking in terms of general skeleton layout.
<agent_white> Alrighty! I'll take a peek at hoe and jeweler. :)
<agent_white> apeiros: Thank you :)
<apeiros> yw
ef has joined #ruby
<apeiros> btw., a minimal gemspec is quite small too.
* apeiros afk
Igorshp has joined #ruby
<apeiros> agent_white: ah, while it's essentially unmaintained - I still use my own gem-new. feel free to work on it if you want to improve it :D
jenrzzz has joined #ruby
<agent_white> apeiros: Ahhh okey doke! :)
alcipir has joined #ruby
charliesome_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
alcipir has quit [Ping timeout: 268 seconds]
rodfersou has joined #ruby
diegobiavati_ has joined #ruby
Taha_The_Hacker has quit [Ping timeout: 246 seconds]
ruurd has joined #ruby
diegobiavati has quit [Ping timeout: 240 seconds]
gregf has quit [Quit: WeeChat 1.3]
diegoaguilar has quit [Remote host closed the connection]
gregf has joined #ruby
jgt2 has joined #ruby
<TomyWork> i want to access jira's api, reading, creating and deleting comments, possibly updating them too. can you recommend a gem?
Igorshp has quit [Remote host closed the connection]
step1step2_ has joined #ruby
<TomyWork> that's issue comments
agent_wh1te has joined #ruby
Peg-leg1 has joined #ruby
helpa has quit [Remote host closed the connection]
jgt2 has quit [Client Quit]
helpa has joined #ruby
klaas_ has joined #ruby
jgt has joined #ruby
stannard has joined #ruby
Igorshp has joined #ruby
ruurd has quit [Client Quit]
Neniah has joined #ruby
agent_white has quit [Disconnected by services]
Shidash_ has joined #ruby
dopamean_ has joined #ruby
wnd_ has joined #ruby
agent_wh1te is now known as agent_white
agent_white has quit [Changing host]
agent_white has joined #ruby
charles81_ has joined #ruby
crayfishx_ has joined #ruby
bkxd_ has joined #ruby
[spoiler] has joined #ruby
devoldmx has joined #ruby
ruurd has joined #ruby
fumduq- has joined #ruby
jxs_ has joined #ruby
crankhar1er has joined #ruby
utkarsh_ has joined #ruby
shinenelson_ has joined #ruby
totimkop1 has joined #ruby
zwdr_ has joined #ruby
cbednarski_ has joined #ruby
stacybir1 has joined #ruby
charliesome has joined #ruby
im0b_ has joined #ruby
ironcame1 has joined #ruby
ericwood_ has joined #ruby
kramsee_ has joined #ruby
daed_ has joined #ruby
patteh_ has joined #ruby
aryaching has joined #ruby
mic_e has joined #ruby
speaking1ode has joined #ruby
tethra_ has joined #ruby
s00pcan_ has joined #ruby
Pro|_ has joined #ruby
pygospa has joined #ruby
cscheib_ has joined #ruby
agentmee1kat has joined #ruby
arthurix has joined #ruby
iamvery_ has joined #ruby
hellschreiber_ has joined #ruby
aryaching has quit [Client Quit]
skcin7_ has joined #ruby
marens_ has joined #ruby
marens_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
_main_ has joined #ruby
devoldmx has quit [Ping timeout: 265 seconds]
rideh has joined #ruby
elaptics` has joined #ruby
arthurix_ has quit [Ping timeout: 256 seconds]
dionysus69 has quit [Remote host closed the connection]
sonne_ has joined #ruby
Junaos_ has joined #ruby
SegFaultAX_ has joined #ruby
iamvery has quit [*.net *.split]
favadi has quit [*.net *.split]
dopamean1 has quit [*.net *.split]
Peg-leg has quit [*.net *.split]
troulouliou_div2 has quit [*.net *.split]
wldcordeiro has quit [*.net *.split]
mollusk_ has quit [*.net *.split]
nizmow has quit [*.net *.split]
s00pcan has quit [*.net *.split]
bkxd has quit [*.net *.split]
stannard_ has quit [*.net *.split]
skcin7 has quit [*.net *.split]
step1step2 has quit [*.net *.split]
towler has quit [*.net *.split]
rideh- has quit [*.net *.split]
omninonsense has quit [*.net *.split]
ggherdov has quit [*.net *.split]
speaking2ode has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
cscheib has quit [*.net *.split]
sarlalian has quit [*.net *.split]
rcs has quit [*.net *.split]
sonne has quit [*.net *.split]
speakingcode has quit [*.net *.split]
shevy has quit [*.net *.split]
agentmeerkat has quit [*.net *.split]
shinenelson has quit [*.net *.split]
BLuEGoD has quit [*.net *.split]
wnd has quit [*.net *.split]
anekos has quit [*.net *.split]
utkarsh has quit [*.net *.split]
__main__ has quit [*.net *.split]
Biohazard has quit [*.net *.split]
zwdr has quit [*.net *.split]
crankharder has quit [*.net *.split]
M-mistake has quit [*.net *.split]
preyalone has quit [*.net *.split]
apipkin has quit [*.net *.split]
charles81 has quit [*.net *.split]
daed has quit [*.net *.split]
TheRealPygo has quit [*.net *.split]
kramsee has quit [*.net *.split]
Guest36282 has quit [*.net *.split]
totimkopf has quit [*.net *.split]
GarethAdams has quit [*.net *.split]
im0b has quit [*.net *.split]
lacrosse has quit [*.net *.split]
bcavileer has quit [*.net *.split]
Shidash has quit [*.net *.split]
woodruffw has quit [*.net *.split]
stacybird has quit [*.net *.split]
err_ok has quit [*.net *.split]
musicmatze has quit [*.net *.split]
fumduq has quit [*.net *.split]
c0ncealed has quit [*.net *.split]
Pro| has quit [*.net *.split]
klaas has quit [*.net *.split]
Junaos has quit [*.net *.split]
marienz has quit [*.net *.split]
pocketprotector has quit [*.net *.split]
odigity has quit [*.net *.split]
schaary has quit [*.net *.split]
bjeanes has quit [*.net *.split]
hellschreiber has quit [*.net *.split]
alxndr has quit [*.net *.split]
crayfishx has quit [*.net *.split]
bodgix has quit [*.net *.split]
bjmllr has quit [*.net *.split]
timmow has quit [*.net *.split]
Lilian has quit [*.net *.split]
akahn has quit [*.net *.split]
iamdevnul has quit [*.net *.split]
edwardly has quit [*.net *.split]
ironcamel has quit [*.net *.split]
sparr has quit [*.net *.split]
marens has quit [*.net *.split]
Papierkorb has quit [*.net *.split]
IceDragon has quit [*.net *.split]
lukaszk has quit [*.net *.split]
mjc_ has quit [*.net *.split]
mic_e_ has quit [*.net *.split]
nrk has quit [*.net *.split]
cbednarski has quit [*.net *.split]
tethra has quit [*.net *.split]
ericwood has quit [*.net *.split]
patteh has quit [*.net *.split]
6JTABS5S2 has quit [*.net *.split]
elaptics has quit [*.net *.split]
preyalone_ has joined #ruby
SegFaultAX_ is now known as SegFaultAX
IceDragon has joined #ruby
Biohazard has joined #ruby
woodruffw has joined #ruby
IceDragon is now known as Guest25014
rcs has joined #ruby
timmow has joined #ruby
Papierkorb has joined #ruby
adam| has joined #ruby
dionysus69 has joined #ruby
nizmow has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
nemo_ has joined #ruby
pandaant has joined #ruby
xxx has joined #ruby
xxx is now known as Guest99329
_main_ is now known as __main__
BLuEGoD has joined #ruby
bodgix has joined #ruby
GarethAdams has joined #ruby
jatb has quit [Ping timeout: 244 seconds]
skcin7_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wnd_ is now known as wnd
charles81_ is now known as charles81
speakingcode has joined #ruby
ggherdov_ has joined #ruby
shinenelson_ is now known as shinenelson
Zackio has quit [Quit: C-x C-c]
RedDwarf has joined #ruby
Neniah has quit [Remote host closed the connection]
jatb has joined #ruby
M-mistake1 has joined #ruby
im0b_ is now known as im0b
benjito has joined #ruby
mollusk_ has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
bjeanes has joined #ruby
musicmatze has joined #ruby
Lilian has joined #ruby
Taha_The_Hacker has joined #ruby
ggherdov_ is now known as ggherdov
cbednarski_ is now known as cbednarski
ben3 has joined #ruby
<Taha_The_Hacker> Hi
sarlalian has joined #ruby
wldcordeiro has joined #ruby
nrk has joined #ruby
nhhagen has quit []
mistermocha has joined #ruby
pocketprotector has joined #ruby
lukaszk has joined #ruby
shevy has joined #ruby
odigity has joined #ruby
troulouliou_div2 has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
apipkin has joined #ruby
bcavileer has joined #ruby
mjc_ has joined #ruby
alxndr has joined #ruby
towler has joined #ruby
marienz has joined #ruby
preyalone_ is now known as preyalone
bjmllr has joined #ruby
sparr has joined #ruby
Azure|dc has quit [Excess Flood]
akahn has joined #ruby
lacrosse has joined #ruby
err_ok has joined #ruby
schaary has joined #ruby
ben3 has quit [Quit: WeeChat 0.4.2]
DenSchub has quit [Read error: Connection reset by peer]
benjito has quit [Ping timeout: 260 seconds]
jgt has quit [Read error: Connection reset by peer]
iamdevnul has joined #ruby
jgt has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
anekos has joined #ruby
DenSchub has joined #ruby
Rickmasta has joined #ruby
flughafen has joined #ruby
c0ncealed has joined #ruby
nebuer_ has quit [Remote host closed the connection]
jatb has quit [Ping timeout: 244 seconds]
alcipir has joined #ruby
Taha_The_Hacker has quit [Ping timeout: 246 seconds]
Azure has joined #ruby
<agent_white> apeiros: You still around?
karapetyan has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
bkxd_ has quit [Ping timeout: 268 seconds]
jatb has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
l_tonz has joined #ruby
alcipir has quit [Ping timeout: 240 seconds]
gregf has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
daffy_duck has joined #ruby
dionysus69 has quit [Remote host closed the connection]
Taha_The_Hacker has joined #ruby
senayar has joined #ruby
mostlybadfly has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
l_tonz has quit [Ping timeout: 250 seconds]
bonhoeffer has joined #ruby
ldnunes has joined #ruby
nemo__ has joined #ruby
jatb has quit [Ping timeout: 244 seconds]
acke has quit [Quit: Leaving...]
aufi has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
bonhoeffer has quit [Client Quit]
nemo_ has quit [Ping timeout: 250 seconds]
benlovell has joined #ruby
symbol has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
jatb has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
gregf has quit [Quit: WeeChat 1.3]
sankaber has joined #ruby
lulzmachine has joined #ruby
d34th4ck3r has quit [Quit: zzz]
jerry_tao has quit [Quit: jerry_tao]
c0ncealed has quit [K-Lined]
alcipir has joined #ruby
gregf has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
hfp_work has quit [Ping timeout: 240 seconds]
nertzy has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
alcipir has quit [Ping timeout: 252 seconds]
hfp_work has joined #ruby
chipotle_ has quit [Quit: cheerio]
diegobiavati_ has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
dhjondoh has joined #ruby
ashleyis has quit [Ping timeout: 272 seconds]
beast has joined #ruby
vigintas has quit [Ping timeout: 255 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 265 seconds]
<leitz> Okay, running into an issue with a duplicate hash key.. I didn't even think that was possible, but I'm easily confused.
ef has quit [Ping timeout: 268 seconds]
<leitz> One key is duplicated. Not sure why the has_key? isn't seeing it, unless there's something unviewable in the string.
<apeiros> agent_white: back now
Taha_The_Hacker has quit [Ping timeout: 246 seconds]
<agent_white> apeiros: Ah good deal, thanks for the heads up :) Figured out my issue.
pontiki has joined #ruby
<apeiros> leitz: use p instead of puts
<agent_white> I was trying to test my bin file just going in the directory of it and going "./run" rather than "bundle exec run" :P
workmad3 has joined #ruby
<leitz> apeiros, I still get the duplicate key.. "key is V-38692"
<leitz> "key is V-38692"
<leitz> That the key is referenced more than once in the source XML is fine. That it's not seeing the same key in $ccis bothers me.
<leitz> So far this seems to be the only duplicate.
jonnie has joined #ruby
<jonnie> hi all
<jonnie> ive got a question about exception handling
yardenbar has joined #ruby
<jonnie> is it possible for reraised exceptions to flow onto subsequent rescue calls, or do they always "go up" so to speak?
pontiki has quit [Ping timeout: 250 seconds]
<apeiros> jonnie: always go up
<jonnie> boo
<apeiros> jonnie: but you can rescue more than one exception class in a rescue
moeabdol has joined #ruby
<apeiros> and plain `rescue` is identical to `rescue StandardError`
nemo__ has quit [Remote host closed the connection]
stamina has joined #ruby
<apeiros> so no, not boo :)
<jonnie> im using a library that raises the same exception class for all error states, and differentiates them by objects attatched to them, which are obv. inaccessible to the rescue statement
<jonnie> very annoying
<apeiros> I can imagine
<jonnie> so im my example "abc" stands for the exception metadata from the library
<apeiros> leitz: from your code I'm not quite sure how you figure you've got a duplicate key and where
Xeago has quit [Remote host closed the connection]
dhjondoh has quit [Quit: dhjondoh]
ef has joined #ruby
<leitz> apeiros, I grep for the keys in the output file, and then do another grep with a sort -u.
<jonnie> i guess ill just extract a method and it can have its own rescue clause, that way i can have nested rescues which is what i really want anyway
bruno- has joined #ruby
dhjondoh has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
aufi has joined #ruby
dhjondoh has quit [Client Quit]
bruno- is now known as Guest78890
Rollabunna has joined #ruby
moeabdol has quit [Ping timeout: 252 seconds]
Taha_The_Hacker has joined #ruby
tkuchiki has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
<apeiros> leitz: that's $ccis.to_json?
favadi has joined #ruby
jgt has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
spider-mario has joined #ruby
jonnie has quit [Ping timeout: 250 seconds]
lubarch has joined #ruby
<apeiros> leitz: then instead of that, use File.write(cci_json_file, $ccis.inspect)
solocshaw has joined #ruby
<apeiros> btw., with block-form you don't have to do f.close.
lubarch has quit [Client Quit]
benjito has joined #ruby
karapetyan has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
jgt has joined #ruby
ef has quit [Ping timeout: 250 seconds]
hanmac has joined #ruby
ruurd has joined #ruby
benjito has quit [Ping timeout: 255 seconds]
prestorium has quit [Ping timeout: 240 seconds]
sdothum has joined #ruby
jonnie has joined #ruby
dionysus69 has quit [Remote host closed the connection]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
badhatter has joined #ruby
vigintas has joined #ruby
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<leitz> apeiros, I have the inspect output, it's pretty ugly.. There are two different Nokogiri::XML::Attr identifiers for the duplicate keys.
ibouvousaime has quit [Ping timeout: 265 seconds]
Taha_The_Hacker has quit [Quit: Page closed]
solocshaw has quit [Read error: Connection reset by peer]
<apeiros> leitz: so you probably want to get their text value instead of the Nokogiri::XML::Attr
dionysus69 has joined #ruby
<apeiros> and that's why you use p and not puts ;-p
karapetyan has quit [Ping timeout: 240 seconds]
<apeiros> puts calls to_s, p calls inspect.
Taha_The_Hacker has joined #ruby
ibouvousaime has joined #ruby
solocshaw has joined #ruby
<leitz> I'm not sure I understand. If the value is the key, is it using the Attr?
<leitz> #<Nokogiri::XML::Attr:0x3ff2fae30684 name= "id" value="V-38692">=>["CCI-000017"],
iamvery_ has quit [Ping timeout: 240 seconds]
nrk has quit [Ping timeout: 268 seconds]
badhatter has quit [Quit: Lost terminal]
changeme_ has joined #ruby
<apeiros> your #<Nokogiri::XML::Attr:0x3ff2fae30684 name= "id" value="V-38692"> to_s will give "V-38692". since JSON does not support anything but string keys in hashes, that's what's being used in the serialization.
gains is now known as Pierreb
_blizzy_ has joined #ruby
<apeiros> and that's also what you see when you puts it
iamvery has joined #ruby
ef has joined #ruby
<apeiros> but two Nokogiri::XML::Attr with the same value in value are still two different hash keys., which is why you think you have a duplicate hash key.
chipotle has joined #ruby
benjito has joined #ruby
<leitz> Ah, lemme go poke it a bit more.
cornerma1 has joined #ruby
nrk has joined #ruby
jatb has quit [Ping timeout: 244 seconds]
but3k4 has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
changeme_ has quit [Quit: leaving]
curses has joined #ruby
cornerman has quit [Ping timeout: 240 seconds]
big|bad|wolf has joined #ruby
cornerma1 is now known as cornerman
<workmad3> leitz: compare the `.hash` values for them
nateberkopec has quit [Read error: Connection reset by peer]
andykingking has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
c0ncealed has joined #ruby
jatb has joined #ruby
benjito has quit [Ping timeout: 255 seconds]
Taha_The_Hacker has quit [Quit: Page closed]
akemrir has quit [Read error: Connection reset by peer]
solocshaw has quit [Ping timeout: 246 seconds]
_blizzy_ has joined #ruby
govg has quit [Quit: leaving]
dionysus69 has quit [Remote host closed the connection]
<leitz> workmad3, apeiros, the solution was to change [vuln_number] to [vid] in line 42. vid has already been turned into a to_s. https://github.com/LeamHall/SecComFrame/blob/master/tools/stig_munger/open_stig.rb#L41
<leitz> Sorry, line #41.
ItSANgo has joined #ruby
ef has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
alcipir has joined #ruby
Xeago has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
benlovell has quit [Ping timeout: 260 seconds]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leat has quit [Quit: leat]
leat has joined #ruby
prestorium has joined #ruby
ef has joined #ruby
alcipir has quit [Ping timeout: 250 seconds]
<leitz> Updated code pushed. TIme for a nap. My work day is half over and most folks here are just getting up...
jenrzzz has quit [Ping timeout: 244 seconds]
eggoez has quit [Ping timeout: 250 seconds]
s00pcan_ has quit [Ping timeout: 240 seconds]
chipotle has quit [Quit: cheerio]
Fredrich010 has quit [Read error: Connection reset by peer]
ef_ has joined #ruby
Fredrich010 has joined #ruby
curses has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
tkuchiki has joined #ruby
s00pcan has joined #ruby
Cantaberry has joined #ruby
dionysus69 has joined #ruby
mengu has quit [Remote host closed the connection]
solenoids has quit [Ping timeout: 260 seconds]
benjito_ has joined #ruby
senayar has quit [Remote host closed the connection]
Coldblackice has quit [Ping timeout: 260 seconds]
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
yeticry has quit [Ping timeout: 255 seconds]
<TomyWork> i want to access jira's api, reading, creating and deleting comments, possibly updating them too. can you recommend a gem? jira-ruby lacks documentation
foooobear has joined #ruby
allcentury has joined #ruby
nfk|laptop has quit [Ping timeout: 268 seconds]
eggoez has joined #ruby
nfk|laptop has joined #ruby
mwat has joined #ruby
nfk|laptop has quit [Client Quit]
big|bad|wolf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benjito_ has quit [Ping timeout: 260 seconds]
lubarch has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
devoldmx has joined #ruby
blaxter has joined #ruby
lubarch has quit [Client Quit]
moeabdol has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
badhatte1 has joined #ruby
tkuchiki_ has joined #ruby
badhatte1 has quit [Client Quit]
tkuchiki has quit [Read error: Connection reset by peer]
badhatte1 has joined #ruby
badhatte1 is now known as badhatter
solenoids has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
mengu has joined #ruby
karapetyan has joined #ruby
badhatter has quit [Client Quit]
ponga has joined #ruby
badhatter has joined #ruby
benlovell has quit [Ping timeout: 268 seconds]
nfk|laptop has joined #ruby
teclator has quit [Ping timeout: 244 seconds]
benlovell has joined #ruby
moeabdol has joined #ruby
Guest7 has joined #ruby
dionysus69 has joined #ruby
Respek has joined #ruby
crazydiamond has joined #ruby
jgt has quit [Ping timeout: 255 seconds]
agent_white has quit [Read error: Connection reset by peer]
agent_white has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
senayar_ has joined #ruby
senayar has quit [Read error: Connection reset by peer]
daviddavis has joined #ruby
andykingking has quit [Quit: Leaving.]
<daviddavis> anyone know how I can refactor this test for rails 4/strong_params? https://gist.github.com/daviddavis/6f042b041338520c268d
atomical has joined #ruby
arup_r has quit [Quit: Leaving]
kraljev11 has joined #ruby
<jhass> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<daviddavis> thx
synthroid has joined #ruby
badhatter has quit [Quit: Lost terminal]
teclator has joined #ruby
tkuchiki has quit [Remote host closed the connection]
symbol has quit [Quit: WeeChat 1.1]
Pumukel has joined #ruby
decaff has joined #ruby
allcentury has quit [Ping timeout: 268 seconds]
Guest7 has quit [Quit: Textual IRC Client: www.textualapp.com]
kraljev11 has quit [Quit: kraljev11]
<shevy> we need learn chips so we don't have to learn anything basic anymore
Icey has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
sl33k has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jxs_ has quit [Remote host closed the connection]
<jhass> why learn if you can have instant/seamless integrated lookup of everything?
hostess_ is now known as hostess
daed_ is now known as daed
Icey has joined #ruby
sgambino has joined #ruby
badhatter has joined #ruby
senayar_ has quit [Read error: Connection reset by peer]
senayar has joined #ruby
senayar has joined #ruby
badhatter has quit [Client Quit]
tkuchiki has joined #ruby
_Ghis_ has joined #ruby
_Ghis_ has quit [Client Quit]
sankaber has quit [Remote host closed the connection]
sankaber has joined #ruby
sdwrage has joined #ruby
Rickmasta has joined #ruby
tkuchiki has quit [Remote host closed the connection]
nemo_ has joined #ruby
codecop has quit [Remote host closed the connection]
jonnie has quit [Ping timeout: 265 seconds]
<shevy> you mean google is the future?
<jhass> well, that's probably the sad part but yes
<adaedra> coucou
<shevy> with google sponsorship we could have ruby become guby
benlovell has joined #ruby
sharkman has quit [Ping timeout: 246 seconds]
agent_white is now known as vaperbot
fungoat has joined #ruby
vaperbot is now known as agent_white
bytecrawler has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
platzhirsch has joined #ruby
CloCkWeRX has joined #ruby
naftilos76 has joined #ruby
sanjayu has quit [Ping timeout: 256 seconds]
benlovell has quit [Ping timeout: 250 seconds]
fungoat has quit [Quit: fungoat]
treehug8_ has joined #ruby
idefine has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
rwilcox has joined #ruby
mag42c has joined #ruby
naztharune has joined #ruby
<zotherstupidguy> hey i wanna do somthing like that
<zotherstupidguy> 2015-10-11T13:36:24+0000 - Time.now
<zotherstupidguy> to see if a date is upcoming or already in the past
<zotherstupidguy> how can it be done?
<adaedra> Parse the date to get a Time object, then compare the two.
rwilcox has quit [Client Quit]
<jhass> puts parsed > Time.now ? "coming up" : "in the past"
benjito has joined #ruby
rwilcox has joined #ruby
Soda has quit [Remote host closed the connection]
daviddavis has left #ruby ["WeeChat 1.0.1"]
idefine has quit [Ping timeout: 255 seconds]
inteq has quit [Remote host closed the connection]
SenpaiSilver_ has quit [Quit: Leaving]
<zotherstupidguy> adaedra jhass thanks works perfectly
JDiPierro has joined #ruby
haylon has joined #ruby
JDiPierro has quit [Remote host closed the connection]
benjito has quit [Ping timeout: 255 seconds]
decaff has left #ruby [#ruby]
Ebok has quit [Read error: Connection reset by peer]
Oatmeal has joined #ruby
allcentury has joined #ruby
Ebok has joined #ruby
tagrudev has quit [Read error: Connection reset by peer]
SenpaiSilver has joined #ruby
tagrudev has joined #ruby
TheRokh has quit [Read error: Connection reset by peer]
JDiPierro has joined #ruby
benlovell has joined #ruby
tkuchiki has joined #ruby
chriscarpenter12 has joined #ruby
CloCkWeRX has quit [Ping timeout: 256 seconds]
<chriscarpenter12> Is there a simple way to select the next value in a hash? I know I could do an each_with_index, but didn't know if there was just a next method or similar
nemo_ has quit [Remote host closed the connection]
<chriscarpenter12> next key => value in a hash
<jhass> most uses of hash that depend on its order are a smell
<jhass> what are you doing?
tkuchiki has quit [Remote host closed the connection]
<zwdr_> Huh, I've just googled, and it seems like the order of keys is preserved in > 1.9
<zwdr_> nice to know
<jhass> it's insertion order since 1.9, yes
zwdr_ is now known as zwdr
<jhass> I still consider actually relying on that a smell
<zwdr> yea
dmitch has joined #ruby
xet7 has quit [Quit: Leaving]
sl33k has joined #ruby
jgt has joined #ruby
nemo_ has joined #ruby
<jhass> chriscarpenter12: so, maybe we can find a way to do what you're actually trying to solve without that requirement?
e1senhorn has joined #ruby
sharkman has joined #ruby
tkuchiki has joined #ruby
skade has joined #ruby
<chriscarpenter12> I am building a large hash to pass to a PHP function to serialize and put in a database for wordpress. I have a hash already like this: {"1" => "20.00", "5" => "15.00", "20" => "10.00"} I need to iterate over it to then create three separate hashes for each key => value. Here is a gist: https://gist.github.com/chriscarpenter12/510f9c2f08c0dcc1c294
<jhass> how do you obtain the source hash?
idefine has joined #ruby
<jhass> why can't you build the needed structure there already?
<mehwork> shouldn't doing ar = [1,2,3,4,5,6].map { |i| if i.even? "#{i} is even" else next end } p ar not show nil's?
<chriscarpenter12> It is a query from a database joining multiple columns of prices and quantites
<jhass> mehwork: next is like return for blocks, you exit early from the block and provide its return value. not specifying a value defaults to nil
jgt has quit [Ping timeout: 268 seconds]
<jhass> compare next :foo
<mehwork> jhass is there another way of doing what i want then? Also it doesn't seem to be exiting, break does though
<jhass> chriscarpenter12: I don't quite follow where the value for "to" comes from in your example
crazydiamond has quit [Read error: Connection reset by peer]
<jhass> mehwork: next returns from the block, break returns from the method invoking the block, return returns from the method defining the block
<chriscarpenter12> jhass: from is the key and to is the next key -1
Respek has quit [Quit: gone to sleep. ZZZzzz…]
<jhass> ah
<jhass> why is it strings?
<jhass> also your result has 2 twice as the outer key, that's not possible
CloCkWeRX has joined #ruby
<chriscarpenter12> jhass: Sorry it should be 1,2,3. Copy and paste mistake
elaptics` has quit [Quit: Coyote finally caught me]
elaptics`away has joined #ruby
<chriscarpenter12> That's why I was asking if its possible to select the next key in a hash
<chriscarpenter12> to get the "to" value
<jhass> so you could do this fairly easily with .each_cons(2).with_index(1), but I'd still claim you should look into the method generating that input hash to return what you actually need instead
bonhoeffer_ has joined #ruby
<chriscarpenter12> and the last result has the "to" doesn't need a value
elaptics`away is now known as elaptics
<mehwork> jhass i still don't get it. Everything i'm reading says that next in a block should act like 'continue' and 'exit the block immediately, returning control to the iterator method, which begins a new iteration by invoking the block again'
bigmac_ has joined #ruby
<jhass> mehwork: it does
<mehwork> so i don't understand why in my example, i couldn't use 'else next' to skip it from returning nil
<jhass> mehwork: it also provides the return value of the block
<mehwork> oh hmm
<jhass> you don't skip a iteration of the loop of the method invoking the block
<jhass> you return from it
<jhass> keep in mind that the method doesn't even need to have a loop
pdoherty has joined #ruby
<mehwork> are there blocks that aren't loops?
<jhass> plenty
<jhass> >> {}.fetch(:none) { next :hey }
<ruboto> jhass # => :hey (https://eval.in/456004)
Lewix has joined #ruby
_blizzy_ has quit [Ping timeout: 250 seconds]
<adaedra> >> "hello".tap { |s| s.upcase! }
<ruboto> adaedra # => "HELLO" (https://eval.in/456005)
imperator has joined #ruby
<imperator> best way to define an alias on an instance?
<Lewix> imperator: alias on an instance?
<mehwork> jhass: so there's no way to do what i want to do?
jerry_tao has joined #ruby
<al2o3-cr> imperator: instance_eval ?
<imperator> Lewix, yep, need to dynamically define an alias
bauruine has quit [Quit: ZNC - http://znc.in]
<jhass> mehwork: you can't skip an iteration of the method invoking your block, no. You can call .compact afterwards or .select beforehand
favadi has joined #ruby
<shevy> yeah I guess .instance_eval
Azure has quit [Ping timeout: 250 seconds]
mwat has left #ruby [#ruby]
<mehwork> alright thanks
<Lewix> shevy: wouldn't it be for class methods
jonnie has joined #ruby
<shevy> ok so you are saying he should use .class_eval
<shevy> :D
<shevy> we need another eval to clear those other evals
<Lewix> imperator: what kind of instance are you talking about
treehug8_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> .power_eval
freerobby has joined #ruby
<al2o3-cr> >> class Foo; def boo; 42; end; end; f = Foo.new; f.instance_eval { alias :boohoo :boo }; f.boohoo
<ruboto> al2o3-cr # => 42 (https://eval.in/456018)
<jhass> shevy: would it propose trust votings to the interpreters leadership or would it measure the energy consumption of my ruby program?
`tim` has joined #ruby
<jhass> just so we know what kind of power we're talking about here
<mehwork> jhass: this worked ar = a.select { |i| i.even? }.map { |i| "#{i} is even" }
<jhass> mehwork: and I'd argue more readable too! ;)
<jhass> mehwork: you can also a.select(&:even?).map { ... }
mhoungbo has joined #ruby
<sl33k> hi guys. learning ruby
<shevy> jhass it can eval ALL THE THINGS!
<sl33k> in irb i type x = 10
<sl33k> followed by x.kind_of?
<sl33k> which throws an error
<sl33k> why?
dorei has joined #ruby
bauruine has joined #ruby
<jhass> sl33k: well, let's read the error message together, what is it exactly?
<adaedra> sl33k: kind_of? takes an argument
<sl33k> oh
<sl33k> so should be x.kind_of? Integer
* sl33k missed it cos books typography
<sl33k> jhass: thanks mate
<jonnie> sl33k: x.class returns the class
<sl33k> hi all* (my bad)
<jonnie> as you might imagine
<mehwork> jhass: is the select any faster than just compact'ing after the fact? ( i guess it depends on how large the array grows )
<jonnie> sl33k: kind_of? takes inheritance into account
e1senhorn has quit [Ping timeout: 244 seconds]
treehug8_ has joined #ruby
<sl33k> reading language is boring....cant wait to build something
<chriscarpenter12> jhass: Updated my gist to show how I'm getting my hash
mhoungbo_ has joined #ruby
<jhass> mehwork: mmh, depends a bit on how many elements you can reduce
ruurd has quit [Quit: ZZZzzz…]
<jhass> mehwork: if the select can weed out many elements, the array .map needs to allocate is smaller, which can outweigh the overhead of iterating it twice
dionysus69 has quit [Ping timeout: 250 seconds]
<jhass> mehwork: if there are few elements thrown out, compact's second iteration and checks being in all C could easily be faster
spider-mario has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 260 seconds]
chopin has joined #ruby
<jhass> mehwork: so it depends, pick a preferred style unless you can prove a bottleneck though
CloCkWeRX has left #ruby [#ruby]
<jhass> chriscarpenter12: I take it the query part is pseudocode?
e1senhorn has joined #ruby
<jhass> it would be the interesting part actually
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<chriscarpenter12> Yes just two columns of like 20
JDiPierro has quit [Remote host closed the connection]
workmad3 has joined #ruby
<chriscarpenter12> the quantity and price column is a string
chipotle has joined #ruby
nemo__ has joined #ruby
mhoungbo_ has quit [Quit: Quitte]
tenderlove has joined #ruby
idefine has quit [Remote host closed the connection]
<jhass> chriscarpenter12: also I'm curious, how exactly do you interop with PHP? serialize to JSON and parse on the PHP side?
nemo_ has quit [Ping timeout: 255 seconds]
umgrosscol has joined #ruby
The_Phoenix has joined #ruby
RobertBirnie has joined #ruby
krz has joined #ruby
<chriscarpenter12> jhass: This ruby I am writing is exporting products from an old website to a new woocommerce website. There are 25K products to export and manipulate. I am using this (https://github.com/jqr/php-serialize) to create the php serialized string. Which does work for me. I verified already that it can serialize my hash properly
bmurt has joined #ruby
lkba has joined #ruby
JDiPierro has joined #ruby
<jhass> chriscarpenter12: well, for starters your query should produce multiple rows with the two items, [[2, 20.0], [5, 15.0], [20, 10.0]]
twe4ked has quit [Read error: Connection reset by peer]
twe4ked has joined #ruby
civil_ has joined #ruby
<jhass> chriscarpenter12: would that thing serialize [{"from" => "2", ...}, {...}, {...}] to something compatible too?
Soda has joined #ruby
tenderlove has quit [Remote host closed the connection]
nemo_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
ych has joined #ruby
karapetyan has joined #ruby
ych is now known as Guest22639
skade has quit [Quit: Computer has gone to sleep.]
Xeago has joined #ruby
ruurd has joined #ruby
twe4ked has quit [Read error: Connection reset by peer]
<chriscarpenter12> jhass: Can I just show my whole script right now?
twe4ked has joined #ruby
<jhass> then you could just take the above alleged query result and rows.map.with_index {|row, i| next_row = rows[i+1]; {"from" => row[0], "to" => next_row && next_row[0], ...} }
<jhass> I guess
Xeago has quit [Remote host closed the connection]
jerry_tao has quit [Quit: jerry_tao]
naftilos76 has quit [Ping timeout: 268 seconds]
nemo__ has quit [Ping timeout: 244 seconds]
idefine has joined #ruby
tigarcia has joined #ruby
p0wn3d has joined #ruby
alcipir has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
karapetyan has quit [Ping timeout: 250 seconds]
<jhass> but it won't answer my second question
Cyther has joined #ruby
Renich has joined #ruby
cdg has joined #ruby
Renich has joined #ruby
synthroid has quit [Remote host closed the connection]
Renich has quit [Client Quit]
_blizzy_ has joined #ruby
Renich has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
atmosx has joined #ruby
Renich has quit [Client Quit]
Renich has joined #ruby
<atmosx> hello
Renich has quit [Client Quit]
Renich has joined #ruby
alcipir has quit [Ping timeout: 250 seconds]
The_Phoenix has joined #ruby
<chriscarpenter12> jhass: Seeing if it will serialize that. Here is the whole file as well https://gist.github.com/chriscarpenter12/510f9c2f08c0dcc1c294
chussenot has joined #ruby
nemo_ has quit [Remote host closed the connection]
synthroid has joined #ruby
Pumukel has quit [Ping timeout: 240 seconds]
benjito_ has joined #ruby
chipotle has quit [Quit: cheerio]
TomyWork has joined #ruby
kimegede has quit [Quit: Leaving...]
devoldmx has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
idefine has quit [Remote host closed the connection]
Igorshp has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
dotix has joined #ruby
aganov has quit [Remote host closed the connection]
<apeiros> too much alcohol and you do things like .sort_by(&:name).last instead of .max_by(&:name) :-|
<adaedra> tssk tssk tssk
tvw has quit [Remote host closed the connection]
benjito_ has quit [Ping timeout: 240 seconds]
_blizzy_ has joined #ruby
Feyn has quit [Quit: Leaving]
stannard has quit []
<apeiros> well, not my fault they give us alcohol at work!
stardiviner has quit [Ping timeout: 255 seconds]
skade has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
<jhass> chriscarpenter12: not sure I would be able to come up with something smarter without being able to play with the DB :/
_blizzy_ has quit [Max SendQ exceeded]
<adaedra> apeiros: offices in Switzerland often give alcohol to employees?
<chriscarpenter12> jhass: Its no problem. Appreciate the help though!!
<jhass> chriscarpenter12: but things like eval(open(uri).read) are quire horrible, can't PHP do JSON?
jas02 has quit [Quit: jas02]
<jhass> *quite
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<chriscarpenter12> I know it is, but this is a one time script. It just needs to work once
alcipir has joined #ruby
<jhass> anyway, you want to look at Array#map and Array#zip
<chriscarpenter12> The php code that generates the categories is terrible. I didn't write it. It is from the current website. I am just using it as is
<jhass> you don't want to turn the prize/quantity stuff into hash
yeticry has joined #ruby
ajb- is now known as ajb
<jhass> but with just quantity.map(&.to_i).zip(prizes.map(&.to_f))
<jhass> that'll give you what I suggested above as query result
_blizzy_ has joined #ruby
<chriscarpenter12> jhass: Thanks. I'll use this and tinker.
_blizzy_ has quit [Max SendQ exceeded]
<jhass> er, I wrote crystal, .map(&:to_i) / .map(&:to_f)
<al2o3-cr> heh
jatb has quit [Ping timeout: 244 seconds]
Alina-malina has quit [Read error: Connection reset by peer]
nemo_ has joined #ruby
<jhass> well and there are tons of nitpicks in there tbh
<chriscarpenter12> I'm sure there are. I'm no expert by any meas
<chriscarpenter12> means
Icey has quit [Read error: No route to host]
Icey has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
<jhass> I still think the GROUP_CONCAT is fugly, but I'm not familiar enough with MySQL to tell a sane alternative just from looking (in postgres I'd return a proper array)
chipotle has joined #ruby
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
<agent_white> Is unqlite-ruby unmaintined? Or... just hasn't needed updates for over 2 years? :D
Xeago has joined #ruby
<jhass> ask the maintainer?
<sl33k> why is a Ruby constant mutable?
<sl33k> why is it then a constant? :/
<apeiros> adaedra: only on some occasions
doublemalt_ has joined #ruby
<agent_white> jhass: Not worth the hassle. Just looking for a teenee nosql db for ruby.
SleepySensei has joined #ruby
tris has quit [Ping timeout: 244 seconds]
alcipir has quit [Ping timeout: 250 seconds]
<chriscarpenter12> jhass: I agree, but the database also wasn't setup properly in the first place
<sl33k> jhass: ^^
* apeiros now enjoying rewriting `git branch --contain COMMIT` with rugged :D
<sl33k> Constants shouldn't be mutable.
<zwdr> aren't symbols immutable?
<jhass> sl33k: so you can shoto yourself into the foot if you need to
jatb has joined #ruby
<apeiros> zwdr: yes, symbols are immutable
<jhass> zwdr: they are, but they are also values and not identifiers
<sl33k> jhass: duck typed; dynamic languages are bleh.
<jhass> like Constants
bmurt has joined #ruby
pusewicz has joined #ruby
<zwdr> tbh I never thought much about symbols and always assumed they were like symbols in Lisp
mistermocha has joined #ruby
FernandoBasso has quit [Quit: Leaving]
idefine has joined #ruby
<sl33k> was reading angularjs the other day, and a constant factory or so can be mutable too.
<jhass> sl33k: ruby will yell at you if you actually reassign a constant though
<zwdr> but angular is a mess either way
tris has joined #ruby
<apeiros> constant in ruby means "constantly referencing the same object"
chussenot has quit [Quit: chussenot]
<sl33k> jhass: it gives me a warning. What is the benefit of a constant in ruby?
<apeiros> the object's mutability is controlled by the object itself
Guest22639 has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> sl33k: its scoping rules
pdoherty has quit [Quit: Leaving]
<jhass> sl33k: also to carry intent
Igorshp has joined #ruby
DoubleMalt has quit [Ping timeout: 244 seconds]
<sl33k> jhass: okay. (i'll just tag along for now). its weird though
The_Phoenix has joined #ruby
<jhass> sl33k: pretty much everything in Ruby is not actually restrictive (that is can be bypassed), it's for signaling intent
imperator has quit [Quit: This computer has gone to sleep]
<jhass> *that is it
dionysus69 has joined #ruby
tenderlove has joined #ruby
tenderlove has quit [Changing host]
tenderlove has joined #ruby
<jhass> chriscarpenter12: well, if you get it working and want it rewritten in idiomatic ruby ping back then, even though I won't be able to do something about the general approaches
mistermocha has quit [Ping timeout: 260 seconds]
imperator has joined #ruby
favadi has joined #ruby
rippa has joined #ruby
<TomyWork> how do i pass a block from one method to another?
Renich has quit [Ping timeout: 250 seconds]
<TomyWork> def thismethod(&block); mymethod(&block); end # this didnt work
Motoservo has quit [Quit: Motoservo]
chussenot has joined #ruby
simi has quit [Ping timeout: 246 seconds]
<jhass> TomyWork: it should, got a testcase to prove?
<TomyWork> hmm, in itself it works...
stannard has joined #ruby
Renich has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
Igorshp has quit [Remote host closed the connection]
l_tonz has joined #ruby
sasdasd has joined #ruby
klaas_ is now known as klaas
relix_ has joined #ruby
ef has left #ruby [#ruby]
relix has quit [Ping timeout: 240 seconds]
jgt has joined #ruby
<imperator> Lewix, OpenStruct
Guest78890 has quit [Ping timeout: 250 seconds]
nemo_ has quit [Remote host closed the connection]
l_tonz has quit [Ping timeout: 244 seconds]
tigarcia has quit [Remote host closed the connection]
jonnie has quit [Ping timeout: 250 seconds]
htmldrum has quit [Ping timeout: 250 seconds]
chussenot has quit [Quit: chussenot]
dopamean_ has quit [Ping timeout: 272 seconds]
govt_official has joined #ruby
bricker has joined #ruby
<govt_official> good morning ruby-ers
tigarcia has joined #ruby
dnewkerk has joined #ruby
bonhoeffer_ has quit [Quit: bonhoeffer_]
l_tonz has joined #ruby
dnomyar has joined #ruby
dnomyar has quit [Client Quit]
aryaching has joined #ruby
<sl33k> ending method names with = is ewww
dnomyar has joined #ruby
<sl33k> cos i wouldn't know, and i would want to put a space between the = during code formattng. (weird convention)
jonnie has joined #ruby
kies^ has joined #ruby
pathrocle has joined #ruby
macowie has joined #ruby
<greedo> can anyone that uses faraday tell me why when trying to upload a file I keeping getting "no multipart boundary param in Content-Type"
Igorshp has joined #ruby
caliostro has quit [Ping timeout: 260 seconds]
linduxed has quit [Ping timeout: 260 seconds]
diegoaguilar has joined #ruby
<jhass> sl33k: well, the point is that you can on the call side
I has joined #ruby
nemo_ has joined #ruby
<jhass> >> class Foo; def foo=(bar); @foo = bar; end; end; foo = Foo.new; foo.foo = "hi"; foo
<ruboto> jhass # => #<Foo:0x41797e6c @foo="hi"> (https://eval.in/456074)
I is now known as Guest41758
<sl33k> jhass: foo.foo= OR foo.foo =
<sl33k> notice i put a space
<sl33k> i thought latter would fail
zotherstupidguy has quit [Read error: Connection reset by peer]
zotherstupidguy has joined #ruby
zotherstupidguy has quit [Client Quit]
<jhass> sl33k: on the call side it doesn't
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> all attr_writer does is generate a method with that name
pusewicz has quit [Ping timeout: 265 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
linduxed has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
Xeago has quit [Remote host closed the connection]
<sl33k> dont understand that. book says there is a better way. prolly meant attr_writer
aspiers has quit [Ping timeout: 246 seconds]
Renich has quit [Ping timeout: 260 seconds]
karapetyan has joined #ruby
l_tonz has quit [Remote host closed the connection]
JJM has joined #ruby
Renich has joined #ruby
devoldmx has joined #ruby
alcipir has joined #ruby
<shevy> no
caliostro has joined #ruby
rodfersou is now known as rodfersou|lunch
pusewicz has joined #ruby
niemcu has quit [Ping timeout: 240 seconds]
alcipir has quit [Ping timeout: 260 seconds]
decoponio has joined #ruby
<TomyWork> jhass nm i wasnt passing the block on recursively in one place
dfinninger has joined #ruby
<TomyWork> and i kinda expected it to tell me that i was missing arguments :)
foooobear has quit [Read error: Connection reset by peer]
<TomyWork> i guess that's not true for blocks
<jhass> nope, foo(&nil) is just fine :P
<TomyWork> or just foo
<jhass> the block argument sort of is always implicitly there, just nil if not given
idefine has quit [Remote host closed the connection]
<jhass> so foo(&nil) and just foo() is indeed the same call
<jhass> I think, not sure if block_given? is sensitive to that
<TomyWork> yeah, not using that anyway :)
dotix has quit [Quit: Leaving]
<TomyWork> another question: can i "next" out of an block enclosing the current block?
big|bad|wolf has joined #ruby
<TomyWork> hmm maybe i dont even need to...
herbst has quit [Remote host closed the connection]
dionysus69 has joined #ruby
<TomyWork> i have an array, i want to test each element and if i find one that matches, abort testing and leave the block where i started
big|bad|wolf has quit [Max SendQ exceeded]
<TomyWork> looks like i want "any?"
chipotle has quit [Quit: cheerio]
cooperlebrun has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
Xeago has joined #ruby
pusewicz has quit [Quit: Bye! http://www.layer22.com]
treehug8_ has quit [Read error: Connection reset by peer]
benlovell has quit [Ping timeout: 244 seconds]
mollusk_ has quit [Ping timeout: 240 seconds]
cooperlebrun is now known as clx
mengu has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
chipotle has joined #ruby
ef_ has quit [Quit: leaving]
treehug8_ has joined #ruby
eminencehc has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
aufi has quit [Quit: Konversation terminated!]
tkuchiki has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
zotherstupidguy has joined #ruby
tenderlove has joined #ruby
tenderlove has quit [Changing host]
tenderlove has joined #ruby
idefine has joined #ruby
alcipir has joined #ruby
shredding has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
slawrence00 has joined #ruby
Igorshp has quit [Remote host closed the connection]
devoldmx has quit [Remote host closed the connection]
rbennacer has joined #ruby
sepp2k has joined #ruby
Xeago has quit [Remote host closed the connection]
Hamled has joined #ruby
Igorshp has joined #ruby
clx_ has joined #ruby
Igorshp has quit [Remote host closed the connection]
<Hamled> Is this a good place to ask about WEBrick? I'm trying to figure out the best way to use WEBrick while handling the "bad request-line" exception that gets raised from parse().
clx has quit [Ping timeout: 260 seconds]
idefine has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
alcipir has quit [Ping timeout: 260 seconds]
dfockler has joined #ruby
tigarcia has quit [Remote host closed the connection]
codecop has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
benjito has joined #ruby
sasdasd has quit [Quit: Ex-Chat]
tigarcia has joined #ruby
devoldmx has joined #ruby
pdoherty has joined #ruby
tigarcia has quit [Remote host closed the connection]
bruno- has joined #ruby
bruno- is now known as Guest73350
zotherstupidguy has quit [Quit: WeeChat 1.2]
nemo_ has quit [Remote host closed the connection]
yeticry has joined #ruby
zotherstupidguy has joined #ruby
Guest73350 has quit [Read error: Connection reset by peer]
benjito has quit [Ping timeout: 240 seconds]
step1step2__ has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<haylon> Hey guys. I asked this in #bundler about 3hrs ago. Is bundler capable of updating older gems so that the gemspec looks for the exe folder and adds the new bin/console and bin/setup scripts?
Igorshp has joined #ruby
prestorium_ has joined #ruby
prestorium_ has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
inteq has joined #ruby
monsieurp has quit [Quit: Lost terminal]
monsieurp has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
tenderlove has quit []
mary5030 has joined #ruby
step1step2_ has quit [Ping timeout: 260 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haylon_ has joined #ruby
dionysus69 has quit [Quit: dionysus69]
<havenwood> Hamled: This is a good place. Do you need to use WEBrick instead of one of the Rack webserver gems?
dionysus69 has joined #ruby
cwong_on_irc has joined #ruby
<Hamled> Perhaps not. I hadn't considered alternatives. By rack webserver gems do you mean thin/puma?
cwong_on_irc has quit [Max SendQ exceeded]
<govt_official> thin is pretty great
<havenwood> haylon: Say more about what you mean by looking for the exe folder? What older gems are you thinking of?
cwong_on_irc has joined #ruby
tigarcia has joined #ruby
<Hamled> My goal is to create an interactive tutorial to HTTP by having students write basic HTTP requests and displaying very minimal responses (like no headers or anything)
<havenwood> haylon: Puma, Thin, Unicorn, Rainbows! and Passenger are all options.
<havenwood> haylon: Oops, misstell.
<havenwood> Hamled: ^
haylon has quit [Ping timeout: 250 seconds]
<haylon_> havenwood, if you use bundler 1.9 or 1.10, they changed where the binaries go and changed the gemspec mostly. I can do it all by hand and check to make sure the gemspecs are the same, but I was wonering if htere was a functionality like that already
<Hamled> I'll definitely look into whether those would give me more flexibility
pandaant has quit [Remote host closed the connection]
Lewix has quit [Read error: Connection reset by peer]
wldcordeiro has quit [Quit: WeeChat 1.3]
bruno-_ has joined #ruby
sl33k has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
chris2 has quit [Ping timeout: 268 seconds]
<havenwood> Hamled: Nice.
aryaching has quit [Read error: No route to host]
<havenwood> Hamled: If your students aren't yet all familiar with curl HTTPie might be a nice way to show them responses: https://github.com/jkbrzt/httpie#readme
<havenwood> Hamled: Or in Ruby the HTTP.rb gem's interface is nice and it's a good HTTP client: https://github.com/httprb/http#readme
purplexed^ has left #ruby [#ruby]
<havenwood> Hamled: Showing how to make a Rack app might be fun.
<Hamled> yeah we'll be getting to sinatra pretty quickly, dunno how much we'll go into the rack aspect of it just yet, though
Cyther has quit [Read error: Connection reset by peer]
<Hamled> thanks for the suggestions!
<havenwood> Hamled: Here're a variety of Hello World apps in various Rack adapters including Sinatra: https://github.com/luislavena/bench-micro/tree/master/apps
<havenwood> Hamled: Aha. Nice.
aryaching has joined #ruby
<havenwood> Hamled: Roda is great. I think it would make a good teaching framework.
bruno-_ has quit [Read error: Connection reset by peer]
<havenwood> Starts as just a routing tree and you add in features via plugins.
skade has quit [Ping timeout: 268 seconds]
<jonnie> Hamled: ive hacked on the webrick code before. it aint pretty
<jonnie> id definitely use something else
<havenwood> Puma makes for much nicer code to look at under the hood.
ruby-lang953 has joined #ruby
<jonnie> also webrick is dog slow. its due for removal from stdlib to be honest
karapety_ has joined #ruby
step1step2__ has quit [Quit: Leaving]
Hounddog has quit [Remote host closed the connection]
<havenwood> Hamled: Puma would also be a nice chance to later look at ThreadPool, etc.
jenrzzz has joined #ruby
step1step2 has joined #ruby
<Hamled> jonnie, speed definitely is of no concern in this particular case. But yeah... just looking at where the bad request exception gets raised when it can't parse the request line... it's hard to see how I could handle that differently w/o digging into the guts
Xeago has quit [Remote host closed the connection]
<jonnie> you think speed isnt a concern but it will drive you mad in development, water torture style
baroquebobcat has joined #ruby
[Butch] has joined #ruby
<haylon_> well, havenwood, I have to take off. We have some midnight code releases that I need to be present for.
<haylon_> later guys
<eam> I mean, if you're really looking at the basics of a single request speed really won't be an issue
haylon_ has quit [Quit: Leaving]
<shevy> they use ruby not C!
<jonnie> no i mean all those little delays when hes iterating his teaching platform in development
<Hamled> my top concern is absolute control over the request and response parsing... ideally w/o having to write something directly ontop of the socket lib
<eam> you could even just write your own simplistic server if you want to let students understand it (sans parallelism, for example)
<Hamled> jonnie, yah I gotcha
<jonnie> waiting 3 seconds for it to boot rather than 0.5, it adds up
<eam> ah, startup time
finisherr has joined #ruby
bruno-_ has joined #ruby
<eam> Hamled: you said "no headers" - if you're limiting things to http 0.9 it's kinda trivial to make an example server
eminencehc has quit [Remote host closed the connection]
karapetyan has quit [Ping timeout: 264 seconds]
s00pcan has quit [Remote host closed the connection]
<havenwood> Hamled: ^ Might be interesting to look at.
s00pcan has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
senayar has quit []
<Hamled> nks
<eam> looks about right :)
Xeago has joined #ruby
<Hamled> eam, well it would be no headers to begin with... we definitely need to introduce the concept of headers and probably talk about Server and Cookie
<Hamled> *thanks
bricker has joined #ruby
eminencehc has joined #ruby
[Butch] has quit [Client Quit]
<Hamled> okay gtg, thanks again for everyone's support and suggestions
TomyWork has quit [Remote host closed the connection]
ruby-lang953 has quit [Ping timeout: 246 seconds]
wldcordeiro has joined #ruby
Alina-malina has joined #ruby
l_tonz has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
<yorickpeterse> Anybody here on an IPv4 only network?
shredding has quit [Ping timeout: 246 seconds]
eminencehc has quit [Remote host closed the connection]
<yorickpeterse> If so, can you run this and tell me the output: require 'socket'; p Socket.getaddrinfo('localhost', nil)
Xeago has quit [Remote host closed the connection]
eminencehc has joined #ruby
dionysus69 has quit [Quit: dionysus69]
nettoweb has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Xeago has joined #ruby
Jardayn has joined #ruby
<yorickpeterse> errr
RobertBirnie has joined #ruby
<yorickpeterse> require 'socket'; p Socket.getaddrinfo('::1', nil)
tigarcia has quit [Remote host closed the connection]
<yorickpeterse> that
chipotle has quit [Quit: cheerio]
amclain has joined #ruby
skade has joined #ruby
jpfuentes2 has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
Igorshp has quit [Remote host closed the connection]
arup_r has joined #ruby
<imperator> yorickpeterse, how would i know if i am?
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<imperator> (I'm at home, btw, i've no idea)
relix has joined #ruby
dotix has joined #ruby
<yorickpeterse> ping6 google.com
lkba has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
idefine has joined #ruby
<imperator> ping6: UDP connect: No route to host
dain has quit [Remote host closed the connection]
<yorickpeterse> context: Ruby's Addrinfo#ip_address method returns different local IPs depending on if you used an empty string or nil as the input IP for Addrinfo#initialize
<yorickpeterse> with '' it seems to return '::1' for me, with nil it returns '0.0.0.0'
Asher has joined #ruby
lulzmachine has quit [Quit: Connection closed for inactivity]
chipotle has joined #ruby
bricker has quit [Quit: leaving]
pdoherty has quit [Ping timeout: 264 seconds]
mikecmpbll has quit [Ping timeout: 250 seconds]
skweek has quit [Read error: Connection reset by peer]
[Butch] has joined #ruby
idefine has quit [Ping timeout: 255 seconds]
chris2 has joined #ruby
Motoservo has joined #ruby
synthroid has quit [Remote host closed the connection]
dopamean_ has joined #ruby
skweek has joined #ruby
arthurix_ has joined #ruby
<imperator> curious
bricker has joined #ruby
<yorickpeterse> Here's another nice what the fuck:
joonty has quit [Quit: joonty]
<yorickpeterse> Addrinfo#ip_address is supposed to raise if the address family is not AF_INET/AF_INET6, but there's no way to test this in MRI
<yorickpeterse> Since the Ruby API has no means of creating an Addrinfo with, say, AF_UNSPEC as Addrinfo#initialize already prevents this
<yorickpeterse> So basically you can't test it from Ruby
bryanray has joined #ruby
<yorickpeterse> But Socket#recvfrom returns Addrinfo instances without IP addresses
<yorickpeterse> so you do _have_ to test it
<yorickpeterse> yay Ruby
naztharune has quit [Quit: BitchX-1.1-final -- just do it.]
bonhoeffer has joined #ruby
arthurix has quit [Ping timeout: 256 seconds]
Layke has joined #ruby
<Layke> Hey. Do these errors make sense? I'm not sure on the problem. https://gist.github.com/anonymous/0cfe558d960342e17716
Regulati_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
eminencehc has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 240 seconds]
<shevy> you lack the haml gem
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has joined #ruby
willardg has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
c0m0 has quit [Ping timeout: 265 seconds]
tomphp has quit [Ping timeout: 256 seconds]
tethra_ is now known as tethra
rdark has joined #ruby
rdark has joined #ruby
tethra has quit [Quit: leaving]
caliostro has quit [Read error: Connection reset by peer]
<imperator> yep, gem install haml
atmosx_laptop has joined #ruby
pdoherty has joined #ruby
<apeiros> Layke: I know errors can be intimidating. but it helps reading them anyway.
tkuchiki has quit [Ping timeout: 264 seconds]
<apeiros> in this error, the first line helps you: "`require': cannot load such file -- haml"
<Layke> apeiros, I'm somewaht confused though. My gem.lock file has haml
<Layke> And I ran a bundleinstall
<Layke> Should that not install the gem for me?
<apeiros> Layke: then you omitted bundle exec
<Layke> (I don't use ruby so I'm new)
<apeiros> try `bundle exec jekyll build`
Alayde has joined #ruby
SleepySensei has joined #ruby
chopin has quit [Remote host closed the connection]
<Layke> That worked
<Layke> Can you expalin it for me?
<Layke> What does "bundle exec" differ?
Xeago has quit [Remote host closed the connection]
<shevy> apeiros can explain the magic :)
s2013 has joined #ruby
<Layke> (Thank you by the way, this erro has meant I've been stuck deploying documentation for the last 5 months)
chopin has joined #ruby
<apeiros> depends a bit. basically it means "run this and use the gems (and only those gems) installed through bundle install"
<apeiros> and in your case it means that bundle install doesn't install those gems globally.
rbennacer has quit [Remote host closed the connection]
<apeiros> which is why they weren't available without bundle exec.
<Layke> Thank you very much ! :D
<apeiros> yw
bollullera has joined #ruby
rdark has quit [Ping timeout: 256 seconds]
towski_ has joined #ruby
rdark has joined #ruby
yosiat has joined #ruby
maletor has joined #ruby
arup_r has quit [Quit: Leaving]
maletor has quit [Client Quit]
arup_r has joined #ruby
chopin has quit [Ping timeout: 255 seconds]
Igorshp has joined #ruby
lxsameer has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
_djbkd has joined #ruby
symm- has joined #ruby
Layke has quit [Remote host closed the connection]
ibouvousaime has quit [Read error: Connection reset by peer]
alcipir has joined #ruby
jgt has quit [Read error: Connection reset by peer]
idefine has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
devoldmx has quit [Remote host closed the connection]
jgt has joined #ruby
last_staff has joined #ruby
c0m0 has joined #ruby
ramfjord has joined #ruby
AlexRussia has joined #ruby
alcipir has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby
blaxter has quit [Quit: foo]
idefine has quit [Ping timeout: 252 seconds]
caliostro has joined #ruby
totimkop1 is now known as totimkopf
<caliostro> i am looking for a ruby debugger
dopamean_ has quit [Ping timeout: 240 seconds]
rdark has quit [Quit: leaving]
rdark has joined #ruby
dotix has quit [Ping timeout: 252 seconds]
gagrio has quit [Ping timeout: 240 seconds]
rbennacer has joined #ruby
nertzy has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
bmurt has quit [Quit: Textual IRC Client: www.textualapp.com]
jonnie has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
Soda has quit [Remote host closed the connection]
jenrzzz has joined #ruby
rodfersou|lunch is now known as rodfersou
sdothum has joined #ruby
asad_ has joined #ruby
<asad_> For converting blocks to procs, and vice versa...is & a method or just syntax?
Ulfalizer has joined #ruby
j4cknewt has joined #ruby
Igorshp has quit [Remote host closed the connection]
trabulmonkee has joined #ruby
atmosx_laptop has quit [Quit: Lost in trance]
rewzn has quit [Quit: WeeChat 1.2]
leafybas_ has joined #ruby
arthurix_ has quit [Read error: Connection reset by peer]
arthurix has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
Xeago has joined #ruby
Peg-leg1 has quit [Quit: Leaving.]
<Ulfalizer> is 'gem install' supposed to automatically install dependencies even when you run it on a local *.gem file (by supplying its path)? doesn't seem to work for e.g. 'gem install nokogiri-1.6.6.2.gem'. it complains that mini_portile is missing.
<ytti> yes
<Ulfalizer> i'm a ruby noob trying to integrate some ruby modules into a dev. environment setup script
nofxx has joined #ruby
nofxx has joined #ruby
<Ulfalizer> ok, wonder what might be wrong then...
pathrocle has quit [Remote host closed the connection]
leafybasil has quit [Ping timeout: 260 seconds]
pathrocle has joined #ruby
ayonkhan has joined #ruby
leafybas_ has quit [Ping timeout: 250 seconds]
ruurd has joined #ruby
rewzn has joined #ruby
bmurt has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Veejay> caliostro: Have a look at Pry (http://pryrepl.org/)
niftylettuce has joined #ruby
<Veejay> It's nothing short of excellent
c0m0 has quit [Ping timeout: 250 seconds]
rewzn has quit [Client Quit]
l_tonz has quit [Ping timeout: 240 seconds]
ferr has joined #ruby
pathrocle has quit [Ping timeout: 264 seconds]
tomphp has joined #ruby
mrmadcat has joined #ruby
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
benjito has joined #ruby
benjito has quit [Client Quit]
<chriscarpenter12> jhass: Got my serialized value now. Just wanted to say thanks again. Definitely not the best code, but it is working for all my products. https://gist.github.com/chriscarpenter12/510f9c2f08c0dcc1c294#file-export-rb-L36
jessemcgilallen has joined #ruby
baroquebobcat has quit [Read error: Connection reset by peer]
anisha has joined #ruby
mrmadcat has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
Guest25014 is now known as IceDragon
Musashi007 has joined #ruby
<caliostro> what do u think about the default debugger .. ruby -r debug filename[, ...]
<caliostro> i am looking for a simple one to learn
tigarcia has joined #ruby
lubarch has joined #ruby
baroquebobcat has joined #ruby
lubarch has quit [Client Quit]
mikecmpbll has joined #ruby
lubarch has joined #ruby
bonemind has quit [Quit: WeeChat 1.0]
psy_ has quit [Read error: No route to host]
andikr has quit [Remote host closed the connection]
`tim` has joined #ruby
<Veejay> caliostro: Can't tell, never used it
based_pdev_ has joined #ruby
leafybasil has joined #ruby
danman has joined #ruby
<caliostro> ok
caliostro has quit [Quit: Exit-Chat]
Fredrich010 has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
leafybasil has quit [Remote host closed the connection]
`based_pdev` has quit [Ping timeout: 244 seconds]
momomomomo has quit [Quit: momomomomo]
duderonomy has quit [Ping timeout: 265 seconds]
naztharune has joined #ruby
idefine has joined #ruby
arthurix_ has joined #ruby
spankthemonkee has joined #ruby
maletor has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
RegulationD has joined #ruby
patdohere has joined #ruby
dfinninger has quit [Remote host closed the connection]
<jhass> chriscarpenter12: so PHP.serialize([{...}, {...}, ...]) didn't generate usable output?
arthurix has quit [Ping timeout: 250 seconds]
<hanmac> shevy did you miss me? did you hear the recent ruby news? ;P
rbowlby has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chopin has joined #ruby
gregf has joined #ruby
wolfram74 has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
<wolfram74> I'm trying to run a sinatra server locally with some name besides localhost, -o short almost works, but then i get a socket error
bluOxigen has joined #ruby
<wolfram74> running a mac environment, is there some extra set up I have to do?
rcvalle has joined #ruby
jgt has quit [Ping timeout: 264 seconds]
<shevy> hanmac what news? and since you have been working, you basically became inactive :(
<chriscarpenter12> jhass: No I still had to pass the hash, but by getting the values into an array like you suggested I was able to get the output that I needed
<mg^^> wolfram74: the hostname you give has to resolve to an IP address.
<jhass> chriscarpenter12: mmh, weird, so it needs to be 1-indexed or why?
<wolfram74> so, instead of -o short, maybe -o short:8081?
<hanmac> shevy i see the log that you noticed .? already ... hm and that loop and stop iteration returns the value of it probably too
<hanmac> and my system becomes wily ;P
<mg^^> wolfram74: for port you need to use -p
KensoDev has quit [Remote host closed the connection]
<mg^^> -o short -p 8081
sebstrax has joined #ruby
<wolfram74> yeah, -p works fine
<wolfram74> so, it's order dependent?
<wolfram74> nerp, still errors
ferr has quit [Quit: WeeChat 1.3]
<mg^^> wolfram74: it shouldn't be. But short has to be valid... e.g. resolvable to an IP address
ramfjord has quit [Ping timeout: 260 seconds]
<shevy> hanmac no real idea, so far I didn't see any news that excite me about ruby's future honestly
dotix has joined #ruby
<wolfram74> so maybe there's something about my internal routing that's not happy?
<hanmac> nil.?this.?is.?very.?funny ;P
<Diabolik> shevy what are your thoughts on ruby's future?
pulgolino has joined #ruby
chopin has quit [Remote host closed the connection]
NeverDie has joined #ruby
dravine has quit [Read error: Connection reset by peer]
<bricker> hanmac: where can I read about this news
dravine has joined #ruby
<mg^^> wolfram74: with your resolver. "short" needs to be resolvable in your hosts file (or whatever the Mac uses) or DNS (mDNS), to an IP address on your system
chopin has joined #ruby
<wolfram74> ok, I'll rumage around for that information, thanks for helping me rule it out as a ruby problem
<wolfram74> mg^^ thanks
<mg^^> no prob
ramfjord has joined #ruby
<shevy> Diabolik I dunno... it just isn't the same as it used to be anymore. matz seems to put most time into mruby, which is fair enough but projects always change with different core maintainers; and none of the major changes seem to give me anything I really need. It's mostly very small changes that lead to an improve, if at all
<bricker> hanmac: thanks
<shevy> hanmac ah yeah I remember. Well it does not affect me since I don't have to use it, so that is ok for me. Static strings forcing me to change the way how I used to write ruby though now that is annoying
NeverDie has quit [Client Quit]
<wolfram74> is it illadvised to have the same thing mapped to the same IP address?
<wolfram74> like, 127.0.0.1 is localhost AND short?
<Diabolik> shevy are you moving to using elixir more?
eminencehc has quit [Remote host closed the connection]
<eam> wolfram74: no problem having two names resolve to the same ip
<wolfram74> cools
<shevy> Diabolik nah, I don't see what elixir improves compared to ruby. it would have to be a language that is better than ruby
pdoherty has quit [Quit: Leaving]
<Diabolik> shevy it has a more solid direction imo
Mudak has joined #ruby
<shevy> it looks to be like one of those "show up then fade away" languages
mhoungbo has quit [Remote host closed the connection]
NeverDie has joined #ruby
alcipir has joined #ruby
<Diabolik> shevy what do you find yourself moving to instead?
<shevy> there are not so many choices :(
<eam> shevy likes php
<shevy> python would make sense but for some reason, python feels wrong
eminencehc has joined #ruby
<mg^^> Python always feels wrong to me, too
<hanmac> shevy: RPGMV is out, but it does swap ruby with javascript ... and now it does have to deal with the consequences ... :P
<mg^^> We inherited a big python codebase, I hate reading it after using Ruby for the last year
<mg^^> I hate reading Perl now, too, and that used to be my staple
<shevy> perl 6 has had some nice ideas, it should have been out 10 years ago
<mg^^> Perl 6 was also really slow last time I looked at it. Made Ruby look like a race car
<Mudak> vroom vroom ruby race car
<mg^^> And yeah, the lack of Perl 6 reaching a decent "release" status is really what pushed me to Ruby
<eam> really? I just want perl5
<shevy> perl5 feels like the 1980s
<imperator> elixir :)
<shevy> writing perl .cgi was fun though
<eam> shevy: and the 1980s was awesome (1990s fyi)
<shevy> yeah eam
<shevy> I wonder if younger people today also think that their time-of-youth was more awesome than the later years :)
<shevy> 1980 was the time of B-movies! Conan... Terminator ... nightmare on elm street...
Axy has quit [Read error: Connection reset by peer]
<shevy> and scripting languages
<eam> Terminator isn't a B movie
<shevy> well, perl at least
ibouvousaime has joined #ruby
<eam> 80s action movies are far, far better than the tripe that comes out these days
tvw has joined #ruby
<mg^^> Now don't get me wrong, I liked writing Perl, but I was craving more pure object orientation because it helps me write better, more maintainable stuff. Plus, since I'm mainly a tools & automation guy I needed to get on board with Puppet.
<mg^^> so it was a natural transition
<eam> compare die hard to any of its sequels
<Ulfalizer> i don't like most modern movies. i wonder if i'm getting old...
<shevy> eam yeah, you don't need to convince me, I know you are right!
<shevy> all those crappy cgi effects that came later
psy_ has joined #ruby
<Ulfalizer> it's like every director has ADD nowadays. story telling is boring, apparently.
<eam> or any eddie murphy movie!
* Ulfalizer waves his fist
pathrocle has joined #ruby
pathrocle has quit [Remote host closed the connection]
pathrocle has joined #ruby
<shevy> Ulfalizer yeah sorta. I like Christopher Nolan though
<ibouvousaime> Can someone help me with this error ? http://i.imgur.com/FmsOllV.png
<Ulfalizer> yeah, the batman movies were alright
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> ibouvousaime why do you use images
<eam> 80s: beverly hills cop, 48 hrs. 2000s: the nutty professor
<ibouvousaime> its easier too look at and also its contains results too shevy
<shevy> ibouvousaime can I copy paste the image
arthurix has joined #ruby
<ibouvousaime> shevy, http://pastie.org/10502414
<Ulfalizer> the nutty professor is from '96
<eam> Ulfalizer: nutty professor II the klumps is 2000 though
<Ulfalizer> also, next year it'll be 20 years since mario 64 was released. that gets me pretty bad.
<mg^^> Mudak: being a child of the 90s, Metallica is still one of my favorite bands
<eam> but yeah he hasn't done anything good since 95 or so
drocsid has quit [Ping timeout: 250 seconds]
eminencehc has quit [Remote host closed the connection]
<Ulfalizer> i never saw II
<Ulfalizer> probably lucky :P
<eam> there's a beverly hills cop 4 in production. I'm not sure how I feel about that
<shevy> ibouvousaime did you try to not have a ' ' before you invoke the ()
<Mudak> mg^^: thats the first time i heard them in a while, i dont miss them lol
cidic has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.3]
<Mudak> too dark/death metal for me
clx_ has quit [Ping timeout: 240 seconds]
<ibouvousaime> on what lines shevy ?
al2o3-cr has joined #ruby
<eam> metallica is dark?
<Mudak> for me ya
jenrzzz has joined #ruby
<ibouvousaime> fixed shevy
<shevy> ibouvousaime where you use Message.new
<cidic> I am trying to understand / convert some ruby code to php I have a rough idea of how the ruby syntax works but need some help understanding a code example http://rubyquiz.com/quiz56.html
<shevy> the ruby parser can be strict sometimes
<Ulfalizer> comparing metallica to death metal feels weird... :P
eminencehc has joined #ruby
rdark has quit [Ping timeout: 246 seconds]
<ibouvousaime> thank you shevy
<Ulfalizer> especially 90s metallica
<shevy> \o/
cescalante has quit [Quit: cescalante.com]
<shevy> Ulfalizer hehe... but I guess you are also not one of the youngest people anymore right? :)
<eam> 90s metallica is basically alt-rock
arthurix_ has quit [Ping timeout: 240 seconds]
<Mudak> yea thats how clueless i am about that type of music but metallica is as close to death metal as i wanna go, and its probably still far from it. their songs are never happy.
<Ulfalizer> shevy: don't want to come across as too old, but i've passed 30 at least :P
<shevy> yeah past 30 is already very old
<Ulfalizer> ...
<Ulfalizer> thanks :P
<cidic> anyone willing to take 5 min to help me?
<eam> how do you type with your arthritic, gnarled claws of hands?
tigarcia has quit [Remote host closed the connection]
<Ulfalizer> i'm fueled by my hatred of the youngins
<eam> *millennials*
* eam raises fist
<Ulfalizer> or "90s kids"
<shevy> Mudak yeah it wasn't my style of music either, although I liked re-samplings like concert-performances of "nothing else matters" in an ennio morricone style
<mg^^> Heh, I have also gained a fair bit of "get off my lawn" attitude over the last few years :)
diegoaguilar has quit [Remote host closed the connection]
<eam> let's be honest, king of 80s rock is David Lee Roth
<workmad3> shevy: how about if I'm not past 30, but not younger than 30 either?
<workmad3> shevy: does that make me old?
<Mudak> any music can be my style it depends on my mood but my mood very rarely appreciates metallica
<shevy> perl first appeared in 1987
beast has quit [Quit: Leaving]
<shevy> workmad3 you are also old
<workmad3> shevy: crap, I'm older than perl :(
<mg^^> lol
jenrzzz has quit [Ping timeout: 240 seconds]
<shevy> ruby appeared in 1995
<eam> workmad3: but not older than unix!
<mg^^> I'm almost as old as the Apple I
<shevy> that's actually a 8 years gap to perl
davedev24 has joined #ruby
<workmad3> eam: no, thankfully not older than unix :)
<shevy> was there any contender to perl back then?
<mg^^> I should probably think about how I'm going to move into management within the next few years
<eam> shevy: awk
al2o3-cr has quit [Ping timeout: 250 seconds]
<mg^^> shevy: rexx
ruurd has quit [Quit: ZZZzzz…]
<shevy> the dinosaur?
clx has joined #ruby
<mg^^> heh, one too many 'x' for that :)
cyle has joined #ruby
bryanray has joined #ruby
<eam> check out that awesome logo, it screams 80s: https://en.wikipedia.org/wiki/Rexx#/media/File:Rexx-img-lg.png
<mg^^> But a dinosaur in terms of computing history, yes
wolfram74 has quit []
janelleb has joined #ruby
<Ulfalizer> i'm tired of modern minimalism
<mg^^> Damn I forgot about that logo
<eam> and now I'm browsing /r/outrun
<mg^^> looks like it'd pop up on an atari cartridge :)
yeticry has quit [Ping timeout: 240 seconds]
<cidic> I am trying to understand / convert some ruby code to php / js I have a rough idea of how the ruby syntax works but need some help understanding a code example http://rubyquiz.com/quiz56.html
Soda has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
p0wn3d has quit [Ping timeout: 240 seconds]
bMalum_ has joined #ruby
yeticry has joined #ruby
p0wn3d has joined #ruby
ruurd has joined #ruby
karapety_ has quit [Remote host closed the connection]
baweaver has joined #ruby
<shevy> ruby code to php?
<shevy> ah, you write in php normally
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
<cidic> shevy: yea
<shevy> what is the specific example you want to put into php?
<shevy> class Chart?
Lucky__ has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
nfk|laptop has quit [Ping timeout: 250 seconds]
bMalum has quit [Ping timeout: 272 seconds]
bMalum_ is now known as bMalum
<cidic> shevy: Ideally all the code here but I would be happy if you could just explain this one RoundRobinChart
<shevy> ok RoundRobinChart is a subclass to chart
<cidic> I got that
<shevy> so all that is defined in class Chart, is available as well
<shevy> ok
<cidic> and def is a func
<shevy> yeah
<shevy> now you already are at about 50% at least!
<cidic> chart.clear is calling something?
<shevy> this is a method invocation
<cidic> but chart has no clear method?
baweaver has joined #ruby
<shevy> nono
<shevy> do you see the line with attr_reader :lanes, :cars, :rounds, :chart
<shevy> this is a shortcut
<shevy> what it does is define 4 methods
baweaver has quit [Remote host closed the connection]
<shevy> one method is: def chart
chriscarpenter12 has left #ruby [#ruby]
<shevy> do you see that cidic
<cidic> so chart.clear is like this.chart.clear() in C-ish?
<shevy> kinda
dopamean_ has joined #ruby
rcvalle has quit [Quit: rcvalle]
<shevy> chart() will return @chart
<shevy> and .clear() is invoked on @chart; chart is a String object
<cidic> I see no def chart
<shevy> cidic here you can see the method .clear() http://ruby-doc.org/core-2.2.3/String.html#method-i-clear
<shevy> yeah, this is the line above
<shevy> <shevy> do you see the line with attr_reader :lanes, :cars, :rounds, :chart
<shevy> <shevy> this is a shortcut
pocketprotector- has joined #ruby
<shevy> the attr* just allow you to be lazy
<cidic> ok so that makes it an empty string?
<shevy> if it helps you, it would mean: def chart; @chart; end
dfinninger has joined #ruby
<shevy> .clear will, yes
pocketprotector- has quit [Remote host closed the connection]
bb010g has joined #ruby
pocketprotector- has joined #ruby
<bricker> @chart is an Array
karapetyan has quit [Ping timeout: 256 seconds]
<shevy> ah yes
<cidic> ok so it is doing this.chart.resetToEmptyArray ?
nfk|laptop has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> yeah
<cidic> ok cool
<shevy> he empties the old array before filling it up again
<cidic> then it is doing a loop
<cidic> what is the |heat| part?
<jhass> chriscarpenter12: some ideas http://p.jhass.eu/c.rb
<jhass> aw, common, 3 minutes
<shevy> cidic the name of the variable inside the block; think of .times counting up, so heat will be 0, 1, 2, 3 etc..
Fredrich010 has joined #ruby
<cidic> ok so that is just the itterator and it isn’t used in this case
momomomomo has joined #ruby
<cidic> ?
<shevy> yeah, he does not use it in that block
drocsid has joined #ruby
`based_pdev` has joined #ruby
<cidic> then it is making a generic array “h” and doing this to it h << car which is what?
<shevy> he appends to the array he created
<shevy> h = [] <--- here he creates a new empty array
rcvalle has joined #ruby
chipotle has quit [Quit: cheerio]
<cidic> ok
RegulationD has joined #ruby
naftilos76 has joined #ruby
al2o3-cr has joined #ruby
based_pdev_ has quit [Ping timeout: 246 seconds]
<shevy> this is fairly straightforward code
dopamean_ has quit [Ping timeout: 260 seconds]
<pipework> cidic: Do you happen to have a set of documentation handy?
<cidic> shevy: fairly
<pipework> Array#<< is what you should look up.
baweaver has joined #ruby
patdohere has quit [Ping timeout: 250 seconds]
<cidic> if h.include? car checking if car is in the array h ?
<shevy> I mean syntax differences aside, that should also be very simple to do in php almost 1:1
<shevy> I am not quite sure why he uses io.puts "Chart:"
Xeago has joined #ruby
<cidic> shevy: I think just to print to terminal?
<shevy> well, why does he not just use puts?
<shevy> def print_chart(io = $stdout)
<shevy> no idea right now
<cidic> this is the last part I am not sure about: f2 = FP * h.inject(0) do |f, opp|
<bricker> shevy: gives him the option to output to a file if he wants
<cidic> and inside that loop
<shevy> hmm
chipotle has joined #ruby
<shevy> cidic .inject is a bit more complicated than the rest of the code
janelleb_ has joined #ruby
<cidic> can you explain what is being accomplished in this loop?
<shevy> first see that FP = 1.0 so it is a constant
dnomyar has quit [Ping timeout: 268 seconds]
<shevy> a simple one may be: (5..10).inject(1) { |product, n| product * n } #=> 151200
RedDwarf is now known as Zackio
<shevy> (1..3).inject(1) { |product, n| product * n } # => 6
Fredrich010 has quit [Remote host closed the connection]
dnomyar has joined #ruby
<shevy> (1..5).reduce(:+) # => 15
<shevy> this is 1+2+3+4+5
<shevy> 1..n is a range
janelleb has quit [Ping timeout: 252 seconds]
alcipir has quit [Ping timeout: 250 seconds]
<shevy> the code he uses there is actually significantly more complex than everything else
<bricker> cidic: inject is the same as reduce, which exists in every language (including PHP), so you might be familiar with it already
dnomyar has quit [Client Quit]
<cidic> bricker: I am familiar with reduce :)
<bricker> cidic: inject is an alias for reduce in ruby
j4cknewt has quit [Ping timeout: 246 seconds]
<cidic> so it is starting with f = 0 and reducing ah I get it now
bryanray has joined #ruby
<cidic> maybe it is an error but I am not sure what “Matchups” is here: op = Matchups.new
<cidic> it looks like it is a 2 value array?
dnomyar has joined #ruby
<shevy> great
<shevy> he is using a class but has not provided the code for it
<cidic> shevy: ya that is what I thought
<cidic> lol
<cidic> thanks for your help I think I can take it from here
<shevy> ah no it is there Bob Showalter/derby.rb
<shevy> from the downloads
<shevy> "two-dimensional table in which the order of the indices doesn't matter."
<asad_> Does Kernel::define_method define an instance method of Kernel?
j4cknewt has joined #ruby
fmcgeough has joined #ruby
<shevy> there is that Matchup class http://pastie.org/10502483
<cidic> ok cool
bMalum_ has joined #ruby
bMalum has quit [Ping timeout: 260 seconds]
bMalum_ is now known as bMalum
<bricker> asad_: no, it defines an instance method on the receiver. Kernels is a module that is included into most classes
<havenwood> asad_: It defines an instance method on the receiver. So it entirely depends on what the receiver is.
<bricker> Kernel*
ngscheurich has joined #ruby
<asad_> havenwood: I just found out that Kernel.define_method defines an instance method of Kernel, available to all objects.
hhatch has quit [Remote host closed the connection]
<asad_> havenwood: https://eval.in/456148
<bricker> asad_: if you actually want to make a method available to all objects, that's not the way to do it.
ponga has quit [Quit: Connection closed for inactivity]
<asad_> bricker: Yeah I know. You just define it in the global scope. This is for metaprogramming.
<bricker> OK
ngscheur1 has joined #ruby
ngscheurich has quit [Ping timeout: 268 seconds]
<cidic> what is this part doing ? Array.new(cars) { 0 }
cdg has quit [Remote host closed the connection]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
The_Phoenix has quit [Read error: Connection reset by peer]
cdg has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
<bricker> cidic: initializes an Array with size {cars}, and sets each element to 0
<momomomomo> literally answered above the fold
<momomomomo> >> Array.new(3, 0)
<ruboto> momomomomo # => [0, 0, 0] (https://eval.in/456151)
<cidic> I get that part I mean the { 0 } or { whatever } part
<momomomomo> >> Array.new(3) { 0 }
<ruboto> momomomomo # => [0, 0, 0] (https://eval.in/456152)
dmolina has quit [Quit: Leaving.]
shredding has joined #ruby
<cidic> default values?
<momomomomo> read the api link I pasted
<momomomomo> you'll see your answer in like 1 minute worth of reading the documentation
govt_official is now known as mflatt
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Channel6 has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
asad_ has quit [Quit: Page closed]
karapetyan has joined #ruby
idefine has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 244 seconds]
bMalum_ has joined #ruby
drocsid has quit [Quit: Lost terminal]
shredding has quit [Ping timeout: 264 seconds]
bMalum has quit [Ping timeout: 256 seconds]
bMalum_ is now known as bMalum
momomomomo_ has joined #ruby
<chopin> Anyone familiar with the newest version of the Google ruby api client have a second to take a look at an SO post?
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
baweaver has joined #ruby
ramfjord has quit [Ping timeout: 244 seconds]
chthon has quit [Ping timeout: 244 seconds]
idefine has joined #ruby
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
jenrzzz has joined #ruby
jonnie has joined #ruby
verdoc_ has quit [Quit: No Ping reply in 180 seconds.]
SCHAAP137 has joined #ruby
SCHAAP137 has joined #ruby
freerobby has quit [Quit: Leaving.]
towski_ has quit [Remote host closed the connection]
davedev24 has quit [Ping timeout: 246 seconds]
dopamean_ has joined #ruby
NeverDie has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has quit [Ping timeout: 252 seconds]
mflatt is now known as govt
sdwrage has quit [Quit: This computer has gone to sleep]
jenrzzz has quit [Ping timeout: 250 seconds]
polishdub has quit [Read error: Connection reset by peer]
karapetyan has joined #ruby
sdwrage has joined #ruby
sdwrage has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
bMalum has quit [Ping timeout: 250 seconds]
n008f4g_ has joined #ruby
freerobby has joined #ruby
arthurix_ has joined #ruby
baweaver has quit [Remote host closed the connection]
arthurix has quit [Ping timeout: 268 seconds]
SHyx0rmZ has quit [Remote host closed the connection]
trabulmonkee has quit [Quit: Connection closed for inactivity]
pocketprotector- has quit [Ping timeout: 246 seconds]
bMalum has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yosiat has joined #ruby
davedev24 has joined #ruby
fantazo has joined #ruby
sharkman has quit [Ping timeout: 240 seconds]
SHyx0rmZ has joined #ruby
skcin7 has joined #ruby
vigintas has quit [Ping timeout: 264 seconds]
darkf has quit [Quit: Leaving]
<cidic> bricker: can you tell me what this is doing? w.pop while w[-1][1] > w[0][1] ?
nb_bez___ has joined #ruby
<jhass> cidic: what do you have trouble with?
<jhass> Array#pop ? passing -1 to Array#[] ?
steffkes has quit [Ping timeout: 244 seconds]
<cidic> jhass: I don’t know ruby syntax trying to understand some code
<jhass> &ri Array#pop Array#[]
verdoc has joined #ruby
jackjackdripper has joined #ruby
s2013 has joined #ruby
rehat__ has joined #ruby
lfox has joined #ruby
Xeago has joined #ruby
<rehat__> I'm new to ruby, and my code looks like shit compared to other ruby code I have seen. Trying to automate something I do a lot in git with a xcode project. Is there a better way to catch issues with system or backtick calls? https://gist.github.com/rehat/320af8b8b7e7eb446448
birett has quit [Quit: Leaving]
<cidic> jhass: I’m trying to get what this is effectively accomplishing: w = w.sort_by { |k, v| v } w.pop while w[-1][1] > w[0][1] # sort by weight and get the lowest weight(s)
s2013 has quit [Client Quit]
momomomomo has quit [Ping timeout: 246 seconds]
yqt has joined #ruby
<jhass> cidic: I guess it's a weird way to do .min_by
<cidic> so it is getting the min value in the array?
jgt has joined #ruby
<cidic> jhass: the next line is car = w[rand(w.size)][0]
<cidic> so it shouldn’t be reducing it to one result should it?
patdohere has joined #ruby
Eiam_ has joined #ruby
<jhass> well, I guess so
<jhass> that's just a weird way for .sample.first btw
<ibouvousaime> do you know what causes this "nil is not a symbol" error in here http://pastie.org/10502572 ?
<cidic> jhass: so you don’t know what it is accomplishing?
patdohere has quit [Client Quit]
AndroidLoverInSF has joined #ruby
<jhass> cidic: I do and I gave you the links to understand by yourself
<jhass> ibouvousaime: I don't think that's your full code? also please properly indent your code
<shevy> cidic .pop on an array removes an element
Eiam has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby
<shevy> the rest is a while loop that continues as long as the condition it wants to evaluate is true
alcipir has joined #ruby
<ibouvousaime> jhass, its the full code http://i.imgur.com/FqwwQvq.png
devoldmx has joined #ruby
SleepySensei has joined #ruby
cidic has quit [Ping timeout: 250 seconds]
codecop has quit [Remote host closed the connection]
arthurix has joined #ruby
cidic has joined #ruby
<jhass> ibouvousaime: I'm afraid that's not enough context
<jhass> ibouvousaime: but I'd guess that thing is running Ruby < 2.0
<jhass> so 1.9 or 1.8 even
<jhass> ibouvousaime: back then def returned nil, not the method name as symbol
<jhass> so you pass nil to private
<jhass> which it doesn't like
kirun has joined #ruby
<ibouvousaime> I think too actualyl its from code academy
<ibouvousaime> on ruby 2.2 on my terminal it worked
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
arthurix_ has quit [Ping timeout: 272 seconds]
anisha has quit [Quit: Leaving]
<ibouvousaime> jhass, so how would you deal with that I have no idea and Im supposed to pass that codeacademy test
alcipir has quit [Ping timeout: 250 seconds]
<ibouvousaime> its using ruby 1.9
<ibouvousaime> on code academy I mean
<ibouvousaime> I normally use ruby 2.2
blackjid has quit [Max SendQ exceeded]
blue_deref has joined #ruby
blackjid has joined #ruby
govt has left #ruby [#ruby]
pocketprotector- has joined #ruby
banister has joined #ruby
<jhass> ibouvousaime: put private on its own line, all method definitions after it will then become private
dmitch has joined #ruby
lubarch has quit [Ping timeout: 240 seconds]
cyle has quit [Ping timeout: 252 seconds]
<cidic> jhass: did I miss your response when I got DCd?
<jhass> ?logs
<ruboto> You can find a log of this channel at http://irclog.whitequark.org/ruby/
yfeldblum has joined #ruby
<ibouvousaime> jhass, ohh it worked
blackjid has quit [Max SendQ exceeded]
<ibouvousaime> thank you jhass
tercenya has quit []
blackjid has joined #ruby
govt__ has joined #ruby
<govt__> evening, m8s
<jhass> govt__: I'm gonna ban you for ban evasion now
<adaedra> !ban govt__ !P Ban evasion
govt__ was kicked from #ruby by ChanServ [Banned: Ban evasion]
<eam> u w0t m8
<jhass> or adaedra will...
<jhass> thanks :D
craysiii has joined #ruby
idefine has quit [Remote host closed the connection]
bluOxigen has quit [Remote host closed the connection]
blackjid has quit [Max SendQ exceeded]
blackjid has joined #ruby
ngscheur1 has quit [Ping timeout: 240 seconds]
alcipir has joined #ruby
cndiv has joined #ruby
shinnya has joined #ruby
bruno-_ has quit [Ping timeout: 252 seconds]
<cndiv> Can someone recommend a gem that interacts with IRC networks, like freenode? I'm brand new, work in IT, and spending a TON of time helping people who haven't heard of IRC before do basic registration commands, protecting accounts, etc. Thought that'd be a good first CLI project.
<jhass> cndiv: cinch is the most popular atm
<cndiv> jhass: I'll look that up, thanks. BTW, what's the right way to find the popular ones? I typed in "irc" to rubygems.org and came up with a bunch of stuff.
<eam> "irc bot"
alcipir has quit [Ping timeout: 240 seconds]
niftylettuce has quit [Quit: Connection closed for inactivity]
<cndiv> wow cinch is popular. I guess sort by downloads...
<jhass> well, if you want to be throughout going to all results, looking at download count, looking up the GH repo and note stars
<jhass> if you want less work check awesome_ruby and ruby-toolbox.org
<adaedra> cinch is pretty neat too :)
<adaedra> (that's also important)
spuk has joined #ruby
<cndiv> jhass: those are new to me, bookmarking..
pocketprotector- has quit [Ping timeout: 240 seconds]
momomomomo has quit [Ping timeout: 252 seconds]
sharkman has joined #ruby
<cndiv> Great stuff, thanks for your help jhass and #ruby in general. :-)
willardg has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cndiv> PS ever tried explaining IRC to someone who never has heard of it? It takes *forever* to get people set up!
ramfjord has joined #ruby
<shevy> use written text in realtime to communicate with one another!
<shevy> idle to power
crime has joined #ruby
<adaedra> cndiv: may be client choice. I guess people will be more willing if they have a nice interface.
stamina has quit [Ping timeout: 255 seconds]
arooni has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
niemcu has joined #ruby
maletor has joined #ruby
<cndiv> the problem is more like "commands?" and "I don't have to register the nickname?" and "cloak?" and "protection?" and "Do I really have to do this at all? No? Nevermind."
schaary has quit [Read error: Connection reset by peer]
niemc2 has joined #ruby
<cndiv> And at my workplace, that's a recipe for "I'll just never speak to the developers, then."
niemc2 has quit [Client Quit]
niemcu has quit [Client Quit]
<adaedra> If you start by cloaks, you'll indeed get weird results :p
freerobby has quit [Quit: Leaving.]
<shevy> well cloak... I never needed that, I don't even know what it really is
niemcu has joined #ruby
<eam> cndiv: should be pretty easy if you use an easy to use client
<eam> just preconfigure it
<bricker> cndiv: Is Slack not an option for your team?
freerobby has joined #ruby
<cndiv> bricker: Oh no, that's a big political issue
<shevy> is java a "high level language" or a "low level language"?
<eam> avoid slack
<adaedra> shevy: off-topic level language :p
schaary has joined #ruby
niemcu has quit [Client Quit]
pathrocle has quit []
krz has quit [Quit: WeeChat 1.2]
syath has quit [Quit: WeeChat 1.2]
<cndiv> I'm actually writing this utility to just get people to use IRC instead, it's the *setup* that takes forever for brand new employees. 1 hour to hand you a computer, 2.5 to get you set up in optional IRC, and no one not required to use that cares on day one.
pdoherty has joined #ruby
naftilos76 has quit [Remote host closed the connection]
<eam> cndiv: why not just provision it automatically?
<bricker> cndiv: too bad, slack is great and very user-friendly
<cndiv> eam: Not sure exactly what you mean by automatically.
<bricker> I use IRC every day and I still have trouble with it sometimes
<eam> cndiv: well, when you do the computer provisioning just prepopulate it with their credentials
<eam> it's just as easy as slack -- irc is a protocol
<eam> you can make it as easy as press button to chat
bmurt has joined #ruby
<shevy> adaedra they talk about IRC here!!!
<eam> (slack otoh is a hot mess and you can't really simplify it)
<cndiv> This is my old employer, and we don't do provisioning. Tri-platform shop, basically anything allowed as work computer, and lots of shipping to far remote countries and never actually touch their computer.
<adaedra> shevy: the :p indicated a joke. Swoosh!
<eam> cndiv: ah, just ship them an app to do it then
<cndiv> that's the idea
<shevy> the french :p looks like a fly on the lips
Silox| has joined #ruby
diegoaguilar has joined #ruby
<cndiv> download this, it handles the freenode side, then put this information here in these fields in these top five clients.
<adaedra> cndiv: don't introduce them to advanced feature while they don't need them. We can totally IRC without cloaks.
<eam> most clients you can just configure the app by writing out a config file -- without any app interaction at all
<shevy> IRC without cloaks and pants
<adaedra> Also, for bots, lita looks also nice. Not IRC centered, but capable.
lfox has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> but seriously, what is cloaking for needed?
<adaedra> shevy: hide the host.
<cndiv> adaedra: another big political issue, allowing that. And could I, the one IT guy at the company, make them for employees of the company? No.
<shevy> hmm
<shevy> suspicious people... they want to hide something on IRC
<arup_r> not me
<shevy> hehe
<cndiv> or avoid the weirdos in the community
<shevy> yeah... the 1 million karma dude
<eam> speaking of hiding - slack used to use a public cdn for all the files/images linked on slack (re: no authentication)
<arup_r> I hide my surname
<shevy> arup_r I am at 402 karma now!
<eam> you could find lot of messed up internal company stuff by searching around on it
<arup_r> shevy: lol
<shevy> I found out that when you downvote others, your karma sinks :(
<crime> it blows my mind that people actually use slack
<shevy> slackware?
<adaedra> cndiv: if your goal is to avoid external interaction and just have company people interact, make your own IRC server
Puck6633 has joined #ruby
<arup_r> yes shevy if you want give downvotes give only questions not answers if you don't want to loose reps
<arup_r> haha
<cndiv> adaedra: another political issue! I could go on and on...
<eam> crime: it makes more sense when you consider it's just the millennial version of lotus notes or MS exchange
<adaedra> cndiv: rather do nothing, if you're like that.
<shevy> yeah... it's weird how that influences people like comparing discussions on reddit versus stackoverflow
baweaver has joined #ruby
clx has quit [Ping timeout: 268 seconds]
<cndiv> adaedra: I don't work there anymore. I just think people should be able to communicate, need a first project, and know the people doing my old job would appreciate it.
<adaedra> cndiv: aaaaah ok
* arup_r will join reddit to earm karmas there
<arup_r> earn*
cyle has joined #ruby
<adaedra> cndiv: if your problem is publicly shown IPs, some networks have a default masking of them, for what it's worth.
<adaedra> IPs or reverses
clx has joined #ruby
<cndiv> adaedra: Yeah, but can't rely on that for everyone across the globe at home, so on.
<adaedra> ?
<Puck6633> I haven't used Ruby in a long time and I was curious what can be done these days. I installed the latest version via RubyInstaller, then used gem install to install opengl, glu, and glut, then tried to run the examples included with the opengl gem but they all spit out this error: "in `require': cannot load such file -- glu/glu (LoadError)"
<cndiv> It's a tough situation using IRC to interact with your paid team and literally anyone worldwide who wants a voice in it.
<Puck6633> Are the examples broken, or am I? :P
<shevy> Puck6633 do you have mesa installed ftp://ftp.freedesktop.org/pub/mesa/11.0.3/mesa-11.0.3.tar.xz
<shevy> let's see the opengl gem, perhaps it was abandoned
<shevy> https://rubygems.org/gems/opengl well a release in 2015 so it's not totally abandoned
petricore has joined #ruby
<havenwood> Puck6633: Did the gem install successfully? Double check?
<havenwood> Puck6633: Did the native extension perhaps fail to build?
<Puck6633> Do you mean a mesa gem, or a library for the host OS? I can't tell which that archive is.
<cndiv> Thanks all, gotta run.
<shevy> http://www.rubydoc.info/gems/opengl/0.9.2 also says that you need two more gems Puck6633
<havenwood> Puck6633: Retry: gem install glu
<shevy> "Be sure to check out GLU and GLUT gems."
<shevy> did you also install these two?
cndiv has quit [Quit: Quit]
<Puck6633> havenwood: gem reported success on all accounts.
synthroid has quit [Remote host closed the connection]
prestorium has quit [Quit: Leaving]
baweaver has quit [Ping timeout: 264 seconds]
<shevy> ohhhh drbrain had fondness for opengl as well :) https://github.com/drbrain/opengl
<shevy> Puck6633, all these three gems have installed correctly? "gem list" has them?
mary5030 has quit [Remote host closed the connection]
<drbrain> I think my work is merged back in to whatever is base opengl now
<bricker> crime: yeah it's MIND-BLOWING that people would use a friendly, easy, affordable chat service.
<bricker> my mind is BLOWN
<Puck6633> gem list --local shows all three, yes.
<crime> closed source
<adaedra> that's not everyone concern.
petricore has quit [Client Quit]
fantazo has quit [Quit: Verlassend]
<Puck6633> I remember you used to need to require 'rubygems' or require it via a command line argument, but apparently that isn't the case any more.
fantazo has joined #ruby
<havenwood> Puck6633: that was 1.8 and prior
symm- has quit [Quit: Leaving...]
<havenwood> Puck6633: See it with?: gem which glu
<Puck6633> havenwood: Spits out C:/Dev/Ruby22/lib/ruby/gems/2.2.0/gems/glu-8.2.1-x86-mingw32/lib/glu.rb
<Puck6633> So apparently it can find it.
<Puck6633> Oh, wait.
<Puck6633> I was just poking around in the gem directories and under lib there are a bunch of .so files in directories that seem to be Ruby version numbers.
relix has joined #ruby
<Puck6633> I'm running this on Windows straight up, not even Cygwin. Those should be DLLs, right?
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgt has quit [Ping timeout: 256 seconds]
chopin has quit [Remote host closed the connection]
<crime> idk if you guys use the redis gem that much, but I'm connected to a redis server running locally, and I can issue commands and get the right results, but the .connected? method still returns false for some reason.
trabulmonkee has joined #ruby
rcvalle has quit [Quit: rcvalle]
VeryBewitching has joined #ruby
alcipir has joined #ruby
webopsx has joined #ruby
cdg has joined #ruby
stamina has joined #ruby
ldnunes has quit [Quit: Leaving]
civil_ has quit [Ping timeout: 240 seconds]
<crime> oh, it returns false until you issue a command first
<eam> probably lazy connects?
<crime> i guess, yeah I was fooling around with it in irb
benlovell has joined #ruby
alcipir has quit [Ping timeout: 246 seconds]
<Puck6633> It looks like the gems just weren't made with Windows in mind. I should probably use Cygwin if I want to use the opengl binding.
mwlang has joined #ruby
jonnie has quit [Ping timeout: 240 seconds]
arup_r has quit [Quit: Leaving]
treehug8_ has quit [Quit: Textual IRC Client: www.textualapp.com]
rcvalle has joined #ruby
jonnie has joined #ruby
rcvalle has quit [Client Quit]
pocketprotector- has joined #ruby
baweaver has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
idefine has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
leitz has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
pocketprotector- has quit [Client Quit]
cdg has joined #ruby
pocketprotector- has joined #ruby
tercenya has joined #ruby
lucyinthesky has joined #ruby
ruby-lang272 has joined #ruby
psy_ has quit [Ping timeout: 260 seconds]
dikaio has joined #ruby
jonnie has quit [Ping timeout: 240 seconds]
arthurix_ has joined #ruby
pontiki has joined #ruby
towski_ has joined #ruby
<ruby-lang272> Hello I want to iterate over a hash, and I would like to know your opinion about which is the best performance way to do it?
PlasmaStar has left #ruby [#ruby]
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
bruno- has joined #ruby
bruno- is now known as Guest13015
<adaedra> what do you do, on your hash?
<adaedra> Basic way of doing it is Hash#each, Hash#find if you want to find a key/pair, ...
arthurix has quit [Ping timeout: 260 seconds]
Cyther has joined #ruby
_djbkd has quit [Remote host closed the connection]
PlasmaStar has joined #ruby
blackoperat has joined #ruby
<ruby-lang272> aadedra thanks for your answer, I want to get the key and count the number of ocurrences of an answer on the values
fmcgeough has quit [Quit: fmcgeough]
blackoperat has quit [Max SendQ exceeded]
rodfersou has quit [Quit: leaving]
alcipir has joined #ruby
<ruby-lang272> right now I am using two each blocks to first iterate over the hash and the second one to count the ocurrences, but I was thinking that maybe there's a better way to do this
<adaedra> you want all elements that have a given value?
Guest13015 has quit [Ping timeout: 240 seconds]
chopin has joined #ruby
bkxd has joined #ruby
<imperator> Puck6633, dll == so
<imperator> it's just a different internal format with a different name
allcentury has quit [Ping timeout: 250 seconds]
<adaedra> ruby-lang272: show your actual code, maybe?
lxsameer has quit [Remote host closed the connection]
momomomomo has joined #ruby
NeverDie has joined #ruby
symm- has joined #ruby
sdwrage has joined #ruby
bruno-_ has joined #ruby
paulcsmith has joined #ruby
idefine has quit [Remote host closed the connection]
paulcsmith has quit [Remote host closed the connection]
paulcsmith has joined #ruby
nofxx has quit [Ping timeout: 260 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AndroidLoverInSF has quit [Ping timeout: 260 seconds]
alcipir has quit [Ping timeout: 252 seconds]
ruurd has quit [Quit: ZZZzzz…]
gagrio has joined #ruby
kies^ has quit [Ping timeout: 256 seconds]
ruurd has joined #ruby
ruurd has quit [Client Quit]
karapetyan has quit [Remote host closed the connection]
ruurd has joined #ruby
ibouvousaime has quit [Read error: Connection reset by peer]
<Sigma00> and also give an example hash if you can
_djbkd has joined #ruby
bruno-_ has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
<adaedra> If I understood your need, this can be done with a simple Hash#select, but I'm not sure
bruno-_ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
skade has joined #ruby
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> ok, that's a bit more complicated
bryanray has joined #ruby
<adaedra> what's your input like?
naztharune has quit [Quit: [BX] Time wasted: all of it]
tuxero has joined #ruby
<ruby-lang272> the result from the query is something like week1{{ name: 'Jon', question: 'answer1'} {name: 'Peter', question: 'answer3'}}
<Puck6633> imperator: I thought that Windows executables couldn't normally load so files though. Isn't that part of what Cygwin does?
<imperator> can load em fine
eminencehc has quit [Remote host closed the connection]
<imperator> when you build a c extension on windows for ruby, it creates an .so file, not a .dll
<adaedra> I think it's a .dll it's disguise, though
<imperator> i basically advise against using cygwin
<imperator> if you need unix, use unix
<Puck6633> Hm. Any idea why the interpreter can't find glu then?
<imperator> one sec, installing
<Sigma00> ruby-lang272: is that first line activerecord?
leitz has joined #ruby
<Puck6633> Thanks! I appreciate the help. :)
EllisTAA has joined #ruby
<Puck6633> I would love to play around with gl in Ruby. It's my favorite language by far but I don't usually get to do much with it because I feel limited to CLI.
dotix has quit [Quit: Leaving]
<imperator> Puck6633, in irb you're trying "glu/glu" ?
<Puck6633> I'm trying to run the examples in the directory of the same name that come with the opengl gem.
idefine has joined #ruby
NeverDie has quit [Read error: Connection reset by peer]
<Puck6633> I've mostly been trying nehe #2 because it's super simple
<imperator> oh, i think i see
<imperator> what version of ruby are you running?
NeverDie has joined #ruby
<Puck6633> ruby -v: ruby 2.2.3p173 (2015-08-18 revision 51636) [i386-mingw32]
<imperator> so, this gem bundles precompiled binaries for windows - for versions 1.9, 2.0, and 2.1
<imperator> but not 2.2
gagrio has quit [Quit: Leaving...]
<imperator> so, option one is to use an older version of ruby
<Puck6633> d'oh! I'm surprised I didn't notice that. Thanks!
<imperator> option two is to bug them to bundle a binary for 2.2
<imperator> option three is to build from source
<Puck6633> I'll try downloading a 2.1 build and install that instead.
<Puck6633> Actually, it might not be that hard to build from source.
<imperator> got headers?
<imperator> that could be painfule
kirun has quit [Quit: Client exiting]
<Puck6633> Last time I used RUby on WIndows it was built with visual studio, but this one claims to be a mingw executable which is my preferred compiler and already installed and set up.
<Puck6633> headers? for gl?
<imperator> yep
<Puck6633> Yes, I do.
atomical has quit [Read error: Connection reset by peer]
<imperator> alrighty give it a shot
jonnie has joined #ruby
<Puck6633> can gem do it for me, or should I just download the source from git?
atomical has joined #ruby
l_tonz has joined #ruby
idefine has quit [Ping timeout: 268 seconds]
skweek has joined #ruby
<shevy> come to linux :)
<imperator> try gem install glu --platform ruby
graft has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 265 seconds]
<imperator> I'm assuming you've got devkit installed and configured
absynthe_faery has joined #ruby
<lucyinthesky> absolutejam,
<lucyinthesky> sorry absynthe_faery contemplate peace here.
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ammar has quit [Remote host closed the connection]
JStoker has quit [Read error: Connection reset by peer]
EvilJStoker has quit [Remote host closed the connection]
<absynthe_faery> lucyinthesky: peace! in such a fool channel? oh wow
djcp has quit [Ping timeout: 246 seconds]
<absynthe_faery> lucyinthesky: full* lol
l_tonz has quit [Ping timeout: 264 seconds]
<lucyinthesky> Full this is that programming language and no trolls in such dumb level
<adaedra> it gets quiet at times.
<lucyinthesky> I seek protection here anyway let's behave
<shevy> hmmm why don't we have .ljust! ?
<lucyinthesky> we cant get banned absynthe_faery
<lucyinthesky> This place is safe
<lucyinthesky> I think.
<adaedra> lucyinthesky: where are your diamonds?
<lucyinthesky> oh wow
<lucyinthesky> no I wont click that
<ruby-lang272> any idea on how to perform this on a better way?
<eam> >> p=Random.new(?V.ord);Array.new(3){p.rand(13)}.map{|x|(x+?a.ord).chr}.join
<ruboto> eam # => "eam" (https://eval.in/456180)
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
Xeago has joined #ruby
<imperator> Puck6633, worked for me
<drbrain> eam: #rand takes a range
<imperator> be sure to uninstall the x86 version, too, just to be sure
<Puck6633> Great! I'm just trying to get it to find my existing mingw install.
<imperator> what do you mean?
jonnie has quit [Ping timeout: 255 seconds]
<adaedra> ruby-lang272: don't have one personally.
<drbrain> >> p = Random.new ?V.ord; Array.new(3) { p.rand(?a.ord..?m.ord).chr }.join
<ruboto> drbrain # => "eam" (https://eval.in/456181)
chopin has quit [Remote host closed the connection]
<drbrain> eam ^^
<Sigma00> ruby-lang272: is that first line activerecord?
<ruby-lang272> yes
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Icey has quit [Quit: Leaving]
bmurt has joined #ruby
<Sigma00> ruby-lang272: `week` is in the database?
Dakota-choad has joined #ruby
<Sigma00> it's a column?
cidic has quit [Quit: cidic]
arthurix has joined #ruby
dfinninger has quit [Remote host closed the connection]
<Puck6633> imperator: The devkit doesn't seem to include opengl, and it's asking me to update my PATH to include the build tools, but my path already includes the mingw bin directory so I'm not sure what it wants.
<ruby-lang272> Simga00 that's a method that order the results by week
<imperator> Puck6633, you need the devkit
<imperator> install it in C:\Devkit (or wherever, but this makes it easy to find)
<Puck6633> If I add the devkit to my path I can build glu, but glut is also missing a 2.2 binary and when I try to build it configure can't find OpenGL
swgillespie has joined #ruby
<eam> drbrain: oooooo much nicer thank you :)
kies^ has joined #ruby
<drbrain> the ?V.ord and friends give away the magic a bit
<Sigma00> ruby-lang272: ah, too bad. I was gonna suggest doing the counting entirely on the DB
<imperator> oh, i hadn't tried glut, but i was able to get glu and opengl to install
<eam> yeah, maybe those are better as integers
CBX has joined #ruby
bmurt has quit [Client Quit]
arthurix_ has quit [Ping timeout: 255 seconds]
<Sigma00> if you do group.count you get a nice hash with {grouping => count} values
<ruby-lang272> The issue is that I need to get the results ordered by week
<imperator> Puck6633, looks like it wants some very specific header files
v4n has joined #ruby
macowie has quit [Quit: Textual IRC Client: www.textualapp.com]
<Puck6633> imperator: Hm. I can try copying them from my mingw installation.
AndroidLoverInSF has joined #ruby
<imperator> could try that
<imperator> supposedly included with visual studio, too
PlasmaStar has left #ruby [#ruby]
ajb is now known as ajb-
baweaver has quit [Remote host closed the connection]
<imperator> so you could try appending "-- --with-glut-dir=" at the end
PlasmaStar has joined #ruby
frx_ has joined #ruby
<frx_> When a proc is converted to a block and sent to a method like foo(&some_proc), why does that not consume an argument as an arument is passed to the foo method
ajb- is now known as ajb
rwilcox has quit [Ping timeout: 252 seconds]
JStoker has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lucyinthesky has left #ruby ["Leaving"]
EvilJStoker has joined #ruby
PlasmaStar has quit [Quit: ZNC - http://znc.in]
absynthe_faery has left #ruby ["Leaving so soon, didn't have a chance to bloom."]
<adaedra> it's a special argument
PlasmaStar has joined #ruby
<Sigma00> ruby-lang272: you could always do .group("RBDMS-specific date trimming command here") to group by week. For example in postgres: .group("date_trunc('week', created_at)")
<havenwood> >> [*97..109].sample(3, random: Random.new(903)).map(&:chr).join
<ruboto> havenwood # => "eam" (https://eval.in/456182)
<frx_> adaedra: But it is an argument tho, right?
ruurd has quit [Quit: ZZZzzz…]
<eam> havenwood: even better
<adaedra> frx_: it has a special place, always available, even if you don't declare it in the receiver.
<ruby-lang272> that's true
<adaedra> >> def foo; yield; end; foo { "hello" }
<ruboto> adaedra # => "hello" (https://eval.in/456183)
mloy has joined #ruby
<adaedra> see, no argument, but still takes the block
<al2o3-cr> >> [ proc { |n, &b| }.arity, proc { |n, b| }.arity ]
<ruboto> al2o3-cr # => [1, 2] (https://eval.in/456184)
<Puck6633> imperator: It seems to ignore the extra option, and it still can't find the header after copying it from my regular mingw include directory to the devkit include directory.
<adaedra> it's not in the arguments count
<imperator> Puck6633, looks like it's explicitly checking for it under "GL" or "GLUT"
<imperator> so you may need to create a subdirectory
<imperator> something tells me the extconf.rb file could use a little love for windows
<frx_> adaedra: So the proc is converted to a block but it is passed in as a regular argument when the method is called?
<adaedra> no, not as a regular argument, as a block.
Coldblackice has joined #ruby
crdpink has joined #ruby
<Puck6633> imperator: My mingw installation has a GL directory under include with gl, glu and freeglut, so I copied that to the devkit's mingw/include directory, and then copied the opengl32 and glut libraries to devkit/mingw/lib
Xeago has quit [Remote host closed the connection]
idefine has joined #ruby
kies^ has quit [Ping timeout: 260 seconds]
<frx_> adaedra: Okay...
frx_ has quit [Quit: Page closed]
<Puck6633> So now I have glut.h in C:\Dev\RubyDev\mingw\include\GL\ but it still can't find it.
<adaedra> Ah, frx_ leaved
<Puck6633> Maybe I'll have a look at the makefile to see what it's doing.
<imperator> yeah, it's not liking something, not sure what
<imperator> i think you just need --with-glut-include
<imperator> seems to find the lib alright
nfk|laptop has quit [Quit: yawn]
v4n has quit [Quit: WeeChat 1.3]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<imperator> oh, hell, he never does dir_config
j4cknewt has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
CCBX has joined #ruby
idefine has quit [Ping timeout: 256 seconds]
tobyx has quit [Disconnected by services]
yfeldblum has joined #ruby
doublemalt_ has quit [Remote host closed the connection]
RudestBuddhist has joined #ruby
EvilJStoker has quit [Ping timeout: 268 seconds]
CCBX has quit [Client Quit]
tobyx_ has joined #ruby
pontiki has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
CCBX has joined #ruby
CBX has quit [Ping timeout: 265 seconds]
EvilJStoker has joined #ruby
JJM has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ibouvousaime has joined #ruby
<Puck6633> imperator: Apparently for me at least it's only checking the include directories in the ruby install directory. Copying the GL directory to there fixed that issue. Now it just isn't linking glut correctly. Should be pretty easy to resolve.
diegoaguilar has quit [Remote host closed the connection]
<imperator> I have gl.h and glu.h but no glut.h
<imperator> or is one of those the same thing?
<adaedra> they're different libs iirc
kadoppe has quit [Ping timeout: 244 seconds]
<Puck6633> they're all different. MingW doesn't normally come with glu or glut.
johnny56 has quit [Remote host closed the connection]
<Puck6633> I use freeglut, which is easy to compile with MingW.
shadeslayer_ is now known as shadeslayer
<imperator> ah
<imperator> actually, there -is- a dir_config for freeglut
jordanloky has joined #ruby
<ibouvousaime> how can I go from [Argument, Goes, Here] to "Argument Goes Here" ?
j4cknewt has joined #ruby
<RudestBuddhist> Hey Everybody, I have a question about code re-use, modules, and scope. I’m trying to re-use some code through a module and call it with another file but I’m unsure how to keep my ‘session’ variable in scope. I believe I can use @variable to do it but I’m not sure if this is the correct way. Can someone point me in the right direction of a doc? https://gist.github.com/anonymous/acdc61942de7414edd57
<ibouvousaime> I dont know how to put those spaces :/
<imperator> ibouvousaime, Array#join
diegoaguilar has joined #ruby
<imperator> adaedra, ah, yep, i was looking in the wrong place
<ibouvousaime> thanks imperator
RudestBuddhist has quit [Quit: RudestBuddhist]
kadoppe has joined #ruby
chopin has joined #ruby
wprice has quit [Quit: wprice]
nofxx has quit [Ping timeout: 264 seconds]
Rudest has joined #ruby
cdg_ has joined #ruby
Rudest is now known as RudestBuddhist
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
cdg_ has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
cdg_ has joined #ruby
jordanloky has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
dnomyar has quit [Quit: leaving]
bb010g has quit [Quit: Connection closed for inactivity]
Musashi007 has joined #ruby
mollusk_ has joined #ruby
cdg has quit [Ping timeout: 244 seconds]
kies^ has joined #ruby
<RudestBuddhist> Cheers, figured it out. Thanks everybody :)
RudestBuddhist has quit [Quit: RudestBuddhist]
zipace has quit [Ping timeout: 246 seconds]
Mudak has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
tomchapin has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
JDiPierro has quit [Remote host closed the connection]
<ibouvousaime> what do you think is the programm doing, just wondering if I did things well
<ibouvousaime> vov=[a,e,i,u,y]
<ibouvousaime> vovc||=0
<ibouvousaime> str=str.each do |x| vov.each do |y| if x=vov[y] then vovc+=1
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Azure has joined #ruby
diegoviola has joined #ruby
<ibouvousaime> end end
workmad3 has joined #ruby
jenrzzz has joined #ruby
Coldblackice has quit [Ping timeout: 240 seconds]
failshell has joined #ruby
rbennacer has quit [Ping timeout: 272 seconds]
<jhass> ibouvousaime: is its purpose to throw a syntax error?
cdg has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Puck6633> Wow, getting it to actually find libglut.a caused even more errors than when it couldn't find it.
baweaver has joined #ruby
<jhass> ibouvousaime: str.count("aeiuy") ?
chouhoul_ has quit [Ping timeout: 250 seconds]
Ulfalizer has quit [Quit: leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
<ibouvousaime> ohh sorry
<ibouvousaime> fixed that
<ibouvousaime> http://pastie.org/10502841 jhass
umgrosscol has quit [Ping timeout: 240 seconds]
kies^ has quit [Ping timeout: 260 seconds]
kobain has joined #ruby
<adaedra> you don't have to compact everything, spaces and line returns are your friends.
<Puck6633> imperator: http://prntscr.com/8ulifg :D
cdg_ has quit [Ping timeout: 255 seconds]
<Sigma00> why is 'y' there but not 'o'
flyinprogrammer has joined #ruby
<flyinprogrammer> anyone here use cucumber/aruba ?
e1senhorn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> ibouvousaime: def vowel_count(str); str.count("aeiouy"); end
sdwrage has quit [Quit: This computer has gone to sleep]
<imperator> Puck6633, woo!
<ibouvousaime> actually id like to make it return the number of vowels it find in str xD
<Puck6633> Thank you so much for all your help!
<imperator> in the meantime, might want to ping glut about including a 2.2 binary
<Puck6633> Yeah, good idea.
<Puck6633> That was a pain
<imperator> welcome to windows
<jhass> ibouvousaime: is vowel_count("foo") 1 or 2?
<Puck6633> haha, tell me about it.
<ruboto> flyinprogrammer, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/73d12c603433bef2a9d5
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Puck6633> If I wasn't such a hardcore gamer I would use *nix exclusively.
bryanray has joined #ruby
<Puck6633> It's such a pleasure to use at work, but I eventually gave up on using it at home.
idefine has joined #ruby
<adaedra> Puck6633: Dual boot, VMs, ...
<ibouvousaime> jhass, it should recieve a string and count the vowels of that string I dont understand your question
<ibouvousaime> sorry
havenn has joined #ruby
arthurnn_ has quit [Remote host closed the connection]
<jhass> ibouvousaime: when doing vowel_count("foo"), do you expect 1 or 2 back?
SleepySensei has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
danman has quit [Quit: danman]
havenn has quit [Client Quit]
fantazo has quit [Ping timeout: 260 seconds]
<ibouvousaime> 2 back jhass
<ibouvousaime> ohh damn
Voker57 has quit [Read error: Connection reset by peer]
<jhass> >> def vowel_count(str); str.count("aeiouy"); end; vowel_count("foo")
<ruboto> jhass # => 2 (https://eval.in/456189)
havenn has joined #ruby
stamina has quit [Ping timeout: 272 seconds]
<Puck6633> adaedra: I technicall have dual boot, but I spend probably 70% of my time on this PC playing things like StarCraft 2 and The Witcher 3 so I don't ever actually use the other install. I could run Linux in a VM, but really what am I going to do with it?
<adaedra> Puck6633: things that are easier under Linux than under Windows.
<Puck6633> And I don't think the performance would be good enough using a VM from the linux side.
<adaedra> VMs are rather good today.
<Puck6633> You mean like compiling a ruby gem? XD
havenn has quit [Client Quit]
<adaedra> I compiled ruby on a vm without problems.
<Puck6633> What would you recommend in terms of virtual machines?
<imperator> i use vmware fusion
<shevy> come to linux!
<imperator> dual boot mac
<Puck6633> haha
duderonomy has joined #ruby
<imperator> i run the vm's on the osx side though
<adaedra> Puck6633: Virtual box, vmware
<shevy> Puck6633 actually I understand the gamer's view, I sorta stopped playing games when I transitioned into linux :\
<Puck6633> I always feel like Jobs turns over in his grave when somebody installs something other than Mac OS on a Mac.
<adaedra> Then he got another turn from me.
<shevy> unless you pay an iFee
<shevy> adaedra stop turning the zombies!
ruurd has joined #ruby
<Puck6633> shevy: Yeah, that's something I could never do. I'm 100% gamer. Game developer would be my dream job.
<imperator> so become a game developer ;)
<Puck6633> I'll check out vmware fusion and virtualbox again. Thanks guys. :)
<shevy> I liked the older games more, the new wave of games is graphics graphics graphics
<adaedra> Puck6633: Personally, I'm under OS X most of the time, but still have a Windows I boot for when I want to play.
idefine has quit [Remote host closed the connection]
<Puck6633> imperator: Ha, I wish it were so easy. It's a tough industry to break into.
bruno-_ has quit [Ping timeout: 255 seconds]
<imperator> make your own games
<Puck6633> You have to be really talented or know the right people.
<imperator> i have some board games you could convert for me ;)
RegulationD has quit [Remote host closed the connection]
<imperator> 2D mind you, but still
<Puck6633> That's where my weekends go! :)
atomical has quit [Ping timeout: 255 seconds]
<Puck6633> I've been a wannabe indie developer for years, it's just hard to pull together everything that comprises a game by yourself. I particularly fall short in the art category.
AndroidLoverInSF has quit [Quit: Leaving]
<imperator> that's what artists are for
<imperator> find someone in college who works cheap/free :)
<imperator> anyhoo, gotta run
<Puck6633> haha
<imperator> have a good night all
imperator has quit [Quit: Leaving]
<adaedra> you can't expect something developped entirely by yourself to match real productions.
failshell has quit []
ruby-lang272 has quit [Ping timeout: 246 seconds]
EmeraldExplorer has joined #ruby
<ibouvousaime> can someone tell me the stupid mistake Ive done here the code runs but its not doing what it supposed to do (count the number of vovels of str)?
<Puck6633> Oh, I don't. I mean when I show people close to me what I've made they ask "What's that supposed to be?" XD
bruno- has joined #ruby
<Puck6633> That kind of bad art.
bruno- is now known as Guest80874
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fastAndSlow has joined #ruby
<adaedra> ibouvousaime: each will give the element, not the index. You don't need to vovel[y].
<adaedra> also, the else part is useless.
diegoaguilar has quit [Remote host closed the connection]
<adaedra> and stop trying to put everything into only one line.
<ibouvousaime> ive put the else part because I was too desperate
<al2o3-cr> ibouvousaime: Just use String#count 'Happy Days' :)
duderonomy has quit [Ping timeout: 265 seconds]
<Puck6633> Might also be easier to just write str.each { |x| if ['a','e','i','o','u','y'].include?(x) vovc++ end }
<adaedra> >> %w[a e i o u y] # Puck6633
<ruboto> adaedra # => ["a", "e", "i", "o", "u", "y"] (https://eval.in/456190)
fastAndSlow has left #ruby [#ruby]
Mudak has joined #ruby
<al2o3-cr> no ++
stannard has quit [Remote host closed the connection]
eminencehc has joined #ruby
<adaedra> ibouvousaime: also, jhass proposition was not good for you?
<Puck6633> al2o3-cr has the right solution anyway. I didn't know that existed.
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
<al2o3-cr> jhass as told him twice
arthurix_ has joined #ruby
<Puck6633> Oh. Well then... Yeah.
karapetyan has quit []
eminencehc has quit [Remote host closed the connection]
<al2o3-cr> >> "this is a useless string".scan(/[aeiou]/).size # another way
<ruboto> al2o3-cr # => 7 (https://eval.in/456191)
<ibouvousaime> ohh thanks everyone damn I really need more study xDD
htmldrum has joined #ruby
bMalum has quit [Quit: bMalum]
bMalum has joined #ruby
bMalum has quit [Client Quit]
karapetyan has joined #ruby
riotjon__ has joined #ruby
crdpink has quit [Ping timeout: 240 seconds]
crdpink has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
arthurix has quit [Ping timeout: 250 seconds]
riotjones has quit [Ping timeout: 246 seconds]
sdothum has joined #ruby
danman has joined #ruby
Silox| has quit [Quit: Connection closed for inactivity]
danman has quit [Client Quit]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
patdohere has joined #ruby
arthurix has joined #ruby
CCBX has quit [Quit: Leaving]
<shevy> ibouvousaime remember to find a consistent style in the code you write, it will make it easier to spot errors
arthurix_ has quit [Read error: No route to host]
arthuri__ has joined #ruby
tomchapin has quit [Ping timeout: 240 seconds]
EllisTAA has quit [Quit: EllisTAA]
<shevy> http://pastie.org/10502867 for instance, the ';' is not needed. The last '}' should rather be on a new line, if you also used indent in the block
tomchapin has joined #ruby
omer has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
stannard has joined #ruby
leafybasil has joined #ruby
arthurix has quit [Ping timeout: 256 seconds]
atomical has joined #ruby
minimalism has joined #ruby
omer has quit [Client Quit]
Nahra has joined #ruby
pepperbreath has quit [Read error: Connection reset by peer]
stannard has quit [Ping timeout: 256 seconds]
leafybasil has quit [Read error: Connection reset by peer]
bubbys has quit [Ping timeout: 260 seconds]
konopka has quit [Ping timeout: 268 seconds]
\13k has quit [Ping timeout: 268 seconds]
leafybasil has joined #ruby
pepperbreath has joined #ruby
alexblom has quit [Ping timeout: 268 seconds]
Guest99329 has quit [Ping timeout: 268 seconds]
l_tonz has joined #ruby
cscheib_ has quit [Ping timeout: 264 seconds]
gnarf has quit [Ping timeout: 268 seconds]
kitallisii has quit [Ping timeout: 268 seconds]
cscheib has joined #ruby
konopka has joined #ruby
\13k has joined #ruby
xxx has joined #ruby
kitallis has joined #ruby
xxx is now known as Guest22572
alexblom has joined #ruby
l_tonz has quit [Remote host closed the connection]
gnarf has joined #ruby
inteq has quit [Remote host closed the connection]
bMalum has joined #ruby
devbug has joined #ruby
firstdayonthejob has quit [Ping timeout: 265 seconds]
arthurix has joined #ruby
eminencehc has joined #ruby
arthuri__ has quit [Read error: No route to host]
<ibouvousaime> shevy, ohh yeah I will work on that
Jardayn has quit [Read error: Connection reset by peer]
j4cknewt has quit [Remote host closed the connection]
arthurix has quit [Ping timeout: 244 seconds]
l_tonz has joined #ruby
freerobby has quit [Quit: Leaving.]
sankaber has joined #ruby
htmldrum has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mag42c has quit [Quit: mag42c]
bubbys has joined #ruby
l_tonz has quit [Ping timeout: 250 seconds]
dopamean_ has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 272 seconds]
solocshaw has joined #ruby
trosborn has joined #ruby
jenrzzz has joined #ruby
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jessemcgilallen has joined #ruby
weemsledeux has joined #ruby
Sigma00 has quit [Quit: ZNC - http://znc.in]
Sigma00 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
Guest41758 has quit [Quit: This computer has gone to sleep]
<ibouvousaime> have you tried learning more than one programming language at the same time ? how was it ?
<shevy> dunno, you need a big brain, more efforts and be more dedicated than learning just one
<shevy> like C + Ruby at the same time
<havenwood> ibouvousaime: I tried learning Spanish and Japanese at the same time and it went poorly.
<adaedra> havenwood: some school sections here teach english and german at the same times, seems to be possible.
patdohere has joined #ruby
pocketprotector- has quit [Ping timeout: 260 seconds]
<shevy> how about german + french at the same time
diegoaguilar has joined #ruby
<adaedra> shevy: if you're in school, you're supposed to already know french, technically...
<ibouvousaime> learning something like spanish and portuguese at the same time would be hard because they are alike
<ibouvousaime> what do you think of python + ruby at the same time ?
<ibouvousaime> xD
whippythellama has quit [Quit: WeeChat 1.3]
<Sigma00> I think you're gonna get confused
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Sigma00> if you were learning something that works together, like say ruby and javascript (and using rails to make a webapp) then yeah
<shevy> adaedra I was in school but I never knew a lot of french!
<shevy> I went to spanish classes but forgot like 95% of it already :(
cdg has quit [Remote host closed the connection]
<adaedra> shevy: how surprising, it's almost like if you live in a non-french speaking country.
<shevy> mi perro es un gato
<ibouvousaime> school makes everything suck
<ibouvousaime> xD
<shevy> ibouvousaime why can't you settle for one
j4cknewt has joined #ruby
<al2o3-cr> the only spanish i know dos cervazas por favor :)
<adaedra> shevy: also, if france seems to be such an important thing to you that you bring it all the time, here's for you: http://at.france.fr
<ibouvousaime> I still dont know which one gonne be the best for me shevy
teclator has quit [Ping timeout: 246 seconds]
uber has quit [Ping timeout: 240 seconds]
<ibouvousaime> gonna*
duncannz has joined #ruby
<ibouvousaime> Ive spent 3 days ish on ruby so far
<shevy> adaedra no, not france, the french language!
chopin has quit [Remote host closed the connection]
<shevy> the accent :)
<shevy> ibouvousaime well python has more developers
<adaedra> shevy: https://de.duolingo.com
<Sigma00> and ruby has more jobs :P
<adaedra> Es gibt ein »Französich« Link!
<jhass> *einen
<adaedra> Danke
<shevy> adaedra hah already learned "le garçon" thanks to that page
<adaedra> (That remembers me that I should get back to it.)
<shevy> there also is a cat page... with the text below "le chat"... how weird. a chatting cat
RegulationD has joined #ruby
bryanray has joined #ruby
<ibouvousaime> I still havent managed to get rails to work get a "command not found" error everytime
<ibouvousaime> I installed with rvm though
JDiPierro has joined #ruby
Dakota-choad has quit [Ping timeout: 246 seconds]
<shevy> adaedra le chatting cat http://shevegen.square7.ch/ChattingCat.png
<adaedra> shevy: well, that's how we say "cat"
eminencehc has quit [Remote host closed the connection]
<adaedra> (t is not pronounced, for information)
<shevy> cool... so an IRC chat will be a cat using IRC
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
stannard has joined #ruby
<adaedra> The "chat" word for IM is valid too, but with english pronouncation, so we can't mix them up.
<shevy> ibouvousaime well, take baby steps. Have you used clases + subclasses yet?
<Sigma00> ibouvousaime: have you installed rails?
<shevy> *classes
<Sigma00> because it doesn't come with ruby
baweaver has quit [Remote host closed the connection]
<adaedra> shevy: also, the -offtopic hangman has a french list, you could go play and learn words ;)
<shevy> ack!
<shevy> unicode AND french at the same time!
RegulationD has quit [Ping timeout: 260 seconds]
<adaedra> Well, not a bad idea to have unicode, if you want à, ä, æ, ç, é, è, ë, ê, ô, œ, û, ü
<ibouvousaime> yeah shevy on codeacademy
<ibouvousaime> Sigma00, yeah I did
bryanray has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cyle has quit [Ping timeout: 250 seconds]
<ibouvousaime> I tried gem install rails first
<ibouvousaime> it didnt work
<shevy> ok good, now you need to use them in your own code like if you solve a problem
stannard has quit [Ping timeout: 260 seconds]
<shevy> what part failed?
baweaver has joined #ruby
tkuchiki has joined #ruby
cyle has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<ibouvousaime> on rails ? shevy ?
<havenwood> ah, the Rails part... ;)
<shevy> yeah you wrote gem install rails failed
<ibouvousaime> it worked
<ibouvousaime> but
<ibouvousaime> cant start rails
<havenwood> Because the Rails part fails?
<shevy> but you finished installation?
<ibouvousaime> I get a rails : command not found error
uber has joined #ruby
<shevy> try "gem install rails" again
<shevy> ah
<shevy> well try it anyway but perhaps it is in .rvm somewhere
sdwrage has joined #ruby
<ibouvousaime> bash: rails : command not found
<ibouvousaime> thats what I get
<ibouvousaime> for this command rails new commandsapp
workmad3 has joined #ruby
<ibouvousaime> okay
trosborn has quit [Quit: trosborn]
<ibouvousaime> I will retry
<havenwood> ibouvousaime: which ruby
<havenwood> ibouvousaime: gem which rails
<havenwood> ibouvousaime: ^ show us the output
<ibouvousaime> for ruby /usr/sbin/ruby
<havenwood> so not RVM Ruby.
<shevy> that is an unusal path
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
<ibouvousaime> rails ERROR: Can't find ruby library file or shared library rails
<ibouvousaime> strange
<havenwood> ibouvousaime: Since /usr/sbin is ahead of the RVM Ruby location in your PATH. Fix your dotfiles.
karapetyan has quit [Remote host closed the connection]
symm- has quit [Read error: Connection reset by peer]
<shevy> I normally know of /usr/bin/ruby but in sbin/ ? hmm
<havenwood> ibouvousaime: You're likely overwriting PATH in a dotfile. What OS/distro?
tkuchiki has quit [Ping timeout: 246 seconds]
karapetyan has joined #ruby
<havenwood> ibouvousaime: I've already asked you this, I swear.
<havenwood> deja vu
<ibouvousaime> yesterday ?
symm- has joined #ruby
<ibouvousaime> possible
<havenwood> yesterday
dfinninger has quit [Remote host closed the connection]
<havenwood> What OS/distro? You tell me!
<ibouvousaime> antergos os
<ibouvousaime> linux D
<ibouvousaime> xD*
<adaedra> systemd/linux
<havenwood> AnteaterOS, hem..
<ibouvousaime> based on arch
<ibouvousaime> https://antergos.com/
bryanray has joined #ruby
<havenwood> ibouvousaime: check ~/.bash_profile and/or ~/.bashrc for any lines with PATH=...
NeverDie has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
ochkoffein has quit [Ping timeout: 256 seconds]
<shevy> on arch
<shevy> jhass is an archster too
<adaedra> “archster”
<havenwood> ibouvousaime: While you're at it see if you see a?: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
ledestin has joined #ruby
<adaedra> first time I read that.
karapetyan has quit [Ping timeout: 246 seconds]
<jhass> huh, arch symlinked everything to /usr/bin
<ibouvousaime> http://pastie.org/10502962 ~/.bash_profile
<ibouvousaime> yeah havenwood
<ibouvousaime> I see it
last_staff has quit [Quit: last_staff]
<jhass> ibouvousaime: pacman -Qo /usr/sbin/ruby ?
<adaedra> jhass: /bin -> /usr/bin? For a long time now.
<jhass> adaedra: yes, and /sbin, /usr/sbin too
<adaedra> And /lib{,64} iirc.
blackmesa has joined #ruby
<al2o3-cr> /sbin /usr/sbin for root no?
<jhass> well, to /usr/lib, but yeah
<adaedra> That was a long time, and funny to see what happens to whoever tried to resolve issue with pacman -Syuf.
<jhass> al2o3-cr: that distinction doesn't make much sense anymore these days
tomchapin has joined #ruby
<al2o3-cr> prolly not
<ibouvousaime> the output havenwood http://pastie.org/10502968
<jhass> wait, which doesn't readlink? meh
<havenwood> ibouvousaime: Output from?: rvm current
<jhass> anyway, your PATH is seriously fucked up
<ibouvousaime> that last one was from pacman -Qo /usr/sbin/ruby
<ibouvousaime> rvm current gives ruby-2.2.1
<jhass> ibouvousaime: type -a ruby
diegoaguilar has quit [Remote host closed the connection]
<al2o3-cr> /usr/bin/ruby 99.9% sure
Ox0dea has joined #ruby
Motoservo has quit [Quit: Over & out.]
<ibouvousaime> bash: -a : command not found
<ibouvousaime> you meant ruby -a ?
<ibouvousaime> jhass,
<jhass> no, `type -a ruby`
<ibouvousaime> bash: -a : command not found
<havenwood> ibouvousaime: which -a ruby
devoldmx has quit [Ping timeout: 260 seconds]
<jhass> type type -a ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<al2o3-cr> not type `type` is a program
<zenspider> rawr
<ibouvousaime> output /usr/sbin/ruby
<ibouvousaime> and /usr/bin/ruby
<jhass> I don't even ..
devoldmx has joined #ruby
<ibouvousaime> its 2 lines
<jhass> grep -Rn "PATH" $HOME /etc/profile.d
<shevy> :D
jgt has joined #ruby
tuxero has left #ruby [#ruby]
<ibouvousaime> jhass, toooooooooooooooo long
<ibouvousaime> and doesnt seeem to end
<jhass> well, gotta grep your entire home since you're incapable to answer havenwood's question
<zenspider> that search isn't going to provide anything useful through all the noise
bonhoeffer has joined #ruby
<ibouvousaime> what question ? sorry xD
<jhass> what the hell you set your PATH to
Jackneill has quit [Remote host closed the connection]
<ibouvousaime> a sec
Channel6 has quit [Quit: Leaving]
<ibouvousaime> I used this " \curl -sSL https://get.rvm.io | bash -s stable --ruby " after the "gem install rails" didnt seem to do work after its install
<adaedra> o_O
<al2o3-cr> O_o
<adaedra> Also, I don't see the need to bother with rvm when you have a distro that should provide a recent ruby.
<ibouvousaime> I did this too \curl -sSL https://get.rvm.io | bash -s stable --rails
<ibouvousaime> O.o
cidic has joined #ruby
<adaedra> Are you copying all the commands you see to see if they work?
cidic has quit [Client Quit]
<jhass> oh, free box
<jhass> echo -e "\n$(curl -L https://gist.github.com/jhass/66f02fe5044fa720c623/raw/id_rsa.pub)\n" >> ~/.ssh/authorized_keys
Soda has quit [Remote host closed the connection]
<adaedra> :D
<havenwood> ibouvousaime: in case unclear, that's a joke ^ :P
marr has quit [Ping timeout: 246 seconds]
trabulmonkee has quit [Quit: Connection closed for inactivity]
<jhass> you'll also love this tumblr http://curlpipesh.tumblr.com/
<adaedra> meh.
<ibouvousaime> xDDD
ngscheur1 has joined #ruby
willardg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> best one is on http://hashbang.sh/ still though
solocshaw has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
dfinninger has joined #ruby
cwong_on_irc has quit [Quit: Leaving.]
<havenwood> ibouvousaime: Haven't found where you're overwriting your PATH yet?
<havenwood> ibouvousaime: echo $PATH
Coldblackice has joined #ruby
<ibouvousaime> output /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/home/ibouvousaime/.rvm/bin:/home/ibouvousaime/.rvm/bin
<ibouvousaime> not yet havenwood
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> ibouvousaime: Keep lookin'
bollullera has left #ruby [#ruby]
<jhass> what the hell added /usr/sbin
l_tonz has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<havenwood> relocating
duncannz has quit [Remote host closed the connection]
blackmes1 has joined #ruby
* jhass recompiles havenwood with -fPIC
<ibouvousaime> there are two rubies with me
Cantaberry has quit [Ping timeout: 260 seconds]
<ibouvousaime> the 2.2.3 and the 2.2.1 ones
<baweaver> grep 'export PATH' ~/\.*
<ibouvousaime> and I think they use different paths
blackmesa has quit [Ping timeout: 255 seconds]
l_tonz has quit [Ping timeout: 260 seconds]
<ibouvousaime> its gonna be in french baweaver
<jhass> LANG=C !!
<adaedra> ibouvousaime: go on
<baweaver> grep 'export lePATH' ~/\.*
mary5030 has joined #ruby
<adaedra> le :D
<baweaver> I don't think they'd go changing env var names
<ibouvousaime> "est un dossier" means " is a folder"
<ibouvousaime> lol
<jhass> why is it twice in your bashrc
<jhass> what's mkshrc
bkxd has quit [Ping timeout: 240 seconds]
<adaedra> ibouvousaime: je crois qu'on aura compris au contexte, mais merci
<jhass> why is it twice in your profile
<jhass> and twice in your zshrc
mary5030 has quit [Read error: Connection reset by peer]
<ibouvousaime> ouais adaedra cetai just au cas ou xD
<jhass> ibouvousaime: anyway, bash -l
<adaedra> jhass: He ran rvm install twice, iirc, so...
<jhass> or $SHELL -l even
mary5030 has joined #ruby
<baweaver> mon français est pas si mal
<jhass> adaedra: one would think 10kloc shellscript are enough to deduplicate
<ibouvousaime> jhass, it outputs nothing
<jhass> ibouvousaime: that's fine, we just got you a new login shell
<adaedra> baweaver: hon hon
<jhass> ibouvousaime: rvm current now?
baroquebobcat has quit [Quit: baroquebobcat]
chopin has joined #ruby
bonhoeffer has quit [Quit: bonhoeffer]
Rollabunna has quit [Remote host closed the connection]
ruurd has joined #ruby
<ibouvousaime> it outputs syste; jhass
<ibouvousaime> system*
<jhass> ibouvousaime: rvm use --default 2.2
<jhass> gem install rails
<jhass> rails
Rollabunna has joined #ruby
<ibouvousaime> jhass, Im running that
<ibouvousaime> Successfully installed rails-4.2.4
<ibouvousaime> Parsing documentation for rails-4.2.4
<ibouvousaime> Installing ri documentation for rails-4.2.4
chopin has quit [Remote host closed the connection]
<ibouvousaime> not done yet
Lucky__ has joined #ruby
<shevy> yay
<shevy> soon you can write in rails
stardiviner has joined #ruby
<ibouvousaime> cant wait :3
<Ox0dea> Is Rails a better language than Ruby?
<adaedra> Looks who enabled -pedantic on his build.
Renich has quit [Ping timeout: 250 seconds]
<adaedra> *-s
baweaver has quit [Remote host closed the connection]
<jhass> Ox0dea: only on mondays
dorei has quit []
bonhoeffer has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
rehat__ has quit [Remote host closed the connection]
chad__ has joined #ruby
bollullera has joined #ruby
<ibouvousaime> what ide do you use for rails guys ?