apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p385: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
bricker`1A has quit [Ping timeout: 256 seconds]
joofsh has joined #ruby
joofsh has quit [Remote host closed the connection]
Guest___ has joined #ruby
<aedornm> has anyone used Obvious (http://obvious.retromocha.com/)?
Guest___ is now known as hashmal
dmiller1 has quit [Ping timeout: 252 seconds]
bean has quit [Quit: Computer has gone to sleep.]
hmarr has joined #ruby
arya has joined #ruby
etcetera has quit []
pdamer has joined #ruby
Adys has quit [Quit: No Ping reply in 90 seconds.]
Adys has joined #ruby
etcetera has joined #ruby
cparen has joined #ruby
biff_tannen has quit [Ping timeout: 276 seconds]
robotmay has quit [Remote host closed the connection]
thufir_ has joined #ruby
Pandaen has quit [Ping timeout: 276 seconds]
kofno has joined #ruby
_justin has joined #ruby
cparen has quit [Ping timeout: 276 seconds]
nathancahill has quit [Ping timeout: 244 seconds]
_nitti has joined #ruby
AntiTyping has joined #ruby
nari has quit [Ping timeout: 256 seconds]
Kuifje has quit [Ping timeout: 255 seconds]
joshman_ has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has joined #ruby
pdamer has quit [Quit: pdamer]
lectrick has quit []
bashrw has joined #ruby
SCommette has quit [Quit: SCommette]
biff_tannen has joined #ruby
caleb_io has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
ahmozkya has quit []
<bubblehead> I'm trying to run a gem called Serve that I recently installed. I keep getting this error that I'm hoping someone could shed some light on: https://gist.github.com/anonymous/55a7949ce03a8c79a453
AndChat| has quit [Ping timeout: 252 seconds]
techhelp has quit [Quit: This computer has gone to sleep]
jgarvey has quit [Quit: Leaving]
lectrick has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
j_ has joined #ruby
jrajav has joined #ruby
arya has quit [Ping timeout: 252 seconds]
bashrw has quit [Client Quit]
<atmosx> bubblehead: are you using rails and ruby 1.8?
_nitti_ has joined #ruby
<bubblehead> ruby
<bubblehead> atmosx ruby 1.8.7
_nitti has quit [Ping timeout: 245 seconds]
spaceships has joined #ruby
_justin has quit [Quit: Leaving.]
baroquebobcat has quit [Quit: baroquebobcat]
mattbl has joined #ruby
Guest30046 has quit [Quit: Computer has gone to sleep.]
j_ has quit [Quit: Page closed]
chrishunt has quit [Quit: zZzZzZ...]
_nitti_ has quit [Ping timeout: 245 seconds]
gabrielrotbart has joined #ruby
Kingy has quit [Quit: Leaving]
arya has joined #ruby
yshh has quit [Remote host closed the connection]
ephemerian has quit [Quit: Leaving.]
onemanjujitsu has quit [Quit: onemanjujitsu]
chrishough has quit [Quit: chrishough]
newUser1234 has joined #ruby
arya_ has joined #ruby
Kingy has joined #ruby
<havenwood> bubblehead: can you switch to 1.9.3 or are you constrained to 1.8?
Konboi has joined #ruby
<havenwood> s/to/by
relixx has quit [Quit: relixx]
<havenwood> nvm
apok has joined #ruby
kpshek has quit []
Spaceghostc2c has quit [Excess Flood]
anonymuse has quit [Quit: Leaving.]
mattbl has quit [Quit: This computer has gone to sleep]
arya has quit [Ping timeout: 248 seconds]
mattbl has joined #ruby
Spaceghostc2c has joined #ruby
biff_tannen has quit [Ping timeout: 255 seconds]
cyong has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
cyong has quit [Max SendQ exceeded]
bubblehead has quit [Remote host closed the connection]
x82_nicole has quit [Quit: Computer has gone to sleep.]
cyong has joined #ruby
cyong has quit [Max SendQ exceeded]
relixx has joined #ruby
jrajav has joined #ruby
moted has quit [Remote host closed the connection]
rheoli has joined #ruby
enebo has quit [Quit: enebo]
rheoli has quit [Client Quit]
nathancahill has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
jonathanwallace has joined #ruby
Spaceghostc2c has quit [Excess Flood]
Virunga has quit [Remote host closed the connection]
idkazuma has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 245 seconds]
ebobby has joined #ruby
Spaceghostc2c has joined #ruby
SCommette has joined #ruby
bubblehe_ has joined #ruby
mercwithamouth has joined #ruby
<bubblehe_> havenwood honestly not sure. What would constrain me? I'm pretty green to ruby. Usually it just works :)
mattbl has quit [Quit: This computer has gone to sleep]
thufir_ has quit [Quit: Leaving.]
artOfWar has quit [Remote host closed the connection]
<havenwood> bubblehe_: 1.8 is reaching end of life in June. 1.9 is really nice and helps avoid a ton of issues. 2.0 comes out in two weeks. :)
<bubblehe_> hmmm can i revert if it breaks stuff?
<havenwood> bubblehe_: Yes. It is popular to use a Ruby version manager so you can just flip-flop between whichever versions you'd like.
<havenwood> bubblehe_: I use chruby and highly recommend it: https://github.com/postmodern/chruby
<havenwood> bubblehe_: rvm is probably the most popular solution
<bubblehe_> yeesh ok. I'll have to look into that. The wife is yelling at me to get off the computer. I'll check it out tmw. Thanks for your help havenwood.
d2dchat has joined #ruby
tcurdt has joined #ruby
hybris has joined #ruby
enebo has joined #ruby
piotr__ has quit [Ping timeout: 245 seconds]
moofy has quit [Quit: moofy]
Kingy has quit [Quit: Leaving]
tcurdt has quit [Client Quit]
willob has joined #ruby
xemu has quit [Ping timeout: 245 seconds]
h4mz1d has joined #ruby
_justin has joined #ruby
newUser1234 has quit [Remote host closed the connection]
octarine has joined #ruby
newUser1234 has joined #ruby
_justin has left #ruby [#ruby]
dallasm has joined #ruby
dallasm has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
arya_ has quit [Ping timeout: 252 seconds]
marr has quit [Ping timeout: 255 seconds]
elaptics is now known as elaptics`away
yshh has joined #ruby
senayar has quit [Quit: Quitte]
yshh has quit [Remote host closed the connection]
yshh has joined #ruby
dmiller1 has joined #ruby
mcqueenorama has quit [Remote host closed the connection]
newUser1234 has quit [Ping timeout: 260 seconds]
allaire has joined #ruby
mattbl has joined #ruby
enebo has quit [Quit: enebo]
bubblehe_ has quit [Remote host closed the connection]
hadees_ has joined #ruby
SCommette has quit [Quit: SCommette]
hadees_ has quit [Remote host closed the connection]
techhelp has joined #ruby
tcstar has quit [Ping timeout: 252 seconds]
reset has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
dmiller1 has quit [Ping timeout: 255 seconds]
hadees has quit [Ping timeout: 252 seconds]
mattbl has quit [Client Quit]
djwonk has joined #ruby
daemoen has quit [Quit: WeeChat 0.4.0]
jodok has quit [Quit: jodok]
daemoen has joined #ruby
Udom0 has joined #ruby
arya has joined #ruby
hybris has quit [Quit: hybris]
dallasm has joined #ruby
h4mz1d has quit [Ping timeout: 252 seconds]
techhelp has quit [Quit: This computer has gone to sleep]
Guest77147 has quit [Quit: Computer has gone to sleep.]
jjbohn has joined #ruby
etcetera has quit []
techhelp has joined #ruby
BRMatt has quit [Quit: Leaving]
subbyyy has joined #ruby
nari has joined #ruby
quatar2 has quit [Ping timeout: 252 seconds]
techhelp has quit [Client Quit]
pac1 has joined #ruby
emmanuelux has quit [Remote host closed the connection]
krisfremen has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 248 seconds]
krisfremen has joined #ruby
`brendan has joined #ruby
taoru has joined #ruby
adeponte has quit [Remote host closed the connection]
onemanjujitsu has joined #ruby
techhelp has joined #ruby
etcetera has joined #ruby
panchisco has quit [Quit: panchisco]
postmodern has joined #ruby
tylersmith has quit [Quit: tylersmith]
emocakes has quit [Quit: emocakes]
hit has joined #ruby
linguini has joined #ruby
toekutr has joined #ruby
relixx has quit [Quit: relixx]
ericmathison has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
the_mentat has joined #ruby
arya has joined #ruby
aaronmacy has joined #ruby
tjbiddle_ has joined #ruby
angusiguess has joined #ruby
mikepack has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 246 seconds]
warreng has joined #ruby
inokenty has quit [Quit: Leaving.]
<warreng> anybody know if the multi_json gem is affected by the JSON vulnerability announced today?
maxmanders has joined #ruby
tjbiddle_ has quit [Ping timeout: 252 seconds]
aantix has quit [Ping timeout: 244 seconds]
johnpcamara has joined #ruby
skattyadz has quit [Quit: skattyadz]
LouisRoR has joined #ruby
biff_tannen has joined #ruby
v0n has quit [Ping timeout: 248 seconds]
ngoldman has quit [Remote host closed the connection]
bawigga has quit [Quit: Textual IRC Client: www.textualapp.com]
maxmanders has quit [Ping timeout: 255 seconds]
ahokaomaeha has joined #ruby
arya has quit [Ping timeout: 248 seconds]
the_mentat has quit [Quit: Computer has gone to sleep.]
zeade has quit [Quit: Leaving.]
jjbohn has quit [Quit: Leaving...]
jjbohn has joined #ruby
lancepantz is now known as lancepantz_
kenneth has quit [Ping timeout: 245 seconds]
<havenwood> warreng: when multi_json uses the json gem (which was vulnerable) it uses the latest version 1.7.7 (which isn't vulnerable) since it specifies ~> 1.4.
lectrick has quit [Ping timeout: 260 seconds]
etcetera has quit [Read error: Operation timed out]
<havenwood> warreng: TL;DR: multi_json does indeed use json gem but uses up-to-date version
<warreng> got it, thanks
kenneth has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
dougireton has quit [Quit: Leaving.]
onemanjujitsu has quit [Quit: onemanjujitsu]
apok has quit [Quit: apok]
hit has left #ruby [#ruby]
onemanjujitsu has joined #ruby
segv- has quit [Quit: segv-]
etcetera has joined #ruby
Udom0_ has joined #ruby
mockra has quit [Remote host closed the connection]
Udom0 has quit [Quit: leaving]
Udom0_ has quit [Client Quit]
meoblast001 has joined #ruby
daniel_hinojosa has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
PanPan_ has joined #ruby
Udom0 has joined #ruby
ericmathison has quit [Quit: leaving]
pskosinski has quit [Quit: Red Eclipse: http://pawelk.pl/quinton-reeves]
ericmathison has joined #ruby
ericmathison has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 245 seconds]
the_mentat has joined #ruby
aaronmcadam has quit [Ping timeout: 244 seconds]
stopbit has joined #ruby
ericmathison has joined #ruby
mrsolo has quit [Quit: Leaving]
JonathanVeg has joined #ruby
JonathanVeg has left #ruby [#ruby]
gabrielrotbart has joined #ruby
ahokaomaeha has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
theRoUS has quit [Read error: Operation timed out]
BrindleFly_ has joined #ruby
chrisja has quit [Quit: leaving]
BrindleFly has quit [Read error: Operation timed out]
BrindleFly_ is now known as BrindleFly
justsee has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
undersc0re97 has quit [Quit: "The destruction of balance constitutes leaping forward and such destruction is better than balance. Imbalance and headache are good things." - Mao]
benlieb has joined #ruby
justsee has quit [Client Quit]
eka has quit [Quit: Computer has gone to sleep.]
icole has joined #ruby
taoru has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
taoru has joined #ruby
lancepantz_ is now known as lancepantz
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
justsee has joined #ruby
billy_ran_away has quit [Ping timeout: 252 seconds]
elux has joined #ruby
arya has joined #ruby
dmiller1 has joined #ruby
billy_ran_away has joined #ruby
ferdev is now known as ferdev|away
newUser1234 has joined #ruby
DrShoggoth has quit [Ping timeout: 252 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
adeponte has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
niklasb has quit [Ping timeout: 252 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
theRoUS has joined #ruby
reset has quit [Quit: Leaving...]
dmiller1 has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
joeycarmello has quit [Remote host closed the connection]
gabrielrotbart has quit [Remote host closed the connection]
Axsuul has joined #ruby
dustint has joined #ruby
ahokaomaeha has joined #ruby
nomenkun has joined #ruby
DrShoggoth has joined #ruby
theRoUS has quit [Read error: Operation timed out]
Inoperable is now known as zz_Inoperable
reset has joined #ruby
jjbohn has joined #ruby
BrindleFly has quit [Quit: BrindleFly]
havenwood has joined #ruby
ahokaomaeha has quit [Client Quit]
nomenkun has quit [Ping timeout: 245 seconds]
Udom0 has quit [Quit: leaving]
terrorpup has joined #ruby
BrindleFly has joined #ruby
Udom0 has joined #ruby
wyhaines has quit [Remote host closed the connection]
mattbl has joined #ruby
tomzx_mac has joined #ruby
Udom0 has quit [Client Quit]
zipace has quit [Quit: Leaving]
Hanmac2 has joined #ruby
zz_Inoperable is now known as Inoperable
Bry8Star has joined #ruby
bricker is now known as bricker`work
razieliyo has joined #ruby
<razieliyo> hi
razieliy` has joined #ruby
apok has joined #ruby
banister`sleep has quit [Read error: Connection reset by peer]
Hanmac1 has quit [Ping timeout: 245 seconds]
<razieliy`> I have 2 files, A.rb and B.rb. I include B.rb in A.rb and viceversa, and it works
banister`sleep has joined #ruby
razieliyo has quit [Remote host closed the connection]
razieliy` has quit [Remote host closed the connection]
razieliyo has joined #ruby
<razieliyo> I dont know if you received the last thing
<razieliyo> I have two files, included one in each other
<razieliyo> shouldn't it fail?
<havenwood> razieliyo: require only loads once
<razieliyo> I see
adeponte has quit [Remote host closed the connection]
stormetrooper has quit [Quit: Leaving]
dallasm has quit [Remote host closed the connection]
<havenwood> razieliyo: If you used load instead of require, you'd indeed get: stack level too deep (SystemStackError)
pdamer has joined #ruby
<razieliyo> but, how can the interpreter find both of them? for example, if it reads A.rb and requires B.rb
<razieliyo> and inside B.rb I use something from A.rb, some class for example
caleb_io has quit [Quit: caleb_io]
<razieliyo> the interpreter hasn't already read the A class because the require line is before the definition of A
gabrielrotbart has joined #ruby
chrishunt has joined #ruby
<havenwood> razieliyo: Try a.rb require'ing itself and look at output: puts require './a.rb'
<razieliyo> havenwood: on my way
jtharris has quit [Quit: WeeChat 0.4.0]
statarb3 has quit [Quit: Leaving]
mercwithamouth has quit [Quit: leaving]
BrindleFly has quit [Quit: BrindleFly]
__class__ has quit [Ping timeout: 255 seconds]
v0n has joined #ruby
Criztian has joined #ruby
<razieliyo> havenwood: false true
<razieliyo> this is a brainf***
<havenwood> razieliyo: Okay, this would be better... have a.rb be: puts "a requiring b: #{require './b.rb'}"
<havenwood> razieliyo: And b.rb be: puts "b requiring a: #{require('./a.rb')}"
mercwithamouth has joined #ruby
<havenwood> ruby a.rb: # a requiring b: false; b requiring a: true; a requiring b: true
sn0wb1rd has joined #ruby
<havenwood> razieliyo: TL;DR: a file will try a require and if it returns false, it stops. So it will only run first time you require yourself, something else, whatev
BrindleFly has joined #ruby
cparen has joined #ruby
<havenwood> razieliyo: (true means yeah it require'd it, false means nope it was already required so did nothing)
<razieliyo> I've already run it
<razieliyo> fine, that asks my thing
<razieliyo> trying to think about it a bit more...
jonahR has joined #ruby
<razieliyo> it should be trivial, but my mind is a bit hard
allaire has quit []
<razieliyo> fine, I just had an error in the code, didn't changed ./a.rb to ./b.rb in ./b.rb
<razieliyo> now I understand it, thank you havenwood
cparen has quit [Ping timeout: 260 seconds]
<razieliyo> and, if I get a little deep into this, why C++ crash with this? isn't a compiled language able to parse files this way or what?
Criztian has quit [Remote host closed the connection]
joeycarmello has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
butblack has joined #ruby
onemanjujitsu has quit [Quit: onemanjujitsu]
drizz has left #ruby [#ruby]
anchorspark has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
pdamer has quit [Read error: Connection reset by peer]
pdamer_ has joined #ruby
joofsh has joined #ruby
arya has quit [Ping timeout: 256 seconds]
arya has joined #ruby
yacks has joined #ruby
pdamer_ has quit [Read error: Connection reset by peer]
pdamer has joined #ruby
butblack has quit [Quit: butblack]
berserkr has quit [Quit: Leaving.]
pdamer has quit [Client Quit]
schickung has quit [Quit: schickung]
Vert has quit [Remote host closed the connection]
rtmex has joined #ruby
breakingthings has joined #ruby
onemanjujitsu has joined #ruby
<breakingthings> Does anyone know how I would go about testing that a class is delegating a specific method to another?
<breakingthings> (with RSpec)
artOfWar has joined #ruby
<rtmex> Hello, I'm using ruby 1.9.2p0, and I'm having trouble trying to read a csv file
<rtmex> I'm getting can't convert Hash into String message
<rtmex> I've tryed CSV.foreach(params[:nombre_archivo], :headers => true, :quote_char => '"', :col_sep =>',', :row_sep =>:auto) do |row_data|
<rtmex> also CSV.read instead of CSV.foreach,
zzing has joined #ruby
dallasm has joined #ruby
hmarr has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 248 seconds]
Myconix has joined #ruby
<havenwood> rtmex: Hrmm, in 1.9.3-p385 #read/#parse works as I'd expect?: CSV.read(File.open('test.csv')); #=> [["i", "iz", "CSV"]]
octarine has quit []
arya has joined #ruby
<havenwood> rtmex: Paste a gist of the CSV file and parsing code?
octarine has joined #ruby
Loaft has quit [Read error: Connection reset by peer]
lancepantz is now known as lancepantz_
artOfWar has quit [Remote host closed the connection]
marco has joined #ruby
marco is now known as Marco
artOfWar has joined #ruby
dmiller1 has joined #ruby
justinleitgeb has joined #ruby
nfk has quit [Quit: yawn]
tcstar has joined #ruby
bricker`1A has joined #ruby
<rtmex> This is the link where I pasted http://pastebin.com/gwXvegAX
mattbl has quit [Quit: This computer has gone to sleep]
sepp2k has quit [Remote host closed the connection]
mattbl has joined #ruby
swarley| has joined #ruby
pdamer has joined #ruby
icole has quit [Remote host closed the connection]
chrisramon has joined #ruby
mockra has joined #ruby
dmiller1 has quit [Ping timeout: 256 seconds]
bricker`LA has quit [Ping timeout: 256 seconds]
icole has joined #ruby
etcetera has quit []
<rtmex> havenwood: Can you see what's wrong? :)
icole has quit [Read error: Connection reset by peer]
icole_ has joined #ruby
inao has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
arya has quit [Ping timeout: 252 seconds]
arya has joined #ruby
benlieb has quit [Quit: benlieb]
daniel_- has quit [Ping timeout: 245 seconds]
baroquebobcat has joined #ruby
cparen has joined #ruby
baroquebobcat has quit [Client Quit]
monkegji_ has joined #ruby
tcstar has quit [Ping timeout: 252 seconds]
butblack has joined #ruby
<havenwood> rtmex: With CSV.parse(your_csv_here) i get no prob, but when I run your code it chokes on `params` not being defined: undefined local variable or method `params' for main:Object
kpshek has joined #ruby
bricker`LA has joined #ruby
<rtmex> It's because I'm using Sinatra, replace params[:nombre_archivo] with the name of the csv file :)
subbyyy has quit [Ping timeout: 252 seconds]
caleb_io has joined #ruby
hackerdude has quit [Remote host closed the connection]
hackerdude has joined #ruby
bricker`1A has quit [Ping timeout: 276 seconds]
mattbl has quit [Quit: This computer has gone to sleep]
jjbohn has quit [Quit: Leaving...]
schickung has joined #ruby
<havenwood> rtmex: ahhhh, I shoulda realized that :P
breakingthings has quit []
jonathanwallace has quit [Ping timeout: 276 seconds]
schickung has quit [Client Quit]
swarley| has quit [Read error: Connection reset by peer]
swarley- has joined #ruby
|Monie| has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
terrorpup has quit [Ping timeout: 245 seconds]
onemanjujitsu has quit [Quit: onemanjujitsu]
ckrailo has quit [Quit: Computer has gone to sleep.]
robert_ has quit [Read error: Connection reset by peer]
v0n has quit [Read error: Connection reset by peer]
biff_tan1en has joined #ruby
onemanjujitsu has joined #ruby
newUser1234 has quit [Ping timeout: 255 seconds]
v0n has joined #ruby
biff_tannen has quit [Ping timeout: 245 seconds]
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
Konboi has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 255 seconds]
markalanevans has joined #ruby
otherj has joined #ruby
otherj has quit [Max SendQ exceeded]
mercwithamouth has quit [Quit: Lost terminal]
otherj has joined #ruby
mercwithamouth has joined #ruby
adeponte has joined #ruby
cobragoat has quit [Remote host closed the connection]
BrindleFly has quit [Quit: BrindleFly]
joofsh has quit [Remote host closed the connection]
gg4 has joined #ruby
bricker`1ork has joined #ruby
rtmex has left #ruby ["Saliendo"]
havenwood has quit [Remote host closed the connection]
xemu has joined #ruby
havenwood has joined #ruby
cparen_ has joined #ruby
ReekuMF` has joined #ruby
BadLarry has quit [Ping timeout: 246 seconds]
dougireton has joined #ruby
dougireton has quit [Client Quit]
fbernier_ has joined #ruby
willob1 has joined #ruby
eregon_ has joined #ruby
wereHams1er has joined #ruby
alanp_ has joined #ruby
psino_ has joined #ruby
shiftpgd1 has joined #ruby
rramsden_ has joined #ruby
fred_ has joined #ruby
shadoi has joined #ruby
shadoi has left #ruby [#ruby]
fred_ is now known as Guest70723
phite has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
moshee has quit [Ping timeout: 255 seconds]
willob1 has quit [Client Quit]
McAfreak has joined #ruby
vierja has quit [Ping timeout: 245 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
BadLarry has joined #ruby
sheerun_ has joined #ruby
adeponte has quit [*.net *.split]
yacks has quit [*.net *.split]
cparen has quit [*.net *.split]
willob has quit [*.net *.split]
alanp has quit [*.net *.split]
JMcAfreak has quit [*.net *.split]
Vektor has quit [*.net *.split]
bricker`work has quit [*.net *.split]
gg2 has quit [*.net *.split]
yfeldblum has quit [*.net *.split]
fbernier has quit [*.net *.split]
wereHamster has quit [*.net *.split]
tessi has quit [*.net *.split]
frey has quit [*.net *.split]
sheerun has quit [*.net *.split]
rramsden has quit [*.net *.split]
eregon has quit [*.net *.split]
kenichi has quit [*.net *.split]
shiftpgdn has quit [*.net *.split]
Koshian has quit [*.net *.split]
psino has quit [*.net *.split]
fred has quit [*.net *.split]
cparen_ is now known as cparen
fbernier_ is now known as fbernier
psino_ is now known as psino
phite is now known as tessi
theshow has quit [Ping timeout: 260 seconds]
inao has quit [Quit: Linkinus - http://linkinus.com]
rupee has quit [Ping timeout: 255 seconds]
vierja has joined #ruby
icole_ has quit [Read error: Connection reset by peer]
caleb_io has quit [Quit: caleb_io]
icole has joined #ruby
BrindleFly has joined #ruby
almondev has joined #ruby
<almondev> greetings everyone
benlieb has joined #ruby
<almondev> <--- newbie to ruby
cparen has quit [Quit: cparen]
LouisRoR has quit [Ping timeout: 256 seconds]
markalanevans has quit [Ping timeout: 245 seconds]
kpshek has quit [Ping timeout: 252 seconds]
techlife has quit [Ping timeout: 252 seconds]
Koshian has joined #ruby
techlife has joined #ruby
frey has joined #ruby
biff_tan1en has quit [Ping timeout: 272 seconds]
apok has quit [Quit: apok]
cibs has quit [Ping timeout: 256 seconds]
forced_request has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
havenwood has joined #ruby
yacks has joined #ruby
<havenwood> Anyone on with OP? Channel /title could use a bump to ruby-2.0.0-rc2 :)
<havenwood> ruby-2.0.0 cometh!
bricker`LA has quit [Ping timeout: 245 seconds]
theshow has joined #ruby
justinleitgeb has quit [Remote host closed the connection]
ner0x has quit [Remote host closed the connection]
bricker`LA has joined #ruby
ahmozkya_ has joined #ruby
iatecake has joined #ruby
ahmozkya_ has quit [Client Quit]
wallerdev has joined #ruby
dmiller1 has joined #ruby
iatecake has quit [Quit: iatecake]
razieliyo has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
arya has quit [Ping timeout: 240 seconds]
cyong has joined #ruby
cyong has quit [Client Quit]
Targen has quit [Read error: Connection reset by peer]
<almondev> otherj is everywhere
kenichi has joined #ruby
zeade has joined #ruby
cyong has joined #ruby
cibs has joined #ruby
ebobby has quit [Quit: Lost terminal]
x82_nicole has joined #ruby
<otherj> damn straight
davetherat has quit [Remote host closed the connection]
dmiller1 has quit [Ping timeout: 260 seconds]
davetherat has joined #ruby
<almondev> otherj .. all articles about netscape get .deleted by default
<otherj> you are referring to the joel on software link?
<almondev> sadly yes
<otherj> what's the problem with netscape?
<almondev> i did not like their logo
Targen has joined #ruby
arya has joined #ruby
<otherj> have a problem with godzilla?
<almondev> now then.. back to my ruby learning .. i am all the way up to conditionals ... i feel so accomplished
<almondev> i need the ruby for noobs irc channel probably
<otherj> these people are pretty helpful
BrindleFly has quit [Quit: BrindleFly]
pac1 has quit [Quit: I got it one line of code at a time]
ryanf has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
<almondev> puts "this is a test" if name == "almond" else puts "this is not the test you are looking for"
<almondev> ya .. that is what i am breaking.. i know i know
<almondev> but very new
<almondev> i thought it would work
<almondev> lol
h4mz1d has joined #ruby
<almondev> what i would really like to do is find Kevin Skoglund and tell him to not type so fast in his videos
ryanf has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
hackeron has quit [Ping timeout: 252 seconds]
ryanf has joined #ruby
hackeron has joined #ruby
icole has quit [Remote host closed the connection]
reset has quit [Ping timeout: 260 seconds]
inao has joined #ruby
otherj has quit []
divout has joined #ruby
vierja has quit [Ping timeout: 240 seconds]
hbpoison has joined #ruby
vierja has joined #ruby
Spooner_ has quit [Remote host closed the connection]
libryder has quit [Ping timeout: 276 seconds]
max_dev has joined #ruby
havenwood has joined #ruby
libryder has joined #ruby
io_syl has quit [Ping timeout: 252 seconds]
butblack has quit [Quit: butblack]
hbpoison has quit [Ping timeout: 240 seconds]
allaire has joined #ruby
almondev has quit [Quit: ThrashIRC v2.8 sic populo comunicated]
angusiguess has joined #ruby
h4mz1d has quit [Ping timeout: 248 seconds]
max_dev has quit [Quit: Leaving]
artOfWar has quit [Ping timeout: 252 seconds]
maxmanders has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
anonymuse has joined #ruby
jetblack has joined #ruby
jonahR has quit [Quit: jonahR]
edenc has joined #ruby
ReekuMF` has quit []
allaire has quit []
maxmanders has quit [Ping timeout: 272 seconds]
pdamer has quit [Quit: pdamer]
chendo_ has quit [Ping timeout: 248 seconds]
max_dev has joined #ruby
max_dev has left #ruby [#ruby]
jrajav has quit [Quit: I tend to be neutral about apples]
lancepantz_ is now known as lancepantz
cyong has quit [Quit: Leaving.]
chendo_ has joined #ruby
ryanf has quit [Quit: leaving]
Loaft has joined #ruby
hashmal has quit [Quit: Computer has gone to sleep.]
himsin has quit [Remote host closed the connection]
cobragoat has joined #ruby
<Nuck> Okay, Google has failed me here. I'm trying to get a directory relative to the file which was launched initially — so if I have a huge project, I can store paths relative to the "project" root.
himsin has joined #ruby
<reactormonk> Nuck, there's require_relative
<Nuck> reactormonk: But that's relative to the caller, right?
<Nuck> And technically I need this for file paths
<reactormonk> Nuck, nope, to the file called in
dustint has quit [Ping timeout: 256 seconds]
ananthakumaran has joined #ruby
anonymuse has quit [Quit: Leaving.]
<Nuck> Well, the thing is, if I have A (the root file) require './path/to/foo' which requires './bar' (which is ./path/to/bar relative to the project root), then I can't figure out how to get paths relative to A from inside ./path/to/bar
cparen has joined #ruby
octoberry has quit [Ping timeout: 245 seconds]
Targen has quit [Read error: Connection reset by peer]
<havenwood> Nuck: File.expand_path $0
cobragoat has quit [Ping timeout: 260 seconds]
fir_ed has quit [Ping timeout: 252 seconds]
johnpcamara has quit [Quit: johnpcamara]
elux has quit [Quit: Leaving...]
<Nuck> Holy shit that works.
<Nuck> Thanks havenwood, that makes my life a gajillion times easier
lancepantz is now known as lancepantz_
dcwu has joined #ruby
Targen has joined #ruby
subbyyy has joined #ruby
kiwnix has joined #ruby
marco__ has joined #ruby
nardbard has joined #ruby
wallerdev has joined #ruby
Konboi has joined #ruby
techhelp has quit [Quit: This computer has gone to sleep]
nardbard has left #ruby [#ruby]
Evixion has quit []
adeponte has joined #ruby
bigmac has joined #ruby
onemanjujitsu has quit [Quit: onemanjujitsu]
__class__ has joined #ruby
dmiller1 has joined #ruby
Evixion has joined #ruby
julian-delphiki is now known as bean__
kenneth has quit [Quit: kenneth]
bean__ is now known as julian-delphiki
dmiller1 has quit [Ping timeout: 256 seconds]
arya has quit [Ping timeout: 276 seconds]
newUser1234 has joined #ruby
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
hibariya has quit [Quit: No Ping reply in 180 seconds.]
gabrielrotbart has quit [Remote host closed the connection]
hibariya has joined #ruby
ngoldman has joined #ruby
julian-delphiki is now known as bean
blf has joined #ruby
arya has joined #ruby
<blf> array1 - array2 should return an array containing those items which are found only in array1, correct?
djwonk has quit []
hbpoison has joined #ruby
<blf> I can't seem to get this to work within a thread. temp = id_list[index..1000 + index - 1] - summary_list
djwonk has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
postmodern has quit [Quit: Leaving]
arya has quit [Ping timeout: 240 seconds]
elektronaut has quit [Ping timeout: 260 seconds]
hbpoison has quit [Ping timeout: 256 seconds]
hackerdude has quit [Remote host closed the connection]
haxrbyte_ has quit [Read error: Connection reset by peer]
elektronaut has joined #ruby
jtharris has joined #ruby
Fezzler has joined #ruby
arya has joined #ruby
Guest7353 has joined #ruby
tcstar has joined #ruby
getschomp545 has joined #ruby
<Guest7353> Hey guys, what would be the best way to write binary data directly to a file? And I mean not convert to its binary equivelent but actually write the data so If I want the line "10101010101010101010110" Thats what would actually be the binary data of the file?
robwaz has joined #ruby
fir_ed has joined #ruby
tiripamwe has joined #ruby
meoblast001 has quit [Remote host closed the connection]
linguini has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<marco__> Guest7353: what about File.open(path, "wb") { |f| f.write data }
Fezzler has quit [Quit: Leaving]
himsin has quit [Remote host closed the connection]
io_syl has joined #ruby
icole has joined #ruby
<Guest7353> marco__: does that allow for direct binary writing or will it convert the data type into its binary equivalent
ezkl has joined #ruby
himsin has joined #ruby
<Guest7353> <---rather new to ruby, but not to programming
<marco__> Guest7353: what do you mean by equivalent?
rezzack has quit [Quit: Leaving.]
<Guest7353> I am writing a simple assembler which will read input from a file and generate the binary data and write it to a file, of course the binary data needs to be exact for the cpu to prccess it so if I have right now a string of "10101011100" or such I need to find a way to make it actually output that to the file and not the string version of that in binary
<marco__> Guest7353: oh ok so you have a string of 0s and 1s
<Guest7353> yup
<Guest7353> probably not the correct way, but I am again new to ruby
<bean> >> b="0b01"; p b.to_i(2)
<eval-in> bean: Output: "1\n" (http://eval.in/9562)
<ezkl> Guest7353: Great article here: https://practicingruby.com/articles/shared/oelhlibhtlkx
<bean> >> b="0b10"; p b.to_i(2)
<eval-in> bean: Output: "2\n" (http://eval.in/9563)
nat_home has joined #ruby
<bean> >> b="0b10"; p b
<eval-in> bean: Output: "\"0b10\"\n" (http://eval.in/9564)
cobragoat has joined #ruby
stopbit has quit [Quit: Leaving]
<Guest7353> ezkl: yea, I have been skimming through this aswell
robwaz has left #ruby ["Leaving"]
icole has quit [Ping timeout: 276 seconds]
pu22l3r has joined #ruby
pu22l3r has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
Marco has quit [Ping timeout: 245 seconds]
blf has quit [Quit: Page closed]
tomzx_mac has quit [Ping timeout: 245 seconds]
spaceships has quit [Quit: leaving]
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
arya has quit [Ping timeout: 248 seconds]
rippa has joined #ruby
drago757 has quit [Quit: drago757]
tiripamwe has left #ruby [#ruby]
ananthakumaran has joined #ruby
newUser1234 has quit [Ping timeout: 248 seconds]
arya has joined #ruby
a_a_g has joined #ruby
cparen has quit [Read error: Operation timed out]
jonathanwallace has quit [Ping timeout: 245 seconds]
arya has quit [Ping timeout: 248 seconds]
v0n has quit [Quit: WeeChat 0.4.1-dev]
tcstar has quit [Quit: Leaving]
kenneth has joined #ruby
moshee has quit [Ping timeout: 245 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
arya has joined #ruby
Cork- has quit [Quit: .]
Cork has joined #ruby
huoxito has quit [Quit: Leaving]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
cparen has joined #ruby
xemu has quit [Ping timeout: 245 seconds]
dallasm has quit [Remote host closed the connection]
swarren has joined #ruby
ahokaomaeha has joined #ruby
alup has quit [Ping timeout: 246 seconds]
caleb_io has joined #ruby
ksinkar has joined #ruby
ezkl has quit [Quit: out!]
rippa has quit [Ping timeout: 240 seconds]
theshow has quit [Ping timeout: 272 seconds]
swarren has left #ruby ["Textual IRC Client: www.textualapp.com"]
dmiller1 has joined #ruby
thone has quit [Read error: Connection reset by peer]
caleb_io has quit [Quit: caleb_io]
chrisramon has quit [Quit: chrisramon]
thone has joined #ruby
bigmac has quit [Quit: Leaving]
maletor has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
dmiller1 has quit [Ping timeout: 252 seconds]
rtdp has joined #ruby
blacktulip has joined #ruby
billiam has quit [Read error: Connection reset by peer]
theshow has joined #ruby
mockra has quit [Remote host closed the connection]
noop has joined #ruby
thufir_ has joined #ruby
yacks has quit [Read error: Operation timed out]
zeade1 has joined #ruby
mattbl has joined #ruby
max_develop has joined #ruby
max_develop has quit [Client Quit]
krz has joined #ruby
decoponio has joined #ruby
davetherat1 has joined #ruby
eddie_ has joined #ruby
<eddie_> Active record doubt?
<eddie_> Help?
<Hanmac> eddie_ we are not doubing anything ... but this guys at #rubyonrails do
<eddie_> Active record
billy_ran_away has quit [Ping timeout: 252 seconds]
daniel_hinojosa has quit [Quit: Leaving.]
<bean> eddie_, what?
AntiTyping has quit [Quit: AntiTyping]
<eddie_> I have a model
<eddie_> Transactions
<eddie_> Which belongs to Clients
postmodern has joined #ruby
<eddie_> I wanna run a select query
<eddie_> for a list of transactions with some conditions
<eddie_> i also need the client name with the result
angusiguess has joined #ruby
<eddie_> i currently only have client_id with it
<eddie_> ?
davetherat has quit [*.net *.split]
zeade has quit [*.net *.split]
kenichi has quit [*.net *.split]
cableray has quit [Quit: cableray]
<Hanmac> eddie i told you that we are not the ActiveShit guys ... they are on #rubyonrails
<bean> eddie_, then couldn't you just do a Client.find(client_id)
<bean> what Hanmac says is true though.
<bean> Don't really care for the shit.
casheew has quit [Ping timeout: 245 seconds]
<eddie_> ???????
<bean> eddie, it's a question for #rubyonrails.
generalissimo has joined #ruby
casheew has joined #ruby
<eddie_> ok
<bean> plus, any model you've created would probably be too in-depth for anyone to really help with without you showing some code.
etcetera has joined #ruby
<bean> eddie_, based on what I know, though, you could probably do a join.
sn0wb1rd has quit [Quit: sn0wb1rd]
sn0wb1rd has joined #ruby
codecop has joined #ruby
dallasm has joined #ruby
wargasm has quit [Ping timeout: 240 seconds]
adeponte has quit [Remote host closed the connection]
braoru_aw is now known as braoru
girija_ has joined #ruby
JumpMast3r has joined #ruby
djwonk has quit []
fir_ed has quit [Read error: Connection reset by peer]
timonv has joined #ruby
tagrudev has joined #ruby
baba has quit [Read error: Operation timed out]
plotter has quit [Remote host closed the connection]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
sn0wb1rd_ has joined #ruby
getschomp545 has quit [Quit: Leaving.]
sn0wb1rd has quit [Ping timeout: 252 seconds]
sn0wb1rd_ is now known as sn0wb1rd
Hanmac has quit [Ping timeout: 245 seconds]
subbyyy has quit [Quit: none 0.3.9.2]
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
dhruvasagar has joined #ruby
aaronmacy has quit [Quit: Leaving.]
Mchl has joined #ruby
JohnBat26 has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
razibog has joined #ruby
SIFTU has quit [Read error: Connection reset by peer]
austinbv has joined #ruby
baba has joined #ruby
SIFTU has joined #ruby
arya has quit [Ping timeout: 245 seconds]
jinzhu has joined #ruby
nate_h has quit [Read error: Connection reset by peer]
SIFTU has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
bendrix has joined #ruby
girija_ has left #ruby ["Ex-Chat"]
arya has joined #ruby
girija has joined #ruby
yacks has joined #ruby
SIFTU has joined #ruby
timonv_ has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
timonv has quit [Read error: Connection reset by peer]
dmiller1 has joined #ruby
stormetrooper has joined #ruby
kenichi has joined #ruby
mattbl has joined #ruby
sayan has joined #ruby
willvarfar has joined #ruby
nari has quit [Ping timeout: 276 seconds]
<willvarfar> <-- long-time programmer just looking at ruby because there's a project I want to help that is written in rails; so I am trying to work out the mind-set I need for reading Ruby code
havenwood has quit [Read error: Connection reset by peer]
joeycarmello has quit [Remote host closed the connection]
dmiller1 has quit [Ping timeout: 248 seconds]
<willvarfar> I'd characterise, say, golang as a very direct language. It has an almost pascal-like directness; you write down exactly how you want data to move about. Is it fair to say Ruby is the opposite? That in Ruby the app code is almost a DSL and the helpers and frameworks are all intrusively injecting themselves and doing their thing?
mattbl has quit [Client Quit]
newUser1234 has joined #ruby
rtdp has quit [Quit: Leaving]
<shevy> willvarfar what is "app code"
PanPan has quit [Read error: Connection reset by peer]
<shevy> willvarfar I suppose you refer to ruby on rails solely
b1rkh0ff has quit [Ping timeout: 276 seconds]
PanPan has joined #ruby
<willvarfar> yah
zeade1 has quit [Quit: Leaving.]
<shevy> willvarfar when you look at rubyonrails code, the framework is extremely specialized and very hard to "generalize" from, since the codebase is huge, and it uses like what, 20 different subprojects
<shevy> all the Active* things
<shevy> erb is also used, which is just plain ugly
<austinbv> no framework has to be intrusive
zzing has quit [Quit: Computer has gone to sleep.]
<austinbv> including rails
bean has quit [Read error: Connection reset by peer]
<shevy> willvarfar what is typical for most ruby projects is that you will use plenty of classes
<willvarfar> fair point
bean has joined #ruby
<willvarfar> so when I look at a function in a rails project, the reason as a rank beginner I can't see where things like form arguments are parsed is because of subclassing and it all being done higher-up?
nate_h has joined #ruby
<shevy> to give you one example, in a project I use I have a simply class called CreateDirectories. this class does nothing awesome, it only creates the directories bin/ include/ lib/ ... and I think share/ in a respective "AppDir" (versioned standalone directory, such as CreateDirectores.new("python-3.0.0"))
<shevy> willvarfar ruby uses typically call functions methods, as everytime you use "def", it is attached to some kind of object
<shevy> even when you dont define anything inside a module or class, it still becomes part of a method. I think of class Object by default, but it is somehow private or hidden or something like that
<shevy> willvarfar dunno, you only need to obtain that URL query string
<shevy> you can use plain .cgi scripts to get a query string too, by the way
<shevy> CGI.new('html4').query_string
<shevy> or better, the parameters
<shevy> PARAMS = CGI.new.params
<shevy> once you have this string, you can pass it among different classes
<shevy> YourClass.new(PARAMS) for instance
<shevy> willvarfar it would be easier if you give a specific example :)
nari has joined #ruby
pu22l3r has quit [Remote host closed the connection]
mattbl has joined #ruby
<austinbv> willvarfar: because ruby lacks any formal interface we use ducktypes, in the case of an ActiveRecord object and a form helper (form_for) the form helper will call #to_param on the passed in instance. If the method does not exist or return the correct ducktype say an array instead of a string you will have a runtime exception
dallasm has quit [Remote host closed the connection]
clocKwize has joined #ruby
<willvarfar> I mean I'm clicking around in https://github.com/mission-of-mercy/mission-of-mercy/tree/master/app and feeling that at every file I look at, it doesn't contain logic only definition
mattbl has quit [Client Quit]
<willvarfar> I'm just trying to short-cut the learning process by asking you lot about the general thrust of rails; I will of course do a hello world whatnot
Elhu has joined #ruby
monkegji_ has quit [Remote host closed the connection]
aapzak has quit [Read error: Connection reset by peer]
etcetera has quit []
beardyjay has quit [Ping timeout: 255 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
<shevy> willvarfar well, a lot of the magic that is going on is done by the rails code
b1rkh0ff has joined #ruby
<shevy> willvarfar if you want to understand how rails works, you would have to look at the rails code, not at app code
<willvarfar> > That in Ruby the app code is almost a DSL
<shevy> you again write "in Ruby"
aaronmacy has joined #ruby
<willvarfar> because I pasted
<shevy> I can tell you in all my about 5000 different .rb files, I never wrote any "app code"
<willvarfar> we all know we've passed through that already
pskosinski has joined #ruby
<shevy> well, the people who like rails terminology a lot tend to be on #rubyonrails
arya_ has joined #ruby
<epochwolf> Is there a way in ruby to accept a path from a user and prevent traversal outside a safe directory?
mockra has joined #ruby
<austinbv> epochwolf: regex?
<epochwolf> other than using absolute_path and checking the beginning of the path
aapzak has joined #ruby
<epochwolf> austinbv: don't regex the raw input, call absolute path and then check the beginning of the string to make sure it's inside the folder.
piotr_ has joined #ruby
arya has quit [Ping timeout: 256 seconds]
arya has joined #ruby
workmad3 has joined #ruby
mafolz has joined #ruby
razibog has quit [Ping timeout: 245 seconds]
slainer68 has joined #ruby
mockra has quit [Ping timeout: 260 seconds]
arya_ has quit [Ping timeout: 276 seconds]
<willvarfar> fair enough, thx all
monkegji_ has joined #ruby
willvarfar has quit [Quit: Leaving]
austinbv has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 255 seconds]
innohero has joined #ruby
beliveyourdream has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
josh_keith has joined #ruby
beardyjay has joined #ruby
skattyadz has joined #ruby
yacks has quit [Ping timeout: 240 seconds]
angusiguess has quit [Ping timeout: 245 seconds]
kiwnix has quit [Remote host closed the connection]
joeycarmello has joined #ruby
aganov has joined #ruby
mahmoudi_ has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
<shevy> guys
<shevy> how would you use ansi colours for your ruby scripts? but they should be only optional
<shevy> for instance, I may want to use a .rb file both on the commandline and as part of a .cgi script or app on the WWW
<shevy> I just can't make up my mind... for a while I did this:
<shevy> puts GREEN+'Hello '+BLUE+' World.'
yacks has joined #ruby
zommi has joined #ruby
<shevy> or if you want to use ""
ottbot has joined #ruby
<shevy> puts "#{GREEN}Hello #{BLUE} World."
<shevy> the problem is that these are hardcoded values
<shevy> and I don't really want to force my colours onto other users
wallerdev has quit [Quit: wallerdev]
lolmaus has joined #ruby
joeycarmello has quit [Ping timeout: 255 seconds]
arya has quit [Ping timeout: 276 seconds]
lurch_ has joined #ruby
adeponte has joined #ruby
grzywacz has joined #ruby
fedza_ has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
adeponte has quit [Read error: Connection reset by peer]
fedza_ has joined #ruby
adeponte has joined #ruby
benlieb has joined #ruby
zommi has quit [Quit: Leaving.]
monkegji_ has quit [Remote host closed the connection]
marco__ has quit [Remote host closed the connection]
arya has joined #ruby
ngoldman has quit [Remote host closed the connection]
Elhu has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Read error: Operation timed out]
zommi has joined #ruby
<shevy> wake up!!!
zommi has quit [Client Quit]
Norrin has joined #ruby
francisfish has joined #ruby
toekutr has quit [Read error: Connection reset by peer]
Proshot has joined #ruby
austinbv has joined #ruby
mibitzi has joined #ruby
benlieb has quit [Quit: benlieb]
Morkel has quit [Read error: Connection reset by peer]
eldariof has joined #ruby
Morkel has joined #ruby
ephemerian has joined #ruby
<tobiasvl> just use them like any other parameters with default values
dmiller1 has joined #ruby
TheFuzzball has joined #ruby
bendrix has quit [Ping timeout: 257 seconds]
sayan has quit [Read error: Connection reset by peer]
atyz has joined #ruby
austinbv has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
blaxter has joined #ruby
moshee has quit [Ping timeout: 256 seconds]
swex_ has joined #ruby
moshee has joined #ruby
arya has quit [Ping timeout: 248 seconds]
timonv_ has quit [Remote host closed the connection]
dmiller1 has quit [Ping timeout: 240 seconds]
swex has quit [Ping timeout: 252 seconds]
francisfish has quit [Remote host closed the connection]
lurch_ has quit [Quit: lurch_]
benlieb has joined #ruby
josh_keith has quit [Ping timeout: 252 seconds]
adeponte has quit [Remote host closed the connection]
joeycarmello has joined #ruby
becom33 has joined #ruby
<shevy> hmm
<shevy> Could you reword what you mean or give an example please? I don't quite understand it, you mean a method instead, with default parameters?
arya has joined #ruby
skattyadz has quit [Quit: skattyadz]
<becom33> I have a problem using a mail gem . Im not sure why but my mails arnt sending http://pastebin.com/KPc8BsGd
dr_bob has joined #ruby
dr_bob has quit [Client Quit]
adeponte has joined #ruby
Norrin has left #ruby [#ruby]
jinzhu has quit [Quit: Lost terminal]
anderse has joined #ruby
ottbot has quit [Ping timeout: 248 seconds]
dr_bob has joined #ruby
fixl has joined #ruby
ebouchut has quit [Read error: Connection reset by peer]
becom33 has quit [Ping timeout: 245 seconds]
aryatosh has joined #ruby
generalissimo has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 245 seconds]
jprovazn has joined #ruby
josh_keith has joined #ruby
Al__ has joined #ruby
arya_ has joined #ruby
arya has quit [Ping timeout: 276 seconds]
aryatosh_ has joined #ruby
mattbl has joined #ruby
aryatosh has quit [Ping timeout: 252 seconds]
arya_ has quit [Ping timeout: 248 seconds]
benlieb has quit [Quit: benlieb]
aryatosh_ has quit [Ping timeout: 256 seconds]
angusiguess has joined #ruby
<nat_home> what am I doing wrong here https://gist.github.com/nfelsen/1d74acf0647e950dc937 basically I'd like conf to be a json
<nat_home> but it comes back as a string containing a json
samphippen has joined #ruby
nomenkun has joined #ruby
arya has joined #ruby
<tobiasvl> shevy: you're not talking about a method?
<tobiasvl> shevy: you haven't shown any code so it's kinda hard to understand and help
aryatosh has joined #ruby
newUser1234 has quit [Remote host closed the connection]
newUser1234 has joined #ruby
angusiguess has quit [Ping timeout: 272 seconds]
maxmanders has joined #ruby
newUser1234 has quit [Ping timeout: 248 seconds]
arya has quit [Ping timeout: 248 seconds]
maxmande_ has joined #ruby
emocakes has joined #ruby
Mon_Ouie has joined #ruby
maxmanders has quit [Read error: Operation timed out]
becom33 has joined #ruby
becom33 has quit [Changing host]
becom33 has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
TheFuzzball has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
arturaz has joined #ruby
jinzhu has joined #ruby
jinzhu has quit [Client Quit]
Proshot is now known as statarb3
vlad_starkov has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
mahmoudimus has joined #ruby
marr has joined #ruby
predator117 has joined #ruby
Elhu has joined #ruby
becom33 has quit [Ping timeout: 256 seconds]
adeponte has quit [Remote host closed the connection]
dr_bob has quit [Quit: Leaving.]
jimeh has joined #ruby
maxmande_ has quit [Quit: Textual IRC Client: www.textualapp.com]
zommi has joined #ruby
haxrbyte has joined #ruby
relixx has joined #ruby
ssedano has joined #ruby
cparen has quit [Quit: cparen]
haxrbyte_ has joined #ruby
agarie_ has quit [Remote host closed the connection]
dr_bob has joined #ruby
<ssedano> Hi, is there an idiomatic way to exclude directories when executing 'Dir.glob("**/*.txt")'? I can't make it work with regexp, Dir.glob("([^exclude1,exclude2]|**)/*.txt")
ferdev|away is now known as ferdev
Gwyxx has joined #ruby
<tobiasvl> ssedano: glob != regexp
<ssedano> I see
slainer68 has joined #ruby
<tobiasvl> glob: * and ?, regexp: .* and .
Xeago has joined #ruby
zz_chrismcg is now known as chrismcg
<ssedano> even playing with File::fnmatch
<ssedano> so I must pass in a block to reject?
austinbv has joined #ruby
haxrbyte has quit [Ping timeout: 272 seconds]
jlebrech has joined #ruby
<jlebrech> shame this doesn't work https://gist.github.com/jlebrech/4761083
lurch_ has joined #ruby
dmiller1 has joined #ruby
slainer68 has quit [Ping timeout: 240 seconds]
LouisRoR has joined #ruby
austinbv has quit [Ping timeout: 252 seconds]
adkron has joined #ruby
Dawe82 has joined #ruby
adkron_ has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
dmiller1 has quit [Ping timeout: 256 seconds]
francisfish has joined #ruby
a_a_g1 has joined #ruby
Dawe82 has quit []
jimeh has quit [Quit: Bye.]
hoelzro|away is now known as hoelzro
hmarr has joined #ruby
a_a_g has quit [Ping timeout: 252 seconds]
nat_home has quit [Quit: Leaving.]
adkron_ has quit [Ping timeout: 276 seconds]
adkron has quit [Ping timeout: 276 seconds]
jimeh has joined #ruby
mercwithamouth has joined #ruby
jimeh has quit [Client Quit]
adeponte has joined #ruby
nari has quit [Ping timeout: 276 seconds]
LouisRoR has quit [Ping timeout: 245 seconds]
adkron_ has joined #ruby
jimeh has joined #ruby
chichou has joined #ruby
ottbot has joined #ruby
hmarr has quit [Quit: Computer has gone to sleep.]
pygmael has joined #ruby
rdark has joined #ruby
adkron_ has quit [Ping timeout: 245 seconds]
poseid has joined #ruby
LouisRoR has joined #ruby
ddd has joined #ruby
hbpoison has quit [Ping timeout: 255 seconds]
ferdev is now known as ferdev|away
ferdev|away is now known as ferdev
ferdev has quit [Quit: Linkinus - http://linkinus.com]
elaptics`away is now known as elaptics
cpx_ has joined #ruby
Vainoharhainen has joined #ruby
beaky has joined #ruby
<beaky> hello
<beaky> is ruby inspired by haskell?
<hoelzro> I wouldn't say so
Choobie has quit [Ping timeout: 245 seconds]
ddd has left #ruby [#ruby]
ddd has joined #ruby
<lewellyn> i'd say it's more inspired by perl.
<hoelzro> Perl and Smalltalk for sure
<raz> is there a way to test whether an object is serializable (with Marshal) without actually serializing it?
<lewellyn> i've never seen it described as "haskell-y" at least ;)
<lewellyn> i mean, someone once tried to tell me it was like pike. so if it was "inspired by haskell", someone would likely have tried to convince me of it by now. ;)
<lewellyn> raz: not as far as i know.
angusiguess has joined #ruby
<a_a_g1> isnt it like the opposite pole of haskell?
<raz> sad :(
adeponte has quit [Remote host closed the connection]
a_a_g1 is now known as a_a_g
<lewellyn> raz: you could probably infer if something is serializable, however.
<lewellyn> raz: notably "Marshal can't dump following objects"
<raz> lewellyn: hmm, yea guess i'm gonna try again testing for marshal_dump
Vainoharhainen has quit [Read error: Connection reset by peer]
<raz> last time i tried that didn't work out as expected, but perhaps i was doing it wrong
workmad3 has joined #ruby
<lewellyn> raz: probably! :D
thufir_ has quit [Quit: Leaving.]
<raz> occam's razor etc. ;)
<lewellyn> the only time i'd think you can't just check if something can be dump()ed would be if that would be too time-consuming for some reason.
maxmanders has joined #ruby
<raz> yup, this is mostly about warning the user (developer) when he sticks an object in there that he shouldn't
ahokaomaeha has quit [Ping timeout: 255 seconds]
<lewellyn> heh. your own objects?
Demux has quit [Ping timeout: 255 seconds]
mrdtt has joined #ruby
Vainoharhainen has joined #ruby
<raz> yup this is just about handing status around that will eventually be serialized
mrdtt has quit [Client Quit]
<raz> better to give an early warning than to just explode later
<lewellyn> well, you can't really prevent them from trying to serialize something unserializable
<raz> but i can (try) to prevent them from calling my method with something unserializable :)
<lewellyn> that's pretty much a gotcha to document. "the object passed must be dumpable with marshal" and done. ;)
hamed_r has joined #ruby
<raz> yeh, better safe than sorry
<lewellyn> raz: it's possible for it to be time-consuming to marshal. but if no one complains... :)
<raz> heh
tils has quit [Quit: ZNC - http://znc.sourceforge.net]
<raz> "why? ofcourse we can marshal that fd, given enough time" :)
tils has joined #ruby
Axsuul has quit [Ping timeout: 240 seconds]
sayan has joined #ruby
<Guest7353> Ok so I have been looking including at the article posted and I am unsure on how to write a binary file directly from what I got so that If I have a string of "0000000100101010010000000010000000000001" it will literally write that data to a binary file and not a string representation of it
<lewellyn> raz: yes. that was one scenario which came to mind ;)
<raz> Guest7353: you're probably looking for Array#pack
dawkirst has joined #ruby
hbpoison has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
timmow has joined #ruby
razibog has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
rafaelcaricio has joined #ruby
yacks has quit [Ping timeout: 272 seconds]
timonv has joined #ruby
<Guest7353> raz that appears to let me select a format for the binary representation but nothing quite like the literal as its written format
innohero has left #ruby ["Leaving"]
<raz> Guest7353: not sure what you're trying to do?
<Guest7353> Write that data to a binary file
<Guest7353> as it is
<Guest7353> I am writing an assembler
<raz> you mean interpret that string as bits?
<Guest7353> I am trying to
<Guest7353> :D
hit has joined #ruby
<beaky> chunk it into bytes and translate :D
daniel_- has joined #ruby
hmarr has joined #ruby
<Guest7353> well I am unsure how to, I mean I need to translate it into bits, I am not sure there is an easy way or if I will have to go through each charcter and say which each one writes but even there I dont know how to write that data dirctly as binary
yakko_ has joined #ruby
Demux has joined #ruby
Jeaye has quit [Quit: zzzZZZzzz]
Yakko has quit [Ping timeout: 245 seconds]
<beaky> http://stackoverflow.com/questions/13859601/how-to-get-char-from-binary-in-haskell might work, then you can just print out the resulting string :D
<Guest7353> seems like the inverse of what I am doing, but I can look at it :P
sahbeewah has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Ping timeout: 257 seconds]
slainer68 has joined #ruby
himsin has quit [Remote host closed the connection]
imami|afk is now known as banseljaj
himsin has joined #ruby
austinbv has joined #ruby
mahmoudimus has joined #ruby
dmiller1 has joined #ruby
maxmanders has joined #ruby
rakaar has joined #ruby
kristofers has joined #ruby
cobragoat has quit [Remote host closed the connection]
austinbv has quit [Ping timeout: 252 seconds]
slainer6_ has joined #ruby
dcwu has quit [Quit: Leaving.]
vlad_sta_ has joined #ruby
poikon_ has joined #ruby
dmiller1 has quit [Ping timeout: 248 seconds]
Al__ has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 251 seconds]
girija has quit [Ping timeout: 256 seconds]
Al___ has joined #ruby
frank_ has joined #ruby
atmosx_desktop has joined #ruby
jodok has joined #ruby
jodok has quit [Changing host]
jodok has joined #ruby
frank_ is now known as franks2
franks2 has quit [Changing host]
franks2 has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
poikon is now known as Guest65808
Guest65808 has quit [Killed (moorcock.freenode.net (Nickname regained by services))]
poikon_ is now known as poikon
aaronmcadam has joined #ruby
poikon_work has joined #ruby
undersc0re97 has joined #ruby
atyz has quit [Quit: Leaving...]
haxrbyte_ has quit [Read error: Connection reset by peer]
swistak35 has quit [Ping timeout: 245 seconds]
samuel02 has joined #ruby
emergion has joined #ruby
JonnieCa1he has quit [Quit: Lost terminal]
ebouchut has joined #ruby
Al___ has quit [Quit: Al___]
beaky has quit [Quit: leaving]
haxrbyte has joined #ruby
daniel_- has quit [Ping timeout: 260 seconds]
Neomex has joined #ruby
Neomex has quit [Client Quit]
yshh has quit [Remote host closed the connection]
vlad_sta_ has quit [Read error: Connection reset by peer]
banseljaj is now known as imami|afk
haxrbyte has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
sayan has quit [Quit: Leaving]
haxrbyte has joined #ruby
apok has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
swarley- has quit [Ping timeout: 276 seconds]
hamed_r has quit [Ping timeout: 245 seconds]
girija has joined #ruby
baphled has joined #ruby
Virunga has joined #ruby
hbpoison_ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Demux_ has joined #ruby
robotmay has joined #ruby
Vainoharhainen has quit [Ping timeout: 272 seconds]
timmow has quit [Read error: Connection reset by peer]
timmow has joined #ruby
grzywacz has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 252 seconds]
arya has joined #ruby
Al___ has joined #ruby
eka has joined #ruby
DuoSRX has joined #ruby
yewton has quit [Excess Flood]
Vainoharhainen has joined #ruby
skum has joined #ruby
Demux has quit [*.net *.split]
hbpoison has quit [*.net *.split]
undersc0re97 has quit [*.net *.split]
aganov has quit [*.net *.split]
kenichi has quit [*.net *.split]
aganov has joined #ruby
hamed_r has joined #ruby
yewton has joined #ruby
ferdev has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
skumt has joined #ruby
Vainoharhainen has quit [Ping timeout: 252 seconds]
ozgura has quit [Remote host closed the connection]
adeponte has joined #ruby
vlad_starkov has joined #ruby
predator117 has quit [Ping timeout: 256 seconds]
Vainoharhainen has joined #ruby
erlingur has joined #ruby
skum has quit [Ping timeout: 256 seconds]
apok has quit [Quit: apok]
elico has joined #ruby
atyz has joined #ruby
perun_ has quit [Ping timeout: 260 seconds]
renanoronfle has joined #ruby
skumt has quit [Ping timeout: 248 seconds]
Hanmac has joined #ruby
cdt has joined #ruby
emocakes has quit [Quit: emocakes]
adeponte has quit [Ping timeout: 272 seconds]
aaronmcadam has quit [Quit: aaronmcadam]
yakko_ has quit [Read error: Connection reset by peer]
atyz has quit [Ping timeout: 248 seconds]
skum has joined #ruby
Yakko has joined #ruby
chussenot has joined #ruby
tomku has quit [Ping timeout: 252 seconds]
atmosx_desktop has quit [Quit: And so the story goes…]
Guest7353 has quit [Quit: WeeChat 0.4.0]
Vainoharhainen has quit [Ping timeout: 264 seconds]
BrindleFly has joined #ruby
poikon_ has joined #ruby
poikon has quit [Ping timeout: 272 seconds]
aaronmcadam has joined #ruby
<jlebrech> alias method isn't very rubyistic
<Hanmac> shevy ping
<jlebrech> 'alias'
<heftig> it's not even a method
<shevy> Hanmac hey
<shevy> jlebrech alias_method() or plain alias?
<shevy> Hanmac lol
<jlebrech> shevy, i mean 'alias', alias_method is ok i guess
<shevy> no idea why US cops are so gunhappy
<hoelzro> it's not the cops, it's the drones =P
<heftig> meat drones?
<Hanmac> hoelzro so the cops are drones? that would explain it :P
Konboi has quit [Remote host closed the connection]
<shevy> hoelzro, hehe well they seem to have become crazy -> http://www.latimes.com/news/local/la-me-torrance-shooting-20130209,0,4414028.story
buscon has joined #ruby
<Hanmac> shevy https://www.youtube.com/watch?v=nc60XPCXrh8 << the Zombie Apocalype begins :D
* hoelzro sighs
vlad_starkov has quit [Ping timeout: 256 seconds]
perun_ has joined #ruby
<hoelzro> sometimes I never want to move back.
ksinkar_ has joined #ruby
austinbv has joined #ruby
ksinkar has quit [Ping timeout: 255 seconds]
bartj3 has joined #ruby
<Hanmac> heftig so human cops for human crimes and robot cops for robot crimes? i think this is plausible
<atmosx> I updated my rvm, now vim works
<atmosx> AWESOME!
<workmad3> Hanmac: is it possible for a robot to commit crimes?
cdt has quit [Remote host closed the connection]
<atmosx> workmad3: sure
dmiller1 has joined #ruby
<Hanmac> workmad3 i would not suprised
<workmad3> atmosx: how? how can the robot commit it, rather than just be a tool used to accomplish it?
<atmosx> workmad3: I'm with you on that, I was just joking
<workmad3> :)
<atmosx> workmad3: you know keep the conversation going
<atmosx> lol
* atmosx cleaning up the room
undersc0re97 has joined #ruby
kenichi has joined #ruby
tomku has joined #ruby
austinbv has quit [Ping timeout: 252 seconds]
undersc0re97 is now known as Guest89710
dmiller1 has quit [Ping timeout: 245 seconds]
matrixis1 is now known as matrixise
<Hanmac> if a AI is high enough to decide todo a crime (and maybe understand that its a crime), what about that? dont we need cops & laws to solv that?
<Nuck> Are there any plans to ever fix require_relative in things like irb? It's so much prettier than require './foo/bar' IMO, especially when . doesn't refer to the current file's path, etc.
<Nuck> But I can't work without irb support :/
<epitron> Hanmac: we should probably figure out why it wants to do crimes
<epitron> just like we should do when humans commit crimes
<banister`sleep> Nuck: irb is for chumps
<Nuck> epitron: they commit crimes because they're criminals, haven't you been listening to society?
<Hanmac> epitron so we need robot psychoanalysts ?
<workmad3> banister`sleep: I'm a chump! I type in 'irb' :P
<epitron> Hanmac: people usually commit crimes because of resource shortages or addiction or something
* workmad3 hides his alias of irb to pry
<banister`sleep> hehe
<epitron> it's not usually some weird psychological problem :)
<banister`sleep> workmad3: do u have much experience with turbolinks?
<workmad3> banister`sleep: none at all
cdt has joined #ruby
<Hanmac> epitron so when a robot runs out of energy and resources what would the robot do to get it?
<Nuck> Is require_relative 'foo/bar' the same as require './foo/bar'?
<workmad3> banister`sleep: if I wanted that, I'd use pjax
<workmad3> Nuck: no
<Nuck> darn.
<Nuck> I was hoping I could safely monkeypatch it with a better implementation
<epitron> Hanmac: so, it would steal energy if it really wanted to keep running
<whitequark> if an AI is high
<whitequark> we need better drug control
<epitron> haha
<workmad3> Nuck: require_relative is the same as 'require File.join(File.dirname(__FILE__), 'foo/bar')'
* whitequark goes back to watching breaking bad
<epitron> "dude. you gotta try this patch. it's so amazing"
<epitron> "it connects dev/urandom to your logic centres"
<workmad3> Nuck: and that's not something I've been able to monkeypatch in, as __FILE__ changes between the file you call 'require' in and the file you implement your require_relative in
<workmad3> Nuck: but then, I don't tend to use require_relative, or the other workaround... I much prefer to just make sure my load path is correct
<shevy> :D
<shevy> nobody seems to love require_relative
<Nuck> workmad3: Oh right, that behemoth. Fun. Is there a shorthand for `require File.join(File.expand_path(File.dirname($0)), 'foo/bar')`?
<shevy> Nuck wow that is damn verbose
<shevy> let's see if we can make it longer
<epitron> require_relative "grandpa"
<Nuck> Cause the relative-to-initiating-ruby-script is exremely useful
niklasb has joined #ruby
<workmad3> shevy: well, a normal 'require' fixes the location of one path in the load path
rakaar has quit [Ping timeout: 240 seconds]
<workmad3> shevy: a require relative fixes the location of two paths relative to each other, irrespective of the load path
<shevy> I hate relative paths
<Nuck> lol
<epitron> everything is relative, my friend
<shevy> rm '../foo'
hamed_r has quit [Ping timeout: 245 seconds]
<shevy> hmm or
<shevy> rm -rf '../'
<Nuck> Actually. I could probably implement this behemoth in an external file...
* Hanmac likes reguire_relative relativy more than normal require with "./"
<shevy> epitron yeah, the / directory is always relative to the main hdd on a *nix system, windows has it a bit awkward, C: D: E: ...
<epitron> require_relative '2nd-cousin-twice-removed'
Targen has quit [Ping timeout: 252 seconds]
<Nuck> I like require_relative's behavior more for the ./ and ./'s behavior more for the require_relative
samphippen has joined #ruby
<workmad3> Nuck: in your initialising script, add '$: << File.expand_path(File.dirname(__FILE__))'
<Nuck> workmad3: ... Isn't that a bad idea though?
<shevy> Hanmac but a project won't need to do: require './bla.rb' if one installs into site dir
<workmad3> Nuck: why?
<epitron> shevy: don't forget about the multiverse it's in
<workmad3> Nuck: you're already saying you're going to trust code loading relative to that location
<Nuck> workmad3: Doesn't that modify the behavior of require for the entire process, including any other required things?
<atmosx> shevy: did you work on dna sequencing of any kind?
baphled has quit [Ping timeout: 276 seconds]
fryguy has quit [Ping timeout: 276 seconds]
<epitron> cd ../../$(quantum-fork-3981127377831131)/
<Hanmac> shevy i dont trust the side dir, and i want that my tests and other stuff works too when it is not installed
<workmad3> Nuck: it adds it as the last item in the load path
<shevy> atmosx not really, we only used boring PCR kits to clone sequences based on the primer sequence
<Hanmac> (i mean when i run it from source)
<shevy> atmosx do you know BioBricks btw?
<workmad3> Nuck: so as long as all your gems are activated first, everything will shadow that, not the other way around
<atmosx> shevy: I see. Now who/what is biobricks?
<epitron> polymerase chain reactionnnn
<workmad3> Nuck: and you're already trusting for code
nari has joined #ruby
<atmosx> shevy: I'm on it
<shevy> atmosx http://biobricks.org/ the idea is cool, you would assemble different genes into a synthetic "organism" (well, a cell)
<epitron> i got to do plasmid ring transfer expriments when i was in high school
<epitron> we gave bacteria antibiotic resistance \o/
<Nuck> workmad3: Ah fair enough. I think my idea of defining my own require_relative_to_butts might be a bit safer though...
<shevy> atmosx they modified E. coli to sense and detect certain chemical compounds, and based on that either emit fluorescent light, or produce a chemical "odour" or similar
<atmosx> epitron: when I was in high school I didn't had a clue about what a plasmid was
<atmosx> wtf
<Nuck> workmad3: Less chance of blowing shit up, etc.
<shevy> epitron hehe that is cool... "live coding" :D
<workmad3> Nuck: and it's certainly safer than using '.' in your load path or in any requires
<epitron> i got a university credit for my high school bio course
<atmosx> shevy: cool
<epitron> international baccalauriate \o/
<atmosx> epitron: what are you studying?
<epitron> shevy: are you part of one of those bio hacklab things?
<epitron> atmosx: i graduated with a degree in CS in 2005
<Nuck> workmad3: Well, I'm currently using . in my requires, but I want to drop the dot and have everything relative to the project's root directory — which is thankfully easy
<workmad3> Nuck: as '.' is not relative to the starting script, it's dependent on the current path of your process... and can change at runtime, and relying on it forces you to run your script from a certain location
<shevy> epitron sadly no, I think it is mostly US-centric :(
<workmad3> Nuck: the correct way to do that is to add your project's root directory to the load path
<epitron> shevy: oic
<epitron> we have a small one in toronto
ferdev_ has joined #ruby
<shevy> atmosx, when you have time, some day, have a look at https://www.youtube.com/watch?v=xJFqqxxtbRY I loved this talk, at the end of it, he gives an overview over what some other research groups did
<Nuck> workmad3: Not to roll my own require?
<workmad3> Nuck: no
<epitron> SF is where all the hot shit is happening
<shevy> epitron cool, toronto... that's canada right? :D
browndawg has joined #ruby
<epitron> haha
<epitron> yes
<atmosx> shevy: that might help me
<epitron> there are a lot of torontos
rakaar has joined #ruby
<Nuck> workmad3: Hmm. Well then I guess I'll do that.
<epitron> google maps is always like, "did you mean toronto, ohio?"
<shevy> atmosx it was really a great talk he did back then. I watched some others, but they weren't as interesting
<shevy> his more recent talks weren't as good :(
<Nuck> epitron: Nobody gives a fuck about Ohio.
<shevy> it's as if every person has a peak-time, and then does not so interesting stuff... then does more interesting stuff again... then boring...
<epitron> Nuck: especially if your IP is from canada!
<Hanmac> epitron SF is the yesterday of tomorrow :P
<workmad3> Nuck: adding your root code path(s) to the load path is the standard, accepted way to do this... it's what all your gems do (and rely on), it's what pretty much every app framework I've ever seen do... it's the equivalent of setting your classpath in java
<shevy> epitron I only know two things about canada
<epitron> Hanmac: wat
<shevy> (1) the people are nicer than in the USA, on average (2) it is damn damn cold, almost like russia
Guest89710 is now known as undersc0re97
<workmad3> Nuck: it's essentially saying 'I trust code from this directory'
<epitron> those two things are correct
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
<Nuck> workmad3: I come from Node.js, where modifying require.paths is a sin :P
<clocKwize> anyone got any good ideas on generating ranges with certain steps?
<atmosx> shevy: I am trying to write a simple cli app that will match the RNA-poly3 of E.Cli to the DNA... but when the DNA is translated...
ferdev has quit [Ping timeout: 245 seconds]
<epitron> the 2nd one isn't that big a deal though, since 90% of our population is on the US border :)
<Nuck> workmad3: So forgive me for being so wary of modifying that X3
<shevy> (1) would be a reason to visit it, but (2) I kind of hate, there is snow everywhere in vienna right now, I'd rather want to escape it :(
<atmosx> shevy: It not trivial as I thought it would be at first.
<clocKwize> like (0.01..0.1, step: 0.005)
<shevy> epitron hehe I see. well I've never been in either of those two countries, one day I'll eventually come visit
<epitron> toronto is pretty mild since it's on the lake. vancouver is even milder, if you don't mind constant rain
<atmosx> shevy: I thought that it was easy to predict which part of the DNA produces which protein using a simple script but apparently it's way more complicated than that and you have to use statistics to do it.
<workmad3> Nuck: if you're doing it more than once or twice in your app, you're doing something wrong ;)
browndawg has quit [Max SendQ exceeded]
<Nuck> shevy: I know one thing about Canada: MAPLE. SYRUP.
<workmad3> Nuck: and in many projects, you shouldn't need even that, as it gets handled for you :)
<Nuck> EH.
<shevy> atmosx you mean degenerate codons? you could generate all matches, and then select the "most likely" codon (different organisms have different % preference for certain codons, this is called "codon bias")
* atmosx there's snow here too, I lov eit
<shevy> Nuck hahaha I read that they stole syrup
<epitron> THE HEIST
<shevy> I wondered if squirrels were the most likely culprit
<epitron> OF THE CENTURy
<workmad3> Nuck: but if you're building from scratch, then it's correct to add your project's code dir to the load path ;)
<epitron> 4 BILLION GALLONS OF MAPLE SYRUP
<workmad3> epitron: mmm, sounds like a good breakfast
<Hanmac> clockwize: Range steps does not work for float :(
<epitron> HALF OF THE WORLD'S SUPPLY
<shevy> yeah, in the USA they shoot at random cars hunting for a cop manhunter, and in canada they chase after syrup thieves. that's a huge difference between those two countries ;)
<Nuck> workmad3: Yeah I'm writing a bot from scratch. Wasn't aware that this was a common pattern — in Node.js we just lived with it. It was horrifying and awful and I hated it.
browndawg has joined #ruby
<shevy> atmosx I hate snow, especially if it is also wet, and very cold (wet -> a bit rain in between, cold -> if a strong wind blows). both is the case right now :(
<Nuck> ... "Canadian Maple Syrup Cartel"
<Nuck> I'm imagining this like a Mexican Drug Cartel
<shevy> lol
<banister`sleep> clocKwize: 0.01.step(1, 0.005).to_a
<epitron> haha
<atmosx> shevy: No it's simpler than that (in theory) but I don't know in practice, I want to know which part of the DNA produces which protein. Computer programs use the ORF approach, find the bigger (in length) frame and take that as a measure.
<Nuck> shady guys in backalleys, handing over a bottle of maple syrup while looking nonchalant
<epitron> maple syrup is kinda like a protection racket... instead of extracting cash from people, you extract sap from trees.
<shevy> atmosx hmm I see
Criztian has joined #ruby
<atmosx> shevy: where I live, it's alway sunny. I like the snow becuase it's rare to me :-P
<epitron> "YOU HOLDIN OUT ON US TREE?"
<epitron> *stab"
<workmad3> Nuck: incidentally, I suspect that messing with 'require.paths' in node.js is discouraged because the idea is that requireJS or commonJS owns that and has already set it up for you
<shevy> atmosx part of the problem may be that one can not always completely predict everything from the sequence alone, I think
mrhobbles has joined #ruby
<Nuck> "global strategic maple syrup reserve"
<atmosx> shevy: exactly.
<Nuck> The world has RESERVES of maple
<Nuck> This is amazing.
<epitron> epigenetics
<epitron> splicing code
<epitron> environmental factors
angusiguess has joined #ruby
<shevy> atmosx in theory, a perfect simulation of a cell should be able to calculate everything accurately
<epitron> introns
<workmad3> Nuck: which is generally the case with ruby too, apart from the case you're in, where you need to add an extra path for your project :)
<Nuck> workmad3: Nope, the reason was actually because of Ruby!
<clocKwize> banister`sleep: hmm, ok ta :)
<epitron> shevy: did you see the project to simulate an entire worm on a computer?
<banister`sleep> clocKwize: best way is to probably keep it as an Enumerator though
<Nuck> workmad3: They tell you not to modify require.paths because it "causes odd misbehaviors" which they learned from their time workingi n Ruby. Most of the Noders are ex-Rubyists.
<banister`sleep> clocKwize: 0.01.step(1, 0.005).each { }
<Nuck> I'm pretty sure I'm the only opposite one: a Noder turned Rubyist
<clocKwize> yeah :)
<clocKwize> only 199 things
<shevy> epitron haha cool no, have not seen that
<epitron> clocKwize: are you looking for a floating point interpolator?
<shevy> we only had a weak ass reference to the fruit fly
cdt has quit [Remote host closed the connection]
<clocKwize> but I've got to run a kalman filter against 7 versions of 1 second gps data for 180 minutes
<clocKwize> for each of those 199 iterations
<shevy> ack
<workmad3> Nuck: right, messing around with it throughout your entire apps run is bad
<epitron> shevy: oh, also, do you have the microbiology textbook?
<shevy> "Our most popular scripting language is Python" <--- bastards :(
<epitron> Molecular Biology of the Cell, 5th Edition
<shevy> epitron hmm which one? my favourite one is brock
<workmad3> Nuck: the idea is that you set up your load path at the start, then it is inviolate :)
<shevy> by watson? hmm or alberts
cdt has joined #ruby
cdt_ has joined #ruby
<Nuck> workmad3: Yeah, they completely actually removed require.paths — you can no longer access it :D
<epitron> alberts
alup has joined #ruby
<Hanmac> clockwize you may look at this http://eval.in/9569 ... it is a begining for solving your problem with rangestep
<Nuck> workmad3: they're a bit, uh, crazy
<epitron> (+ johnson, lewis, raff, roberts, walter)
<workmad3> Nuck: if you mess around with it later, it can indeed cause odd behaviour, especially with threads, and it can screw with method caches too
Al___ has quit [Remote host closed the connection]
<epitron> shevy: it's the textbook all the diybio people in SF are using
<epitron> it's hella detailed
<workmad3> Nuck: it wouldn't be unreasonable to do $:.freeze after you've finished setting it up ;)
Al___ has joined #ruby
<shevy> oh yeah, it's very good... I loved "molecular biology of the gene" more though, it kind of focused more on DNA and information, rather than the "surroundings" (the cell as environment)
<epitron> well, you can't do much hacking if you don't know about the environment
<shevy> epitron yeah, we had some classes where they said to read it
Mattix has joined #ruby
<epitron> it's like learning a programming language without knowing anything about the OS or standard library :)
<Nuck> workmad3: Well, I don't care, because either way, requiring things relative to my project root is like a wet dream for me.
<banister`sleep> Hanmac: how is that any different to Numeric#step(to, step) ?
<clocKwize> 0.01.step(0.1, 0.005).map { |v| v.round(3) } does the job
ryanh has joined #ruby
<workmad3> Nuck: haha :)
<shevy> epitron hehe yeah, nice comparison
angusiguess has quit [Ping timeout: 272 seconds]
<Nuck> workmad3: This problem caused my JS projects to get unmanagable. Some things had like "../../../../foo/bar"
<epitron> and biobricks are gems :D
<Hanmac> banister ah thanks i was looking at upto
<shevy> hehe
<workmad3> Nuck: bleh
<Nuck> And poof. ruby solves it. ILU Ruby.
<Nuck> Who could hang a name on you?
<workmad3> Nuck: that's worse, IMO... 'you get some odd behaviours if you screw with your load path all the time', so the solution is 'well, don't screw with it all the time, do it once at the start'
<workmad3> Nuck: the solution is not 'lets force you to couple the position of all your files in your code tree with every other file'
kpshek has joined #ruby
nomenkun_ has joined #ruby
<Hanmac> >> p (0.01).step(0.1,0.005).with_object(3).map(&:round)
<eval-in> Hanmac: Output: "[0.01, 0.015, 0.02, 0.025, 0.03, 0.035, 0.04, 0.045, 0.05, 0.055, 0.06, 0.065, 0.07, 0.075, 0.08, 0.085, 0.09, 0.095, 0.1]\n" (http://eval.in/9570)
<Nuck> workmad3: Yeah, it was pretty terrifying. And this was a "best practice" — glad to see Ruby got this one right!
<epitron> damn, this book even talks about the quantum mechanical forces (van der waals) involved in the cell
<epitron> good book
<workmad3> Nuck: it took a while for people to move away from messing with the load path so much though :)
<Nuck> workmad3: I actually tried for a Looooooooong time to monkey-patch it and never could due to the different sandboxing in Node
nomenkun has quit [Ping timeout: 252 seconds]
skattyadz has joined #ruby
<Nuck> Node really makes Ruby sound like a sinful place, but now I see the light.
<workmad3> Nuck: it was still not uncommon to see random files pushing onto $: back when I first started using ruby in anger, about 4/5 years ago
<Hanmac> epitron i read that they strick electodes into a cell and drain the energy the cell produces directly out of the cell :P
<workmad3> Nuck: or even doing $:.unshift... now that one is evil as it prepends the path :)
<Nuck> workmad3: haha yeah that seems like a bad idea to shove too much on it. But I don't see any purpose beyond pushing my project root onto there
<workmad3> Nuck: if you did that partway through an apps run, and the path happened to shadow something that was already required, that would really screw with things
alup has quit [Read error: Connection reset by peer]
taoru has quit [Remote host closed the connection]
<workmad3> Nuck: and if you then did that in one thread, loaded some code there...
<epitron> Hanmac: they sound like jerks
mengu has joined #ruby
mibitzi has quit [Quit: Leaving]
alup has joined #ruby
<workmad3> Nuck: so yeah, it's easy to see where 'odd behaviour' can come from when you mess around with $: too much... but it's like the old joke with 'doctor, my arm hurts if I do this' 'well stop doing that then'
<Hanmac> epitron it worked ... the energy was drained out (they looked how to use it for photovoltic cells ) ... but the cell dies to fast from the energy lost
Pandaen has joined #ruby
zommi has quit [Quit: Leaving.]
D4T has joined #ruby
<epitron> if you want chemical energy just use a potato
Virunga has quit [Remote host closed the connection]
haxrbyte has quit [Read error: Connection reset by peer]
browndawg has quit [Quit: Leaving.]
<shevy> Hanmac, I am watching youtube disco songs from the 1970s and 1980s while coding ruby :P
cdt has quit [Quit: Ex-Chat]
cdt_ has quit [Quit: Ex-Chat]
Marco has joined #ruby
<epitron> shevy: where are you from, btw?
<Hanmac> last days i was watching voyager while coding ruby :P
<epitron> voyager! \o/
<shevy> epitron europa, austria, vienna
Marco is now known as Guest62412
samphippen has quit [Quit: Computer has gone to sleep.]
<shevy> Hanmac I just need some happy music
<epitron> nice
<shevy> I cant really concentrate on anything else while coding :(
<shevy> anyone else feels the same?
atyz has joined #ruby
hit has left #ruby [#ruby]
<epitron> hearing words interfere with my programming ability
<epitron> i must be using the word part of my brian a lot
PanPan_ has quit [Quit: ChatZilla 0.9.90 [Firefox 18.0.2/20130201065344]]
zommi has joined #ruby
<epitron> i listen to a lot of instrumental music :)
<shevy> yeah
<epitron> somafm.com \o/
<shevy> when I try to concentrate on what is being said, it kind of drains "activity" from other parts of my poor brain
nfk has joined #ruby
embs_ has joined #ruby
<shevy> if it is just plain music, it is ok
<epitron> it might be that you need to write more tests :)
pyrac has joined #ruby
<shevy> but when it would be a scientific talk, I just can not follow it actively and also code at the same time
<epitron> you can think less when you test more
<shevy> haha good argument, need to do that more often
<shevy> the alternative could be that, the more you test, the dumber you will be while coding :P
bricker`work has joined #ruby
<epitron> that also happens :)
<epitron> it's a tradeoff
<clocKwize> got an old tower next to me which runs periodic backups and the fans spin up
<clocKwize> its very annoying
<workmad3> shevy: yeah, I'm like that (can't easily focus on coding + other stuff at the same time)
<clocKwize> I mentioned it to someone and they said its pc name is actually "harrier" heh
huismon has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
<shevy> workmad3 cool
<epitron> hahah
x0F_ is now known as x0F
DrCode has quit [Ping timeout: 276 seconds]
<shevy> can female programmers write code and talk at the same time? :D
<epitron> i wonder if overclockers ever tried using a jet engine to cool their CPU
arkiver has joined #ruby
embs has quit [Ping timeout: 248 seconds]
wereHamster has joined #ruby
atyz has quit [Ping timeout: 256 seconds]
spanner_ has joined #ruby
wereHams1er has quit [Ping timeout: 240 seconds]
cout has quit [Ping timeout: 240 seconds]
mehwork has quit [Ping timeout: 240 seconds]
spanner has quit [Quit: No Ping reply in 180 seconds.]
mehwork has joined #ruby
nate_h has quit [Ping timeout: 240 seconds]
bricker`1ork has quit [Ping timeout: 240 seconds]
<epitron> shevy: i think we were talking about this in another channel
<epitron> i can't remember the conclusion
<shevy> well
cout has joined #ruby
<workmad3> shevy: that said, I don't mind talking, etc. when coding, as long as it's something I'm familiar with so I can essentially ignore it :)
<shevy> it would be useful if you could split up your brain to do sub-tasks
<workmad3> shevy: which is why my coding playlists tend to be stuff I know and like, not new music
<shevy> right hand writes down notes, left hand does programming
<epitron> shevy: you mean pair programming? :)
<shevy> haha workmad3
<Nuck> Is there a style guide out there that includes file naming and locations too?
<shevy> epitron hmmm no, I think that is more a split of concern right? one person writes code, the other does quality assurance check and docu on it or?
<epitron> Nuck: i learned that by looking at gem source :)
<shevy> pair programming seems a bit more like what one person could do
<shevy> or should do, perhaps
ineb has joined #ruby
<shevy> people often write code, then dont want to write docu
<shevy> right Hanmac???
<Nuck> epitron: haha that works I guess, but I'm more of a cheatsheet guy
<shevy> Nuck I am not sure there are many
<Nuck> shevy: I prefer docs TYVM
techlife has quit [Ping timeout: 245 seconds]
<shevy> class FooBar, will usually be foo_bar.rb I think
atno has quit [Quit: Leaving]
<Nuck> I know style guides are rather lacking in Ruby
<shevy> whereas class Foobar would be foobar.rb
<epitron> shevy: i think you're overestimating the sophistication of our brains :)
<ineb> hello, i have a nooby question. http://paste.xinu.at/6JYXI/rb why isnt this code working without declaration of response by commenting it out?
<shevy> epitron yeah :( but perhaps in 300 years
<Nuck> shevy: I've been naming my files "FooBar.rb" for "class FooBar"
<epitron> hive mind! \o/
<shevy> hello future people! look at this old IRC comment in time!!! I predicted the superhuman cyborgs of the future!!!!!
* epitron gets a telepathic imlpant
techlife has joined #ruby
techlife has quit [Max SendQ exceeded]
<shevy> epitron, hive spam :P
<epitron> hive filter
<shevy> lol
<shevy> Nuck I had that too, for one project
<epitron> hive solves all
<atmosx> I find it hard to finnish a project once I figured it all out, imagine to write documentation about a large proejct.
<atmosx> Must be hell
<shevy> but someone else complained about this style
<workmad3> Nuck: mostly people do 'foo_bar.rb' for a class 'FooBar'
<shevy> and I compared it to my other projects, where I downcase file names, so I eventually switched to downcasing my file names always
techlife has joined #ruby
zommi has quit [Quit: Leaving.]
<Nuck> I don't get why people downcase filenames honestly :/
<epitron> if you want people to enjoy your program, writing documentation is usually easy
renanoronfle has quit [Quit: This computer has gone to sleep]
<shevy> Nuck personally I'd like to have a one-class, one-file rule
zommi has joined #ruby
<Nuck> If you have to work to document code, then you're writing APIs wrong
<epitron> if it's some bullshit program for a job whose users you'll never meet or care about... it can be much harder
samphippen has joined #ruby
<shevy> Nuck well it depends, unix file paths are downcased. if you upcase them, like /USR, you need to press left key in addition to typing "u" "s" "r"
fermion has joined #ruby
<epitron> caring about users is a good thing
<shevy> and if you do that 100000 times, eventually you become lazier
atno has joined #ruby
<ineb> i found out that i need to write @response instead of response. makes sense.
<shevy> on windows it may be different because the users do not work in a shell usually
<workmad3> shevy: also on windows filenames are case-insensitive, iirc
<shevy> workmad3 ah yeah, good point too
<Nuck> shevy: Class-per-file is usually valid, but for this, I've got things like Sold::DAmn::Packet where DAmn is a full class that inherits from Sold::DAmnSocket which causes trouble, etc.
<Nuck> So I'm having to budge on that
DrCode has joined #ruby
<epitron> windows is weird
<shevy> the underlying OS always has some kind of influence over decisions taken
<Nuck> Windows is awful
<atmosx> Windwos is suicide
<epitron> it has case sensitive directory listings, but if you're trying to access the file, case doesn't matter
Xeago_ has joined #ruby
Xeago is now known as Guest75864
Guest75864 has quit [Killed (verne.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<shevy> Nuck well alright
<shevy> Nuck if I would see Sold::DAmn::Packet, I would assume this structure:
niklasb has quit [Quit: WeeChat 0.4.0]
<shevy> sold/damn/packet.rb
zommi has left #ruby [#ruby]
<atmosx> I havent use them since 2002 or so... not for my main desktop. I use them whenever I have to...
<Nuck> It does: a large part of why I use "Title Case" for folders and files is because OS X encourages it
<shevy> Nuck if you downcase all, you never need to double guess
zommi has joined #ruby
<shevy> whereas, if you upcase everything, you would have to do this:
niklasb has joined #ruby
<shevy> SOLD/DAMN/PACKET.rb
<Nuck> shevy: But DAmn is itself a class, and constantly having to repeat the inheritance of DAmn < DAmnSocket in every file is kinda tricky
<shevy> or
<shevy> SOLD/DAMN/Packet.rb
<shevy> well
<shevy> as long as you are completely consistent
<shevy> :)
<workmad3> Nuck: you don't need to repeat the inheritance
<Nuck> Well, it's direct 1:1 with the classnames in that case — Sold::DAmn::Packet would be in Sold/DAmn/Packet
poikon_ has quit [Remote host closed the connection]
<Nuck> workmad3: I don't? :o Ruby bitched at me when I didn't
<workmad3> Nuck: just 'class Sold::DAmn::Packet' in Sold/DAmn/Packet
<Nuck> workmad3: Holy shit that works?
<shevy> Nuck do you know gobolinux? It had directores like: /Programs/GLibc/2.10 or /Programs/LibArchive/1.0 or /Programs/FFmpeg/0.5
<workmad3> Nuck: it'll only bitch if you do 'module Sold; class DAmn; class Packet'
ryanh has quit [Quit: Computer has gone to sleep.]
<shevy> I loved the basic layout, but when I copied it, I changed it to downcase all but the first character, so it would have been /Programs/Libarchive/1.0
<workmad3> Nuck: yes, 'class Sold::DAmn::Packet' works ;)
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<Nuck> shevy: So Maclike. We have /Users/foo/Library/Application\ Support/
<Nuck> And whatnot
<shevy> then for a while I tried /programs/libarchive but it looked ugly. I also tried /pkg/libarchive, which is at least shorter to type
<shevy> Nuck hmm
<shevy> gobolinux used /Users too, and had no real /home dir
<shevy> and no /root either
<Nuck> workmad3: Ruby consistently outsmarts me.
<shevy> you only had 5 directories in /
<Nuck> This is amazing.
poikon has joined #ruby
<Nuck> Every time I go "hmm I wish I could do ____ but they'd never implement that" RUBY HAS IT
<workmad3> Nuck: :: is basically used for nested constants ;)
<shevy> and /Files was not needed, so you could have used only 4 dirs there, it is really elegant compared to default unix spam ... /etc /root /home /sbin /bin/ /usr /lib /media /mnt /opt /var
austinbv has joined #ruby
ineb has quit [Quit: leaving]
<workmad3> Nuck: so Sold::DAmn::Packet is just a nested constant
<Nuck> shevy: Did they at least get rid of the /, /usr/, /home/ split?
divout has quit [Remote host closed the connection]
<shevy> and /vmlinuz symlink...
<Nuck> Cause that needs to be removed *so* hard
<shevy> Nuck yeah
james has joined #ruby
<shevy> well
<Nuck> The fact that it came from the developers' tiny hard drives is dumb
<workmad3> Nuck: which should also give you a hint about what 'class names' really are in ruby ;)
<Nuck> We copied it for 30 years without asking it
<shevy> Nuck they cheated because for compatibility, they kept the symlinks so that "stat /usr/bin/ruby" would work on gobolinux too
james is now known as Guest9045
<shevy> they just hid it by default
<shevy> so stat /usr/bin/ruby would point at /Programs/Ruby/1.9.3/bin/ruby
<Nuck> workmad3: I knew classnames were Constants. It irks me to a large extent — the chat network I'm building this bot for starts with a lowercase — it's "dAmn"
kpshek has quit []
<workmad3> Nuck: hehe
<Nuck> workmad3: I don't assume Ruby has some magic trick there?
<shevy> atmosx it's awesome, sadly it kind of had its peak 6 years ago :(
atyz has joined #ruby
<shevy> atmosx but the old reasons and explanations are still quite valid
poikon has quit [Remote host closed the connection]
<Nuck> shevy: The symlinking is a good setup. I wonder if I could mod Arch into a similar setup
<workmad3> Nuck: unfortunately no, upper-case start for constants is part of the language
dmiller1 has joined #ruby
<Nuck> workmad3: Darn :<
<shevy> atmosx the main developer from back then, hisham, sometimes works on lua + luarocks nowadays https://github.com/keplerproject/luarocks
yshh has joined #ruby
<atmosx> shevy: I see
<tobiasvl> Nuck: don't you mean ... damn?
<atmosx> Nuck: I'm sure you can, but it's an awful lot amount of work to do.
<Nuck> tobiasvl: dAmn, with a capital A and all lowercasd otherwise
<shevy> Nuck symlinking is usually how things are solved that way. I think RVM also uses symlinks
<Nuck> atmosx: And there's no fixing the syntax highlighting
<shevy> but a cooler idea would be to use something like fusefs or union mounts
<workmad3> Nuck: you can certainly create classes and assign them to normal variables
<Nuck> shevy: I think Arch's thing has a few thing symlinked into place, etc.
<tobiasvl> Nuck: yeah, i was talking about your "darn" :P
<workmad3> Nuck: but then you wouldn't be able to do the 'class Sold::DAmn::Packet' thing
<Nuck> tobiasvl: ... dammit
ozgura has joined #ruby
Stilo has joined #ruby
<tobiasvl> ;)
maxmanders has quit [Quit: Textual IRC Client: www.textualapp.com]
poikon has joined #ruby
austinbv has quit [Ping timeout: 252 seconds]
zommi has quit [Quit: Leaving.]
zommi has joined #ruby
angusiguess has joined #ruby
zommi has quit [Client Quit]
zommi has joined #ruby
dmiller1 has quit [Ping timeout: 245 seconds]
zommi has quit [Client Quit]
<Nuck> In the whole foo::bar::bat being in foo/bar/bat, where do I cram foo::bar? foo/bar.rb?
zommi has joined #ruby
krz has quit [Quit: krz]
<workmad3> Nuck: yeah
<Nuck> sweet
<shevy> \o/
<shevy> we have a new one following the inofficial convention!
atno has quit [Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/]
pavilionXP has joined #ruby
<Nuck> shevy: This is a resume item. By which I mean I'm putting it on my GitHub and using it as an example of my Ruby stuff.
<Nuck> So I gotta follow the conventions ;)
willob has joined #ruby
hamed_r has joined #ruby
pavilionXP has quit [Remote host closed the connection]
<Nuck> shevy: Also don't I know you from somewhere? Did you used to hang with elliott?
clooth has joined #ruby
<shevy> hahaha yeah
<shevy> the old #rubyforce gang
<Nuck> Thought I recognized your nick lol
<shevy> I wondered what happened to tsume and kuja
<clooth> huehuehue
swistak35 has joined #ruby
<Nuck> I'm not part of that gang, but I recall seeing your username around
<clooth> I'm part of all gangs.
<shevy> hehe somehow one "finds" people more readily in small channels
atno has joined #ruby
<Nuck> haha that's true
<shevy> in #ruby it is harder, there are like 80% unknown to me
<Nuck> clooth: Both bloods and crips?
<clooth> Buds and crisps
<shevy> like this clooth, never read him before
<Nuck> clooth: Cannibis and Crackers?
<shevy> or yugui_zzz but she never writes anything
<clooth> Nuck: Cannibals and Cripples
<Nuck> clooth: Hannibals and Hippos.
skattyadz has quit [Quit: skattyadz]
atyz has quit [Quit: Leaving...]
hashmal has joined #ruby
<clooth> Nuck: you got it.
<Nuck> Hannibal Lecter loved his Hippos.
ozgura has quit [Remote host closed the connection]
pavilionXP has joined #ruby
atyz has joined #ruby
bluenemo has quit [Quit: Verlassend]
atno__ has joined #ruby
renanoronfle has joined #ruby
samuel02 has quit [Remote host closed the connection]
Jackneill has joined #ruby
johnpcamara has joined #ruby
* lupine discovers comedy gold in the json gem documentation
<atno__> morning
<lupine> http://rubydoc.info/gems/json/JSON#parse!-class_method - "The bang version of the parse method defaults to the more dangerous values for the opts hash, so be sure only to parse trusted source documents"
eddie_ has quit [Quit: Ex-Chat]
kofno has quit [Remote host closed the connection]
atno has quit [Disconnected by services]
atno__ is now known as atno
atno__ has joined #ruby
kofno has joined #ruby
ferdev has joined #ruby
ferdev_ has quit [Read error: Connection reset by peer]
blaxter has quit [Quit: foo]
yshh has quit [Remote host closed the connection]
LiquidInsect has quit [Ping timeout: 255 seconds]
xlogic has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
VolodymyrB has joined #ruby
lkba has joined #ruby
QKO has joined #ruby
jjbohn has joined #ruby
renanoronfle has quit [Ping timeout: 260 seconds]
maz-dev has joined #ruby
phantasm66 has joined #ruby
tomzx_mac has joined #ruby
QKO_ has quit [Ping timeout: 244 seconds]
yewton has quit [Excess Flood]
pedda has joined #ruby
<pedda> hi all
andrewh has joined #ruby
Virunga has joined #ruby
aaronmcadam has quit [Quit: aaronmcadam]
Guest9045 has quit [Quit: Computer has gone to sleep.]
yewton has joined #ruby
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
tomzx_mac has quit [Ping timeout: 260 seconds]
LiquidInsect has joined #ruby
phantasm66 has quit [Quit: *sleeeep….]
_nitti has joined #ruby
wf2f has quit []
girija has quit [Ping timeout: 256 seconds]
chussenot has quit [Quit: chussenot]
nari has quit [Ping timeout: 255 seconds]
johnpcamara has quit [Quit: johnpcamara]
krz has joined #ruby
aryatosh has quit []
nga4 has joined #ruby
himsin has quit [Remote host closed the connection]
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Mon_Ouie has quit [Ping timeout: 260 seconds]
himsin has joined #ruby
beliveyourdream_ has joined #ruby
beliveyourdream_ has quit [Client Quit]
beliveyourdream has quit [Ping timeout: 248 seconds]
Dann1 has joined #ruby
beliveyourdream has joined #ruby
d2dchat has quit [Remote host closed the connection]
himsin has quit [Remote host closed the connection]
hbpoison_ has quit [Ping timeout: 252 seconds]
dawkirst has quit [Remote host closed the connection]
jonathanwallace has joined #ruby
Criztian has quit [Ping timeout: 240 seconds]
Criztian has joined #ruby
_nitti has quit [Ping timeout: 245 seconds]
himsin has joined #ruby
m8 has joined #ruby
yshh has joined #ruby
sepp2k has joined #ruby
ddv is now known as Scatman
samphippen has quit [Quit: Computer has gone to sleep.]
undersc0re97 has quit [Quit: "The destruction of balance constitutes leaping forward and such destruction is better than balance. Imbalance and headache are good things." - Mao]
idkazuma has joined #ruby
pyrac has quit [Ping timeout: 245 seconds]
<Dann1> Can an @var be an object? and can I use methods from the @var object?
Scatman is now known as ddv
ksinkar_ has quit [Ping timeout: 255 seconds]
<Dann1> Like, @var = Bot.new
<tobiasvl> of course
<Dann1> Bot comes with method start
<banister`sleep> Dann1: yeah, of course, EVERYTHING In ruby is an object :)
<Dann1> Can I @var.start
<tobiasvl> yes yes yes
<tobiasvl> you can
<banister`sleep> well apart from a couple of things
<Dann1> banister`sleep: I know :)
<Dann1> But then I DON'T UNDERSTAND
<banister`sleep> Dann1: then your question seems esp. lulzy :)
<Dann1> Hold up
<banister`sleep> ah ok
<Hanmac> most of the things that are not objects returns one ... like "if" is not an object, but it returns one
<chiel> hmm.. if i need to grab a gem from a private repo on github, will bundler use my key or so?
banister`sleep has quit [Read error: Connection reset by peer]
<Dann1> @bot
<Dann1> @bot is a Cinch::Bot
banister`sleep has joined #ruby
<Dann1> It should have the start method
<Dann1> AND it does
daig0ro has joined #ruby
<Dann1> AND it works
<Dann1> but then I get an error
<Dann1> def start
<Dann1> end
<Dann1> from main.rb:59
<Dann1> @bot.start
<tobiasvl> we need to see the initialize method
mmitchell has joined #ruby
<tobiasvl> which is what's throwing the error
<Dann1> hold it then
girija has joined #ruby
KevinSjoberg has joined #ruby
<banister`sleep> Dann1: in pry, type: gist bot
<banister`sleep> it'll gist the bot's source code
Konboi has joined #ruby
austinbv has joined #ruby
angusiguess has quit [Ping timeout: 248 seconds]
<Hanmac> its the C-method that trows the error
mark_locklear has joined #ruby
angusiguess has joined #ruby
dmiller1 has joined #ruby
DaltonUS has joined #ruby
DaltonUS has quit [Client Quit]
rakaar has quit [Ping timeout: 256 seconds]
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
<dominikh> "Connecting to :6667", did you specify an empty host or something?
<dominikh> server, that is
<KevinSjoberg> I'm having a hard time understanding the difference between a service object and a PORO? What is the difference?
austinbv has quit [Ping timeout: 248 seconds]
<Dann1> server: 'irc.freenode.net'
<dominikh> well, not judging from the log output
F1skr has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
dmiller1 has quit [Ping timeout: 255 seconds]
robustus has quit [Ping timeout: 248 seconds]
elico has quit [Quit: elico]
<Dann1> Here's an example initialize
atyz has quit [Read error: Connection reset by peer]
mmitchell has quit [Remote host closed the connection]
jonathanwallace has quit [Ping timeout: 256 seconds]
robustus has joined #ruby
jjbohn has quit [Quit: Leaving...]
chussenot has joined #ruby
<withnale> anyone got a one liner to convert [ 1, 2, 3, 4, 5] and [ 1, 2, 6, 7] into [ 1 , 2, [ 3 ,4 ,5 ], [6 , 7] ]
arkiver has quit [Quit: Leaving]
hbpoison has joined #ruby
<pedda> i need some help setting up a project, which was built by someone else. i am new to ruby
ozgura has joined #ruby
QKO_ has joined #ruby
<Dann1> pedda: details
<pedda> a friend of mine has got a website build with ruby on rails..
Konboi has quit [Quit: Leaving...]
<pedda> he asked me to move it over to a new hoster
Skelz0r has quit [Ping timeout: 246 seconds]
<pedda> i did some research on the helpcenter of the new hoster and figured out, that i need to run this app via cgi
rawler has joined #ruby
<pedda> i have some tar.gz files which are the dump/backup of that project…
hbpoison has quit [Ping timeout: 240 seconds]
QKO has quit [Ping timeout: 276 seconds]
<pedda> i know how to setup projects based on php but not based on ruby
Virunga has quit [Remote host closed the connection]
<pedda> i figured out how to make the public folder visible to the subdomain i created
pyrac has joined #ruby
<pedda> i extracted the "project" and moved it over to cgi-bin/myProject/
<tobiasvl> this sounds like rails questions to me
<hashmal> rails over cgi?
<hashmal> ouch :|
<tobiasvl> pedda: #rubyonrails
geekbri has joined #ruby
<pedda> oh .. okay :)
johnpcamara has joined #ruby
<pedda> i will go on in #rubyonrails :D thx
<tobiasvl> this channel is for the language itself, rails is quite a more complex beast
<tobiasvl> np
<tobiasvl> good luck
<pedda> thx
* Hanmac can write more complex stuff than rails
<tobiasvl> ;)
justsee has quit [Quit: Linkinus - http://linkinus.com]
<hashmal> that's not necessarily a good thing :)
samuel02 has joined #ruby
VolodymyrB has quit [Quit: Leaving.]
Dann1 has quit [Quit: GODDAMNIT]
<Hanmac> withnale what is the rule about the convertion? and maybe you want [ [1 , 2], [ 3 ,4 ,5 ], [6 , 7] ] ?
<tobiasvl> 1 and 2 are not unique, it seems
angusiguess has joined #ruby
hamed_r has quit [Quit: Leaving]
<Hanmac> >> a=[ 1, 2, 3, 4, 5];b= [ 1, 2, 6, 7]; p [*(a & b), a - b, b - a]
<eval-in> Hanmac: Output: "[1, 2, [3, 4, 5], [6, 7]]\n" (http://eval.in/9589)
Skelz0r has joined #ruby
aryatosh has joined #ruby
<Hanmac> withname is that what you want?
<Hanmac> i mean withnale
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
statarb3 has quit [Quit: Leaving]
buibex has joined #ruby
<tobiasvl> withnale & I
Gadgetoid has quit [Ping timeout: 240 seconds]
straind` has joined #ruby
straind has quit [Read error: Connection reset by peer]
anderson has quit [Ping timeout: 244 seconds]
newUser1234 has joined #ruby
kpshek has joined #ruby
VolodymyrB has joined #ruby
Gadgetoid has joined #ruby
browndawg has joined #ruby
Inoperable is now known as zz_Inoperable
blaxter has joined #ruby
invisime has joined #ruby
<shevy> I have a big case/when menu
<shevy> right now I add new commands to it like so:
<shevy> when 'seq_add'
<shevy> seq_add(arguments)
<shevy> sometimes there are aliases to it, like:
<shevy> when 'seq_add','sadd'
<shevy> seq_add(arguments)
<shevy> ok?
<shevy> hmmm now I wonder if I could simplify this somehow
Jalada has joined #ruby
<shevy> the convention I have in this case/when is that the first match for when, is always the name of the method that will be called
samuel02 has quit [Remote host closed the connection]
<tobiasvl> send ?
zerba has joined #ruby
krawchyk has joined #ruby
<shevy> tobiasvl hmm yeah that might be a good idea
<shevy> .send if method_exists? or something like that perhaps
kidoz has joined #ruby
<shevy> but how to use aliases?
<shevy> like to convert 'sadd' to 'seq_add'
atyz has joined #ruby
m8 has quit [Quit: Sto andando via]
<hoelzro> sending if the method exists is probably a bad idea
inokenty has joined #ruby
<hoelzro> security-wise, at least
<tobiasvl> shevy: alias?
<shevy> hmm
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<tobiasvl> alias_method
<tobiasvl> i mean
<tobiasvl> since you have strings
<shevy> hoelzro hmm but I could be in full control over those methods?
<hoelzro> shevy: what if someone provides the string 'invoke_dangerous_method!'?
<shevy> something simple like: def open_pdf_files, which would only open the .pdf files in the current dir
<shevy> hoelzro well the method would have to exist before I call .send
<shevy> actually, I don't like .send that much anyway :D
rjmt___ has joined #ruby
<shevy> I still have nightmares when I used .send with method_missing
dustint has joined #ruby
<hoelzro> shevy: right, but what if your object has a dangerous method?
<hoelzro> hang on
<hoelzro> I'm writing up an example
<shevy> yeah, I am thinking... I think I have about 1000 methods... or perhaps 500, in this project... not sure what they all do hmmm....
<hoelzro> exactly
Dann1 has joined #ruby
tommyvyo has joined #ruby
dr_neek has joined #ruby
yacks has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
jgarvey has joined #ruby
rjmt___ has quit [Client Quit]
atyz has quit [Ping timeout: 248 seconds]
hbpoison has joined #ruby
JohnBat26 has joined #ruby
<shevy> yeah
<shevy> I think I also have some methods like remove() :\
<hoelzro> right
<shevy> thanks hoelzro
<banister`sleep> hoelzro: do u think perl6 is dead?
<hoelzro> so if you look at my example, don't put 'remove' in OK_METHODS ;)
<banister`sleep> hoelzro: there was a blog post by chromatic recently that said something to that effect iirc
<hoelzro> banister`sleep: that is a great question
<workmad3> banister`sleep: that which has not lived can never die, right?
<hoelzro> well, there's one thing you have to understand about chromatic
<hoelzro> he was a fervent supporter for a *long* time
Pandaen has quit [Ping timeout: 260 seconds]
<hoelzro> then got burnt out by Parrot
<hoelzro> and seeing where the Perl 6 effort was focused
<banister`sleep> im sure you know that post :)
dhruvasagar has quit [Ping timeout: 255 seconds]
<hoelzro> so he has a right to be critical, but sometimes he may take it a bit over the top
<hoelzro> I do =)
<hoelzro> now, as far as I see it
<hoelzro> you can do stuff in Perl 6 today
<banister`sleep> hoelzro: btw do you know this perl programmer? http://blogs.perl.org/users/mugwump/
<hoelzro> but it won't be fast, and they may break backwards compatability
samuelj has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
<hoelzro> I don't believe I know him/her, no
<banister`sleep> hoelzro: ah ok
dawkirst has joined #ruby
Monie has joined #ruby
<hoelzro> the Perl 6 devs seem to concentrate on running "toy" examples
<hoelzro> and they desperately want devs to start writing cool stuff in Perl 6
<hoelzro> but the devs are all waiting for Perl 6 to be "ready"
<hoelzro> so it's kind of a catch 22
ner0x has joined #ruby
<banister`sleep> yeah
sailias has joined #ruby
<hoelzro> one thing that has frustrated me
<hoelzro> (after lurking/mildly participating in the IRC channel for the last 6 months)
<hoelzro> is that the core devs only seem to work on the compiler/implementation
<hoelzro> libraries are often neglected (but there are a handful of cool ones)
<hoelzro> and packaging was *extremely* immature
<hoelzro> ex. until last month, you couldn't build an RPM/DEB/whatever of Rakudo Star unless you jumped through some *serious* hoops
Udom0 has joined #ruby
<banister`sleep> hoelzro: hmm
<hoelzro> I ended up fixing the toolchain so you could actually *build* packages
<samuelj> Hey, does anyone know if it's possible to include bundle install --without programatically in the Gemfile, say to detect the ruby version and install gems accordingly?
joofsh has joined #ruby
<banister`sleep> hoelzro: ledge
a_a_g has quit [Quit: Leaving.]
<hoelzro> ledge?
<banister`sleep> cool
mikecmpbll has joined #ruby
jonathanwallace has joined #ruby
<banister`sleep> hoelzro: are you tickled pink about the imminent release of ruby 2.0
Xeago_ has joined #ruby
Xeago is now known as Guest39032
Guest39032 has quit [Killed (hobana.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
<hoelzro> meh
<hoelzro> it's ok
<hoelzro> the only thing that excites me about it is proper keyword arguments
<workmad3> woo!!!! ruby 2!!!!!
Guest62412 has quit []
<workmad3> it's just like ruby, only better!!!!
<banister`sleep> hoelzro: lazy Enumerators are pretty cool too
<workmad3> </troll>
tvw has joined #ruby
marcopod has joined #ruby
beseku has joined #ruby
<Dann1> how do I convert [item, item, [item, item, item]] into [item, item, item, item, item]
marcopod has quit [Client Quit]
austinbv has joined #ruby
<hoelzro> Dann1: flatten
marcopod has joined #ruby
<banister`sleep> hoelzro: require has been significantly sped up too
<Dann1> #flatten?
<Dann1> kay
<tobiasvl> banister`sleep: imminent when? when is 2.0 expected
<workmad3> tobiasvl: feb 24th
<banister`sleep> tobiasvl: 2 week
<tobiasvl> woah
<tobiasvl> BETTER BUCKLE UP
<Dann1> Really
<Dann1> Really?
<workmad3> tobiasvl: they just released rc2, which they expect to be the last rc before release
austinbv has quit [Client Quit]
alup has quit [Read error: Connection reset by peer]
jrajav has joined #ruby
aryatosh has quit []
alup has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<banister`sleep> workmad3: which feature interests u
himsin has quit [Ping timeout: 248 seconds]
Marco has joined #ruby
samuelj has quit [Ping timeout: 245 seconds]
<workmad3> banister`sleep: RUBY_VERSION will evaluate to '2.0.0'
<workmad3> banister`sleep: how awesome is that? :)
arturaz has quit [Remote host closed the connection]
<tobiasvl> :D
skattyadz has joined #ruby
<banister`sleep> hehe yeah, i wonder if they're have a proper versioning system after we hit 2.0
<banister`sleep> they'll
arturaz has joined #ruby
dmiller1 has joined #ruby
mmitchell has joined #ruby
<Dann1> If I want a module for my class specifically, I do module Klass::Moddule, right
jerius has joined #ruby
QKO has joined #ruby
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<tobiasvl> guh, that keyword arguments syntax ...
<tobiasvl> why not just replace the default argument value feature?
<tobiasvl> and use = instead of :
emocakes has joined #ruby
QKO_ has quit [Ping timeout: 240 seconds]
juco has quit [Changing host]
juco has joined #ruby
<heftig> tobiasvl: and we already had keyword like arguments with the braceless hash syntax
juco has left #ruby ["Leaving..."]
<tobiasvl> yeah
<tobiasvl> true
predator117 has joined #ruby
anderson has joined #ruby
josh_keith has quit [Ping timeout: 245 seconds]
dmiller1 has quit [Ping timeout: 256 seconds]
daig0ro has quit [Quit: Computer has gone to sleep.]
aryasam has joined #ruby
himsin has joined #ruby
yshh has quit [Read error: Connection reset by peer]
yshh has joined #ruby
sambio has joined #ruby
anonymuse has joined #ruby
atno has quit [Quit: Leaving]
breakingthings has joined #ruby
atno has joined #ruby
banister`sleep has quit [Ping timeout: 248 seconds]
VolodymyrB1 has joined #ruby
VolodymyrB has quit [Ping timeout: 245 seconds]
<Dann1> How do I remove a specific item from an array?
kofno has quit [Remote host closed the connection]
<Dann1> [item, 'out', item].remove 'out'
allaire has joined #ruby
inao has quit [Quit: Leaving...]
<workmad3> Dann1: delete
girija has quit [Ping timeout: 248 seconds]
rippa has joined #ruby
Wyvern has joined #ruby
<Dann1> #delete removes all the repetitions right?
TheFuzzball has joined #ruby
<workmad3> yes
<Dann1> ['out', 'out', 'o'].delete 'out'
<Dann1> >> ['out', 'out', 'o'].delete 'out'
<eval-in> Dann1: Output: "" (http://eval.in/9590)
xemu has joined #ruby
<tobiasvl> >> puts ['out', 'out', 'o'].delete 'out'
<eval-in> tobiasvl: Output: "out\n" (http://eval.in/9591)
<tobiasvl> returns the deleted object
<Dann1> Oh
kofno has joined #ruby
schickung has joined #ruby
<Dann1> But the array should become just ['o'], correct?
<workmad3> >> a = ['out', 'out', 'o']; a.delete('out'); p a
<eval-in> workmad3: Output: "[\"o\"]\n" (http://eval.in/9592)
<Hanmac> Dann1 you may want to look at #delete_at and #delete_if
<Dann1> Mmm
<Dann1> Thanks
atno3 has joined #ruby
atno has quit [Disconnected by services]
atno3 is now known as atno
hbpoison has joined #ruby
aryasam has quit [Ping timeout: 272 seconds]
bubblehead has joined #ruby
<Wyvern> Have anyone else had a problem with bundle using a different ruby version - and path - than gem? I'm new to Ruby and just installed 1.9.3 on OS X, through homebrew.
atno has quit [Client Quit]
<Wyvern> When using bundle install, binding_of_caller fails to install, but running gem install bundle_of_caller works fine.
atno has joined #ruby
SeanLazer has joined #ruby
rafaelcaricio has quit [Read error: Connection reset by peer]
jprovazn has quit [Quit: Leaving]
jjbohn has joined #ruby
zigomir has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
pdamer has joined #ruby
aedornm has quit [Quit: Leaving]
x0F_ is now known as x0F
<clocKwize> you're new to ruby and you are trying to use bindind_of_caller?
<clocKwize> does not compute >.<
hbpoison has quit [Ping timeout: 252 seconds]
<Wyvern> One of the tutorials use it. Testing out devise
dr_neek has quit [Ping timeout: 245 seconds]
josh_keith has joined #ruby
becom33 has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
anonymuse has quit [Quit: Leaving.]
x0F_ is now known as x0F
buibex has quit [Remote host closed the connection]
EPIK has quit [Ping timeout: 252 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<objectivemo> wyvern: Don't use home-brew, use rvm
aryasam has joined #ruby
<Wyvern> ok, I'll try that
buibex has joined #ruby
<objectivemo> also, you best have all the binaries built on the same ruby to avoid problems
dr_neek has joined #ruby
cdt has joined #ruby
<objectivemo> make sure to uninstall ruby from homebrew first
<bean> naw, using homebrews 1.9.3 is fine.
<bean> usually
<Wyvern> thing is that both ruby and gem use 1.9.3, while for some reason, bundle insists on using 1.8 from the /System/Library/Frameworks path.
JohnBat26 has joined #ruby
<bean> what is your $PATH
segv- has joined #ruby
<objectivemo> bean: with ruby 2 coming along, using rvm or rbenv will remove a lot of the pain upgrading...
enroxorz-work has joined #ruby
<Wyvern> starts with /usr/local/bin, if that's what you ment
anonymuse has joined #ruby
<bean> homebrew will likely have ruby 2.0
<Wyvern> 'which ruby' points to /usr/local/bin/ruby
<bean> yeah, Wyvern, that's what i meant.
<Wyvern> first thing i checked. ;)
<bean> Wyvern, did you reinstall the bundler gem after you installed 1.9.3?
zommi has left #ruby [#ruby]
<Wyvern> But is it odd that 'gem install' use a different ruby than 'bundle install'?
samphippen has joined #ruby
<objectivemo> bean: rvm will allow him to use multiple versions of ruby, but tbh, they are both right if you know what you are doing
<Wyvern> ...
<Banistergalaxy> Clockwize boc is used by pry and better errors
<Wyvern> i guess that the only bundle gem I installed was for 1.8.. .
zommi has joined #ruby
<bean> :)
<Wyvern> d'oh
Spaceghostc2c has quit [Excess Flood]
<bean> that'd be why it uses a different ruby ;)
<bean> glad it was an easy fix.
cime has joined #ruby
aryasam has quit [Ping timeout: 272 seconds]
codecop has quit [Read error: Connection reset by peer]
<cime> hi! anybody running Sidekiq with Supervisor?
otnld has quit []
<Wyvern> didn't help though. I installed bundler (again), but it still use the old path. how do I uninstall a gem for 1.8 when 'gem' is using 1.9.3?
Dann2 has joined #ruby
Spaceghostc2c has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
alanp_ is now known as alanp
hybris has joined #ruby
s__dana has joined #ruby
Dann1 has quit [Ping timeout: 252 seconds]
F1skr has quit [Quit: WeeChat 0.4.0]
becom33 has quit [Ping timeout: 245 seconds]
wting has quit [Read error: Connection reset by peer]
zz_Inoperable is now known as Inoperable
arkiver has joined #ruby
unix has joined #ruby
baba has quit [Ping timeout: 252 seconds]
Gwyxx has quit [Ping timeout: 248 seconds]
whitedawg has joined #ruby
whitedawg has quit [Max SendQ exceeded]
jpfuentes2 has joined #ruby
slainer6_ is now known as slainer68
bubblehead has quit [Remote host closed the connection]
Dann2 is now known as Dann1
whitedawg has joined #ruby
wallerdev has joined #ruby
wallerdev has quit [Client Quit]
wting has joined #ruby
Spaceghostc2c has quit [Excess Flood]
octoberry has joined #ruby
newUser1234 has quit [Remote host closed the connection]
atyz has joined #ruby
arturaz has quit [Remote host closed the connection]
d2dchat has joined #ruby
aryasam has joined #ruby
arturaz has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
digifiv5e has joined #ruby
<Dann1> can you guys give me the shell equivalent of gem build gemname.gemspec and gem install gemname
bigkevmcd has quit [Read error: No route to host]
digifiv5e is now known as Guest86677
jtharris has joined #ruby
Spaceghostc2c has joined #ruby
bigkevmcd has joined #ruby
atyz has quit [Ping timeout: 252 seconds]
<Nuck> ... "Use RbConfig instead of obsolete and deprecated Config." — Am I not allowed to name a constant Config?
undersc0re97 has quit [Quit: "The destruction of balance constitutes leaping forward and such destruction is better than balance. Imbalance and headache are good things." - Mao]
<Nuck> Even within a namespace?
<Dann1> No
<Dann1> I tried aswell
<Dann1> What are you trying to do, exactly?
<Nuck> Name something Config
<Dann1> Config is a reserved name
Guest86677 is now known as guyz
guyz has quit [Changing host]
guyz has joined #ruby
aquaranto has joined #ruby
<Dann1> get a different name
<Nuck> damn
aryasam has quit [Ping timeout: 272 seconds]
robert_ has joined #ruby
joana_ has joined #ruby
v0n has joined #ruby
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
<Nuck> Hmm
<Nuck> Actually, as it turns out
<Nuck> As long as I don't refer to it as "Config", but by the full namespaced name, it's safe
QKO_ has joined #ruby
undersc0re97 has joined #ruby
svandiepen has quit [Ping timeout: 252 seconds]
zommi has quit [Quit: Leaving.]
puppeh has joined #ruby
jjbohn is now known as jjbohn|afk
puppeh is now known as erdsa
QKO has quit [Ping timeout: 276 seconds]
<erdsa> GC is invoked when there's not enough memory to allocate new objects?
elico has joined #ruby
allaire has quit []
jpfuentes2 has quit [Ping timeout: 252 seconds]
elux has joined #ruby
fmcgeough has joined #ruby
ahokaomaeha has joined #ruby
robert_ has quit [Ping timeout: 256 seconds]
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
aryasam has joined #ruby
arya has quit [Ping timeout: 248 seconds]
aryasam has quit [Client Quit]
aryasam has joined #ruby
stopbit has joined #ruby
buibex has quit [Remote host closed the connection]
svandiepen has joined #ruby
elico has quit [Quit: elico]
buibex has joined #ruby
lectrick has joined #ruby
<jlebrech> do you guys seed inside of your create migrations when spiking?
arya has joined #ruby
bean__ has joined #ruby
robert_ has joined #ruby
zommi has joined #ruby
zommi has quit [Client Quit]
dmiller1 has joined #ruby
atyz has joined #ruby
zommi has joined #ruby
zommi has quit [Client Quit]
aryasam has quit [Ping timeout: 272 seconds]
perun_ has quit [Ping timeout: 256 seconds]
andikr has joined #ruby
jpfuentes2 has joined #ruby
yacks has quit [Remote host closed the connection]
erdsa has quit [Remote host closed the connection]
timmow has quit [Ping timeout: 252 seconds]
newUser1234 has joined #ruby
beliveyourdream has quit [Remote host closed the connection]
danielpcox has joined #ruby
dmiller1 has quit [Ping timeout: 245 seconds]
x82_nicole has joined #ruby
lectrick has quit [Quit: alice.]
joofsh has quit [Remote host closed the connection]
aryasam has joined #ruby
elux has quit [Quit: Leaving...]
cime has quit [Ping timeout: 276 seconds]
theRoUS has joined #ruby
daig0ro has joined #ruby
djwonk has joined #ruby
jlast has joined #ruby
elux has joined #ruby
lectrick has joined #ruby
billiam has joined #ruby
VolodymyrB1 has quit [Quit: Leaving.]
<shevy> jlebrech what
VolodymyrB has joined #ruby
<shevy> I seed my garden every day, then I migrate it
atyz has quit [Quit: Leaving...]
_nitti has joined #ruby
k610 has joined #ruby
interactionjaxsn has joined #ruby
dr_neek has quit [Quit: dr_neek]
mephux has quit [Excess Flood]
clocKwize has quit [Quit: clocKwize]
aryasam has quit [Ping timeout: 272 seconds]
mephux has joined #ruby
mephux is now known as Guest13532
vierja has quit [Ping timeout: 276 seconds]
enebo has joined #ruby
codecop has joined #ruby
andikr has quit [Remote host closed the connection]
vierja has joined #ruby
<jlebrech> it was meant more for #rubyonrails but sometimes when working with associations it's easier to have dummy data before your add all your create actions and forms, etc..
cableray has joined #ruby
perun_ has joined #ruby
<jlebrech> even better would be fixtures to setup models in a test
peregrine81 has joined #ruby
<Dann1> why is ruby so abstract that talking about it sounds like you're a farmer
Spooner has joined #ruby
<jlebrech> Dann1, if you talk about all the gems you need for project you end up sounding like william gibson
atmosx_desktop has joined #ruby
dallasm has joined #ruby
<shevy> Dann1 I think jlebrech is under some kind of drug influence perhaps
jjbohn|afk is now known as jjbohn
<shevy> LSD
<shevy> RoR
<shevy> you know, those things
<jlebrech> lol
techhelp has joined #ruby
<matti> shevy: You too.
<jrajav> I've heard a proportionally larger amount of RoR hate in the past week or so
<matti> shevy: We know about your morphine syringe.
<jrajav> Having never used it myself - did something happen recently? New version?
<Dann1> So gem distribuition is basically drug dealing
Xeago has quit [Read error: Connection reset by peer]
Hanmac has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
hmans has joined #ruby
anonwu has joined #ruby
bubblehead has joined #ruby
joofsh has joined #ruby
<shevy> jrajav dont think so, just many people who want to go to rails come to #ruby and ask about rails
dr_bob has quit [Quit: Leaving.]
<shevy> recently
<shevy> no idea why there is such an increased interest in rails again
tcstar has joined #ruby
<shevy> THEY SHOULD COME TO RUBY INSTEAD!!!
tcstar has quit [Client Quit]
<GeekOnCoffee> shevy: I get sad every time I leave rails and things I thought were ruby things are missing
huoxito has joined #ruby
<GeekOnCoffee> I don't recall what off hand, but Array and String both have some methods in rails that are no-brainers that aren't in ruby
tcstar has joined #ruby
<jrajav> WIth Ruby it's RoR and with Javascript it's jQuery
<jrajav> Why can't our cool languages just remain untainted with additions :<
<jrajav> Even if they're pretty useful and cool additions
<hoelzro> I wouldn't call JS cool =P
<hmans> Nobody's stopping you from using ActiveSupport outside of Rails.
<hmans> (If you want the extra sugar.)
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
elux has quit [Quit: Leaving...]
spaceships has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
dr_bob has joined #ruby
braoru has quit [Quit: Leaving]
<GeekOnCoffee> hmans: that's true, but it's a slippery slope at that point
Es0teric has joined #ruby
<GeekOnCoffee> i feel like people who knock rails and are doing web stuff tend to add 70% of rails back into their apps
<hmans> Yup, I've seen that behavior before. "Rails sucks! Let's build a Padrino app with ActiveSupport and ActiveRecord".
jpfuentes2 has quit [Read error: Connection reset by peer]
tagrudev has quit [Remote host closed the connection]
poseid has quit [Ping timeout: 245 seconds]
mordocai has quit [Ping timeout: 245 seconds]
Wyvern has quit [Ping timeout: 245 seconds]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
Elhu has quit [Ping timeout: 245 seconds]
raz has left #ruby ["Leaving..."]
huoxito has quit [Quit: Leaving]
almondev has joined #ruby
pu22l3r has joined #ruby
<shevy> GeekOnCoffee well you can always bundle up methods you use into a gem, and start a new gem
<shevy> example
Elhu has joined #ruby
<shevy> gem install geek_on_coffee
the_mentat has joined #ruby
<shevy> could always install your custom modifications
<GeekOnCoffee> yup, that's exactly what I want to do… reproduce the bits of rails I care about so that I can maintain them :P
QKO has joined #ruby
<shevy> hehe
<shevy> I did this when I started with ruby
<shevy> I have a directory core/ and inside that I have stuff like string.rb
<shevy> which is class String extension
<shevy> I use this mostly for local stuff only
cableray has quit [Quit: cableray]
<shevy> I'd wish there would be more consideration for community needs though
<shevy> if 500 people use a certain method again and again, this should get included into stdlib
almondev has quit [Client Quit]
QKO_ has quit [Ping timeout: 248 seconds]
octoberry has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
banister`sleep has joined #ruby
SCommette has joined #ruby
octoberry has joined #ruby
johnpcamara has quit [Quit: johnpcamara]
_nitti has quit [Remote host closed the connection]
banister`sleep is now known as banisterfiend
<hoelzro> depends on the method
<hoelzro> if it's pretty general, sure
Xeago has quit [Read error: Connection reset by peer]
joshman_ has joined #ruby
<hoelzro> ah, I initially parsed that as core, rather than stdlib =/
pu22l3r has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
dr_neek has joined #ruby
Xeago has joined #ruby
pu22l3r has joined #ruby
Dann1 has quit [Quit: GODDAMNIT]
axl_ has joined #ruby
bradleyprice has joined #ruby
Gwyxx has joined #ruby
<bubblehead> n00b question: Do I need ActiveSupport? I am getting this error when trying to run a gem. https://gist.github.com/anonymous/55a7949ce03a8c79a453 I"m on OSX with Ruby 1.8.7 and someone in the room suggested I get chruby and upgrade. Is that the way to go to fix the error?
a_a_g has joined #ruby
jpfuentes2 has joined #ruby
slainer68 has quit [Ping timeout: 272 seconds]
kalkin- has joined #ruby
<kalkin-> hi
<kalkin-> i can't find any working ruby identation or beautifier plugin for vim
tvw has quit []
<kalkin-> anything like vim-ruby doesn't really work
alex__c2022 has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
pskosinski_ has joined #ruby
dmiller1 has joined #ruby
pskosinski_ is now known as pskosinski
bubblehead has quit [Read error: Connection reset by peer]
Monie has quit [Ping timeout: 245 seconds]
bubblehead has joined #ruby
neworder1 has joined #ruby
Elhu has quit [Ping timeout: 252 seconds]
<v0n> kalkin-: don't use that stuffs, vim doens't need that.
<kalkin-> v0n: of course it needs that
<kalkin-> if you have fucked up the indentation or editing bad code
<v0n> kalkin-: the only thing you need to configure vim might be autocmd FileType ruby setlocal sw=2 et
<v0n> kalkin-: (as well as filetype plugin indent on)
Elhu has joined #ruby
mikepack has joined #ruby
<v0n> and stuffs like gg=G will works as expected
neworder1 has left #ruby [#ruby]
<bubblehead> any chance someone responded to my question above after I stepped on my power strip and shut off my computer?
<v0n> kalkin-: if you like completion, I suggest you the endwise plugin, to add "end" after "do" and so forth
<kalkin-> v0n i already have this
<kalkin-> v0n: nice thanks
<kalkin-> v0n: k let me correct myself i don't need an indentation plugin i need a beautifier plugin
erlingur has quit [Quit: Computer has gone to sleep.]
strax has joined #ruby
geggam has joined #ruby
girija has joined #ruby
end_guy has joined #ruby
Beoran_ has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Elhu has quit [Ping timeout: 255 seconds]
Guest13532 has quit [Excess Flood]
io_syl has quit [Quit: Computer has gone to sleep.]
octoberry has quit [Ping timeout: 245 seconds]
mephux_ has joined #ruby
ananthakumaran has joined #ruby
Beoran has quit [Ping timeout: 252 seconds]
_nitti has joined #ruby
drumsrgr8forn8 has joined #ruby
drumsrgr8forn8 has quit [Client Quit]
timmow has joined #ruby
browndawg has quit [Ping timeout: 240 seconds]
dn2k has quit [Remote host closed the connection]
techhelp has quit [Quit: This computer has gone to sleep]
Elhu has joined #ruby
PanPan has quit [Read error: Connection reset by peer]
PanPan has joined #ruby
<lectrick> Got a question. At some point in RubyLand, I swear that if I took an integer and added/divided/multiplied by a float, I'd still get an integer back because that operator was called on the integer. Now, I seem to get floats back. Is this new at all?
<lectrick> Or is my memory getting shot by my love for whiskey or old age?
geggam has quit [Quit: Leaving]
Gwyxx has quit [Read error: Connection reset by peer]
<Spooner> lectrick, Nope. Always done that way. Use #div and #fdiv to force one or other result.
geggam has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Umren has joined #ruby
<banisterfiend> lectrick: whenver a float is involved the result if a float
<banisterfiend> same in C
<banisterfiend> is
mephux_ is now known as mephux
<lectrick> Spooner: So methods called on Fixnum would return Floats if the arg was a Float? banisterfiend ah ok. odd, my mental model was off then
<lectrick> i hate it when that happens
<banisterfiend> lectrick: yeah otherwise: (a / b) * (b / a) would be too messed up
<banisterfiend> where a is a float and b is a fixnum
buibex has quit [Ping timeout: 245 seconds]
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
Pandaen has joined #ruby
<lectrick> banisterfiend: lol i was under the impression all this time that I had to be explicit about it so in that circumstance I would have done (a.to_f / b) * (b.to_f / a) until about 5 minutes ago
browndawg has joined #ruby
<lectrick> I actually kind of like having to be explicit about it, less chance of unintended side effects
slainer68 has joined #ruby
browndawg has quit [Max SendQ exceeded]
<Spooner> lectrick, In that case, you are probably better off using b.fdiv(a).
<lectrick> TIL about fdiv
<banisterfiend> lectrick: well matz wanted it even more implicit
<banisterfiend> lectrick: he wanted: 1 / 2 #=> 0.5
<banisterfiend> like in haskell
aldodelgado has joined #ruby
<Spooner> And Python 3. I tend to agree.
rakaar has joined #ruby
<lectrick> banisterfiend: it's up for debate I guess
<Spooner> However, changing it would be a nightmare.
<lectrick> at this point? yeah
kpshek has quit []
<lectrick> except for my code, which is explicit :O
browndawg has joined #ruby
<Spooner> They did it in Python from v2->3
Inoperable is now known as zz_Inoperable
jrajav has joined #ruby
arya has joined #ruby
provideal has joined #ruby
<lectrick> you guys sure this didn't behave differently in ruby 1.8 land?
<Spooner> I think you are imagining things, lectrick ;)
<lectrick> sigh. brains.
<lectrick> the cause of, and solution to, all of life's problems
razibog has quit [Ping timeout: 252 seconds]
* lectrick quotes Homer Simpson out of context
<provideal> just a quick question: The 2.0 release is still scheduled for this month, right?
<lectrick> Module#prepend is the new monkeypatch
<Spooner> We are on 2.0.0rc2, so it still has a chance to be this month.
cawaker has left #ruby ["Linkinus - http://linkinus.com"]
<mehwork> yay
vlad_starkov has quit [Read error: Connection reset by peer]
<mehwork> try to release it on a tuesday so we can have Ruby tuesday
<banisterfiend> Spooner: it's being released the 24th apparently
<Spooner> banisterfiend, Grand ;)
<Spooner> So on the 25th I can stop supporting 1.9 ;)
vlad_starkov has joined #ruby
<mehwork> that's a sunda :(
mafolz has quit [Remote host closed the connection]
<mehwork> sundayD
<mehwork> oh how i love super laggy ssh connections
Xeago has quit [Read error: Connection reset by peer]
malcolmva has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
<provideal> Spooner: thnx.
malcolmva has joined #ruby
<banisterfiend> hmm, prepend is going to make pry have to work a bit harder maybe
nat_home has joined #ruby
zz_Inoperable is now known as Inoperable
SolidResolve has quit [Ping timeout: 245 seconds]
octoberry has joined #ruby
<lectrick> banisterfiend: yeah man, your work is cut out for you :O
<banisterfiend> lectrick: well we support refinements already :) that was surprisingly easy to support actually
<lectrick> banisterfiend: i assume .ancestors will return the logical result in a prepend context
<banisterfiend> Yeah
<lectrick> banisterfiend: very cool. my project to backport refinements to 1.9.3 has kind of stalled
<banisterfiend> lectrick: no way you're going to be able to support the full spec
<banisterfiend> without a patch to MRI
<banisterfiend> you can have something that acts similar in some situations though
poikon has quit [Remote host closed the connection]
<lectrick> banisterfiend: well, i got pretty far along actually :O and that was without even using binding_of_caller yet... Not saying it was pretty, btw
aganov has quit [Quit: aganov]
pdamer has quit [Quit: pdamer]
<lectrick> banisterfiend: yeah i wrote a test suite based on a blog post about it, it wasn't the proper test suite
<lectrick> I did it mostly as an exercise... I kind of still want to do it, just to learn from it
andikr has joined #ruby
QKO_ has joined #ruby
yacks has joined #ruby
<ogamita> How do I switch to Gherkin from ruby code? In a Gherkin block I can use %{ }, as in: When /…/ do … %{ When … } end # I would like to do something similar from normal ruby functions.
dallasm has quit [Remote host closed the connection]
BrindleFly has quit [Read error: Operation timed out]
QKO has quit [Ping timeout: 248 seconds]
predator117 has quit [Ping timeout: 252 seconds]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
eldariof has quit [Ping timeout: 256 seconds]
robert_ has quit [Read error: Connection reset by peer]
bigkevmcd has quit [Read error: Connection reset by peer]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
dallasm has joined #ruby
<lectrick> ogamita: %<open-character><close-character> is a Ruby thing to delimit a string
octoberry has quit [Ping timeout: 245 seconds]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
<ogamita> lectrick: yes. Gherkin inteprets it specially.
daig0ro has quit [Quit: Computer has gone to sleep.]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
nateberkopec has joined #ruby
<ogamita> Gherkin code… When /…/ do ruby code ${ Gherkin code } ruby code end
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
elux has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
poikon has joined #ruby
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
Martinjo84 has joined #ruby
nat_home has quit [Quit: Leaving.]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
SolidResolve has quit [Max SendQ exceeded]
SolidResolve has joined #ruby
jlast has quit [Read error: Connection reset by peer]
Martinjo84 has quit [Quit: Lost terminal]
jlast has joined #ruby
pyrac has quit [Ping timeout: 256 seconds]
daig0ro has joined #ruby
JonnieCache has joined #ruby
Gwyxx has joined #ruby
becom33 has joined #ruby
becom33 has joined #ruby
becom33 has quit [Changing host]
illsci has joined #ruby
thomasfedb has quit [Ping timeout: 246 seconds]
bigkevmcd has joined #ruby
<illsci> hey what's up. Is there a way to make it so @whatever.to_yaml doesn't print the -- at the top when it's rendered?
kpshek has joined #ruby
otters has quit [Ping timeout: 260 seconds]
waxjar has quit [Ping timeout: 276 seconds]
slainer6_ has joined #ruby
atmosx_desktop has quit [Quit: And so the story goes…]
stnly has quit [Ping timeout: 256 seconds]
<illsci> I'm trying to add in some yaml enteries into the middle of a yaml file and this is breaking the formatting
stnly has joined #ruby
slainer68 has quit [Ping timeout: 272 seconds]
waxjar has joined #ruby
otters has joined #ruby
havenwood has joined #ruby
Gwyxx has quit [Ping timeout: 245 seconds]
ilovemyherbz has joined #ruby
thomasfedb has joined #ruby
becom33 has quit [Ping timeout: 245 seconds]
frem has joined #ruby
provideal has quit [Quit: provideal]
clocKwize has joined #ruby
vierja has quit [Read error: Connection reset by peer]
mcatch has joined #ruby
jgrevich has joined #ruby
vierja has joined #ruby
<shevy> guys if I want to distribute 100 yaml files in a gem, how would I do this?
jimeh has quit [Ping timeout: 255 seconds]
<shevy> let's assume that this gem only installs a yaml/ directory
beseku has quit [Quit: Linkinus - http://linkinus.com]
<shevy> (in reality, it would be a ruby project, with a few .rb files to query and present the information from those yaml files)
<shevy> illsci I think this is part of yaml specification
<shevy> it starts with three -
baphled has joined #ruby
<shevy> illsci, I think you can do @whatever.to_yaml[5..-1] to ignore that first line
jekotia has joined #ruby
Al___ has quit [Quit: Al___]
joeycarmello has quit [Read error: Connection reset by peer]
maletor has joined #ruby
joeycarmello has joined #ruby
jimeh has joined #ruby
dr_bob has quit [Quit: Leaving.]
jgrevich_ has joined #ruby
<anonymuse> hey all
jgrevich has quit [Ping timeout: 252 seconds]
jgrevich_ is now known as jgrevich
<anonymuse> I'm very new to ruby, working my way though Learn Ruby the Hard Way
baphled has quit [Ping timeout: 255 seconds]
<anonymuse> I'm looking to start a project, and a few people have recommended using something like Bones or Jeweller
peteyg has quit [Ping timeout: 240 seconds]
<anonymuse> does anyone have opinions on that?
vlad_sta_ has joined #ruby
nat_home has joined #ruby
vlad_starkov has quit [Ping timeout: 255 seconds]
joeycarmello has quit [Ping timeout: 255 seconds]
kalkin- has quit [Quit: Ex-Chat]
peteyg has joined #ruby
hoelzro is now known as hoelzro|away
ilovemyherbz has quit []
daniel_hinojosa has joined #ruby
techhelp has joined #ruby
skryking has quit [Quit: Konversation terminated!]
danielpc1x has joined #ruby
lolmaus has quit []
idkazuma has quit [Remote host closed the connection]
recycle has joined #ruby
Gues_____ has joined #ruby
danielpcox has quit [Ping timeout: 248 seconds]
Gues_____ is now known as Guest123
clocKwize has quit [Quit: clocKwize]
benlieb has joined #ruby
maletor has quit [Ping timeout: 252 seconds]
k610 has quit [Quit: Leaving]
mockra has joined #ruby
D4T has quit [Quit: Computer has gone to sleep.]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
becom33 has joined #ruby
maletor has joined #ruby
yacks has quit [Ping timeout: 252 seconds]
wyhaines has joined #ruby
johnpcamara has joined #ruby
relixx has quit [Quit: relixx]
<shevy> hmmm
jjbohn is now known as jjbohn|afk
<shevy> def foo(i, &action)
<shevy> am I the only one in thinking that this is cheating?
bigkm has joined #ruby
<shevy> anonymuse that is for creating gems?
<shevy> anonymuse I recommend you do the REALLY hard way. write your first .gemspec from scratch (copy an existing one line by line, until your project works)
<shevy> once you know .gemspec well, use jeweller
nomenkun_ has quit [Read error: Connection reset by peer]
jjbohn|afk is now known as jjbohn
cparen has joined #ruby
pygmael has quit [Quit: pygmael]
nomenkun has joined #ruby
woolite64_ is now known as woolite64
Kuifje has joined #ruby
banisterfiend has quit [Remote host closed the connection]
drago757 has joined #ruby
banisterfiend has joined #ruby
buscon has quit [Quit: Leaving]
dagnachew has joined #ruby
beneggett has joined #ruby
cparen has quit [Client Quit]
aantix has joined #ruby
timonv has quit [Remote host closed the connection]
psyprus has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
QKO has joined #ruby
relixx has joined #ruby
dr_neek has quit [Quit: dr_neek]
ananthakumaran1 has joined #ruby
monkegji_ has joined #ruby
<anonymuse> shevy: I think that makes sense
<anonymuse> Thank you
monkegji_ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
QKO_ has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
etcetera has joined #ruby
ananthakumaran has quit [Ping timeout: 255 seconds]
dr_bob has joined #ruby
timmow has quit [Remote host closed the connection]
dagnachew has quit [Quit: Leaving]
marcopod has quit [Remote host closed the connection]
djbender has joined #ruby
<shevy> anonymuse welcome. I started that way myself, it does not always seem obvious
<shevy> I still must find out how to distribute yaml files
chrishough has joined #ruby
unix is now known as fire
becom33 has quit [Ping timeout: 245 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
becom33 has joined #ruby
dimer has left #ruby ["Leaving"]
nateberkopec has quit [Quit: Leaving...]
havenwood has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
anonwu has quit [Remote host closed the connection]
maletor has joined #ruby
tylersmith has joined #ruby
nateberkopec has joined #ruby
conc2abs has joined #ruby
<conc2abs> hi
<conc2abs> if I want to provide a higher level interface that provides a consistent interface and can instantiate concrete implementation to do something but those things may require different approach,etc.
chussenot has quit [Quit: chussenot]
razibog has joined #ruby
j^2 has joined #ruby
<conc2abs> and that higher level interface gets passed a parameter or figures out what concrete implementation to instantiate
<conc2abs> and then it proxies the methods to the real implementation
<banisterfiend> anyone ahve a solution to this? https://gist.github.com/banister/4771450
<conc2abs> is that considered a factory method or a facade?
anonwu has joined #ruby
Ronnie_ has joined #ruby
<Ronnie_> .
<shevy> conc2abs what the heck is a factory method or a facade, who is coining all those crazy words?
Ronnie_ is now known as mlr
<shevy> I can't even say if you asked a question or not
<conc2abs> Gamma , Helm, Johnson and Vlissides
<shevy> lol
<shevy> Joe, John, Kerry, Sindy
rasta has joined #ruby
<rasta> Sympa son blog http://camille.serveblog.net/ :)
<conc2abs> shevy when you grow up you ll know who they are
rasta has quit [Killed (idoru (Spam is off topic on freenode.))]
<shevy> conc2abs but I am grown up and don't know them. is this sad?
<conc2abs> yes
sn0wb1rd has joined #ruby
Asher has quit [Quit: Leaving.]
chrishough has quit [Remote host closed the connection]
chrishough has joined #ruby
mlr has left #ruby [#ruby]
fmcgeough has quit [Read error: Connection reset by peer]
mlr has joined #ruby
fmcgeough has joined #ruby
adambeynon has joined #ruby
Xeago has quit [Ping timeout: 276 seconds]
tjbiddle has joined #ruby
<shevy> hmm will I survive without factory methods
jlebrech has quit [Quit: Leaving]
<shevy> def foo
<shevy> Lala.new
<shevy> end
<shevy> does this qualify as one yet?
arkiver has quit [Ping timeout: 245 seconds]
_nitti has quit [Remote host closed the connection]
<workmad3> shevy: Lala.new <-- that's a factory method
predator117 has joined #ruby
<shevy> \o/ I am in a factory, using my factory methods and singing "come on eileen"
zastern has joined #ruby
Asher has joined #ruby
daniel_- has joined #ruby
<conc2abs> is anyone here familiar with design patterns?
tjbiddle_ has joined #ruby
joeycarmello has joined #ruby
<shevy> workmad3 is
<banisterfiend> conc2abs: of course
tjbiddle has quit [Ping timeout: 240 seconds]
tjbiddle_ is now known as tjbiddle
<workmad3> conc2abs: I like to see how many design patterns I can force into a single class
<conc2abs> okay so if I wanted to create class SocialNetworkContacts @sn_implementation = nil def initialize(network_type) @sn_implementation = eval(network_type.new) end def contacts @sn_implementation.contacts end end
<workmad3> conc2abs: my SingletonAbstractFactoryFacadeFlyWeightVisitorCommandStrategyPost is legendary
<shevy> wow
<conc2abs> and there are 2 implementation classes which know, one knows how to get contacts from LinkedIn and the other from Github
<shevy> it is even fly weight
spider-mario has joined #ruby
<shevy> workmad3 I am using FatWorker since a while, those guys can really pack a punch or two
JohnBat26 has quit [Ping timeout: 245 seconds]
<workmad3> conc2abs: eval(network_type.new) <-- eww
<shevy> conc2abs I like that you use eval()
<shevy> what is the name of this design pattern?
<workmad3> sounds like it could be a strategy pattern idea
tetsus is now known as tetsu
<shevy> hmm sounds interesting
<conc2abs> well I won't use eval in a real implementation for this
markalanevans has joined #ruby
<shevy> perhaps it's some kind of place where classes fight one another
<workmad3> but tbh, I hate trying to go straight to design patterns
<workmad3> it just reeks of too much upfront design IME
<conc2abs> it can't be a strategy, there is no algorithm to replace
banisterfiend has quit [Read error: Connection reset by peer]
daig0ro has quit [Quit: Textual IRC Client: www.textualapp.com]
<conc2abs> there is an actual full blown implementation , I just don't want higher up objects to know about every little new implementation
<workmad3> conc2abs: algorithm for getting contacts from linkedin vs algorithm to get contacts from github
banisterfiend has joined #ruby
breakingthings has quit []
<conc2abs> no I don't think of strategy this way
<workmad3> conc2abs: if you want to get picky about the exact wording of a book that is now over 20 years old
<conc2abs> more like using oauth vs simple_auth would be a strategy
<conc2abs> but github vs linked in they are both full blown apis
<workmad3> conc2abs: tbh, sounds like you've already made up your mind
adeponte has joined #ruby
tobor_one has joined #ruby
djbender has left #ruby [#ruby]
Yakko is now known as Yakko
<workmad3> conc2abs: end of the day, design patterns are about identifying and naming certain common 'shapes' of implementations
<workmad3> conc2abs: it wouldn't surprise me if what you end up with has the shape of the strategy pattern
zigomir has quit [Quit: zigomir]
<workmad3> conc2abs: call it what you will though ;)
axl_ has quit [Quit: axl_]
otherj has joined #ruby
chrishough has quit [Quit: chrishough]
axl_ has joined #ruby
<TTilus> id prolly call that adapter
vlad_sta_ has quit [Read error: Connection reset by peer]
<workmad3> TTilus: ok, point taken ;)
<workmad3> TTilus: adapter does seem to fit better :)
djwonk has quit []
anonwu has quit [Remote host closed the connection]
provideal has joined #ruby
mattbl has joined #ruby
cableray has joined #ruby
io_syl has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
io_syl_ has joined #ruby
io_syl has quit [Read error: Connection reset by peer]
cableray has quit [Client Quit]
dr_bob has quit [Quit: Leaving.]
lurch_ has quit [Quit: lurch_]
mattbl has quit [Client Quit]
io_syl_ is now known as io_syl
dhruvasagar has joined #ruby
cableray has joined #ruby
cableray has quit [Client Quit]
hmans has quit [Quit: Linkinus - http://linkinus.com]
_nitti has joined #ruby
jblacktoo has joined #ruby
yacks has quit [Ping timeout: 252 seconds]
robert_ has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
alex__c2022 has quit [Read error: Connection reset by peer]
imami|afk is now known as banseljaj
rupee has joined #ruby
alex__c2022 has joined #ruby
skum has quit [Quit: Leaving...]
elaptics is now known as elaptics`away
cobragoat has joined #ruby
<bubblehead> I just installed RVM and tried to install Ruby but keep getting this error. Could someone take a look please? Thanks! http://pastebin.com/GtV4vUae
jonahR has joined #ruby
<GeekOnCoffee> bubblehead: did you read /Users/macbook/.rvm/log/ruby-1.9.3-p385/configure.log like it told you?
<GeekOnCoffee> bubblehead: there's going to be information in there that'll help diagnose it… given that we can't see the file, we can't really help you
robert_ has quit [Ping timeout: 256 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
zeade has joined #ruby
<bubblehead> GeekOnCoffee Thanks for looking. Here is the configure.log output. I guess it needs a closure compiler and I don't have one? http://pastebin.com/t0J5q7RL
yacks has joined #ruby
<GeekOnCoffee> bubblehead: it needs a C compiler, yes
chichou has quit [Remote host closed the connection]
ozgura has quit [Remote host closed the connection]
chrismcg is now known as zz_chrismcg
<bubblehead> GeekOnCoffee ok thanks I'll Google around.
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
<GeekOnCoffee> bubblehead: what platform are you on?
<reactormonk> GeekOnCoffee,
<bubblehead> OSX
<reactormonk> GeekOnCoffee, go install the OSX compiler package
QKO has quit [Read error: Operation timed out]
<GeekOnCoffee> bubblehead: Xcode is one easy way to get it, but there are other options as well
<withnale> is there an official date for when ruby2 comes out or just "when it's done"?
hackeron has quit [Ping timeout: 252 seconds]
otherj has quit []
<GeekOnCoffee> reactormonk: your tab complete is failing you
ngoldman has joined #ruby
<reactormonk> GeekOnCoffee, nah, had to disconnect and reconnect to the screen
provideal has quit [Quit: provideal]
<bubblehead> GeekOnCoffee reactormonk thanks will look at osx gcc installer
robert_ has joined #ruby
moted has joined #ruby
slainer6_ has quit [Ping timeout: 272 seconds]
mahmoudimus has joined #ruby
<reactormonk> GeekOnCoffee, oh, I see
<reactormonk> GeekOnCoffee, nah, that's just me being slow
<GeekOnCoffee> reactormonk: ;)
djwonk has joined #ruby
<reactormonk> bubblehead, apple got its own "developer tools"
<robert_> skogis: I think what I was looking for was concat
Hanmac has joined #ruby
pyrac has joined #ruby
QKO has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
<bubblehead> reactormonk Ok, so i don't need osx gcc installer, i can just use the command line tools from Apple (without XCode)?
agarie has joined #ruby
agarie has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
conc2abs has quit [Quit: conc2abs]
cdt has quit [Remote host closed the connection]
skattyadz has quit [Quit: skattyadz]
ananthakumaran1 has quit [Quit: Leaving.]
pothibo has joined #ruby
apok has joined #ruby
aedorn has joined #ruby
whitedawg has quit [Quit: Leaving.]
tommyvyo has joined #ruby
ahokaomaeha has quit [Ping timeout: 256 seconds]
hackeron has joined #ruby
anonwu has joined #ruby
<reactormonk> bubblehead, xactly
axl_ has joined #ruby
mityaz has joined #ruby
artOfWar has joined #ruby
aaronmacy has quit [Quit: Leaving.]
provideal has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
agarie has joined #ruby
shock_one has joined #ruby
chrishough has joined #ruby
mattbl has joined #ruby
ferdev has quit [Quit: Linkinus - http://linkinus.com]
sn0wb1rd has joined #ruby
<chrishough> mallfinder
<chrishough> oops, my bad, sorry
Jeaye has joined #ruby
apok has quit [Quit: apok]
bradleyp_ has joined #ruby
tenmilestereo has joined #ruby
axl_ has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
browndawg has left #ruby [#ruby]
recycle has quit [Read error: Connection reset by peer]
krz has quit [Quit: krz]
havenwood has joined #ruby
<bubblehead> reactormonk yeesh, tried installed dev tools but getting this Install a version of the Command Line Tools that supports OS X 10.8.
kenneth has quit [Quit: kenneth]
mlr has quit [Quit: mlr]
Mortchek has joined #ruby
aaronmacy has joined #ruby
<reactormonk> bubblehead, have fun, gotta go. apt-get install build-essential btw :-P
<bubblehead> ok thanks for your help
Bosma has quit [Ping timeout: 276 seconds]
Bosma has joined #ruby
Marco has quit [Disconnected by services]
marco_ has joined #ruby
<havenwood> bubblehead: Can't do Xcode + command-line-tools?
<havenwood> bubblehead: (I got here late, sry if you already explained.)
yacks has quit [Ping timeout: 256 seconds]
<bubblehead> havenwood I was trying to do it without having to get XCode too, which doesn't seem possible.
hmarr has quit [Ping timeout: 252 seconds]
<bubblehead> Thinking of trying osx gcc installer
becom33 has quit [Quit: Leaving]
<havenwood> bubblehead: If you pay $99 to register as an Apple Developer, there is a standalone command-line-tools available at developer.apple.com.
provideal has quit [Quit: provideal]
<havenwood> bubblehead: Oddly, not available without dev registration.
geekbri has quit [Read error: Connection reset by peer]
<bubblehead> havenwood I registered and can get it with a free account. I tried to install it, but it gives this wonderful error: "Install a version of the Command Line Tools that supports OS X 10.8."
<bubblehead> i got the latest that says it supports 10.7.4 or later
IrishGringo has joined #ruby
<havenwood> bubblehead: errr, yeah that isn't a lot of help, heh
danneu has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Jackneill has quit [Read error: Operation timed out]
zerba has quit [Remote host closed the connection]
<bubblehead> sure isn't. This is much more terminal action I thought I'd ever get into :)
nat_home has quit [Quit: Leaving.]
bigkm has quit [Ping timeout: 255 seconds]
BrindleFly has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
michele has left #ruby [#ruby]
DrCode has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
DuoSRX has quit [Ping timeout: 252 seconds]
yacks has joined #ruby
<havenwood> bubblehead: cave and install Xcode? :P
chrishough has quit [Quit: chrishough]
<bubblehead> havenwood never! I will beat my head against the wall for at least an hour more.
bradleyprice has joined #ruby
<bubblehead> j/k went with gcc installer and it looks like it's installing ruby...fingers crossed.
clooth has quit [Quit: clooth]
<bubblehead> omg it worked!
bradleyp_ has quit [Read error: Connection reset by peer]
sambio has quit [Ping timeout: 245 seconds]
alexhanh has joined #ruby
poikon has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
<alexhanh> is there some http client that would make a request with rack's env out of the box?
pyrac has quit [Quit: pyrac]
chrishough has joined #ruby
<alexhanh> ie. response = httpclient.execute(env)
<bubblehead> havenwood reactormonk GeekOnCoffee Finally got it going. Thanks for ya'lls help. Much appreciated.
girija has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
bricker`1ork has joined #ruby
zzing has joined #ruby
tjbiddle has joined #ruby
axl_ has quit [Quit: axl_]
<alexhanh> or rack request
Banistergalaxy has quit [Ping timeout: 272 seconds]
bricker`work has quit [Ping timeout: 248 seconds]
mrsolo has joined #ruby
tjbiddle_ has joined #ruby
tjbiddle has quit [Ping timeout: 252 seconds]
ottbot has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
<bubblehead> crud installed RVM, upgraded to Ruby 1.9.3 in hopes of solving this issue, but still getting this error when trying to run the Serve gem: http://pastebin.com/zc4e3kZR
DrCode has joined #ruby
tjbiddle_ has joined #ruby
JohnBat26 has joined #ruby
VolodymyrB has quit [Quit: Leaving.]
geekbri has joined #ruby
hmarr has joined #ruby
maycon has quit [Remote host closed the connection]
sambio has joined #ruby
hmarr has quit [Client Quit]
tjbiddle has quit [Ping timeout: 272 seconds]
tjbiddle_ is now known as tjbiddle
dhruvasagar has quit [Ping timeout: 252 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
QKO_ has joined #ruby
nga4 has quit [Ping timeout: 248 seconds]
ozgura has joined #ruby
andikr has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
QKO has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
<Nuck> ... Is there some way to mark the end-of-string when working with each_char?
kenneth has joined #ruby
hybris has quit [Quit: Leaving]
andikr has joined #ruby
<shock_one> bubblehead, Did you hope that it won't be deprecated anymore? It's not an error, everything should work
pothibo has quit [Quit: pothibo]
_justin has joined #ruby
tjbiddle has quit [Ping timeout: 260 seconds]
icole has joined #ruby
joofsh has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
fire has quit [Quit: WeeChat 0.4.0]
tjbiddle has joined #ruby
<shock_one> Nuck, Only if you calculate the string length before.
squidBits has joined #ruby
megha has joined #ruby
bricker`1ork is now known as bricker
<Hanmac> Nuck, i dont think so, because a string can hold \0
stormetrooper has quit [Quit: Leaving]
<Nuck> shock_one: Damn. I was thinking of jamming something on the end, but as Hanmac says, it cna hold \0 :/
<bubblehead> shock_one Not sure what I hoped. I was getting that error before upgrading Ruby and the gem wasn't running. It's running now though!
<bubblehead> errr, message not error
<_justin> megha: is a girl!! there are girls in irc?? :O
<megha> _justin: is irc just for boys ???
<Hanmac> justin only in your imagination :P
<Nuck> ... wat
<shock_one> Nuck, what do you want to achieve?
aquaranto has left #ruby [#ruby]
stormetrooper has joined #ruby
<_justin> megha: there are no restrictions, but girls are rare species here
<aedorn> There are no men or women on IRC. Only ideas and text.
<_justin> Hanmac: i think i am dreaming ..
cableray has joined #ruby
<Nuck> shock_one: Well, I'm writing a parser for something similar to CLI arguments in a state-machine form. But I need to refactor anyways, I think I've got a strategy to approach this with
<megha> aedorn: exactly.
tjbiddle_ has quit [Ping timeout: 255 seconds]
billy_ran_away has joined #ruby
<Nuck> I know tons of women on IRC lol
<GeekOnCoffee> girls are rare species here because people make such a big deal out of it… I imagine some of them come back as guys just to not have attention drawn to them
<billy_ran_away> How can I add module method to an existing module?
<shock_one> Nuck, I mean, do you need to know if the character in a block is the last one or what?
<shock_one> billy_ran_away, monkey patching
<Nuck> shock_one: Well, I need to close quotes and flush my buffers
<megha> _justin: you are right that their are less girls over here, but doesn't matters which gender is out here.
<_justin> megha aerdon: there is no gender bias in irc.. don't get offended .. pun indented
<shock_one> Nuck, when what?
<Nuck> shock_one: When it's at the end of the string
andikr has quit [Remote host closed the connection]
<megha> _justin: yeah it's fine :)
<Nuck> I can probably copypaste my code, but I've got a better plan in mind anyways
b1rkh0ff has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
<billy_ran_away> shock_one: thanks
andikr has joined #ruby
<shock_one> Nuck, assign the length to some var and then string.each_char.each_with_index{|char, index| do_something if index == length}
ciao has joined #ruby
cableray has quit [Client Quit]
ciao has quit [Client Quit]
<Hanmac> better: string.each_char.take(n)
<Nuck> shock_one: Well, that works too. But like I said, I had a solution pop into my head that involves a quick refactor ;)
fermion has quit [Ping timeout: 248 seconds]
<_justin> so i was exploring possibilities of writing jenkins plugin in ruby..
<shock_one> Hanmac, I think if he uses each_char, then he must be doing something in it.
<_justin> any one worked/interested in that domain ?
<_justin> i needed a code review ;)
cableray has joined #ruby
<billy_ran_away> shock_one: Any idea why this doesn't work? http://cl.ly/Mr4Z
<shock_one> _justin, I know nothing about jenkins but I ♥LOVE♥ code reviews.
jpun has joined #ruby
nomenkun has quit [Remote host closed the connection]
<shock_one> billy_ran_away, defind IPAddress and inside it define methods
<aedorn> You know, you'd think there would be a website purely for code review. I think the closest we get is a gist or repository that allows commentary... hmmm
rdark has quit [Ping timeout: 245 seconds]
<_justin> shock_one: here you go.. http://goo.gl/yylau rape it!! :D
<billy_ran_away> shock_one: You've confused me… what do you mean?
<shock_one> aedorn, there is code review on stackexchange
ddv has quit [Read error: Connection reset by peer]
poikon has joined #ruby
<shock_one> billy_ran_away, hold on
<billy_ran_away> shock_one: K, thanks for you attention! I see you're doing a code review.
dallasm has quit [Remote host closed the connection]
arturaz has quit [Ping timeout: 255 seconds]
apok has joined #ruby
<aedorn> shock_one: right, which is really the same as the above.. a gist with commentary. Maybe I just want something closer to a teacher grading papers. Nothing would make me feel more special than posting some code and having someone come by with a red marker, make a bunch of notes, and toss up a giant F with a circle around it! On second thought...
JonnieCa1he has joined #ruby
Catbuntu has joined #ruby
bricker_ has joined #ruby
Agis__ has joined #ruby
<shock_one> billy_ran_away, like that https://gist.github.com/shockone/2258b27c967034b22c12
carlyle has joined #ruby
enebo_ has joined #ruby
<billy_ran_away> shock_one: Okay thanks
<billy_ran_away> shock_one: Can you do module << self like for class methods?
zzing has quit [Quit: Computer has gone to sleep.]
<shock_one> billy_ran_away, yeah
skattyadz has joined #ruby
etcetera has quit []
predator117 has quit [Ping timeout: 252 seconds]
BrianJ has joined #ruby
skattyadz has quit [Client Quit]
ddv has joined #ruby
<_justin> shock_one: i want to know if i write god ruby..
<_justin> *good
Udom01 has joined #ruby
<shock_one> *divine
Udom01 has quit [Client Quit]
banisterfiend has joined #ruby
<havenwood> I don't always write god Ruby, but when I do its on stone tablets.
<billy_ran_away> shock_one: Why does running IPAddress.mongoize run the first method, the one that's supposed to be the instance method, and not the 2nd one? The one that requires the argument?
<shock_one> _justin, too much params self.upload(hostname,username,pass,upload_path,project,build_number,files)
gift has left #ruby [#ruby]
poikon has quit [Ping timeout: 245 seconds]
etcetera has joined #ruby
mephux_ has joined #ruby
<shock_one> billy_ran_away, oops, I made a mess.
autumn has quit [Read error: Operation timed out]
<havenwood> _justin: I agree, if all or groups of those arguments always go together, extract them into a Hash, Struct or Class I think.
cableray has quit [Ping timeout: 272 seconds]
<billy_ran_away> shock_one: Oh okay
<shock_one> billy_ran_away, just change the IPAddress:: to self. What is the first mongoize? Should it also be a class method?
Targen has joined #ruby
thomasfedb has quit [Ping timeout: 276 seconds]
<billy_ran_away> shock_one: No, that's supposed to be an instance method.
<shock_one> billy_ran_away, in your gist
<shock_one> billy_ran_away, modules dont have instances :)
otters has quit [Ping timeout: 252 seconds]
stnly has quit [Ping timeout: 245 seconds]
<_justin> shock_one, havenwood: yup
<billy_ran_away> shock_one: But there's a class within IPAddress called IPv4 doesn't that inherit the module's instance methods?
waxjar has quit [Ping timeout: 276 seconds]
<_justin> probably it should have been attributes
J-_-L has joined #ruby
jjbohn has quit [Quit: Leaving...]
<_justin> making a note for myself in code
<shock_one> billy_ran_away, no.
bricker has quit [*.net *.split]
marco_ has quit [*.net *.split]
mephux has quit [*.net *.split]
JonnieCache has quit [*.net *.split]
psyprus has quit [*.net *.split]
enebo has quit [*.net *.split]
undersc0re97 has quit [*.net *.split]
Udom0 has quit [*.net *.split]
kenichi has quit [*.net *.split]
enebo_ is now known as enebo
mephux_ is now known as mephux
J-_-L has quit [Client Quit]
<_justin> SOLID is so easy to understand and hard to write .. :(
cableray has joined #ruby
decoponio has quit [Quit: Leaving...]
<shock_one> billy_ran_away, define this method in the class, what is a problem?
<billy_ran_away> shock_one: Okay well I'm throughly confused...
<havenwood> _justin: An interesting talk at RubyConf that deals with refactoring args list like you've got there: http://www.confreaks.com/videos/1283-rubyconf2012-refactoring-from-good-to-great
<shock_one> billy_ran_away, why do you need it to inherit and not just define right in the class and not in the module?
<billy_ran_away> shock_one: Because I can't pass the Module Namespaced Class to mongoid for a custom field type for some reason.
shtirlic has joined #ruby
<shock_one> _justin, in plist_generator.rb you shouldn't select the hash many times. Save the result.
<billy_ran_away> shock_one: Or I'm just all kinds of messed up… I'm going to post this to the mongoid mailing list. Thanks for your help.
<havenwood> _justin: Just a style suggestion but always but a space after the comma between args.
<shock_one> billy_ran_away, no problem. I don't have any experience with mongoid, sorry.
kenichi has joined #ruby
<_justin> shock_one: rather than elegancy, does it have optimization advantages??
<billy_ran_away> shock_one: yea I think I've gotten way off track along the way
<shock_one> _justin, yes, unless MRI optimize it.
<havenwood> _justin: In plist_generator.rb I'd probably extract the xml out into its own file.
<_justin> havenwood: __DATA__ ??
kostine has joined #ruby
<shock_one> _justin, manifest.xml
<_justin> or a seperate file
Jackneill has joined #ruby
swex_ has quit [Remote host closed the connection]
<havenwood> _justin: I'd make it an .xml file. To me that is the cleanest, I think?
<_justin> i done that initially, but blah, then it didn't work for some stupid reason back when i started writing it
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<_justin> havenwood: +1
<havenwood> _justin: Then just: File.read(manifest.xml)
vlad_starkov has joined #ruby
swex has joined #ruby
<_justin> wish, github gave comment option for code lines..
<havenwood> s/manifest.xml/'manifest.xml'
<_justin> now it's just there for pull requests
<havenwood> _justin: ya, handy
psyprus has joined #ruby
psyprus has quit [*.net *.split]
luckyruby has joined #ruby
djwonk has quit []
marco_ has joined #ruby
c0rn has joined #ruby
axl_ has joined #ruby
Hanmac has quit [Ping timeout: 245 seconds]
_nitti has joined #ruby
<shock_one> _justin, what if title has more than one space between words. I suggest to change title.gsub /\s/ , '_' to /\s+/
kirun has joined #ruby
<shock_one> _justin, you don't need to explicitly return on the end of a method
jodok has quit [Quit: jodok]
colonolGron has joined #ruby
ShellFu has joined #ruby
<shock_one> _justin, instead of "#{build_path}/#{manifest_filename}" use File.join because Windows has different separators
kold has joined #ruby
shevy has quit [Ping timeout: 245 seconds]
kostine has quit [Quit: kostine]
kostine has joined #ruby
<shock_one> shock_one, _justin do you want to support ruby 1.8? In 1.9 you don't need to require 'rubygems'
<_justin> shock_one: jruby
undersc0re97 has joined #ruby
psyprus has joined #ruby
<shock_one> _justin, I think it includes gems automatically too, but I can be wrong.
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<havenwood> _justin: JRuby runs 1.9 mode by default in 1.7+, so you don't need it unless you're supporting JRuby 1.6.
Agis__ has left #ruby [#ruby]
<havenwood> 1.8-mode*
Hanmac has joined #ruby
puppehh has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
<epta> Unable to activate vagrant-1.0.3, because json-1.7.5 conflicts with json (~> 1.5.1)
banister_ has joined #ruby
<epta> How could I handle that?
undersc0re97 is now known as Guest45002
gutsiest60 has quit [Ping timeout: 255 seconds]
<puppehh> i'm kinda confused about the new cow friendly gc that will come in ruby 2.0..can any1 shed some light?
<havenwood> epta: Is json ~> 1.5.1 in your Gemfile or a dependency of another gem?
<epta> Not in my gemfile
BRMatt has joined #ruby
<havenwood> puppehh: So the old GC would flag a bit on everything as it went through. Fork would therefore treat all memory as changed and duplicate the whole bunch.
atyz has joined #ruby
<_justin> havenwood: i am , the jpi gem needs 1.6
<puppehh> ii got that part
<_justin> i don't think it is supported beyond
ddv has quit [Changing host]
ddv has joined #ruby
<havenwood> puppehh: With patch falcon, the bits are flagged on a single file, so the GC doesn't treat every thing as changed.
<puppehh> the thing I'm confused about is this: now being cow friendly means that the child process will share memory with the master process if it's only reading it, right?
brianpWins has joined #ruby
<havenwood> puppehh: So anything that remains in pristine condition isn't duplicated. The fork only needs to take additional memory for something that has changed.
pdamer has joined #ruby
cakehero has joined #ruby
<puppehh> ok, so what if after the child is forked and shares the memory, the master process writes to it's memory therefore changing it? the child will still point to the new changed values?
<havenwood> puppehh: Used to be everything would change on GC mark-and-sweep.
<havenwood> puppehh: Now only things that actually change need to be dup'ed in mem.
cakehero has quit [Max SendQ exceeded]
tjbiddle_ has joined #ruby
<puppehh> wait, if something in the child process change, won't all the memory from master process will be copied?
_nitti has quit [Ping timeout: 260 seconds]
<shock_one> _justin, you should check if block is provided when you're yielding. Also fix identation in mail_parser
<havenwood> puppehh: Have you seen Jesse Storimer's talk at RubyConf?
<puppehh> no
<havenwood> puppehh: He gives a nice explaination of pre-fork, worth watching!
<puppehh> it's at my watch later, gonna se it now
baphled has joined #ruby
<puppehh> havenwood: so in CoW, when the child process changes some data, only this data is dup'ed?
<puppehh> havenwood: not all the memory?
<havenwood> puppehh: I implemented futures on Ruby fork. Should take a look, no one uses it but I think its fun. :O https://github.com/Havenwood/ifuture
<_justin> shock_one: if block is not provided, it assigns to nil.. exception or ugly code??
tjbiddle has quit [Ping timeout: 276 seconds]
tjbiddle_ is now known as tjbiddle
<havenwood> puppehh: Yes, basically. The 30-year-old fork is actually pretty smart with only dup'n memory it must, but Ruby's mark-and-sweep GC would flag a bit on *everything* which entirely defeated the purpose of CoW.
<puppehh> havenwood: i know, but with bitmap marking this will work fine
<havenwood> puppehh: CoW = only duplicate memory that has been written to - yup, since bitmap marking won't change a bit on each thing as it marks
<havenwood> won't mark**
<shock_one> _justin, it's harder to track the error «undefined method each on object nil» then «you should provide a block»
<_justin> shock_one, okay
<shock_one> _justin, I like how IPASearch works! But, again, you shouldn't *return* nil
mattbl has quit [Quit: This computer has gone to sleep]
b1rkh0ff has joined #ruby
warreng has left #ruby [#ruby]
nathancahill has quit [Quit: nathancahill]
pdamer has quit [Quit: pdamer]
Yakko has quit [Remote host closed the connection]
robotmay has quit [Remote host closed the connection]
<shock_one> IPASearch ➡ IPASearch.find_in
shevy has joined #ruby
alup__ has joined #ruby
atyz has quit [Quit: Linkinus - http://linkinus.com]
fedza__ has joined #ruby
<havenwood> puppehh: Communicating between processes is pretty cool. Kinda tangentially related is what I'd think is a more controversial talk on Unix and Ruby in general: http://vimeo.com/43698188
erlingur has joined #ruby
<havenwood> thread folks knock fork as unscalable, but shops like Github disagree
aldodelgado has quit [Quit: aldodelgado]
bradhe has joined #ruby
nga4 has joined #ruby
QKO has joined #ruby
colonolGron has quit [Quit: leaving]
QKO_ has quit [Ping timeout: 240 seconds]
<havenwood> Hrmm, wonder if cow-friendly gc will matter for ifuture memory usage... Brain hurts now.
freakazoid0223 has joined #ruby
julian-delphiki has joined #ruby
fedza_ has quit [Ping timeout: 248 seconds]
carlyle has quit [Read error: Connection reset by peer]
<epta> havenwood: bundle install not 1.5.1 version, actually (Installing json (1.5.4) with native extensions)
carlyle has joined #ruby
a_a_g has quit [Quit: Leaving.]
<shock_one> _justin, rescuing everything is evil (ftp_upload)
djwonk has joined #ruby
bigkm has joined #ruby
<shock_one> _justin, The same about File.join in data.from_ipa
yacks has quit [Quit: Leaving]
bean has quit [Ping timeout: 255 seconds]
bean__ is now known as bean
alex__c2022 has quit [Read error: Connection reset by peer]
<shock_one> _justin, why do you assign and immediately return in binary_plist_of? You can get rid of info_plist_path
carlyle has quit [Remote host closed the connection]
alex__c2022 has joined #ruby
tuberculotoxin12 has joined #ruby
JohnBat26 has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
pedda has quit [Quit: Textual IRC Client: www.textualapp.com]
tvw has joined #ruby
vlad_starkov has joined #ruby
xrq` is now known as xrq
warb0 has joined #ruby
fourq has quit [Quit: Lost terminal]
ottbot has joined #ruby
Morkel_ has joined #ruby
<banister_> shock_one: meet me in #ruby.ru
x82_nicole has quit [Quit: Computer has gone to sleep.]
drago757 has quit [Quit: drago757]
vlad_starkov has quit [Remote host closed the connection]
kold has quit [Remote host closed the connection]
Morkel has quit [Ping timeout: 272 seconds]
Morkel_ is now known as Morkel
atyz has joined #ruby
<_justin> i am saving this log
eric has joined #ruby
eric is now known as Aguy
<Aguy> havenwood!
<_justin> well github is stupid without code commenting feature..
<havenwood> <3 Github
<havenwood> Aguy: Hi!
<Aguy> Mruby isnt working for me :(
<_justin> they should do such thing, if they really mean what they say by social coding
<havenwood> Aguy: Yeah, it is... still young...
prudhvi has joined #ruby
<Aguy> it said libmruby.a not found
<havenwood> Aguy: Hrmm... I haven't seen that one.
julian-delphiki has quit [Ping timeout: 260 seconds]
carlyle has joined #ruby
ddv has quit [Ping timeout: 240 seconds]
<havenwood> Aguy: I've had much better luck using C bytecode array with a wrapper than readable C. Or are you running into problems executing normal .rb and .mrb??
julian-delphiki has joined #ruby
<Aguy> One sec Im not sure
josh_keith has quit [Ping timeout: 240 seconds]
the_mentat has quit [Quit: Computer has gone to sleep.]
joofsh has joined #ruby
ddv has joined #ruby
alup_ has joined #ruby
<Aguy> Look when I run this command I get a error:
<Aguy> eric@eric-Lemur-UltraThin:~/Desktop/mruby-master$ gcc -o test_program Ltorrentnew.o build/host/lib/libmruby.a
<Aguy> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o: In function `_start':
<Aguy> (.text+0x18): undefined reference to `main'
<Aguy> collect2: ld returned 1 exit status
dr_neek has joined #ruby
<Aguy> Oh I think I did something wrong
nat_home has joined #ruby
elkclone has joined #ruby
ddv has quit [Client Quit]
billy_ran_away has quit [Read error: Operation timed out]
dr_neek has quit [Remote host closed the connection]
<Aguy> Nope same error
<Aguy> eric@eric-Lemur-UltraThin:~/Desktop/mruby-master/build/host$ gcc -o test_program Ltorrentnew.o lib/libmruby.a
<Aguy> /usr/lib/gcc/i686-linux-gnu/4.6/../../../i386-linux-gnu/crt1.o: In function `_start':
<Aguy> collect2: ld returned 1 exit status
<Aguy> (.text+0x18): undefined reference to `main'
Catbuntu is now known as Camel`
alup__ has quit [Ping timeout: 240 seconds]
<havenwood> Aguy: Aack, gotta run. I'm curious though, will look at later!
<Aguy> :(
<Aguy> Alright
<Aguy> see ya'
ngoldman has quit [Remote host closed the connection]
johnpcamara has quit [Quit: johnpcamara]
jjbohn has joined #ruby
mattbl has joined #ruby
meoblast001 has joined #ruby
havenwood has quit [Remote host closed the connection]
Camel` is now known as Catbuntu
timonv has joined #ruby
mattbl has quit [Client Quit]
clooth has joined #ruby
julian-delphiki has quit [Ping timeout: 272 seconds]
ner0x has quit [Quit: Leaving]
ddv has joined #ruby
Virunga has joined #ruby
julian-delphiki has joined #ruby
jjbohn has quit [Client Quit]
billy_ran_away has joined #ruby
shock_one has quit [Read error: Operation timed out]
ddv has quit [Client Quit]
ddv has joined #ruby
maxmanders has joined #ruby
aedorn has quit [Quit: Leaving]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
josh_keith has joined #ruby
aapzak has quit [Quit: leaving]
bricker_ is now known as bricker
breakingthings has joined #ruby
skattyadz has joined #ruby
Jackneill has quit [Remote host closed the connection]
skattyadz has quit [Client Quit]
rippa has quit [Ping timeout: 240 seconds]
_nitti has joined #ruby
ddv has quit [Quit: *poof*]
etcetera has quit []
mordocai has joined #ruby
ddv has joined #ruby
ottbot has quit [Ping timeout: 260 seconds]
ddv has quit [Client Quit]
Guest45002 is now known as undersc0re97
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
<mordocai> Does anyone know where the "standard" place to put custom c extensions (.so files) is on linux? [debian to be exact] I was having a hard time googling it. I know it at least shows up in ruby's path if I put it in /urs/lib/ruby/{ruby ver}/{arch}-linux/.
Catbuntu has quit [Quit: Smoke Camel`s!]
alup has quit [Remote host closed the connection]
arya_ has joined #ruby
<mordocai> s/urs/usr/
jodok has joined #ruby
jodok has quit [Changing host]
jodok has joined #ruby
toekutr has joined #ruby
ddv has joined #ruby
<Hanmac> mordocai just let them installed as gem
<Hanmac> and ruby solv it for you
fmcgeough has quit [Read error: Connection reset by peer]
fmcgeough_ has joined #ruby
johnpcamara has joined #ruby
arya has quit [Ping timeout: 248 seconds]
ddv has quit [Client Quit]
ddv has joined #ruby
hit has joined #ruby
mordocai has quit [Quit: Page closed]
dmiller1 has quit [Ping timeout: 255 seconds]
spena has joined #ruby
etcetera has joined #ruby
<spena> Hi, someone with experience on Builder that can give me a helping hand? It keeps adding the inspect tag at the end of the xml
<whitequark> spena: you have .inspect call somewhere in your template
Al____ has joined #ruby
<spena> nope, i've been googling and is about method_missing, but all solutions I found are related to irb, and I'm not using irb
mattbl has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
dmiller1 has joined #ruby
johnpcamara has quit [Quit: johnpcamara]
QKO has quit [Read error: Operation timed out]
geekbri has quit [Remote host closed the connection]
ddv has quit [Quit: *poof*]
<Hanmac> spena you only may need irb for testing, method_missing does not need irb itself
ngoldman has joined #ruby
Aguy has quit [Remote host closed the connection]
caleb_io has joined #ruby
<spena> Hanmac whitequark, thanks for answering. Hanmac what I meant to say is that all the google research i've made is related to irb, but this doesn't apply to me
beneggett has quit [Ping timeout: 245 seconds]
ddv has joined #ruby
_nitti_ has joined #ruby
QKO has joined #ruby
nomenkun has joined #ruby
<Hanmac> spena show me a sample you meand
bigkm has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
_nitti has quit [Ping timeout: 244 seconds]
etcetera has quit [Read error: Operation timed out]
etcetera_ has joined #ruby
etcetera_ is now known as etcetera
<spena> Hanmac solved :) I was calling put on the builder not on the generated xml, that's why builder was adding the inspect! Thanks!!!
caleb_io has quit [Client Quit]
mark_locklear has quit [Ping timeout: 256 seconds]
reactormonk has quit [Quit: WeeChat 0.3.8]
end_guy_ has joined #ruby
mengu has quit [Ping timeout: 252 seconds]
spena has quit [Quit: Ex-Chat]
tjbiddle has joined #ruby
DrCode has quit [Ping timeout: 276 seconds]
end_guy has quit [Ping timeout: 276 seconds]
fourq has joined #ruby
alup has joined #ruby
cableray_ has joined #ruby
hmarr has joined #ruby
chrishough has quit [Ping timeout: 260 seconds]
cableray has quit [Ping timeout: 255 seconds]
fourq has quit [Client Quit]
fourq has joined #ruby
cableray_ has quit [Ping timeout: 240 seconds]
DrCode has joined #ruby
poikon has joined #ruby
workmad3 has joined #ruby
geekbri has joined #ruby
KevinSjoberg has joined #ruby
fourq has left #ruby [#ruby]
kenneth has quit [Ping timeout: 272 seconds]
conc2abs has joined #ruby
schickung has quit [Quit: schickung]
geekbri has quit [Remote host closed the connection]
psyprus has quit [Changing host]
psyprus has joined #ruby
Elhu has joined #ruby
geekbri has joined #ruby
<zastern> I'm attempting to figure out how OptionsParse works. But for the example here (I'm targeting 1.8.7), - http://ruby-doc.org/stdlib-1.8.7/libdoc/optparse/rdoc/OptionParser.html - under what circumstance does the usage banner get printed? Nothing I've tried seems to work.
illsci has quit [Quit: leaving]
conc2abs has quit [Client Quit]
x82_nicole has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
tjbiddle_ has joined #ruby
kpshek has quit []
_nitti has joined #ruby
<zastern> hmm getoptlong seems easier
tjbiddle__ has joined #ruby
Ergo^ has joined #ruby
tjbiddle has quit [Ping timeout: 272 seconds]
tjbiddle__ is now known as tjbiddle
jblacktoo has quit [Ping timeout: 252 seconds]
Ergo^ has left #ruby ["Ex-Chat"]
lurch_ has joined #ruby
Virunga has quit [Remote host closed the connection]
anonwu has quit [Read error: Connection reset by peer]
jjbohn has joined #ruby
anonwu has joined #ruby
tjbiddle_ has quit [Ping timeout: 272 seconds]
_nitti_ has quit [Ping timeout: 260 seconds]
schickung has joined #ruby
jjbohn has quit [Client Quit]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
dmiller1 has quit [Ping timeout: 255 seconds]
<Hanmac> yeah ... only four months ...
relixx has quit [Quit: relixx]
lurch_ has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
nga4 has quit [Ping timeout: 255 seconds]
adambeynon has joined #ruby
Monie has joined #ruby
workmad3 has joined #ruby
pdamer has joined #ruby
relixx has joined #ruby
_nitti has quit [Remote host closed the connection]
tommyvyo has joined #ruby
colpus has joined #ruby
lurch_ has joined #ruby
<colpus> Hi, I am newbie, I installed ruby-1.9.3-p385 using rvm and then set it to use "rvm use 1.9.3-p385 --default" but when I install passenger-install-apache2-module it says it is using ruby 1.8. Why is this?
chrishough has joined #ruby
caleb_io has joined #ruby
ottbot has joined #ruby
<Jalada> are you using sudo to install the module?
<Jalada> (because you need to be using `rvmsudo` instead)
<Jalada> (colpus)
<colpus> Jalada: actually i am testing on a VM and am root
<colpus> Jalada: I tried rvmsudo too, but the same error, let me paste it
the_mentat has joined #ruby
<Jalada> what's the output of `which passenger-install-apache2-module` ?
krawchyk has quit [Remote host closed the connection]
<colpus> Jalada: /usr/local/bin/passenger-install-apache2-module
lurch_ has quit [Ping timeout: 272 seconds]
<Jalada> ok, that's definitely not the right one
<Jalada> have you done `gem install passenger`?
<Jalada> because it sounds like you have passenger installed via a package manager too
allaire has joined #ruby
codecop has quit [Remote host closed the connection]
monkegji_ has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<colpus> Jalada: Thanks, I didn't do gem install passenger, I was following 3 guides and got confused
geekbri has quit [Remote host closed the connection]
schickung has quit [Quit: schickung]
Akuma has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
angusiguess has quit [Ping timeout: 276 seconds]
puppehh has quit [Quit: puppehh]
_nitti has joined #ruby
kenneth has joined #ruby
guns has joined #ruby
shtirlic has quit [Remote host closed the connection]
mattbl is now known as MattRB
jlast has quit [Ping timeout: 245 seconds]
<shevy> Jalada!!! are you related to jalapenas?
<Jalada> shevy: um
<Jalada> no
volte has quit [Quit: leaving]
aedornm has joined #ruby
volte has joined #ruby
<Jalada> Do you mean jalapeños?
maycon has joined #ruby
otters has joined #ruby
<Jalada> or someone called Jalapenas?
andikr has quit [Remote host closed the connection]
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
axl_ has quit [Quit: axl_]
pdamer has quit [Quit: pdamer]
<shevy> Jalada oh yeah
QKO_ has joined #ruby
<shevy> jalapenos was the name I think, I only remember some food product with cheese + those jalapenos thingies inside
<Jalada> yeah
QKO has quit [Ping timeout: 252 seconds]
<Jalada> Jalada is just a random bunch of letters put together
<shevy> zastern haha beginning to dislike OptionParser already right? :D there is also slop btw https://github.com/injekt/slop
slainer68 has joined #ruby
<Jalada> inconveniently pronounced similarly to the Gelada monkey
<shevy> Jalada it has a certain swing, brazil... lambada... dance!
<Jalada> (I hadn't heard of them at the time)
<zastern> shevy: getoptlong seems easy enough
<shevy> lol
<shevy> never heard of the gelada monkey
<shevy> zastern I see
<zastern> ill check out slop also, thanks
<zastern> but this is just a simple script so id rather avoid gems where possible :)
beneggett has joined #ruby
<shevy> zastern I can understand that completely
<shevy> I just really hate OptionParser
<zastern> yep
<zastern> thus, my use of getoptlong
<zastern> :)
<shevy> I even have a local page documenting OptionParser, and every time I try to use it, I get angry when I look at how I am supposed to use it
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
<shevy> option.parse!(ARGV)
<shevy> it makes me really angry to see something like this
nomenkun has quit [Remote host closed the connection]
hakunin has joined #ruby
<shevy> option.define_head 'bla bla bla'
<shevy> what even is a "head", must I have a head
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<shevy> anyway, </rant>
anonwu has quit [Ping timeout: 245 seconds]
frem has quit [Ping timeout: 260 seconds]
gabrielrotbart has joined #ruby
ngoldman has quit [Ping timeout: 248 seconds]
samuel02 has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
Agis__ has joined #ruby
baphled_ has joined #ruby
baphled has quit [Read error: Connection reset by peer]
mockra has quit [Remote host closed the connection]
ngoldman has joined #ruby
tvw has quit [Ping timeout: 244 seconds]
stopbit has quit [Quit: Leaving]
colpus has quit [Quit: Page closed]
workmad3 has joined #ruby
the_mentat has quit [Quit: Computer has gone to sleep.]
<shevy> I am in a compile rush!
<shevy> gtk2 and gtk3 both work
<shevy> I could try ruby-gnome hmmmm
zeade has quit [Quit: Leaving.]
Neomex has joined #ruby
ottbot has quit [Ping timeout: 252 seconds]
chico_chicote has joined #ruby
timonv_ has joined #ruby
timonv has quit [Read error: Connection reset by peer]
pdamer has joined #ruby
mcatch has quit [Ping timeout: 245 seconds]
axl_ has joined #ruby
aedornm has quit [Quit: Leaving]
Neomex has quit [Client Quit]
kristofers has quit []
zeade has joined #ruby
pdamer has quit [Client Quit]
reactormonk has joined #ruby
anonwu has joined #ruby
<Boohbah> lol
<bricker> If I have a method that could take a block or not, should I put &block in the arguments?
<bricker> I guess if I'm not using "yield" then I have to put it in arguments and then use block_given?
Hanmac has quit [Ping timeout: 245 seconds]
_justin has quit [Quit: Leaving.]
frem has joined #ruby
tvw has joined #ruby
<Mon_Ouie> You don't have to put '&block' in the arguments
kpshek has joined #ruby
<Mon_Ouie> Usually you'd do that if you wanted to store the block in a variable to use it later, or to forward it to another method
<bricker> Mon_Ouie: I see
<Mon_Ouie> And use yield in other situations
DrShoggoth has quit [Ping timeout: 245 seconds]
atyz has quit [Quit: Leaving...]
jacktrick has joined #ruby
KB1ZIB has quit [Quit: Computer has gone to sleep.]
chico_chicote has quit [Remote host closed the connection]
jeffreybaird has joined #ruby
<bricker> Mon_Ouie: so in this case I actually am forwarding it to another method... a class takes a block in its initialize method, and then I have another little wrapper around that in another class. Something like this... does this look correct to you? (by "correct" I mean "not stupid") https://gist.github.com/bricker/4773783
<workmad3> bricker: block_given? is also always available, regardless of an &blk argument
aapzak has joined #ruby
<Mon_Ouie> Sure
<bricker> cool, thanks!
devdazed has quit [Quit: Bye]
atyz has joined #ruby
aedornm has joined #ruby
hsoj has joined #ruby
jerrysv has joined #ruby
kostine has quit [Quit: kostine]
angusiguess has joined #ruby
devdazed has joined #ruby
jerrysv has left #ruby ["Leaving..."]
sailias has quit [Ping timeout: 252 seconds]
rheoli has joined #ruby
zeade has quit [Quit: Leaving.]
mengu has joined #ruby
zzing has joined #ruby
Elhu has joined #ruby
dallasm has joined #ruby
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
bricker`1A has joined #ruby
Mon_Ouie has quit [Ping timeout: 256 seconds]
hsoj is now known as hsoj|away
bricker`LA has quit [Ping timeout: 252 seconds]
otters has quit [Quit: WeeChat 0.3.9.2]
otters has joined #ruby
hsoj|away is now known as hsoj
otherj has joined #ruby
Vektor has joined #ruby
marco_ has quit [Disconnected by services]
otters has quit [Client Quit]
otters has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
blf has joined #ruby
<blf> Anyone here know much about handling xml data?
swex_ has joined #ruby
otherj has quit [Client Quit]
<GeekOnCoffee> blf: sure
frem has quit [Quit: Computer has gone to sleep.]
<GeekOnCoffee> lots of people do, do you have a specific question?
swex has quit [Ping timeout: 245 seconds]
rynkan has quit [Ping timeout: 245 seconds]
<blf> I'm trying to figure out how best to parse a specific element: https://gist.github.com/anonymous/4773886 Looks like there could be ERRORs all throughout the document, but I'm not sure how to pair an error with it's corresponding counterpart.
mockra has joined #ruby
SeanLazer has quit [Quit: SeanLazer]
fmcgeough_ has quit [Quit: fmcgeough_]
otherj has joined #ruby
frem has joined #ruby
<workmad3> wow, a DTD
jimeh has quit [Quit: Computer has gone to sleep.]
Mattix has quit [Ping timeout: 257 seconds]
squidBits_ has joined #ruby
R_Macy has joined #ruby
etank has quit [Ping timeout: 248 seconds]
grayson has quit [Quit: Textual IRC Client: www.textualapp.com]
<blf> workmad3: right. So if I find an error, I guess I should scan ahead and look for a LinkSetDb element? And if the /very/ next element is a LinkSetDb, then the error is paired with that LinkSetDb element?
djwonk has quit []
fourq has joined #ruby
mythical has joined #ruby
kascote has joined #ruby
mythical has quit [Client Quit]
kpshek has quit []
mythical has joined #ruby
emocakes has quit [Quit: emocakes]
mockra has quit [Ping timeout: 272 seconds]
stkowski has joined #ruby
kpshek has joined #ruby
atyz has quit [Quit: Leaving...]
<banister_> anyone know wtf is going on here? https://gist.github.com/banister/15f6fa2cce18e8779b6e
caleb_io has quit [Quit: caleb_io]
fourq has quit [Client Quit]
QKO has joined #ruby
squidBits has quit [Ping timeout: 255 seconds]
squidBits_ is now known as squidBits
ottbot has joined #ruby
monkegji_ has quit [Remote host closed the connection]
baphled_ has quit [Ping timeout: 256 seconds]
Hanmac has joined #ruby
benlieb has quit [Quit: benlieb]
QKO_ has quit [Ping timeout: 244 seconds]
chrishough has quit [Quit: chrishough]
<workmad3> banister_: wow fun
tenmilestereo has quit [Quit: Leaving]
<workmad3> banister_: does bundler 1.2 work with ruby 2? I thought that was what bundler 1.3 was doing
joofsh has quit [Remote host closed the connection]
luckyruby has quit [Remote host closed the connection]
joofsh has joined #ruby
idkazuma has joined #ruby
<banister_> workmad3: could be, maybe it's still a --pre at this stage
<banister_> yeah it's a pre
benlieb has joined #ruby
Whoop has quit [Quit: Gone]
alup has quit [Quit: Leaving]
fourq has joined #ruby
elaptics`away is now known as elaptics
<banister_> workmad3: seems to fix it! or at least it's getting much further
<banister_> workmad3: thanks homie!
anderse has quit [Quit: anderse]
timonv_ has quit [Remote host closed the connection]
fourq has quit [Client Quit]
angusiguess has quit [Ping timeout: 255 seconds]
Mattix has joined #ruby
zeade has joined #ruby
zeade has quit [Client Quit]
Whoop has joined #ruby
Whoop has quit [Changing host]
Whoop has joined #ruby
elux has quit [Quit: Bye!]
kpshek has quit []
jjbohn has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
markalanevans has quit [Quit: markalanevans]
hsoj is now known as hsoj|away
markalanevans has joined #ruby
s__dana has quit [Quit: s__dana]
jeffreybaird has quit [Quit: jeffreybaird]
markalanevans has quit [Client Quit]
markalanevans has joined #ruby
Guest123 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
squidBits has quit [Read error: Connection reset by peer]
markalanevans has quit [Client Quit]
squidBits has joined #ruby
carlyle has quit [Remote host closed the connection]
relixx has quit [Quit: relixx]
squidBits has quit [Read error: Connection reset by peer]
squidBits has joined #ruby
blaxter has quit [Quit: foo]
MattRB has quit [Quit: This computer has gone to sleep]
guns has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
jlast has joined #ruby
mockra has joined #ruby
jimeh has joined #ruby
workmad3 has quit [Read error: Operation timed out]
thomasfedb has joined #ruby
zeade has joined #ruby
Al____ has quit [Quit: Al____]
d34th4ck3r has joined #ruby
zeade has quit [Client Quit]
blf has quit [Quit: Page closed]
baba has joined #ruby
hsoj|away is now known as hsoj
megha has quit [Ping timeout: 256 seconds]
benlieb has quit [Quit: benlieb]
dallasm has quit [Remote host closed the connection]
mattbl has joined #ruby
ilyam has joined #ruby
alup_ has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
cupakromer has joined #ruby
otherj has quit []
BrianJ has quit [Quit: Computer has gone to sleep.]
m8 has joined #ruby
havenwood has joined #ruby
otherj has joined #ruby
JumpMast3r has joined #ruby
elico has joined #ruby
slyv has joined #ruby
etcetera has quit []
mattbl has quit [Quit: This computer has gone to sleep]
spider-mario has quit [Remote host closed the connection]
kpshek has joined #ruby
emergion has joined #ruby
mattbl has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
etcetera has joined #ruby
relixx has joined #ruby
danielpc1x has quit [Ping timeout: 252 seconds]
ryanjh has joined #ruby
jodok has quit [Ping timeout: 252 seconds]
mityaz has quit [Quit: See ya!]
jonahR_ has joined #ruby
jonahR_ has quit [Client Quit]
mordocai has joined #ruby
c0rn has quit [Ping timeout: 256 seconds]
interactionjaxsn has quit [Remote host closed the connection]
mattbl has quit [Client Quit]
johnpcamara has joined #ruby
kpshek has quit [Client Quit]
Marco has joined #ruby
waxjar has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
jonahR has quit [Ping timeout: 248 seconds]
c0rn has joined #ruby
mattbl has joined #ruby
ryanjh has quit [Client Quit]
gabrielrotbart has joined #ruby
mattbl has quit [Client Quit]
philcrissman has quit [Remote host closed the connection]
robotmay has joined #ruby
<mordocai> Have a 1.9.x specific ruby problem here with c extensions. I didn't realize it, but my system is using ruby 1.8 by default. I tested my c extension with 1.9 and it immediately breaks when I try to realloc a pointer obtained via StringValueCStr. This worked fine in 1.8. Any ideas why I can't realloc in 1.9?
nari has joined #ruby
relixx has quit [Quit: relixx]
ryanf has joined #ruby
almondev has joined #ruby
<almondev> can i ask really silly questions about ruby as I learn to code here in this chan
<havenwood> almondev: sure
<almondev> so i do not understand something about floats... i know what they are and so on but this line of code is confusing to me
<almondev> puts y /=5 until y <=1.0
rheoli has quit [Quit: Textual IRC Client: www.textualapp.com]
<almondev> if y is set to 9 for example..
<almondev> why would the floast that is on the end not decimal point the result
clooth has quit [Quit: clooth]
<havenwood> almondev: is y a float?
<almondev> i know if i set y to 9.0 it will work just curios about why setting it on the end of the conditional won't work
<davidcelis> almondev: a comparison wouldn't affect y
ner0x has joined #ruby
<davidcelis> almondev: the math itself is what would return a float, not a comparison
relixx has joined #ruby
<almondev> ok that is what i was wondering
<almondev> so i could also say puts y /= 5.0 until y <=1 and it would return a float
<almondev> testing that
peregrine81 has quit [Quit: Computer sleeping.]
<almondev> ok .. got it now.. on to code blocks!
<almondev> ty
JoeyJoeJo has quit [Read error: Connection reset by peer]
alanp_ has joined #ruby
hsoj has left #ruby [#ruby]
ilyam_ has joined #ruby
skattyadz has joined #ruby
JoeyJoeJo has joined #ruby
Morkel has quit [Quit: Morkel]
v0n has quit [Read error: Operation timed out]
alanp has quit [Disconnected by services]
alanp_ is now known as alanp
mattbl has joined #ruby
Agis__ has quit [Quit: Agis__]
fourq has joined #ruby
dmonjo has joined #ruby
<dmonjo> hi i need a good book on ruby
<dmonjo> for beginners
<almondev> if anyone knows Kevin Skoglund tell him he types to fast on his vids :)
<almondev> dmonjo..
<almondev> i would go to www.codeschool.com
<almondev> try ruby is a course . start there
<havenwood> dmonjo: I've heard a bunch of people recommend Learn to Program by Chris Pine: http://pine.fm/LearnToProgram/
breakingthings has quit []
<havenwood> dmonjo: Some other good free resources listed at: http://www.ruby-lang.org/en/documentation/
joshman_ has quit [Ping timeout: 255 seconds]
<havenwood> dmonjo: TryRuby.org is a quick fun start.
otters has quit [Quit: WeeChat 0.3.9.2]
<dmonjo> python vs rbuy
<havenwood> dmonjo: (By the same CodeSchool guys almondev mentioned.)
<dmonjo> ruby
<dmonjo> which wins
<almondev> dmonjo i am learning ruby from scratch.. no real code experience.. i am on day 2 taking a lynda.com course and i am already doing code blocks
otherj has quit []
<dmonjo> i have the option of choosing which programming language to learn
ilyam has quit [Ping timeout: 276 seconds]
ilyam_ is now known as ilyam
adman65 has joined #ruby
<almondev> dmonjo.. ruby all day.. i have a complete app running in python django.. the community is so much better in ruby
QKO_ has joined #ruby
otters has joined #ruby
etcetera has quit [Read error: Operation timed out]
<Hanmac> dmonjo who needs python when you can ruby in python? :P
otherj has joined #ruby
seba4 has quit [Ping timeout: 245 seconds]
<adman65> I'm forking off multiple children. I want them share the same read pipe. My problem is that once one process reads, no other processes can…essentially making the other children worthless. How can I allow the other processes to share the pipe?
<almondev> and when i say app i mean a full blown MLM network marketing software for a company that does millions through it every day .. python is great.. django great but the community in open source languages is important.. ruby wins there
jacktrick has quit [Quit: Leaving]
<dmonjo> Hanmac: cant you python in ruby?
allaire has quit []
QKO has quit [Ping timeout: 252 seconds]
<Hanmac> not yet
bradleyprice has quit [Remote host closed the connection]
jerius has quit []
<havenwood> dmonjo: Yehuda gave a good talk on some of the differences between Ruby and Python: http://blip.tv/rupy-strongly-dynamic-conference/yehuda-katz-tradeoffs-and-choices-why-ruby-isn-t-python-5726460
mmitchell has quit [Remote host closed the connection]
LouisRoR has quit [Ping timeout: 245 seconds]
razibog has quit [Ping timeout: 252 seconds]
samuel02 has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
benlieb has joined #ruby
lurch_ has joined #ruby
etcetera has joined #ruby
kirun has quit [Quit: Client exiting]
tobor_one has quit [Quit: tobor_one]
dmonjo has left #ruby ["Leaving"]
mercwithamouth has joined #ruby
EPIK has joined #ruby
<Hanmac> shevy look at this: http://bugs.ruby-lang.org/issues/7839 another sample where Rails wants the help of ruby because they code shitty?
piotr__ has joined #ruby
<almondev> oh crap.. wheels fell off ... iterators chapter... learning slowed
piotr_ has quit [Ping timeout: 245 seconds]
mengu has quit [Quit: This computer has gone to sleep]
tvw has quit []
halfdan has joined #ruby
dustint has quit [Read error: Operation timed out]
otherj has quit []
<halfdan> Hi, what's the easiest way to transform something like: [1, "foo", false] into the string (!): 1, "foo", false
Kuifje has quit [Ping timeout: 260 seconds]
pyrac has joined #ruby
seba4 has joined #ruby
<Hanmac> >> p [1, "foo", false].map(&:inspect).join(", ")
<eval-in> Hanmac: Output: "\"1, \\\"foo\\\", false\"\n" (http://eval.in/9630)
mengu has joined #ruby
<Hanmac> >> puts [1, "foo", false].map(&:inspect).join(", ")
<eval-in> Hanmac: Output: "1, \"foo\", false\n" (http://eval.in/9631)
pyrac has quit [Client Quit]
denom has joined #ruby
tommyvyo has joined #ruby
fourq has quit [Quit: Lost terminal]
<halfdan> Hanmac: thank you! perfect
<yfeldblum> Hanmac, or, cutting off a whole class of attacks at the root ... is good!
danneu has quit [Ping timeout: 252 seconds]
newUser1234 has quit [Remote host closed the connection]
Rix has quit [Ping timeout: 248 seconds]
bean has quit [Quit: Computer has gone to sleep.]
mattbl has left #ruby ["Leaving"]
lancepantz_ is now known as lancepantz
Qwakeree has joined #ruby
sn0wb1rd has quit [Read error: Connection reset by peer]
<havenwood> halfdan: A less elegant way :P [1, "foo", false].to_s.gsub(/^.|.$/, '')
Xeago has joined #ruby
sn0wb1rd has joined #ruby
dmonjo has joined #ruby
<halfdan> :) thought about that when I posted my question, but the map/inspect approach looks more elegant
<halfdan> thanks!
lurch_ has quit [Quit: lurch_]
dmonjo has left #ruby ["Leaving"]
<havenwood> halfdan: >.>: [1, "foo", false].to_s.chop.reverse.chop.reverse
angusiguess has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Killed (holmes.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
m8 has quit [Quit: Sto andando via]
beneggett has quit [Quit: Computer has gone to sleep.]
emmanuelux has joined #ruby
<mordocai> havenwood: Heh, nice. I wouldn't be surprised if that way is the fastest performance.
kenneth has quit [Quit: kenneth]
_nitti has quit [Remote host closed the connection]
<havenwood> mordocai: like chopping the crust off of toast!
_nitti has joined #ruby
otters has quit [Quit: WeeChat 0.4.0]
otters has joined #ruby
_nitti has quit [Remote host closed the connection]
<heftig> [1, "foo", false].inspect[1..-2]
LouisRoR has joined #ruby
<havenwood> >> [1, "foo", false].to_s[1..-2]
<eval-in> havenwood: Output: "" (http://eval.in/9634)
<havenwood> >> pp [1, "foo", false].to_s[1..-2]
<eval-in> havenwood: Output: "/tmp/execpad-063c8151d16e/source-063c8151d16e:1:in `<main>': undefined method `pp' for main:Object (NoMethodError)\n" (http://eval.in/9635)
<havenwood> nvm
<gf3> kk
<havenwood> heftig: cool!
main has quit [Ping timeout: 245 seconds]
dmonjo has joined #ruby
<havenwood> oh, p or puts - not pp... got it
<havenwood> >> p [1, "foo", false].to_s[1..-2]
<eval-in> havenwood: Output: "\"1, \\\"foo\\\", false\"\n" (http://eval.in/9637)
gregor3005 has joined #ruby
<dmonjo> guys i need a good hardcopy book to learn ruby
<dmonjo> not websites
angusiguess has quit [Ping timeout: 276 seconds]
<dmonjo> any good ones that can get me on track at slow pace but good steady steps
<havenwood> dmonjo: The Ruby Programming Language is well-worth owning imho! http://shop.oreilly.com/product/9780596516178.do
<gf3> Prag Prog is great, dmonjo
<Qwakeree> I found book from Hal Fulton
<dmonjo> dont want these books learn ruby in 24h
gregor3005 has left #ruby [#ruby]
<gf3> How about Ruby in 48h?
Umren has quit [Read error: Connection reset by peer]
<gf3> OR
<gf3> You could read a chapter every-other-hour
zeade has joined #ruby
<Qwakeree> off-topic question: know anybody any good IRC room for C# programming? I cant found anything. Thanks
<havenwood> dmonjo: So you want to spend 24 hours on the book?
<gf3> Qwakeree: ##c
<Hanmac> C# programming is not good :P
<dmonjo> havenwood: no
<gf3> Qwakeree: Ohhhh
<dmonjo> contrary
<gf3> Qwakeree: My bad
<dmonjo> something slow and explanings the bits and bytes
<almondev> or... you could read some stuff in the 24hr book spend a few days playing with what you learned and trying to break stuff which is more helpful than just reading
<Hanmac> hm shoundt there a #C# room too?
Rix has joined #ruby
<Qwakeree> <gf3> why? i could try but is it on freenode?
<mordocai> dmonjo: If you want to know bits and bytes (and mean it the way I think you do) you should learn something lower level like C. Just saying...
<gf3> Maybe #CSharp or ##CSharp? (haven't tried)
<reactormonk> Hanmac, buuuh and try #csharp
<almondev> the best way i am finding to learn ruby from zero to understanding is to sit at your computer and start trying to write code blocks
BrindleFly_ has joined #ruby
<Qwakeree> <gf3> thank you
<havenwood> dmonjo: The Ruby Programming Language (Flanagan and Matsumoto authored) is like the bible of Ruby. Skim the Sudoku implementation at the start, and read carefully. Gets really dense in the last few chapters!
<gf3> Qwakeree: I thought you meant plain C, which is my mistake
jodok has joined #ruby
jodok has quit [Changing host]
jodok has joined #ruby
<havenwood> s/and read/and thenceforth read
* Hanmac dont C# because he is sleepy :P
autumn has joined #ruby
<gf3> Qwakeree: Yes join #CSharp
<almondev> then you get to integers dmonjo and your head explodes
BrindleFly has quit [Read error: Operation timed out]
BrindleFly_ is now known as BrindleFly
biff_tannen has joined #ruby
atmosx_desktop has joined #ruby
<Qwakeree> <gf3> okey understand.. thank you gentlemans/ladies
jgarvey has quit [Quit: Leaving]
IceDragon has joined #ruby
frem has quit [Quit: Computer has gone to sleep.]
bubblehead has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
danneu has joined #ruby
Kingy has joined #ruby
elico has quit [Quit: elico]
relixx has quit [Quit: relixx]
evenix has quit [Remote host closed the connection]
jjbohn has quit [Quit: Leaving...]
evenix has joined #ruby
danneu1 has joined #ruby
danneu has quit [Ping timeout: 252 seconds]
yshh has quit [Ping timeout: 260 seconds]
Virunga has joined #ruby
mythical has quit [Quit: mythical]
beneggett has joined #ruby
Qwakeree has quit []
<slyv> I seem to be doing something very wrong doing some simple math.
mordocai has quit [Ping timeout: 245 seconds]
skattyadz has quit [Quit: skattyadz]
<slyv> I am doing this equation: seconds = (num_nations_to.to_i / (num_nations.to_i / $tset.to_i))
<slyv> With the following variables:
<slyv> num_nations_to = 118416
<slyv> num_nations = 118416
<slyv> And $tset = 4620
dmonjo has left #ruby ["Leaving"]
Hanmac has quit [Ping timeout: 245 seconds]
<slyv> However, the equation outputs 4736
evenix has quit [Ping timeout: 244 seconds]
Qwakeree has joined #ruby
erlingur has quit [Quit: http://erlingur.is]
etcetera has quit []
maxmanders has quit [Quit: Computer has gone to sleep.]
arya_ has quit [Ping timeout: 248 seconds]
tjbiddle_ has joined #ruby
joofsh has quit [Remote host closed the connection]
jodok has quit [Quit: jodok]
ottbot has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Ping timeout: 272 seconds]
tjbiddle_ is now known as tjbiddle
arya has joined #ruby
QKO has joined #ruby
otherj has joined #ruby
QKO_ has quit [Ping timeout: 255 seconds]
<havenwood> slyv: those variables are already integers, no need to #to_i
<havenwood> slyv: 118416 / 118416 / 4620; #=> 0
<slyv> But, 118416 / (118416 / 4620) ==> 4620
<havenwood> slyv: 118416 / (118416.to_f / 4620) #=> 4620.0
<havenwood> slyv: dividing integers by integers is a no-go
<slyv> Ah!
<havenwood> slyv: convert one to float, or use #fdiv
<slyv> Thank you!
Xeago has quit [Remote host closed the connection]
yshh has joined #ruby