fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
mwilson` has quit [Excess Flood]
mwilson` has joined #ruby
josh^ has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
adamkittelson has quit [Remote host closed the connection]
Nathandim has quit [Remote host closed the connection]
bbttxu has left #ruby [#ruby]
awarner has quit [Remote host closed the connection]
AtoxIO has quit [Remote host closed the connection]
fbernier has joined #ruby
sonkei has joined #ruby
emanu has joined #ruby
larissa has joined #ruby
deryl has quit [Quit: Leaving.]
deryl has joined #ruby
sonkei has quit [Client Quit]
adeponte has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]
nadirvardar has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
maxmmurphy has quit [Quit: maxmmurphy]
machty has quit [Ping timeout: 246 seconds]
m_3 has quit [Quit: leaving]
RichieEvan has quit [Quit: RichieEvan]
machty has joined #ruby
beneggett has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
kiyoura has joined #ruby
whowantstolivefo has quit []
gh has joined #ruby
Ontolog has joined #ruby
<Ontolog> >> "foo" =~ /\p{Han}/
<al2o3cr> -e:1:in `eval': (eval):1: invalid character property name {Han}: /\p{Han}/ (SyntaxError), from -e:1:in `<main>'
<Ontolog> wtf
mmitchell has joined #ruby
nohonor has quit [Quit: Leaving]
<Ontolog> in irb it works, 1.9.3p125 :001 > "汉语" =~ /\p{Han}/ # => 0
<Ontolog> when I ruby -c on a file that has the same code, i get the above error
mahmoudi_ has quit [Ping timeout: 268 seconds]
mahmoudimus has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
davidcelis has quit [Quit: K-Lined.]
<Ontolog> Ontolog: in the file do you have #encoding: utf-8 at the top?
<Ontolog> Ontolog: ohhh no that was it thanks
larissa has quit [Ping timeout: 264 seconds]
<kiyoura> wut
chimkan___ has quit [Quit: chimkan___]
<blazes816> Ontolog: way to help the n00bs out man
<Ontolog> :D
gh has quit [Quit: gh]
sailias has joined #ruby
fbernier has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
<fowl> lectrick: use << instead of **
mmitchell has quit [Ping timeout: 260 seconds]
tommyvyo_ has quit [Remote host closed the connection]
c0rn_ has quit [Quit: Computer has gone to sleep.]
verto is now known as verto|off
tyfighter has quit [Quit: tyfighter]
fantazo has quit [Remote host closed the connection]
chrxn__ has quit [Ping timeout: 255 seconds]
blazes816 has quit [Quit: blazes816]
apok_ has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
sneakyness_wk has quit [Quit: bro]
Takehiro has quit [Ping timeout: 272 seconds]
freeayu has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
CodeFriar has quit [Quit: Leaving...]
sailias has quit [Quit: Leaving.]
apok has quit [Ping timeout: 246 seconds]
apok_ is now known as apok
burgestrand has quit [Ping timeout: 272 seconds]
chrxn__ has joined #ruby
raz has quit [Ping timeout: 276 seconds]
larissa has joined #ruby
Markvilla has quit [Quit: Computer has gone to sleep.]
chimkan has joined #ruby
<Ontolog> anyone know how I can enable $DEBUG when running rake?
bikcmp has left #ruby [#ruby]
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Synthead has quit [Quit: p33 ba115]
<coyo> https://github.com/luislavena/rake-compiler this is freaking cool.
elaptics is now known as elaptics`away
<Ontolog> but it doesn't answer my derp
M- has joined #ruby
<coyo> Ontolog: i'm not qualified to answer your durp.
burgestrand has joined #ruby
M- has quit [Client Quit]
M- has joined #ruby
<deryl> rake itself doesn't support setting DEBUG=(0|1) but it does do -t|—trace
M- has quit [Remote host closed the connection]
risico has quit [Ping timeout: 246 seconds]
<deryl> you can rake DEBUG=1 some_rake_task if *that* task supports the DEBUG env var being set
jlogsdon has quit [Remote host closed the connection]
chrxn__ is now known as chrxn
justsee has quit [Quit: Leaving...]
ilyam has joined #ruby
headius has joined #ruby
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
jjang has quit [Remote host closed the connection]
gavit has joined #ruby
LennyLinux has quit [Remote host closed the connection]
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
mwilson` has quit [Excess Flood]
mwilson` has joined #ruby
artOfWar has quit [Remote host closed the connection]
Tearan has quit [Quit: Sleepy Badger....]
artOfWar has joined #ruby
austinbv has quit [Ping timeout: 244 seconds]
moted has quit [Ping timeout: 252 seconds]
Tearan has joined #ruby
Agis__ has quit [Quit: Agis__]
cakehero has quit [Quit: Computer has gone to sleep.]
haggen has quit [Quit: haggen]
cakehero has joined #ruby
artOfWar has quit [Ping timeout: 252 seconds]
<Ontolog> yeah that's what im saying
<Ontolog> i have if $DEBUG shits
<Ontolog> i want $DEBUG to be set
<Ontolog> so it's rake DEBUG=1 some_task
<Ontolog> ok
yshh has joined #ruby
yshh has quit [Remote host closed the connection]
cj3kim has quit [Quit: This computer has gone to sleep]
yshh has joined #ruby
<Ontolog> except it's not
Ontolog has left #ruby [#ruby]
cakehero has quit [Client Quit]
austinbv has joined #ruby
chrisja has quit [Quit: leaving]
emanu has quit [Quit: emanu]
iori has joined #ruby
savage- has joined #ruby
maxmmurphy has joined #ruby
adeponte has joined #ruby
dmiller has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
dagnachewa has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
adeponte has joined #ruby
al2o3cr has quit [Ping timeout: 248 seconds]
savage- has quit [Ping timeout: 260 seconds]
austinbv has quit [Ping timeout: 240 seconds]
sonkei has joined #ruby
dmiller has joined #ruby
LouisGB has quit [Ping timeout: 260 seconds]
luxurymode has joined #ruby
horofox has joined #ruby
skrewler has quit [Ping timeout: 260 seconds]
cmasseraf has quit [Read error: Connection reset by peer]
chrxn has quit [Quit: Leaving]
cmasseraf has joined #ruby
nga4 has quit [Ping timeout: 246 seconds]
GeekOnCoffee has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
manizzle has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
GeekOnCoffee has joined #ruby
ewag has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
pk1001100011 has quit [Remote host closed the connection]
mmitchell has joined #ruby
chrxn has joined #ruby
luxurymode has quit [Quit: Computer has gone to sleep.]
beneggett has quit [Quit: Computer has gone to sleep.]
punkrawkR has quit [Read error: Connection reset by peer]
beneggett has joined #ruby
tommyvyo_ has joined #ruby
tommyvyo_ has quit [Changing host]
tommyvyo_ has joined #ruby
Hanmac1 has joined #ruby
seich is now known as Seich
Squeee has quit [Quit: Leaving]
hunglin has joined #ruby
Hanmac has quit [Ping timeout: 272 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Ping timeout: 272 seconds]
tomku has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
adeponte has quit [Remote host closed the connection]
ckrailo has quit [Quit: Computer has gone to sleep.]
thunderstrike has quit [Remote host closed the connection]
mwilson` has quit [Excess Flood]
tommyvyo has quit [Remote host closed the connection]
tommyvyo_ is now known as tommyvyo
mwilson` has joined #ruby
cakehero has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
S2kx has quit [Quit: Leaving]
GoHuyGo has joined #ruby
S1kx has joined #ruby
amaya_ has joined #ruby
cj3kim has quit [Quit: Leaving]
ncr100 has quit [Ping timeout: 245 seconds]
chrxn has quit [Ping timeout: 248 seconds]
h4mz1d has joined #ruby
horofox has left #ruby [#ruby]
qos has quit [Quit: Linkinus - http://linkinus.com]
hbpoison has quit [Ping timeout: 272 seconds]
mrsolo has quit [Quit: Leaving]
tomku has joined #ruby
headius has quit [Quit: headius]
chrxn has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
vitor-br has joined #ruby
apok has quit [Quit: apok]
kvirani has joined #ruby
seanstickle has quit [Quit: seanstickle]
specialGuest has quit [Ping timeout: 244 seconds]
`brendan has joined #ruby
artOfWar has joined #ruby
swarley has joined #ruby
adeponte has joined #ruby
skrewler has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
wallerdev has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
moshee has quit [Ping timeout: 252 seconds]
moshee has joined #ruby
dagnachewa has quit [Quit: Leaving]
voodoofish430 has quit [Quit: Leaving.]
moshee is now known as Guest75039
fermion has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
radic has quit [Disconnected by services]
radic_ has joined #ruby
radic_ is now known as radic
emmanuelux has joined #ruby
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
ZachBeta has joined #ruby
vio183 has joined #ruby
fbernier has joined #ruby
hunglin has quit [Quit: Leaving.]
vio183 has quit [Client Quit]
stephenjudkins has quit [Quit: stephenjudkins]
mmitchell has quit [Remote host closed the connection]
beneggett has quit [Quit: Computer has gone to sleep.]
ken_barber1 has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 264 seconds]
justsee has quit [Quit: Leaving...]
hbpoison has joined #ruby
adeponte has quit [Remote host closed the connection]
ken_barber has joined #ruby
justinmcp has quit [Remote host closed the connection]
beneggett has joined #ruby
c0rn_ has joined #ruby
stephenjudkins has joined #ruby
machty has quit [Read error: Connection reset by peer]
dmiller has quit [Remote host closed the connection]
jjbohn has quit [Quit: Linkinus - http://linkinus.com]
machty has joined #ruby
fbernier has quit [Ping timeout: 240 seconds]
adeponte has joined #ruby
sambio has joined #ruby
pingfloyd has joined #ruby
sonkei has joined #ruby
Guedes0 has quit [Ping timeout: 255 seconds]
tommyvyo_ has joined #ruby
Juul has quit [Read error: Operation timed out]
Vert has quit [Read error: Connection reset by peer]
AlbireoX has quit [Read error: Connection reset by peer]
AlbireoX has joined #ruby
emanu has joined #ruby
justinmcp has joined #ruby
scb has quit [Ping timeout: 268 seconds]
S1kx has quit [Ping timeout: 244 seconds]
Jamone has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
quazimodo has joined #ruby
dmiller has joined #ruby
Cache_Money has joined #ruby
<quazimodo> nubiest of questions; is Foo::Bar only used for Module::Class or can we do Foo::bar for Class::method?
Monie has quit [Ping timeout: 244 seconds]
manizzle has joined #ruby
xpen has joined #ruby
<quazimodo> i guess Class::clas_method makes sense eh
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
adeponte has quit [Remote host closed the connection]
apok has joined #ruby
<ryanf> you can do that quazimodo
<ryanf> people usually use . instead, but occasionally you see :: used for method calls
emanu has quit [Quit: emanu]
sonkei has joined #ruby
jenrzzz has joined #ruby
banisterfiend has joined #ruby
chrxn has quit [Ping timeout: 272 seconds]
chrxn has joined #ruby
asklov has quit [Ping timeout: 268 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
justsee has quit [Quit: Leaving...]
iamjarvo has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
TandemAdam has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
gen0cide_ has quit [Quit: ["rm -rf $ME"]]
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
tomsthumb has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
radic_ is now known as radic
stillEPIK has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
EPIK has quit [Ping timeout: 240 seconds]
sonkei has quit [Quit: Computer has gone to sleep.]
kiyoura has quit [Quit: Leaving]
xclite has quit [Ping timeout: 260 seconds]
gtuckerkellogg has joined #ruby
jenrzzz has joined #ruby
loves_color_text has joined #ruby
ZachBeta has joined #ruby
xclite has joined #ruby
digitalcakestudi has joined #ruby
Hanmac1 is now known as Hanmac
<digitalcakestudi> trying to install cucumber on Ubuntu with rvm but getting error. https://gist.github.com/8c0bc9eb0c90a0124be6
mwilson` has quit [Excess Flood]
hemanth has joined #ruby
mwilson` has joined #ruby
ilyam has quit [Quit: ilyam]
h4mz1d has quit [Ping timeout: 248 seconds]
horofox has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
emanu has joined #ruby
TandemAdam has left #ruby ["Leaving"]
ZachBeta has quit [Quit: Computer has gone to sleep.]
andreim has joined #ruby
<andreim> hello, does reading a file that's being written to at the same time affect it in any way?
emmanuelux has joined #ruby
jonathanwallace has joined #ruby
xpen_ has joined #ruby
<amaya_> I think you can't get a file which has being written.
xpen has quit [Read error: Connection reset by peer]
<amaya_> maybe ,I am not sure.
Tearan has joined #ruby
await has joined #ruby
<amaya_> well , I can replay a video which has been downing.
stephenjudkins has quit [Quit: stephenjudkins]
mwilson` has quit [Excess Flood]
tommyvyo has quit [Quit: Computer has gone to sleep.]
mwilson` has joined #ruby
sorbo_ has joined #ruby
Spooner has quit [Ping timeout: 255 seconds]
ken_barber has quit [Remote host closed the connection]
freeayu has quit [Read error: Connection reset by peer]
sonkei has joined #ruby
andreim has left #ruby ["Leaving"]
freeayu has joined #ruby
steakknife has joined #ruby
austinbv has joined #ruby
vitor-br has quit [Quit: Saindo]
RailWolf has joined #ruby
sleetdrop has joined #ruby
wallerdev has quit [Quit: wallerdev]
adeponte has joined #ruby
SCommette has joined #ruby
mwilson` has quit [Excess Flood]
mwilson` has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
banannagram has joined #ruby
bananagram has quit [Read error: Connection reset by peer]
maletor has joined #ruby
chrxn has quit [Ping timeout: 240 seconds]
uris has joined #ruby
GoHuyGo has quit [Ping timeout: 268 seconds]
austinbv has quit [Ping timeout: 244 seconds]
snorkdude has joined #ruby
amaya__ has joined #ruby
amaya_ has quit [Ping timeout: 252 seconds]
horofox has quit [Quit: horofox]
amaya__ has quit [Client Quit]
sorbo_ has quit [Quit: sorbo_]
amaya_ has joined #ruby
aristidesfl has quit []
sonkei has quit [Quit: Computer has gone to sleep.]
adeponte has quit [Remote host closed the connection]
igaiga has joined #ruby
justsee has quit [Quit: Leaving...]
riley526 has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
amaya_ has quit [Client Quit]
snorkdude has quit [Remote host closed the connection]
amaya_ has joined #ruby
igaiga has quit [Remote host closed the connection]
igaiga has joined #ruby
Neurotiquette has quit [Quit: Neurotiquette]
swarley has quit [Ping timeout: 246 seconds]
Bosma has quit [Ping timeout: 244 seconds]
el_diablo has joined #ruby
blazes816 has joined #ruby
ananthakumaran has joined #ruby
austinbv has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
blazes816 has quit [Ping timeout: 240 seconds]
BrokenCog has quit [Quit: leaving]
igaiga has quit [Remote host closed the connection]
<amaya_> :)
rjsamson has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
cj3kim has quit [Quit: This computer has gone to sleep]
Dreamer3 has joined #ruby
cmasseraf has quit [Quit: Leaving]
uris has quit [Quit: leaving]
larissa has quit [Quit: Leaving]
igaiga has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
el_diablo has quit [Remote host closed the connection]
SCommette has joined #ruby
banannagram is now known as bananagram
hbpoison has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
ewag has quit [Ping timeout: 260 seconds]
philips_ has quit [Excess Flood]
philips_ has joined #ruby
emanu has quit [Quit: emanu]
snorkdude has joined #ruby
banisterfiend has quit [Ping timeout: 252 seconds]
mbk has joined #ruby
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
machty has quit [Read error: Connection reset by peer]
machty has joined #ruby
rohit has joined #ruby
elico has quit [Ping timeout: 252 seconds]
mbk has quit [Ping timeout: 260 seconds]
amaya_ has quit [Ping timeout: 252 seconds]
snorkdude has quit [Remote host closed the connection]
SCommette has quit [Quit: SCommette]
Guest75039 has quit [Ping timeout: 252 seconds]
Guest75039 has joined #ruby
kvirani has quit [Remote host closed the connection]
SCommette has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
Guest81709 has joined #ruby
igaiga has quit [Remote host closed the connection]
hero has joined #ruby
hero has quit [Changing host]
hero has joined #ruby
SCommette has quit [Quit: SCommette]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
SCommette has joined #ruby
jenrzzz_ has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
jenrzzz has quit [Ping timeout: 264 seconds]
Tearan has quit [Quit: Sleepy Badger....]
hero has quit [Quit: leaving]
yshh has quit [Read error: No route to host]
yshh has joined #ruby
techsurvivor has quit [Quit: WeeChat 0.3.8]
jenrzzz_ has quit [Ping timeout: 264 seconds]
Cache_Money has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
digitalcakestudi has quit [Ping timeout: 248 seconds]
adeponte has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
knirhs has joined #ruby
IrishGringo has joined #ruby
mrdodo has joined #ruby
sonkei has joined #ruby
n_blownapart has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
yasushi has joined #ruby
ewag has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
n_blownapart has quit [Remote host closed the connection]
a_a_g has joined #ruby
rohit has quit [Quit: Leaving]
chimkan__ has joined #ruby
chimkan__ has quit [Remote host closed the connection]
chimkan__ has joined #ruby
austinbv has quit [Ping timeout: 244 seconds]
Eplemosen has joined #ruby
chimkan has quit [Ping timeout: 245 seconds]
chimkan__ is now known as chimkan
nat2610 has quit [Ping timeout: 248 seconds]
Eplemosen has quit [Client Quit]
Eplemosen has joined #ruby
a_a_g has quit [Quit: Leaving.]
AlbireoX has quit [Ping timeout: 246 seconds]
Eplemosen has quit [Client Quit]
davidcelis has joined #ruby
blazes816 has joined #ruby
null- has joined #ruby
apok has quit [Ping timeout: 246 seconds]
fantazo has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
mercwithamouth has joined #ruby
austinbv has joined #ruby
apok has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
yasushi has quit [Remote host closed the connection]
gtuckerkellogg has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
adeponte has quit [Remote host closed the connection]
steakknife has quit [Quit: Leaving.]
steakknife has joined #ruby
steakknife has quit [Read error: Connection reset by peer]
steakknife has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
bananagram has quit [Ping timeout: 244 seconds]
Guest81709 has quit [Ping timeout: 252 seconds]
resure has joined #ruby
SCommette has quit [Quit: SCommette]
amaya_ has joined #ruby
<null-> There's another tool like RVM that is more lightweight and doesn't do as much for you, what is its name?
<bnagy> rbenv
<bnagy> and there's an even lighter one, but I don't see the point of it (and can't remember its name)
resure has quit [Remote host closed the connection]
<null-> bnagy: yeah, rbenv, thank you
<Hanmac> null-: debian/ubuntu has its own ruby-version-manager its even more lighter than rbenv
austinbv has quit [Ping timeout: 248 seconds]
<Hanmac> "update-alternatives --config ruby"
<null-> Hanmac: :) - yeah I'm using debian's stock ruby1.9.3 version now
octavio has joined #ruby
<Hanmac> you maybe need this too: "update-alternatives --config gem"
mikepack has joined #ruby
austinbv has joined #ruby
nari has quit [Ping timeout: 264 seconds]
<null-> Hanmac: using wheezy, the thing with debian is rubygems are better installed through apt-get instead of gem
<_br_> 1;3D/exit
<_br_> ups ww, sorry
<null-> Hanmac: and gems in the official debian repos can get old
<Hanmac> yeah the funny thing is that you could install gems with apt-get too ... but the versions are maybe outdated
<null-> Hanmac: right, that's my point
<null-> not that I care much right now, just learning ruby
chimkan has left #ruby [#ruby]
<Hanmac> i would prefer to install the gems with gem, i only sayd "update-alternatives --config gem" so it find the right gem command (and does not use the 1.8 one)
<null-> even the gem gem package can get old :)
<null-> gem is included in ruby now right?
<Hanmac> yeah
ryanf has quit [Quit: leaving]
apok has quit [Quit: apok]
und3f has joined #ruby
Jamone has quit [Ping timeout: 260 seconds]
hbpoison has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
tonini has joined #ruby
daniel_hinojosa has joined #ruby
octavio has left #ruby [#ruby]
arietis has joined #ruby
igaiga has joined #ruby
plu has quit [Quit: ZNC - http://znc.sourceforge.net]
chimay has joined #ruby
chimay has quit [Changing host]
chimay has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
sonkei has joined #ruby
wallerdev has joined #ruby
savage- has joined #ruby
mercwithamouth has quit [Ping timeout: 255 seconds]
xpen_ has quit [Remote host closed the connection]
ryanf has joined #ruby
xpen has joined #ruby
ph^ has joined #ruby
xpen_ has joined #ruby
sn0wb1rd has joined #ruby
xpen has quit [Ping timeout: 260 seconds]
djdb has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
coolwaters has joined #ruby
Averna has quit [Quit: Leaving.]
madhatter has quit [Remote host closed the connection]
ndrei has joined #ruby
maletor has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
ewag has quit [Ping timeout: 264 seconds]
ltsstar has joined #ruby
und3f has quit [Quit: Leaving.]
und3f has joined #ruby
sleetdrop has quit []
ananthakumaran has joined #ruby
plu has joined #ruby
tagrudev has joined #ruby
blazes816 has quit [Quit: blazes816]
maesbn has joined #ruby
stepnem has joined #ruby
wallerdev has quit [Quit: wallerdev]
Eplemosen has joined #ruby
tagrudev has quit [Killed (idoru (Spam is off topic on freenode.))]
<quazimodo> I still havent figured out how to use :foo stuff
lolmaus has joined #ruby
mrdodo has quit [Remote host closed the connection]
g33k has joined #ruby
BSaboia__ has quit [Read error: Connection reset by peer]
rakl has joined #ruby
igaiga has quit [Remote host closed the connection]
machty has quit [Ping timeout: 272 seconds]
himsin has quit [Ping timeout: 246 seconds]
zommi has joined #ruby
await has quit [Quit: await]
nilg has joined #ruby
dnyy__ has quit [Remote host closed the connection]
NimeshNeema has quit [Remote host closed the connection]
patricksroberts has quit [Remote host closed the connection]
randym has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
moeSeth has quit [Read error: Connection reset by peer]
kapowaz has quit [Remote host closed the connection]
SeanTAllen has quit [Remote host closed the connection]
sr___ has quit [Remote host closed the connection]
JC_SoCal has quit [Remote host closed the connection]
ctevie has quit [Remote host closed the connection]
im0b has quit [Remote host closed the connection]
Dr4g has quit [Read error: Connection reset by peer]
fcoury has quit [Read error: Connection reset by peer]
notbrent has quit [Read error: Connection reset by peer]
dkannan has quit [Remote host closed the connection]
lectrick has quit [Remote host closed the connection]
aquaranto has quit [Read error: Connection reset by peer]
rcsheets has quit [Remote host closed the connection]
garndt has quit [Remote host closed the connection]
Spaceghost|cloud has quit [Remote host closed the connection]
dekz has quit [Remote host closed the connection]
pvh has quit [Remote host closed the connection]
cool has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
octarine has quit [Remote host closed the connection]
jhowarth has quit [Write error: Connection reset by peer]
_marvin_ has quit [Write error: Connection reset by peer]
davidboy has quit [Write error: Connection reset by peer]
jastix has joined #ruby
noyb has joined #ruby
Morkel has joined #ruby
mikepack has quit [Remote host closed the connection]
bluOxigen has joined #ruby
igaiga has joined #ruby
Guest75039 is now known as moshee
ghosTM55 has joined #ruby
robbyoconnor has joined #ruby
austinbv has quit [Ping timeout: 244 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
fantazo has quit [Remote host closed the connection]
zigomir has joined #ruby
robbyoconnor has quit [Client Quit]
robbyoconnor has joined #ruby
gogiel has quit [Ping timeout: 264 seconds]
triptec has quit [Quit: triptec]
chimkan_ has joined #ruby
chimkan_ has quit [Client Quit]
sspiff has joined #ruby
ryanf has quit [Quit: broken pipes |||]
ryanf has joined #ruby
justinmcp has quit [Remote host closed the connection]
bluOxigen has quit []
bluOxigen has joined #ruby
banisterfiend has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
justinmcp has joined #ruby
apok has joined #ruby
jprovazn_away is now known as jprovazn
gogiel has joined #ruby
timonv has quit [Remote host closed the connection]
sonkei has quit [Quit: Computer has gone to sleep.]
mwilson` has quit [Excess Flood]
maxmmurphy has joined #ruby
mwilson` has joined #ruby
kitofr has joined #ruby
daniel_hinojosa has quit [Ping timeout: 255 seconds]
Criztian has joined #ruby
<Hanmac> zigomir i think you are in the wrong channel
<zigomir> hehe, sorry! no i'm not, but i wanted to share this with my coworkers ... yeah, we're still doing php here :(
<Hanmac> hehe, i can do the same work in C too :P
<zigomir> ;)
rakm has quit [Ping timeout: 246 seconds]
ltsstar has quit [Quit: ltsstar]
igaiga has quit [Remote host closed the connection]
rakm has joined #ruby
cezar has joined #ruby
dhruvasagar has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
noyb has quit [Ping timeout: 260 seconds]
justinmcp has quit [Remote host closed the connection]
cezar has quit [Client Quit]
dangerousdave has joined #ruby
hemanth has quit [Ping timeout: 260 seconds]
maxmmurphy has joined #ruby
dv_ has quit [Ping timeout: 245 seconds]
<Yomero> .
<Hanmac> ·
maletor has quit [Quit: Computer has gone to sleep.]
<Yomero> when i have isntalled ruby 1.9.3 and i run ruby example.rb this is using the yarv?
babinho has joined #ruby
sambio has quit []
aganov has joined #ruby
sn0wb1rd has quit [Quit: I will be right back]
<Hanmac> Yomero, yeah YARV is one of the names for 1.9
maletor has joined #ruby
<Yomero> then i dont need nothing more for use the virutal machine? with that i already i'm using it?
dv_ has joined #ruby
hemanth has joined #ruby
<Hanmac> Yomero you dont need to care about how ruby works internal with virtual maschines or not
jgrevich has quit [Quit: jgrevich]
aliljet has quit [Ping timeout: 245 seconds]
luckyruby has joined #ruby
sonkei has joined #ruby
moshee is now known as Guest45814
dhruvasagar is now known as Guest70059
apok has quit [Quit: apok]
Eplemosen has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Ping timeout: 260 seconds]
mrdodo has joined #ruby
g_rotbart has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
mbk has joined #ruby
a_a_g has joined #ruby
banisterfiend has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
mrdodo has quit [Ping timeout: 246 seconds]
g33k has quit [Quit: Leaving]
Criztian has quit [Remote host closed the connection]
[diecast] has joined #ruby
kroniksenvy has joined #ruby
charliesome has joined #ruby
anildigital_work has joined #ruby
<kroniksenvy> if i have array ticket = [12, 47, 35] what is the diffirence between these two calls ticket.sort and ticket.sort!
<kroniksenvy> what does ! i thot it would to a counter reverse rom biggest to smallest but the output is the same
tagrudev has joined #ruby
<Hanmac> kroniksenvy the second modifies the array itself ... the first makes a copy
<Hanmac> and the ! is part of the method name
<Yomero> then now ticket is [12,35,47] ?
LouisGB has joined #ruby
polysics has joined #ruby
<kroniksenvy> Hanmac: Ah so i can have unordered array can if i need it sorted somewhere and unsorted elsewhere i can just says .sort and it makes a copy meaning i dont have to define a new variable for the copy
<Hanmac> hm the irc bot is currently no there ...
<Hanmac> ticket = [12, 47, 35];ticket.sort;ticket #ticket is [12, 47, 35]
<Hanmac> ticket = [12, 47, 35];ticket.sort!;ticket #ticket is [12, 35, 47]
<kroniksenvy> Hanmac: thats pretty neat
<charliesome> i suppose a replacement bot is needed!
<kroniksenvy> Man i like ruby more and more
<Hanmac> when you use "sorted_ticket = ticket.sort" then ticket is still unsorted
<kroniksenvy> thats pretty neat
hoelzro|away is now known as hoelzro
<kroniksenvy> oh wow it works with reverse as well
<kroniksenvy> is there a way to see what a certian variable is
<kroniksenvy> say i have an array with keys and values is there a way to print it out to see the structure
chrisja has joined #ruby
<kroniksenvy> similar to var_dump() or print_r() in php
pingfloyd has quit [Quit: pingfloyd]
eldariof has joined #ruby
Asher has quit [Read error: Connection reset by peer]
dkannan has joined #ruby
Asher has joined #ruby
Hanmac has quit [Ping timeout: 264 seconds]
sspiff has quit [Changing host]
sspiff has joined #ruby
<kitofr> kroniksenvy give an example... tried inspect?
adambeynon has joined #ruby
<kroniksenvy> found .inspect yes
ghosTM55 has quit [Ping timeout: 244 seconds]
banisterfiend has quit [Ping timeout: 260 seconds]
Takehiro_ has joined #ruby
pdelgallego has joined #ruby
ryanf has quit [Quit: leaving]
flype has joined #ruby
kapowaz has joined #ruby
LouisGB has quit []
pngl has joined #ruby
<pngl> Is there a simple file-based key-value persistent database out there? It's for a toy project and I don't want the overhead of setting up something like mongo.
LouisGB has joined #ruby
elico has joined #ruby
fixl has joined #ruby
<hoelzro> pngl: BDB?
Takehiro_ has quit [Remote host closed the connection]
sonkei has quit [Quit: Computer has gone to sleep.]
<pngl> hoelzro: thanks, this looks perfect
specialGuest has joined #ruby
<bnagy> tokyo cabinet
<bnagy> much better than bdb
<bnagy> same concept though
tagrudev has quit [Quit: Me = Awesome]
<bnagy> also very good ruby wrapper
tagrudev has joined #ruby
haxrbyte has joined #ruby
* hoelzro checks out TC
chrxn has joined #ruby
Takehiro_ has joined #ruby
mucker has joined #ruby
Criztian has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
Markvilla has joined #ruby
echobravo has quit [Read error: Connection reset by peer]
Takehiro_ has quit [Remote host closed the connection]
c0rn_ has quit []
Takehiro_ has joined #ruby
<pngl> bnagy: kyoto cabinet today maybe?
Takehiro_ has quit [Remote host closed the connection]
Iszak has quit [Read error: Connection reset by peer]
berserkr has joined #ruby
arturaz has joined #ruby
coolwaters has quit [Remote host closed the connection]
timonv has joined #ruby
lessthanphil has joined #ruby
Criztian has quit [Remote host closed the connection]
Guest70059 has quit [Ping timeout: 244 seconds]
chussenot has joined #ruby
dhruvasagar has joined #ruby
luckyruby has quit [Remote host closed the connection]
Hanmac has joined #ruby
<Hanmac> kroniksenvy: p variable ?
<Hanmac> @all: NEVER DO "cycle.reverse" or you will pay for that :D
roiko has joined #ruby
qwerxy has joined #ruby
Iszak has joined #ruby
<kroniksenvy> I am doing ruby online browser tutorial and came to point of creating new classes and just want following confirmed
<kroniksenvy> For instance i created a class that has attributes title, time, fulltext
Yomero has quit [Ping timeout: 246 seconds]
<kroniksenvy> now i defined a method initialize which will serve as construstor an in it i say @title = title, is @ similar to this in java
<kroniksenvy> where @ points to a class attribute and title to method attribute
<Hanmac> hm yes ... @ tells ruby that the variable is a instance variable
<hoelzro> kroniksenvy: @title is an instance variable
<Paradox> i brought some mayonnaise would you like some?
<kroniksenvy> : P
roiko_ has joined #ruby
<kroniksenvy> one thing i dont fully understand is blog.each do |entry| what does |entry| represent
<bnagy> pngl: no, the KC API is much clunkier
<Paradox> kroniksenvy, blog is a collection
<Paradox> each iterates over a collection and yields something to its block
<bnagy> and TC performs more than fine for single threaded stuff
robotmay has joined #ruby
xbayrockx has joined #ruby
<Paradox> blog.each do |entry| is the same as [1, 2, 3, 4, 5].each do |number|
<kroniksenvy> Paradox: Ahhh oke i understand
elaptics`away is now known as elaptics
tvw has joined #ruby
roiko has quit [Ping timeout: 260 seconds]
JohnBat26 has joined #ruby
chrxn has quit [Ping timeout: 252 seconds]
<shevy> kroniksenvy you can use any names within the two |
banisterfiend has joined #ruby
<Paradox> yeah
<shevy> "entry" is just a fairly logical name
<Paradox> you can do %w{herp derp lorp dorp}.each do |blorghlorg|
<kroniksenvy> shevy: yes understand it assigns each part of teh blog collection to name that is in between ||
<shevy> :)
zommi has quit [Ping timeout: 265 seconds]
<kroniksenvy> I like ruby more and more
ly_gs has joined #ruby
ly_gs has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
kapowaz has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
dkannan has quit [Remote host closed the connection]
<kroniksenvy> I have spent trying to understand and learn how to use php frameworks and its been so dissapointing everything is so complex, outdated, un-supported with almost dead cummunities
<shevy> hehe
<shevy> well
<shevy> that can happen in every language
<kroniksenvy> then someone said Ruby & RoR i started looking
<kroniksenvy> and i was like wow
<Hanmac> kroniksenvy assign is maybe not the right word ... its more like a shadowing ...
asshopo has quit [Ping timeout: 260 seconds]
<Paradox> kroniksenvy, you can pair that line down to "I have spent trying to understand and learn how to use php and its been so disappointing and almost dead"
<shevy> I use ruby, but not ruby on rails for instance. I would not know how the rails community is
<workmad3> shevy: we're wonderful
asshopo has joined #ruby
<Paradox> shevy, you know that part of a venn diagram where they overlap?
justsee has quit [Quit: Leaving...]
<workmad3> shevy: join us... :D
<shevy> PHP is awful
<Paradox> i used to draw boobs there in highschool
<shevy> Paradox, I dont even know what a venn diagram is :)
<workmad3> shevy: ok, on second thoughts... stay away from rails, we don't want your sort :P
<shevy> ah... those things that overlap...
<shevy> workmad3, yeah
<shevy> workmad3, rails is too big
<shevy> rails should have stayed at 1.0
<workmad3> bleh
<kroniksenvy> i like PHP i just dont like PHP Frameworks it's there when things get messy and ugly
<Paradox> lol no
Xeago has joined #ruby
<workmad3> 1.0 was kinda crappy
<workmad3> kroniksenvy: things get messy and ugly just with PHP
<kroniksenvy> heh
<Paradox> get?
<Paradox> are
<workmad3> kroniksenvy: the language itself is messy and ugly... it's no wonder that frameworks built on it are messier and uglier :)
Essobi has quit [Ping timeout: 246 seconds]
<Paradox> things are ugly and messy with php
<workmad3> Paradox: yeah, that's what I meant :)
anildigital_work has joined #ruby
[diecast] has joined #ruby
<shevy> lol
<shevy> workmad3, messy and ugly get things with PHP
eykosioux has joined #ruby
<shevy> you build a house of sand
<shevy> then you wonder why it crashes
<workmad3> shevy: hmm, do you think 'messy, ugly, PHP' is more of an awful threesome or an unholy trinity?
<shevy> but you used so much sand already that you can't think of using anything else
polysics has quit [Remote host closed the connection]
<shevy> dunno
chussenot_ has joined #ruby
<shevy> I think PHP's problem is that noone really bothered to think when designing it
kapowaz has joined #ruby
Essobi has joined #ruby
dkannan has joined #ruby
robotmay has quit [Remote host closed the connection]
<kroniksenvy> What i hate about php is so many company's out there are using it
<Xeago> and don't know about all it's issue's
<JonnieCache> http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/ <=== all the php arguments covered in one place
<JonnieCache> so we dont have to go over it again ;)
<shevy> that is still one thing PHP does better than ruby actually... because so many companies use it
banisterfiend has quit [Ping timeout: 260 seconds]
<shevy> yeah that is a good page
<Xeago> of all the company's I applied at for my internship, none were safe
<shevy> " A good carpenter can drive in a nail with either a rock or a hammer, but how many carpenters do you see bashing stuff with rocks?" <-- epic
<Hanmac> i know a good point for php ...
<Hanmac> its better than swig :P
<kroniksenvy> lol
banisterfiend has joined #ruby
chussenot has quit [Ping timeout: 260 seconds]
chussenot_ is now known as chussenot
pdelgallego has quit [Quit: pdelgallego]
ly_gs has joined #ruby
<shevy> lol
<workmad3> Hanmac: PHP is also marginally better than brainfuck
<hoelzro> haha, marginally
<kroniksenvy> One thing i dislike about PHP is naming convention for methods its just horrible i mean i know C, C++, Java, Python i mean C has better named methods than PHP and other is build upon another
<Hanmac> workmad3 did you know about "Turing complete"?
<kroniksenvy> like strstr why not contains()
<workmad3> Hanmac: err, yeah
<Hanmac> http://www.toothycat.net/~hologram/Turing/ "Magic: the Gathering is Turing Complete" XD
<workmad3> :D
<kroniksenvy> there are so many of badly named methods it really pises you off because you expect some similarity some normally named function
<hoelzro> kroniksenvy: because of C legacy =)
<workmad3> kroniksenvy: they also refuse to do the most critical part of any design... trimming the damn thing down to keep it neat, clean and simple
<kroniksenvy> hoelzro: stil strstr substr strpos
<hoelzro> I know, it's inconsistent
<workmad3> kroniksenvy: so rather than make an existing function act in a sane manner, instead they add a new, craply named function that does it
<Hanmac> what i hate about php are the interfaces ... ruby's Enumerable module is MORE cool
tomaw has quit [Ping timeout: 619 seconds]
<workmad3> Hanmac: what I hate about PHP is PHP :P
<kroniksenvy> lol
zommi has joined #ruby
<hoelzro> PHP: Perfectly Hateable Programming (Language)
<kroniksenvy> PHP was not a OOP language from start Classes were added later and in a very un thought way
pdelgallego has joined #ruby
<kroniksenvy> thats prolly why most of MVC based Frameworks end up looking so horrible
<kroniksenvy> _$App()_::$app->users->getName -.- Is better than say Users.getName
Eplemosen has joined #ruby
<workmad3> kroniksenvy: as a slight spanner in that reasoning... Python MVC frameworks don't look horrible
<workmad3> or at least, not as horrible as PHP :)
<kroniksenvy> I use Python right now im implementing a TFTP i love it
<kroniksenvy> but i have never used Django
<workmad3> kroniksenvy: python had OO concepts added to the language after the fact too ;)
<kroniksenvy> or Python itself for web
<kroniksenvy> I think language build for desktop software development should stay there
<kroniksenvy> : ) like java
tomaw_ has joined #ruby
<workmad3> java wasn't built for desktop software dev
fermion has joined #ruby
<workmad3> it was originally meant for set-top boxes and, because it was meant for embedding like that, was then pushed for web applets and server programming
<kroniksenvy> hm
robustus has joined #ruby
cascalheira has joined #ruby
<amaya_> flash is more and more popular.
<workmad3> similarly, ruby wasn't originally created with web development in mind (how could it be? it was created in the mid 90's, when 'web development' didn't exist)
<Hanmac> java was (maybe) a good idea ... but oracle drive it against a tree
eykosioux has quit [Read error: Connection reset by peer]
<workmad3> Hanmac: it's the whole ecosystem that drives me crazy with java... and the language itself is stilted
<kroniksenvy> flash is not a language
<workmad3> amaya_: flash is getting less popular, not more, because of issues with mobile devices
<kroniksenvy> Java is awsome simply awsome for everything desktop/mobile in mind
<workmad3> kroniksenvy: haha
<Hanmac> flash will be dead too because adobe dont want support it anymore ...
<kroniksenvy> its easy to learn and understand and looks good
<workmad3> kroniksenvy: it's nice to find someone that still drinks that kool-aid
<workmad3> aid? ade?
<hoelzro> aid.
zommi has quit [Ping timeout: 265 seconds]
<kroniksenvy> workmad3: i use it for all my desktop apps only limitations is the OS due to JVM
<workmad3> hoelzro: heh :) they need to bring kool-aid over here more
<kroniksenvy> but hey portability
<kroniksenvy> everything at a price
<workmad3> kroniksenvy: good for you
tomaw- has joined #ruby
<JonnieCache> the jvm is pretty amazing tech you cant knock it
<workmad3> yeah, the JVM is awesome
s1n4 has joined #ruby
<workmad3> java... not so much
pskosinski has joined #ruby
roiko_ has quit [Quit: quit]
s1n4 has quit [Client Quit]
<kroniksenvy> One thing Java did for me that i will be forever thankfull is teach me about OOP and MVC patterns
<hoelzro> workmad3: where's here for you?
<workmad3> and for all it's awesomeness, the JVM still doesn't really solve portability issues... it's still quite easy to get tied in with non-portable code that only runs on specific JVM versions and sometimes only specific OS/JVM combos
<workmad3> hoelzro: UK
<JonnieCache> too much internet we all speak in americanisms now :(
matrixise has joined #ruby
<kroniksenvy> llol
<workmad3> kroniksenvy: be prepared to relearn OO principles with ruby then ;)
<hoelzro> workmad3: ah ha...I wouldn't say you're missing much in the realm of kool-aid, then =)
<hoelzro> it's sugar + water
<JonnieCache> yeah now you can use actual OO without bullshit primitives
<workmad3> hoelzro: I've had some before... I quite like it (that said, I think I use half the amount of sugar that the packet says to use)
<hoelzro> haha
libryder has left #ruby [#ruby]
tomaw- is now known as tomaw
<workmad3> hoelzro: I especially like grape flavour... for some reason, grape has never been a particularly big flavour in the UK, and even when I've found some it tastes nothing like american versions
<hoelzro> interesting...
<hoelzro> I can't find "American" grape flavor here at all (NL)
<JonnieCache> GRAPE DRANK
<workmad3> it's only in recent years I've started seeng grape flavours in the UK at all
<workmad3> *seeing
<hoelzro> haha, grape drink
<hoelzro> sugar + water + purple
<workmad3> hoelzro: don't knock the purple
Eplemosen has quit [Read error: Connection reset by peer]
Eplemosen has joined #ruby
pvh has joined #ruby
tonini has quit [Remote host closed the connection]
loves_color_text has quit [Remote host closed the connection]
tomaw_ has quit [Ping timeout: 604 seconds]
Eplemosen has quit [Ping timeout: 260 seconds]
zommi has joined #ruby
dotemacs_ has joined #ruby
xpen_ is now known as xpen
<shevy> workmad3 how is beer in the UK?
matrixise has quit [Read error: Operation timed out]
<shevy> hoelzro, yeah... I am going to asian shops ... korean drinks... was heavily overpriced. I like the japanese calpico/calpis though
<JonnieCache> beer in the UK is pretty great
<JonnieCache> we have ale
<matti> Ale.
<matti> Ale.
<JonnieCache> its like beer but with bits of wood and beard in it
<JonnieCache> its great
<matti> Not a huge fan of ale myself.
<Xeago> and beard, wtf JonnieCache
<shevy> beer with wood??
<shevy> hmm I dont think I know ale... only beer
<JonnieCache> lol thats just a reference to the stereotypical ale drinker
<Xeago> lol
<JonnieCache> it doesnt really have wood or old mens beards in it
<JonnieCache> im sure you can find a variety that does though
<shevy> hmm ale seems to look just like dark beer
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<JonnieCache> there are lots of kinds. you can get golden ale
Criztian has joined #ruby
<JonnieCache> its like wine, it can come in many styles and varieties
<Hanmac> shevy i found roasted peas with garlic flavor in a asia-shop :P
matrixise has joined #ruby
eykosioux has joined #ruby
tvw has quit [Ping timeout: 240 seconds]
uris has joined #ruby
<quazimodo> def foo(a=0, b=0); #stuff; end
<quazimodo> foo(b=10) should work fine, riiiite?
<hoelzro> quazimodo: nope =(
* quazimodo starts to weep masculine teras
<hoelzro> I know, it sucks
<quazimodo> hoelzro: whats the solution?
<Hanmac> def foo(opts = {});end foo(b: 10)
<hoelzro> quazimodo: what Hanmac said
<quazimodo> grr
<Hanmac> its allways "what Hanmac said" :P
<quazimodo> i can make itwork with foo(:bla => "etc")
<quazimodo> dont know how bla: works
risico has joined #ruby
<hoelzro> quazimodo: bla: 'etc' is 1.9 for :bla => 'etc'
moeSeth has joined #ruby
<quazimodo> hoelzro: so the opts[:bla] or opts[bla] to access?
<quazimodo> ah i see, to set the value to the key use key: value
<quazimodo> to access the value, use hash[:key]
<quazimodo> eh?
<JonnieCache> yeah
<hoelzro> quazimodo: exactly!
<JonnieCache> its sort of awkward because the `foo: bar` syntax was bolted on with 1.9
<quazimodo> i find the entire ruby language to be 'bolted on'
<quazimodo> sometimse i wish i could
<quazimodo> just... be doing it in python XD
<hoelzro> quazimodo: what's your background?
savage- has quit [Remote host closed the connection]
<hoelzro> ah, that explains things.
<hoelzro> =P
<quazimodo> but the thing is that I like lisp the most
* quazimodo wants the best of both worlds
* quazimodo loves eating cake
<charliesome> quazimodo: >complains about features being bolted on >prefers python
reset has joined #ruby
<hoelzro> charliesome: what features in Python feel bolted on to you?
<charliesome> self
<quazimodo> def self.by_comweek_fyear(opts = {:comweek => 0, :fyear => 0}) this gonna work?
<hoelzro> quazimodo: except for opts = , yeah
<hoelzro> is explicit self still in Python 3?
<charliesome> yeah afaik
<hoelzro> it seems like they probably kept it for a reason =)
<Xeago> quazimodo: if you call it with {} as arguments, all keys will return nil
<charliesome> i like how pythonists like to avoid magic, and then they have a magical parameter appearing out of nowhere
<hoelzro> charliesome: you mean self? how is it appearing out of the nowhere?
<quazimodo> well how am i supposed to do it then?
<quazimodo> def foo(x="x", b="b") is what i want to do
<quazimodo> any ideas?
<hoelzro> quazimodo: oh wait, that was correct
<Xeago> expect nil as the result of keys, and handle those cases
<hoelzro> my bad
<charliesome> hoelzro: so you define a method like 'def foo(self, a, b, c):', but you then call it with 'obj.foo(1, 3, 4)'
<hoelzro> quazimodo: define a defaults hash and merge options with it in the method body
<charliesome> but this isn't really the place to argue about python, so i'll drop it :p
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
cakehero has joined #ruby
<quazimodo> Xeago: so i cant set up x='x', a='a' and do foo(a='b') and have x='x' and a='b' inside foo?
<Xeago> quazimodo: what hoelzro said
x0F_ is now known as x0F
<quazimodo> thats so, so lame
* quazimodo slaps ruby
<quazimodo> bad ruby
sebastorama has joined #ruby
<Xeago> what you can do
maxmmurphy has quit [Quit: maxmmurphy]
<hoelzro> can you inspect the default values of method params?
<Xeago> is def derp(a='foo',b='bar'); end; obj.derp(nil,'foobar')
<Xeago> atleast
<Xeago> I think that's the case
<hoelzro> you could probably write a nice meta wrapper for this kinda thing
<Xeago> it should have a=foo, and b=foobar
sebastorama has quit [Client Quit]
<quazimodo> or
seoaqua has joined #ruby
<Xeago> my shit doens't work
<Xeago> :\
<quazimodo> i can skip the day trip to unnecessary land and fuckit!
<hoelzro> my suggestion is left as an exercise for the reader =)
<quazimodo> hah
<quazimodo> have you guys seen fuckit.js?
<quazimodo> its brilliance
<hoelzro> s/brilliance/insanity/
<hoelzro> =)
br4ndon has joined #ruby
g33k has joined #ruby
reset has quit [Quit: Leaving...]
justinmcp has joined #ruby
seanstickle has joined #ruby
<amaya_> >> (1..4).inject (&:+)
Foxandxss has joined #ruby
<amaya_> :( my bot
seanstickle has quit [Client Quit]
br4ndon has quit [Ping timeout: 248 seconds]
chussenot has quit [Quit: chussenot]
dekz has joined #ruby
hbpoison has quit [Ping timeout: 260 seconds]
chussenot has joined #ruby
JC_SoCal has joined #ruby
dhruvasagar has quit [Ping timeout: 240 seconds]
<JonnieCache> did someone break the bot again
<JonnieCache> !panic
<JonnieCache> i think its not here
JohnBat26 has quit [Remote host closed the connection]
<workmad3> quazimodo: is fuckit.js the 'error steamroller'? :)
dhruvasagar has joined #ruby
Progster has joined #ruby
Takehiro has joined #ruby
kvirani has joined #ruby
ltsstar has joined #ruby
bigmeow has quit [Ping timeout: 244 seconds]
a_a_g has quit [Quit: Leaving.]
a_a_g has joined #ruby
sepp2k has joined #ruby
<banisterfiend> sepp2k hey sepps
<sepp2k> hey
<amaya_> (1..6).inject(0,&:+) Is this more faster?
Morkel has quit [Quit: Morkel]
chimay has quit [Quit: WeeChat 0.3.9-rc1]
<amaya_> than (1..6).inject(0) {|memo, x| memo + x}
skrewler has quit [Quit: skrewler]
<Hanmac> inject(0,:+) is faster than inject(0,&:+)
<amaya_> '&' , and what is that for ?
<Xeago> makes it a proc
<Xeago> Symbol#to_proc
<Xeago> (right Hanmac?)
<Hanmac> yeah
ABK has joined #ruby
<amaya_> Too much details to learn . thanks!
<Xeago> amaya_: it just means, call the method + on it
<Xeago> (not necessarily method, can be anything)
<Xeago> (anything that can be proc'ed)
<Xeago> what's the best way to make a jekyll site work from just opening it in _site
qwerxy has quit [Read error: Connection reset by peer]
<Xeago> e.g. references to stylesheets and images work from lower directories
<Xeago> as we can't refer to /styles/bla
<amaya_> oh ,I see.
moshef has joined #ruby
<Xeago> would it be best to make an offline mirror using seperate tooling?
<Xeago> s/seperate/separate
bigmeow has joined #ruby
F1skr has joined #ruby
<Hanmac> amaya_ i brenchmarked your variants:
<Hanmac> report.report("&:+") {1_000_000.times{(1..6).inject(0,&:+)}} # &:+ 0.960000 0.000000 0.960000 ( 0.971992)
<Hanmac> report.report(":+") {1_000_000.times{(1..6).inject(0,:+)}} # :+ 0.630000 0.000000 0.630000 ( 0.639726)
<Hanmac> report.report("{}") {1_000_000.times{(1..6).inject(0) {|memo, x| memo + x}}} # {} 0.910000 0.000000 0.910000 ( 0.913672)
<amaya_> actually , I want to make a rpg game by rpgmaker which has a ruby script editer..
<JonnieCache> Xeago: wget --mirror
<Hanmac> amaya_ be care full ... the older RPGMaker has outdated ruby versions ...
<amaya_> Ya , I am using vx ace. :)
<Xeago> JonnieCache: so you recommend making a mirror, over any alternatives?
<Xeago> crap
<Xeago> don't have wget
<Hanmac> amaya_ someday this might be interesting for you http://devel.pegasus-alpha.eu/projects/openrubyrmk
<JonnieCache> so you need to just have it open from a dir without using any ruby interpreter?
<JonnieCache> i dont see how you can do that without making a static mirror
<JonnieCache> sorry i didnt fully catch the question
qwerxy has joined #ruby
sebastorama has joined #ruby
<Xeago> yea, just have it generate it into _site, and then I want to be able to copy _site put it on some different media ship it across sea('s)
<Xeago> and then have it with stylesheets and niftyness
s1n4 has joined #ruby
<Xeago> and it should be able to exist at any lower level in a medium
<JonnieCache> wget --mirror downloads all the stylesheets and images and stuff
<JonnieCache> it can even rewrite the links
<Xeago> fine, i'll use wget ;p
sspiff has quit [Remote host closed the connection]
<Xeago> does it rewrite links?
<JonnieCache> it can be made to
<Xeago> how, before I used httrack
<Xeago> but it is a pita to install
<Xeago> brew has httrack
<JonnieCache> "--convert-links"
<JonnieCache> brew has wget
statarb3 has quit [Quit: Leaving]
<JonnieCache> wget can do mad different things its very useful
<Xeago> wget is scary ^^
diegoviola has joined #ruby
<amaya_> Hamnac: I get it. thanks
<shevy> Xeago I wanna do wget in ruby
<shevy> but my biggest enemy is my inborn laziness :(
<shevy> I think everything more complicated than File.new { open(url_here) } is too much work
<shevy> pfffft for ssl support...
eykosioux has quit [Read error: Connection reset by peer]
flype has joined #ruby
eykosioux has joined #ruby
Takehiro has quit [Remote host closed the connection]
<JonnieCache> have you all heard about the openssl bug?
JohnBat26 has joined #ruby
<JonnieCache> basically dont send anything important over https for a couple of weeks
<Xeago> what?
dnyy__ has joined #ruby
<JonnieCache> tbh you have to line up a lot of ducks in a row to make the attack work
<JonnieCache> but its still a very serious bug
<bnagy> I think it's too early to say
cantonic_ has joined #ruby
<JonnieCache> yeah i guess so
<bnagy> they haven't even presented it yet, this is just people guessing
pdelgallego has quit [Quit: pdelgallego]
<JonnieCache> well colin percival seemed pretty sure of himself on HN last night
<JonnieCache> and i trust that guy
<bnagy> I know both of those guys, and when the padding attack came out it was actually more serious than it sounded
nilg has quit [Remote host closed the connection]
fcoury has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<Xeago> when did they publish that it exists?
<Xeago> e.g. not the prove or contents of the bug
<JonnieCache> there have been rumours building for some time
<JonnieCache> its not actually published yet
pdelgallego has joined #ruby
s1n4 has quit [Quit: leaving]
<Xeago> but has the researching party claimed it exists?
<JonnieCache> but google have put a patch into chrome that disables certain ssl features, and the bug description is marked as SECRET or something
s1n4 has joined #ruby
<JonnieCache> thats what got people really excited last night
cantonic has quit [Ping timeout: 255 seconds]
cantonic_ is now known as cantonic
<shevy> cool
<shevy> secret bugs
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
<JonnieCache> most security bugs are secret
<JonnieCache> this one is probably worth $50k or more. or it would be if it was still a secret
<JonnieCache> actually maybe not that much. windows code execution 0days are reportedly worth that
<Xeago> chromium supposedly put a commit in more then a month ago
<JonnieCache> is that worse than SSL hijacking? i dunno
<Xeago> ssl is more widespread
amaya_ has quit [Ping timeout: 252 seconds]
<Xeago> imo ssl > windows code execution
guns has joined #ruby
<bnagy> some bugs are worth hell of a lot more than $50k
nilg has joined #ruby
<JonnieCache> yeah? thats just a number i saw someone quoting. they were probably being taciturn so as not to appear too blackhat :)
<JonnieCache> what would be a really expensive sploit then?
nohonor has joined #ruby
swarley has joined #ruby
<shevy> something that hijacks the computer
<shevy> "Doomsday" bugs
<Xeago> e.g. click link, get control
matrixise has quit [Ping timeout: 240 seconds]
cakehero has joined #ruby
<JonnieCache> yeah those arent worth *that* much
<bnagy> JonnieCache: most I've ever heard quoted is 250
<JonnieCache> whats that for, DOD specced firewalls or something?
<bnagy> most I have solid knowledge of is about half that
<bnagy> as in something that has actually been sold as opposed to asking prices
<JonnieCache> ah right
<shevy> blackmail industry!!!
chadaw has joined #ruby
<bnagy> but there are definitely bugs that would go for that
<JonnieCache> its a fucking wildwest in the world of computer security. i kindof regret not getting into it
<bnagy> a perfect ios bug for example
<JonnieCache> but id inevitably get myself into trouble. especially if id got into it a few years ago
S1kx has quit [Read error: Connection reset by peer]
<Xeago> I would love to get into that
<JonnieCache> ah yes code execution on ios via 802.11x beacon packets would be a valuable bug
<Xeago> but lack calculus atm
<bnagy> JonnieCache: that's a bit too local
love_color_text has joined #ruby
<JonnieCache> hmm surely that would be valuable in itself though?
<bnagy> Xeago: I'm not sure how calculus applies :)
Takehiro has joined #ruby
<Xeago> without calculus good luck explaining diffie hellman
<bnagy> wtf are you talking about?
<bnagy> diffie hellman is modular arithmetic
<JonnieCache> thats the reason ive not got into it. i can do sqli, i can do bits of reversing occasionally, etc etc but ive done absolutely no mathematics since i was 16. i can barely do simple algebra
kitofr has left #ruby [#ruby]
NimeshNeema has joined #ruby
<bnagy> trust me, you almost never need advanced maths to find bugs
Criztian has quit [Remote host closed the connection]
<bnagy> at the most some linear algebra / discrete maths
<bnagy> crypto is a whole different field
<Xeago> wait, isn't modular arithmetic part of calculus?
<bnagy> no, not really
<Xeago> blrugh, bad dictionary!
<JonnieCache> hmmm they do say the security industry finds it impossible to recruit
<JonnieCache> maybe ill just smash this web development thing for a few more years then branch out
<bnagy> if you want to get into appse, as in finding exploiting bugs then you want to start asap
<bnagy> ime reversing / exploits are a young man's game
<JonnieCache> hmm yeah well im still only 25
<bnagy> *appsec
<bnagy> 5 years too old then :)
<JonnieCache> yeah exactly :(
<Xeago> only 20 :3
<Xeago> perfect age!
<Xeago> right?
<JonnieCache> i am kinda worried about being on the scrapheap at 40 that is going to suck
<bnagy> holy crap I was doing security literally since before you were born
<JonnieCache> i guess i need to own the shop by then
<bnagy> I think I'll go and get drunk and play some pool :<
<shevy> \o/
fmcgeough has quit [Quit: fmcgeough]
<bnagy> night chaps
<JonnieCache> lol have fun
<Xeago> poor bnagy..
<Xeago> don't forget, ale!
<shevy> why do they call it ale and not beer?
<Xeago> ale != beer
<Xeago> ale is a beer
<JonnieCache> beer is the top level of the hierarchy
<shevy> hehe
<JonnieCache> ale is a beer, the stuff most people call beer is lager
<JonnieCache> then there is the Stout category, which includes things like guinness
<Xeago> I love stout imo
<Xeago> best beer ever
* hoelzro initially read that as "I love stdout imo"
<Xeago> lal
kvirani has quit [Remote host closed the connection]
swarley has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
<quazimodo> with regards to scope
seoaqua has quit [Ping timeout: 245 seconds]
frogprince_mac has joined #ruby
<quazimodo> variables introduced within a block dont exist outside it right
<quazimodo> since the block is like almabda func
xpen has quit [Remote host closed the connection]
Morkel has joined #ruby
<quazimodo> but variables outside the block do exist within it
<quazimodo> yes?
<JonnieCache> yeah
<Xeago> wasn't there something with ruby 1.9 and 1.8
heisenmink has joined #ruby
fyolnish has joined #ruby
<Xeago> 1.9 can affect outer variables, 1.8 can't?
<JonnieCache> yeah theres some difference but thats not it. its subtler than that.
<hoelzro> Xeago: 1.8 can
kirun has joined #ruby
<hoelzro> the difference is that 1.9 block parameters are always local vars
<hoelzro> and 1.9 has a "declare local" option
<hoelzro> ex coll.each do |x; y, z] ... end
<hoelzro> in that block, y and z are local to the block
<hoelzro> and changing them will *never* change y or z in the surrounding lexical env
<quazimodo> does this look terrible?
<Xeago> that's alot of nested unless
<banisterfiend> quazimodo pretty much :P
<banisterfiend> quazimodo it's wayy too complicated
<banisterfiend> quazimodo break it up into other methods
* quazimodo cant think of another way to do it :(
<banisterfiend> just use more methods
<JonnieCache> choose better variables names, add some whitespace, break it into some separate functions
<JonnieCache> the things inside of those each blocks could be extracted to methods
* quazimodo so tired of programming
<Xeago> quazimodo: you're redefining your orders a few time
kvirani has joined #ruby
<Xeago> you got orders, and ords and then os
<Xeago> and in all cases, you select them according to some block
fyolnish has quit [Ping timeout: 255 seconds]
<Xeago> line 4 to 9 should be a helper method to assign those two variables
<Xeago> imo, you should return if orders.empty?, and not have it nested in an unless
<Hanmac> quazimodo: o_miny,o_maxy = orders.minmax_by(&:fyoc)
<Xeago> or what Hanmac said
amaya_ has joined #ruby
eykosioux_ has joined #ruby
aristidesfl has joined #ruby
<Hanmac> its always "what Hanmac said" :P
cantonic_ has joined #ruby
mfridh_ has joined #ruby
maesbn_ has joined #ruby
TechCel has joined #ruby
TechCel has quit [Remote host closed the connection]
<Xeago> tbh
fcoury_ has joined #ruby
<Xeago> I have no idea how your methods works from line10 downwards
pvh_ has joined #ruby
kapowaz_ has joined #ruby
fr0gprince_ has joined #ruby
EPIK has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<Xeago> apply the refactoring suggested here (minmax_by, and return if .empty?, both twice)
<Xeago> and gist it
WhereIsMySpoon_ has joined #ruby
<Xeago> this english a bit acceptable: "Mentors obtain a basis of understanding by getting feedback early and often about the work performed and it's result. This feedback contains concise, coherent information." ?
cakehero has joined #ruby
diegovio1a has joined #ruby
JC_SoCal_ has joined #ruby
larissa has joined #ruby
<hoelzro> Xeago: its, not it's
fyolnish has joined #ruby
<Xeago> what's the theory behind that
parus_ has joined #ruby
<hoelzro> and I would probably say "results" instead of "result"
rcj__ has joined #ruby
<hoelzro> Xeago: it's -> it is
crankyco1er has joined #ruby
mucker_ has joined #ruby
<JonnieCache> TIL carl sagan smoked weed his whole life
lorn_ has joined #ruby
<JonnieCache> that explains a lot
<hoelzro> its -> in the possession of it
bnagy_ has joined #ruby
maddog__ has joined #ruby
<Xeago> oky
Gate_ has joined #ruby
<hoelzro> other than that, looks good =)
heftig_ has joined #ruby
ihme-TTilus has joined #ruby
mksm has joined #ruby
<Xeago> imo, anything can only have 1 result, which is an array of effect
<Xeago> s
Freijo has joined #ruby
babinho_ has joined #ruby
tommyvyo has joined #ruby
<Xeago> the result of life is death
LouisGB has quit [Ping timeout: 252 seconds]
lggr_ has joined #ruby
<Xeago> dno what I was saying
<Xeago> ignore that
mksm is now known as Guest52127
saispo has joined #ruby
Neurotic has joined #ruby
kvirani has quit [Remote host closed the connection]
Neurotic has quit [Excess Flood]
thunderstrike has joined #ruby
<Xeago> hoelzro: why results instead of result
<hoelzro> I have no idea
<Xeago> or should I just say outcomes or effects instead of result(s)?
<hoelzro> it just sounds better, imo
<hoelzro> I'd stick with results
<Xeago> ty
<hoelzro> np
<quazimodo> upon getting coffee
yosafbridge` has joined #ruby
pradeept` has joined #ruby
fyolnish has quit [Ping timeout: 240 seconds]
<quazimodo> Hanmac: you so clever!
Neurotic has joined #ruby
dmiller has quit [Remote host closed the connection]
baphled has joined #ruby
fcoury has quit [*.net *.split]
JC_SoCal has quit [*.net *.split]
cantonic has quit [*.net *.split]
eykosioux has quit [*.net *.split]
Progster has quit [*.net *.split]
kapowaz has quit [*.net *.split]
pvh has quit [*.net *.split]
adambeynon has quit [*.net *.split]
mucker has quit [*.net *.split]
babinho has quit [*.net *.split]
gogiel has quit [*.net *.split]
[Neurotic] has quit [*.net *.split]
stillEPIK has quit [*.net *.split]
maesbn has quit [*.net *.split]
Nisstyre-laptop has quit [*.net *.split]
frogprince has quit [*.net *.split]
heftig has quit [*.net *.split]
diegoviola has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
mikalv has quit [*.net *.split]
cespare has quit [*.net *.split]
WhereIsMySpoon has quit [*.net *.split]
TheShadowFog has quit [*.net *.split]
parus has quit [*.net *.split]
cout has quit [*.net *.split]
Guedes has quit [*.net *.split]
pradeepto has quit [*.net *.split]
lggr has quit [*.net *.split]
crankycoder has quit [*.net *.split]
tris has quit [*.net *.split]
TTilus has quit [*.net *.split]
maddog_ has quit [*.net *.split]
Gate has quit [*.net *.split]
Guest41231 has quit [*.net *.split]
lorn has quit [*.net *.split]
mfridh has quit [*.net *.split]
{^_^}__ has quit [*.net *.split]
Fraeon has quit [*.net *.split]
simao has quit [*.net *.split]
rcj_ has quit [*.net *.split]
bnagy has quit [*.net *.split]
rcj__ is now known as rcj_
cantonic_ is now known as cantonic
eykosioux_ is now known as eykosioux
lggr_ has quit [Ping timeout: 260 seconds]
ltsstar has quit [Quit: ltsstar]
kapowaz_ is now known as kapowaz
<quazimodo> Hanmac: how you get so smark?
ihme-TTilus is now known as TTilus
<Hanmac> i read the docs :P
simao has joined #ruby
<hoelzro> smarkiness is a key attribute of a Ruby developer!
mucker_ has quit [Quit: leaving]
Guedes has joined #ruby
niklasb has joined #ruby
mucker has joined #ruby
IrishGringo_ has joined #ruby
{^_^}__ has joined #ruby
TheShadowFog has joined #ruby
machty has joined #ruby
Nisstyre-laptop has joined #ruby
freeayu has quit [Ping timeout: 255 seconds]
deryl1 has joined #ruby
<Hanmac> hoelzro imo you cant learn how to program, its something that you must have ... you need the right "tic" for that
<hoelzro> oh, I agree
<hoelzro> well, to a point
robustus has quit [Ping timeout: 244 seconds]
<hoelzro> I think that anyone can learn to do some basic stuff
tris has joined #ruby
<quazimodo> once I learn enumerables im gonna pwn all your faces guys
<hoelzro> but to be good at it, I think it takes talent
<Hanmac> "if orders.empty? then return nil end" to "retiurn if orders.empty?"
karstensrage has quit [Quit: changing servers]
alindeman has quit [Ping timeout: 244 seconds]
Derander has quit [Ping timeout: 244 seconds]
jeekl has quit [Ping timeout: 244 seconds]
r0bby_ has joined #ruby
<quazimodo> Hanmac: done, i always forget that one
<quazimodo> do foo if bla bla
karstensrage has joined #ruby
mikalv has joined #ruby
<quazimodo> only ever done it in ruby
karstensrage has quit [Excess Flood]
cakehero has quit [Ping timeout: 244 seconds]
flagg0204 has quit [Ping timeout: 244 seconds]
passbe has quit [Ping timeout: 244 seconds]
shevy has quit [Ping timeout: 244 seconds]
cespare has joined #ruby
sirecote has quit [Ping timeout: 244 seconds]
<Xeago> wow, that method got halved in size
<hoelzro> postfix conditions are both a blessing and a curse
<Xeago> tho, there's still one left, line 7
[eko] has joined #ruby
<quazimodo> Xeago: the unless?
<hoelzro> I came across a function at work yesterday that *only* used the postfix forms of if/for/while
tommyvyo has quit [Ping timeout: 244 seconds]
timonv has quit [Ping timeout: 244 seconds]
IrishGringo has quit [Ping timeout: 244 seconds]
robbyoconnor has quit [Ping timeout: 244 seconds]
orospakr has quit [Ping timeout: 244 seconds]
<hoelzro> =(
<hoelzro> so many frowns.
<Xeago> but tbh
<quazimodo> Xeago: its ok there I think
<Xeago> I think you want to continue or whatever the keyword is in ruby
jprovazn has quit [Ping timeout: 244 seconds]
R3dy has quit [Ping timeout: 244 seconds]
preller has quit [Ping timeout: 244 seconds]
frogprince has joined #ruby
<hoelzro> psst...it's next!
Derander has joined #ruby
jeekl has joined #ruby
fermion has quit [Ping timeout: 244 seconds]
KarlHungus has quit [Ping timeout: 244 seconds]
<Xeago> btw you introduced a bug in refactoring
<Hanmac> hoelzro what do you think about that line? orders.minmax_by(&:fyoc).inject(:downto).each do |y|
<Xeago> at line 8, you're using orders.minmax_by
<Xeago> instead of ords.minmax_by
karstensrage has joined #ruby
karstensrage has quit [Max SendQ exceeded]
rakl has quit [Ping timeout: 244 seconds]
deryl has quit [Ping timeout: 244 seconds]
eko has quit [Ping timeout: 244 seconds]
R3dy has joined #ruby
<hoelzro> Hanmac: I would probably break that up a bit
<quazimodo> oh, thank you Xeago
<quazimodo> :D i love you
Guest97203 has joined #ruby
flagg0204 has joined #ruby
Guest97203 has quit [Excess Flood]
<love_color_text> if you love him so much why dont you marry him
<Xeago> subscribe to http://blog.xeago.nl/atom
specialGuest has quit [Ping timeout: 244 seconds]
__main__ has quit [Ping timeout: 244 seconds]
<hoelzro> it's clever; I think a little too clever =P
Eldariof-ru has joined #ruby
<Hanmac> hoelzro yeah it might be too much golfed
fermion has joined #ruby
<quazimodo> love_color_text: who said i wont?
cakehero has joined #ruby
<love_color_text> XD
_karstensrage has joined #ruby
shevy has joined #ruby
_karstensrage has quit [Max SendQ exceeded]
nricciar_ has joined #ruby
<Xeago> btw, you do know that you can update gists?
plu_ has joined #ruby
KarlHungus has joined #ruby
KarlHungus has quit [Changing host]
KarlHungus has joined #ruby
_karstensrage has joined #ruby
<Xeago> a gist has history
asobrasil has quit [Ping timeout: 244 seconds]
<Xeago> and is git cloneable
uris_ has joined #ruby
_karstensrage has quit [Excess Flood]
tommyvyo has joined #ruby
mksm_ has joined #ruby
timonv has joined #ruby
tomku has quit [Ping timeout: 244 seconds]
Kwpolska has quit [Ping timeout: 244 seconds]
jbw_ has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
thunderstrike has quit [Ping timeout: 244 seconds]
willcodeforfoo has quit [Ping timeout: 244 seconds]
alindeman has joined #ruby
orospakr has joined #ruby
freeayu has joined #ruby
robustus has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
rakl has joined #ruby
lggr has joined #ruby
thunderstrike has joined #ruby
willcodeforfoo has joined #ruby
Kwpolska has joined #ruby
<quazimodo> this is me about a week into ruby. Scared and lonely, I took the retards approach
preller has joined #ruby
freeayu has joined #ruby
Choclo has joined #ruby
<quazimodo> Xeago: so fancy
fr0gprince_ has quit [Write error: Connection reset by peer]
Guest52127 has quit [Ping timeout: 240 seconds]
tagrudev has quit [Ping timeout: 240 seconds]
uris has quit [Ping timeout: 240 seconds]
jbw has quit [Ping timeout: 240 seconds]
plu has quit [Ping timeout: 240 seconds]
knirhs has quit [Ping timeout: 240 seconds]
nricciar has quit [Ping timeout: 240 seconds]
eldariof has quit [Ping timeout: 240 seconds]
plu_ is now known as plu
poeks has quit [Ping timeout: 244 seconds]
knirhs has joined #ruby
risico has quit [Read error: Connection reset by peer]
<shevy> quazimodo rock on man!
mfridh_ is now known as mfridh
risico has joined #ruby
Dreamer3 has quit [Ping timeout: 240 seconds]
__main__ has joined #ruby
tagrudev has joined #ruby
<shevy> quazimodo it's a bit long though
Derander has quit [Ping timeout: 240 seconds]
jso has quit [Ping timeout: 260 seconds]
yeggeps has quit [Ping timeout: 244 seconds]
<kroniksenvy> http://mysticpaste.com/view/15352 Why does this throw undefined method
<kroniksenvy> even if i rename test to something else
<shevy> and there is repetition on "if cweek == 52"
flagg0204 has quit [Ping timeout: 240 seconds]
Iszak has quit [Ping timeout: 240 seconds]
jbpros has quit [Quit: May the Cuke be with you!]
<shevy> kroniksenvy test is an instance method in your example
Derander has joined #ruby
<shevy> k = Host.new
<shevy> k = k.test 'Hair','Nipples'
jbpros_ has joined #ruby
<shevy> should work
<shevy> or
<shevy> def self.test(title, name)
<shevy> should also work
Kwpolska has quit [Remote host closed the connection]
eas has quit [Ping timeout: 244 seconds]
Dreamer3 has joined #ruby
flagg0204 has joined #ruby
jbpros_ is now known as jbpros
ben_alman has quit [Ping timeout: 244 seconds]
mfridh has quit [Ping timeout: 244 seconds]
jprovazn has joined #ruby
Xeago has quit []
Xeago has joined #ruby
<quazimodo> its a piece of crap i'm ashamed of
<quazimodo> haha
_karstensrage has joined #ruby
<quazimodo> Hanmac: your enumerable aint perfect XD
Azure has quit [Ping timeout: 244 seconds]
_karstensrage has quit [Excess Flood]
mfridh has joined #ruby
<love_color_text> quazimodo: dont be ashamed. i liked it. many pretty colors and lines of code
<Hanmac> quazimodo: youdont need the Date objects
<kroniksenvy> i also tried Host.new and then k.test
<kroniksenvy> it finds the method under suggestions but then gives error when run
kroniksenvy has quit [Ping timeout: 245 seconds]
kroniksenvy has joined #ruby
<kroniksenvy> http://mysticpaste.com/view/15352 Why does this throw undefined method
<kroniksenvy> sorry to repost i have dcd"
kroniksenvy has quit [Changing host]
kroniksenvy has joined #ruby
<Hanmac> this should be fine too: Time.utc(year, cweek, 1)
sirecote has joined #ruby
himsin has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
Markvilla has quit [Quit: Computer has gone to sleep.]
_karstensrage has joined #ruby
<Hanmac> oh sorry i am wrong
_karstensrage has quit [Excess Flood]
Azure has joined #ruby
eas has joined #ruby
lggr has joined #ruby
Kwpolska has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
asobrasil has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
<Hanmac> hm do you realy need time objects or does Date Objects work too?
<quazimodo> Hanmac: i will be disposing of that code soon
mark_locklear has joined #ruby
_karstensrage has joined #ruby
freeayu has quit [Ping timeout: 245 seconds]
_karstensrage has quit [Excess Flood]
<quazimodo> it works on calendar weeks and years, but the client wants it to be in australian fiscal year
<quazimodo> ie new financial year starts 1 jul
<quazimodo> thats why I made this method
poeks has joined #ruby
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
<JonnieCache> july wtfd
<JonnieCache> *wtf
<quazimodo> yep middle of the year
<JonnieCache> how did you end up with july?
iori has quit [Remote host closed the connection]
BIGX333 has quit [Ping timeout: 265 seconds]
<JonnieCache> i suppose its the middle that makes perfect sense haha
<kroniksenvy> http://mysticpaste.com/view/15352 Why does this throw undefined method sorry for repost my chat keeps crashing
<kroniksenvy> freaking flash
<Hanmac> feaky australians ... always doing things upside-down
_karstensrage has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
_karstensrage has quit [Excess Flood]
g33k has quit [Quit: Leaving]
<quazimodo> im surprised there were no libraries/methods already for commercial year that starts on a different date
<JonnieCache> the UKs is in febuary because thats when the new year started before they changed the calendar in 1582
<quazimodo> on aseparate note, this all has taught me about calendar systems. The iranian one is the best
_karstensrage has joined #ruby
arkiver has joined #ruby
_karstensrage has quit [Excess Flood]
<quazimodo> 1st 6 months ar 31, the next 5 are 30, and the last one is 28 unless the seasons are off then its 29
<Hanmac> kroniksenvy you defined the method as instance method, but you call it as class method
<quazimodo> thus new year is always on the 1st day of spring
demian`_ has joined #ruby
<JonnieCache> thats cool
emanu has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
<quazimodo> having new year on spring shits on having it in crappy ass january
<kroniksenvy> i need to read about the diffirence betwen two
rcsheets has joined #ruby
dhruvasagar has joined #ruby
yeggeps has joined #ruby
<kroniksenvy> is instance method like a constructor
josh^ has quit [Remote host closed the connection]
<kroniksenvy> ?
<JonnieCache> plus the written-off period between christmas and new year when nobody does any work would go on for MONTHS!
davidboy has joined #ruby
_karstensrage has joined #ruby
ben_alman has joined #ruby
_karstensrage has quit [Excess Flood]
<Hanmac> class methods are defined with def self.method
Seich has quit [Ping timeout: 252 seconds]
babinho_ has quit [Quit: leaving]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
_karstensrage has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
_karstensrage has quit [Excess Flood]
rcsheets has quit [Remote host closed the connection]
rcsheets has joined #ruby
ly_gs has quit [Remote host closed the connection]
_karstensrage has joined #ruby
ij has quit [Read error: No route to host]
_karstensrage has quit [Excess Flood]
gilesw has joined #ruby
eykosioux has quit [Quit: eykosioux]
lggr has joined #ruby
Takehiro has quit [Remote host closed the connection]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
patricksroberts has joined #ruby
<kroniksenvy> Instance method would be a constructor or a method bound to in-class execution only ?
moeSeth_ has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
seich- has joined #ruby
haxrbyte_ has joined #ruby
tk has joined #ruby
<gilesw> Is there a way I can detect if a file is in my rubylib path and then require it if it's found?
gregorg_taf has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
tk is now known as Guest10445
Takehiro has joined #ruby
Guest81709 has joined #ruby
<JonnieCache> you can use load() instead of require() which doesnt raise if the file isnt found
_karstensrage has joined #ruby
<JonnieCache> or just rescue the exception from require
_karstensrage has quit [Excess Flood]
<Hanmac> gilesw i dont think so ... :P begin; require "file";rescue; end
<JonnieCache> thats perhaps more sensible because there are other things about load() which are different
hiroyuki_ has joined #ruby
<Hanmac> ... i dont think that load() use the $LOAD_PATH ... (but why is it called load when it dont use the loadpath? :D)
radic has quit [Disconnected by services]
radic_ has joined #ruby
uris has joined #ruby
radic_ is now known as radic
_karstensrage has joined #ruby
bapa_ has joined #ruby
ssspiff has joined #ruby
_karstensrage has quit [Excess Flood]
peanuts___ has joined #ruby
<peanuts___> Hello all
octarine has joined #ruby
<peanuts___> I'm looking for a gem that could log the history values of a DB record ...
<peanuts___> Does it exist ?
<JonnieCache> in activerecord>
<JonnieCache> ?
<JonnieCache> papertrail is the most popular
Hien_ has joined #ruby
edenc_ has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
<peanuts___> with mongoid
<shevy> kroniksenvy you must understand the difference between def foo and def self.foo first
anildigital_work has quit [Remote host closed the connection]
yeltzooo7 has joined #ruby
cool has joined #ruby
thunderstrike has quit [Read error: Connection reset by peer]
ersoy- has joined #ruby
<peanuts___> JonnieCache: thanks, I'll have a look on it
Takehiro has quit [Remote host closed the connection]
Armand has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
Armand is now known as Guest42265
SirFunk_ has joined #ruby
thunderstrike has joined #ruby
klaas_ has joined #ruby
<gilesw> thanks for the tips guys I'll give them a try
ctevie has joined #ruby
Hien has quit [Ping timeout: 271 seconds]
gregorg has quit [Read error: Connection reset by peer]
davidboy has quit [Read error: Connection reset by peer]
moeSeth has quit [Ping timeout: 274 seconds]
sspiff has quit [Ping timeout: 274 seconds]
haxrbyte has quit [Ping timeout: 274 seconds]
Apocalypse has quit [Ping timeout: 274 seconds]
klaas has quit [Write error: Connection reset by peer]
uris_ has quit [Ping timeout: 242 seconds]
tbrock has quit [Ping timeout: 282 seconds]
hiroyuki has quit [Ping timeout: 282 seconds]
SirFunk has quit [Ping timeout: 242 seconds]
yeltzooo has quit [Ping timeout: 242 seconds]
gianlucadv_ has quit [Ping timeout: 282 seconds]
ElderFain has quit [Read error: Connection reset by peer]
hersoy has quit [Ping timeout: 277 seconds]
bapa has quit [Write error: Connection reset by peer]
manizzle has quit [Ping timeout: 304 seconds]
Drakevr has quit [Ping timeout: 275 seconds]
lump has quit [Ping timeout: 304 seconds]
edenc has quit [Ping timeout: 304 seconds]
reactormonk has quit [Ping timeout: 304 seconds]
<quazimodo> you guys really hate it when there is any repetition huh
gianlucadv has joined #ruby
JohnBat26 has quit [Ping timeout: 268 seconds]
edenc_ is now known as edenc
JohnBat26|2 has joined #ruby
rakm has quit [Ping timeout: 288 seconds]
xclite has quit [Ping timeout: 288 seconds]
flexd has quit [Ping timeout: 288 seconds]
rakm has joined #ruby
davidboy has joined #ruby
alek_b_ has quit [Remote host closed the connection]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
mtkd has quit [Ping timeout: 289 seconds]
anildigital_work has joined #ruby
lump has joined #ruby
anildigital_work has quit [Remote host closed the connection]
manizzle has joined #ruby
_karstensrage has joined #ruby
yosafbridge` has quit [Ping timeout: 260 seconds]
_karstensrage has quit [Excess Flood]
Iszak has quit [Ping timeout: 246 seconds]
<Xeago> is using L.S. in email to a migrationsboard appropriate?
mtkd_ has joined #ruby
ElderFain has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
anildigital_work has joined #ruby
klaas has joined #ruby
alta has quit [Ping timeout: 246 seconds]
peregrine81 has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
tommyvyo has quit [Ping timeout: 246 seconds]
fmcgeough has joined #ruby
klaas_ has quit [Read error: Connection reset by peer]
Azure has quit [Ping timeout: 260 seconds]
xclite_ has joined #ruby
Dreamer3 has quit [Ping timeout: 260 seconds]
elico has quit [Ping timeout: 260 seconds]
<Xeago> screw it, it better is
MissionCritical has quit [Ping timeout: 246 seconds]
elico has joined #ruby
Guest45814 has quit [Remote host closed the connection]
tbrock has joined #ruby
Guest45814 has joined #ruby
awarner has joined #ruby
yosafbridge has joined #ruby
awarner has quit [Remote host closed the connection]
Iszak has joined #ruby
gavit_ has joined #ruby
{^_^}___ has joined #ruby
Takehiro has joined #ruby
{^_^}__ has quit [Ping timeout: 260 seconds]
amaya_ has quit [Ping timeout: 246 seconds]
Elfix has quit [Ping timeout: 246 seconds]
F1skr has quit [Ping timeout: 246 seconds]
My_Hearing has joined #ruby
Azure has joined #ruby
Drakevr has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
Neurotic has quit [Remote host closed the connection]
_karstensrage has joined #ruby
SegFaultAX|work2 has quit [Ping timeout: 246 seconds]
asuka has quit [Ping timeout: 246 seconds]
_karstensrage has quit [Excess Flood]
<quazimodo> can someone say my name
sspiff has joined #ruby
sspiff has quit [Changing host]
sspiff has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
Elfix has joined #ruby
SegFaultAX|work2 has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
freeayu has joined #ruby
Dreamer3 has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
amaya_ has joined #ruby
<Xeago> quazimodo, no I cannot
cakehero has joined #ruby
sixteneighty has quit [Ping timeout: 246 seconds]
asuka has joined #ruby
ejnahc_ has joined #ruby
alta has joined #ruby
flexd has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
joppe has quit [Ping timeout: 246 seconds]
faulkner has quit [Ping timeout: 246 seconds]
sixteneighty has joined #ruby
joppe has joined #ruby
_karstensrage has joined #ruby
gentz has quit [Ping timeout: 246 seconds]
_karstensrage has quit [Excess Flood]
und3f1 has joined #ruby
Axsuul has quit [Ping timeout: 244 seconds]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
matti has quit [Ping timeout: 246 seconds]
matti has joined #ruby
matti has quit [Changing host]
matti has joined #ruby
TheShadowFog has quit [Ping timeout: 260 seconds]
ssspiff has quit [Ping timeout: 260 seconds]
gentz has joined #ruby
faulkner has joined #ruby
tommyvyo_ has joined #ruby
affix has quit [Ping timeout: 260 seconds]
knightblader has quit [Ping timeout: 260 seconds]
namidark has quit [Ping timeout: 260 seconds]
ejnahc has quit [Remote host closed the connection]
niklasb has quit [Ping timeout: 260 seconds]
und3f has quit [Ping timeout: 260 seconds]
gavit has quit [Ping timeout: 260 seconds]
iaj has quit [Ping timeout: 260 seconds]
tbrock has quit [Ping timeout: 260 seconds]
knightblader has joined #ruby
tommyvyo_ has joined #ruby
tommyvyo_ has quit [Changing host]
fixl has quit [Ping timeout: 260 seconds]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
tbrock has joined #ruby
diegovio1a has quit [Quit: Reconnecting]
larissa has quit [Ping timeout: 260 seconds]
_karstensrage has joined #ruby
diegoviola has joined #ruby
_karstensrage has quit [Excess Flood]
lggr has quit [Ping timeout: 246 seconds]
<m3pow> lol
<m3pow> any ideas why i can't get the ruby ri to work in terminal ?
yshh has quit [Remote host closed the connection]
eykosioux has joined #ruby
<m3pow> ruby index, or ruby information ...whatever is called
TandemAdam_ has joined #ruby
fixl has joined #ruby
namidark has joined #ruby
carrythe1ero has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
abionic has joined #ruby
larissa has joined #ruby
lectrick has joined #ruby
fyolnish_ has joined #ruby
statarb3 has joined #ruby
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
iaj has joined #ruby
demian`__ has joined #ruby
karstensrage has joined #ruby
karstensrage has quit [Excess Flood]
lggr has joined #ruby
niklasb has joined #ruby
ABK has quit [Ping timeout: 268 seconds]
jso has joined #ruby
djdb_ has joined #ruby
fyolnish_ has quit [Ping timeout: 246 seconds]
sepp2k1 has joined #ruby
saispo has quit [Remote host closed the connection]
arkiver has quit [Ping timeout: 260 seconds]
tommyvyo_ has quit [Ping timeout: 260 seconds]
carrythezero has quit [Ping timeout: 260 seconds]
mohits has quit [Ping timeout: 260 seconds]
djdb has quit [Ping timeout: 260 seconds]
sepp2k has quit [Ping timeout: 260 seconds]
knightblader has quit [Ping timeout: 260 seconds]
demian`_ has quit [Ping timeout: 260 seconds]
xclite_ has quit [Ping timeout: 260 seconds]
niklasb is now known as 16SABYVI3
hunglin has joined #ruby
affix has joined #ruby
hunglin has left #ruby [#ruby]
MissionCritical has joined #ruby
arkiver has joined #ruby
xclite_ has joined #ruby
karstensrage has joined #ruby
TheShadowFog has joined #ruby
knightblader has joined #ruby
tommyvyo has joined #ruby
karstensrage is now known as Guest78122
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
Nisstyre-laptop has quit [Read error: Connection reset by peer]
Faris has joined #ruby
saispo has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
My_Hearing is now known as Mon_Ouie
Eldariof18-ru has joined #ruby
haxrbyte has joined #ruby
pngl has quit [Quit: Quitte]
wang_ has joined #ruby
eml_ has joined #ruby
BSaboia has joined #ruby
maxmande1s has joined #ruby
nw_ has joined #ruby
sixtenei1hty has joined #ruby
risico has quit [Quit: Leaving]
trooney_ has joined #ruby
AndrzejK1zywda has joined #ruby
rotor` has joined #ruby
oz` has joined #ruby
Shamgar_ has joined #ruby
kenichi_ has joined #ruby
mucker_ has joined #ruby
kaleido_ has joined #ruby
aef_ has joined #ruby
GenghisKen has joined #ruby
GenghisKen has quit [Changing host]
GenghisKen has joined #ruby
jprovazn has quit [Quit: Leaving]
lolmaus has quit []
griotspeak has joined #ruby
matrixise has joined #ruby
haxrbyte_ has quit [Ping timeout: 260 seconds]
16SABYVI3 has quit [Quit: WeeChat 0.3.8]
niklasb has joined #ruby
R3dy_ has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
no_i_wont_ has joined #ruby
pk1001100011 has joined #ruby
pskosinski has quit [Excess Flood]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
trooney has quit [Write error: Broken pipe]
no_i_wont has quit [Write error: Broken pipe]
nw has quit [Write error: Broken pipe]
shaman42_ has quit [Write error: Broken pipe]
AndrzejKrzywda has quit [Write error: Broken pipe]
sixteneighty has quit [Write error: Broken pipe]
eml has quit [Write error: Broken pipe]
maxmanders has quit [Write error: Broken pipe]
Shamgar has quit [Remote host closed the connection]
patronus has quit [Write error: Broken pipe]
kaleido has quit [Write error: Broken pipe]
wang has quit [Remote host closed the connection]
rotor has quit [Remote host closed the connection]
bier has quit [Excess Flood]
oz has quit [Remote host closed the connection]
kenichi has quit [Remote host closed the connection]
mucker has quit [Remote host closed the connection]
bier has joined #ruby
qwerxy_ has joined #ruby
shaman42 has joined #ruby
sailias has joined #ruby
ahuman_ has joined #ruby
Markvilla has joined #ruby
Gate has joined #ruby
Gate has quit [Changing host]
Gate has joined #ruby
Muz_ has joined #ruby
dpk has joined #ruby
soulcutter has joined #ruby
patronus has joined #ruby
Markvilla has quit [Client Quit]
Eldariof-ru has quit [Remote host closed the connection]
iamjarvo has joined #ruby
examancr has joined #ruby
Markvilla has joined #ruby
<shevy> m3pow perhaps you lack the docs
aef has quit [Ping timeout: 252 seconds]
ninegrid_ has joined #ruby
a_a_g has quit [Quit: Leaving.]
uris_ has joined #ruby
a_a_g has joined #ruby
no_i_wont has joined #ruby
Faris has quit [Quit: Leaving.]
spathi has joined #ruby
<shevy> m3pow, when I compile ruby from source, there is an extra step called "make install-doc"
classix_ has joined #ruby
<m3pow> i didn't do that
lggr has joined #ruby
Phibs_ has joined #ruby
<shevy> quazimodo repetition is usually bad because it leads to copy/paste stuff, and adds to amounts of lines of code
CoverSli1e has joined #ruby
workmad3_ has joined #ruby
<m3pow> i did a sudo apt-get install ruby-rvm
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
jrist-afk is now known as jrist
kaneda__ has joined #ruby
<shevy> yeah m3pow. debian doesn't wanna give you the docu ;)
<m3pow> and suggestions ?
babinho has joined #ruby
<shevy> yeah. stop using debian. however had for the time being, it may be they splitted things into some ruby docu package part
<m3pow> i got ubuntu
jasonLaster has joined #ruby
jasonLaster has quit [Read error: Connection reset by peer]
jasonLaster has joined #ruby
<shevy> same problem ;)
<m3pow> ok
<m3pow> thanks
<shevy> Hanmac uses ubuntu too btw
<shevy> he should be able to help
<m3pow> it's not necesary atm but....it might come in handy
<shevy> Hanmac, wake up!
<m3pow> hehe ..let him sleep !
<Xeago> >> puts "Can the bot help"?
<Xeago> where is bot?
<shevy> someone broke the bot again
<Xeago> :O
Nathandim has joined #ruby
<Xeago> how?
carloslopes has joined #ruby
* Hanmac is waked up ...
Iszak has quit [Ping timeout: 240 seconds]
peregrine81 has quit [Quit: Computer sleeping.]
invisime has joined #ruby
jim_cooley has joined #ruby
no_i_wont_ has quit [*.net *.split]
{^_^}___ has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
uris has quit [*.net *.split]
ben_alman has quit [*.net *.split]
R3dy has quit [*.net *.split]
nricciar_ has quit [*.net *.split]
Gate_ has quit [*.net *.split]
tris has quit [*.net *.split]
Guedes has quit [*.net *.split]
bigmeow has quit [*.net *.split]
qwerxy has quit [*.net *.split]
GeekOnCoffee has quit [*.net *.split]
ninegrid has quit [*.net *.split]
goraxe has quit [*.net *.split]
classix has quit [*.net *.split]
chrishunt has quit [*.net *.split]
workmad3 has quit [*.net *.split]
CoverSlide has quit [*.net *.split]
methoddk has quit [*.net *.split]
ping-pong has quit [*.net *.split]
Muz has quit [*.net *.split]
ahuman has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
examancer has quit [*.net *.split]
spathi_ has quit [*.net *.split]
benatkin has quit [*.net *.split]
Phibs has quit [*.net *.split]
jcooley has quit [*.net *.split]
kaneda_ has quit [*.net *.split]
geekbri has joined #ruby
nricciar__ has joined #ruby
<Hanmac> m3pow do you need rvm ?
Guedes has joined #ruby
<invisime> yeah, I was going to ask a question, but I think I'll wait until the net split's over.
{^_^}___ has joined #ruby
benatkin has joined #ruby
<m3pow> yes i do
methoddk has joined #ruby
<m3pow> i might need some info fast from the terminal
<shevy> fast
<shevy> :)
<m3pow> and i might not always access the internet
<Hanmac> m3pow i mean do you realy need the version control of rvm or is an newer ruby enough?
<shevy> ok look
<shevy> let's simplify
<shevy> Hanmac, how do you use ri?
lggr has quit [Ping timeout: 245 seconds]
<shevy> that way, m3pow will find out :P
ping-pong has joined #ruby
<m3pow> for ex : $ ri upcase
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
<Hanmac> he should install the ruby1.9.1-full package
<m3pow> i installed ruby from terminal
<Xeago> why not 1.9.3?
<m3pow> and i have version .....
<shevy> Xeago the API is at 1.9.1 even for 1.9.3
<m3pow> 1.9.3p0
<hoelzro> m3pow: how did you install it? rvm? system package manager?
jbw_ has quit [Ping timeout: 240 seconds]
<Xeago> shevy: and what does that mean?
<m3pow> basically i did an install of latest ruby through terminal
<m3pow> then i did a sudo apt-get install ruby-rvm
<shevy> Xeago that the ruby1.9.1-full package will most likely default to another ruby 1.9.x version. I think ruby 1.9.3 by now, right Hanmac?
<shevy> using apt-get to install rvm :D
abionic has quit [Ping timeout: 240 seconds]
<Xeago> why don't we just specify ruby1.9-full to get whatever latest version ruby is at?
linoj has joined #ruby
<Hanmac> otherwise ... the ruby1.9.3 points to ruby1.9.1 :P
<shevy> Xeago dunno, I guess it is some super strict debian policy
jasonLaster has quit [Remote host closed the connection]
<m3pow> oh...and what should i do
robbyoconnor has joined #ruby
<shevy> Hanmac knows
jasonLaster has joined #ruby
RegEchse has joined #ruby
lggr has joined #ruby
_love_color_text has joined #ruby
fantazo has joined #ruby
<Hanmac> install the "ruby1.9.1-full" package, then do: "update-alternatives --config ruby" & "update-alternatives --config gem"
Xeago_ has joined #ruby
simao has quit [Changing host]
simao has joined #ruby
manolo has joined #ruby
dubios has quit [Ping timeout: 248 seconds]
<m3pow> thank you ...will try it now
savage- has joined #ruby
acies has quit [Ping timeout: 248 seconds]
krawchyk has joined #ruby
acies has joined #ruby
tris has joined #ruby
dubios has joined #ruby
tris has quit [Excess Flood]
xxi has joined #ruby
methoddk has quit [Ping timeout: 244 seconds]
benatkin has quit [Ping timeout: 244 seconds]
{^_^}___ has quit [Ping timeout: 244 seconds]
GeekOnCoffee has joined #ruby
methoddk has joined #ruby
r0bby_ has quit [Ping timeout: 248 seconds]
Xeago has quit [Ping timeout: 248 seconds]
AwesomeGarethMan has quit [Ping timeout: 248 seconds]
ixx has quit [Ping timeout: 248 seconds]
joppe has quit [Ping timeout: 248 seconds]
jastix has quit [Ping timeout: 248 seconds]
Poapfel has quit [Ping timeout: 248 seconds]
pjr_ has joined #ruby
jasonLaster has quit [Ping timeout: 264 seconds]
AwesomeGarethMan has joined #ruby
Takehiro has quit [Remote host closed the connection]
ben_alman_ has joined #ruby
gilesw_ has joined #ruby
jbpros_ has joined #ruby
jbpros has quit [Ping timeout: 248 seconds]
love_color_text has quit [Ping timeout: 248 seconds]
caveat- has quit [Ping timeout: 248 seconds]
pjr has quit [Ping timeout: 248 seconds]
benatkin has joined #ruby
seich- has quit [Ping timeout: 248 seconds]
rcj_ has quit [Ping timeout: 248 seconds]
rakl has quit [Ping timeout: 248 seconds]
cespare has quit [Ping timeout: 248 seconds]
coyo has quit [Ping timeout: 248 seconds]
lantins has quit [Ping timeout: 248 seconds]
virtuose has quit [Ping timeout: 248 seconds]
nimred has quit [Ping timeout: 248 seconds]
mmitchell has joined #ruby
xscc has joined #ruby
caveat- has joined #ruby
rakl has joined #ruby
S1kx has joined #ruby
S1kx has quit [Changing host]
S1kx has joined #ruby
xscc has quit [Client Quit]
BSaboia has quit [Ping timeout: 248 seconds]
Guest91927 has quit [Ping timeout: 248 seconds]
xea has quit [Ping timeout: 248 seconds]
Hardcore has quit [Ping timeout: 248 seconds]
aganov has quit [Ping timeout: 248 seconds]
wedgeV has quit [Ping timeout: 248 seconds]
soulcake has quit [Ping timeout: 248 seconds]
Scient has quit [Ping timeout: 248 seconds]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Mission-Critical has joined #ruby
Poapfel has joined #ruby
philcrissman has joined #ruby
Xeago_ is now known as Xeago
BSaboia has joined #ruby
jrajav has joined #ruby
rcj_ has joined #ruby
virtuose has joined #ruby
neersighted has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
wedgeV has joined #ruby
jastix has joined #ruby
Hardcore has joined #ruby
xea has joined #ruby
Hardcore is now known as Guest77929
tommyvyo has joined #ruby
_fmm_ has joined #ruby
Elico1 has joined #ruby
Dr4g_ has joined #ruby
elico has quit [Ping timeout: 248 seconds]
<m3pow> now it says i have 1.8.7
mfridh_ has joined #ruby
klipeto has quit [Ping timeout: 248 seconds]
_fmm has quit [Ping timeout: 248 seconds]
djdb_ has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<jrajav> I'm afraid that al2o3cr is probably dead forever unless someone else can take him over.
mfridh has quit [Ping timeout: 248 seconds]
gilesw has quit [Ping timeout: 248 seconds]
mbk has quit [Ping timeout: 248 seconds]
lantins has joined #ruby
undyingrage has quit [Ping timeout: 248 seconds]
gilesw_ is now known as gilesw
<jrajav> It's no longer possible for me to host it
undyingrage has joined #ruby
yasushi has joined #ruby
jbw_ has joined #ruby
{^_^}____ has joined #ruby
mbk has joined #ruby
katherinem13 has quit [Ping timeout: 248 seconds]
X-Jester has quit [Ping timeout: 248 seconds]
djdb has joined #ruby
Takehiro has joined #ruby
jbpros_ is now known as jbpros
GoGoGarrett has joined #ruby
klip has joined #ruby
dominikh has quit [Ping timeout: 248 seconds]
<m3pow> i get a "error creating symbolic link"
carrythe1ero has quit [Ping timeout: 248 seconds]
Scient has joined #ruby
katherinem13 has joined #ruby
seich- has joined #ruby
soulcake has joined #ruby
X-Jester has joined #ruby
aganov has joined #ruby
carrythezero has joined #ruby
{^_^}_____ has joined #ruby
fixl has quit [Ping timeout: 248 seconds]
tris has joined #ruby
nat2610 has joined #ruby
pdelgallego has quit [Quit: pdelgallego]
coyo has joined #ruby
Mission-Critical is now known as MissionCritical
resure has joined #ruby
<JonnieCache> jrajav: :(
<JonnieCache> is the server no longer available?
joppe has joined #ruby
resure has left #ruby [#ruby]
jrist is now known as jrist-mtg
<Xeago> what's the correct word for cooperability in the sense of cooperation?
<Hanmac> m3pow you need to run all commands as root
lantins has quit [Remote host closed the connection]
Spooner has joined #ruby
<Hanmac> jrajav what did you do to the bot :'(
dhruvasagar has quit [Quit: leaving]
uris_ has quit [Quit: leaving]
dhruvasagar has joined #ruby
bluOxigen_ has joined #ruby
fyolnish has joined #ruby
emanu has quit [Quit: emanu]
SeySayux has quit [Ping timeout: 276 seconds]
lggr has joined #ruby
jasonLaster has joined #ruby
SeySayux has joined #ruby
spopescu has joined #ruby
spopescu has left #ruby [#ruby]
klipeto has joined #ruby
<invisime> jrajav: I might be able to swing it. is the source somewhere accessible?
{^_^}______ has joined #ruby
mercwithamouth has joined #ruby
<Hanmac> invisime: one part is there https://github.com/jrajav/al2o3cr/
<jrajav> Did github manage to break gist.io?
philcrissman has quit [Remote host closed the connection]
<jrajav> That would be a damn shame
<jrajav> Well I wrote up a brief explanation here but it's not pretty :( https://gist.github.com/3714253
emanu has joined #ruby
tagrudev has quit [Remote host closed the connection]
<jrajav> Best: http://goo.gl/hkAgp
philcrissman has joined #ruby
jasonLaster has quit [Ping timeout: 260 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
locriani_ has joined #ruby
<jrajav> invisime: If you're really up to it email me and I'll send you back instructions on getting it set up. Like I said in the gist it really is pretty simple - You just need a chroot, Ruby, and a few libraries
jasonLaster has joined #ruby
<jrajav> Cinch takes care of most of the magic
{^_^}____ has quit [Ping timeout: 248 seconds]
asv has joined #ruby
<invisime> jrajav: I've got a headless server at home that doesn't do much and has fairly reasonable uptime.
<jrajav> Sounds ideal
savage- has quit [Remote host closed the connection]
<m3pow> hey now works
<m3pow> thanks a bunch Hanmac +1
peregrine81 has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 255 seconds]
<jrajav> Aha!!!
<jrajav> Works.. I didn't know it had to be Markdown
<Xeago> what's the correct word for cooperability in the sense of cooperation?
<invisime> jrajav: wow. I wish I'd know about cinch 6 years ago when I wrote a ruby IRB bot for a class project. XD
soulcake has quit [Ping timeout: 248 seconds]
bluOxigen has quit [Ping timeout: 248 seconds]
{^_^}_____ has quit [*.net *.split]
klip has quit [*.net *.split]
yeggeps has quit [*.net *.split]
locriani has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
lggr has joined #ruby
<fmcgeough> cooperative
IrishGringo_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
<Hanmac> jrajav the bot as a bit encoding problems .... like when i type "ä" it does not return "ä" :(
<jrajav> Really?
soulcake has joined #ruby
yeggeps has joined #ruby
Sp4rKy has joined #ruby
sailias has quit [Ping timeout: 260 seconds]
Sp4rKy has quit [Max SendQ exceeded]
soulcake has quit [Changing host]
soulcake has joined #ruby
lantins has joined #ruby
mucker_ has quit [Quit: leaving]
<jrajav> That's odd .. it had encoding issues a while ago, but I fixed them by passing -E binary:binary to the scriptlet Ruby instance
<Hanmac> yeah ... and puts ["01038dca61cadeb5dca1bc4476a24f28"].pack("h*") returns/shows nothing :(
mucker has joined #ruby
<Hanmac> jrajav ... hm binary may be not the right encoding :(
Sp4rKy has joined #ruby
<jrajav> It's probably getting jammed in the process of piping through stdout back to the main IRC bot
<jrajav> Or that
<jrajav> Maybe I should set it to utf8 instead
<jrajav> I think I tried that, but maybe I didn't
<Xeago> is there a reason to use utf8 over utf16?
<Xeago> or vice versa?
<jrajav> It's backwards compatible with ascii
<Xeago> utf16 isn't?
<jrajav> And it avoids a lot of issues with utf16 and utf32
frogstarr78 has quit [Quit: Leaving]
pu22l3r has joined #ruby
<invisime> jrajav: I sent you an email.
<shevy> jrajav: I sent you a love letter.
<invisime> I'll set aside some time this evening to work on getting it set up.
<jrajav> invisime, You rock hard
<jrajav> shevy, Oh my~
GeekOnCoffee has quit [Ping timeout: 244 seconds]
nateberkopec has joined #ruby
peregrine81 has quit [Quit: Computer sleeping.]
<invisime> jrajav: no, you rock hard. \m/
dkr has joined #ruby
peregrine81 has joined #ruby
<Hanmac> invisime did he said to you how to make the change-root dir so the system is hanmac-proof?
uris has joined #ruby
<banisterfiend> Hanmac can i take you to the cherry tree dance
<invisime> Hanmac: I haven't gotten those instructions yet. but no, I'm not going to go home and just run sudo ruby bot.rb. :-P
peregrine81 has quit [Client Quit]
bbttxu has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
SCommette has joined #ruby
<Hanmac> jrajav i am interested how the bot reacts on a "[1,2,3].cycle.reverse" :P
SCommette has quit [Client Quit]
GeekOnCoffee has joined #ruby
lggr has joined #ruby
<invisime> Hanmac: did you mean [1,2,3].reverse.cycle? :-P
justinmcp has quit [Remote host closed the connection]
<Hanmac> invisime ... no :P i mean cycle.reverse :P
m3pow has quit [Quit: ChatZilla 0.9.88.2 [Firefox 11.0/20120410121533]]
<invisime> it will probably error.
<Xeago> cycle.anything_that_iterates
<Xeago> cycle.last
<Xeago> :D
<Hanmac> it is not an error ... int only feeds all your RAM
<jrajav> It should be immune to anything that attempts to hang or forkbomb it, by now
<jrajav> *fingers crossed*
<jrajav> And it has memory limitations tooo
<invisime> I was just contemplating how to fork bomb. XD
<JonnieCache> Hanmac: "NoMethodError: undefined method `reverse' for #<Enumerator: [1, 2, 3]:cycle>"
dominikh has joined #ruby
<JonnieCache> oh its been bombed every which way already
<jrajav> Oh wait, no it doesn't
<jrajav> I think I removed the memory limits
<jrajav> resource_limits = { :rlimit_cpu => 1, :rlimit_nproc => 4, :rlimit_fsize => 50000 }
<JonnieCache> nobody has managed to beat `sleep while true` yet
noam has quit [Ping timeout: 272 seconds]
<jrajav> I'm pretty sure we've already tried hitting it with intentional memory leaks though
<jrajav> It just fails in a boring way
<JonnieCache> yep
awarner has joined #ruby
<JonnieCache> it was boring. just got that timing thread error
<hoelzro> cycle $ reverse [ 1, 2, 3 ] -- totally legal Haskell that doesn't crash your machine =)
xpen has joined #ruby
<Hanmac> [1,2,3].cycle.reverse_each {|i| p i}
<jrajav> Haskell doesn't count, it uses deep magic
<hoelzro> =)
m3pow has joined #ruby
<Hanmac> or [1,2,3].cycle.to_a
<invisime> Hanmac: that one will just hit the timeout limit, I think.
omry has quit [Ping timeout: 272 seconds]
<Hanmac> the bot isnt currently online for testing :/
nanderoo has joined #ruby
sailias has joined #ruby
paolooo has joined #ruby
<invisime> Hanmac: indeed not. but I estimate 12 hours or so until I'll have it back up and hosted.
<invisime> (just got into work and won't have time to spend on home projects until this evening.)
<Xeago> how much would it cost to host this in ec2?
<jrajav> invisime, I'll send you the instructions later today, probably no later than 13:00 CST
rakl has quit [Quit: sleeping]
<jrajav> They're very simple I just don't have the time to write them right now
<invisime> jrajav: no problem.
griotspeak has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<invisime> Xeago: a non-zero number.
<invisime> Xeago: whereas I can host it for free.
<jrajav> ^
<Xeago> is it possible to put it on heroku, as a worker dyno?
<invisime> Xeago: possible, yes. free, no.
rakl has joined #ruby
<jrajav> No, it relies pretty heavily on chroot permissions
<Xeago> 1 dyno is free
<Xeago> aight
<jrajav> The scaling wouldn't be an issue if it could be done purely in code, true
hoelzro is now known as hoelzro|away
<jrajav> But good luck messing with Ruby sandboxes
hoelzro|away is now known as hoelzro
Takehiro has quit [Remote host closed the connection]
ken_barber has joined #ruby
<invisime> oh, right. I originally logged in to ask a question today.
<Xeago> wow :D
passbe has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
<invisime> how do I make bundler use a local version of a gem that has native extensions that need to be built?
<invisime> the --path directive doesn't do what I want it to do.
lggr has joined #ruby
robbyoconnor has quit [Ping timeout: 252 seconds]
tomku has joined #ruby
dhruvasagar has quit [Ping timeout: 244 seconds]
<invisime> err, that is, I want to use the --path vendor/bundle directive prior to copying over a file system to the production appliance, but my gemfile has a c extension gem with a local path. and when bundler copies the gem over, it doesn't compile the gem.
xpen has quit [Remote host closed the connection]
jrist-mtg is now known as jrist
the_jeebster has joined #ruby
xpen has joined #ruby
philcrissman has quit [Remote host closed the connection]
GraemeLion has joined #ruby
rippa has joined #ruby
gaahrdner has joined #ruby
<shevy> good old bundler
Zespre has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby
sambio has joined #ruby
sambio has quit [Client Quit]
sambio has joined #ruby
Zespre has joined #ruby
joshman_ has joined #ruby
Xeago_ has joined #ruby
Takehiro has joined #ruby
philcrissman has joined #ruby
fbernier has joined #ruby
clj_newb has joined #ruby
andrewvos has joined #ruby
andrewvos has quit [Client Quit]
andrewvos has joined #ruby
andrewvos has quit [Client Quit]
philcrissman has quit [Remote host closed the connection]
chadaw has quit [Ping timeout: 245 seconds]
asteve has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
Vert has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
seanyo has joined #ruby
iamjarvo has quit [Ping timeout: 244 seconds]
CarlB_the_great has joined #ruby
stopbit has joined #ruby
xpen_ has joined #ruby
Goles has joined #ruby
Choclo has quit [Quit: Leaving.]
kroniksenvy has quit [Quit: Page closed]
a_a_g has quit [Quit: Leaving.]
arkiver has quit [Quit: Leaving]
xpen has quit [Ping timeout: 240 seconds]
sailias has quit [Ping timeout: 260 seconds]
jrajav has quit [Quit: Leaving]
<GraemeLion> How do you purge all gems from rvm?
CodeFriar has joined #ruby
Cache_Money has joined #ruby
jasonLaster has quit [Remote host closed the connection]
monkegjinni has joined #ruby
<shevy> yeah Hanmac not surprising. people are fashion driven
josefrichter__ has joined #ruby
cakehero has joined #ruby
verto|off is now known as verto
amacgregor_osx has joined #ruby
johnlcox has joined #ruby
<GraemeLion> invisime: Thank ya
urbann has joined #ruby
reactormonk has joined #ruby
internet_user has joined #ruby
tomsthumb has quit [Quit: Leaving.]
luxurymode has joined #ruby
sagax has quit [Quit: Ухожу я от вас]
lggr has joined #ruby
ken_barber has quit [Remote host closed the connection]
Freijo has quit [Remote host closed the connection]
CodeFriar has quit [Quit: Leaving...]
moshef has quit [Quit: moshef]
amaya_ has quit [Quit: ChatZilla 0.9.88.2 [Firefox 15.0.1/20120905151427]]
F1skr has joined #ruby
<GraemeLion> Yeah.. that didn't work. weird how sometimes rvm goes nuts
yshh has joined #ruby
<GraemeLion> So, rvm implode, and redo
SCommette has joined #ruby
ncamargo has joined #ruby
ncamargo is now known as BIGX333
Guest45814 has quit [Ping timeout: 255 seconds]
Guest45814 has joined #ruby
nwest has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
mbk has quit [Ping timeout: 240 seconds]
mvangala has quit [Remote host closed the connection]
maxmmurphy has joined #ruby
freeayu__ has joined #ruby
<shevy> the more layers on layers one uses, the more fragile things tend to become
<GraemeLion> shevy: True.
steakknife has quit [Read error: Connection reset by peer]
freeayu has quit [Ping timeout: 252 seconds]
steakknife has joined #ruby
AlbireoX has joined #ruby
LouisGB has joined #ruby
lggr has joined #ruby
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
steakknife has quit [Ping timeout: 264 seconds]
asv has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Chicks dig it]
LouisGB has quit [Ping timeout: 272 seconds]
dekroning has joined #ruby
kpshek has joined #ruby
kpshek has quit [Client Quit]
GenghisKen has quit [Ping timeout: 240 seconds]
statarb3 has quit [Quit: Leaving]
Guest78122 is now known as karstensrage
xclite_ has quit [Quit: Leaving]
Jake232 has joined #ruby
xclite_ has joined #ruby
lggr has quit [Ping timeout: 272 seconds]
spanner has joined #ruby
xclite_ has quit [Remote host closed the connection]
xclite has joined #ruby
savage- has joined #ruby
jgarvey has joined #ruby
lggr has joined #ruby
limon7 has joined #ruby
qwerxy_ has quit [Quit: offski]
wmoxam has quit [Quit: leaving]
Jake232 has quit [Quit: Computer has gone to sleep.]
freeayu__ has quit [Quit: 离开]
fbernier has quit [Ping timeout: 272 seconds]
<josefrichter__> guys, how do I save an image in dataURI format? need to decode it somehow first?
heftig_ is now known as heftig
<josefrichter__> please
<gilesw> heya we use this module http://www.catnook.com/programs/cidr.rb
<gilesw> and i was going to try and wrap it up in a gem
<gilesw> but it looks like it monkey patches Array
<gilesw> it would only monkey patch if someone required it though right?
<hoelzro> wow
<hoelzro> that monkey patch is horrid
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
savage- has quit [Ping timeout: 260 seconds]
<gilesw> hmm i thought someone might say that
<hoelzro> it's called "to_i"
<hoelzro> but returns an Array
<hoelzro> ?!
<workmad3_> haha
<gilesw> i think i can use netaddr instead
Takehiro has quit [Remote host closed the connection]
<JonnieCache> rename it to to_array_of_integers and youre good
yasushi has quit [Remote host closed the connection]
clj_newb has quit [Ping timeout: 272 seconds]
<JonnieCache> or preferably just have that as a separate function that takes an array
<hoelzro> to_ai # hungarian
<JonnieCache> hungarian notation can take a hike
dhruvasagar has quit [Ping timeout: 260 seconds]
<workmad3_> hoelzro: or go sublime... to_skynet ;)
<gaahrdner> Hola, how can I get this test to pass? : http://pastie.org/4714271
ken_barber has joined #ruby
<gilesw> I think netaddr will be able to do addrandmask2cidr
luckyruby has joined #ruby
<gilesw> so i'll have a crack at using that
<workmad3_> hoelzro: as in 'from the ridiculous to the sublime' :)
goraxe has joined #ruby
bigmeow has joined #ruby
<hoelzro> change lines 2-15 to 'pass'?
<hoelzro> =P
lggr has quit [Ping timeout: 268 seconds]
limon7 has quit [Remote host closed the connection]
limon7 has joined #ruby
dhruvasagar has joined #ruby
jjbohn has joined #ruby
<gaahrdner> lol
senny has joined #ruby
baroquebobcat has joined #ruby
heisenmink has quit [Remote host closed the connection]
ken_barber has quit [Ping timeout: 244 seconds]
asv has joined #ruby
BiHi has joined #ruby
GenghisKen has joined #ruby
GenghisKen has quit [Changing host]
GenghisKen has joined #ruby
BiHi_ has quit [Read error: Connection reset by peer]
tomsthumb has joined #ruby
rjsamson has joined #ruby
<shevy> gilesw yeah it will only modify when that file is loaded
<gilesw> ta shevy
<gilesw> i'm going to try netaddr instead as it looks to be better maintained
dekroning has quit [Ping timeout: 268 seconds]
senny has quit [Remote host closed the connection]
verto is now known as verto|off
ken_barber has joined #ruby
rburton- has joined #ruby
ken_barber has quit [Remote host closed the connection]
ken_barber has joined #ruby
<lupine_85> I'm using mocha to test an object that implements Enumerable, and I want to stub the "contents" of the object - such that each/collect/any? etc all do the expected thing
<lupine_85> anyone know how to do this, offhand?
<Hanmac> lupine_85: you could check: "object.is_a?(Enumerable)" or "object.respond_to?(:each)"
limon7 has quit [Quit: limon7]
Takehiro has joined #ruby
lggr has joined #ruby
<lupine_85> I'm testing a second-order thing - I have methods that call collect {|element| do_something_with(element) } - and want that collect call to successively yield test data and act like a normal collect
sailias has joined #ruby
Yomero has joined #ruby
<hoelzro> lupine_85: you can't create the object with the correct contents?
<lupine_85> it consults a directory tree to determine the contents. In other tests, I create the directory tree and work from that, but I don't want to do that in this particular set of tests
deryl1 is now known as deryl
chrishunt has joined #ruby
alek_b has joined #ruby
fyolnish has quit [Remote host closed the connection]
emanu has quit [Quit: emanu]
fyolnish has joined #ruby
<hoelzro> what about separating the logic that loads directory entries from the logic that manipulates them?
mbk has joined #ruby
<lupine_85> unnecessary if the stubbing abilities I desire exist ^^, hence the asking
<hoelzro> well, you *could* add a singleton method for :each
<JonnieCache> well all the other methods in enumerable call each, thats the key method
machty has quit [Ping timeout: 260 seconds]
pricees has joined #ruby
fyolnish has quit [Read error: Connection reset by peer]
fyolni___ has joined #ruby
<JonnieCache> so you can just patch that
<hoelzro> but I think it's probably a better design to separate logic
answer_42 has joined #ruby
<JonnieCache> indeed. good code is easily testable
<Hanmac> yeah, each is the KEY-method :P
Guest10445 has quit [Quit: ばいばい]
davidcelis has quit [Quit: K-Lined.]
asv has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Would you like to know more?]
philcrissman has joined #ruby
hashpuppy has joined #ruby
zemanel has joined #ruby
cespare has joined #ruby
asv has joined #ruby
Eplemosen has joined #ruby
br4ndon has joined #ruby
CodeFriar has joined #ruby
maesbn_ has quit [Remote host closed the connection]
luxurymode has quit [Quit: Computer has gone to sleep.]
diegoviola has quit [Ping timeout: 264 seconds]
tomsthumb has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 246 seconds]
tomsthumb has joined #ruby
sonkei has joined #ruby
lggr has joined #ruby
maletor has joined #ruby
philcrissman has quit [Ping timeout: 252 seconds]
aganov has quit [Remote host closed the connection]
SeanTAllen has joined #ruby
JohnBat26|2 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
pk1001100011 has quit [Ping timeout: 260 seconds]
larissa has quit [Quit: Leaving]
machty_ has joined #ruby
khakimov has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jkary has joined #ruby
rakl has quit [Quit: sleeping]
lggr has quit [Ping timeout: 240 seconds]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
fyolni___ has quit [Remote host closed the connection]
CarlB_the_great has quit [Remote host closed the connection]
Eplemosen has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
punkrawkR has joined #ruby
CarlB_the_great has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
emanu has joined #ruby
axl_ has joined #ruby
timonv has quit [Remote host closed the connection]
xpen_ has quit [Remote host closed the connection]
kpshek has joined #ruby
m_3 has joined #ruby
xpen has joined #ruby
Takehiro has quit [Remote host closed the connection]
qwerxy has joined #ruby
daniel_hinojosa has joined #ruby
fbernier has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
Choclo has joined #ruby
philcrissman has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
supergiantrobot_ has joined #ruby
fyolnish has joined #ruby
br4ndon has quit [Ping timeout: 264 seconds]
jrist is now known as jrist-afk
lggr has joined #ruby
seanyo has quit [Ping timeout: 260 seconds]
yshh has quit [Remote host closed the connection]
pskosinski has joined #ruby
mikepack has joined #ruby
br4ndon has joined #ruby
SCommette_ has joined #ruby
Cache_Money has quit [Ping timeout: 260 seconds]
fyolnish has quit [Ping timeout: 246 seconds]
emanu has quit [Quit: emanu]
SCommette has quit [Ping timeout: 245 seconds]
SCommette_ is now known as SCommette
xpen_ has joined #ruby
paolooo has quit [Quit: Page closed]
Morkel has quit [Quit: Morkel]
diegoviola has joined #ruby
Guest45814 is now known as moshee
sspiff has quit [Remote host closed the connection]
moshee has quit [Changing host]
moshee has joined #ruby
Fraeon has joined #ruby
Agis__ has joined #ruby
kvirani has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
xpen has quit [Ping timeout: 240 seconds]
mdpatrick has joined #ruby
Nathandim has quit [Remote host closed the connection]
<Xeago_> why can't I delete in pry
<Xeago_> it inserts a ~ instead
<hoelzro> it probably uses its own readline-like implementation
josefrichter__ has left #ruby [#ruby]
<banisterfiend> Xeago_: it should work
<banisterfiend> Xeago_: what plugins do u have installed ?
skluss has joined #ruby
samflores has joined #ruby
<JonnieCache> im guessing its the intersection of the OSX terminal.app and readline
<JonnieCache> half of the keyboard doesnt work out of the box
moeSeth_ has quit [Remote host closed the connection]
dnyy__ has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
cool has quit [Remote host closed the connection]
Dr4g_ has quit [Remote host closed the connection]
octarine has quit [Remote host closed the connection]
JC_SoCal_ has quit [Remote host closed the connection]
pvh_ has quit [Remote host closed the connection]
dkannan has quit [Remote host closed the connection]
dotemacs_ has quit [Remote host closed the connection]
NimeshNeema has quit [Remote host closed the connection]
patricksroberts has quit [Remote host closed the connection]
davidboy has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
rcsheets has quit [Remote host closed the connection]
SeanTAllen has quit [Remote host closed the connection]
dekz has quit [Read error: Connection reset by peer]
kapowaz has quit [Write error: Broken pipe]
lectrick has quit [Write error: Broken pipe]
fcoury_ has quit [Write error: Broken pipe]
ctevie has quit [Write error: Broken pipe]
diegoviola has quit [Ping timeout: 248 seconds]
bapa_ has quit [Ping timeout: 252 seconds]
Monie has joined #ruby
Monie has joined #ruby
Monie has quit [Changing host]
bluOxigen_ has quit [Ping timeout: 245 seconds]
Eldariof18-ru has quit [Read error: Operation timed out]
xpen_ has quit [Remote host closed the connection]
sonkei has quit [Quit: Computer has gone to sleep.]
<skluss> Hello, I'm having trouble with the gem "SNMP". i can't seem to load MIBs, the error output reads "/usr/lib/ruby/gems/1.8/gems/snmp-1.1.0/lib/snmp/mib.rb:157:in `[]': odd number of arguments for Hash (ArgumentError)". I can't find any online reference to this issue. I'm running CentOS 5.7, Ruby 1.8.6, rubygems 1.3.7, rubygem snmp 1.10. Does anyone have any insight here?
elux has quit [Quit: Bye!]
lggr has joined #ruby
kjellski has joined #ruby
limon7 has joined #ruby
Virunga has joined #ruby
doomMonkey has quit [Ping timeout: 276 seconds]
slate has joined #ruby
s1n4 has left #ruby ["leaving"]
twinturbo has joined #ruby
bapa has joined #ruby
twinturbo has quit [Client Quit]
wallerdev has joined #ruby
moted has joined #ruby
hoelzro is now known as hoelzro|away
artOfWar has quit [Ping timeout: 268 seconds]
GenghisKen has quit [Ping timeout: 272 seconds]
Dreamer3 has joined #ruby
rburton- has quit [Quit: Linkinus - http://linkinus.com]
cezar has joined #ruby
cezar has quit [Remote host closed the connection]
<nat2610> wjat
vjt has joined #ruby
<nat2610> what's the name of the structure that stored arguments for a function ? I'd like to convert an array into it
andrebras has joined #ruby
Tearan has joined #ruby
slate has quit [Ping timeout: 255 seconds]
savage- has joined #ruby
iocor has joined #ruby
<samflores> nat2610, I guess you want to pass a previously create list of values to some function right?
cezar has joined #ruby
cezar has quit [Client Quit]
<samflores> *created
<iocor> is this if (options.has_key?(:if) && !options[:if]) the same as this: if !options[:if]
<invisime> iocor: no.
<iocor> ok
zommi has quit [Quit: Leaving.]
fyolnish has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
<nat2610> yeah I'd like to call Time.utc(args) and provide in args
<nat2610> all the arguments that the method takes
<nat2610> right now it's an array
<invisime> iocor: by default, the default value of a Hash (that is, the value returned when you access it with a non-key) is nil. in which case those are equivalent. however, the default can be set to other things.
<nat2610> but ruby doesn't like it
<samflores> you can call Time.utc(*args)
peregrine81 has joined #ruby
<nat2610> tanks !
<nat2610> thanks
jrist-afk is now known as jrist
<nat2610> that was my mistake
<nat2610> I imagine that there was a different type of array for arguments
<iocor> invisime: are they the same if options is a hash?
lggr has joined #ruby
<invisime> iocor: they are the same if options is a hash that hasn't had its default value changed.
<iocor> ok
[diecast] has joined #ruby
anildigital_work has joined #ruby
andrebras has left #ruby [#ruby]
dkannan has joined #ruby
billyoc has joined #ruby
kapowaz has joined #ruby
pvh_ has joined #ruby
dotemacs_ has joined #ruby
jjbohn has quit [Quit: Leaving...]
Bosma has joined #ruby
philcrissman has quit [Remote host closed the connection]
dekz has joined #ruby
moeSeth_ has joined #ruby
evilsushi has joined #ruby
evilsushi has quit [Changing host]
evilsushi has joined #ruby
jasonkuhrt has joined #ruby
lessthanphil has quit [Quit: lessthanphil]
roadt has quit [Ping timeout: 246 seconds]
xclite has quit [Ping timeout: 272 seconds]
philcrissman has joined #ruby
davidcelis has joined #ruby
Takehiro has joined #ruby
maletor has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
matrixise has quit [Ping timeout: 240 seconds]
luxurymode has joined #ruby
Choclo has quit [Quit: Leaving.]
Nathandim has joined #ruby
peanuts___ has quit [Quit: peanuts___]
soulcutter has quit [Changing host]
soulcutter has joined #ruby
echobravo has joined #ruby
jasonkuhrt has quit [Quit: Leaving...]
philcrissman has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
jenrzzz has joined #ruby
<amacgregor_osx> if I have class variable that I want to make accessible for class instances inheriting from the parent class do I have to define an attr_accessor ?
mdpatrick has quit [Quit: mdpatrick]
xclite has joined #ruby
shawn-p has joined #ruby
skluss has left #ruby [#ruby]
GenghisKen has joined #ruby
GenghisKen has quit [Changing host]
GenghisKen has joined #ruby
ltsstar has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
ngoldman has joined #ruby
senny has joined #ruby
adeponte has joined #ruby
jkary has quit [Quit: Leaving.]
adelcampo has joined #ruby
carloslopes has quit [Quit: Leaving.]
sailias has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 273 seconds]
emptyflask has joined #ruby
und3f1 has quit [Remote host closed the connection]
clj_newb has joined #ruby
Eiam has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
fbernier has quit [Ping timeout: 260 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
und3f has joined #ruby
lggr has joined #ruby
vectorshelve has joined #ruby
maletor has joined #ruby
Chryson has joined #ruby
mohits has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
sspiff has joined #ruby
sspiff has joined #ruby
und3f has quit [Client Quit]
sepp2k1 has quit [Ping timeout: 272 seconds]
jjbohn has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
artOfWar has joined #ruby
oz` is now known as oz
Nathandim has quit [Quit: Leaving]
specialGuest has joined #ruby
blazes816 has joined #ruby
samflores is now known as samflores|away
samflores|away is now known as samflores
lggr has quit [Ping timeout: 260 seconds]
dotemacs_ has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
dekz has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
pvh_ has quit [Remote host closed the connection]
dkannan has quit [Remote host closed the connection]
moeSeth_ has quit [Remote host closed the connection]
kapowaz has quit [Read error: Connection reset by peer]
lggr has joined #ruby
verto|off is now known as verto
doomMonkey has joined #ruby
mva3212 has joined #ruby
senny has quit [Remote host closed the connection]
iamjarvo has joined #ruby
adamkittelson has joined #ruby
asv has quit [Ping timeout: 246 seconds]
alvaro_o has joined #ruby
soulcutter is now known as Sou|cutter
samflores is now known as samflores|away
samflores|away is now known as samflores
lggr has quit [Ping timeout: 240 seconds]
burgestrand has quit [Quit: Leaving.]
shevy has joined #ruby
asv has joined #ruby
BSaboia has quit [Read error: Connection reset by peer]
shadoi has quit [Quit: Leaving.]
Nathandim has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
pvh_ has joined #ruby
locriani_ has quit [Quit: Leaving...]
locriani has joined #ruby
locriani has quit [Changing host]
locriani has joined #ruby
bluOxigen has joined #ruby
k0m has joined #ruby
jgrevich has joined #ruby
JonnieCache has quit [Quit: Lost terminal]
doomMonkey has quit [Ping timeout: 260 seconds]
eykosioux has quit [Quit: eykosioux]
GoGoGarrett has quit [Remote host closed the connection]
jrist is now known as jrist-mtg
kenichi_ is now known as kenichi
pdtpatrick has joined #ruby
rubious has joined #ruby
Xeago_ has quit [Remote host closed the connection]
LouisGB has joined #ruby
c0rn_ has joined #ruby
lggr has joined #ruby
nighthwk1 has joined #ruby
Chryson has quit [Quit: Leaving]
tyfighter has joined #ruby
bluOxigen has quit [Ping timeout: 244 seconds]
dnyy__ has joined #ruby
[diecast] has joined #ruby
kapowaz has joined #ruby
dkannan has joined #ruby
emptyflask has quit [Ping timeout: 244 seconds]
fcoury_ has joined #ruby
dotemacs_ has joined #ruby
dekz has joined #ruby
macmartine has joined #ruby
gaahrdner has quit [Ping timeout: 260 seconds]
Foxandxss has joined #ruby
NimeshNeema has joined #ruby
jasonLaster has joined #ruby
anildigital_work has joined #ruby
moeSeth_ has joined #ruby
JC_SoCal_ has joined #ruby
stephenjudkins has joined #ruby
jenrzzz has joined #ruby
samflores has quit [Quit: Linkinus - http://linkinus.com]
k0m has quit [Quit: Computer has gone to sleep.]
a_a_g has joined #ruby
cool has joined #ruby
philcrissman has joined #ruby
baphled has quit [Ping timeout: 268 seconds]
lggr has quit [Ping timeout: 240 seconds]
BiHi has quit [Quit: Computer has gone to sleep]
hadees has quit [Quit: hadees]
stkowski has joined #ruby
pu22l3r_ has joined #ruby
<Mon_Ouie> amacgregor_osx: Class variables are always inherited
eykosioux has joined #ruby
<banisterfiend> Mon_Ouie if you were a class variable would you prefer to be @@mon_ouie or @@kilian
lggr has joined #ruby
clj_newb has quit [Ping timeout: 248 seconds]
<Mon_Ouie> @@mon_ouie
eykosioux has quit [Client Quit]
macan has quit [Ping timeout: 264 seconds]
<Mon_Ouie> It would be rather silly to not pick the nickname you prefer, wouldn't it?
sneakyness_wk has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
pu22l3r has quit [Ping timeout: 272 seconds]
pricees has quit [Ping timeout: 246 seconds]
machty_ has quit [Read error: Connection reset by peer]
machty has joined #ruby
cakehero has joined #ruby
rcsheets has joined #ruby
Guest77929 is now known as Hardcore
Hardcore has quit [Changing host]
Hardcore has joined #ruby
patricksroberts has joined #ruby
davidboy has joined #ruby
<shevy> hmm
Dr4g_ has joined #ruby
<shevy> I am going to suggest the introduction of @@@foo
bigmeow has quit [Ping timeout: 244 seconds]
<vectorshelve> shevy: I needed to get some public pasties off from pastie.org and the only way to get them off was to mail reportabuse@pastie.org with the links and reasons.. I did that but I am not sure if he will delete them ASAP... need to get them down at the earliest..
a_a_g has quit [Read error: Connection reset by peer]
<banisterfiend> Mon_Ouie: i dont know --- embodying yourself in a clas variable is kind of a big deal and i thought you might prefer to use your real name. Who knows, in 10 years time you might think "mon ouie" was an adolescent indulgence, but it's more rare to get sick of your own real name
<shevy> vectorshelve!!!
<shevy> don't paste sensitive info on the www
a_a_g has joined #ruby
kjellski has quit [Quit: Leaving]
<shevy> your girlfriend will find it eventually
Phibs_ is now known as Phibs
goraxe has quit [Ping timeout: 240 seconds]
dnyy__ has quit [Remote host closed the connection]
[diecast] has quit [Remote host closed the connection]
rcsheets has quit [Remote host closed the connection]
fcoury_ has quit [Remote host closed the connection]
dotemacs_ has quit [Remote host closed the connection]
Dr4g_ has quit [Read error: Connection reset by peer]
JC_SoCal_ has quit [Read error: Connection reset by peer]
kapowaz has quit [Remote host closed the connection]
davidboy has quit [Write error: Broken pipe]
patricksroberts has quit [Remote host closed the connection]
dekz has quit [Remote host closed the connection]
pvh_ has quit [Remote host closed the connection]
moeSeth_ has quit [Remote host closed the connection]
cool has quit [Read error: Connection reset by peer]
NimeshNeema has quit [Remote host closed the connection]
dkannan has quit [Remote host closed the connection]
anildigital_work has quit [Remote host closed the connection]
ltsstar has quit [Ping timeout: 248 seconds]
<vectorshelve> shevy: yeah.. my bad.. were just error logs but had few sensitive info along with it.. so need to get them off.. github was too fast.. I mailed them and they deleted it in two minutes..
pu22l3r_ has quit [Remote host closed the connection]
<vectorshelve> shevy: not got any reply from pastie.. so far.. I hope they do it :(
adamos has quit [Quit: Leaving]
pu22l3r has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
sailias has joined #ruby
ltsstar has joined #ruby
Russell^^ has joined #ruby
mahmoudimus has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<canton7> hrm, it's looking like you can only edit "replies" on pastie.org now
<canton7> it used to be everything, which is why I liked them
lggr has joined #ruby
tewecske has joined #ruby
tewecske has quit [Max SendQ exceeded]
bbttxu has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
hadees has joined #ruby
Yomero has quit [Ping timeout: 248 seconds]
shadoi has joined #ruby
<vectorshelve> canton7: I dont know whay that guy doesnt give an option to delete pasties.. :(
ncr100 has joined #ruby
<shevy> dunno
<shevy> perhaps it was changed
<shevy> pastie was down for a few weeks
macan has joined #ruby
<canton7> yeah, might be that
lggr has quit [Ping timeout: 260 seconds]
<vectorshelve> shevy: and you know something
CodeFriar has quit [Quit: Leaving...]
carloslopes has joined #ruby
<vectorshelve> shevy: all questions and answers and data in stackoverflow.com is getting added to http://efreedom.com/. I have no idea about this site.. but I had want my questions to be removed from it since I already removed them from Stackoverflow due to specific reasons.
maxmmurphy has joined #ruby
havenn has joined #ruby
ltsstar has quit [Ping timeout: 272 seconds]
<shevy> hmm interesting
<vectorshelve> shevy: and a guy said
<vectorshelve> shevy: When you posted your questions to SO you made them available under CC-BY-SA. Anyone adhering to those terms (attribution of the original author, linking back to SO, making content available under the same license) can redistribute the content freely.
br4ndon has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
fmcgeough has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
nga4 has joined #ruby
sonkei has joined #ruby
fmcgeough has joined #ruby
voodoofish430 has joined #ruby
nga4 has quit [Read error: Connection reset by peer]
nga4 has joined #ruby
<Hanmac> shevy: when you posted your question to #ruby you made them available for Hanmac :P (because he is logging)
clj_newb has joined #ruby
br4ndon has quit [Ping timeout: 244 seconds]
nighthwk1 has quit [Remote host closed the connection]
supergiantrobot_ has quit [Quit: supergiantrobot_]
schwap has quit [Ping timeout: 268 seconds]
br4ndon has joined #ruby
a_a_g1 has joined #ruby
kn330 has joined #ruby
joofsh has joined #ruby
qwerxy has quit [Quit: offski]
joofsh has quit [Client Quit]
a_a_g has quit [Ping timeout: 255 seconds]
a_a_g1 has quit [Read error: Connection reset by peer]
[diecast] has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
a_a_g has joined #ruby
elico has joined #ruby
Bosox20051 has joined #ruby
doomMonkey has joined #ruby
anildigital_work has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
macan has quit [Ping timeout: 260 seconds]
troessner has joined #ruby
manolo has quit [Remote host closed the connection]
skrewler has joined #ruby
dkannan has joined #ruby
sagax has joined #ruby
lggr has joined #ruby
kapowaz has joined #ruby
a_a_g has quit [Read error: Connection reset by peer]
<shevy> hmmm
<shevy> ok guys
macan has joined #ruby
a_a_g has joined #ruby
<shevy> this is our aim
<shevy> for 2012
<shevy> Rank 9 9 Perl 2.267% -0.20%
<shevy> Rank 10 11 Ruby 1.724% +0.29%
<shevy> 0.5%!!! we need to reach that
<havenn> Quick, write code!
<shevy> doing, doing :)
<shevy> a very big intake due to rails, then also a big drop afterwards :(
pvh_ has joined #ruby
<Hanmac> i dont think that i am helping ... my ruby stuff count as C++ code :P
apok has joined #ruby
<amacgregor_osx> I'm having trouble doing properly class inheritance, I have a parent class that has a instance variable(@results) and a function that set those values .... I have multiple classes that should inhering from that parent class but I'm, unable to set or access @results from my children classes
dkr has left #ruby ["Leaving"]
jrist-mtg is now known as jrist
<amacgregor_osx> child = MyGem::ParentClass.new
clj_newb has quit [Ping timeout: 272 seconds]
<amacgregor_osx> child.results returns nil
<banisterfiend> amacgregor_osx basically u dont understand how inheritance works in ruby and u should buy a book :D
dotemacs_ has joined #ruby
<shevy> that does not help
manizzle has quit [Ping timeout: 272 seconds]
<shevy> what people would do in this case is to put up their code on something like pastie.org
<shevy> in general, you tend to subclass like so:
<shevy> class Foo < ParentClassHere
eldariof has joined #ruby
<shevy> def initialize
<shevy> super
<Muz_> >> class Parent; def initialize; @penis = true; end; end; class Child < Parent ; attr_reader :penis; end; a = Child.new; a.penis
limon7 has quit [Quit: limon7]
<banisterfiend> shevy "buy book" is the best advice when someone has the wrong mental model of a fundamental language feature
<Muz_> Oh, no more bot.
cascalheira has quit [Quit: Linkinus - http://linkinus.com]
<shevy> ack there comes the @penis again :(
Muz_ is now known as Muz
<Muz> It's all about the penis.
<amacgregor_osx> shevy, thank you
<Muz> (Seriously, need a test word, it's that, or "ponies".)
<shevy> do ponies have penises
CarlB_the_great has quit []
<Muz> I believe the word you're looking for is "ponises".
lggr has quit [Ping timeout: 244 seconds]
dekz has joined #ruby
moeSeth_ has joined #ruby
Maniacal has joined #ruby
<shevy> oh man always the cartoon p0rn
bluenemo has quit [Remote host closed the connection]
<reactormonk> anyone else got a fail with the ffi gem where it's looking for libffi.so.5 and the current version is .6?
billyoc has quit [Remote host closed the connection]
ABK has joined #ruby
Faris has joined #ruby
jastix has quit [Quit: Leaving]
Faris has left #ruby [#ruby]
a_a_g has quit [Read error: Connection reset by peer]
a_a_g has joined #ruby
lggr has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<Hanmac> shevy i dont know where you see p0rn in this pic :P
johnlcox_ has joined #ruby
<Hanmac> reactormonk use an newer ruby or reinstall the ffi gem
Sou|cutter has quit [Ping timeout: 264 seconds]
moted has quit [Ping timeout: 260 seconds]
juarlex_ has joined #ruby
samflores has joined #ruby
<reactormonk> Hanmac: I think the ruby is new enough, currently reinstalling the gem
k0m has joined #ruby
johnlcox has quit [Ping timeout: 240 seconds]
johnlcox_ is now known as johnlcox
Bosma has quit [Ping timeout: 272 seconds]
juarlex has quit [Read error: Connection reset by peer]
akafurious has joined #ruby
akafurious has quit [Max SendQ exceeded]
Bosma has joined #ruby
niklasb has quit [Quit: WeeChat 0.3.8]
akafurious has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
JC_SoCal_ has joined #ruby
GenghisKen has quit [Ping timeout: 264 seconds]
a_a_g has quit [Quit: Leaving.]
macmartine has quit [Quit: Computer has gone to sleep.]
berserkr has quit [Quit: Leaving.]
eldariof has quit [Ping timeout: 240 seconds]
eldar has joined #ruby
niklasb has joined #ruby
elaptics is now known as elaptics`away
lggr has quit [Ping timeout: 246 seconds]
sendoushi has joined #ruby
Maniacal has quit [Ping timeout: 260 seconds]
fyolnish has quit [Remote host closed the connection]
mrdodo has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
Dreamer3 has joined #ruby
gaahrdner has joined #ruby
dnyy__ has joined #ruby
macmartine has joined #ruby
swarley has joined #ruby
mfridh_ is now known as mfridh
Maniacal has joined #ruby
fcoury_ has joined #ruby
specialGuest1 has joined #ruby
jrist is now known as jrist-afk
diegoviola has joined #ruby
timonv has joined #ruby
<rippa> iz dat sum mayo
<rippa> fukken saved
haxrbyte has quit [Ping timeout: 260 seconds]
burgestrand has joined #ruby
Juul has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<davidcelis> REAL
<davidcelis> MAYONNAISE
specialGuest has quit [Ping timeout: 260 seconds]
k0m has quit [Quit: Computer has gone to sleep.]
GoGoGarrett has joined #ruby
<Paradox> mayo
<Paradox> nnaise
<davidcelis> DYNO-MIIITE
<davidcelis> MAYO-NNAAAAISE
philcrissman has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 268 seconds]
kaleido_ is now known as kaleido
mwilson` has quit [Excess Flood]
GenghisKen has joined #ruby
mwilson` has joined #ruby
lggr has joined #ruby
mercwithamouth has quit [Ping timeout: 260 seconds]
NimeshNeema has joined #ruby
CodeFriar has joined #ruby
thunderstrike has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Markvilla has quit [Quit: Computer has gone to sleep.]
kpshek has quit []
jgrevich_ has joined #ruby
bluOxigen has joined #ruby
burgestrand has quit [Ping timeout: 252 seconds]
kpshek has joined #ruby
jgrevich has quit [Ping timeout: 252 seconds]
jgrevich_ is now known as jgrevich
Nisstyre-laptop has joined #ruby
cakehero has joined #ruby
verto is now known as verto|off
cool has joined #ruby
lectrick has joined #ruby
h4mz1d has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
coyo has quit [Changing host]
coyo has joined #ruby
kn330 has quit [Excess Flood]
swarley has quit [Ping timeout: 260 seconds]
rjsamson has quit [Remote host closed the connection]
rcsheets has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
kn330 has joined #ruby
Dr4g_ has joined #ruby
the_jeebster has quit [Ping timeout: 245 seconds]
davidboy has joined #ruby
Nisstyre-laptop has quit [Read error: Connection reset by peer]
the_jeebster has joined #ruby
rjsamson has joined #ruby
chussenot has quit [Quit: chussenot]
patricksroberts has joined #ruby
pricees has joined #ruby
lggr has joined #ruby
AlbireoX has quit [Remote host closed the connection]
vectorshelve has quit [Quit: Page closed]
ltsstar has joined #ruby
mwilson` has quit [Excess Flood]
mwilson` has joined #ruby
ahuman_ is now known as ahuman
rjsamson has quit [Ping timeout: 252 seconds]
Nisstyre-laptop has joined #ruby
naquad has quit [Ping timeout: 245 seconds]
machty has quit [Read error: Connection reset by peer]
eldariof has joined #ruby
CoverSli1e is now known as CoverSlide
machty has joined #ruby
jkary has joined #ruby
zommi has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 246 seconds]
cout has joined #ruby
<amacgregor_osx> shevy: still around ?
AlbireoX has joined #ruby
eldar has quit [Ping timeout: 268 seconds]
kvirani has quit [Read error: Connection reset by peer]
kvirani_ has joined #ruby
<amacgregor_osx> http://pastie.org/4715448 -- parent class
<shevy> amacgregor_osx y
<amacgregor_osx> http://pastie.org/4715452 --- child class
<shevy> amacgregor_osx and where do you use super
<amacgregor_osx> I'm not
kvirani has joined #ruby
kvirani_ has quit [Read error: Connection reset by peer]
Iszak_Laptop has joined #ruby
lggr has joined #ruby
akafurious has left #ruby ["Leaving"]
octarine has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
asklov has joined #ruby
<shevy> amacgregor_osx, http://pastie.org/4715469
stephenjudkins has joined #ruby
<shevy> use super man
xnm has joined #ruby
<shevy> test this script by removing super, and putting it back in again
Takehiro has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
Agis__ has quit [Quit: Agis__]
bbttxu has joined #ruby
gfontenot has joined #ruby
mercwithamouth has joined #ruby
machty has quit [Quit: machty]
<amacgregor_osx> ok so I added the def initialized to the child class
schwap has joined #ruby
Dreamer3 has joined #ruby
<amacgregor_osx> but still doesn't working
Takehiro has joined #ruby
Takehiro has quit [Remote host closed the connection]
<amacgregor_osx> if I do scrapper = Scrappy::Hnews.new
<amacgregor_osx> scrapper.instance_variables
<amacgregor_osx> I don't get anything back
xorgnak has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
<Hanmac> amacgregor_osx so what does scrapper.instance_variables return? "[]" ?
crazed has left #ruby [#ruby]
<amacgregor_osx> yah
johnlcox has quit [Quit: Computer has gone to sleep.]
wizard_2 has joined #ruby
havenn has quit [Ping timeout: 252 seconds]
ij has joined #ruby
kpshek has quit []
cakehero has joined #ruby
johnlcox has joined #ruby
ctevie has joined #ruby
tyfighter has quit [Quit: tyfighter]
<Hanmac> it works for me oO
wmoxam has joined #ruby
<Muz> 19:56 < amacgregor_osx> ok so I added the def initialized to the child class # Sure you don't mean "initialize"?
samflores is now known as samflores|away
wizard_2_ has joined #ruby
wizard_2 has quit [Ping timeout: 245 seconds]
wizard_2_ has quit [Client Quit]
<amacgregor_osx> Muz, sorry I meant initialize
<Hanmac> amacgregor_osx your both pasties works for me ... are you sure the path you require is correct?
<amacgregor_osx> ruby-1.9.3-head :011 > hnews.instance_variables
<amacgregor_osx> => [:@results]
<amacgregor_osx> ok sorry I am getting the instance_variable back
<amacgregor_osx> but doing hnews.results
maletor has quit [Quit: Computer has gone to sleep.]
jrist-afk is now known as jrist
<amacgregor_osx> only gets me NoMethodError: undefined method `results' for #<Scrappy::Hnews:0x0000010292f7b8 @results=[]>
<Muz> HAve you included an attribute accessor? (Or reader for that matter.)
peregrine81 has quit [Quit: Computer sleeping.]
<amacgregor_osx> hmm I haven't
a_a_g has joined #ruby
<Muz> Whilst you can have attributes on objects, you won't be able to access them from the "outside" without what's effectively a "getter".
Markvilla has joined #ruby
<amacgregor_osx> make sense, should I put that on the parent class or on the child ?
peregrine81 has joined #ruby
<Muz> Either, put it on the child if you only want them to be readable in such a manner on the child, or on the parent if you want that accessibility on both the parent and child.
RichieEvan has joined #ruby
sambio has quit [Ping timeout: 248 seconds]
GenghisKen has quit [Ping timeout: 244 seconds]
bigdc1 has joined #ruby
ckrailo has joined #ruby
GenghisKen has joined #ruby
GenghisKen has quit [Changing host]
thatRD has joined #ruby
GenghisKen has joined #ruby
macan has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
kenneth has joined #ruby
<kenneth> hey, so i have a question about launching a sub-process in ruby
manizzle has joined #ruby
bigmeow has joined #ruby
<kenneth> i'd like to launch a command (with bash), get its its status code, and its stdout & stderr
<kenneth> it seems like i can do the first part with system() and the second with IO.popen
<kenneth> but how would i do both?
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
mvangala_ has joined #ruby
<amacgregor_osx> Muz thank you
<amacgregor_osx> that worked
<amacgregor_osx> now the only problem that I have
<amacgregor_osx> is that when my child class calls the parent_result function it should be setting the values for the @results
<amacgregor_osx> which it doesn't seem to be doing
<amacgregor_osx> any insights of what I'm doing wrong in this case?
reset has joined #ruby
<amacgregor_osx> http://pastie.org/4715448 http://pastie.org/4715452 parent and child classes in case you didn't saw them
<kenneth> Muz: yes i'm looking at that too, it doesn't say anything about getting the status code
sonkei has quit [Quit: Computer has gone to sleep.]
verto|off is now known as verto
<kenneth> oh wait
maletor has joined #ruby
thatRD has quit [Quit: thatRD]
manizzle has quit [Remote host closed the connection]
<kenneth> the thread
<kenneth> got it
<kenneth> neat thanks Muz
beneggett has joined #ruby
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jkary has quit [Remote host closed the connection]
14WAAEVCM has joined #ruby
manizzle has joined #ruby
rjsamson has joined #ruby
SQLStud has joined #ruby
jkary has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
thatRD has joined #ruby
lggr has joined #ruby
macan has joined #ruby
senny has joined #ruby
tommyvyo has joined #ruby
Guest81709 has quit [Quit: Guest81709]
<shevy> amacgregor_osx can you use one pastie, and put both classes into it?
<shevy> and ideally write the problem in one sentence in that pastie. it is much easier to look at just one URL
<shevy> amacgregor_osx you dont like super much, do you? ;)
urbann has quit [Remote host closed the connection]
ephemerian has joined #ruby
Takehiro has joined #ruby
RichieEvan has quit [Read error: Connection reset by peer]
tomsthumb has quit [Quit: Leaving.]
savage- has quit [Ping timeout: 260 seconds]
bigdc1 has quit []
specialGuest1 has quit [Quit: WeeChat 0.3.8]
xclite has quit [Remote host closed the connection]
specialGuest has joined #ruby
xclite has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
RichieEvan has joined #ruby
Xeago has joined #ruby
b0oh has joined #ruby
tyfighter has joined #ruby
<amacgregor_osx> exit
Nathandim has quit [Remote host closed the connection]
<amacgregor_osx> lol wrong window
savage- has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
imami|afk is now known as banseljaj
Takehiro has quit [Ping timeout: 246 seconds]
Nathandim has joined #ruby
<amacgregor_osx> shevy: :) I am using super both classes on single file
araujo has quit [Read error: Connection reset by peer]
sonkei has joined #ruby
johnlcox_ has joined #ruby
<shevy> btw
<shevy> if(!title.empty?)
<shevy> vs
Tearan has quit [Quit: Sleepy Badger....]
johnlcox has quit [Ping timeout: 246 seconds]
johnlcox_ is now known as johnlcox
<shevy> unless title.empty?
<amacgregor_osx> yeah thats nicer syntax :)
<shevy> are you sure that entry.link.title is not empty
<shevy> use pp to check
lggr has joined #ruby
<amacgregor_osx> sure
<shevy> also
<Hanmac> about:"def initialize super end" this is not needed ... we are not C++
<shevy> attr_accessor :results and attr_reader :results
<shevy> that is superfluous amacgregor_osx
<amacgregor_osx> what do you mean ?
snearch has joined #ruby
b0oh has quit []
<shevy> amacgregor_osx what is attr_reader doing
troessner has quit [Quit: Leaving]
thone_ has joined #ruby
<shevy> come on man
b0oh has joined #ruby
<shevy> work your brain a little bit faster
<shevy> attr_reader :results
<shevy> what is that
bluOxigen has quit [Ping timeout: 240 seconds]
<shevy> you use it in your code!
samflores|away is now known as samflores
<shevy> ok whatever, time is up, you lost. attr_accessor combines attr_reader and attr_writer
<shevy> so if you use it already, there is no need to use an additional attr_reader
<amacgregor_osx> lol
<amacgregor_osx> sorry
<amacgregor_osx> back
<amacgregor_osx> yeah
<amacgregor_osx> hahaha
<shevy> your child class probably does not append to @results
<amacgregor_osx> trying to debug my code right now, I'm not getting any links back
h4mz1d has joined #ruby
thone has quit [Ping timeout: 252 seconds]
araujo has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
araujo has quit [Changing host]
araujo has joined #ruby
phinfonet has joined #ruby
naquad has joined #ruby
reset has quit [Quit: Leaving...]
peregrine81 has quit [Quit: Goodbye.]
stephenjudkins has quit [Quit: stephenjudkins]
sailias has quit [Quit: Leaving.]
lggr has joined #ruby
<amacgregor_osx> lol I'm an idiot
<davidcelis> yeah...
<shevy> amacgregor_osx see, one recipe against that is to try and keep everything as simple as possible all the time
<shevy> then stuff like attr_accessor :results and attr_reader :results would never happen
<shevy> and perhaps you come to a point where you won't even need any of these anymore, either!
<amacgregor_osx> very true
Juul has quit [Ping timeout: 244 seconds]
<shevy> ld: cannot find -lcrypt
<shevy> :(
<matti> shevy: No secrets for you
<shevy> matti openssl is one of the packages I hate the most
<matti> Haha
eldar has joined #ruby
<shevy> it starts that it insists on a "config" script rather than a "configure" script
SeanTAllen has joined #ruby
<m3pow> shevy
<m3pow> Hanmac is great
<m3pow> thanks for trying to help me out with the ri problem
sebastorama has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 264 seconds]
<shevy> hehe
<shevy> yeah
<shevy> he knows debian inside out
<amacgregor_osx> shevy, Muz: Thanks for helping me out
<shevy> I realized I was too lazy to master dpkg and apt-get
eldariof has quit [Ping timeout: 264 seconds]
<shevy> so the solution was to write a package manager in ruby
<Muz> Now you have 2323432345542322 problems.
<Muz> </jwz>
<otters> oh man, are we having a unix tools hatred circlejerk
a_a_g has quit [Quit: Leaving.]
<otters> because I've been trying to build leksah for over 24 hours
GoldenCider has joined #ruby
<shevy> Muz oh no, this is THE package manager. it'll generate recipes, formulas etc... for all the other package managers as well
<Muz> Now you have 2323432345542323 problems.
<Muz> ;)
<shevy> it is the mother of all package managers
<shevy> otters, what is leksah
<shevy> sounds a bit like salt in german haha
<otters> it's a haskell IDE
<otters> it requires gtk, glib, and about 900,000 other libraries
<otters> it also requires a gtk subpackage that you have to compile an entire build system for
<GoldenCider> can someone tell me how I can get the path hash out of this hash variable?
<GoldenCider> => {"hash"=>"6a9c386e3355789d086b8aa04e072e17", "thumb_exists"=>false, "bytes"=>0, "path"=>"/", "is_dir"=>true, "size"=>"0 bytes", "root"=>"app_folder", "contents"=>[{"revision"=>4, "rev"=>"40a2e836a", "thumb_exists"=>false, "bytes"=>5, "modified"=>"Thu, 13 Sep 2012 18:43:49 +0000", "client_mtime"=>"Thu, 13 Sep 2012 18:43:48 +0000", "path"=>"/blah3.txt", "is_dir"=>false, "icon"=>"page_white_text", "root"=>"dropbox", "mime_type"=>"text/plain", "size"=>
<GoldenCider> bytes"}, {"revision"=>5, "rev"=>"50a2e836a", "thumb_exists"=>false, "bytes"=>15, "modified"=>"Thu, 13 Sep 2012 18:43:56 +0000", "client_mtime"=>"Thu, 13 Sep 2012 18:43:56 +0000", "path"=>"/blah4.txt", "is_dir"=>false, "icon"=>"page_white_text", "root"=>"dropbox", "mime_type"=>"text/plain", "size"=>"15 bytes"}, {"revision"=>6, "rev"=>"60a2e836a", "thumb_exists"=>false, "bytes"=>11, "modified"=>"Thu, 13 Sep 2012 18:44:02 +0000", "client_mtime"=>"Thu, 13
<GoldenCider> Sep 2012 18:44:02 +0000", "path"=>"/blah5.txt", "is_dir"=>false, "icon"=>"page_white_text", "root"=>"dropbox", "mime_type"=>"text/plain", "size"=>"11 bytes"}
atmosx has joined #ruby
<shevy> MAN
<shevy> KILL GOLDENCIDER
asv has quit [Ping timeout: 246 seconds]
<otters> var["hash"]?
<otters> ...
<GoldenCider> but i need to iterate through them
<Muz> GoldenCider: pastie.org for large pastes.
<shevy> no you need to die
<shevy> die GoldenCider die die die
<otters> iterate through what?
<otters> /ignore shevy
<shevy> otters I can still see you!
<otters> yep
<GoldenCider> through this json object
specialGuest has quit [Ping timeout: 244 seconds]
<GoldenCider> I want to get all the paths
<shevy> looks like a hash
b0oh has quit [Quit: Leaving.]
<otters> how many paths are there?
<otters> I see only one
<GoldenCider> there are 3 paths
<shevy> there are many paths to rome
<Mon_Ouie> It is, it's not a JSON object
<otters> o
<Muz> obj['contents'].each { |i| i['path'] }
mucker has quit [Quit: leaving]
<otters> var["contents"].map{|x|x["path"]}
skrewler has quit [Quit: skrewler]
<GoldenCider> is content the actual name that I use?
<GoldenCider> contents
<otters> probably
<otters> you might want to look at the hash structure to see though
b0oh has joined #ruby
b0oh has quit [Client Quit]
k0m has joined #ruby
a_a_g has joined #ruby
fermion has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
senny has quit [Remote host closed the connection]
b0oh has joined #ruby
Criztian has joined #ruby
b0oh has quit [Client Quit]
<GoldenCider> ooh thanks i got it
<GoldenCider> listdata['contents'].each do |i| i['path']
<GoldenCider> puts i['path']
<GoldenCider> end
fir_ed has joined #ruby
phantasm66 has joined #ruby
rudyl313 has joined #ruby
reset has joined #ruby
niklasb_ has joined #ruby
verto is now known as verto|off
joofsh has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
nanderoo has quit [Quit: Leaving.]
rakl has joined #ruby
<joofsh> I'm learning ruby for the first time and am going through pickaxe. This example (directly from the book) isn't working for me. Could anyone please advise me on what i'm doing wrong? This example is on how to use an ampersand with a method paramater to create a Proc. Thank you https://gist.github.com/3717218
lggr has joined #ruby
kpshek has joined #ruby
rubious has quit [Quit: Leaving...]
eldar has quit []
<Mon_Ouie> joofsh: You made a typo. @bock -> @block
<joofsh> aww man
<joofsh> thank you
niklasb_ has quit [Read error: Connection reset by peer]
<joofsh> sorry :*(
h4mz1d has quit [Ping timeout: 252 seconds]
niklasb has joined #ruby
<joofsh> it kept saying the error was in the get_tax method, so I kept looking over that, and not the initialize
<shevy> joofsh \o/ always remember the first time with ruby
sambio has joined #ruby
<shevy> yeah, some errors can be dumb
<shevy> def intialize
<shevy> where is the error!!!
<joofsh> lol
a_a_g has quit [Quit: Leaving.]
ilyam has joined #ruby
krawchyk has quit [Remote host closed the connection]
uris has quit [Ping timeout: 246 seconds]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
h4mz1d has joined #ruby
reset has quit [Quit: Leaving...]
sailias has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
timonv has quit [Remote host closed the connection]
s0ber has quit [Read error: Connection reset by peer]
asobrasil has left #ruby [#ruby]
evilsushi has quit [Quit: Lost terminal]
lggr has joined #ruby
s0ber has joined #ruby
dmiller has joined #ruby
sailias has quit [Quit: Leaving.]
Synthead has joined #ruby
chessguy has joined #ruby
samflores is now known as samflores|away
sonkei has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
samflores|away is now known as samflores
Juul has joined #ruby
stephenjudkins has joined #ruby
iamjarvo has quit [Ping timeout: 260 seconds]
Takehiro has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
linoj has quit [Ping timeout: 240 seconds]
zeromodulus has quit [Remote host closed the connection]
emmanuelux has joined #ruby
fmcgeough_ has joined #ruby
fmcgeough has quit [Read error: Connection reset by peer]
fmcgeough_ is now known as fmcgeough
lggr has quit [Ping timeout: 240 seconds]
zommi has quit [Quit: Leaving.]
Jake232 has joined #ruby
aespinosa_ch has joined #ruby
rippa has quit [Ping timeout: 248 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
jnoob22 has joined #ruby
smw_ has joined #ruby
aespinosa_ch has quit [Quit: Bye]
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<smw_> hi all, I have some code: def redis; @redis ||= Redis.connect(options); end. What does this do? Specifically, the ||=. But why is the "def" needed too?
<smw_> is it a function?
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
<davidcelis> it's a method definition
Axsuul has joined #ruby
Axsuul has quit [Excess Flood]
<davidcelis> @redis ||= Redis.connect(options) means, if @redis is already set to something that isn't falsey (nil or false), then set it to Redis.connect(options)
<davidcelis> otherwise it's left alone
sonkei has joined #ruby
Axsuul has joined #ruby
bananagram has joined #ruby
<smw_> davidcelis, so if someone calls "module.redis", it will run @redis ||= Redis.connect(options) if redis is not false?
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
seich- is now known as seich
xxi is now known as ixx
<blazes816> if will run Redis.connection(options) of @redis is falsy
LouisGB has quit [Ping timeout: 255 seconds]
<blazes816> basically, it let's you use 'redis' instead of @redis, and not have to worry about if it's been initialized or not
<smw_> makes sense
justinmcp has joined #ruby
<smw_> what does that do?
robustus has quit [Quit: ZNC - http://znc.in]
<blazes816> creates a method called options= that takes a value (most likely a hash), and sets @options email to it
<blazes816> that let's you do "foobar.options = {:settings => 'value'}
<blazes816> "
nari has joined #ruby
lggr has joined #ruby
mneorr has joined #ruby
nico103 has joined #ruby
<matti> Hey Ruby folks
uris has joined #ruby
<matti> How do you escape from nested blocks?
<nico103> so, I tried to install slideshow with gem: gem install slideshow
<nico103> but there's no slideshow command anywhere
imbric has joined #ruby
<matti> I know that return will yield LocalJumpError
<nico103> how do I run it?
Drewch has quit [Excess Flood]
kenneth has quit [Quit: kenneth]
<matti> nico103: ?
<nico103> matti: I'm not responding to you
<matti> I know.
KTMBoID has joined #ruby
KTMBoID has quit [Client Quit]
kenneth has joined #ruby
<matti> I am puzzled by "how do I run it"
specialGuest has joined #ruby
adeponte has joined #ruby
havenn has joined #ruby
nwest has quit [Quit: Computer has gone to sleep.]
<nico103> well, I run 'slideshow' on my commandline and nothing
fmcgeough has quit [Quit: fmcgeough]
<nico103> it's not in /usr/bin
<nico103> find /usr -name \*slideshow\* finds nothing
<smw_> blazes816, thanks, one last question. Lets say I wanted to set redis to false so it would reset. Any way to do that from outside the module. Break the "protected" keyword
<samflores> gems do not put binaries at /usr/bin
<nico103> in ~/.gem there's a spec for it
chessguy has quit [Remote host closed the connection]
<nico103> but it's not executable
Drewch has joined #ruby
<samflores> are you using rbenv/rvm?
<nico103> samflores: aha, so, where?
<smw_> blazes816, it looks like I need to fork this gem to get what I want done, but I just thought I would ask anyways :-)
<blazes816> smw_: you could write a def redis= method
asteve has quit []
<blazes816> then, module.redis = false
<samflores> run `gem env` and look at "EXECUTABLE DIRECTORY"
<nico103> samflores: assume I know nothing about ruby -- I'm just trying to run slideshow; I don't know what rbenv/rvm are
chessguy has joined #ruby
Eiam has joined #ruby
<smw_> blazes816, that would require me modifying this file anyways, right?
<nico103> /var!
<smw_> blazes816, so I will just fork it, thanks!
<nico103> really?! executables in /var?!
<smw_> blazes816, your help is saved me a great deal of time :-)
<samflores> WHAT?
<nico103> I guess it has to be so given the gem model
<nico103> but I do find that strange
<nico103> - EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
<blazes816> smw_: yeah, but if you don't want to modify the the file you could do something like module.instance_eval do; @redis = nil; end
<samflores> i guess your systems is weird ¬¬
<nico103> thanks!
<blazes816> I gave you the 'clean' way
<nico103> it's Ubuntu
<smw_> blazes816, thanks, I will keep that in mind. I think I want to fork anyways to make use of replication (send writes to master, reads to slave)
jasonLaster has quit [Remote host closed the connection]
<blazes816> nice man; good luck!
jasonLaster has joined #ruby
<shevy> ohhh ubuntu
<shevy> they hate ruby
<shevy> and especially gems
<nico103> I have no love for Ubuntu
<shevy> - EXECUTABLE DIRECTORY: /pkg/Ruby/1.8.7p370/bin
<shevy> that's my executable dir
<shevy> /var/lib/gems/1.8/bin is a violation of the FHS
<samflores> neither do I
<shevy> (actually, it is /System/Executables, but I use symlinks to switch between versioned directories)
<Hanmac> my EXECUTABLE DIRECTORY: /usr/local/bin
<joofsh> if not ubunut, what version of linux do you prefeR?
<joofsh> ubuntu** god i suck at typing
<nico103> using /var for executables is so... yeah, it works but... it's... wrong (unless we're talking, maybe, about dynamically-generated executables, but gems aren't that)
<nico103> joofsh: odd question, that
<shevy> joofsh my favourite one was gobolinux until it died. these days I am stuck with LFS, compiling from source, always trying to see that programs can be installed in an app-dirs like fashion
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
<nico103> joofsh: I'd think the question should be "what OS?"
<drPoggs> It may be a violation of a standard, but if it works, that's what many people care about
<nico103> :)
lggr has quit [Ping timeout: 244 seconds]
<nico103> but, I didn't come here to get into a flamewar
<shevy> yeah but
tommyvyo has quit [Quit: Computer has gone to sleep.]
<shevy> debian changes things
<nico103> I came here to get an answer to my question, I got it, and I thank you much
<shevy> they should ask them :)
<joofsh> nico103: why odd? i'm curious, i use ubuntu, but i'd switch if there was a drastically better alternative
<samflores> :D
<Hanmac> nico103: do "apt-get install ruby1.9.1-full" & "update-alternatives --config ruby" & "update-alternatives --config gem" & reinstall your gems
jmeeuwen has joined #ruby
<shevy> we are lucky to have Hanmac
<nico103> joofsh: odd because you assume that Linux is what one ought to run
<nico103> ;)
<shevy> "You can install both Ruby 1.8.7 and 1.9.3 alongside each other and switch between them effortlessly."
<nico103> hanmac: ah, thanks
<shevy> havenn, yeah. that is what gobolinux did 10 years ago too
<shevy> debian seems to use /etc/alternatives as their symlink-repo
<joofsh> nico103: haha, I certainly don't assume it, but you said you had no love for ubuntu specifically, rather than linux more generally. Which iimplied there was a version you did like
<havenn> shevy: Debian Ruby has been shabby, but I hope better soon!
<nico103> I have no love for Linux
maxmande1s is now known as maxmanders
<nico103> ;)
<joofsh> okay, there we go :)
lggr has joined #ruby
imbric has quit [Quit: imbric]
chessguy has quit [Remote host closed the connection]
<shevy> nico103 linux is not so bad
pdtpatrick has quit [Ping timeout: 246 seconds]
<havenn> posix is lovely.
<nico103> sure, not so
<shevy> you need to use the good bits, and kill the idiots who make things worse
<nico103> POSIX has some ugly corners, but yeah
<nico103> I'm a Solaris kinda guy
jasonLaster has quit [Ping timeout: 260 seconds]
rakunHo has joined #ruby
<nico103> but I love some aspects of Windows (SIDs)
<nico103> shevy: you said it
<shevy> does ruby even work on solaris?
<shevy> :D
rubious has joined #ruby
chessguy has joined #ruby
<nico103> har, sure
<nico103> and there you can even use DTrace on it
tarwich1 has joined #ruby
<nico103> while I'm here, and to get back on topic...
<nico103> what's the deal with Ruby and Unicode nowadays?
<nico103> still a disaster?
LeandroSales has joined #ruby
<Mon_Ouie> Not a disaster since 1.9
<nico103> (to be fair, Unicode is really hard to handle well in any language, and some other HLLs do a very poor job of it, like, say, ECMAScript)
<nico103> Mon_Ouie: oh? what's the deal with it now?
<nico103> I recall JRuby handled it properly from day one
notbrent has joined #ruby
LeandroSales has left #ruby [#ruby]
<Mon_Ouie> Well, it's just supported transparently. Except for combined characters/normalizations that aren't there AFAIK.
pdtpatrick has joined #ruby
<nico103> but IIRC Ruby encouraged mutating strings, which is one of those things that's hard to do efficiently with Unicode
<nico103> well, most of the time normalization is a non-issue
<nico103> sometimes it matters greatly
<maxmanders> New to Ruby, and OSX - having trouble installing the ruby-shadow gem. Suspecting I'm missing some devel libs but not sure how to proceed https://gist.github.com/3717602
hadees has quit [Quit: hadees]
<maxmanders> Any pointers welcome - can't seem to find libshadow or libshadow-devel via brew - scouring Google just now...
mark_locklear has quit [Quit: Leaving]
<nico103> Mon_Ouie: like, since most OSes/terminals produce pre-composed Unicode in close to NFC form, it mostly doesn't matter, but then there's HFS+ -- HFS+ decomposes to NFD on create
geekbri has quit [Remote host closed the connection]
Juul has quit [Ping timeout: 260 seconds]
<nico103> so on OS X, if you use non-ASCII Unicode in filenames and you handle directory listings in your app then you'll want normalization-aware code
<nico103> ok, thanks all
nico103 has left #ruby [#ruby]
<havenn> maxmanders: Have you installed Xcode / Command Line Tools, Homebrew, etc?
snearch has quit [Quit: Verlassend]
<havenn> maxmanders: nevermind, you said brew
<Mon_Ouie> maxmanders: Have you searched for just shadow?
<maxmanders> havenn: yeah - all installed.
<havenn> maxmanders: Have you done: gem install ruby-shadow
haxrbyte has joined #ruby
<maxmanders> havenn: noep - nothing for that
<havenn> maxmanders: Gems get installed by gem, not brew. >.>
<maxmanders> havenn: yeah - gem install ruby-shadow is what is giving me the errors - and my hunch (from Linux work) is that some equiv of libshadow is missing that is needed to build against
lggr has quit [Ping timeout: 244 seconds]
<maxmanders> https://gist.github.com/3717602 shows the command line and errors
<havenn> maxmanders: Ahh, gotcha - I'm slow on the uptake today.
justinmcp has quit [Remote host closed the connection]
<maxmanders> havenn: hehe no worries - me too!
LouisGB has joined #ruby
Tearan has joined #ruby
timonv has joined #ruby
Iszak_Laptop has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
clj_newb has joined #ruby
niklasb has quit [Quit: WeeChat 0.3.8]
joephelius has quit [Quit: WeeChat 0.3.8]
mengu has joined #ruby
GoldenCider has quit [Quit: GoldenCider]
macan has quit [Read error: Connection reset by peer]
stephenjudkins has quit [Quit: stephenjudkins]
k0m has quit [Quit: Computer has gone to sleep.]
<havenn> maxmanders: Looks like libshadow gem doesn't work with OS X, since OS X doesn't have shadow.h: https://github.com/railsmachine/libshadow#requirements
Adran is now known as Varooom
Varooom is now known as 18VAA6QCQ
18VAA6QCQ is now known as Adran
<joofsh> linux wins again!
gaahrdner has quit [Remote host closed the connection]
hadees has joined #ruby
<maxmanders> Well this is all because I'm using Chef - which would suggest that I can't use passwords with the Chef user resource if my Chef workstation if on OSX - I'll prod more in the #chef channel
cantonic has quit [Quit: cantonic]
lggr has joined #ruby
<maxmanders> joofsh: fwiw I'm also a long time Linux user ;-) - I'll fire up my VM
ngoldman has quit [Remote host closed the connection]
<Hanmac> maxmanders: hm, change: have_library("shadow" to have_library("crypt"
<joofsh> :)
_marvin_ has joined #ruby
<maxmanders> Hanmac: I'm afraid I'll need the baby steps - noob - change it where?
timonv has quit [Remote host closed the connection]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
phinfonet has quit [Quit: Linkinus - http://linkinus.com]
stephenjudkins has joined #ruby
nari has quit [Ping timeout: 252 seconds]
bricker88 has joined #ruby
robbyoconnor has joined #ruby
<maxmanders> Hanmac: I gotcha - I'll give it a go - just a sec...
jnoob22 has quit [Quit: Leaving]
joofsh has quit [Ping timeout: 245 seconds]
poeks has quit [Quit: poeks]
snorkdude has joined #ruby
carloslopes has quit [Quit: Leaving.]
<bricker88> What would be the proper name for these modules? Validations::ContentValidations, Validations::GlobalValidations, etc? Validations is just for the namespace, and ContentValidations would be a module getting mixed into several classes. Should it be Validations::Content? Validations::ContentValidation? Am I way over-thinking this?
<maxmanders> Hanmac: sudo gem install crypt (succeeeded)... then ruby extconf.rb shows among other things checking for getspent() in -lcrypt... no
jkary has quit [Quit: Leaving.]
<maxmanders> So looks like -lcrypt is as bad as -lshadow in this case
<bricker88> >> __FILE__
iamjarvo has joined #ruby
<Hanmac> :/
<Mon_Ouie> The bot isn't here. Anyway, it would say "__eval__", nothing useful.
<bricker88> oh, I was just curious
<davidcelis> wheres bot
<bricker88> on break
<Hanmac> <<
<davidcelis> i'll be your bot, paste ruby code
kvirani has quit [Remote host closed the connection]
Takehiro has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
lggr has joined #ruby
<bricker88> davidcelis:
<bricker88> oops
<bricker88> um
<bricker88> hi
<davidcelis> NameError: undefined local variable or method `hi' for main:Object
im0b has joined #ruby
cj3kim has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
cj3kim has quit [Changing host]
cj3kim has joined #ruby
samflores is now known as samflores|away
haxrbyte_ has joined #ruby
<shevy> maxmanders haha I broke my computer too... can't find -lcrypt... even though a libcrypt.so is in my /usr/lib ...
Bosox20051 has quit [Quit: Leaving]
<maxmanders> shevy: well if I get anywhere I'll give you a shout... learning new things is cool - but frustrating at times :-P
internet_user has quit [Remote host closed the connection]
<shevy> I think it's wasting a lot of time :(
machty has joined #ruby
<Drewch> is there a way to exclude transitive dependencies in a gem file?
jhowarth has joined #ruby
<maxmanders> Even editing extconf.rb to swap shadow with crypt still leaves dependency checks later in the file for Shadow:: modules - I don't think shadow and crypt have the same API
<shevy> Drewch hmm good question... I would say other than changing the .gemspec... there is not
nari has joined #ruby
haxrbyte has quit [Ping timeout: 260 seconds]
joshman_ has quit [Read error: Operation timed out]
sr___ has joined #ruby
samflores|away has quit [Quit: Leaving...]
lggr has quit [Ping timeout: 244 seconds]
luxurymode has quit [Quit: Computer has gone to sleep.]
fixl has joined #ruby
rakunHo has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
TheLZA has joined #ruby
TheLZA has quit [Excess Flood]
Foxandxss has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
sendoushi has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
sendoushi has joined #ruby
phantasm66 has joined #ruby
phantasm66 has quit [Client Quit]
cakehero has quit [Quit: Computer has gone to sleep.]
<Drewch> thanks
williamcotton has quit [Ping timeout: 264 seconds]
mercwithamouth has joined #ruby
gfontenot has quit []
Xeago_ has quit [Remote host closed the connection]
tvw has joined #ruby
mark06 has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
<mark06> how do I access an attribute whose name is stored in a variable?
pricees has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
chrisja has quit [Quit: leaving]
NimeshNeema has quit []
<Mon_Ouie> See Object#send or #instance_variable_get
daniel_hinojosa has quit [Ping timeout: 248 seconds]
Jake232 has quit [Quit: Computer has gone to sleep.]
zz_chrismcg is now known as chrismcg
BrokenCog has quit [Quit: leaving]
mneorr has quit [Quit: Leaving.]
recycle has joined #ruby
h4mz1d has quit [Ping timeout: 260 seconds]
<mark06> cool, rdoc is broken http://pastie.org/pastes/4716378/text
ryanf has joined #ruby
recycle has quit [Read error: Connection reset by peer]
recycle_ has joined #ruby
cableray has joined #ruby
<mark06> besides, sounds overkill, I wanted something like obj."#{ok? :does : :doesnt}_do"
<Mon_Ouie> That's not over kill at all
GoGoGarrett has quit [Remote host closed the connection]
<cableray> for an rspec expect, is there a way to check if a value change by an absolute value?
sent-hil has joined #ruby
<Mon_Ouie> And in that case send is the appropriate one
daniel_hinojosa1 has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
<kenneth> is there a way to rename keys functionally in ruby for a hash?
<kenneth> say i want to map keys with &to_sym
mark06 has left #ruby [#ruby]
GoldenCider has joined #ruby
mark06 has joined #ruby
mark06 has left #ruby [#ruby]
jkary has joined #ruby
wmoxam has quit [Quit: leaving]
ltsstar has quit [Quit: ltsstar]
<Mon_Ouie> Functionnally?
<Mon_Ouie> I'd do it with old_hash.each_with_object({}) { … } — assuming I understand what you mean by that word
<cableray> kenneth: you mean programmatically, right?
reset has joined #ruby
recycle_ has quit [Remote host closed the connection]
<kenneth> well, functionally as in, functional programming
<R3dy_> where the heck is teh source code to hashdump, the one that runs when you are in meterpreter and just type 'hashdump'
<Mon_Ouie> So by returning a new hash?
<R3dy_> oops wrong room
<Mon_Ouie> Well, you can't build the new hash all at once anyway, you're going to need the side effects of Hash#[]=
mikepack has quit [Remote host closed the connection]
R3dy_ is now known as R3dy
<davidcelis> Hash[hash.map { |k, v| [k.to_sym, v] }]
havenn has quit [Read error: Connection reset by peer]
R3dy has quit [Changing host]
R3dy has joined #ruby
<davidcelis> ^ lol
<Mon_Ouie> Oh, true; though I don't like that it iterates twice
havenn has joined #ruby
getSetGoEtc has joined #ruby
tvw has quit [Ping timeout: 272 seconds]
<davidcelis> neither do i, hence my lol
<davidcelis> also kinda ug
<kenneth> something like hash.map_keys(&:to_sym)
tvw has joined #ruby
new_nick has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<atmosx> I can't remember the method… I'm getting paranoid.. then I wanna regexp on an array
<atmosx> err string
<atmosx> it's scrab?
<Mon_Ouie> grep?
<atmosx> scrub
<davidcelis> what?
<atmosx> hsit
<davidcelis> scan?
<atmosx> scan
<atmosx> a;sldkjfal;jsdf
<atmosx> !!! ty
<davidcelis> =~
<kenneth> davidcelis's code should work
<atmosx> yes =~ looks cooler and works better most of the times
lggr has quit [Ping timeout: 245 seconds]
<Mon_Ouie> scan and =~ are different
new_nick has quit [Remote host closed the connection]
<Mon_Ouie> scan iterates over all the matches, =~ only deals with the first one
recycle has joined #ruby
lggr has joined #ruby
shadoi has quit [Ping timeout: 260 seconds]
sent-hil has quit [Remote host closed the connection]
joshman_ has joined #ruby
<atmosx> ah thnx didn't knew
<davidcelis> hash.keys.each { |k| self[(k.to_sym rescue k) || k] = delete(k) }
joshman_ has quit [Client Quit]
<atmosx> I have an array which has the word 'title' in position.. sometimes 3rd others 4th
kuzushi has joined #ruby
<atmosx> how I extract it ? .. it's a group of arrays
tvw has quit [Ping timeout: 272 seconds]
chrismcg is now known as zz_chrismcg
<atmosx> I'm thinking of a way, iterating the content of the array until I match with =~ the keyword but… is there a more direct way?
<davidcelis> array[array.index('title')]
ejnahc_ has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
ejnahc has joined #ruby
stopbit has quit [Quit: Leaving]
chessguy has quit [Remote host closed the connection]
chessguy has joined #ruby
bbttxu has quit [Quit: bbttxu]
Juul has joined #ruby
clj_newb has quit [Quit: Changing server]
<Mon_Ouie> davidcelis: It isn't always allowed to add/delete new keys while iterating over an array
sendoushi has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 260 seconds]
<Mon_Ouie> (well add new* or delete old*)
nateberkopec has joined #ruby
GoHuyGo has joined #ruby
lggr has joined #ruby
shurizzle has joined #ruby
tvw has quit [Ping timeout: 260 seconds]
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
the_jeebster has quit [Quit: Leaving.]
rjsamson has quit [Remote host closed the connection]
xnm has quit [Ping timeout: 260 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
adeponte has quit [Remote host closed the connection]
kvirani has joined #ruby
explody has quit [Ping timeout: 252 seconds]
shadoi has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
Jake232 has joined #ruby
recycle has quit [Remote host closed the connection]
jason_lee1 has joined #ruby
fixl has quit [Ping timeout: 244 seconds]
Takehiro has joined #ruby
doomMonkey has quit [Ping timeout: 252 seconds]
cakehero has joined #ruby
[Neurotic] has joined #ruby
havenn has quit [Remote host closed the connection]
wang_ is now known as wang
reset_ has joined #ruby
awarner has quit [Remote host closed the connection]
jrist is now known as jrist-afk
reset has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
pu22l3r_ has joined #ruby
mercwithamouth has joined #ruby
<cj3kim> hi
Nathandim has quit [Remote host closed the connection]
pu22l3r_ has quit [Remote host closed the connection]
<cj3kim> if i set a class variable as a hash and call it later without setting cattr_accessor, why am I returned a array when I call the class variable on the Class?
<cj3kim> instead of a hash?
Takehiro has quit [Ping timeout: 246 seconds]
answer_42 has quit [Quit: WeeChat 0.3.8]
kpshek has quit []
haxrbyte has joined #ruby
pu22l3r has quit [Ping timeout: 252 seconds]
vitor-br has joined #ruby
<kenneth> can a module have variables?
<kenneth> for internal use
<kenneth> like globals, but only global to the module
justinmcp has joined #ruby
haxrbyte_ has quit [Ping timeout: 246 seconds]
banseljaj is now known as imami|afk
lggr has quit [Ping timeout: 252 seconds]
<Mon_Ouie> An instance variable on the module itself would have that effect
jason_lee1 has left #ruby [#ruby]
<Mon_Ouie> cj3kim: Well, it was set to be an array somewhere
ephemerian has quit [Ping timeout: 240 seconds]
chrishunt has quit [Ping timeout: 264 seconds]
Tref has joined #ruby
josh^ has joined #ruby
lggr has joined #ruby
specialGuest has quit [Ping timeout: 272 seconds]
Guedes0 has joined #ruby
SCommette has quit [Quit: SCommette]
bier has quit [Ping timeout: 252 seconds]
randym has joined #ruby
Russell^^ has quit [Quit: Russell^^]
sepp2k has quit [Read error: Connection reset by peer]
<rubious> Is there a way to insert variable values into a string wrapped in single quots?
<rubious> quotes*
hashpuppy has quit [Ping timeout: 255 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
<rubious> Like #{} would behave in double quotes?
SQLStud has quit [Quit: Leaving]
explody has joined #ruby
<Mon_Ouie> Just use double quotes if you need string interpolation
<Mon_Ouie> (You could use String#+, but use string interpolation)
johnlcox has quit [Quit: Computer has gone to sleep.]
GenghisKen has quit [Ping timeout: 248 seconds]
stkowski has quit [Quit: stkowski]
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
<rubious> Mon_Ouie: I'm interpolating into a string that contains single quotes inside of a string with double quotes. I was just hoping there was a cleaner way than just constructing each string individually and then concatenating.
<Mon_Ouie> There also are %-style strings
<Mon_Ouie> %{#{"this".capitalize} is magic!}
<rubious> Oh my god that's awesome
lggr has quit [Ping timeout: 252 seconds]
swarley has joined #ruby
monkegjinni has quit [Remote host closed the connection]
mmitchell has quit [Remote host closed the connection]
lggr has joined #ruby
mbk has quit [Ping timeout: 268 seconds]
_love_color_text has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Quit: Leaving...]
havenn has joined #ruby
bier has joined #ruby
maletor has quit [Ping timeout: 244 seconds]
kiyoura has joined #ruby
kenneth has quit [Read error: Connection reset by peer]
SeoxyS has joined #ruby
jjbohn has quit [Ping timeout: 245 seconds]
maletor has joined #ruby
jgarvey has quit [Quit: Leaving]
smw_ has quit [Remote host closed the connection]
Agis__ has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
Companion has quit [Ping timeout: 268 seconds]
wataken44 has quit [Remote host closed the connection]
jkary has quit [Quit: Leaving.]
uris has quit [Quit: leaving]
<atmosx> ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lectrick has quit [Quit: Page closed]
Goles has quit [Quit: Computer has gone to sleep.]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<davidcelis> atmosx: cool pipes bro
pu22l3r has joined #ruby
diegoviola has quit [Ping timeout: 260 seconds]
wataken44 has joined #ruby
luckyruby has quit [Remote host closed the connection]
adeponte has joined #ruby
johnlcox has joined #ruby
<swarley> YouTube: <Services Inception with Ruby by Dave McCrory> [|||||||||||||||||||||||||] - 100% liked this video. [ http://www.youtube.com/watch?v=7VXJQUnPz68 ]
<swarley> i like my pipes better
<swarley> YouTube: <Services Inception with Ruby by Dave McCrory> [|||||||||||||||||||||||||] - 100% liked this video. [ http://www.youtube.com/watch?v=7VXJQUnPz68 ]
<swarley> sorry, forgot the color
lggr has joined #ruby
<kiyoura> my pipes brings all the boys to the yard.
seanstickle has joined #ruby
love_color_text has joined #ruby
g_rotbart has joined #ruby
reset_ has quit [Quit: Linkinus - http://linkinus.com]
reset has joined #ruby
<swarley> and they're like, they're better than yours
<swarley> i can teach you, but i have to charge
iocor has quit [Quit: Computer has gone to sleep.]
doomMonkey has joined #ruby
johnlcox has quit [Ping timeout: 248 seconds]
pdtpatrick has quit [Quit: pdtpatrick]
jkary has joined #ruby
pdtpatrick has joined #ruby
love_color_text has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 248 seconds]
pdtpatrick has quit [Client Quit]
invisime has quit [Quit: Leaving.]
stepnem has quit [Ping timeout: 260 seconds]
<davidcelis> lmao if you think `command > file.txt` is called piping
davidcelis has quit [Quit: K-Lined.]
vjt has quit [Quit: reboot]
pdtpatrick has joined #ruby
stkowski has joined #ruby
pdtpatrick has quit [Client Quit]
lggr has joined #ruby
sneakyness_wk has quit [Quit: I have to return some VHS tapes]
thatRD has quit [Quit: thatRD]
nari has quit [Ping timeout: 268 seconds]
vjt has joined #ruby
hashpuppy has joined #ruby
Criztian has quit [Remote host closed the connection]
jrajav has joined #ruby
samflores has joined #ruby
sonkei has quit [Quit: Computer has gone to sleep.]
samflores has quit [Client Quit]
nateberkopec has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
Jake232 has quit [Quit: Computer has gone to sleep.]
Yomero has joined #ruby
pskosinski has quit [Read error: Connection reset by peer]
jjang has joined #ruby
Takehiro has joined #ruby
pskosinski has joined #ruby
lggr has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
eph3meral has joined #ruby
Synthead has quit [Quit: p33 ba115]
swarley has quit [Quit: Leaving]
swarley has joined #ruby
CodeFriar has quit [Quit: Leaving...]
Takehiro has quit [Ping timeout: 244 seconds]
dpk has quit [Quit: Asleep at the keyboard.]
sonkei has joined #ruby
tarwich1 has quit [Read error: Connection reset by peer]
mengu_ has joined #ruby
mengu_ has quit [Changing host]
mengu_ has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
tarwich has joined #ruby
LouisGB has quit [Ping timeout: 240 seconds]
mengu has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 244 seconds]
roadt has joined #ruby
xbayrockx has quit []
love_color_text has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
lggr has joined #ruby
luckyruby has joined #ruby
mengu_ has quit [Remote host closed the connection]
pskosinski has quit [Quit: http://www.redeclipse.net -- Fast-paced online FPS]
pskosinski has joined #ruby
davidcelis has joined #ruby
hashpuppy has quit [Quit: hashpuppy]
lggr has quit [Ping timeout: 260 seconds]
<fowl> jizz | davidcelis's face
<davidcelis> ಠ_ಠ
<bricker88> If I extend a module into another module, how can I get it to also extend into the child modules? Example: https://gist.github.com/3718692
hbpoison has joined #ruby
<fowl> lol thank god for funny languages using funny symbols that we can use as eyes
pu22l3r has quit [Remote host closed the connection]
jrajav has quit []
love_color_text has quit [Remote host closed the connection]
<fowl> >> %[|]%%%%%%%%%%%%%%%%%%%%*42
new_nick has joined #ruby
maxmmurphy has quit [Quit: maxmmurphy]
love_color_text has joined #ruby
new_nick has quit [Remote host closed the connection]
new_nick has joined #ruby
phelps has joined #ruby
new_nick has quit [Remote host closed the connection]
<phelps> How can I store a set of objects in a hash ?
pdtpatrick has joined #ruby
frogprince_mac has quit [Quit: Leaving...]
<rudyl313> hash = { :key1 => object1, :key2 => object2 }
<phelps> when I try that and then inspect the hash after I get [{"test"=>#}]
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
rjsamson has joined #ruby
lggr has joined #ruby
gfontenot has joined #ruby
havenn has quit [Remote host closed the connection]
bad_abbe has joined #ruby
<phelps> and the key type string/symbol doesn't seem to change it
fbernier has joined #ruby
bad_abbe has quit [Remote host closed the connection]
havenn has joined #ruby
<rudyl313> phelps: not sure what you're doing, but in irb I go > hash = { :a => 1, :b => "hi" }; puts hash.inspect
<rudyl313> and I get: {:a=>1, :b=>"hi"}