<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]
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]
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
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]
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
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]
<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]
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")
<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.
<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
<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: ...
<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
<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
<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.
<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)
<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"
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?
<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
<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]
<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?
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.]
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.
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
<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
<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
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]
<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
<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...
<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: 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]
<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]
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:
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
_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]
<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
<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.]
<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?
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
<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]
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))