apeiros_ changed the topic of #ruby to: programming language || ruby-lang.org || Paste >3 lines of text in http://pastie.org || Rails is in #rubyonrails
artOfWar has quit [Ping timeout: 256 seconds]
jenrzzz-mac has joined #ruby
<digitalcakestudi> thanks
eggie5 has quit [Quit: Page closed]
bambanx__ has quit [Read error: Connection reset by peer]
bambanx__ has joined #ruby
nkvorn_ has quit [Ping timeout: 245 seconds]
emet has quit [Remote host closed the connection]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
byronb has joined #ruby
tvw has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
bambanx__ has quit [Read error: Connection reset by peer]
IPGlider has quit []
bambanx__ has joined #ruby
TheHunter_1039 has quit [Quit: TheHunter_1039]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
schovi has quit [Remote host closed the connection]
Rick_C_4914398 has joined #ruby
Rick_C_4914398 has quit [Client Quit]
Xajin has quit []
ssmoot has quit [Quit: Linkinus - http://linkinus.com]
tomzx has joined #ruby
adac has quit [Ping timeout: 265 seconds]
recursive has quit [Quit: leaving]
tommyvyo has joined #ruby
Boohbah has quit [Write error: Broken pipe]
atmosx has quit [Ping timeout: 265 seconds]
davidcelis has quit [Quit: K-Lined]
stephenjudkins has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
stephenjudkins has joined #ruby
cantonic has quit [Quit: cantonic]
tommyvyo_ has joined #ruby
Boohbah has joined #ruby
apok has quit [Quit: apok]
xbayrockx1 has joined #ruby
xbayrockx has quit [Read error: Connection reset by peer]
mikeg has quit [Remote host closed the connection]
lledet has joined #ruby
slyv has quit [Remote host closed the connection]
theRoUS has quit [Quit: Leaving]
theRoUS has joined #ruby
<zizzyx> ruby looks pretty nice with tabstop at 3 what do you guys think
<theRoUS> why does "gem install rdoc --version '= 3.6.1'" try to install 3.7 instead?
wilmoore has quit [Remote host closed the connection]
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
ThatDudeGuy_ has quit [Quit: ThatDudeGuy_]
<theRoUS> or even 'gem install --version "< 3.7" rdoc' -- it still installs 3.7. and considering i'm on ruby 1.8.7, it gets a 'undefined method `absolute_name' for nil:NilClass' error
wmoxam has joined #ruby
Guest57325 has quit [Ping timeout: 240 seconds]
ringotwo_ has joined #ruby
ringotwo_ has quit [Remote host closed the connection]
awarner has quit [Remote host closed the connection]
luxurymode has quit [Quit: Computer has gone to sleep.]
wvms has quit [Quit: wvms]
mmochan has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
tommyvyo_ is now known as tommyvyo
ringotwo has quit [Ping timeout: 245 seconds]
seanstickle has joined #ruby
wvms has joined #ruby
nathan28 has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
shevy has quit [Ping timeout: 245 seconds]
wvms has quit [Client Quit]
cableray has quit [Quit: cableray]
Boohbah has quit [Ping timeout: 276 seconds]
Aaton is now known as Aaton_off
Boohbah has joined #ruby
alexim has quit [Quit: sleep]
Urthwhyte is now known as Urth|Away
Solnse has joined #ruby
kaneda has joined #ruby
zemanel has quit [Quit: Remote hottie closed the connection]
kaneda is now known as Guest19209
hadees has quit [Ping timeout: 245 seconds]
kenperkins has joined #ruby
davidcelis has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
bambanx_ has joined #ruby
ZachBeta has joined #ruby
rking has quit [Ping timeout: 244 seconds]
jgrevich has joined #ruby
bambanx__ has quit [Ping timeout: 260 seconds]
dbgster has joined #ruby
shevy2 has joined #ruby
eywu has quit [Quit: Leaving.]
zinjacoder has quit [Quit: Peace!]
brianpWins has quit [Quit: brianpWins]
bigoldrock has quit [Quit: Leaving.]
savage- has quit [Remote host closed the connection]
wvms has joined #ruby
Urth|Away is now known as Urthwhyte
Hanmac1 has joined #ruby
looopy has quit [Remote host closed the connection]
ciopte7 has quit [Quit: ciopte7]
lledet has quit [Quit: lledet]
Hanmac has quit [Ping timeout: 265 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
looopy has joined #ruby
adamkittelson has quit [Remote host closed the connection]
aantix has quit [Quit: aantix]
c0rn has quit [Quit: Computer has gone to sleep.]
c3l has quit [Ping timeout: 252 seconds]
lledet has joined #ruby
wmoxam has quit [Ping timeout: 245 seconds]
ThatDudeGuy_ has joined #ruby
jenrzzz-mac has quit [Quit: jenrzzz-mac]
darkf_ has joined #ruby
ctwiz has quit [Quit: ctwiz]
bigoldrock has joined #ruby
nowthatsamatt has left #ruby [#ruby]
darkf has quit [Ping timeout: 252 seconds]
<macmartine> what's the best way to pass the individual elements of an array as arguments in a method call? like https://gist.github.com/2847811
<samuelkadolph> macmartine: foo(*[1,2])
liluo has joined #ruby
jenrzzz-mac has joined #ruby
<macmartine> samuelkadolph: how does that translate to my example? foo(*rw) ?
<samuelkadolph> Try it
<macmartine> i did. didn't work
krzkrzkrz has joined #ruby
<samuelkadolph> Well that's how it works. So either your method is wrong or rw isn't an array.
<samuelkadolph> gist the error you are getting or your actual code if there is no error
<macmartine> oh, crap, it did :) thanks. i was trying it at a breakpoint, oncorrectly
<macmartine> *incorrectly
<macmartine> I tried *rw and expected it to "explode" the array, but it just threw an error
krz has quit [Ping timeout: 240 seconds]
krzkrzkrz is now known as krz
<macmartine> seems like 'puts *rw' would work too
<samuelkadolph> puts recursively puts arrays, so there would be no difference
darkf_ is now known as darkf
cbuxton has quit [Ping timeout: 248 seconds]
perryh_away is now known as perryh
bigoldrock has quit [Quit: Leaving.]
<dekz> Anyone know of a way to parse a HTTP request and then make the request. Ie parse a known request (including headers) from a text file and then executing it?
<dekz> and by a way I mean a nice way
locriani_ has joined #ruby
itnomad has joined #ruby
jenrzzz-mac has quit [Quit: jenrzzz-mac]
stephenjudkins has joined #ruby
berserkr has quit [Quit: Leaving.]
locriani has quit [Ping timeout: 244 seconds]
wilmoore has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
ken_barber has joined #ruby
nfluxx has quit [Ping timeout: 244 seconds]
jchauncey has joined #ruby
ananthakumaran has joined #ruby
jchauncey has quit [Client Quit]
pdtpatrick has quit [Quit: pdtpatrick]
stephenjudkins has quit [Read error: Connection reset by peer]
stephenjudkins has joined #ruby
Raduwen has quit [Quit: Leaving...]
bambanx_ has quit [Read error: Connection reset by peer]
MekkisScreen has joined #ruby
bambanx_ has joined #ruby
c3l has joined #ruby
<MekkisScreen> is there a module that parses the string given by a HTTP GET request and presents an unencapsulated string?
ciopte7 has joined #ruby
wmoxam has joined #ruby
cbuxton has joined #ruby
ringotwo has joined #ruby
locriani_ is now known as locriani
savage- has joined #ruby
locriani has quit [Quit: Leaving...]
locriani has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
williamcotton has quit [Quit: williamcotton]
perryh is now known as perryh_away
artOfWar has joined #ruby
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby
perryh_away is now known as perryh
savage- has quit [Remote host closed the connection]
artOfWar has quit [Read error: Connection reset by peer]
ZachBeta has quit [Quit: Computer has gone to sleep.]
r0bby_ has joined #ruby
wvms has quit [Quit: wvms]
t0mmyvyo has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
<jrajav> MekkisScreen: The #body of an HTTPResponse?
amalvagomes has joined #ruby
nathan28 has left #ruby [#ruby]
uris has joined #ruby
t0mmyvyo has quit [Quit: http://twitter.com/tommyvyo]
<MekkisScreen> jrajav: given a string like posttxt=Line+1%0D%0ALine+2%0D%0ALine+3%0D%0ALine+4, to perform all the required remangling
itnomad has quit [Quit: Leaving]
krusty_ar has quit [Remote host closed the connection]
atmosx has quit [Ping timeout: 244 seconds]
kylemcgill has joined #ruby
atmosx has joined #ruby
Araxia_ has quit [Quit: Araxia_]
tayy has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
Hanmac has joined #ruby
PaciFisT has quit [Quit: Leaving.]
Hanmac1 has quit [Ping timeout: 252 seconds]
kylemcgill has quit [Remote host closed the connection]
tectonic_ has quit [Quit: ZNC - http://znc.in]
mlue has quit [Remote host closed the connection]
jrajav has quit [Quit: burgermouth]
ken_barber1 has joined #ruby
ken_barber1 is now known as ken_barber_
ken_barber_ is now known as ken_barber__
ken_barber has quit [Disconnected by services]
ken_barber__ is now known as ken_barber
perryh is now known as perryh_away
baroquebobcat has quit [Client Quit]
terra-and-luna has quit [Ping timeout: 245 seconds]
S2kx has joined #ruby
Solnse2 has joined #ruby
amalvagomes_ has joined #ruby
TomJ_ has joined #ruby
TomJ_ has quit [Changing host]
TomJ_ has joined #ruby
cynosure has joined #ruby
cynosure has quit [Read error: Connection reset by peer]
Solnse has quit [Read error: Connection reset by peer]
perryh_away has quit [Ping timeout: 252 seconds]
imami|afk has quit [Ping timeout: 252 seconds]
amalvagomes has quit [Ping timeout: 252 seconds]
amalvagomes_ is now known as amalvagomes
TomJ has quit [Ping timeout: 252 seconds]
TomJ_ is now known as TomJ
atmosx has quit [Ping timeout: 252 seconds]
S1kx has quit [Ping timeout: 252 seconds]
mnaser has quit [Quit: Computer has gone to sleep.]
akem has quit [Ping timeout: 252 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
perryh has joined #ruby
akem has joined #ruby
atmosx has joined #ruby
banseljaj has joined #ruby
ringotwo has quit [Remote host closed the connection]
c0rn has joined #ruby
wvms has joined #ruby
rakm has quit [Disconnected by services]
rakm_ has joined #ruby
wmoxam has quit [Ping timeout: 256 seconds]
c0rn has quit [Client Quit]
kvirani has quit [Remote host closed the connection]
mpereira has joined #ruby
mengu has quit [Remote host closed the connection]
yonggu has joined #ruby
L-----D has joined #ruby
test34 has joined #ruby
test34 has quit [Changing host]
test34 has joined #ruby
hdevalence has joined #ruby
<hdevalence> I'm looking for a Markdown processor I can use from Ruby that is compatible with using MathJaX on inline LaTeX
eph3meral has quit [Quit: Leaving]
r0bby_ is now known as robbyoconnor
koshian has joined #ruby
Solnse2 is now known as Solnse
KitsuneDrag0n has quit [Quit: leaving]
yabuki has joined #ruby
dtang has quit [Quit: dtang]
bambanx has joined #ruby
moted has quit [Ping timeout: 265 seconds]
hdevalence has quit [Quit: Lost terminal]
bambanx_ has quit [Ping timeout: 260 seconds]
moted has joined #ruby
tomzx_ has joined #ruby
wallerdev has joined #ruby
rakm_ is now known as rakl
jcromartie has quit [Quit: jcromartie]
YokoZar has quit [Ping timeout: 250 seconds]
tectonic has joined #ruby
tomzx has quit [Ping timeout: 252 seconds]
tomzx_ is now known as tomzx
perryh is now known as perryh_away
rakl has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rking has joined #ruby
rakl has joined #ruby
yannis has quit [Read error: Connection reset by peer]
darkf_ has joined #ruby
luxurymode has joined #ruby
yannis has joined #ruby
darkf has quit [Disconnected by services]
darkf_ is now known as darkf
baroquebobcat has joined #ruby
alegacyreborn has joined #ruby
rking has quit [Quit: Lost terminal]
<alegacyreborn> <3
rking has joined #ruby
<barnex> anyone here uses watchr? Is there a way to do something when file stops changing?
Solnse has quit []
<rking> barnex: When the file /stops/ changing?
rakl is now known as rakm
bambanx has quit [Read error: Connection reset by peer]
<rking> barnex: Doesn't the file stop changing an infinite number of times per second?
alegacyreborn has quit [Client Quit]
perryh_away is now known as perryh
<barnex> I mean behaviour simmilar to _.debounce from javascript world
<barnex> so it changed and then some time passed without chagnes
<rking> I see.
bambanx has joined #ruby
<rking> I'm not sure re watchr, but it sounds like a fun little hacklet to make somehow.
yonggu has quit [Remote host closed the connection]
yonggu has joined #ruby
dnyy has quit [Remote host closed the connection]
Gavilan has joined #ruby
<barnex> too bad I don't have time for fun right now :-)
LiquidInsect has quit [Remote host closed the connection]
andrewhl has joined #ruby
<barnex> If my SO question doesn't get any answers I'll look into it and maybe I'll come up with something.
<barnex> well, wait, it's easy
<barnex> and I'm dumb
<barnex> nvm, it's not easy and I'm dumb.
dnyy has joined #ruby
san00b has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
Guest19209 has quit [Read error: Connection reset by peer]
Guest19209 has joined #ruby
seitensei has quit [Ping timeout: 244 seconds]
bambanx has quit [Ping timeout: 260 seconds]
stefanp has quit [Ping timeout: 265 seconds]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
larissa has quit [Quit: gone]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
<bnagy> greetings, humans
ipoval has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
cpruitt has quit [Read error: Connection reset by peer]
cpruitt has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
nlc has quit [Quit: Leaving]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
<rking> seitensei: Gezundheit.
seitensei has joined #ruby
seitensei has quit [Excess Flood]
dbgster has quit [Quit: dbgster]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
hamfz_ has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
mpereira has quit [Ping timeout: 246 seconds]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
test34- has joined #ruby
yoklov has quit [Quit: computer sleeping]
test34- has quit [Changing host]
test34- has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
Zolrath has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
test34 has quit [Ping timeout: 252 seconds]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
mnaser has joined #ruby
mnaser has quit [Changing host]
mnaser has joined #ruby
hamfz_ has quit [Ping timeout: 256 seconds]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
YokoZar has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
stephenjudkins has quit [Quit: stephenjudkins]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
ringotwo has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
moshee has quit [Ping timeout: 260 seconds]
nilg has quit [Remote host closed the connection]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
brianpWins has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seanstickle has quit [Quit: Nihil sub sole novum]
savage- has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
nilg has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
robbyoconnor has quit [Read error: Connection reset by peer]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
YokoZar has quit [Ping timeout: 260 seconds]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
cj3kim has quit [Quit: Leaving]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
ananthakumaran has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
ex0a has quit [Disconnected by services]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
byronb has quit [Read error: Connection reset by peer]
exoa has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
exoa is now known as ex0a
ex0a has quit [Changing host]
ex0a has joined #ruby
darkf has quit [Read error: Connection reset by peer]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
darkf has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
seitensei has joined #ruby
seitensei has quit [Excess Flood]
GoGoGarrett has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<GoGoGarrett> Is there anyway to run a loop on a slap? def *arrg; *arrg.each{|x| puts x.inspect}; end
<GoGoGarrett> I can't get it to work
\\_null has quit [Excess Flood]
Gavilan has quit [Read error: Connection reset by peer]
Gavilan has joined #ruby
GoGoGarrett has left #ruby ["It ain't no lie, Baby bye bye bye"]
azm has quit [Ping timeout: 245 seconds]
mmochan has quit [Read error: Connection reset by peer]
mmochan_ has joined #ruby
<TTilus> its called splat
<TTilus> you want to loop over arguments right?
YokoZar has joined #ruby
<TTilus> if you call like foo(1, 2, 3, 4) you want to loop [1, 2, 3, 4].each { ... }
<TTilus> def foo(*args); args.each { |x| puts x.inspect };end
<bnagy> sorry, but *arrg is just hilarious
<bnagy> ARRRRG Y U NO WORK??
<TTilus> bnagy: ssh! :)
ciopte7 has quit [Quit: ciopte7]
simao has quit [Ping timeout: 265 seconds]
Zolrath has quit [Quit: Computer has gone to sleep.]
simao has joined #ruby
xbayrockx1 has quit []
xbayrockx has joined #ruby
recrusive has joined #ruby
L-----D has quit [Ping timeout: 265 seconds]
emmanuelux has quit [Remote host closed the connection]
<recrusive> i have built ruby on freebsd as well as sqlite3, on my local freebsd, i issued a gem install sqlite3 and it worked, on the other box, i did the same and received a sqlite3.h not found, upon investigation it is located at /usr/local/include/sqlite3.h, how would i check to see why the libraries and headers are not being loaded properly to the compiler?
siksia has quit [Remote host closed the connection]
luxurymode has quit [Ping timeout: 244 seconds]
siksia has joined #ruby
philcrissman has quit [Remote host closed the connection]
hemanth has quit [Read error: Connection reset by peer]
<bnagy> is us rlocal include in your path?
cpruitt has quit [Quit: cpruitt]
Progster has quit [Ping timeout: 248 seconds]
vertroa has joined #ruby
cpruitt has joined #ruby
<recrusive> bnagy: no
<recrusive> it is as if the compiler is not using -I/usr/local/include
DanBoy has quit [Remote host closed the connection]
banisterfiend has joined #ruby
hemanth has joined #ruby
ciopte7 has joined #ruby
hadees has joined #ruby
<bnagy> well it should provide a log, no?
albemuth has joined #ruby
tomzx_ has joined #ruby
luxurymode has joined #ruby
tomzx has quit [Ping timeout: 246 seconds]
tomzx_ is now known as tomzx
rippa has joined #ruby
Vert has quit [Read error: Connection reset by peer]
L-----D has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
albemuth has quit [Quit: Computer has gone to sleep.]
luxurymode has quit [Quit: Computer has gone to sleep.]
tomb_ has quit [Ping timeout: 256 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
banisterfiend has quit [Ping timeout: 245 seconds]
krz has quit [Quit: krz]
cpruitt has quit [Quit: cpruitt]
banisterfiend has joined #ruby
khakimov has joined #ruby
tomb_ has joined #ruby
ryanf has joined #ruby
macmartine has quit [Quit: macmartine]
My_Hearing has joined #ruby
tomb_ has quit [Client Quit]
macmartine has joined #ruby
eko has quit [Quit: Leaving]
Mon_Ouie has quit [Ping timeout: 260 seconds]
swankier has joined #ruby
<swankier> how do I make a ruby regexp match multiple times? I'm using "www.domain.com".sub(%r[\.],"\\.") almost correct except for the fact that it only matches the first .
<bnagy> gsub
My_Hearing is now known as Mon_Ouie
v0n has quit [Ping timeout: 245 seconds]
stephenjudkins has joined #ruby
v0n has joined #ruby
<swankier> wow...
<swankier> that was exactly what I needed.
<swankier> thank you.
fgwaegeawgfwa has joined #ruby
tomzx has quit [Ping timeout: 245 seconds]
ryanf has quit [Ping timeout: 252 seconds]
Gavilan has quit [Ping timeout: 252 seconds]
<bnagy> np
khakimov has quit [Quit: Computer has gone to sleep.]
eywu has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
ryanf has joined #ruby
visof has joined #ruby
cbuxton has quit [Quit: Leaving.]
drspin has joined #ruby
uris has quit [Quit: leaving]
c0rn has joined #ruby
ananthakumaran has joined #ruby
c0rn has quit [Client Quit]
nricciar has quit [Read error: Connection reset by peer]
nat2610 has joined #ruby
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
Solnse has joined #ruby
<nat2610> hi, is htis wrong ? https://gist.github.com/2849052I'm trying to connect to a site and then get access a page that's only available if you logged in but when I do my GET it looks like I'm not connected anymore
<nat2610> oops missed a space, https://gist.github.com/2849052
ericcoleman has joined #ruby
ericcoleman has quit [Remote host closed the connection]
ericcoleman has joined #ruby
ken_barber has quit [Ping timeout: 245 seconds]
mikepack has quit [Ping timeout: 252 seconds]
ken_barber has joined #ruby
SeySayux has quit [Read error: Connection reset by peer]
beilabs has joined #ruby
cha1tanya has joined #ruby
seoaqua has quit [Quit: Leaving]
SeySayux has joined #ruby
graspee has joined #ruby
c0rn has joined #ruby
khakimov has joined #ruby
keppy has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
tcopp has joined #ruby
beilabs has quit [Quit: Leaving]
beilabs has joined #ruby
tcopp has quit [Read error: Connection reset by peer]
iamjarvo has quit [Quit: Leaving.]
amalvagomes has quit [Quit: amalvagomes]
ciopte7 has quit [Ping timeout: 252 seconds]
daniel_hinojosa has quit [Ping timeout: 244 seconds]
Emmanuel_Chanel has quit [Read error: Operation timed out]
Guest19209 has quit [Quit: Leaving]
Emmanuel_Chanel has joined #ruby
kaneda has joined #ruby
ringotwo has quit [Remote host closed the connection]
kaneda is now known as Guest93083
ghanima has quit [Quit: Leaving.]
yxhuvud has joined #ruby
mikeycgto has quit [Remote host closed the connection]
xnm has joined #ruby
igotnolegs has joined #ruby
CheeToS has joined #ruby
aantix has joined #ruby
roflmaus has joined #ruby
keppy has quit [Quit: Leaving]
roflmaus has quit [Client Quit]
twqla has quit [Ping timeout: 244 seconds]
JohnBat26 has joined #ruby
looopy has quit [Remote host closed the connection]
chomp has quit [Quit: Leaving]
cj3kim has joined #ruby
xnm has quit [Read error: Connection reset by peer]
kevinbond has quit [Quit: kevinbond]
digitalcakestudi has quit [Ping timeout: 244 seconds]
ABK has joined #ruby
atmosx has quit [Ping timeout: 252 seconds]
atmosx has joined #ruby
nikhil_ has joined #ruby
ringotwo has joined #ruby
ciopte7 has joined #ruby
vectorshelve has joined #ruby
recrusive has quit [Quit: leaving]
<vectorshelve> hemanth: hai bhai
ZifreCL has joined #ruby
mdw has joined #ruby
darkf has quit [Quit: Leaving]
<hemanth> vectorshelve, hey
<vectorshelve> hemanth: :)
ABK has quit [Ping timeout: 246 seconds]
tonini has joined #ruby
mmochan_ has quit [Quit: mmochan_]
schovi has joined #ruby
mxweas has quit [Ping timeout: 252 seconds]
burgestrand has quit [Quit: Leaving.]
twqla has joined #ruby
ThatDudeGuy_ has quit [Quit: ThatDudeGuy_]
mxweas has joined #ruby
macmartine has quit [Quit: macmartine]
fgwaegeawgfwa has left #ruby [#ruby]
Sulaiman has joined #ruby
drspin has quit [Ping timeout: 244 seconds]
stucorbishley has joined #ruby
looopy has joined #ruby
djdb has joined #ruby
kiela has quit [Ping timeout: 245 seconds]
ABK has joined #ruby
rtl has quit [Read error: Operation timed out]
rtl has joined #ruby
eggie5 has joined #ruby
ringotwo has quit [Remote host closed the connection]
fserb has joined #ruby
<eggie5> does anybody know why this doesn't work in the redis gem? redis.sadd "my_set", ["a", "b", "c"] ? i just adds that literal string to redis "[\"1\", \"2\", \"3\"]" instead of 3 separate items
Helius has joined #ruby
<eggie5> the gem docs day member (String, Array<String>) — one member, or array of members
senny has joined #ruby
maesbn has joined #ruby
saschagehlich has joined #ruby
sspiff has joined #ruby
ciopte7 has quit [Ping timeout: 244 seconds]
apeiros_ has joined #ruby
apeiros_ is now known as apeiros|euruko
jprovazn has joined #ruby
ciopte7 has joined #ruby
gilead has joined #ruby
dekroning has joined #ruby
otters has quit [Quit: WeeChat 0.3.7]
otters has joined #ruby
cableray has joined #ruby
iocor has joined #ruby
apeiros|euruko has quit [Remote host closed the connection]
fserb has quit [Quit: ttyl]
kil0byte has joined #ruby
mdw has quit [Remote host closed the connection]
aantix has quit [Quit: aantix]
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
graspee has quit [Read error: Operation timed out]
beneggett has joined #ruby
beneggett has quit [Client Quit]
x0F has quit [Read error: Connection reset by peer]
dekroning has quit [Ping timeout: 265 seconds]
graspee has joined #ruby
c0rn has quit []
dekroning has joined #ruby
barnex has quit [Ping timeout: 265 seconds]
zommi has joined #ruby
klip has quit [Quit: leaving]
barnex has joined #ruby
Criztian has joined #ruby
hoelzro|away is now known as hoelzro
ephemerian has joined #ruby
kil0byte_ has joined #ruby
x0F has joined #ruby
apeiros|euruko has joined #ruby
plasticover has quit [Quit: WeeChat 0.3.7]
kil0byte has quit [Ping timeout: 256 seconds]
<cj3kim> hi.
saschagehlich has quit [Quit: saschagehlich]
andrewhl has quit [Remote host closed the connection]
sqlbyme has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
ryanf has quit [Quit: leaving]
klip has joined #ruby
dekroning has quit [Ping timeout: 244 seconds]
iocor has quit [Quit: Computer has gone to sleep.]
francisfish has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
JohnBat26 has joined #ruby
eywu has quit [Quit: Leaving.]
stucorbishley has quit [Ping timeout: 250 seconds]
<eggie5> cj3kim: night
eggie5 has quit [Quit: eggie5]
<cj3kim> Are Proc and Lambda both necessary in Ruby? How important is it that we need both? The only difference I see is in the effect of control flow key words.
schovi has quit [Remote host closed the connection]
<bnagy> there are quite a few differences
L-----D has quit [Quit: Leaving]
stewart_ has quit [Quit: Leaving.]
<bnagy> and lots of blogs about them
<bnagy> but I can't answer your underlying question 'how important' :/
<Hanmac> cj3kim lambda has fixed parameter count, proc has not
fayimora has joined #ruby
<banisterfiend> cj3kim: i personally dont think we need lambda, i normally just use proc
khakimov has quit [Quit: Computer has gone to sleep.]
<cj3kim> Thanks. It seems this quesiton gets asked a lot.
nikhil_ has quit [Ping timeout: 244 seconds]
strnx has quit [Excess Flood]
<banisterfiend> cj3kim: lambda has a nicer syntax in 1.9 though
<cj3kim> I have recently discovered the magic of Proc. It feels weird but fun! :D
<banisterfiend> cj3kim: in most cases u dont need procs though, blocks are enough
<fayimora> do i always have to put my specs in spec/ ? I just want to write specs for a single ruby method
<banisterfiend> cj3kim: are you using then in a situatino where u cant use blocks?
<cj3kim> banisterfiend: Do you feel it's good practice to use them anyway?
<banisterfiend> cj3kim: haha, it totally depends on the situation. If i *can* use a block though, it's better to
<cj3kim> banisterfiend: No, I'm bored and reading up on Procs because it was a concept that eluded me for a while.
<banisterfiend> as the syntax is cleaner
<banisterfiend> cj3kim: do you understand blocks?
strnx has joined #ruby
<cj3kim> banisterfiend: Not totally, but I use them a lot. Hmmr, that's actually quite a scary thought.
* cj3kim goes to api
perryh is now known as perryh_away
zomgbie has quit [Ping timeout: 244 seconds]
<bnagy> is there any real difference between res=yield var and res=blk.call var in a block method?
bluOxigen has joined #ruby
jenglish has joined #ruby
<matled> banisterfiend: do I miss something or what is a block if not a proc/lambda passed as the special block paramater?
dekroning has joined #ruby
<banisterfiend> matled: same thing as proc but nicer syntax
<fayimora> How do i use spec on a file that has just one method, no class ?? THis is what i have => https://gist.github.com/2850098
<banisterfiend> and slightly faster
<fayimora> both files are in the same directory
tvw has joined #ruby
siksia has quit [Ping timeout: 246 seconds]
<Hanmac> matled the block itself is not an object, but if you pass it as &block parameter its turned into an proc
siksia has joined #ruby
wilmoore has quit [Remote host closed the connection]
<matled> Hanmac: but it behaves exactly like a proc, doesn't it?
jgrevich has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
<Hanmac> after it turned into an proc, yes
<mtfk> hi how in ruby 1.8.7 can I do something like that YAML.parse([1, 2,].to_yaml).to_ruby
<mtfk> I mean to_ruby method
<Hanmac> PS: it makes a difference if you use &block and block.call or if you use yield
sepp2k has joined #ruby
<matled> Hanmac: what is that?
<Hanmac> yield is the internal command ... like def abc; yield 1;yield 2; yield 3;end ... abc {|i| p i} the block you pass to abc is called three times
sleetdro_ has joined #ruby
<cj3kim> How come I can turn this into a block and what does it do? --> puts 'Hello' do puts 'hello' end ---> 'Hello' gets printed to the screen but the function in the block does nothing
<matled> Hanmac: so what is the difference to def abc(&block); block.call 1; block.call 2; block.call 3; end?
Urthwhyte is now known as Urth|Away
<Hanmac> the differenc is that if you use yield and pass a no block, the block is not stored in a variable and does not need extra memory
<Hanmac> i mean pass a block
ericcoleman_ has joined #ruby
<bnagy> as in you save one pointer? That's hardly a difference
<Hanmac> a proc is more then a simple pointer ... it also holds the binding
<Hanmac> cj3kim thats because puts is not designed to do something with the block
elhu has joined #ruby
<bnagy> yeah, but the question was between def foo(arg, &blk) blk.call arg and def foo(arg) yield arg
<matled> Hanmac: are you sure that is the way it is implemented?
<bnagy> both of those blocks will have their binding
<cj3kim> Hanmac: Thank you.
ronniy has joined #ruby
<Hanmac> but one of the blocks is put in a proc
<bnagy> I was wondering if they're basically functionally equivalent if you call them both like foo(3) {|i| p i}
<Hanmac> and i heard yield is faster
dekroning has quit [Ping timeout: 244 seconds]
schovi has joined #ruby
<bnagy> lame benchmarking suggests you're right
chmac has joined #ruby
* Hanmac solved the daily quest: "You are right!" and gets 5 Ego-Points
Neurotic has quit [Remote host closed the connection]
dekroning has joined #ruby
pk1001100011 has joined #ruby
ericcoleman_ has quit [Quit: leaving]
<bnagy> the less code is on the block the more you see the overhead
saschagehlich has joined #ruby
kenperkins has quit [Ping timeout: 246 seconds]
ericcoleman has quit [Remote host closed the connection]
ronniy has quit [Ping timeout: 260 seconds]
lledet has quit [Quit: lledet]
<cj3kim> Proc.new {|n| n * factor} <-- inside the get_time(factor) def. If I assign as so --> time3 = get_time(3) and call the proc ---> time3.call(4), why doesn't ruby raise an error when the variable n is undefined?
<bnagy> cj3kim: maybe use pastie or gist or something, I have nfi what you're talking about :)
akemrir has joined #ruby
<Hanmac> cj3kim because n is your block variable and you assigned it with 4
ChampS666 has joined #ruby
adac has joined #ruby
<cj3kim> hanmac: Wow, thanks!
cableray has quit [Quit: cableray]
Vainoharhainen has joined #ruby
dekronin1 has joined #ruby
cableray has joined #ruby
<cj3kim> So time3 retains a copy of the variable I passed in and uses it as the factor variable.
TheNumb has quit [Ping timeout: 252 seconds]
berserkr has joined #ruby
<cj3kim> bnagy: Is pastie generally preferred?
<bnagy> it's just easier to read code than explanations of code
dekroning has quit [Ping timeout: 248 seconds]
<cj3kim> Eh, when it's reasonable :] I was concerned about click through rates, but I suppose a wall of text is a deterrent for help.
apeiros|euruko has quit [Remote host closed the connection]
TheNumb has joined #ruby
dekronin1 has quit [Quit: leaving]
williamcotton has joined #ruby
Morkel has joined #ruby
noodletraveler has joined #ruby
mdw has joined #ruby
igotnolegs has quit [Quit: Computer has gone to sleep.]
cableray has quit [Quit: cableray]
baroquebobcat has joined #ruby
binaryplease has quit [Quit: WeeChat 0.3.7]
roolo has joined #ruby
tatsuya_o has joined #ruby
keymone has joined #ruby
jprovazn has quit [Quit: Leaving]
mmochan has joined #ruby
apeiros|euruko has joined #ruby
<apeiros|euruko> bnagy: what does nfi mean?
workmad3 has joined #ruby
<cj3kim> apeiros|euruko: no f**king idea
<apeiros|euruko> cj3kim: ah, ok. btw., I think spelling out the word 'fucking' is fine here ;-)
<apeiros|euruko> cj3kim: and thanks, of course ;-)
<cj3kim> apeiros|euroko: :D
MissionCritical has quit [Ping timeout: 252 seconds]
<bnagy> before I write one, is there a free ruby nokogiri based iTunes de-duper that anyone happens to know of?
twqla has quit [Read error: Connection reset by peer]
<mneorr> Hey, anyone knows how to patch a class method, while I can't subclass or use 'super' ?
tvw has quit [Remote host closed the connection]
<mneorr> the class method has arguments, it's not just a :bar
<bnagy> just redefine it?
<bnagy> def Blah.bad_method; be_good; end
mucker has joined #ruby
ben_m has joined #ruby
dekroning has joined #ruby
<mneorr> oh yes, sorry,. I've forgot to say that the original implementation should be kept
<bnagy> well you can't patch it and keep it exactly the same :)
<mneorr> it's a constructor, and when I override it, everything else breaks. so the Super won't work because there's no superclass factory method
<mneorr> I want just add the attr_reader for arguments passed in :)
<mneorr> it seems like they're becoming private, or just forgotten
yxhuvud has quit [Ping timeout: 244 seconds]
<bnagy> def Blah.wrapper( *args ); setup_accessors; real_meth *args; end ?
workmad3 has quit [Ping timeout: 245 seconds]
YokoZar has quit [Ping timeout: 252 seconds]
<mneorr> let me try it, tnx
yekta has joined #ruby
workmad3 has joined #ruby
twqla has joined #ruby
MissionCritical has joined #ruby
twqla is now known as mbk
<mneorr> still not sure how to set it up, in my case it ends up recursively
<mneorr> I'll paste it
iceman009 has joined #ruby
kil0byte has joined #ruby
mbk has left #ruby [#ruby]
iceman009 has quit [Read error: Connection reset by peer]
d3vic3 has quit [Ping timeout: 244 seconds]
<mneorr> if it helps - it's rubyMotion, a iOS ruby implementation
<mneorr> and what i'm doing, unit testing the network connection wrapper :)
<bnagy> well that's going to set up class ivars
<bnagy> is that what you want?
<mneorr> everything is more-less already tested, but I want to make sure when someone calls NSURLConnection.connectionWith... ... , that the right arguments are passed in
davidw has joined #ruby
davidw is now known as Guest79767
<mneorr> yeah that works, but it breaks the other tests that are using the real one, since the object is never initialized
kil0byte_ has quit [Ping timeout: 250 seconds]
d3vic3 has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby
<mneorr> if I just type NSURLConnection.connectionWithRequest(request, delegate:delegate) in a place of a comment, it ends up recursively
fayimora has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
<bnagy> you need to call your wrapper something different
mbk_ has joined #ruby
<bnagy> otherwise you just redefined the class method
<banisterfiend> bnagy: #ruby-lang wasn't the shangri-la i remember, it's actually DEAD. I remembered it being a place for intricate theoretical discussions about the interesting parts of ruby
tonini has quit [Remote host closed the connection]
<banisterfiend> but it's just a bunch of nothing
<banisterfiend> sad sad sad
jimeh has joined #ruby
<mneorr> :bnogy Since I'm not a Ruby dev, It's still failing.. :)
wallerdev has quit [Quit: wallerdev]
<bnagy> mneorr: not sure how to get it working with attr_reader, but it should work with define_method
<mneorr> okay, thanks for the tip!
<mneorr> will be back later
<apeiros|euruko> friday hug! :D
KL-7 has joined #ruby
KL-7 has quit [Remote host closed the connection]
kil0byte_ has joined #ruby
tayy has joined #ruby
kil0byte has quit [Ping timeout: 245 seconds]
Ammar01 has joined #ruby
jbw has quit [Ping timeout: 265 seconds]
jgrevich has quit [Quit: jgrevich]
stefanp has joined #ruby
stefanp has joined #ruby
stefanp has quit [Changing host]
<vectorshelve> HAI ALL :)
<bnagy> anyone know how to pass -J-Xmxsomething to irb under jruby?
<bnagy> google is not being helpful
tvw has joined #ruby
pygospa has quit [Disconnected by services]
pygospa has joined #ruby
kil0byte_ has quit [Ping timeout: 246 seconds]
kil0byte has joined #ruby
seitensei has joined #ruby
seitensei has quit [Excess Flood]
jbw has joined #ruby
seitensei has joined #ruby
clockwize has joined #ruby
<matled> bnagy: I'd try strace -e execve -ff and check at which point java is executed.
apeiros|euruko has quit [Remote host closed the connection]
banseljaj is now known as imami|afk
yabuki_ has joined #ruby
yabuki has quit [Ping timeout: 240 seconds]
Ethan has joined #ruby
mucker has quit [Quit: leaving]
mucker has joined #ruby
MissionCritical has quit [Ping timeout: 244 seconds]
workmad3_ has joined #ruby
mohits has joined #ruby
d3vic3 has quit [Read error: Operation timed out]
cj3kim has quit [Quit: This computer has gone to sleep]
mucker has quit [Ping timeout: 244 seconds]
d3vic3 has joined #ruby
mucker has joined #ruby
peterhil has quit [Ping timeout: 245 seconds]
snearch has joined #ruby
visof has quit [Ping timeout: 246 seconds]
atmosx has quit [Ping timeout: 246 seconds]
atmosx has joined #ruby
jenrzzz-mac has joined #ruby
binaryplease has joined #ruby
<shevy2> #ruby has the advantage of higher traffic than #ruby-lang
<banisterfiend> shevy2: are you on #ruby-lang ?
<shevy2> nah
<shevy2> they require for people to register in order to have voice
shevy2 is now known as shevy
<shevy> since some months. I am too lazy for that
Helius has quit [Remote host closed the connection]
Helius has joined #ruby
baroquebobcat has joined #ruby
<banisterfiend> shevy: you should register shevrolet
Solnse has quit [Read error: No route to host]
<shevy> the thing is, I am to lazy to register really
<shevy> but you can register that
Dreamer3 has quit [Quit: Leaving...]
Alantas has quit [Quit: The sum of the universe is zero.]
MissionCritical has joined #ruby
snearch has quit [Quit: Verlassend]
fermion has joined #ruby
heda has quit [Quit: heda]
mmochan has quit [Quit: mmochan]
cha1tanya has quit [Quit: Leaving]
xbayrockx has quit []
binaryplease has quit [Ping timeout: 244 seconds]
freeayu1 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
binaryplease has joined #ruby
xbayrockx has joined #ruby
mohits has quit [Remote host closed the connection]
cousine has joined #ruby
maesbn has quit [Remote host closed the connection]
cousine has quit [Remote host closed the connection]
ciopte7 has quit [Quit: ciopte7]
dnyy has quit [Remote host closed the connection]
nipra has joined #ruby
maesbn has joined #ruby
yabuki_ has quit [Remote host closed the connection]
nipra has quit [Ping timeout: 245 seconds]
adac has quit [Read error: Operation timed out]
adac has joined #ruby
visof has joined #ruby
akem has quit [Ping timeout: 260 seconds]
liluo has quit [Remote host closed the connection]
covi has joined #ruby
covi has left #ruby [#ruby]
akem has joined #ruby
akem has quit [Changing host]
akem has joined #ruby
iamjarvo has joined #ruby
jenrzzz-mac has quit [Quit: jenrzzz-mac]
davidcelis has quit [Read error: Connection reset by peer]
hbs has joined #ruby
nfk has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
nipra has joined #ruby
davidcelis has joined #ruby
ncopa has joined #ruby
<ncopa> hi
<ncopa> i am packaging ruby for alpine linux
<ncopa> the buidl will install rake, rdoc and minitest gemspec under /usr/local, which is not acceptable
<ncopa> can i just delete the gemspecs?
CheeToS has quit [Ping timeout: 244 seconds]
hbs has quit [Quit: hbs]
mengu has joined #ruby
yannis has quit [Quit: yannis]
ChampS666 has quit [Ping timeout: 248 seconds]
kil0byte_ has joined #ruby
TomJ has quit [Quit: TomJ]
ZachBeta has joined #ruby
workmad3_ has quit [Ping timeout: 246 seconds]
apeiros|euruko has joined #ruby
kil0byte has quit [Ping timeout: 265 seconds]
kil0byte has joined #ruby
tomb_ has joined #ruby
ZachBeta has quit [Client Quit]
kil0byte_ has quit [Ping timeout: 252 seconds]
schaerli has joined #ruby
nanderoo has joined #ruby
schaerli has quit [Remote host closed the connection]
hadees_ has joined #ruby
Criztian has quit [Remote host closed the connection]
schaerli has joined #ruby
ramblex has joined #ruby
kil0byte_ has joined #ruby
yabuki has joined #ruby
moshee has quit [Ping timeout: 260 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
hadees has quit [Ping timeout: 246 seconds]
tomb_ has quit [Quit: Computer has gone to sleep.]
tatsuya_o has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 252 seconds]
hadees_ has quit [Ping timeout: 246 seconds]
apeiros has joined #ruby
apeiros|euruko has quit [Read error: Connection reset by peer]
noodletraveler has quit [Quit: leaving]
<_br_> Anyone experience with multiple Databases in DataMapper?
francisfish has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
francisfish has joined #ruby
snearch has joined #ruby
schaerli has quit [Remote host closed the connection]
francisfish has quit [Ping timeout: 246 seconds]
tatsuya_o has quit [Ping timeout: 252 seconds]
yabuki has quit [Remote host closed the connection]
roolo has quit [Quit: Linkinus - http://linkinus.com]
iamjarvo has quit [Quit: Leaving.]
fflush has quit [Quit: This computer has gone to sleep]
Progster has joined #ruby
Galgorth has joined #ruby
tatsuya_o has joined #ruby
vertroa has quit [Read error: Connection reset by peer]
sleetdro_ has quit [Remote host closed the connection]
vertroa has joined #ruby
znake has joined #ruby
liluo has joined #ruby
ChampS666 has joined #ruby
carloslopes has joined #ruby
mdw_ has joined #ruby
iaj_ has joined #ruby
irk3z has quit [Read error: Operation timed out]
irk3z has joined #ruby
geekbri has joined #ruby
mdw has quit [Ping timeout: 256 seconds]
znake has left #ruby [#ruby]
iaj has quit [Ping timeout: 240 seconds]
cha1tanya has joined #ruby
nowthatsamatt has joined #ruby
saschagehlich has joined #ruby
znake has joined #ruby
`brendan has joined #ruby
Richmond has joined #ruby
FreeHero has joined #ruby
FreeHero has quit [Killed (idoru (Spam is off topic on freenode.))]
dbgster has joined #ruby
cha1tanya has quit [Ping timeout: 248 seconds]
Chryson has quit [Quit: Leaving]
visof has quit [Ping timeout: 246 seconds]
nlc has joined #ruby
sits has joined #ruby
sits has quit [Remote host closed the connection]
sits has joined #ruby
sits has quit [Remote host closed the connection]
wvms has quit [Ping timeout: 265 seconds]
wvms has joined #ruby
krusty_ar has joined #ruby
nowthatsamatt has left #ruby [#ruby]
kil0byte has joined #ruby
krusty_ar has quit [Read error: Connection reset by peer]
Guest93083 has quit [Remote host closed the connection]
`brendan has quit [Read error: Connection reset by peer]
krusty_ar has joined #ruby
`brendan has joined #ruby
rippa has quit [Quit: derp herp]
lorandi has joined #ruby
mvangala_ has joined #ruby
kil0byte_ has quit [Ping timeout: 248 seconds]
dbgster has quit [Quit: dbgster]
schaerli has joined #ruby
<_br_> Interesting problem I caused myself there. OpenStruct returns nil if something doesn't exist. .e.g. "if( @options.session_db_tyoe == db_type )" where @options is a OpenStruct and the return is nil. Now it compares nil with string which is false. Awesome. Do we really want such a behavior? What happens to nil in a boolean expression? Anyone knows?
cha1tanya has joined #ruby
<keymone> _br_: in ruby nil and false are evaluated to false during boolean checks
<keymone> _br_: everything else is evaluated to true
ABK has quit [Ping timeout: 245 seconds]
jcromartie has joined #ruby
moosya has quit [Quit: moosya]
freeayu1 has quit [Read error: Connection reset by peer]
ABK has joined #ruby
<_br_> keymone: I see. Quite difficult to debug though ;|
becom33 has joined #ruby
`brendan has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
`brendan has joined #ruby
<keymone> _br_: well it's quite simple when you know it really. just don't use nil as a value, use it as it was intended - absence of a value
vectorshelve has quit [Ping timeout: 245 seconds]
<_br_> keymone: well in my case actually it was a typo in the ostruct key -.-
baroquebobcat has joined #ruby
<keymone> i guess you could tell openstruct to raise exception when non-existing key is requested
<_br_> keymone: anyway thanks for the support ! :)
<keymone> like use .fetch instead of [] on a hash - that will raise exception and you will spot the problem immidiately
<keymone> _br_: cheers
<_br_> Oh, .fetch, thats interesting have to remember that one ..
ABK has quit [Ping timeout: 256 seconds]
replore_ has joined #ruby
schaerli has quit [Remote host closed the connection]
freeayu1 has joined #ruby
nipra has quit [Ping timeout: 244 seconds]
IPGlider has joined #ruby
snearch has quit [Quit: Verlassend]
<becom33> in this https://gist.github.com/c8ccda257f8ecd8234db I only search for they , I want a general search in key and value both . even the half of search value is in the key it should come as a result
looopy has quit [Remote host closed the connection]
noganex has quit [Ping timeout: 244 seconds]
iamjarvo has quit [Ping timeout: 244 seconds]
* becom33 ? anyone ?
zomgbie has joined #ruby
<carloslopes> becom33: wait a second, i'm testing here a possible solution
<becom33> sure
tomb_ has joined #ruby
Poapfel has quit [Quit: Need a new quit message? Why not Zoidberg?"]
noganex has joined #ruby
nlc has quit [Quit: Leaving]
berserkr has quit [Quit: Leaving.]
znake has quit [Quit: znake]
wangr has joined #ruby
Poapfel has joined #ruby
nikhil_ has joined #ruby
schaerli has joined #ruby
<carloslopes> becom33: you are looking for something like this: hash.each { |k,v| puts "#{k}: #{v}" if k =~ /#{lis}/ || v =~ /#{lis}/ }
<carloslopes> ?
<carloslopes> are you looking*
Criztian has joined #ruby
binaryplease has quit [Quit: WeeChat 0.3.7]
<apeiros> move /#{lis}/ outside the loop
<carloslopes> apeiros: yeah.. it's better, make a regexp var and use it inside the block :)
nowthatsamatt has joined #ruby
nowthatsamatt has left #ruby [#ruby]
ABK has joined #ruby
caveat- has quit [Ping timeout: 265 seconds]
DuoSRX has joined #ruby
binaryplease has joined #ruby
binaryplease has quit [Client Quit]
jesly has joined #ruby
RegEchse has joined #ruby
schaerli has quit [Remote host closed the connection]
abionic has joined #ruby
jgarvey has joined #ruby
wvms has left #ruby [#ruby]
ABK has quit [Ping timeout: 245 seconds]
fr0gprince_ has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
igaiga has joined #ruby
dv310p3r has joined #ruby
fr0gprince_ has joined #ruby
tomzx has joined #ruby
caveat- has joined #ruby
hynkle has joined #ruby
jesly has quit [Remote host closed the connection]
yoklov has joined #ruby
snearch has joined #ruby
fr0gprince_ has quit [Ping timeout: 248 seconds]
ChampS_ has joined #ruby
ChampS_ has quit [Client Quit]
saschagehlich has quit [Quit: saschagehlich]
ChampS666 has quit [Ping timeout: 250 seconds]
tcopp has joined #ruby
zinjacoder has joined #ruby
twock has joined #ruby
mvangala_ has quit [Ping timeout: 265 seconds]
jcromartie has quit [Ping timeout: 245 seconds]
replore_ has quit [Remote host closed the connection]
bglusman has joined #ruby
amalvagomes has joined #ruby
fr0gprince_ has joined #ruby
igaiga has quit [Remote host closed the connection]
replore has joined #ruby
schaerli has joined #ruby
adac has quit [Ping timeout: 260 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
Sulaiman has quit [Quit: Leaving]
RegEchse has quit [Read error: Connection timed out]
chson has quit [Remote host closed the connection]
lolmaus has quit []
twock has quit [Quit: Lost terminal]
Liothen_ has joined #ruby
Liothen has quit [Ping timeout: 245 seconds]
<_br_> Does anyone know why you get an "DataMapper::ImmutableError: Immutable resource cannot be modified" if you get a record from dm-redis-adapter with "MyClass.first( :a => "b" )" ? Is this a bug? How am I supposed to update a record?
<apeiros> given that it says that the resource was immutable, I'd say you're supposed to not update it at all
<apeiros> but I know neither DM nor redis well
tomzx has quit [Read error: Operation timed out]
yoklov has quit [Quit: computer sleeping]
krusty_ar_ has joined #ruby
jrist-afk is now known as jrist
nlc has joined #ruby
krusty_ar has quit [Ping timeout: 265 seconds]
aibo has joined #ruby
<_br_> apeiros: Hm, I think so as well, but its a bit weird, first to remove then to recreate then entire record. Going through the source of dm-redis-adapter there is a update function, so it shouldn't be an issue of redis. Weird.
DuoSRX has quit [Remote host closed the connection]
<carloslopes> _br_: maybe some wrong db configuration :/
DuoSRX has joined #ruby
RegEchse has joined #ruby
d3vic3 has quit [Ping timeout: 244 seconds]
theRoUS has quit [Ping timeout: 260 seconds]
d3vic3 has joined #ruby
schaerli has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
pu22l3r has joined #ruby
Ankhers has joined #ruby
nfk has quit [Ping timeout: 245 seconds]
sbanwart has joined #ruby
iocor has joined #ruby
elhu has quit [Ping timeout: 252 seconds]
uris has joined #ruby
nilg` has joined #ruby
<_br_> carloslopes: Interestingly no, if I work directly with redis it works fine. Seems this is an issue of dm-redis-adapter. Maybe a #bug. Need to dig down into this.
<_br_> apeiros: carloslopes: thanks for the comments!
roolo has joined #ruby
ph^ has joined #ruby
ElitestFX has joined #ruby
<carloslopes> _br_: ;)
awarner has joined #ruby
mucker has quit [Quit: Lost terminal]
indian has joined #ruby
indian has quit [Changing host]
indian has joined #ruby
jshsu has quit [Read error: Operation timed out]
Axsuul has quit [Ping timeout: 248 seconds]
jshsu has joined #ruby
nfk has joined #ruby
binaryplease has joined #ruby
d3vic3 has quit [Ping timeout: 248 seconds]
nikhil_ has quit [Read error: Connection reset by peer]
nikhil_ has joined #ruby
d3vic3 has joined #ruby
joshman_ has joined #ruby
serroba has joined #ruby
C0deMave_ has joined #ruby
schaerli has joined #ruby
supergiantrobot_ has quit [Quit: supergiantrobot_]
clockwize has quit [Quit: clockwize]
nilg` has quit [Remote host closed the connection]
Ankhers has quit [Remote host closed the connection]
C0deMave_ is now known as C0deMaver1ck
C0deMaver1ck has quit [Changing host]
C0deMaver1ck has joined #ruby
Ankhers has joined #ruby
dekroning has quit [Ping timeout: 265 seconds]
akemrir has quit [Quit: WeeChat 0.3.7]
schaerli has quit [Remote host closed the connection]
markp has joined #ruby
maesbn has quit [Remote host closed the connection]
bosphorus has joined #ruby
serroba_ has joined #ruby
serroba has quit [Ping timeout: 245 seconds]
schaerli has joined #ruby
supergiantrobot_ has joined #ruby
zemanel has joined #ruby
adac has joined #ruby
siksia has quit [Ping timeout: 246 seconds]
kevinbond has joined #ruby
mvangala_ has joined #ruby
schaerli has quit [Remote host closed the connection]
tayy has quit [Remote host closed the connection]
Synthead has joined #ruby
siksia has joined #ruby
mvangal__ has joined #ruby
mario-goulart has joined #ruby
PaciFisT has joined #ruby
Guest79767 is now known as davidw
davidw has quit [Changing host]
davidw has joined #ruby
supergiantrobot_ has quit [Ping timeout: 244 seconds]
binaryplease has quit [Ping timeout: 248 seconds]
<mario-goulart> Hi. Is http://www.yotabanana.com/hiki/ruby-gettext.html the official home of the gettext bindings?
digitalcakestudi has joined #ruby
dv310p3r has quit [Ping timeout: 248 seconds]
mvangala_ has quit [Ping timeout: 245 seconds]
binaryplease has joined #ruby
xaq has joined #ruby
mvangala has quit [Read error: Connection reset by peer]
mvangala has joined #ruby
maesbn has joined #ruby
<apeiros> mario-goulart: the gem links http://ruby-gettext.github.com/
emmanuelux has joined #ruby
chson has joined #ruby
<mario-goulart> thanks apeiros. I'm wondering if http://rubydoc.info/gems/gettext/2.2.1/GetText/TextDomain:translate_singluar_message is a bug or not.
markp has quit [Quit: Leaving]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has left #ruby ["Leaving"]
supergiantrobot_ has joined #ruby
iocor has quit [Quit: Computer has gone to sleep.]
<apeiros> mario-goulart: is that supposed to be a question?
sec_ has left #ruby [#ruby]
<mario-goulart> apeiros: `translate_singluar_message' looks like a typo. I can't find any reference to "singluar" in gettext's code.
<apeiros> aha, you're refering to 'singluar', yes. sounds like a bug.
supergiantrobot_ has quit [Remote host closed the connection]
iamjarvo has joined #ruby
theRoUS has joined #ruby
test34- has quit [Ping timeout: 248 seconds]
supergiantrobot_ has joined #ruby
<mario-goulart> It seems that it is a typo that got stuck in the code.
<mario-goulart> $ git grep singluar |wc -l
<mario-goulart> 11
jeebster has joined #ruby
rasbonics has joined #ruby
liluo has quit [Remote host closed the connection]
dkr has joined #ruby
Jackneill has joined #ruby
christianrojas has joined #ruby
<apeiros> def translate_singluar_message(*a,&b); warn "translate_singluar_message is a typo, use translate_singular_message instead. this method will be removed in version X.Y.Z"; translate_singular_message(*a,&b); end
<apeiros> that'd be my suggested patch
serroba_ has quit [Quit: This computer has gone to sleep]
<apeiros> or part of my suggested patch
dkr has left #ruby [#ruby]
IPGlider has quit [Ping timeout: 245 seconds]
ph^ has quit [Remote host closed the connection]
RegEchse has quit [Read error: Connection timed out]
S2kx has quit [Quit: Leaving]
IPGlider has joined #ruby
dv310p3r has joined #ruby
maesbn has quit [Remote host closed the connection]
binaryplease has quit [Quit: WeeChat 0.3.7]
mlue has joined #ruby
S1kx has joined #ruby
adac has quit [Ping timeout: 245 seconds]
CheeToS has joined #ruby
sspiff has quit [Remote host closed the connection]
sie has joined #ruby
dev_ has joined #ruby
<sie> http://sprunge.us/HGSL?rb <-- how to write this nicelier?
<sie> The merge part
<sie> and return
<mario-goulart> Thanks apeiros. Sorry for the stupid questions. I'm not used to the ruby ecosystem. I just started working on a project that uses ruby-gettext and stumbled upon that method name in an error message, so I instantly thought that "translate_singluar_message" could be a call to an unbound method or something.
<apeiros> mario-goulart: my problem was that you didn't give a) any detail and b) didn't tell what your question was (i.e., *what* the supposed bug was…)
<apeiros> mario-goulart: but you're welcome
<mario-goulart> Indeed. My bad. Thanks for your help.
swankier has quit [Read error: Connection reset by peer]
lsone has quit [Read error: Operation timed out]
hynkle has quit [Read error: Connection reset by peer]
lsone has joined #ruby
hynkle has joined #ruby
adac has joined #ruby
abionic has quit [Ping timeout: 252 seconds]
christianrojas has quit [Ping timeout: 244 seconds]
cha1tanya has quit [Quit: Leaving]
adac has quit [Ping timeout: 260 seconds]
C0deMaver1ck has quit [Ping timeout: 245 seconds]
jonathanwallace has joined #ruby
alexim has joined #ruby
darthdeus has joined #ruby
adac has joined #ruby
jonathan_ has quit [Ping timeout: 265 seconds]
freeayu1 has quit [Quit: 离开]
fayimora has joined #ruby
schaerli has joined #ruby
<becom33> what could this mean ? c.to_s(16)
<hoelzro> probably format a number as hex
* hoelzro doesn't know
<fayimora> please how do i increment the value of a key in a hash
<becom33> then why do I get to_s': wrong number of arguments (1 for 0) (ArgumentError)
<fayimora> I tried my_hash['key'] += 1 but I get NoMethodError because of the + which is weird
C0deMaver1ck has joined #ruby
<hoelzro> fayimora: what class is my_hash['key']?
<hoelzro> becom33: then it's broken code =)
<hoelzro> maybe it used to work, but no longer does?
<apeiros> becom33: probably because you're not calling it on a number
<hoelzro> apeiros: oh, good call.
<apeiros> fayimora: probably your key is empty (nil)
<apeiros> fayimora: first thing to do is to read the exception you get carefully.
<fayimora> hoelzro: sorry I don't understand. THe class for what? http://pastie.org/4008410
<apeiros> something like "NoMethodError: undefined method `+' for nil:NilClass" is *very* telling
<hoelzro> indeed.
<fayimora> apeiros: yes it is but I expected it to create the entry if it doesn't exist
<apeiros> fayimora: what does nil+1 give?
<apeiros> fayimora: and you expected it to create the entry with what value?
<apeiros> even if ruby is totally awesome, it can't yet read your mind to determine what you'd like it to do. you still have to tell it.
<fayimora> Hmmm So how do I go about this then? Am writing a simplified version of a word frequency counter
<apeiros> fayimora: in case of counting, Hash.new(0) instead of {} helps
<apeiros> fayimora: but read the docs of Hash::new carefully.
<fayimora> ok
<fayimora> thanks
alexim has quit [Quit: bye]
<becom33> anyone ???
schaerli has quit [Remote host closed the connection]
carlyle has joined #ruby
mpereira has joined #ruby
binaryplease has joined #ruby
<barnex> becom33: what it's supposed to do?
<becom33> barnex, need a hex value
<barnex> hex value of a letter?
<becom33> yes
christianrojas has joined #ruby
<barnex> 'i'.ord.to_s(16)
<barnex> to_a makes stuff into arrays
CharlieSu has left #ruby [#ruby]
pazustep has joined #ruby
amacgregor_osx has quit [Read error: Connection reset by peer]
bmers has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
jonathanwallace has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
twock has joined #ruby
socomm has joined #ruby
drspin has joined #ruby
kil0byte has quit [Ping timeout: 240 seconds]
<socomm> Hello I'm a beginner and am wondering if anyone can recommend me a good book to learn ruby.
savage- has quit [Remote host closed the connection]
Raduwen has joined #ruby
<barnex> do you know other programming languages?
<socomm> barnex: currenctly programming in bash, not sure if that counts.
kil0byte has joined #ruby
<hoelzro> socomm: The Ruby Programming Language is quite good, but I think it caters to those with an already strong programming background
ericcoleman has joined #ruby
davidcelis has quit [Quit: K-Lined]
senny has quit [Remote host closed the connection]
<barnex> well, if you know what is 'variable' or 'regex' The Ruby Programming Language will serve you well
<barnex> Yup
fayimora has quit [Ping timeout: 264 seconds]
<barnex> It will teach you ruby, not how to program
looopy has joined #ruby
<socomm> ill check it out, thanks guys
siksia has quit [Ping timeout: 245 seconds]
<deryl> The Well Grounded Rubyist
<deryl> by David Black
Ricky_Ricardo has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
<twock> Ooh, what about Why's Poignant Guide to Ruby?
<twock> It's nice.
adac has quit [Ping timeout: 248 seconds]
daniel_hinojosa has joined #ruby
fbernier has joined #ruby
siksia has joined #ruby
<Ricky_Ricardo> Have they maintained that book?
JohnBat26 has quit [Ping timeout: 252 seconds]
<Ricky_Ricardo> I haven't looked at it in years, but I've been curious if its kept up to date with 1.9
alexim has joined #ruby
cbuxton has joined #ruby
<socomm> twock: looks like its made for kids
<deryl> wouldn't matter. 99% of it would still be applicable and usable in 1.9
carloslopes has quit [Ping timeout: 240 seconds]
cbuxton has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
cbuxton has joined #ruby
ssmoot has joined #ruby
ssmoot has left #ruby [#ruby]
mikepack has joined #ruby
brianpWins has quit [Quit: brianpWins]
adac has joined #ruby
apeiros has quit [Ping timeout: 246 seconds]
Ricky_Ricardo has quit [Quit: Ricky_Ricardo]
apeiros|euruko has joined #ruby
alexim has quit [Quit: sleep]
eywu has joined #ruby
kaneda_ has joined #ruby
Ricky_Ricardo has joined #ruby
azm has joined #ruby
<shevy> the poignant guide is more a piece of art
<shevy> I myself did not like it when I came to ruby though, it only confused me
ph^ has joined #ruby
<ekaleido> i thought it was humorous
<shevy> Ricky_Ricardo, the guide can not be maintained anymore. _why left, and one can not replace a visionnaire. see shoes, it's going down too
<ekaleido> but it got in the way of learning
<shevy> yeah
<shevy> there are also those who think the opposite though
<shevy> "I got interested in ruby when I saw the poignant guide"
adaccada has joined #ruby
<shevy> haskell has something nice... it's like a mixture of poignant guide + learn to program, online... some tutorial
schaerli has joined #ruby
adac has quit [Ping timeout: 244 seconds]
hasrb has joined #ruby
Helius has quit [Remote host closed the connection]
albemuth has joined #ruby
macmartine has joined #ruby
ipoval has quit [Quit: ipoval]
macmartine has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
macmartine has joined #ruby
mneorr has joined #ruby
schaerli has quit [Remote host closed the connection]
hoelzro is now known as hoelzro|away
mbk_ has quit [Ping timeout: 244 seconds]
binaryplease has quit [Quit: WeeChat 0.3.7]
tannerozzy has joined #ruby
adaccada has quit [Quit: Leaving]
<theRoUS> how can i tell if $stdin and $stdout are pointing to the same device? (only if #tty? => true for both)
davidcelis has joined #ruby
Ricky_Ricardo has quit [Quit: Ricky_Ricardo]
adamkittelson has joined #ruby
jgrevich has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
werdnativ has quit [Read error: No route to host]
werdnativ has joined #ruby
<Sigma00> barnex: you wanted string to hex right? "a".hex ....
jenglish has quit [Remote host closed the connection]
maesbn has joined #ruby
<tannerozzy> What's the best way to learn ruby? Good old textbooks? Videos? Workbooks? My boss just asked me to learn some Ruby to help him with a project (he knows none).
<theRoUS> i want to send the tty some control sequence queries and read the responses, but first i want to make sure that $stdin and $stdout are referring to the same terminal
adamkittelson has quit [Remote host closed the connection]
maesbn has quit [Remote host closed the connection]
<theRoUS> tannerozzy: i found the apress book to be quite good
zzak has joined #ruby
<tannerozzy> It felt sorta like "Hey, can you learn French real quick…"
<graspee> the best way to learn ruby is to have a desire to learn. then stand in the forest in the cool evening breeze and open your mind
<graspee> the foxes will approach you and impart their natural wisdom
zzak has left #ruby [#ruby]
<graspee> or read the pickaxe book
pradeepto has quit [Changing host]
pradeepto has joined #ruby
wilmoore has joined #ruby
<ex0a> tannerozzy: i was referred to Pragmatic Bookshelf Programming Ruby
<ex0a> but i haven't read it yet so i can't comment on it
<tannerozzy> Oh I do. I want to learn as much code as possible. I just graduated with a film degree, and only after do I realize how much I just wanted to be a programmer.
<Sigma00> tannerozzy: I've had decent mileage just reading a tutorial online and then grabbing source and going to town with it. Currently working on a bot and it's teaching me SO MUCH :P
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<graspee> thas is the pickaxe book, ex0a
andrewhl has joined #ruby
apeiros|euruko has quit [Remote host closed the connection]
schovi has quit [Remote host closed the connection]
<Sigma00> I wouldn't recommend that method if you don't already know how to program tough
<Sigma00> though*
<shevy> tannerozzy best way (1) work through chris pine tutorial at least once, then immediately start (2) which is to write a ruby script on your own. doesnt matter what it should do... it should have and solve a useful task for you though
<shevy> just reading books alone wont be enough. the pickaxe is a nice reference book though, it has the whole standard lib of ruby in the appendix including examples and explanations
<graspee> reading books alone is enough
albemuth has quit [Quit: Computer has gone to sleep.]
<shevy> also you should ask graspee for help so he can help you and teach better rbuy
<graspee> you can learn from the pickaxe book easily. i did
<Sigma00> those of you that use IDEs... which one do you like?
<graspee> geany
<shevy> Sigma00, bluefish 1.0.7
<tannerozzy> Wow. I've also never used IRC before. A programmer in my office just got me into it this morning. You guys are all super helpful, thanks!
<Sigma00> shevy: I'll check it out, thanks
<Sigma00> I've been using RubyMine, and it's been pretty good
<shevy> Sigma00, it's not an IDE though hehehe :D
<Sigma00> Aptana sucks balls <_<
<shevy> Hanmac uses eclipse for C++
<Sigma00> oh, I see it
<shevy> I find those IDEs way too huge
hasrb has quit [Remote host closed the connection]
* Sigma00 shakes a fist at shevy
<shevy> for ruby at least
thone has joined #ruby
<Sigma00> I'm just a whore for autocomplete and intellisense stuff
<shevy> yeah
<graspee> is there something that does that for ruby?
<shevy> bluefish 1.0.7 is outdated nowadays, but the features I want from other editors just arent there in the way I want them
<Sigma00> RubyMine does a semi-decent job at intellisense
<shevy> I am going to wait for a modular editor which I can have complete control over what features it has
<graspee> can i type the name of a method and it will show me the parameters?
<Sigma00> shevy: boxcar?
<shevy> Sigma00, never heard that word before
maesbn has joined #ruby
<Sigma00> graspee: yes, as long as it's a method you've created or a Kernel method
<Sigma00> kernel/object/etc
<graspee> i see. i'll give it a shpin then thanks
<graspee> the only completion that geany has is "words you have typed in the files i have loaded"
maesbn has quit [Remote host closed the connection]
CannedCorn has joined #ruby
<graspee> but otherwise, geany is a nice editor with the folding and the tabs and the syntax highlighting
<Sigma00> I wish ruby was optionally typed
cha1tanya has quit [Quit: Leaving]
<graspee> and the concept of a project, which is just multiple files to load together, but isn't always supported by tabbed editors, weirdly
thone_ has quit [Ping timeout: 252 seconds]
<Sigma00> shevy: sory, I meant Redcar, not Boxcar. It's a modular IDE http://redcareditor.com/
darthdeus has quit [Quit: Leaving...]
<Sigma00> sorry*
<graspee> pfft! rubymine costs money!
<graspee> die! die! die!
<graspee> i'm going to get all stallman on its ass
<shevy> ah
<shevy> I know redcar
<Sigma00> graspee: why do you think I'm asking for people's favorite IDE? :P
<shevy> I tried it once... I dont know, it was not that nice to use
<Sigma00> well, it's not done yet, could be they fixed your issues
kil0byte_ has joined #ruby
<graspee> well geany has everything except intellisense
<Sigma00> I haven't used it, actually. Forgot it existed until right now
<Ankhers> emacs... go
<shevy> geany has horrible ruby syntax highlighting by default
<graspee> it doesn't
<shevy> it does
<graspee> prove it
<Ankhers> ...
<graspee> and i'll prove otherwise!
davidw has quit [Ping timeout: 252 seconds]
<shevy> graspee yup I will. a moment
<graspee> same
univers has joined #ruby
ncopa has quit [Quit: Leaving]
brianpWins has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
BeLucid has quit [Remote host closed the connection]
schovi has joined #ruby
<Sigma00> ... that highlighting is only marginally useful
<Ankhers> agreed...
knightblader has joined #ruby
kil0byte has quit [Ping timeout: 265 seconds]
<graspee> what else do you want from it?
wallerdev has joined #ruby
dtang has joined #ruby
Foxandxss has joined #ruby
<Ankhers> variables
<Ankhers> Also, a different colour scheme...
<graspee> what about variables?
mikeg has joined #ruby
<Ankhers> colour them...
<graspee> why?
<graspee> if everything is coloured your screen will end up like a fruit salad
<graspee> and you can change the colours easily enough
<workmad3> graspee: looks a bit ugly :)
MasterIdler has joined #ruby
<graspee> i wouldn't count that as "horrible ruby syntax highlightying by default"
<Ankhers> Just use emacs.
<graspee> emacs sucks on dvorak
<banisterfiend> graspee: you grow out of geany pretty quickly
<graspee> into what, banisterfiend ?
<workmad3> graspee: vim
<Ankhers> No it doesn't... just change your key bindings...
jim_r0x has joined #ruby
<banisterfiend> graspee: into either vim, emacs, usually
<workmad3> graspee: and don't say it sucks on dvorak too, because I'm sat here on dvorak and have no issues :P
<banisterfiend> graspee: and emacs does not suck on dvorak, i know heaps of emacs users on dvorak
<graspee> you find typing the key sequence to leave emacs easy?
<Sigma00> I do find myself programming in vim a lot
<graspee> emacs is designed for qwerty
<graspee> if you find it easy on dvorak good for you, but it's designed for qwerty
<graspee> you only have to look at where the keys are on the keyboard
<workmad3> graspee: oh, that's a pita in emacs no matter what your layout :P
<Ankhers> and yet you can change all of your keybindings...
<skryking> I've kind of had sublime text 2 grow on me
<banisterfiend> graspee: that hasn't stopped many top rubyists including zenspider making very effective use of emacs on dvorak ;)
<graspee> i've had stuff about zenspider
<graspee> heard*
<banisterfiend> graspee: so i fear you overstate the difficulty in using emacs on dvorak :)
<banisterfiend> graspee: Yeah: mainly he's possibly one of the most productive ruby programmers ever
<graspee> i can't overstate the difficulty because i mean the difficulty for me
<workmad3> graspee: I put that exit sequence down to the mindset that you should never want to exit emacs :)
<graspee> actually i heard he was a monster who threw people out of ruby-lang when they disagreed with him
<banisterfiend> graspee: what has that got to do with emacs on dvorak? even if its' true (which it isnt) it's completely irrelevant
<graspee> whatever
theRoUS has quit [Remote host closed the connection]
schaerli has joined #ruby
<graspee> i don't want to continue this discussion that feels like two people leapt out of the bushes and started trying to club me to death
Khyron320 has quit [Quit: Leaving]
tommyvyo has joined #ruby
<Ankhers> You are just stating things, but can't backup your claims.
theRoUS has joined #ruby
<banisterfiend> graspee: np, and btw, idiomatic ruby is double-spaced (not quad-spaced) :)
<graspee> this isn't a court of law ffs
<graspee> i gave my reasons
<shevy> it is true. zenspider kicked out people who disagreed with him before from #ruby-lang.
<banisterfiend> graspee: read back over the converastion, no one said something rude to you
<banisterfiend> shevy: still irrelevant :)
<Ankhers> You gave your opinion on emacs, we gave you our opinions on your opinions..
Khyron320 has joined #ruby
<graspee> well now i have them so you don't have to give me them ever again
jenglish has joined #ruby
<Ankhers> On a semi related note, to any emacs/bim users in here. Has anyone tried evil mode for emacs?
<Ankhers> emacs/vim users rather...
prtksxna has joined #ruby
<banisterfiend> Ankhers: what's evil mode?
<graspee> it's a vi mode
zemanel has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
<banisterfiend> Ankhers: no, im pretty happy with the emacs keybindings
<Ankhers> From the evil home page: Evil is an extensible vi layer for Emacs. It emulates the main features of Vim, and provides facilities for writing custom extensions.
siksia has quit [Ping timeout: 245 seconds]
<Ankhers> As am I. I've switched from vim to emacs. I was just wondering about people having actually used it.
<shevy> emacs is a good OS
<Ankhers> agreed
<shevy> hmmm
<shevy> can you use ruby to extend either emacs or vim?
<banisterfiend> Ankhers: what made u switch to emacs and what do u enjoy about emacs that you couldn't find in vim?
<workmad3> shevy: you can do ruby plugins for vim
<workmad3> shevy: but they're a PITA
<shevy> :(
<graspee> is there a law against using 4 spaces?
<shevy> I'll just wait two years, then pry-editor will replace both vim and emacs
<Ankhers> banisterfiend: The main thing that got me to switch is that when I started in the position I'm at now, I paired a lot with an emacs user.
<shevy> 4 spaces are 2 spaces too many, for indents
<graspee> i'll indent how i like
<graspee> it's my code. it's for me
jenglish has quit [Remote host closed the connection]
<workmad3> shevy: you need vim built with ruby support, which the standard vim on mac isn't, and is annoying and flakey on ubuntu
fserb has joined #ruby
<graspee> and i like 4 spaces
<banisterfiend> Asher: so it's just out of convenience not because you actually found any features of emacs attractive?
jonathan_ has joined #ruby
<banisterfiend> Ankhers: *
<graspee> i was showing the screenshot to show the syntax highlighting, not to get comments about my indenting style
<banisterfiend> graspee: quit being so defensive
dcope has joined #ruby
<Ankhers> banisterfiend: I also do a fair amount of work with interns, and emacs is a lot easier to pickup than vim.
<graspee> picking up on that is just taking a cheap opportunity to get another jab in at me
fabrice31 has quit [Remote host closed the connection]
<banisterfiend> graspee: he's just giving advice
<graspee> and make yourself feel superior
Urth|Away is now known as Urthwhyte
<graspee> i was talking to you, banisterfiend
<banisterfiend> graspee: no, he's just telling you idiomatic ruby style. take it or leave it, no need to act like a bitch
<workmad3> graspee: ruby community is pretty standardised around 2 space indents
<graspee> don't call me a bitch
<shevy> you can put more (code) information / line if you use 2 spaces as indent than 4
<graspee> don't
<graspee> ever
<graspee> call
<graspee> me
<graspee> a
siksia has joined #ruby
<graspee> bitch
<graspee> ok, mate?
<banisterfiend> graspee: call it as i see it ;)
<graspee> got that?
<Ankhers> banisterfiend: I do enjoy both, I can just do a lot more inside emacs than I can in vim. For instance, I'm on this IRC via emacs. I also had some prior experience with lisp, so extending emacs is a lot easier.
<workmad3> graspee: sheesh, it's IRC... insults abound
bigoldrock has joined #ruby
<shevy> Ankhers can you cook inside emacs :)
<graspee> taking stuff to the personal level just shows your character
<workmad3> graspee: if bitch is the worst you get called on IRC, you're doing well :P
<Ankhers> shevy: currently, no. Technically, yes.
<shevy> hehe
<graspee> it's not a competition
Rubinista has quit [Ping timeout: 245 seconds]
<graspee> no insults are necessary. i didn't insult anyone. i don't deserve to get insulted
<shevy> come on guys
<shevy> you are just wasting your time here
fantazo has joined #ruby
<banisterfiend> graspee: i meant 'bitch' in the sense of acting all defensive and whiney, which you were.
<graspee> i can see why so many people have blocked you
<graspee> +1
<banisterfiend> graspee: afaik, about "1" actually :)
<dcope> what is this i don't even.
jonathanwallace has quit [Ping timeout: 250 seconds]
<graspee> why is there always like one person who ruins a whole channel
<graspee> 99% great people and one who spoils it
replore has quit [Remote host closed the connection]
<banisterfiend> graspee: i think right now, you're the 'one' causing most disharmony and annoyance here
<banisterfiend> anyway, waste of time
<Ankhers> dcope: quick summary, graspee mentioned the editor he used, we all said it was bad, he said ours were bad... then he started flaming
<shevy> try to argue with zenspider on #ruby-lang graspee ;)
<workmad3> graspee: the irony is awesome in that statement
<graspee> drop it
kenperkins has joined #ruby
<dcope> Ankhers: what editor?
<Ankhers> dcope: he uses geany, I use emacs, and vim was also tossed out as a suggestion.
<graspee> and Ankhers i didn't "start flaming". one person started flaming and it was banisterfiend
<graspee> one person resorted to personal insult and it wasn't me
<dcope> It's either VIM or Sublime Text 2 for me
<banisterfiend> hehe
<Ankhers> graspee: banisterfiend was giving suggestions on how to clean your code...
<dcope> I prefer ST 2 8-)
adeponte has joined #ruby
<Ankhers> I'm leaving for lunch, don't flame too hard.
<graspee> he was taking a cheap shot at me
<banisterfiend> dcope: you moved from vim to st?
jonathan_ has quit [Remote host closed the connection]
<dcope> banisterfiend: yes
<dcope> st has a `vintage mode` so i can still have VIM modes in st
schaerli has quit [Remote host closed the connection]
<banisterfiend> dcope: is st scriptable and if so in what language?
<dcope> banisterfiend: yes, perl.
<workmad3> dcope: out of curiosity... why do you use ST if the first thing you do is make it act like vim?
<Sigma00> scriptable in brainfsck
<dcope> beats the hell out of vim script :)
<dcope> workmad3: because i like the modes when doing heavy editing
<banisterfiend> dcope: yeah, interesting choice though
<workmad3> dcope: ah, so you like vim-style when doing intensive editing, but a lighter editing, you use more normal ST style?
<workmad3> dcope: interesting :)
<dcope> st has pretty good autocomplete too, which was always hit or miss for me in vim. ctags for obj c was pretty much always borken.
<dcope> workmad3: exactly :)
<workmad3> ctags... I really need to get the hang of that at some point
<banisterfiend> dcope: you code objc in something other than xcode?
<banisterfiend> dcope: i wouldn't dare
<dcope> banisterfiend: i try to as much as possible. xcode is pretty unstable.
<banisterfiend> dcope: i can't imagine the level of autocomplete could be anywhere near xcode, and objc without autocomplete is a nightmare
<dcope> banisterfiend: oh, it's acutally *really* good in ST 2
francisfish has joined #ruby
<banisterfiend> dcope: but u still use IB in xcode i guess?
<dcope> banisterfiend: nope, never :)
<dcope> fwiw, i use xcode all day at my day job
<banisterfiend> dcope: so you hand-code your UIs? :)
<dcope> banisterfiend: yes.
<banisterfiend> lulz
<dcope> banisterfiend: i do a lot of backend work though
<dcope> my current project is a framework
<banisterfiend> just because you never learned IB or because you actually prefer it to IB?
<dcope> banisterfiend: nope, i learned ib
<dcope> i used to use ib back in 08
luxurymode has joined #ruby
<banisterfiend> what's wrong with IB? IB is actually the only part of xcode i really like
<dcope> ib abstracts a lot and causes more problems than it's worth IMO
<dcope> and it doesn't expose every "ui" property on classes
bier has quit [Read error: Operation timed out]
<dcope> but the abstraction is my biggest problem with it
<banisterfiend> dcope: but your UI development cycle must be slow as shit without IB
<Sigma00> IB is actively discouraged if you want fast-scrolling pages in an iPhone, too, right? or is that no longer the case?
<dcope> banisterfiend: not at all
<dcope> Sigma00: that's no longer the case. you use a xib for a cell and still have it fast
<Sigma00> nice
<banisterfiend> dcope: buty you'd have to recompile and run each time u just wanna minutely adjust the position of a button
mdw_ has quit [Remote host closed the connection]
<banisterfiend> dcope: im guessing?
<dcope> banisterfiend: indeed, that's true. but we (i work at an enterprise place) don't do too much custom UI
<banisterfiend> dcope: rubymotion takes an interesting approach though that could be a nicer alternative to IB
<dcope> Everything is pretty standard so it's easy to knock stuff out in code
<dcope> definitely! the repl in rubymotion is very cool and impressive
d3vic3 has quit [Quit: leaving]
CheeToS has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<banisterfiend> dcope: you guys using arc yet?
<dcope> banisterfiend: nope.
<dcope> i'm really dreading converting to that because i don't have faith in the automated conversion tool in xcode heh
<banisterfiend> hehe
<dcope> plus we have to support 4.0
<banisterfiend> arc is pretty cool though block related code can be ugly
<banisterfiend> reassiging a variable to a __weak Blerg * outside the block to prevent retain cycles
<banisterfiend> an object*
<dcope> yup
niklasb has joined #ruby
albemuth has joined #ruby
axl_ has left #ruby [#ruby]
prtksxna has quit [Remote host closed the connection]
<banisterfiend> workmad3: have you noticed #ruby-lang has died over the last year or so
<workmad3> banisterfiend: I never paid much attention to it :)
baroquebobcat has joined #ruby
<shevy> it's the traffic frequency really
kevinbond has quit [Quit: kevinbond]
<shevy> you get worse questions here, but you also get more questions here. so people can learn more (if you sum things up... some people on #ruby-lang are never on #ruby and vice versa)
<shevy> we'd just have to lure some folks... like drbrain!
nfluxx has joined #ruby
jonathanwallace has joined #ruby
<shevy> you should have seen apeiros response what he said about #ruby-de and left there
<shevy> too much line noise for him / off topic talk
<shevy> :D
<banisterfiend> shevy: i thought #ruby-de was pretty dead too
* Sigma00 connects a live wire to the audio input for the channel
<banisterfiend> also, it's in german, which is an ancient medieval language that no one really understands anyway
zinjacoder has quit [Read error: Connection reset by peer]
pwned has quit [Quit: Lost terminal]
<shevy> yeah banisterfiend but it was very offtopic. they talked about reallife stuff, which is fine, but they never really talked about ruby at all, so it was kinda a waste of time to be there when you wanted to hear more about ruby
yoklov has joined #ruby
<banisterfiend> shevy: sounds like #pry ;)
<shevy> well pry is in ruby at least
nfluxx has quit [Client Quit]
kenichi has joined #ruby
<shevy> those guys in #ruby-de who do write ruby code, are usually in #ruby-lang, and sometimes in #ruby at least
<shevy> like chris2 or lianj
zinjacoder has joined #ruby
albemuth has quit [Ping timeout: 244 seconds]
apok has joined #ruby
bier has joined #ruby
schaerli has joined #ruby
billiamii has joined #ruby
schovi has quit [Remote host closed the connection]
simao has quit [Ping timeout: 265 seconds]
werdnativ has quit [Quit: werdnativ]
hamfz_ has joined #ruby
Snugug has joined #ruby
<Snugug> Hey guys, quick question. I've got a fixnum that I need to convert to a floating point if it's an integer (i.e. converting 1 to 1.0). Super new to Ruby, can someone help?
schaerli has quit [Remote host closed the connection]
Progster has quit [Ping timeout: 240 seconds]
ronniy has joined #ruby
<arturaz> 1.to_f
<Snugug> That's it? Cool!
<Snugug> Lemme try
mrsolo has joined #ruby
Snugug has quit [Quit: Snugug]
yoklov has quit [Quit: computer sleeping]
nfluxx has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
sie has quit [Ping timeout: 244 seconds]
mario-goulart has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
Vainoharhainen has quit [Quit: Leaving...]
yekta has quit [Quit: yekta]
gilead has quit [Quit: Leaving]
akem has quit [Read error: Connection reset by peer]
schovi has joined #ruby
nfluxx has quit [Client Quit]
dv310p3r has quit [Ping timeout: 245 seconds]
addi is now known as LittleBrownGuy
tcopp has quit [Quit: Lost terminal]
Criztian has quit [Read error: Connection reset by peer]
Criztian_ has joined #ruby
LittleBrownGuy is now known as I_Stupid_Guy
I_Stupid_Guy is now known as addi
<shevy> arturaz I think you somehow caused him to quit here :P
<Ethan> hi shevy
notjohn has joined #ruby
workmad3 has quit [Ping timeout: 265 seconds]
C0deMave_ has joined #ruby
Guedes has quit [Read error: Connection reset by peer]
<shevy> hi Ethan
zinjacoder has quit [Quit: Peace!]
<shevy> are you the chemical structure C2H4?
<Ethan> Let me check.
<Ethan> Nope, sorry.
akem has joined #ruby
C0deMaver1ck has quit [Ping timeout: 244 seconds]
<shevy> kk ... actually come to think about it, in english it is "ethane" ... only in german it is "ethan" http://en.wikipedia.org/wiki/Ethane
C0deMave_ is now known as C0deMaver1ck
C0deMaver1ck has quit [Changing host]
C0deMaver1ck has joined #ruby
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
<Ethan> this is actually my name anyways
<Ethan> it's Hebrew!
<shevy> :)
<shevy> it is?
<Ethan> yup
<shevy> I always have to think of names like ... "Ethan Hawke"... "River Phoenix" ... when I read that
<Ethan> lol
<shevy> hmm perhaps not so much when I would read "Nathan" or "Nathaniel"
<Ethan> brb
Ethan has quit [Quit: Leaving]
akem has quit [Read error: Connection reset by peer]
yekta has joined #ruby
wallerdev has quit [Quit: wallerdev]
cbuxton has quit [Remote host closed the connection]
Croms has quit [Remote host closed the connection]
akem has joined #ruby
Croms has joined #ruby
mnaser has quit [Remote host closed the connection]
akem has quit [Read error: Connection reset by peer]
LBRapid has joined #ruby
adamkittelson has joined #ruby
francisfish has quit [Remote host closed the connection]
c0rn has joined #ruby
nobitanobi has joined #ruby
kenichi has quit [Remote host closed the connection]
ringotwo has joined #ruby
philo345 has joined #ruby
<philo345> hi
C0deMaver1ck has quit [Read error: Connection reset by peer]
<philo345> i have a problem with %x, it seems not to handle the '$' caractere correctly
ringotwo has quit [Read error: Connection reset by peer]
<philo345> is that normal ?
C0deMaver1ck has joined #ruby
ringotwo has joined #ruby
DuoSRX has quit [Remote host closed the connection]
albemuth has joined #ruby
DuoSRX has joined #ruby
dankest has joined #ruby
mdw has joined #ruby
tommyvyo has joined #ruby
cha1tanya has quit [Quit: Leaving]
akem has joined #ruby
fr0gprince_mac has joined #ruby
khakimov has joined #ruby
elux has joined #ruby
mdw_ has joined #ruby
carloslopes has joined #ruby
akem has quit [Read error: Connection reset by peer]
niklasb has quit [Ping timeout: 265 seconds]
wmoxam has joined #ruby
vikingly has joined #ruby
philo345 has quit [Ping timeout: 245 seconds]
mdw has quit [Ping timeout: 256 seconds]
YokoZar has joined #ruby
<vikingly> Hi! I would like to represent a chain of rules in ruby and wonder if anyone has advice on syntax. A rule is a tuple <when it applies, when it does not apply, what id does when it applies>, and a chain is a numbered sequence of rules monotonically increasing from 0.
ananthakumaran has joined #ruby
fbernier has quit [Ping timeout: 245 seconds]
piotr_ has joined #ruby
kenyabob has joined #ruby
withnale has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0]
werdnativ has joined #ruby
amalvagomes has quit [Ping timeout: 250 seconds]
Ethan has joined #ruby
Ethan has quit [Changing host]
Ethan has joined #ruby
tannerozzy has quit [Quit: tannerozzy]
taterbas_ has joined #ruby
ringotwo has quit [Read error: Connection reset by peer]
nfluxx has joined #ruby
ringotwo has joined #ruby
ringotwo has quit [Read error: Connection reset by peer]
albemuth has quit [Ping timeout: 248 seconds]
akem has joined #ruby
Morkel has quit [Quit: Morkel]
ringotwo has joined #ruby
YokoZar has left #ruby [#ruby]
xpot-station has joined #ruby
[edu] has joined #ruby
[edu] has left #ruby [#ruby]
mdw_ has quit [Remote host closed the connection]
RegEchse has joined #ruby
xaq_ has joined #ruby
albemuth has joined #ruby
akem has quit [Read error: Connection reset by peer]
looopy has quit [Remote host closed the connection]
zommi has quit [Remote host closed the connection]
rmascarenhas has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
ananthakumaran has joined #ruby
axl_ has joined #ruby
kenyabob has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
xaq has quit [Ping timeout: 244 seconds]
yuhuuuu has joined #ruby
amalvagomes has joined #ruby
ringotwo has quit [Read error: Connection reset by peer]
yuhuuuu has left #ruby [#ruby]
ringotwo has joined #ruby
Urthwhyte is now known as Urth|Away
looopy has joined #ruby
xaq has joined #ruby
ananthakumaran has quit [Client Quit]
imami|afk is now known as banseljaj
vitoravelino is now known as vitoravelino`afk
xaq_ has quit [Ping timeout: 248 seconds]
ringotwo has quit [Read error: Connection reset by peer]
ringotwo has joined #ruby
wallerdev has joined #ruby
ramblex_ has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
ringotwo has quit [Read error: Connection reset by peer]
ringotwo has joined #ruby
Urth|Away is now known as Urthwhyte
jenrzzz-mac has joined #ruby
mneorr has quit [Remote host closed the connection]
ramblex has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
savage- has joined #ruby
fserb has quit [Quit: ttyl]
ramblex_ has quit [Ping timeout: 245 seconds]
rmascarenhas has quit [Quit: leaving]
Eldariof59-ru has joined #ruby
fayimora has joined #ruby
Solnse has joined #ruby
fayimora has quit [Client Quit]
jim_r0x has left #ruby ["Leaving"]
Aaton_off is now known as Aaton
khakimov has quit [Quit: Computer has gone to sleep.]
jenrzzz-mac has quit [Quit: jenrzzz-mac]
rippa has joined #ruby
kenyabob has joined #ruby
<kenyabob> Any way I can call a function and not wait for it to complete
Dennis has joined #ruby
sepp2k has joined #ruby
<xea_> ttp://www.ruby-doc.org/core-1.9.3/Thread.html
<xea_> h*
taterbas_ has quit [Quit: Computer has gone to sleep.]
ringotwo has quit [Read error: Connection reset by peer]
ringotwo has joined #ruby
ringotwo has quit [Read error: Connection reset by peer]
Croms has quit [Ping timeout: 252 seconds]
ringotwo has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
yxhuvud has joined #ruby
flip_digits has quit [Ping timeout: 244 seconds]
GhettoCode has joined #ruby
jstarcher has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
flip_digits has joined #ruby
tommyvyo has joined #ruby
<shevy> kenyabob hmm perhaps when you call them in threads
<jstarcher> I've got a ruby script which kicks off a php script on my server in a loop so each iteration (based on a sql count() query) will make multiple php calls to in turn generate emails. I need to make my ruby script into a daemon so based on the sql count it can call php to generate and send emails when ready.
<shevy> kenyabob, thread = Thread.new { do_long_stuff_here}; thread.join
<jstarcher> can I do this natively in ruby or do I need a gem of some kind?
<shevy> jstarcher, perhaps also a thread
<jstarcher> shevy: does it need to be threaded? Each iteration does a system call to a drush command and is started with &
<shevy> jstarcher not sure how ruby treats the & in system calls hmm
<shevy> I think it will put it into a background job properly
<jstarcher> that's what it seems like based on testing doesn't mean it's fool proof though I supposed
banisterfiend has quit [Read error: Connection reset by peer]
<shevy> as for putting it into a daemon... not sure. there is rubydaemons... http://rubyforge.org/projects/daemons/
<jstarcher> perhaps I should use threads and remove the &
akem has joined #ruby
akem has quit [Read error: Connection reset by peer]
<shevy> oh man, now I remember why I hate rubyforge :(
<shevy> the other pages instantly show you documentation
<shevy> github displays the README by default of a project
kenyabob has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<jstarcher> would python be better suited for this
workmad3_ has joined #ruby
jrist is now known as jrist-afk
seitensei has quit [Ping timeout: 250 seconds]
<shevy> jstarcher not really sure
<shevy> perhaps python makes it easier
<shevy> it tends to have good documentation
<jstarcher> yeah that's my only issue so far with ruby, not finding very good documentation for this
iamjarvo has quit [Quit: Leaving.]
CannedCorn has quit [Quit: Computer has gone to sleep.]
<shevy> not only there, I think ruby's biggest problem today is a lack of really HIGH quality documentation
<shevy> second biggest problem is that rails got too big :P
emmanuelux has quit [Remote host closed the connection]
CannedCorn has joined #ruby
akem has joined #ruby
<shevy> or in other words, there tends to be a lack of really genius, great projects that are not overshadowed by the rails ecosystem
<shevy> i.e. what you would see today if you would have ruby, subtract all of rails, and then look at the result that is left from that
<wmoxam> shevy: um
<wmoxam> Chef?
<wmoxam> Puppet?
<wmoxam> Homebrew?
<shevy> homebrew is mac only
fermion has quit [Quit: P]
<shevy> wmoxam for a moment I thought you are workmad3_ :\
banisterfiend has joined #ruby
<shevy> cant say much about chef or puppet
<workmad3_> nope, I'm me, not him
<wmoxam> A tree is a tree, not me
<workmad3_> but chef
<workmad3_> although it all depends on how many machines you need to manage
<shevy> 1!
<wmoxam> shevy: Ruby has long been strong for devops types
<shevy> hmm actually that is not true, I also have a windows laptop, but I rarely turn it on
<wmoxam> that's how I started using it
<workmad3_> ruby does seem to be a bit stronger in devops than python nowadays
emmanuelux has joined #ruby
<wmoxam> was python ever that strong in that area?
<workmad3_> I think the python ecosystem managed to prevent really great devops platforms like chef from really taking off
<wmoxam> for me it was perl -> ruby
<workmad3_> it used to be a strong sysadmin scripting tool
<digitalcakestudi> whats a good condition for checking if an object is found in a array? array.has? == someobject ?
<wmoxam> perl was *the* sysadmin scripting tool
<wmoxam> still is in a lot of ways
<workmad3_> you just need to look at the prevalence of python in system scripts for that (especially in ubuntu... python for building grub configs, python for vm building, python in lots of places)
<wmoxam> it's in the base of most OSS *nixes
<workmad3_> yeah, perl is very strong there too
<wmoxam> in the bsd world it's all perl
<workmad3_> :)
<shevy> shows their age
<shevy> :D
<workmad3_> python was certainly making inroads though
looopy has quit [Remote host closed the connection]
<wmoxam> shevy: why throw out shit that works well?
<wmoxam> :p
Dennis has quit [Quit: Linkinus - http://linkinus.com]
Urthwhyte is now known as Urth|Away
<shevy> I dunno... I never felt much joy using perl, opposed to ruby myself, so I am heavily biased against perl today
Croms has joined #ruby
CannedCorn has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<digitalcakestudi> week.includes?(Date.today) ? ("current-week week" : "week") does that look valid assuming I have require date?
<shevy> and I am never going to forgive perl that it allowed that php could exist
<digitalcakestudi> oh wait I see it now
<wmoxam> meh
<shevy> I acknowledge that perl is the old granfather of the other "scripting" languages though
<shevy> *grandfather
<shevy> when Larry was still young and awesome
<shevy> now he is old and not as awesome as he used to be when he was younger
<wmoxam> the main reason that php exists would have still been true if Ruby held perl's position way back when
<Sigma00> digitalcakestudi: no. Remove the ()'s after the ?
<wmoxam> and that reason is easy of setup when hosting
<shevy> yeah wmoxam
<wmoxam> load modphp, done
linduxed has quit [Ping timeout: 246 seconds]
DRCALKIN has joined #ruby
<digitalcakestudi> right, its a rails content_tag thing content_tag(:tr, :class => (week.includes?(Date.today) ? "current-week week" : "week") but even that still does not work
<wmoxam> remember modruby?
<wmoxam> it was terrible
dankest has quit [Quit: Linkinus - http://linkinus.com]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<shevy> yeah
<digitalcakestudi> doh, was one last ) missing at the end
<shevy> digitalcakestudi you really like all the () dont you :P
<shevy> a shower of joy covers me every time I type "("
kevinbond has joined #ruby
<shevy> it reminds me of the awesomeness that lisp is
<digitalcakestudi> I'm still learning ... :S
<shevy> (this(is(valid(lisp
<digitalcakestudi> haha
<Sigma00> )))) damn you
<shevy> :(
<digitalcakestudi> you for got the ;
<Sigma00> k/mark
<Sigma00> whoops
<shevy> the ) really make this uglier
<shevy> what if lisp would have ( and indent? then you could omit the ) perhaps
<shevy> (this
<shevy> (is
<shevy> (valid(
<shevy> oops
<shevy> well you get the idea anyway
<yxhuvud> well, there are lisp variants that have ] as a closeall
<Sigma00> indents as part of the language? yeaaaah no
<digitalcakestudi> week is an array so should it includes? as in week.includes? somearg
pdtpatrick has joined #ruby
ramblex has joined #ruby
<Sigma00> digitalcakestudi: if it's an array of Dates it should work
<shevy> yxhuvud, really? do you mean they use ((( and ))) but also allow ] ? but not [ ?
<shevy> Sigma00 but ... but .... but ...... python is using it! :D
<Sigma00> huh, I guess that moves python a bit lower in my list of languages to learn then
<shevy> digitalcakestudi, yeah though usually array.include? is more common than .includes?
<Sigma00> oh, wait, includes doesn't exist
<shevy> does not?
<yxhuvud> what would be the point of [? makes no senese
<shevy> I thought matz added that when people wanted it at a convention once years ago
fserb has joined #ruby
<Sigma00> shevy: it's only include
<Sigma00> digitalcakestudi: include, without the s
kirun has joined #ruby
<shevy> yxhuvud, dunno... perhaps ... [this is valid lisp ... or (this(is(valid(lisp ... hahaha I am having fun here
<digitalcakestudi> oh
<Sigma00> shevy: I just fired up irb to see if it did. Doesn't
<digitalcakestudi> thanks
<shevy> hmm but I am sure matz added something once... something that would be "proper english"... not sure to which method
kenyabob has joined #ruby
Urth|Away is now known as Urthwhyte
michaelmartinez has joined #ruby
zeromodulus has quit [Remote host closed the connection]
<Sigma00> well, if you want proper english you can add it yourself :P the beauty of ruby
fserb has quit [Client Quit]
<Sigma00> include? does sound like a typo though
dorei has joined #ruby
Freedom_ has joined #ruby
<shevy> btw graspee I just compiled geany (finally), and now made a screenshot. this is the default how geany looks for me when I open a .rb file -> http://oi50.tinypic.com/2ailqhy.jpg
<shevy> your screenshot looks better, but mine really shows that the default, on my system, is really not useful at all for me. on #geany they said one can use geany-mod or plugins and change that, but I was too lazy to do that
<shevy> it has blue, red and black. that is terrible
azm has quit [Ping timeout: 250 seconds]
<shevy> lemme show you how it looks on bluefish 1.0.7 out of the box
linduxed has joined #ruby
jenrzzz-mac has joined #ruby
<davidcelis> what are you all doing here
<davidcelis> it's mother fucking national doughnut day
<davidcelis> go get a doughnut
ciopte7 has joined #ruby
michaelmartinez has left #ruby [#ruby]
spikku has joined #ruby
<wmoxam> doughnut day?!
<shevy> on fluxbox though. if I were to use gnome, both screenshots would look better
SeySayux has quit [Ping timeout: 244 seconds]
fserb has joined #ruby
<spikku> [<-- Ruby newb] So I'm trying to use strptime, the date looks like this '2012/06/01 12:12:12' and I can't seem to use colons in the time format '%H:%M:%S', how to I format for a time like that?
zeromodulus has joined #ruby
queequeg1 has joined #ruby
hadees has joined #ruby
kenyabob has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<davidcelis> strftime
awarner has quit [Ping timeout: 265 seconds]
lorandi_ has joined #ruby
<davidcelis> time.strftime("%Y/%m/%d %H:%m:%S")
<shevy> hehe
<shevy> striptime!
tatsuya_o has quit [Remote host closed the connection]
<shevy> I always knew the day would come when it is striptime time on #ruby
<shevy> who starts?
<davidcelis> sorry, i meant
<davidcelis> time.strftime("%Y/%m/%d %H:%M:%S")
<shevy> yeah man show us the stripped time
ericcoleman has quit [Quit: leaving]
<davidcelis> WOOOOOO
<davidcelis> TAKE IT OFF
<Ankhers> I think I came back at the wrong time..
awarner has joined #ruby
dnyy has joined #ruby
LBRapid has quit [Quit: Farewell...]
Snugug has joined #ruby
rking_ has joined #ruby
tomb_ has quit [Quit: Computer has gone to sleep.]
wangr has quit [Ping timeout: 248 seconds]
kvirani has joined #ruby
ericcoleman has joined #ruby
<atmosx> clear
<atmosx> oops sorry
<atmosx> hello :-)
<shevy> unclear
<atmosx> I forgot a '/'
<shevy> clear/
ericcoleman has quit [Client Quit]
* atmosx INXS - Mystify
lorandi_ has quit [Quit: Leaving]
<atmosx> hahaha that won't work shevyyy
lorandi has quit [Quit: Leaving]
<spikku> Got it, duh, DateTime, not Date! >.<
lorandi has joined #ruby
<spikku> %T is fun too
ericcoleman has joined #ruby
<atmosx> I started reading Quicksilver and got stunned by the 1st chapter entry quote. That was something I was looking a name for a couple of years back.
davorb has joined #ruby
ericcoleman has quit [Client Quit]
* atmosx INXS - The Gift
SeySayux has joined #ruby
kristofferrr has joined #ruby
hamfz_ has quit [Ping timeout: 252 seconds]
<davidcelis> %F %T is a better shortcut, though; time.strftime("%F %T")
addi has quit [Quit: ZNC - http://znc.sourceforge.net]
platzhirsch has joined #ruby
rking_ has left #ruby [#ruby]
<platzhirsch> Naming convention for ruby files? underscore?
zemanel has joined #ruby
<davidcelis> yes
<davidcelis> snake_case
<dorei> how can i check if a method is already defined?
roolo has quit [Quit: Linkinus - http://linkinus.com]
<platzhirsch> haha, that is the name of it? Didn't know there is a counterpart for CamelCase
<eam> is ruby-dbi the right DBI style interface to use?
<Solnse> camels are afraid of snakes.
<davidcelis> dorei: respond_to?
ericcoleman has joined #ruby
adeponte has quit [Ping timeout: 240 seconds]
<davidcelis> dorei: or if it's some method_missing bullshit where someone didn't correctly update respond_to, then you can do obj.methods.include? :method_name
<digitalcakestudi> whats the way to look in a proc and see what it has?
<eam> does ruby ship with a dbi module in the core dist?
<davidcelis> digitalcakestudi: "what it has"?
addi has joined #ruby
<digitalcakestudi> when you put it that way :P
vitoravelino`afk is now known as vitoravelino
snearch has quit [Quit: Verlassend]
<digitalcakestudi> I dont really know what a proc is, I assumed its like a block passed as an argument
cbuxton has joined #ruby
<eam> googling around shows many people using mysql2 -- which doesn't seem to be abstrated at all
workmad3_ has quit [Ping timeout: 245 seconds]
<eam> does everyone really use a database specific module directly in ruby? is that convention?
thecreators has quit [Read error: Connection reset by peer]
<davidcelis> digitalcakestudi: yes a Proc is a block object, but what do you mean "what it has"?
thecreators has joined #ruby
DrShoggoth has joined #ruby
<digitalcakestudi> introspect to see it it has objects ect..
thecreators has quit [Remote host closed the connection]
<digitalcakestudi> see if I can iterate or objects or what have you
<davidcelis> before it's run?
<digitalcakestudi> yeah
<davidcelis> how would you do that in an interpreted language?
<davidcelis> one that is dynamically typed, no less?
<digitalcakestudi> :) science
<davidcelis> i can't imagine a good way to know what kind of object a variable will hold before it's run
yannis has joined #ruby
<davidcelis> you can know where a Proc is defined, you can know its binding, you can know if it's a lambda
fserb has quit [Quit: ttyl]
<digitalcakestudi> thanks for clearing that up
<davidcelis> but yeah, what you're asking is (as far as I know) just impossible in a language like Ruby
andremaha has joined #ruby
theRoUS has quit [Ping timeout: 260 seconds]
krz has joined #ruby
thecreators has joined #ruby
fserb has joined #ruby
c0rn has joined #ruby
carloslopes has quit [Quit: Leaving]
jcromartie has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
<deryl> eam, the gems are for database specificity, but you might want to look at 'sequel' gem. its basically the dbi of the ruby world. and taps is used to convert from db to db. see http://sequel.rubyforge.org for sequel. see https://rubygems.org/gems/taps for taps. basically allows you to transfer db data between dbs when coupled with sequel from what i understand. i've never used taps myself
<vertroa> Does any one know if the pragmatic studio ruby course worth buying?
Jackneill has quit [Remote host closed the connection]
blacktulip has joined #ruby
Progster has joined #ruby
xaxisx has joined #ruby
<dorei> ruby is really fun, but i think all those conventions kill the fun :(
busybox42 has quit [Quit: Leaving.]
erichmenge has joined #ruby
busybox42 has joined #ruby
Morkel has joined #ruby
andremaha has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Urthwhyte is now known as Urth|Away
Morkel has quit [Client Quit]
platzhirsch has left #ruby [#ruby]
Morkel has joined #ruby
bmers has quit [Quit: Linkinus - http://linkinus.com]
Morkel has quit [Client Quit]
Solnse has quit [Read error: No route to host]
jrist-afk is now known as jrist
Morkel has joined #ruby
mneorr_ has joined #ruby
joel has joined #ruby
joel is now known as Guest8500
jenrzzz-mac has quit [Quit: jenrzzz-mac]
crankycoder has quit [Remote host closed the connection]
mneorr has quit [Ping timeout: 250 seconds]
tvw has quit [Read error: Operation timed out]
jenrzzz-mac has joined #ruby
akem has quit [Read error: Connection reset by peer]
pygospa has quit [Ping timeout: 240 seconds]
fflush has joined #ruby
<barnex> Sigma00: well, becom33 wanted string to hec, but thanks anyway :-)
Solnse has joined #ruby
looopy has joined #ruby
pygospa has joined #ruby
akem has joined #ruby
zomgbie has quit [Ping timeout: 250 seconds]
queequeg1 has quit [Quit: leaving]
Freedom_ has quit [Read error: Connection reset by peer]
Freedom__ has joined #ruby
<davidcelis> dorei: what
IPGlider has quit []
Freedom__ has quit [Read error: Connection reset by peer]
Freedom_ has joined #ruby
MrGando has joined #ruby
atmosx has quit [Ping timeout: 240 seconds]
kenichi has joined #ruby
dnyy has quit [Remote host closed the connection]
hynkle has quit [Read error: Connection reset by peer]
Eldariof59-ru has quit []
atmosx has joined #ruby
bfgun has joined #ruby
zeromodulus has quit [Read error: Connection reset by peer]
bosphorus has quit [Remote host closed the connection]
cj3kim has joined #ruby
bfgun has quit [Quit: Leaving]
azm has joined #ruby
nanderoo has quit [Quit: Leaving.]
kiela has joined #ruby
vikingly has quit [Read error: Operation timed out]
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
maesbn has joined #ruby
hynkle has joined #ruby
jimeh has quit [Ping timeout: 260 seconds]
tomb_ has joined #ruby
kristofferrr has quit [Quit: ❤]
schaerli has joined #ruby
zeromodulus has joined #ruby
francisfish has joined #ruby
adeponte has joined #ruby
MrGando has quit [Quit: Computer has gone to sleep.]
dnyy has joined #ruby
quest88 has joined #ruby
francisfish has quit [Remote host closed the connection]
<Veejay> Hey everyone, suppose I have a hash and also have an array with the keys of the hash, ordered in a particular way. Is there an easy way to reorder the hash accoding to the order in the array
<Veejay> Beyond the each on the array and creating a new ordered hash
notjohn_ has joined #ruby
francisfish has joined #ruby
Freedom_ has quit [Quit: Freedom_]
Snugug_ has joined #ruby
<Veejay> If that's not clear, it'd be something like that https://gist.github.com/2854803
Solnse has quit []
francisfish has quit [Remote host closed the connection]
<banisterfiend> Veejay: hey veej what's up, long time no see
notjohn has quit [Ping timeout: 245 seconds]
notjohn_ is now known as notjohn
<banisterfiend> Veejay: not really, order of hash is only really visible during iteration afaicr
Snugug has quit [Ping timeout: 244 seconds]
notjohn has quit [Read error: Connection reset by peer]
notjohn has joined #ruby
<Veejay> Yeah
ericcoleman has quit [Quit: leaving]
<Veejay> I'll tap {|| array.each } that shit
<Veejay> banisterfiend: I'm good
<Veejay> Enjoying the comeback of the sun
<Veejay> I was out in the street
schaerli has quit [Remote host closed the connection]
<Veejay> Street photography for life
yoklov has joined #ruby
alexim has joined #ruby
fayimora has joined #ruby
lorandi has quit [Quit: Leaving]
Snugug_ has quit [Ping timeout: 245 seconds]
<Veejay> banisterfiend: By the way, the pretty printing of all things in pry is spectacular
ringotwo has quit [Remote host closed the connection]
<Veejay> Boy was that nice yesterday when inspecting deeply nested structures
<Veejay> Life-saver
<banisterfiend> Veejay: cool
lorandi has joined #ruby
ringotwo has joined #ruby
<Veejay> Colors and all :')
<banisterfiend> hehe
<banisterfiend> Veejay: and the pager? :)
zastaph has joined #ruby
<Veejay> Yeah, that's good too
pazustep has quit [Remote host closed the connection]
tvw has joined #ruby
<fayimora> am trying to test for an error. I have http://pastie.org/4009890 but I keep on getting unintialized constant error.. I can't seem to inure out the problem
<Veejay> Now I'm waiting for the advent of your secret project that's way more awesome than Pry
C0deMaver1ck has quit [Quit: Leaving...]
<Veejay> Which is in fact so much awesome it's bound to disappoint :/
<Veejay> Fucking hype
<Mon_Ouie> fayimora: What constant and where?
Cpudan80 has joined #ruby
<Cpudan80> Hello folks
<Cpudan80> Is there a foreach where kind of thing in ruby?
C0deMaver1ck has joined #ruby
arturaz has quit [Remote host closed the connection]
DRCALKIN has quit [Ping timeout: 245 seconds]
<banisterfiend> Cpudan80: you mean like list comprehensions?
<fayimora> Mon_Ouie: the error.. http://pastie.org/4009910 thanks
<Cpudan80> banisterfiend: Yeah, something like linq in C#
arturaz has joined #ruby
<Cpudan80> banisterfiend: ex, I only want to enter the loop block for items in the collection of that have a typename == "face"
<Mon_Ouie> WrongNumberOfPlayersError wasn't defined at that point in your code
kickandrew has quit [Read error: Operation timed out]
<banisterfiend> Cpudan80: ruby has this: (1..100).select { |v| v.typename == "face" }
<banisterfiend> oops
<banisterfiend> array.select { |v| v.typename ==
<fayimora> Mon_Ouie: but i defined the class before the method
<banisterfiend> "face" }
raul782 has joined #ruby
<Mon_Ouie> That's not the point, it's not defined when you call #raise_error
<Cpudan80> banisterfiend: hmm ok thanks
Axsuul has joined #ruby
<Mon_Ouie> Maybe even the method you're testing isn't defined
hoelzro|away is now known as hoelzro
<banisterfiend> Cpudan80: show me the equivalent c# code
raul782 has left #ruby [#ruby]
ronniy has quit [Remote host closed the connection]
<Cpudan80> list.ForEach(i => i.Name == "Face"; i.SomeMethod());
<fayimora> Mon_Ouie: Thanks.. I didn't require my file in spec_helper
cableray has joined #ruby
<fayimora> Is there an awesome way to write this =>
<fayimora> raise NoSuchStrategyError unless (s2 == "r" or s2 == "p" or s2 == "s")
<banisterfiend> Cpudan80: wait all that is doing is executing i.someMethod if i.Name == "Face" ?
<banisterfiend> Cpudan80: then do this: list.each { |i| i.some_method if i.name == "face" }
<Cpudan80> ahh
<Cpudan80> ok
<Cpudan80> thanks
<Cpudan80> sorry, im a newb at ruby
ciopte7 has quit [Quit: ciopte7]
<ben_m> Don't have to be sorry, everyone was a newb at Ruby at one point.
atmosx has quit [Ping timeout: 244 seconds]
td123 has joined #ruby
atmosx has joined #ruby
BeLucid has joined #ruby
<shevy> I was born as master
<shevy> when I saw ruby, I instantly saw beauty
<shevy> one does not have to learn beauty
<shevy> one "knows" it
jcromartie has left #ruby [#ruby]
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<sonicpond> fayimora: i usually write those kind of tests as unless ['r', 'p', 's'].include?(s2)
becom33 has quit [Ping timeout: 244 seconds]
zeromodulus has quit [Remote host closed the connection]
davorb has quit [Quit: Going offline, see ya! (www.adiirc.com)]
LiquidInsect has joined #ruby
<fayimora> sonicpond: sweet thanks
jenrzzz-mac has quit [Quit: jenrzzz-mac]
theRoUS has joined #ruby
User_2012_irc has joined #ruby
<fayimora> Do you guys think ruby would support python's indentation style in the future?
<fayimora> I men get rid of the ends or make them optional
<Mon_Ouie> Funny how some people love indentation-based languages and other hate them :p
atmosx has quit [Ping timeout: 248 seconds]
<Mon_Ouie> I don't think Ruby will ever use indentation for parsing though. I doubt you could even do that without breaking existing code
beneggett has joined #ruby
<sonicpond> fayimora: i don't think so, but writing ruby interpreters is all the rage. you should write one and name it \sruby
<fayimora> hehehehehe
<fayimora> Imight gig it a try next year, when am good enough with the language itself
<fayimora> **i might give
<sonicpond> giggity
atmosx has joined #ruby
pridian has joined #ruby
<pridian> hi, how can I launch the ruby command-line? I thought it was just a matter of typing in "ruby" in my terminal but that doesn't really do anything.
<quest88> irb
<quest88> ^ pridian
tewecske has joined #ruby
<sonicpond> pridian: ruby -e 'system("irb")'
<Mon_Ouie> IRB.start
becom33 has joined #ruby
indian has quit [Quit: Leaving]
<Mon_Ouie> pridian: Just ruby runs the interpreter, not the interactive one
<pridian> Cool, thanks :)
nfk has quit [Quit: yawn]
bitvector2 has joined #ruby
seitensei has joined #ruby
bfig has joined #ruby
hydrozen has joined #ruby
hynkle has quit [Quit: hynkle]
magoo has joined #ruby
raul782 has joined #ruby
<bfig> hello. what is a good tutorial on ruby?
thecreators has quit [Quit: thecreators]
<banisterfiend> bfig: google for tryruby and rubymonk
lorandi has quit [Quit: Leaving]
Occult has quit [Quit: Leaving]
alanp has quit [Remote host closed the connection]
balki has quit [Read error: Connection reset by peer]
User_2012_irc has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120420145725]]
<sonicpond> bfig: http://www.rubykoans.com/ is fun if you would like to worship at the altar of tdd.
raul782 has quit [Ping timeout: 260 seconds]
stephenjudkins has joined #ruby
<bfig> tdd yuck
<bfig> what's revolutionary about ruby?
<bfig> (i'm reading through tryruby.org)
<sonicpond> bfig: happiness
<bfig> how is it happier than C++ or any other language?
yekta has quit [Quit: yekta]
theRoUS has quit [Quit: Leaving]
<sonicpond> bfig: the language has no anthropomorphic trait, but humans who use it report that it makes them happy. i can verify this outrageous assertion.
alanp has joined #ruby
balki has joined #ruby
<bfig> i'm willing to give it a shot, i have to make an interpreter for a compilers class i'm taking, but i find the whole notion a bit outrageous
<banisterfiend> bfig: this is what sold me: here's the C code: for (int i=0; i < 10; i ++) { print("%d", i); }
<banisterfiend> bfig: and here is the ruby: 0.upto(10) { |v| puts v }
rippa has quit [Ping timeout: 252 seconds]
<sonicpond> ^ quite right
<bfig> i don't know how that makes much of a difference
hasrb has joined #ruby
<banisterfiend> i have an off-by-1 error there, but u get the point ;)
hynkle has joined #ruby
<bfig> you have python which has more or less the same absurd syntactic simplification
pu22l3r has quit [Ping timeout: 244 seconds]
<banisterfiend> bfig: 'absurd' ? :)
<bfig> and by simplification i mean a zillion particular cases, but the perception of simplicity (this is not a jab at the language, just my take on it which i hope you won't take as offense)
hydrozen has quit [Quit: Computer has gone to sleep.]
nicoulaj has joined #ruby
graspee has quit [Quit: reboot tiem]
zomgbie has joined #ruby
<bfig> but tell me if i'm wrong please, allegedly my mates who work in python say the real deal is in rails
nwertman has joined #ruby
<bfig> s/python/ruby
robacarp has quit [Ping timeout: 244 seconds]
<banisterfiend> bfig: other features, you can build new control structures in ruby
<bfig> banisterfiend, that's not revolutionary. in scheme/CL you can bend the language to do your bidding with macros and rewrite rules
<banisterfiend> bfig: for example loop { } <-- the equivalent of while(1) {} in C, is actually a method, not a built in keyword
<nwertman> Guys, what is the right way to escape a string before passing it to printf if it contains printf formatting characters?
<banisterfiend> bfig: i thought we were cmoparing to C++ ? :) if you're comparing to every language under the sun then of course ruby can't compete
<nwertman> >> printf "%5B", for example
<banisterfiend> ruby is a selection of features from various languages, what's unique about it is the particlar choice of features to combine
ciopte7 has joined #ruby
<banisterfiend> bfig: not necessarily the features themselves
seitensei has quit [Ping timeout: 250 seconds]
Sgeo__ is now known as Sgeo
<banisterfiend> bfig: ruby borrows from smalltalk and lisp primarily, it has smalltalk's object model
<banisterfiend> and lisp's 'everything is an expression'
Monie has joined #ruby
eywu has quit [Quit: Leaving.]
arturaz has quit [Remote host closed the connection]
<banisterfiend> bfig: it also has 'blocks' and open classes, and a very clean/powerful metaprogramming API
<fantazo> banisterfiend, and from perl, so it has also the goodness of awk in it.
hynkle has quit [Quit: hynkle]
fflush has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<Monie> How could I take an image and cut into puzzle pieces?
<banisterfiend> bfig: for example, in ruby, class bodies are executable code. So you can invoke class methods in the body which look like keywords, but in fact generate instance methods for you
<sonicpond> Monie: how are you defining "cut"?
<Monie> Take a regular image, say a user has uploaded, and make it into multiple pieces with a sort of puzzle look.
DRCALKIN has joined #ruby
<sonicpond> bfig: i think you're trying to get us to answer an essay question on your takehome exam. that's naughty.
<banisterfiend> bfig: for example: class Hello; attr_accessor :x, :y, :z; end generates a class Hello with 'properties' x, y, z. In actual fact what's happenign there is the attr_accessor 'keyword' is actually a method (on the class) that is generating instance getter/setter methods based on the names of its parameters
<bfig> sonicpond, not really. let me link you to what i have to do
luxurymode has quit [Quit: Computer has gone to sleep.]
Ankhers has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<fantazo> ruby has with smalltalk in common, that the api documentation is largely the documentation of the syntax
kristofferrr has joined #ruby
<Monie> sonicpond: any idea comes to mind?
<banisterfiend> bfig: that pdf is written in some ancient primitive language that i can't understand
<bfig> spanish
<bfig> just see the code written there, that's what i have to implement
<banisterfiend> bfig: ah, like the conquisators spoke? that's cute
<banisterfiend> ;) jk
joshman_ has quit [Ping timeout: 244 seconds]
jgrevich has quit [Read error: Connection reset by peer]
jgrevich_ has joined #ruby
s0ber_ has joined #ruby
<banisterfiend> bfig: that looks like a tutorial, not so much a question? but i just skimmed through it
<bfig> emm
allanm has quit [Read error: Connection reset by peer]
<bfig> that's what i have to implement
<bfig> it's not the full language of course, that'd be absurd
banisterfiend has quit [Read error: Connection reset by peer]
<sonicpond> Monie: hmmm. well it sounds like an imagemagick challenge.
<Monie> I'll look it up, thanks.
nicoulaj has quit [Remote host closed the connection]
<bfig> Monie, are you actually programming already?
<Monie> No, trying to figure out how I could do it first.
<bfig> no i mean, do you have programming experience?
<Monie> Oh, yes.
s0ber has quit [Ping timeout: 265 seconds]
<bfig> ahh ok, nevermind.
s0ber_ is now known as s0ber
<sonicpond> Monie: perhaps i would start by looking at http://rmagick.rubyforge.org/
<sonicpond> this being a ruby room and all ;)
<Monie> Thank you!
banisterfiend has joined #ruby
Guest8500 has quit [Quit: leaving]
fserb has quit [Quit: ttyl]
Foxandxss has joined #ruby
<bfig> <bfig> that's what i have to implement
<bfig> <bfig> it's not the full language of course, that'd be absurd <- banisterfiend
raul782 has joined #ruby
<Monie> :)
robacarp has joined #ruby
<banisterfiend> bfig: should be easy enough
<sonicpond> there seems to be a glitch in the matrix
<banisterfiend> bfig: lots of people have done it already, see tinyrb
<bfig> i have a question though, yesterday we couldn't answer it with my partner
<bfig> yeah i don't believe it is a challenge, otherwise it wouldn't be considered among the easier courses i can take in the whole five years
<bfig> easiest*
<bfig> but i have a question about closures and scope
<Monie> Exactly what I needed, thank you sonicpond and wmoxam.
geekbri has quit [Remote host closed the connection]
<bfig> consider a code that builds counters: def makecounter(); x = 0; def f(); x += 1; return x; end; return f; end;
nonotza has joined #ruby
<bfig> is that even valid code? i couldn't run it properly in the irb
<banisterfiend> bfig: that is not defining a nested function
<bfig> that is ideally defining a counter with a closure
<banisterfiend> bfig: Yeah, two things: 1. nested functions dont exist in ruby 2. methods created via 'def' are not closures
<bfig> ie, f() == 1; f() == 2; ...
<bfig> allright. so i can't do that?
<banisterfiend> bfig: you cant
<bfig> what's a closure for a rubyist?
<banisterfiend> bfig: lambdas/procs/blocks
<banisterfiend> in summary: blocks
<banisterfiend> theyre the only real closure construct
Snugug has joined #ruby
<banisterfiend> bfig: i would wirte your code like this: def makecounter(); x = 0; lambda { x += 1 } end
<banisterfiend> bfig: and then invoke it like this: my_lambda = makecounter; my_lambda.call #=> 1
Morkel has quit [Quit: Morkel]
xpot-station has quit [Read error: No route to host]
<bfig> that's surprisingly unintuitive
mengu has joined #ruby
<banisterfiend> bfig: that's because you dont understand ruby's object model :)
JonnieCache has quit [Ping timeout: 252 seconds]
<bfig> first, what does = mean?
<banisterfiend> it's intuitive once you understand the pieces
v0n has quit [Quit: Quitte]
beneggett has quit [Ping timeout: 260 seconds]
<bfig> = is overloaded as hell it seems...
<bfig> if the thing on the right is a function you execute it?
banisterfiend has quit [Read error: Connection reset by peer]
<wmoxam> bfig: () is optional in ruby
* bfig 's head starts to spin
<wmoxam> ie: puts 1
<wmoxam> rather than: puts(1)
<bfig> ok, that's fine, but what about 0-ary functions?
<bfig> how do you distinguish a value from a function?
zomgbie has quit [Read error: Connection reset by peer]
fserb has joined #ruby
williamcotton has quit [Ping timeout: 244 seconds]
<wmoxam> bfig: there are no functions, there are object methods and blocks/lambdas/procs
<bfig> :|
platzhirsch has joined #ruby
* sonicpond makes popcorn and pulls up a chair (this is an awesome thread)
banisterfiend has joined #ruby
<platzhirsch> Coding ruby and listening to the Kaiser Chiefs - Ruby ... rubylicous
<banisterfiend> hehe
<banisterfiend> bad internet
<banisterfiend> bfig: anyway, what was confusing about that code example
<wmoxam> bfig: when you define a global 'function' what you are really doing is adding a method to the Object class
<banisterfiend> bfig: the only thing that's different between my code and yours was leaving out 'return' and replacing your f() with a lambda
<bfig> banisterfiend, everything? how do you know what to return? how is what you said sintactically different from a function definition?
Cpudan80 has quit [Read error: Connection reset by peer]
<bfig> return is optional then i guess
<banisterfiend> bfig: what's returned is the last expression inside the function
AlRazi has joined #ruby
<banisterfiend> bfig: same as in many other functinoal languages
<bfig> sure, but return also works right?
<banisterfiend> bfig: Yeah, we often use return for an early-exit
<banisterfiend> but if we dont need to early exit we leave out the return
hoelzro is now known as hoelzro|away
<bfig> can you use continuation style?
<bfig> ie, passing thunks around
beneggett has joined #ruby
<AlRazi> assume I have a hash 'lists' of 50 elements, I want to know the idiom to use lists.each do | list | but only for the first 8 elements, and if the array containe less than 8 it'll only loop those
<banisterfiend> bfig: i'm not familiar with that terminology
<AlRazi> lists.each 8.times do | list | <--- dreaming
<wmoxam> AlRazi: lists[0..8].each do |list| ....
<bfig> banisterfiend, are you familiar with the call with current continuation construct?
<AlRazi> if lists has 7 elements, it'll only do those ?
<wmoxam> er, [0..7] I guess
<wmoxam> AlRazi: try it ;)
<AlRazi> if lists has 3 elements, it'll only do those ?
<banisterfiend> bfig: ruby does have first class continuation objects, if that's what you mean
Gavilan has joined #ruby
<AlRazi> touche >_>
<bfig> yes
<banisterfiend> bfig: callcc
<bfig> yes
<banisterfiend> bfig: any more qeustions about the code exaple i gave?
<robertondc> just use python
rtyler has joined #ruby
<Spaceghostc2c> banisterfiend: Thou art a bedevilment to mine heart.
<robertondc> there is option
<Spaceghostc2c> Yeah, use python, a child can do it!
<rtyler> any of you fine folks know if something like lxr's "genxref" script which generates indexes for C code, exists for Ruby code as well?
<bfig> this makes things a bit simpler
<bfig> on the other hand it makes everything complicated as hell, since now i don't even know how the scoping rules are supposed to work
<bfig> ie, my interpreter had a pretty simple structure... it even allowed continuations naturally
Gavilan has left #ruby [#ruby]
<bfig> let's go with another topic on which i'm having doubts: how do values and value passing work?
raul782 has left #ruby [#ruby]
<bfig> ie, if i'm calling a function it's always a call by reference, right?
<banisterfiend> bfig: you should read the ruby spec
<banisterfiend> bfig: ruby has an ISO spec iirc
mbk_ has joined #ruby
<AlRazi> wmoxam: yes it does
<bfig> how big is it?
<wmoxam> :D
<AlRazi> wmoxam: thanks ^^
<banisterfiend> bfig: not sure, but im sure it's easy enough to navigate
<banisterfiend> bfig: also, if you want to look at a nice implementatin of ruby, dont look at MRI, look at rubinius
<banisterfiend> or jruby i guess, if u like java
wmoxam has quit [Quit: leaving]
<bfig> hahaha not really :p
zastaph has quit []
xaxisx has quit [Quit: xaxisx]
hamfz_ has joined #ruby
<bfig> i like scheme/haskell and only now have started to appreciate C++ ... it is a damn complicated language up to the point where you understand it, then everything seems reasonable
aibo has quit [Quit: Leaving]
<bfig> i never liked Java
<Spaceghostc2c> I don't mind Java.
<bfig> actually it is not java the thing that i don't like
<bfig> i don't like netbeans
elux has quit [Quit: Leaving...]
<bfig> i hate netbeans... and since i associate everything javaesque with netbeans i hate everything java
Snugug has quit [Quit: Snugug]
mneorr_ has quit [Remote host closed the connection]
mneorr has joined #ruby
<Spaceghostc2c> lo
<Spaceghostc2c> lol
mbk_ has quit [Ping timeout: 245 seconds]
<AlRazi> does the .each has some sort of a counter i can check ? I want to be able to insert a <ul> every 4 elements
chson has quit [Remote host closed the connection]
<banisterfiend> AlRazi: each_with_index
<AlRazi> >_< ruby rox
kvirani has quit [Remote host closed the connection]
<Spaceghostc2c> Gotta love documentation.
<davidcelis> Spaceghostc2c: gotta love what?
<Spaceghostc2c> davidcelis: Boobs.
rtyler has left #ruby [#ruby]
genivf has quit []
ph^ has quit [Read error: Connection reset by peer]
<davidcelis> True.
banister_ has joined #ruby
<spikku> boobs.org -> http://ruby-doc.org ?
mneorr has quit [Ping timeout: 248 seconds]
ph^ has joined #ruby
williamcotton has joined #ruby
sbanwart has quit [Ping timeout: 245 seconds]
bambanx has joined #ruby
<bambanx> hi
eywu has joined #ruby
PaciFisT has quit [Quit: Leaving.]
banisterfiend has quit [Ping timeout: 252 seconds]
zomgbie has joined #ruby
BeLucid has quit [Read error: Connection reset by peer]
bosphorus has joined #ruby
indian has joined #ruby
C0deMaver1ck has quit [Ping timeout: 248 seconds]
stefanp has quit [Quit: Linkinus - http://linkinus.com]
banghouse has quit [Remote host closed the connection]
BeLucid has joined #ruby
<sonicpond> bambanx: greetings
<bambanx> ty sonicpond
mrsolo has quit [Quit: Leaving]
<sonicpond> bambanx: ;)
looopy has quit [Remote host closed the connection]
banister_ is now known as banisterfiend
C0deMaver1ck has joined #ruby
b1rkh0ff has quit [Ping timeout: 244 seconds]
<bambanx> i am setting my ruby project on bitbucket
<bambanx> unlimited private repos :P
<bambanx> guys anyone know how remove a commit?
<banisterfiend> bambanx: yeah but the UI isn't as good as github's
<banisterfiend> and anyway, unless it's a commercial project, why do u want to make them private?
<bambanx> cos is private
<banisterfiend> the whole point of github is to facilitate opensource so it's not surprising private repos are discouraged
xaxisx has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
noganex has quit [Read error: Operation timed out]
<sonicpond> isn't bitbucket a mercurial thing?
beneggett has quit [Quit: Computer has gone to sleep.]
<bambanx> yeah , but git too
jeebster has quit [Quit: Leaving.]
tewecske has quit [Quit: Leaving.]
banghouse has joined #ruby
amalvagomes has quit [Quit: amalvagomes]
marwan_ has joined #ruby
zomgbie has quit [Ping timeout: 256 seconds]
platzhirsch has left #ruby [#ruby]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<marwan_> help: anyone know the soultion for this error http://jsfiddle.net/DaDj4/
zomgbie has joined #ruby
noganex has joined #ruby
mneorr has joined #ruby
beneggett has joined #ruby
MasterIdler_ has joined #ruby
MasterIdler_ has quit [Client Quit]
nikhil_ has quit [Ping timeout: 240 seconds]
b1rkh0ff has joined #ruby
GhettoCode has quit [Read error: Operation timed out]
hadees has quit [Quit: hadees]
vitoravelino is now known as vitoravelino`afk
Gavilan has joined #ruby
MasterIdler has quit [Ping timeout: 245 seconds]
azm has quit [Read error: Operation timed out]
<sonicpond> Marwan_: try su=news["url"].to_s.split("/")
welterde has quit [Ping timeout: 264 seconds]
<sonicpond> Marwan_: although, that doesn't solve your nil problem
<sonicpond> Marwan_: it just solves your blowing-up-rails problem.
atmosx has quit [Ping timeout: 260 seconds]
<marwan_> sonicpond: man that isn
<marwan_> isn't rails project
friskd has quit [Ping timeout: 244 seconds]
<marwan_> but i will try it any way
xaxisx has quit [Quit: xaxisx]
<sonicpond> is that sinatra?
<marwan_> yes
atmosx has joined #ruby
<sonicpond> awesome
nikhil_ has joined #ruby
<marwan_> yes it is
jgarvey has quit [Quit: Leaving]
banisterfiend has quit [Read error: Connection reset by peer]
Jamone has joined #ruby
berserkr has joined #ruby
kristofferrr has quit [Quit: ❤]
benatwork has quit [Remote host closed the connection]
<sonicpond> i should have recognized it. i've written tons of sinatra. i guess i never get any errors ;)
<marwan_> sweet, it gives me this now http://jsfiddle.net/KW5we/
zomgbie has quit [Ping timeout: 252 seconds]
theRoUS has joined #ruby
<marwan_> what do you think - try to.s with gsub also
<marwan_> ?
banisterfiend has joined #ruby
Monie has quit [Ping timeout: 244 seconds]
<sonicpond> yep. same thing. string.to_s.gsub...
<sonicpond> although, from the looks of what you're doing you might want to look at maruku
hamfz_ has quit [Ping timeout: 252 seconds]
<marwan_> oh- but this isn't file in the project
stephenjudkins has joined #ruby
savage-_ has joined #ruby
<sonicpond> no problem. there are hundreds of ways to pet a cat.
savage- has quit [Ping timeout: 252 seconds]
welterde has joined #ruby
ryanf has joined #ruby
C0deMaver1ck has left #ruby ["Leaving..."]
zomgbie has joined #ruby
<marwan_> changed it - and got this now http://jsfiddle.net/2T9VP/
cableray has quit [Quit: See you 'round like a donut.]
sepp2k has quit [Remote host closed the connection]
vitoravelino`afk is now known as vitoravelino
nonotza_ has joined #ruby
nonotza has quit [Read error: Connection reset by peer]
nonotza_ is now known as nonotza
nonotza has quit [Remote host closed the connection]
<marwan_> sonicpond: changed it - and got this now http://jsfiddle.net/2T9VP/
chmac has quit [Quit: Leaving]
mneorr has quit [Remote host closed the connection]
bambanx has quit [Read error: Connection reset by peer]
Beoran__ has quit [Ping timeout: 244 seconds]
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
uris has quit [Quit: leaving]
awarner has quit [Remote host closed the connection]
pu22l3r has joined #ruby
maesbn has quit [Remote host closed the connection]
ramblex has quit [Ping timeout: 248 seconds]
<bfig> is there a concept of inner classes ?
indian has quit [Ping timeout: 248 seconds]
fridim_ has joined #ruby
looopy has joined #ruby
zomgbie has quit [Ping timeout: 252 seconds]
schaerli has joined #ruby
kenperkins has quit [Read error: Operation timed out]
nikhil_ has quit [Read error: Connection reset by peer]
ph^ has quit [Remote host closed the connection]
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
DrShoggoth has quit [Quit: Leaving]
andrewhl has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
Beoran__ has joined #ruby
Criztian_ has quit [Remote host closed the connection]
williamcotton has quit [Quit: williamcotton]
jimeh has joined #ruby
lauris has joined #ruby
tvw has quit [Remote host closed the connection]
jenrzzz-mac has joined #ruby
Vainoharhainen has joined #ruby
Asher has quit [Ping timeout: 244 seconds]
fserb has quit [Quit: ttyl]
iocor has joined #ruby
billiamii has quit []
jimeh has quit [Ping timeout: 256 seconds]
nwertman has quit [Quit: nwertman]
atmosx has quit [Ping timeout: 245 seconds]
atmosx has joined #ruby
serroba has joined #ruby
axl_ has quit [Quit: axl_]
akem has quit [Ping timeout: 245 seconds]
serroba has quit [Client Quit]
jgrevich_ has quit [Quit: jgrevich_]
fserb has joined #ruby
carlyle has quit [Remote host closed the connection]
mibato has joined #ruby
helichopter has joined #ruby
mibato has quit [Remote host closed the connection]
chson has joined #ruby
<td123> bfig: yes
rmascarenhas has joined #ruby
blacktulip has quit [Remote host closed the connection]
ciopte7 has quit [Quit: ciopte7]
straind has joined #ruby
Richmond has quit [Quit: Leaving]
MrGando has joined #ruby
AlRazi has quit [Read error: Operation timed out]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
philcrissman has quit [Remote host closed the connection]
philcrissman has joined #ruby
xaq has quit [Remote host closed the connection]
nirakara has joined #ruby
xaq has joined #ruby
<nat2610> hi, What am I doing wrong ? https://gist.github.com/2849052 I'm trying to login to a site and then get access a page that's only available if you logged in. I login just fine but when I do my GET it looks like I'm not connected anymore, I'm being redirected with a 302 to the login page again
jenrzzz-mac has quit [Quit: jenrzzz-mac]
jimeh has joined #ruby
williamcotton has joined #ruby
xaq has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 252 seconds]
schovi has quit [Remote host closed the connection]
workmad3_ has joined #ruby
ciopte7 has joined #ruby
albemuth has quit [Quit: Leaving...]
yxhuvud has quit [Ping timeout: 256 seconds]
fayimora has quit [Ping timeout: 245 seconds]
kenperkins has joined #ruby
JonnieCache has joined #ruby
Asher has joined #ruby
tayy has joined #ruby
DRCALKIN has quit [Ping timeout: 244 seconds]
<Sigma00> nat2610: Are you saving whatever cookies it gives you? (can't really look at the code, on my phone)
axl_ has joined #ruby
workmad3_ is now known as workmad3
bosphorus has quit [Remote host closed the connection]
<bfig> td123, can classes exist in self contained scopes without affecting the rest of the application?
<bfig> how does ruby manage namespaces/we ?
spikku has quit [Quit: Leaving]
fayimora has joined #ruby
fayimora has quit [Client Quit]
<td123> try making it privte
ElitestFX has quit [Ping timeout: 245 seconds]
<workmad3> bfig, there isn't really a language concept of a pure namespace, but you can place classes inside classes and inside modules as a form of namespacing
<bfig> modules, what is a module?
<workmad3> bfig, 'module Foobar; end' <-- that's a module
<bfig> so you access stuff with Foobar.xx ?
zemanel has quit [Quit: Remote hottie closed the connection]
<workmad3> bfig, depends what you're accessing... if it's a method on the module, then yes, if it's a constant in the module, then you do Foobar::Whatever, and if it's an instance method on the module, you can only access it by mixing the module into a class and accessing it through the class
Vert has joined #ruby
<bfig> so a module is just like a class?
<workmad3> bfig, no
shadoi has joined #ruby
<workmad3> bfig, you can't create an instance of a module and you can't use inheritance with a module
<workmad3> bfig, what you can do is organise methods into a module and use them as mixins
<workmad3> bfig, or you can use them for a form of namespacing
seanstickle has joined #ruby
<bfig> can you define modules partially or have several files which bring stuff to the same module?
<nat2610> Sigma00, I'm not saving it ... I thought that the http object was doing it for me ... I guess I'd better google more aroudn that :) thanks
<workmad3> bfig, incidentally, this would be better explained in a reasonable intro to ruby book or tutorial :)
<workmad3> bfig, same as with classes in ruby, you can reopen them at any time, letting you add or change a module in several places
marwan_ has quit [Quit: Page closed]
fridim_ has quit [Ping timeout: 264 seconds]
<bfig> isn't that an invitation to spaghetti^2 code?
<workmad3> bfig, doesn't tend to be
khakimov has joined #ruby
<workmad3> bfig, it generally leads to easier organisation
<workmad3> bfig, if you're stuck with a large class, you can partition it up into separate modules to group stuff together and assemble it using mixins
<workmad3> bfig, or you can, as already said, use the reopening to make use of modules as namespaces across an entire library
hamfz_ has joined #ruby
ephemerian has quit [Quit: Leaving.]
<workmad3> bfig, or you can do more interesting mixins, like those of the comparable and enumerable modules in the standard library, where you create a set of related functionality that relies on a small core of implemented functionality
<shadoi> bfig: I highly recommend reading this: https://gist.github.com/2721607
<workmad3> bfig, and then include the module into a class to give it richer functionality
khakimov has quit [Client Quit]
ericcoleman has joined #ruby
tomb_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<workmad3> why do people always assume that because something can be misused to create bad code that we are all so incompetent that it's a given?
lauris has quit [Quit: Leaving]
<td123> bfig: one nice example of that is the code "1.year.ago"
hamfz_ has quit [Ping timeout: 244 seconds]
<shadoi> Which is in activesupport, and is not the worlds greatest example of sanity. :)
akem has joined #ruby
<workmad3> td123, is that an example of spaggetti or of how cool the reopening stuff can be? :)
digitalcakestudi has quit [Quit: Leaving.]
<td123> workmad3: definitely coolness :)
looopy has quit [Ping timeout: 244 seconds]
td123 has quit [Read error: Connection reset by peer]
robdodson has joined #ruby
tatsuya_o has joined #ruby
kvirani has joined #ruby
looopy has joined #ruby
kvirani has quit [Remote host closed the connection]
twock has quit [Quit: Lost terminal]
<banisterfiend> bfig: open class defs pretty much exist in c# and objc too, it's not unique to ruby, and it hasn't generally resulted in 'spahgetti code'
khakimov has joined #ruby
tatsuya_o has quit [Ping timeout: 250 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
adeponte has quit [Remote host closed the connection]
zomgbie has joined #ruby
<banisterfiend> though when library authors start monkeypatching unnecessarily it can get annoying :)
tomb_ has joined #ruby
<shevy> I am a godpatcher
<shevy> my patches are godly
<shevy> it however does indeed suck that I can not restore the state of objects to an earlier point :(
<shevy> or at least the "default" stdlib part without any modifications
fserb has quit [Quit: ttyl]
zomgbie has quit [Read error: Operation timed out]
macmartine has quit [Quit: macmartine]
vitoravelino is now known as vitoravelino`afk
kirun has quit [Quit: Client exiting]
SegFaultAX|work2 has quit [Quit: leaving]
zeromodulus has joined #ruby
banseljaj is now known as imami|afk
kenichi has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]