apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p286: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
ianbrandt has quit [Quit: ianbrandt]
<atmosx> arietis: keep irc logs
<atmosx> helps a lot
<atmosx> and it's a sort of privacy breach but who cares?
<arietis> i have logs
<arietis> i just forgot i had this discussion
<csmrfx> dominikh: type "string"[0] in console
<csmrfx> uh, irb
<dominikh> csmrfx: and then?
<csmrfx> wat u get
<dominikh> depends, ruby 1.8 or 1.9? :)
kiyoura has joined #ruby
<csmrfx> then hit the "return" key 8)
<dominikh> the one that returns a byte or the oen that returns a substring? :)
erichmenge has quit [Client Quit]
<csmrfx> ok 1.9
<dominikh> csmrfx: he interpreted it as string[0] when you asked earlier.
<csmrfx> yeah
<dominikh> and really the question wasn't on topic, anyway
<atmosx> arietis: you big brother you!
icole has quit [Remote host closed the connection]
<atmosx> good night all
atmosx has quit [Quit: off the hook]
Xeago has quit [Ping timeout: 260 seconds]
ebobby_ has quit [Quit: Lost terminal]
blazes816 has quit [Quit: blazes816]
<apeiros_> csmrfx: oh, but yday is the answer to a different question than "what's its official name" :-p
cakehero has quit [Quit: Computer has gone to sleep.]
nari has quit [Ping timeout: 256 seconds]
dakine has joined #ruby
iamjarvo has joined #ruby
cakehero has joined #ruby
nateberkopec has quit [Quit: Leaving...]
Takehiro has joined #ruby
cakehero has quit [Client Quit]
omry has joined #ruby
Virunga has quit [Remote host closed the connection]
mklappstuhl has joined #ruby
emmanuelux has quit [Remote host closed the connection]
rwa has joined #ruby
carlyle has joined #ruby
nohonor has quit [Ping timeout: 260 seconds]
armando_canals has quit [Quit: leaving]
kbeddingfield has quit [Remote host closed the connection]
Takehiro has quit [Ping timeout: 248 seconds]
tds has quit [Quit: tds]
d2dchat has quit [Remote host closed the connection]
artOfWar has quit [Remote host closed the connection]
JStoker has quit [Excess Flood]
<dominikh> apeiros_: why the constant _ on your nick nowadays?
Bulgaria is now known as Gliner
JStoker has joined #ruby
<apeiros_> it's a sign of shame
<dominikh> ok
rwa has quit [Client Quit]
<apeiros_> to remain until I've finally set up that proxy
<dominikh> also, still didn't have the heart to redirect this channel to the real ruby channel? :P
<apeiros_> to stay online 24/7
<apeiros_> I can't
<apeiros_> and I doubt fflush ever will
<dominikh> same
<apeiros_> js or sc2
<apeiros_> sc2 or js
<apeiros_> hm
<apeiros_> hm
<apeiros_> hmmm
<csmrfx> evil thoughts...
<dominikh> neither
<arietis> apeiros_: somehow it counts 3 1st digits only ignoring 4th
<apeiros_> tough decisions
ABK has joined #ruby
<apeiros_> arietis: dunno what you mean
<apeiros_> anyway, I'm off
<arietis> char code is 1080 and it uses 108
adeponte has joined #ruby
hbpoison has joined #ruby
<apeiros_> you did not pass the encoding arg then
<apeiros_> makes no sense, though
<arietis> my bad
bbttxu has quit [Quit: bbttxu]
adeponte has quit [Remote host closed the connection]
<apeiros_> arietis: you're doing something wrong :-p
<arietis> wrong range -.-
<arietis> should 1..4
<apeiros_> "1060".to_i.chr(Encoding::UTF_8) # => "Ф"
<arietis> not 1..3
<arietis> :)
<apeiros_> use 1,4
<apeiros_> faster anyway
crackfu has joined #ruby
<apeiros_> or just fix your regex
<apeiros_> (?<=#)\d{4}
<arietis> kk, thanks
<apeiros_> "#1060"[/(?<=#)\d{4}/].to_i.chr(Encoding::UTF_8)
<apeiros_> off
JustinCampbell has quit [Remote host closed the connection]
yshh has joined #ruby
cakehero has joined #ruby
davidcelis has quit [Quit: K-Lined.]
hbpoison has quit [Ping timeout: 260 seconds]
JStoker has quit [Excess Flood]
swex has quit [Ping timeout: 240 seconds]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
dpatel has quit [Quit: dpatel]
JustinCampbell has joined #ruby
lolsuper has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
ABK has quit [Read error: Connection reset by peer]
JustinCampbell has quit [Remote host closed the connection]
minijupe has quit [Quit: minijupe]
ABK has joined #ruby
JustinCampbell has joined #ruby
clj_newb has quit [Ping timeout: 260 seconds]
Araxia has quit [Quit: Araxia]
SCommette has quit [Quit: SCommette]
SCommette has joined #ruby
icole has joined #ruby
kbeddingfield_ph has joined #ruby
brianpWins has quit [Quit: brianpWins]
jrist is now known as jrist-afk
F1skr has quit [Quit: WeeChat 0.3.9]
cakehero has joined #ruby
JStoker_ has joined #ruby
shtirlic_ has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
elico has joined #ruby
hsbt is now known as hsbt_away
Trioke_ has quit [Ping timeout: 255 seconds]
shiin has quit [Quit: Computer has gone to sleep.]
kbeddingfield_ph has quit [Ping timeout: 246 seconds]
Russell^^ has quit [Quit: Russell^^]
Tarential has quit [Ping timeout: 260 seconds]
mkillebrew2 has quit [Quit: leaving]
sebastorama has joined #ruby
undersc0re97 has joined #ruby
mojo_pojo has left #ruby ["Leaving"]
kiyoura has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
kiyoura has joined #ruby
recycle has joined #ruby
RudyValencia- is now known as RudyValencia
cpruitt has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
d2dchat has joined #ruby
joeycarmello has joined #ruby
mmlac has quit [Quit: mmlac]
yshh has joined #ruby
kbeddingfield has joined #ruby
arietis has joined #ruby
bigmac has joined #ruby
tds has joined #ruby
joeycarmello has quit [Ping timeout: 240 seconds]
bricker has quit [Quit: leaving]
kbeddingfield has quit [Remote host closed the connection]
quest88_ has joined #ruby
savage- has joined #ruby
BadLarry has quit [Ping timeout: 245 seconds]
joeycarmello has joined #ruby
Vert has quit [Remote host closed the connection]
BadLarry has joined #ruby
kbeddingfield_ph has joined #ruby
voodoofish430 has quit [Quit: Leaving.]
artOfWar has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
icole has quit [Remote host closed the connection]
artOfWar has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
icole has joined #ruby
artOfWar has joined #ruby
Juul has quit [Ping timeout: 240 seconds]
gabrielrotbart has joined #ruby
arubin- has quit []
slainer68 has quit [Remote host closed the connection]
arubin has joined #ruby
carlyle has quit [Remote host closed the connection]
hbpoison has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
vickaita has joined #ruby
icole has quit [Ping timeout: 276 seconds]
richardjortega has quit [Remote host closed the connection]
dakine has quit [Quit: Leaving]
erichmenge has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
richardjortega has joined #ruby
JStoker_ is now known as JStoker
kbeddingfield_ph has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
armenb has joined #ruby
vickaita has quit [Ping timeout: 265 seconds]
erichmenge has quit [Client Quit]
cableray has joined #ruby
<rcsheets> I am using bundler, and one of the gems I specify in my bundle has a native extension, but that native extension needs an option passed to extconf.rb in order to build on my system. What's the right way to get this built?
greenarrow has quit [Quit: IRC is just multiplayer notepad]
xcvd`` has quit [Read error: Connection reset by peer]
Dreamer3__ has joined #ruby
_bart has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
_bart_ has quit [Read error: Connection reset by peer]
mklappstuhl has quit [Ping timeout: 256 seconds]
maletor has joined #ruby
cableray has quit [Quit: cableray]
elementz has quit [Quit: leaving]
joeycarmello has quit [Remote host closed the connection]
mmitchell has joined #ruby
fantazo has quit [Read error: Operation timed out]
mmitchell has quit [Remote host closed the connection]
n_blownapart has joined #ruby
fantazo has joined #ruby
seanstickle has quit [Quit: seanstickle]
Takehiro_ has joined #ruby
jorgeastorga has joined #ruby
savage- has quit [Read error: Connection reset by peer]
JustinCampbell has quit [Remote host closed the connection]
savage- has joined #ruby
<n_blownapart> hi I'm wondering why line 9 doesn't return an empty array as the textbook claims. I'm not certain about the [1] notation so I tried $1 in the commented line which I'm also not certain about. the commented line returns an empty array then nil. thanks: http://pastie.org/5147991
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
jpreyer has joined #ruby
<n_blownapart> ^^ btw this program is a part of the book in so many words "what not to do in ruby."
guns has joined #ruby
perryh has quit [Excess Flood]
slainer68 has joined #ruby
sn0wb1rd has joined #ruby
perryh has joined #ruby
jorgeastorga has quit [Remote host closed the connection]
<DaDaDOSPrompt> What's the name of that one library which will use Ruby to automatically fill out webforms on an open browser as though the data were being entered at least semi-manually? Is there such a thing? Many such things?
gabrielrotbart has quit [Remote host closed the connection]
cakehero has joined #ruby
Slivka has quit [Remote host closed the connection]
<catepillar> DaDaDOSPrompt: watir
<catepillar> i believe
<DaDaDOSPrompt> thank you
<catepillar> I haven't touched it in several years, so I don't know how it handles 1.9.*
<DaDaDOSPrompt> ah, hm, so Ruby is in a troubling version hump at the moment, eh?
Iszak has quit []
<DaDaDOSPrompt> alas, so it goes.
<catepillar> not really
<catepillar> 1.9.* has been stable and is very usuable
eternicode has joined #ruby
Tarential has joined #ruby
<n_blownapart> catepillar could you take a look at this? thanks hi I'm wondering why line 9 doesn't return an empty array as the textbook claims. I'm not certain about the [1] notation so I tried $1 in the commented line which I'm also not certain about. the commented line returns an empty array then nil. thanks: http://pastie.org/5147991
<catepillar> i just haven't used watir since 1.8.6, and I know watir is an active community, so I can't say if anything has changed since i used it
* catepillar isn't a ruby expert...
slainer68 has quit [Remote host closed the connection]
<catepillar> i would much rather leave that to someone who is a bit more established in ruby than I am
rwa has joined #ruby
rwa has left #ruby [#ruby]
<catepillar> i just dabble a little
<n_blownapart> catepillar: cool thanks
rwa has joined #ruby
xorspark has joined #ruby
<rwa> when using haml, where should I add this line to include Gravatarify's methods?? "Haml::Helpers.send(:include, Gravatarify::Helper)"
fyolnish has quit [Remote host closed the connection]
jeremywrowe has quit [Quit: jeremywrowe]
d2dchat has quit [Remote host closed the connection]
nitti has joined #ruby
luckyruby has joined #ruby
<ryanf> probably an initializer
<ryanf> i.e., a file in config/initializers
<ryanf> oh sorry forgot which room this is
<ryanf> are you talking about using it outside rails?
<rwa> no, thats ok
tjbiddle has quit [Ping timeout: 260 seconds]
<n_blownapart> ryanf would you mind clarifying this for me? thanks: could you take a look at this? thanks hi I'm wondering why line 9 doesn't return an empty array as the textbook claims. I'm not certain about the [1] notation so I tried $1 in the commented line which I'm also not certain about. the commented line returns an empty array then nil. thanks: http://pastie.org/5147991
jarred has joined #ruby
jarred has left #ruby [#ruby]
jarred has joined #ruby
jarred has left #ruby [#ruby]
nitti has quit [Ping timeout: 260 seconds]
medik has quit [Remote host closed the connection]
rakl has joined #ruby
charliesome has joined #ruby
jeremywrowe has joined #ruby
havenn has joined #ruby
dakine has joined #ruby
eternicode has left #ruby ["buh-byez."]
SCommette has quit [Quit: SCommette]
ttt has joined #ruby
cableray has joined #ruby
ffranz has quit [Ping timeout: 260 seconds]
daniel_-_ has quit [Ping timeout: 252 seconds]
kbeddingfield has joined #ruby
ctwiz has quit [Quit: ctwiz]
techhelp has joined #ruby
JonnieCache has joined #ruby
kbeddingfield has quit [Ping timeout: 252 seconds]
hbpoison has joined #ruby
luckyruby has quit [Remote host closed the connection]
c0rn has quit [Quit: Computer has gone to sleep.]
BoomCow has quit [Quit: This computer has gone to sleep]
Araxia has joined #ruby
richardjortega has left #ruby [#ruby]
jarred_ has joined #ruby
jarred_ has left #ruby [#ruby]
J-_-L has joined #ruby
g-ram has joined #ruby
IrishGringo has quit [Read error: Operation timed out]
Quadlex has quit [Read error: Connection reset by peer]
justinmcp has quit [Remote host closed the connection]
JonnieCache has quit [Ping timeout: 244 seconds]
ffranz has joined #ruby
vickaita has joined #ruby
justinmcp has joined #ruby
mneorr has quit [Remote host closed the connection]
Monie has quit [Ping timeout: 260 seconds]
IrishGringo has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
justinmcp has quit [Ping timeout: 268 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
dogweather has quit [Remote host closed the connection]
nateberkopec has joined #ruby
thinkdevcode has joined #ruby
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
tvw has quit [Ping timeout: 260 seconds]
mneorr has joined #ruby
bbttxu has joined #ruby
BadLarry has quit [Ping timeout: 240 seconds]
keyvan has quit [Remote host closed the connection]
tvw has joined #ruby
nateberkopec has quit [Client Quit]
mneorr has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
BadLarry has joined #ruby
brendan` has joined #ruby
n_blownapart has quit [Remote host closed the connection]
lukeholder has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
nari has joined #ruby
maletor has joined #ruby
fyolnish has joined #ruby
stkowski has quit [Quit: stkowski]
BadLarry has quit [Ping timeout: 256 seconds]
J-_-L has quit [Ping timeout: 260 seconds]
Grieg has joined #ruby
<Grieg> hello
chrisja has quit [Quit: leaving]
<Grieg> was wondering what ruby is. it isnt for a system programming or is it?
BadLarry has joined #ruby
<arietis> Grieg: it can be used for it
<havenn> Grieg: It is a general purpose programming language that is good for systems programming amongst other things.
arubin has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<arietis> goo thing about ruby you can use it for everything
<arietis> is *
<arietis> :)
<arietis> good*
sn0wb1rd_ has joined #ruby
<Grieg> and it is as conveinient for sys.prog as for other programming? :)
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
BadLarry has quit [Ping timeout: 260 seconds]
<Grieg> guess it is. thanks ppl :D
<csmrfx> hm, ruby need bit more work for gui desktop apps
sn0wb1rd has quit [Ping timeout: 260 seconds]
sn0wb1rd_ is now known as sn0wb1rd
J-_-L has joined #ruby
justinmcp has joined #ruby
BadLarry has joined #ruby
<csmrfx> or, more like needs libs
gabrielrotbart has joined #ruby
jenrzzz has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<Grieg> suggest me an IDE for beginner pl
<Grieg> plz
vickaita has quit [Ping timeout: 260 seconds]
<Grieg> winXP
ananthakumaran has joined #ruby
brendan` has quit [Quit: Konversation terminated!]
<thinkdevcode> rubymine
cakehero has quit [Quit: Computer has gone to sleep.]
<thinkdevcode> or sublimetext2 if u dont want the full IDE
BadLarry has quit [Ping timeout: 255 seconds]
nitti has joined #ruby
caveat- has quit [Ping timeout: 240 seconds]
sn0wb1rd_ has joined #ruby
madhatter has quit [Ping timeout: 252 seconds]
BadLarry has joined #ruby
zaiste has quit [Ping timeout: 252 seconds]
madhatter has joined #ruby
zaiste has joined #ruby
caveat- has joined #ruby
<havenn> Grieg: Textmate 2: https://github.com/textmate/textmate
joeycarmello has joined #ruby
jaygen_ has joined #ruby
maletor has joined #ruby
<havenn> Grieg: If you use OS X...
<Grieg> thinkdevcode: so i can use any texeditor as i understood but how do i build programs then?
<havenn> Grieg: What OS?
<Grieg> winXP
<havenn> Grieg: Then not Textmate. >.>
kbeddingfield_ph has joined #ruby
<havenn> Grieg: ^ Sublime Text 2
<Grieg> notepad++
<thinkdevcode> ST2 or rubymine are both for winxp
cakehero has joined #ruby
<thinkdevcode> u can build projects if you use something like rake
<thinkdevcode> or u can execute files with ruby commandline
<thinkdevcode> ruby filename.rb
sn0wb1rd has quit [Ping timeout: 256 seconds]
sn0wb1rd_ is now known as sn0wb1rd
<havenn> Grieg: Make a gem: bundle gem gem-name-here
nitti has quit [Ping timeout: 260 seconds]
jaygen has quit [Ping timeout: 252 seconds]
areil has joined #ruby
<havenn> Grieg: Make a rails app: rails new app-name-here
jenrzzz has quit [Ping timeout: 268 seconds]
<havenn> Grieg: You can make a Ruby app by opening your text editor, and starting with the first line: #!/usr/bin/env ruby
rwa has left #ruby ["Linkinus - http://linkinus.com"]
slainer68 has joined #ruby
spo12 is now known as spooky12
havenn has quit [Remote host closed the connection]
BadLarry has quit [Ping timeout: 260 seconds]
carlyle has joined #ruby
jenrzzz has joined #ruby
jgrevich has quit [Quit: jgrevich]
skaczor has quit [Remote host closed the connection]
Dreamer3__ has quit [Quit: Computer has gone to sleep.]
F7 has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
BoomCow has joined #ruby
BadLarry has joined #ruby
apok has quit [Quit: apok]
kbeddingfield has joined #ruby
brianpWins has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
kbeddingfield has quit [Ping timeout: 248 seconds]
carlyle has quit [Remote host closed the connection]
maletor has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
<Grieg> http://rubyinstaller.org/about worth installing?
chson has quit [Remote host closed the connection]
dmiller_ has joined #ruby
kbeddingfield_ph has quit [Remote host closed the connection]
icole has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
jord has quit [Ping timeout: 248 seconds]
jord has joined #ruby
tectonic has quit [Ping timeout: 260 seconds]
lukeholder has quit [Quit: Computer has gone to sleep.]
Gm4n has quit [Ping timeout: 252 seconds]
classix has quit [Ping timeout: 240 seconds]
wargasm has quit [Ping timeout: 260 seconds]
BadLarry has quit [Ping timeout: 260 seconds]
xclite has quit [Ping timeout: 260 seconds]
dmiller has quit [Ping timeout: 276 seconds]
tectonic has joined #ruby
classix has joined #ruby
Gm4n has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
radic has joined #ruby
cpruitt has quit [Quit: cpruitt]
hbpoison has joined #ruby
xclite has joined #ruby
Dreamer3__ has joined #ruby
jlwestsr has quit [Ping timeout: 246 seconds]
BadLarry has joined #ruby
wargasm has joined #ruby
hsbt_away is now known as hsbt
radic_ has quit [Ping timeout: 248 seconds]
pjb3 has joined #ruby
ffranz has quit [Quit: Leaving]
jeffreybaird has quit [Quit: jeffreybaird]
<Grieg> cool. installed ruby and execing " puts "yo" " in the command prompt. it works. still wonder how can i make an .exe file from it
zeromodulus has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 240 seconds]
ffranz has joined #ruby
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
hefgi has quit [Quit: This computer has gone to sleep]
bbttxu has quit [Quit: bbttxu]
thone has quit [Ping timeout: 246 seconds]
<BoomCow> ruby compiles at runtime
thone has joined #ruby
J-_-L has quit [Quit: Leaving.]
<catepillar> i knew several years back, there was a plan for 2.0 to have a ruby VM, is that still happening?
<rking> catepillar: You mean runnable, precompiled code? Because it has a VM, for sure.
ffranz has quit [Quit: Leaving]
<catepillar> iirc, it was something about compling it to bytecode, then running that
<catepillar> (slightly faster than runtime interpretting)
<pjb3> 1.9 does that
Tarential has quit [Ping timeout: 265 seconds]
<catepillar> really?
dubz has joined #ruby
* catepillar didn't know that!
<rking> pjb3: Did 1.8 not?
<pjb3> Yeah, check this new book out
<catepillar> i don't remember it being in 1.8.6
<pjb3> right, 1.8 did not
gabrielrotbart has quit [Remote host closed the connection]
<pjb3> 1.9 introduced YARV, which is the byte code engine
<rking> pjb3: Good sell. I'm sold.
<pjb3> yeah, I bought it myself, really interesting if you want to understand how ruby actually works
<pjb3> I've only read the first chapter so far
nitti has joined #ruby
kbeddingfield has joined #ruby
love_color_text has quit [Remote host closed the connection]
love_color_text has joined #ruby
maesbn has joined #ruby
bigmac has quit [Quit: Leaving]
nitti has quit [Ping timeout: 244 seconds]
manizzle has joined #ruby
jenrzzz_ has joined #ruby
maesbn has quit [Remote host closed the connection]
BadLarry has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
jenrzzz_ has quit [Ping timeout: 256 seconds]
thinkdevcode has quit [Remote host closed the connection]
kiyoura has quit [Quit: Leaving]
BadLarry has joined #ruby
Dreamer3__ has quit [Quit: Computer has gone to sleep.]
inspired has quit [Ping timeout: 240 seconds]
caleb_io has joined #ruby
BadLarry has quit [Ping timeout: 252 seconds]
Drewch has quit [Ping timeout: 245 seconds]
BadLarry has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
Tarential has joined #ruby
ABK has quit [Read error: Operation timed out]
cableray has quit [Quit: cableray]
techhelp2 has joined #ruby
jrajav has quit []
<rking> Odd. Twice today I've wanted an Array method #only! (that is, get .first or throw an exception if 1 != size)
techhelp has quit [Ping timeout: 255 seconds]
joeycarmello has quit [Remote host closed the connection]
hefgi has joined #ruby
Guest4399 has joined #ruby
Guest4399 has quit [Excess Flood]
c0rn has joined #ruby
hbpoison has joined #ruby
<reactormonk> rking, so if you find more than one?
postmodern has joined #ruby
tvw has quit [Remote host closed the connection]
thinkdevcode has joined #ruby
<reactormonk> and you did too much rails coding.
Drewch has joined #ruby
<rking> reactormonk: If I find more than one what? (sorry)
<reactormonk> rking, #only! does not accept a block then?
savage- has quit [Quit: savage-]
<rking> What would the block do?
JonnieCache has joined #ruby
<reactormonk> that's what I asked ;-)
hbpoison has quit [Ping timeout: 268 seconds]
kbeddingfield has quit [Remote host closed the connection]
pjb3 has quit [Quit: pjb3]
<reactormonk> rking, I'd name the method 'highlander' though
jenrzzz has joined #ruby
<rking> reactormonk: No block. Just an explosion.
<rking> I wrote exactly this twice today:
<rking> raise "Huh?" unless 1 == arr.size
<rking> x = arr.first
<rking> Well, exactly that structure.
codezombie has joined #ruby
caleb_io has quit [Quit: caleb_io]
<reactormonk> yoda ifs?
JonnieCache has quit [Ping timeout: 260 seconds]
<rking> All day every day.
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
<rking> I acknowledge that they might take some getting used to, but I'm so far past that phase that I can't remember if that's true or not.
savage- has joined #ruby
gabrielrotbart has joined #ruby
crackfu has quit [Remote host closed the connection]
crackfu has joined #ruby
Nisstyre has quit [Read error: Connection reset by peer]
Nanuq has quit [Ping timeout: 246 seconds]
joofsh has quit [Remote host closed the connection]
crackfu has quit [Ping timeout: 276 seconds]
flagg0204 has quit [Ping timeout: 255 seconds]
nitti has joined #ruby
nat2610 has joined #ruby
Nisstyre has joined #ruby
Shrink has quit [Ping timeout: 276 seconds]
joeycarmello has joined #ruby
adeponte has joined #ruby
hbpoison has joined #ruby
nitti has quit [Ping timeout: 260 seconds]
davidcelis has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
BadLarry has quit [Read error: Operation timed out]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
BadLarry has joined #ruby
Shrink has joined #ruby
Shrink has joined #ruby
Shrink has quit [Changing host]
flagg0204 has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
joeycarmello has quit [Remote host closed the connection]
tds has quit [Quit: tds]
ryanf_ has joined #ruby
ryanf has quit [Quit: leaving]
ryanf_ is now known as ryanf
burgestrand has joined #ruby
stkowski has joined #ruby
pr0ton_ has quit [Remote host closed the connection]
pr0ton_ has joined #ruby
palyboy has quit [Ping timeout: 246 seconds]
cakehero has joined #ruby
sn0wb1rd has quit [Read error: Connection reset by peer]
pr0ton_ has quit [Ping timeout: 244 seconds]
sn0wb1rd has joined #ruby
SeySayux has quit [Ping timeout: 255 seconds]
jeremywrowe has quit [Quit: jeremywrowe]
SeySayux has joined #ruby
codezombie has quit [Quit: Linkinus - http://linkinus.com]
kylemcgi_ has quit []
kylemcgill has joined #ruby
burgestrand has quit [Quit: Leaving.]
techhelp2 has quit [Quit: Leaving]
ttt_ has joined #ruby
ryanf has quit [Quit: broken pipes |||]
guns has quit [Read error: Connection reset by peer]
ttt has quit [Ping timeout: 240 seconds]
guns has joined #ruby
guns has quit [Client Quit]
Andyp2 has joined #ruby
perryh has quit [Excess Flood]
sent-hil has joined #ruby
sent-hil has quit [Remote host closed the connection]
perryh has joined #ruby
ryanf has joined #ruby
rakl has quit [Quit: gone]
cantonic_ has joined #ruby
alanp has quit [Ping timeout: 252 seconds]
fantazo has quit [Ping timeout: 244 seconds]
Andyp2 has quit []
Shrink has quit [Ping timeout: 244 seconds]
adeponte has quit [Remote host closed the connection]
cantonic has quit [Ping timeout: 252 seconds]
cantonic_ is now known as cantonic
Shrink has joined #ruby
Grieg has quit [Ping timeout: 268 seconds]
tonini has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
sambio has quit []
undersc0re97 has quit [Ping timeout: 260 seconds]
mkillebrew has quit [Ping timeout: 256 seconds]
nat2610 has quit [Quit: Leaving.]
mkillebrew has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
ryanf has quit [Quit: broken pipes |||]
jaygen_ has quit [Ping timeout: 252 seconds]
alanp has joined #ruby
ryanf has joined #ruby
nitti has joined #ruby
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
chimkan_ has joined #ruby
juarlex_ has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
nitti has quit [Ping timeout: 256 seconds]
Gmind has joined #ruby
djdb has joined #ruby
ananthakumaran has quit [Ping timeout: 265 seconds]
Tearan has joined #ruby
joeycarmello has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
palyboy has joined #ruby
joeycarmello has quit [Ping timeout: 244 seconds]
koshii has quit [Ping timeout: 255 seconds]
burgestrand has joined #ruby
wf2f has quit []
wargasm has quit [Read error: No route to host]
w2f2 has joined #ruby
tonini has joined #ruby
QKO has quit [Ping timeout: 245 seconds]
yxhuvud has joined #ruby
kbeddingfield_ph has joined #ruby
BoomCow has joined #ruby
QKO has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
<Gmind> anyone use IronRuby
gabrielrotbart has quit [Remote host closed the connection]
kbeddingfield_ph has quit [Remote host closed the connection]
tagrudev has joined #ruby
hbpoison has quit [Ping timeout: 260 seconds]
chimkan_ has quit [Quit: chimkan_]
adeponte has joined #ruby
ltsstar has joined #ruby
savage- has quit [Quit: savage-]
<DaDaDOSPrompt> there anything out there offering a narrative in the fashion of Why's Guide, but with Rails in mind rather than Ruby itself?
hvq has joined #ruby
JohnBat26 has joined #ruby
ABK has joined #ruby
mikepack has quit [Remote host closed the connection]
nitti has joined #ruby
mercwithamouth has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby
adeponte has quit [Remote host closed the connection]
fixl has joined #ruby
nitti has quit [Ping timeout: 256 seconds]
kil0byte has quit [Remote host closed the connection]
eph3meral has quit [Quit: eph3meral]
ananthakumaran has quit [Ping timeout: 240 seconds]
samuel02 has joined #ruby
hvq has quit [Ping timeout: 268 seconds]
Tearan has quit [Quit: Sleepy Badger....]
JonnieCache has joined #ruby
c0rn has quit []
dangerousdave has joined #ruby
ananthakumaran has joined #ruby
ltsstar has quit [Quit: ltsstar]
JonnieCache has quit [Ping timeout: 260 seconds]
stkowski has quit [Quit: stkowski]
koshii has joined #ruby
aganov has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
Ry has joined #ruby
quest88_ has quit [Quit: quest88_]
vlad_starkov has quit [Remote host closed the connection]
rippa has joined #ruby
hikki13 has joined #ruby
hikki13 has quit [Remote host closed the connection]
justsee has quit [Quit: Leaving...]
gabrielrotbart has joined #ruby
Markvilla has joined #ruby
Markvilla has quit [Client Quit]
dakine has quit [Quit: Leaving]
jprovazn_away is now known as jprovazn
mahmoudimus has joined #ruby
farid-a has joined #ruby
hbpoison has joined #ruby
haxrbyte has joined #ruby
tintin has joined #ruby
<tintin> Is there any problem if i make website with regular/raw ruby instead of using any ruby website like rails or other?
<tintin> with rack
hamed_r has joined #ruby
Guest15771 has joined #ruby
farid-a has quit []
awestroke has joined #ruby
lukeholder has joined #ruby
Tearan has joined #ruby
Takehiro_ has quit [Read error: Connection reset by peer]
Takehiro_ has joined #ruby
mmlac has joined #ruby
kaneda__ has joined #ruby
<catepillar> is there any sort of mod_ruby for apache?
nasso has joined #ruby
<nasso> does anyone know how i can use variables in a systemcall?
<nasso> a = "test"
<nasso> `echo a`
<nasso> that does not work. obviously :)
tintin has left #ruby [#ruby]
eldariof has joined #ruby
justinmcp has quit [Remote host closed the connection]
<nasso> they are called backticks.. i tried googling for ` first... found it on google
justinmcp has joined #ruby
Araxia has quit [Quit: Araxia]
<nasso> `#{var}`for the interested
nitti has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
hbpoison has quit [Ping timeout: 276 seconds]
justinmcp has quit [Ping timeout: 256 seconds]
nitti has quit [Ping timeout: 256 seconds]
Shrink has quit [Ping timeout: 276 seconds]
freeayu has joined #ruby
yangchenyun has joined #ruby
<yangchenyun> hello, I have a little question.
<yangchenyun> what's the meaning of '&' in this expression? [1,2,3].map(&:to_s)
hotovson has joined #ruby
workmad3 has joined #ruby
<Mon_Ouie> It means "pass this object as a block to the method"
<Mon_Ouie> To convert it to a proc, it will call the #to_proc method on the object
rub has joined #ruby
daniel_hinojosa has quit [Quit: Leaving.]
wedgeV has quit [Remote host closed the connection]
michael_mbp has joined #ruby
<michael_mbp> hey all
<michael_mbp> how can one setup a crawler/spider from doing its job anonymously?
ryanf has quit [Quit: leaving]
brianpWins has quit [Read error: Connection reset by peer]
brianpWins has joined #ruby
Shrink has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
<burgestrand> catepillar: there is, but look at http://www.modrails.com/ instead
<catepillar> thanks
<catepillar> i haven't gotten into rails yet
<catepillar> :/
<burgestrand> catepillar: more specifically: https://www.phusionpassenger.com/download/#open_source
<catepillar> interesting
<catepillar> no adding anything to apache conf files?
dekroning has joined #ruby
hoelzro|away is now known as hoelzro
emergion has joined #ruby
Astral__ has joined #ruby
BoomCow has quit [Quit: Leaving]
g_bleezy_ has joined #ruby
g_bleezy has quit [Ping timeout: 244 seconds]
Astral_ has quit [Ping timeout: 255 seconds]
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
chendo has quit [Read error: Operation timed out]
maletor has joined #ruby
Tearan has quit [Quit: Sleepy Badger....]
chendo_ has joined #ruby
dangerousdave has quit [Quit: Leaving...]
artOfWar has quit [Ping timeout: 255 seconds]
cento has quit [Quit: Ex-Chat]
wallerdev has quit [Quit: wallerdev]
codecaster has joined #ruby
HieLo has joined #ruby
und3f has joined #ruby
rippa has quit [Ping timeout: 240 seconds]
ZubKonst has joined #ruby
justinmcp has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<HieLo> helloo
<hoelzro> ahohy
<hoelzro> er, ahoy.
<HieLo> how are you
ZubKonst_ has quit [Ping timeout: 255 seconds]
cezar has joined #ruby
<hoelzro> I'm doing well, thanks
<hoelzro> and you?
cezar has quit [Client Quit]
<HieLo> i'm ok man
apeiros_ has quit [Remote host closed the connection]
<HieLo> where are you, hoelzro ?
<hoelzro> at work
apeiros_ has joined #ruby
<HieLo> xDD
<HieLo> ah well, you either mild hackeron
<HieLo> [hoelzro]
ddd has quit [Ping timeout: 245 seconds]
<HieLo> bye : )
HieLo has quit [Quit: • IRcap • 8.6 •]
<hoelzro> that was odd.
<yangchenyun> Mon_Ouie, what do you mean by 'this object', is it [1,2,3] or just 1?
<yangchenyun> Mon_Ouie, is there some doc to read . I search for & in the Ruby doc, but comes no clear result.
gener1c has joined #ruby
yangchenyun has quit [Quit: yangchenyun]
yangchenyun has joined #ruby
<yangchenyun> hello, is there some doc for the usage of '&' in this expression? [1,2,3].map(&:to_s)
<hoelzro> yangchenyun: it's a "Proc splat"
<hoelzro> it interprets the argument as a Proc and associates it with the called method as that method's block
<hoelzro> in that case, it's equivalent to [1,2,3].map { |n| n.to_s }
hbpoison has joined #ruby
nitti has joined #ruby
blacktulip has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
Grieg has quit [Quit: laterz! :D]
Shrink has quit [Ping timeout: 244 seconds]
rdark has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
gabrielrotbart has quit [Remote host closed the connection]
<Mon_Ouie> yangchenyun: The object is to_s
<Mon_Ouie> :to_s I mmean
nitti has quit [Ping timeout: 260 seconds]
irleif has joined #ruby
gabrielrotbart has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
d3vic3 has joined #ruby
Virunga has joined #ruby
mahmoudimus has joined #ruby
adambeynon has joined #ruby
emergion has joined #ruby
sertaconay has joined #ruby
fantazo has joined #ruby
Shrink has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
paul_s has joined #ruby
irleif has joined #ruby
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
JonnieCache has joined #ruby
justinmcp has quit [Ping timeout: 260 seconds]
daniel_-_ has joined #ruby
baphled has joined #ruby
ephemerian has joined #ruby
skum has joined #ruby
JonnieCache has quit [Ping timeout: 240 seconds]
nkts has quit []
shtirlic has joined #ruby
nari has quit [Ping timeout: 260 seconds]
icole has quit [Remote host closed the connection]
nohonor has joined #ruby
fixl has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
cantonic has joined #ruby
Xeago has joined #ruby
elaptics`away is now known as elaptics
Androidnewbe has joined #ruby
cantonic has quit [Client Quit]
<Androidnewbe> hi guys can someone tell me how do i create envrionmental varaible form ruby ?
cantonic has joined #ruby
sepp2k has joined #ruby
<hoelzro> Androidnewbe: I'm guessing ENV
<Androidnewbe> set ENV['varialbe name'] = value
<Androidnewbe> ?
timmillwood has joined #ruby
emergion has joined #ruby
<hoelzro> yeah
<catepillar> does that last after the ruby session closes?
lukeholder has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby
mmlac has quit [Quit: mmlac]
<Androidnewbe> im not sure
<Mon_Ouie> No, setting an env variable only affects the current process and its children
<catepillar> that's what i figured
nemesit has joined #ruby
hbpoison has joined #ruby
nitti has joined #ruby
arturaz has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
mukesh-rk has joined #ruby
Progster has joined #ruby
mklappstuhl has joined #ruby
ramu3 has joined #ruby
nitti has quit [Ping timeout: 256 seconds]
<Androidnewbe> testFile.rb:3:in `<main>': undefined method `set' for main:Object (NoMethodError)
<Androidnewbe> hmm
<Androidnewbe> mabe it cannot be doe
ramu3 has quit [Client Quit]
Neomex has joined #ruby
Neomex has quit [Client Quit]
drcode has joined #ruby
<drcode> hi all
<drcode> I got strange error rex/io load error, any idea? I did try to install librex and rex + io ?
timmow has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Gonzih has quit [Quit: WeeChat 0.3.5]
armenb has quit [Ping timeout: 255 seconds]
Gonzih has joined #ruby
fyolnish has quit [Remote host closed the connection]
xpen has joined #ruby
awestroke has quit [Remote host closed the connection]
Takehiro_ has quit [Remote host closed the connection]
paul_s has quit [Quit: paul_s]
arkiver has joined #ruby
drcode has quit [Quit: Leaving]
fermion has joined #ruby
codecaster has quit [Read error: Connection reset by peer]
love_color_text has quit [Remote host closed the connection]
codecaster has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
love_color_text has joined #ruby
greenarrow has joined #ruby
arkiver has quit [Quit: Leaving]
reinaldob has joined #ruby
kylemcgi_ has joined #ruby
<mukesh-rk> if i have 3 strings like x="string" and i say a=x and b=x, how does these objects are stored in memory?
kylemcgill has quit [Read error: Connection reset by peer]
<apeiros_> in memory, you have only 1 string
<apeiros_> variables reference objects
<mukesh-rk> okay now say this: x="string"
<mukesh-rk> a=x
<mukesh-rk> b=
bier has quit [Read error: Operation timed out]
<mukesh-rk> x="newstring
<mukesh-rk> "
<mukesh-rk> why a and b doesnt change?
<apeiros_> thus if you perform in-place operations, like x.upcase!, it'll be reflected everywhere where you reference the same string, e.g. a and b will both return "STRING"
<apeiros_> a & b don't change because they reference the object, not the variable
<apeiros_> a=x says "a references now the same object as x references", it doesn't say "a references x"
justsee has quit [Quit: Leaving...]
<mukesh-rk> okay. thx
<mukesh-rk> so every variable is an object ref rite?
arturaz has quit [Remote host closed the connection]
<apeiros_> every variable references an object, yes
arturaz has joined #ruby
<mukesh-rk> which object is tht?
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
tvw has joined #ruby
Androidnewbe has quit [Ping timeout: 260 seconds]
awestroke has joined #ruby
keyvan has joined #ruby
arturaz has quit [Remote host closed the connection]
<apeiros_> what do you mean by "tht"?
mikecmpbll has joined #ruby
<mukesh-rk> i mean if ii say [1,3,"string",0] wht wil happen in mem?
arturaz has joined #ruby
<mikecmpbll> how do I stop IO.read converting the string to html encoded stuff like &gt; etc?
<apeiros_> mikecmpbll: IO.read does no such thing
<mikecmpbll> darn
<mikecmpbll> okay
<apeiros_> mukesh-rk: I don't understand your question
<mikecmpbll> that makes sense i guess, must be this damned web service thing
<mukesh-rk> elements in an array is stored as refs to to each element's object right?
<apeiros_> yes
fantazo has quit [Remote host closed the connection]
<mukesh-rk> so 3 in my array wil be a fixnum obj and string wil be a string(whatever) object right?
xpen has quit [Ping timeout: 260 seconds]
<apeiros_> *will
<apeiros_> yes. the array doesn't care what kind of object it contains.
<mukesh-rk> ok
icole has joined #ruby
<apeiros_> ruby in general doesn't care about object type
<apeiros_> you have to explicitly add a check if you want that
<apeiros_> usually you should check for behavior, not type, though
<mukesh-rk> fine
bier has joined #ruby
<mukesh-rk> okay
<mukesh-rk> and how can i disable a function returning its last line?
<apeiros_> you can't
<apeiros_> also, it's methods, not functions
<mukesh-rk> tht sucks
<apeiros_> do you intentionally mutilate words? like tht instead of that?
<apeiros_> just return nil if you don't want to return a value
<apeiros_> or self
<Ry> you can override it, alias the old method, define a replacement that calls the old and returns nil.. but it sounds like a strange thing to want to do :E
<mukesh-rk> tht<that :)
<apeiros_> tht makes you look like a moron…
<catepillar> s/tht/that/
justsee has quit [Quit: Leaving...]
<mukesh-rk> Ry: great
samphippen has joined #ruby
MrSamuel has joined #ruby
<MrSamuel> Is this the best way to forward each: def each(&b) ; @a.each(&b) ; end
<apeiros_> Ry: I think it's easier to just add "nil" on your last line :-p
<MrSamuel> I thougt
<apeiros_> MrSamuel: yes
<MrSamuel> def each ; @a.each ; end would work better
<apeiros_> *a if you want to pass args too
<MrSamuel> but it doesnt..
<Ry> apeiros_: I'm kinda assuming he doesn't have control over original source
<MrSamuel> i see
<apeiros_> Ry: doesn't sound like from his question
<Ry> well then it's just funny if he implements the alias
<Ry> :D
<mukesh-rk> :)
JarJar has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
<apeiros_> Ry: indeed. might add a meta-method to do that for him… nil_returning :foo, :bar etc.
JarJar has left #ruby [#ruby]
<apeiros_> but, yeah… pointless IMO
<Ry> should gem it up just for reusability
<apeiros_> lol
<mukesh-rk> is that how u make gems??
<Ry> mukesh-rk: just ignore us, we're being arseholes :D
icrazyhack has joined #ruby
Angel_Dark has joined #ruby
Angel_Dark has quit [Client Quit]
<apeiros_> are we?
<Ry> :D
Progster has quit [Ping timeout: 256 seconds]
<mukesh-rk> not asshole.. Rusterholz.. :D just joking
<apeiros_> bravo, you get 100 internet points for knowing how to google
<mukesh-rk> yay!
irleif has quit [Quit: Computer has gone to sleep.]
Takehiro_ has joined #ruby
<apeiros_> rofl, working with a friend, always lost track of the mouse cursor - now we increased its size. it looks hilarious.
hamed_r has quit [Remote host closed the connection]
hbpoison has joined #ruby
nitti has joined #ruby
Banistergalaxy has joined #ruby
AndChat- has quit [Ping timeout: 260 seconds]
hbpoison has quit [Ping timeout: 240 seconds]
mukesh-rk has left #ruby [#ruby]
arkiver has joined #ruby
Ry has quit [Ping timeout: 255 seconds]
<arkiver> When I run this code, I get the output. But a "%" sign in printed at the end. Why does this happen and how to avoid it ?
<arkiver> code is here: https://gist.github.com/3993013
Ry has joined #ruby
nitti has quit [Ping timeout: 256 seconds]
JonnieCache has joined #ruby
<lupine_85> arkiver, the % will be given by your shell to indicate that no newline was output by your program
<lupine_85> print "\n" just before exiting would get rid of it
<arkiver> lupine_85, ohh.. Thanks :)
shiin has joined #ruby
<apeiros_> or puts
d3vic3 has quit [Ping timeout: 255 seconds]
fyolnish has joined #ruby
jenrzzz has joined #ruby
kylemcgi_ has quit []
d3vic3 has joined #ruby
<lupine_85> it's not immediately obvious that he wants newlines between fizz and buzz
arkiver is now known as g33k
g33k has quit [Quit: Leaving]
kylemcgill has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
<lupine_85> (oh, I see, puts(nil))
arkiver has joined #ruby
arkiver is now known as g33k
g33k is now known as arkiver
<apeiros_> just `puts`
<apeiros_> without argument
tonini has quit [Remote host closed the connection]
nyuszika7h has quit [Remote host closed the connection]
armenb has joined #ruby
keyvan has quit [Remote host closed the connection]
AndChat| has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
paul_s has joined #ruby
fyolnish has quit [Ping timeout: 240 seconds]
AndChat- has joined #ruby
mklappstuhl has quit [Ping timeout: 240 seconds]
Banistergalaxy has quit [Ping timeout: 260 seconds]
paul_s has quit [Client Quit]
fyolnish has joined #ruby
ans has joined #ruby
timmow has joined #ruby
<ans> class Klass; class << self; attr_accessor :var; self.var = {}; end; end
<ans> why does this say undefined method var= for class Klass
AndChat| has quit [Ping timeout: 260 seconds]
<apeiros_> because you're invoking it in the wrong place
<apeiros_> class Klass; class << self; attr_accessor :var; end; self.var = {}; end
_md has joined #ruby
<apeiros_> the one you invoke would be class Klass; class << self; class << self; attr_accessor :var; end; end; end
_md has quit [Client Quit]
<ans> thank you
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
nyuszika7h has joined #ruby
Banistergalaxy has joined #ruby
ans has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
yalue has joined #ruby
AndChat| has joined #ruby
kil0byte has joined #ruby
AndChat- has quit [Ping timeout: 260 seconds]
ij has quit [Read error: Connection reset by peer]
caveat- has quit [Ping timeout: 240 seconds]
ij has joined #ruby
irleif has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
jlwestsr has joined #ruby
AndChat| has quit [Ping timeout: 260 seconds]
ij has left #ruby [#ruby]
gnagno has joined #ruby
<gnagno> hello all
lxsameer has joined #ruby
larissa has joined #ruby
<gnagno> is this supposed to work in ruby 1.9.3 ? Hash[ "a/1/b/2".split("/") ]
<lxsameer> how does thos 'double' and 'string' methods work? http://dpaste.com/822080/
emergion has joined #ruby
paul_s has joined #ruby
fermion has quit [Read error: Operation timed out]
casheew has quit [Read error: Connection reset by peer]
Shrink has quit [Ping timeout: 252 seconds]
casheew has joined #ruby
paul_s has quit [Client Quit]
maesbn has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<csmrfx> gnagno you mean Hash[ [a,1,b,2] ]?
Gmind has quit [Quit: Leaving.]
kylemcgill is now known as aetcore
<timmillwood> 'and' vs '&&' opinions?
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
gnagno has quit [Remote host closed the connection]
timmow has quit [Quit: is having a nap]
aetcore has quit []
aetcore has joined #ruby
timmow has joined #ruby
ddd has joined #ruby
Shrink has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
Rydefalk has joined #ruby
samphippen has joined #ruby
hbpoison has joined #ruby
skaczor has joined #ruby
JarJar has joined #ruby
samphippen has quit [Client Quit]
Takehiro_ has quit [Remote host closed the connection]
BrianJ has quit [Quit: BrianJ]
nitti has joined #ruby
Axsuul has quit [Ping timeout: 255 seconds]
Progster has joined #ruby
hotovson has quit [Remote host closed the connection]
Androidnewbe has joined #ruby
<Androidnewbe> im slightly confused :) i have selenium, cucumber and capybara and ruby :) so capybara is the library that makes accessing the webpage easy ? but i also set up the webdriver with capybara ? but i also can setupt the driver without capybara with just selenium library ?
samphippen has joined #ruby
maesbn has quit [Remote host closed the connection]
cousine has joined #ruby
vlad_starkov has joined #ruby
hbpoison has quit [Ping timeout: 252 seconds]
mklappstuhl has joined #ruby
cousine has quit [Remote host closed the connection]
nanderoo has joined #ruby
nitti has quit [Ping timeout: 260 seconds]
hotovson has joined #ruby
yshh_ has joined #ruby
<MrSamuel> is there a better way to write
<MrSamuel> (0..x).collect {|i| foo(i)}
<workmad3> Androidnewbe: selenium is a library for automating control of a browser, capybara is a library that provides a DSL for driving tests against a web app that can use various 'drivers' (the default being selenium if you need JS support) to interact with the actual page
yshh has quit [Ping timeout: 260 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
shtirlic has quit [Remote host closed the connection]
maasha has joined #ruby
Takehiro has joined #ruby
hotovson has quit [Ping timeout: 245 seconds]
<maasha> yay, I have problems understanding Threads. I would like to write to iterate over an array and write chunks of the array to files in parallel.
<maasha> It gets garbled though. Errors happen
<Androidnewbe> workmad3 but it is possible to set up webdriver with capybara and with selenium ?
jrist-afk is now known as jrist
<workmad3> Androidnewbe: I don't understand what you're asking now
daniel_-_ has quit [Read error: Operation timed out]
<Androidnewbe> do i have to use capybara to set up the webdriver ?
<Androidnewbe> the problem i have is that there is no option to delete browsing hisory when i look ant capybara api
MrSamuel has quit [Quit: MrSamuel]
paul_s has joined #ruby
slainer68 has joined #ruby
<Androidnewbe> but i think it is possible by straight selenium
<Androidnewbe> by using 'profile'
<Androidnewbe> or i am just too confused
hotovson has joined #ruby
beiter has joined #ruby
<Androidnewbe> or does it mean that if i dont use capybara werbdriver i will not be able to use capybara api in the test
vlad_sta_ has joined #ruby
cantonic has quit [Quit: cantonic]
d3vic3 has quit [Ping timeout: 252 seconds]
aetcore has quit [Read error: Connection reset by peer]
aetcore_ has joined #ruby
<lxsameer> can i manipulate a instance variable in a class method ?
Nanuq has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
brendan` has joined #ruby
cantonic has joined #ruby
d3vic3 has joined #ruby
pjb3 has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
aetcore_ has quit [Read error: Connection reset by peer]
ffranz has joined #ruby
nari has joined #ruby
cantonic has quit [Ping timeout: 244 seconds]
mark_locklear has joined #ruby
carloslopes has joined #ruby
<burgestrand> lxsameer: yes, but not in the way you most likely think.
<lxsameer> burgestrand: by using meta programming ?
reisl has joined #ruby
<burgestrand> lxsameer: when people say instance variables, they think of instance variables belonging to an actual instance of a class. You cannot manipulate those without having an instance.
Guest53566 has joined #ruby
<Guest53566> yes
Guest53566 has left #ruby [#ruby]
daniel_-_ has joined #ruby
<burgestrand> Androidnewbe: capybara allows you to reach the native driver if you ever need to use API:s that capybara does not support
Shrink has quit [Ping timeout: 268 seconds]
paul_s has quit [Quit: paul_s]
<burgestrand> Androidnewbe: capybara helps you by giving you a uniform way of talking to selenium, rack-test, webkit, phantomjs and all other drivers, geared mostly towards testing your application as a simulated user.
bbttxu has joined #ruby
paul_s has joined #ruby
michael_mbp has left #ruby [#ruby]
<burgestrand> lxsameer: http://codepad.org/9jM1UGeH
icole has quit [Ping timeout: 248 seconds]
larissa has quit [Ping timeout: 260 seconds]
d3vic3 has quit [Read error: Operation timed out]
<burgestrand> lxsameer: you cannot set a default value for @instance_instance_variable on the class level, like you could do in (for example) PHP or (maybe, don’t quite remember) Java
paul_s has quit [Client Quit]
vlad_sta_ has quit [Remote host closed the connection]
paul_s has joined #ruby
Banistergalaxy has joined #ruby
dhruvasagar has joined #ruby
<lxsameer> burgestrand: aha, take a look at http://dpaste.com/822080/ please
rippa has joined #ruby
seanyo has joined #ruby
d3vic3 has joined #ruby
<Androidnewbe> burgestrand but how can i delete browsing hostroy form webdriver ?
F1skr has joined #ruby
<lxsameer> burgestrand: who does that double and string works ?
AndChat| has joined #ruby
<Androidnewbe> https://github.com/jnicklas/capybara/blob/master/lib/capybara/selenium/driver.rb#L26 in that code how can i find what 'options' are allowed ?
Banistergalaxy has quit [Ping timeout: 260 seconds]
cjs226 has quit []
alesguzik has joined #ruby
Shrink has joined #ruby
lxsameer has quit [Quit: Leaving]
arkiver has quit [Ping timeout: 240 seconds]
samphippen has joined #ruby
Astral_ has joined #ruby
arkiver has joined #ruby
samphippen has quit [Client Quit]
mikecmpbll has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
guns has joined #ruby
Astral__ has quit [Ping timeout: 252 seconds]
tommyvyo_ has joined #ruby
tommyvyo_ has quit [Changing host]
tommyvyo_ has joined #ruby
arietis has joined #ruby
Nanuq has quit [Ping timeout: 246 seconds]
mklappstuhl has quit [Ping timeout: 244 seconds]
<burgestrand> Androidnewbe: it depends on the driver, in this case selenium-webdriver.
geekbri has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<burgestrand> Androidnewbe: http://selenium.googlecode.com/svn/trunk/docs/api/rb/index.html is the documentation, I believve
emmanuelux has joined #ruby
casheew has joined #ruby
hefgi has quit [Quit: This computer has gone to sleep]
iamjarvo has joined #ruby
snearch has joined #ruby
chimkan_ has joined #ruby
Ry has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
alesguzik has quit [Ping timeout: 268 seconds]
hbpoison has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
samphippen has joined #ruby
x0F has quit [Disconnected by services]
workmad3_ has joined #ruby
x0F_ has joined #ruby
alesguzik has joined #ruby
x0F_ is now known as x0F
workmad3 has quit [Ping timeout: 260 seconds]
casheew has joined #ruby
casheew has quit [Read error: Connection reset by peer]
krawchyk has joined #ruby
aquaranto has joined #ruby
hbpoison has quit [Ping timeout: 256 seconds]
arkiver has quit [Quit: Leaving]
mmitchell has joined #ruby
jeffreybaird has joined #ruby
casheew has joined #ruby
mohanmcgeek has joined #ruby
chimkan_ has quit [Ping timeout: 240 seconds]
<Androidnewbe> but i am using the grid 2 so i dont need to dowlonad separate drivers
g-ram has quit [Quit: Computer has gone to sleep.]
nobitanobi_ has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<nobitanobi_> How should I test with Rspec a program that given an input file generates an output file? I basically have a method "parse" that goes line by line of the input file and generate a line in the output file.
g-ram has joined #ruby
casheew has joined #ruby
mikepack has joined #ruby
Banistergalaxy has joined #ruby
carloslo_ has joined #ruby
pjb3 has quit [Quit: pjb3]
AndChat| has quit [Ping timeout: 260 seconds]
v0n has joined #ruby
Androidnewbe has quit [Quit: irc2go]
JarJar has quit [Remote host closed the connection]
und3f has quit [Ping timeout: 252 seconds]
<lupine_85> nobitanobi_, you could test on results - generate a file in /tmp, make it do an output file, check the output file is as expected, delete both - or you could alter the API so that you can pass it file or data
Shrink has quit [Ping timeout: 245 seconds]
jcaudle has joined #ruby
mikepack has quit [Remote host closed the connection]
<lupine_85> def parse(input_stream, output_stream) ; ... ; end for instance
carloslopes has quit [Ping timeout: 240 seconds]
workmad3_ is now known as workmad3
invisime has joined #ruby
casheew has quit [Read error: Connection reset by peer]
und3f has joined #ruby
JarJar has joined #ruby
casheew has joined #ruby
daniel_-_ has quit [Ping timeout: 260 seconds]
sailias has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
Araxia has joined #ruby
drPoggs has quit [Quit: Goodbye]
warb0 has joined #ruby
rubylogger has joined #ruby
xpen has joined #ruby
<nobitanobi_> lupine_85: ok...it's a little bit confusing
<warb0> anyone here able to give me a tiny bit of help?
<nobitanobi_> lupine_85: would you create the file in the rspec itself? I mean, it's a long file
<warb0> I have a programming question, I cannot remember what algo it is though lmao
jeremywrowe has joined #ruby
jerius has joined #ruby
rubylogger has quit [Remote host closed the connection]
pjb3 has joined #ruby
<lupine_85> nobitanobi_, if I were doing it, I'd alter the API so I could pass an input stream and an output stream, as shown. for tests, you push a fragment into the stream that exercises the functionality you want to test, and check that the output contains the data you expect
und3f has quit [Ping timeout: 260 seconds]
<nobitanobi_> lupine_85: let me show you the code, I am trying to test.
jrajav has joined #ruby
<lupine_85> it's not very *good* testing, but one doubts your code is structured in a way that lets you do it more extensively
<lupine_85> (and I generally wouldn't bother with more than that, anyway)
shiin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<nobitanobi_> lupine_85: https://gist.github.com/3993567 -- Basically I pass it an input with several lines. And for each line I recalculate and generate anew line in the output.
yshh_ has quit [Remote host closed the connection]
Shrink has joined #ruby
cinch_ has joined #ruby
warb0 has quit [Quit: Leaving]
Ry has joined #ruby
cinch_ has quit [Remote host closed the connection]
<lupine_85> nobitanobi_, right, if you want it to be testable without touching the filesystem, you have to be able to tell it where to put the output
drPoggs has joined #ruby
<nobitanobi_> mmm, I might jsut access the output
<nobitanobi_> it will be generated in teh same folder of the specs
GoGoGarrett has joined #ruby
<lupine_85> https://gist.github.com/3993582 it's not exactly difficult
<lupine_85> ah, shopping_list is also a filename
shiin has joined #ruby
vickaita has joined #ruby
<nobitanobi_> oh lupine_85 I see
icole has joined #ruby
hefgi has joined #ruby
<nobitanobi_> well, that basically let me pass the output file name
jslowe has joined #ruby
cinch_ has joined #ruby
<lupine_85> it does much more than that
cinch_ has quit [Remote host closed the connection]
Virunga is now known as LennyLinux
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<nobitanobi_> lupine_85: wow. let me process that :)
<lupine_85> now you can do, for instance, in, out = [StringIO.new, StringIO.new] ; in.puts <<-EOF my test data\nEOF ; TaxCalculator.new(in).calculate(out) ; out.read.should ...
icole has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
<lupine_85> if you wanted better testing, you'd have more classes - serializer, deserializer, and an object representing each item on the shopping list with an +add_tax+ method
casheew has quit [Read error: Connection reset by peer]
<nobitanobi_> ok lupine_85 thanks a lot for your recommendation
casheew has joined #ruby
joofsh has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
artm has joined #ruby
elico has quit [Remote host closed the connection]
und3f has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
justsee has quit [Quit: Leaving...]
irleif has joined #ruby
mikecmpbll has joined #ruby
Cultofmetatron has joined #ruby
asobrasil has joined #ruby
pjb3 has quit [Quit: pjb3]
emmanuelux has joined #ruby
bbttxu has quit [Quit: bbttxu]
cjs226 has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
classix has quit [Ping timeout: 256 seconds]
daniel_-_ has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
pipopopo has joined #ruby
reinaldob has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Computer has gone to sleep.]
classix has joined #ruby
pjb3 has joined #ruby
hbpoison has joined #ruby
g-ram has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
rippa has quit [Ping timeout: 268 seconds]
zodiak has joined #ruby
nitti has joined #ruby
cpruitt has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
hbpoison has quit [Ping timeout: 240 seconds]
nitti has quit [Ping timeout: 260 seconds]
marty_mcfly has quit [Ping timeout: 245 seconds]
d3vic3 has quit [Ping timeout: 260 seconds]
codecaster has quit [Read error: Connection reset by peer]
codecaster has joined #ruby
yshh has joined #ruby
d3vic3 has joined #ruby
greasegum has joined #ruby
xorspark has quit [Quit: WeeChat 0.3.8]
samphippen has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
bbttxu has joined #ruby
pjb3 has quit [Quit: pjb3]
JarJar has quit [Remote host closed the connection]
jeffreybaird_ has joined #ruby
ttt_ has quit [Remote host closed the connection]
stopbit has joined #ruby
Serial_Killer_C has joined #ruby
jeffreybaird has quit [Ping timeout: 260 seconds]
jeffreybaird_ is now known as jeffreybaird
haxrbyte has quit [Read error: Connection timed out]
banisterfiend has joined #ruby
macabre has joined #ruby
nobitanobi_ has quit [Ping timeout: 245 seconds]
jcaudle has quit [Read error: Connection reset by peer]
keyvan has quit [Remote host closed the connection]
hotovson has quit [Remote host closed the connection]
haxrbyte has joined #ruby
shiin has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
lushious has quit [Remote host closed the connection]
jcaudle has joined #ruby
jcaudle has quit [Client Quit]
SoonerBourne has joined #ruby
keyvan has joined #ruby
nari has quit [Ping timeout: 256 seconds]
GoGoGarrett has quit [Remote host closed the connection]
binw has joined #ruby
Vert has joined #ruby
xpen_ has joined #ruby
mvangala has joined #ruby
dmiller_ has quit [Ping timeout: 246 seconds]
casheew has quit [Read error: Connection reset by peer]
Ry_ has joined #ruby
xpen has quit [Ping timeout: 260 seconds]
casheew has joined #ruby
Ry has quit [Read error: Connection reset by peer]
Ry_ is now known as Ry
withnale has joined #ruby
kpshek has joined #ruby
Rydefalk_ has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
icole has joined #ruby
<withnale> is there an easy way to do a = hash['key1']['key2'] || 'default' without having to worry about the scenario where key1 doesn't exist?
<hoelzro> withnale: use Hash.new { block }, maybe
<JonnieCache> not without bringing in more code. what you want is a "maybe monad"
icrazyhack has quit [Quit: http://www.cnblogs.com/crazyhack]
tk__ has joined #ruby
lushious has joined #ruby
<JonnieCache> heres a ruby implementation http://andand.rubyforge.org/
<burgestrand> withnale: hash.fetch('key', {}).fetch('key2', 'default') is an option, or a hash that always returns an empty hash for any unset key, or the andand thing.
x82_nicole has joined #ruby
<JonnieCache> burgestrands first suggestion is clearly the best
mercwithamouth has joined #ruby
jeremywrowe has left #ruby [#ruby]
joshman_ has joined #ruby
icole has quit [Ping timeout: 276 seconds]
nitti has joined #ruby
hotovson_ has joined #ruby
JarJar has joined #ruby
elico has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
elico has quit [Remote host closed the connection]
_alejandro has joined #ruby
cakehero has joined #ruby
cpruitt has quit [Quit: cpruitt]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
irleif has joined #ruby
snearch has quit [Quit: Verlassend]
casheew has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
paolooo has joined #ruby
SoonerBourne has quit [Quit: HydraIRC -> http://www.hydrairc.com <- In tests, 0x09 out of 0x0A l33t h4x0rz prefer it :)]
casheew has joined #ruby
jrist is now known as jrist-rubyconf
casheew has quit [Read error: Connection reset by peer]
nari has joined #ruby
vlad_starkov has joined #ruby
quest88_ has joined #ruby
casheew has joined #ruby
tomeo has joined #ruby
freeayu has quit [Remote host closed the connection]
SoonerBourne has joined #ruby
IrishGringo has joined #ruby
jgarvey has joined #ruby
rasbonics has joined #ruby
und3f has quit [Read error: Operation timed out]
mohanmcgeek has quit [Quit: Leaving.]
metrix has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
daniel_-_ has quit [Ping timeout: 260 seconds]
SCommette has joined #ruby
tds has joined #ruby
tintin has joined #ruby
<tintin> Hi, how do you run ruby website on windows?
cjs226 has quit []
tomsthumb has quit [Quit: Leaving.]
hbpoison has joined #ruby
<tintin> Is there any problem if i make ruby website with rack instead of using any ruby framework like rails or others?
Gmind has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
jerius has quit [Quit: Computer has gone to sleep.]
<metrix> Let's say I have an Oven object that I would use to bake something like so: oven = Oven.new; oven.temp('350') oven.insert(Dough); cake = oven.output. I want to make a shortcut class method like so: cake = Oven.bake(dough)
<metrix> how would I do this?
SCommette has quit [Ping timeout: 276 seconds]
guns has quit [Read error: Connection reset by peer]
seanyo_ has joined #ruby
<tintin> Is there any problem if i make ruby website with rack instead of using any ruby framework like rails or others?
pu22l3r has joined #ruby
clj_newb has joined #ruby
ltsstar has joined #ruby
seanyo has quit [Ping timeout: 260 seconds]
<burgestrand> tintin: no.
<burgestrand> tintin: rails uses rack, btw.
<burgestrand> tintin: most web frameworks for ruby do, because it abstracts away the webserver, which is nice.
cyt93cs has quit [Quit: leaving]
cyt93cs has joined #ruby
cyt93cs has quit [Client Quit]
tvw has quit [Remote host closed the connection]
apeiros_ has quit [Read error: Connection reset by peer]
tvw has joined #ruby
apeiros_ has joined #ruby
quest88_ has quit [Quit: quest88_]
pjb3 has joined #ruby
cyt93cs_ has joined #ruby
artm has quit [Quit: artm]
Slivka has joined #ruby
<tintin> burgestrand: How does framework abstract away webserver?
apeiros_ has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
<burgestrand> tintin: https://github.com/rack/rack
cyt93cs_ has left #ruby [#ruby]
und3f has joined #ruby
<tintin> burgestrand: that is not server, webbrick is the server with ruby
nitti has quit [Remote host closed the connection]
<burgestrand> tintin: I don’t know what you are on about.
Monie has joined #ruby
Monie has joined #ruby
Monie has quit [Changing host]
Araxia has quit [Quit: Araxia]
SCommette has joined #ruby
<Ry> metrix: def self.bake(ingredients) …code…. end
cantonic has joined #ruby
<Ry> metrix: just return an Oven object from that class method
davidcelis has quit [Quit: K-Lined.]
<metrix> Ahh! I see
nitti has joined #ruby
<metrix> I was trying to use self
djdb has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 255 seconds]
<metrix> as in self.new() self.temp() etc..
Dreamer3__ has joined #ruby
<Ry> heh :P
philcrissman has joined #ruby
<tomeo> Will Ruby perform badly working with numbers as large as 145968946107052219367611?
xpen_ is now known as xpen
mucker has joined #ruby
<tintin> burgestrand: making ruby website skiping rails
tokarev has joined #ruby
<burgestrand> tintin: sure
<apeiros> tomeo: define 'badly'
<apeiros> tomeo: also: benchmark
mklappstuhl has joined #ruby
<tintin> burgestrand: Did you build any website with only ruby not rails ?
<tokarev> hi guys! How to user ERB with Sprockets? Always get "undefined local variable or method `debug'"
<burgestrand> tintin: yes
<tomeo> apeiros: I was just checking if it was a well known fact as in ruby and recursion performing badly
<apeiros> tomeo: generally rubys bignum support is considered excellent afaik
<tomeo> apeiros: thanks
ttt has joined #ruby
tomsthumb has joined #ruby
<tintin> burgestrand: And how did you run that website? and what is that domain name of that website?
<burgestrand> tintin: I run it with rackup, which starts just about any rack-enabled server I want
<burgestrand> tintin: did a CGI one for some crazy person in this channel a year ago but I threw that away I think
<tintin> burgestrand: rackup config.ru ? is it?
pjb3 has quit [Quit: pjb3]
<burgestrand> tintin: yeah, but maybe rackup -s thin config.ru
nateberkopec has joined #ruby
pjb3 has joined #ruby
<tintin> burgestrand: CGI ? What is that for?
<tintin> burgestrand: crazy person in this channel? did he pay you for that CGI app? Why is he crazy?
ttt has quit [Ping timeout: 240 seconds]
<tintin> burgestrand: I know the basics of CGI
<tintin> burgestrand: Why was that person crazy?
hsbt is now known as hsbt_away
TechCel has joined #ruby
<burgestrand> tintin: no, no pay, I did it for fun
<tintin> burgestrand: Was that a big CGI application?
reinaldob has joined #ruby
<burgestrand> tintin: no
Progster has quit [Ping timeout: 252 seconds]
icole has joined #ruby
wallerdev has joined #ruby
tk__ has quit [Quit: ばいばい]
irleif has quit [Quit: Computer has gone to sleep.]
<tintin> burgestrand: What type of CGI application that was?
kpshek has quit []
mklappstuhl has quit [Ping timeout: 244 seconds]
kpshek has joined #ruby
solidoodlesuppor has joined #ruby
icole has quit [Ping timeout: 245 seconds]
nitti_ has joined #ruby
linoj has joined #ruby
apok has joined #ruby
alesguzik has quit [Quit: leaving]
nari has quit [Read error: Operation timed out]
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
t0rc has joined #ruby
tagrudev has quit [Quit: bbbbbbbbbbbbbbbbbeeeeeeeeeeeeeerrrrrrrrrrr]
nitti has quit [Ping timeout: 244 seconds]
areil has quit [Remote host closed the connection]
linoj has quit [Read error: Connection reset by peer]
linoj has joined #ruby
shiin has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
slainer68 has quit [Remote host closed the connection]
<tintin> burgestrand: ?
philcrissman has quit [Remote host closed the connection]
* apeiros thinks tintin should try to do more on his own and ask less
<apeiros> but that's just me…
guns has joined #ruby
<tintin> apeiros: try to do more on his own what?
<apeiros> work
<apeiros> experiments
<apeiros> whatever
<apeiros> just try stuff instead of asking a hole in peoples chest
iamjarvo has quit [Quit: Computer has gone to sleep.]
geggam has joined #ruby
<tintin> apeiros: Yes, that's good
<tintin> apeiros: What did yo do so far with ruby? or what do you do with ruby?
rippa has joined #ruby
<tintin> apeiros: Can you give me some idea to make a website with ruby?
<apeiros> everything I want.
<apeiros> no
<tintin> apeiros: Why not?
<tintin> apeiros: Do you use rails or any ruby framework to make ruby websites?
mrsrikanth has joined #ruby
<apeiros> I use rails at work
<apeiros> I reinvent all wheels at home.
icole has joined #ruby
chimkan has joined #ruby
<tintin> apeiros: Why do you re-invent all wheels at home as you can use rails and you use rails at work
<tintin> ?
<apeiros> because at work it's work, at home it's fun.
<Kudos> apeiros: Why does the sun come up every day?
icole has quit [Remote host closed the connection]
<Kudos> What are stars made of?
<ddd> why is the grass green? why is the sky blue?
<ddd> daddy what are people made of?
d3vic3 has quit [Ping timeout: 268 seconds]
<wmoxam> "Is manhunter stupid or just asking too many questions? 45.3% lines contained a question! " <--- http://cross-lfs.org/~cosmo/irc-stats/lfs-support.html
<drnfx> Hey, I have tried looking for an answer but no dice, is itpossible to have a rake task utilize multiple cores?
Gmind has quit [Quit: Leaving.]
<wmoxam> lol, banned from #archlinux and #python
Gmind has joined #ruby
<apeiros> who? manhunter? aka tintin?
d3vic3 has joined #ruby
adeponte has joined #ruby
<tintin> apeiros: What did/do you make with rails at work? What type of projects those are?
<tintin> wmoxam: I'm not banned in #archlinux and #python
<apeiros> tintin: none of your business
philcrissman has joined #ruby
<tintin> apeiros: If you tell me, it can help me to get idea to make something
<ddd> thats your job not our's
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
<wmoxam> lol
reisl has quit [Quit: Leaving]
<tintin> Why can't i get any idea?
<ddd> because you're an imbecile? :shrug:
codecaster has left #ruby [#ruby]
JustinCampbell has joined #ruby
<tintin> ddd: I think, NO
<ddd> thats your problem, you DON'T think
<apeiros> ddd: no need to become insulting. but you can always request him being banned if he annoys you.
<apeiros> (re imbecile)
linoj has quit [Quit: linoj]
<ddd> apeiros: point taken. request made
<Sou|cutter> tintin: you have just defined a problem: you are having trouble getting ideas. Now solve that with an application
<tintin> ddd: I disagree. sorry.
<hoelzro> actually, I have an idea I would like implemented by someone with spare time
<hoelzro> a lot of people have ideas that they would like to see implemented, but don't have the time to do
<arietis> hey, i have such class https://gist.github.com/0d7d5adbde83ff4b93c7
<hoelzro> so I'd like a service for sharing these ideas so people with free time can implement them
<tintin> hoelzro: Ok, i'm here to do it.
<hoelzro> tintin: please feel free!
<apeiros> ddd: duly noted.
<arietis> how can i send message to object of such class?
<tintin> hoelzro: Can i pm you?
<hoelzro> sure
<banisterfiend> tintin: you talk too much
<arietis> i could add messages in class file after methods declaration
<arietis> but it looks wrong to me
samphippen has quit [Quit: Computer has gone to sleep.]
jrajav has quit []
Vinz_` is now known as Vinz_
<tintin> Sou|cutter: That's good.
adelcampo has joined #ruby
adelcampo is now known as doritostains
<burgestrand> tintin: I don‘t remember what type of application it was. I didn’t care much.
<wmoxam> tintin: pls make me an app that makes me a sandwich
tokarev has quit [Quit: Leaving]
<wmoxam> k thx
<tintin> wmoxam: Buy a sandwich maker
<wmoxam> tintin: make me a sammich app and deploy it on Windows
apeiros has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
<tintin> wmoxam: Go to mcdonalds
<wmoxam> tintin: sudo make me a sammich app and deploy it on Windows
<ddd> hey that'd be a good home project. a website that lets you place sandwich orders that you make at the house, and then deliver. set your radius to oh, 10 miles.
kpshek has quit []
<tintin> wmoxam: What is sammich app?
<tintin> ddd: That's good.
<Sou|cutter> ddd: or how about an app that lets you gps track sandwiches that are already made and ready to eat, so you can find the sandwich closest to you. call it uber sandwich
<ddd> set a list of ingredients you are willing to work with, let them mix and match from that set of ingredients to make a custom sandwich from that ingredient set. Have them place the order, including paypal integration and/or other payment methods, with a spot for the address. Charge a specific amount for delivery.
<wmoxam> tintin: why do you ask so many questions?
<ddd> go. make it happen
<Xeago> can anyone tell me if these are two different characters? "—–"
und3f has quit [Quit: Leaving.]
<ddd> Xeago: the solid line (which is usually approximated as two -s) is one, the single - is another
<Sou|cutter> Xeago: they are different
<ddd> Remember the old dos days where they had menu screens with the double lines and double line corners. ASCII extended charset
beiter has quit [Read error: Connection reset by peer]
<ddd> the first is from that
<Xeago> the first is an en dash
<Xeago> it seems
<Xeago> but my font doesn't differentiate between them
<ddd> shows as a single solid here
<ddd> yeah mine either then
aganov has quit [Remote host closed the connection]
<Sou|cutter> you can't trust fonts
<Sou|cutter> just look at the codepoints
hsbt_away is now known as hsbt
<Xeago> the em—dash should be wider than the en–dash
<Ry> arietis: not sure what you're asking? You trying to find all instances of this class and message them? ObjectSpace.each_object(Converter) perhaps? :)
<ddd> monaco on osx is the set im using under WTF-8
<Xeago> and here is a hyphen
<ddd> err UTF-8 even
<Xeago> wops -
<Sou|cutter> WTF-8.. haha, I like that
<ddd> hehe
ananthakumaran has quit [Quit: Leaving.]
<arietis> Ry: trying to figure out how to properly run init->prepare->convert chain
<tintin> "Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning."
<tintin> The most important thing is not to stop questioning: The most important thing is not to stop asking questions, since questions make you learn stuff and make you smarter, since learning makes you smart.
<wmoxam> tintin: Are you a literalist?
<arietis> is there any analogue of main() in ruby?
maasha has quit [Quit: Page closed]
xpen has quit [Remote host closed the connection]
<burgestrand> arietis: the script itself is the main().
<tintin> wmoxam: That was said by scientist, not by literalist
icole has joined #ruby
cakehero has joined #ruby
eph3meral has joined #ruby
<burgestrand> arietis: if you want to figure out if the script currently running is the script that was executed, the way to do it is is: "if $0 == __FILE__; …; end"
<wmoxam> tintin: do you take all quotes literally?
<tintin> cakehero: Hi hero, what are you doing here?
linoj has joined #ruby
<cakehero> chililn
icole_ has joined #ruby
<cakehero> chillaxing
<ddd> tintin: why are you acting literally on a scientist's quote?
<tintin> wmoxam: That quote is very common to all.
<ddd> tintin: why aren't you working on the sandwich app?
<cakehero> ddd he's maximum troll
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
<ddd> tintin: why are you so bored?
<LennyLinux> Hi, is there a method that let me iterate over an array copy?
<burgestrand> LennyLinux: yes, #each.
<ddd> LennyLinux: you can use each
<tintin> cakehero: Why are you here? it's not #cakephp, go to #cakephp
<cakehero> ddd lol look at second message: http://irc.cakephp.org/search/cakephp/tintin
<arietis> burgestrand: i just wanna run each method of this script step-by-step
<tintin> cakehero: ARe ou making cake here?
<cakehero> tintin are you banned from #cakephp?
BigFatFatty has joined #ruby
<burgestrand> arietis: then call them in succession
<tintin> cakehero: Or are you here to introduce me.
<LennyLinux> burgestrand: ddd so i can modify the array while i'm iterating?
<arietis> burgestrand: but it looks wrong to me
<burgestrand> LennyLinux: yeah but it could be confusing.
<cakehero> Everyone, this is tintin, he's a maximum troll
<burgestrand> arietis: I'm sorry.
<tintin> cakehero: NO
<ddd> cakehero: we know.
<cakehero> Troll++
<ddd> we aren't inexperienced with tintin/manhunter
<wmoxam> cakehero: no shit
<tintin> cakehero: I disagree. Sorry.
<cakehero> ddd ahhh you know of his alter ego as well
<ddd> yes
<burgestrand> yes
<arietis> burgestrand: may be i should create runner class?
<burgestrand> arietis: sounds like overengineering to me.
<cakehero> I feel as though we now share a common bond
<tintin> That is 'James Bond'
<wmoxam> tintin: what is a James bond?
<wmoxam> tintin: is it a type of glue?
<cakehero> tintin are you a rich american programmer yet?
<tintin> wmoxam: Ask hero.
<tintin> cakehero: Ask savant.
<ddd> trust me, i'm behaving only because *I* value this resource. otherwise i'd be blitzing him. Not going to lose this resource though over a.. hmm, can't think of a kind word so leaving it there
<wmoxam> tintin: why should I ask him?
Trioke has joined #ruby
linoj has quit [Client Quit]
<wmoxam> tintin: were you ever bonded to cakehero?
icole has quit [Ping timeout: 256 seconds]
<tintin> cakehero: By the way, how is going on in NYC these days, are you under water?
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
<ddd> wmoxam: Confessor!
<cakehero> tintin I'm in San Fransisco
<ddd> bwahahah
<tintin> cakehero: Why?
<cakehero> and there is a hot chick staying in my apartment in NYC
jgrevich has joined #ruby
<cakehero> and I'm here with her sister
<cakehero> it's pretty strong
<wmoxam> tintin: where do you live?
<wmoxam> tintin: are you underwater?
<wmoxam> tintin: where do you live?
<cakehero> wmoxam he lives in ethernopia
<tintin> cakehero: Did you leave NYC right before Sandy storm?
<cakehero> he/she
<cakehero> tintin my flight back was cancelled
<cakehero> i left about 4 weeks ago
JarJar has quit [Remote host closed the connection]
icole_ has quit [Remote host closed the connection]
jprovazn has quit [Quit: Leaving]
<tintin> cakehero: So you survived from that Sandy storm, lucky
<apeiros_> can we stop that, please?
jaygen has joined #ruby
<tintin> Ok, bye
tintin has left #ruby [#ruby]
<cakehero> =(
<cakehero> So lonely without him
mrsolo has joined #ruby
<cakehero> i wonder if he'll come back
<apeiros_> he will
<cakehero> to his credit....
<cakehero> apparently he switched to ruby earlier than i did
<cakehero> heh
_bart has quit [Quit: _bart]
burgestrand has quit [Quit: Leaving.]
<banisterfiend> i remember banning him once before
sertaconay has quit [Read error: Connection reset by peer]
<banisterfiend> he's a pretty unusual troll, i think it's really just extreme autism rather than outright trolling
davidcelis has joined #ruby
tvw has quit [Ping timeout: 260 seconds]
JohnBat26 has quit [Ping timeout: 240 seconds]
JarJar has joined #ruby
<cakehero> heh
<cakehero> banisterfiend I think there are some cultural discrepancies
<banisterfiend> cakehero: oh, what's his ethnicity/culture ?
pu22l3r has quit [Remote host closed the connection]
<cakehero> I think he's from a country in africa
<cakehero> he told us once
<cakehero> i don't know if he was lying or not
<cakehero> but he would always ask about salaries and making money
kidoz has joined #ruby
beiter has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
anachronistic has joined #ruby
<ddd> only other thing i can feasibly think of is a young kid in a poor land/country thats trying to get out of that shadow but hasn't learned internet etiquette yet, or banisterfiend's autistic possibility
<ddd> because he's a *really* crappy troll
Grieg has quit [Quit: laterz! :D]
<matti> Ohai ddd
jasond has quit [Ping timeout: 246 seconds]
<matti> ddd -- Data Display Debugger
<ddd> hehe
<matti> Every time I see your nick ;p
<ddd> how's things matti?
vickaita has quit [Ping timeout: 240 seconds]
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
<matti> ddd: Not bad.
<matti> You?
<ddd> yeah, its my own nick and it brings that to mind
samphippen has joined #ruby
nwertman has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
<ddd> still sick, recovering slowly. insurance kicks in today, so hopefully can pick up the antibiotics either tonight when the wife gets home or tomorrow morning
nwertman has left #ruby [#ruby]
monkegjinni has joined #ruby
* Xeago was output by a password generator: X34g0^, never used as such tho
Takehiro has quit [Remote host closed the connection]
<ddd> other than that, just busy reading and self educating when not taking pauses to track the channels. REALLY liking this Ruby Under a Microscope ebook!
<matti> Oh.
<matti> Never seen this book before.
<matti> Good?
<matti> Xeago: LOL
kidoz has joined #ruby
<ddd> matti: oh my, yes!
maesbn has joined #ruby
erichmenge has joined #ruby
clj_newb has quit [Ping timeout: 255 seconds]
<JonnieCache> are they selling paper copies?
<ddd> if you already know this stuff, as in you already dive deep into what makes ruby tick under the hood it might not be worth it, however for me because I never have but always wanted to, its a great read
<ddd> JonnieCache: hmm, i don't think so.
tvw has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
drbawb has quit [Ping timeout: 240 seconds]
<ddd> he's quite good at his talking points too. and as you can see from the example TOC, he's quite thorough. Where he glosses he explains why he is, so far I'm loving it
hoelzro is now known as hoelzro|away
<Xeago> a question about spacing after a sentence
maletor has joined #ruby
<Xeago> in a monospace setting, do you use single or double space after a sentence?
<ddd> single far as i remember.
<matti> ddd: Thanks for the ebook recommendation ;]
<ddd> matti: oh any time!
<ddd> keep me in mind if you find something good as well.
<ddd> i'm an ebook junkie when it comes to ruby, design patterns, better testing techniques, object oriented thought processes, etc. I've no formal training of any kind. All self taught. I'm 42 going back to college to gain some starting in Jan. (Enrolled already, just waiting to pick classes on Nov 5) so anything that speaks to those things are of great use to me
<matti> :>
alvaro_o has joined #ruby
<ddd> well I'll be 42 next Friday
<ddd> wow, feel like i'm only 26-28 in the head
<matti> 42?
<matti> LOL age ;]
<matti> Because of "42" ;]
<matti> [ that sounded badly ;p ]
<ddd> hehe. yeah hitchhiker's guide to the universe iirc
<matti> Yeah.
sepp2k has quit [Ping timeout: 260 seconds]
<Sou|cutter> age is nothing. I'm 84, and a liar
<ddd> answer to life's question was 42 but what was the question? no one knows :)
<withnale> If you're looking for book recommendations, I strongly recommend 'eloquent ruby' - teaches you how to write programs in the ruby style - not just converting from other languages.
<matti> ddd: I know.
<matti> ddd: "What's for lunch"
<Sou|cutter> withnale: my laptop is sitting on that book rgt now :)
chrisbolton has joined #ruby
eldariof has quit []
<Sou|cutter> it's good
dakine has joined #ruby
<ddd> withnale: got it. on my to-read list. I'm working through the microscope book, the xunit test patterns book, the design patterns in ruby, and objects on rails ebook right now
rakl has joined #ruby
d3vic3 has quit [Ping timeout: 265 seconds]
<ddd> matti: hah!
blazes816 has joined #ruby
<Sou|cutter> I want to read the object on rails one
<ddd> that and the object oriented thought processes book as well. too many books to read and a bit slow working through them all
<withnale> yeah. they were going to get ppl training courses in ruby here for the guys who didn't know it. I just told them to buy a copy of the book for everyone instead.
`brendan has joined #ruby
Rydefalk_ has quit [Read error: Connection reset by peer]
d3vic3 has joined #ruby
Rydefalk has joined #ruby
<JonnieCache> just make them all implement everything in this book www.cleveralgorithms.com/nature-inspired/index.html
cobragoat has joined #ruby
apok has quit [Quit: apok]
proshot has quit [Quit: Leaving]
<Sou|cutter> withnale: different people have different learning styles. Should've done both! :)
eugynon has joined #ruby
IrishGringo has quit [Read error: Operation timed out]
pu22l3r has joined #ruby
macabre has quit [Read error: Connection reset by peer]
<ddd> phone
macabre has joined #ruby
mrsrikanth has quit [Quit: Leaving]
<invisime> is there a nice way to run an rspec test against a rake task?
havenn has joined #ruby
iamjarvo has joined #ruby
<invisime> that's not "run rspec from a rake task." that's "run rspec to test a rake task."
mahmoudimus has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
Tearan has joined #ruby
JustinCampbell has joined #ruby
Rydefalk_ has joined #ruby
kidoz has joined #ruby
<Sou|cutter> invisime: I'd try to make your rakefile as simple as ossible, the maybe creating a custom rake task for whatever your complicated operation is, then test that rather than your rakefile
hsbt is now known as hsbt_away
havenn has quit [Remote host closed the connection]
Rydefalk has quit [Read error: Connection reset by peer]
<invisime> Sou|cutter: yeah, that's the idea. but how would I test the task?
`brendan has quit [Read error: Connection reset by peer]
havenn has joined #ruby
Tearan has quit [Client Quit]
dpatel has joined #ruby
`brendan has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
d3vic3 has quit [Ping timeout: 252 seconds]
b26 has joined #ruby
d3vic3 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
<invisime> Sou|cutter: I think I'm going to use this method: http://stackoverflow.com/questions/6895179/running-rake-tasks-in-rspec-tests thanks!
artOfWar has joined #ruby
alfism has joined #ruby
linoj has joined #ruby
<Sou|cutter> invisime: okee dokee
havenn has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
`brendan has quit [Ping timeout: 256 seconds]
b26 is now known as `brendan
pjb3 has quit [Quit: pjb3]
answer_42 has joined #ruby
irleif has joined #ruby
BoomCow has joined #ruby
mikecmpbll has joined #ruby
IrishGringo has joined #ruby
Agis__ has joined #ruby
linoj has quit [Client Quit]
nohonor_alt has joined #ruby
JustinCampbell has joined #ruby
nohonor has quit [Ping timeout: 260 seconds]
judd7 has joined #ruby
ohsiris has joined #ruby
<JonnieCache> fucking hell i hate browsers so much
<JonnieCache> why am i a web developer
<Xeago> JonnieCache: what wall did you run into this time?
Takehiro has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<JonnieCache> its just forms and the horrible string mutation operations one has to do in order to make complex nested dynamic forms work
<JonnieCache> it doesnt help that im working in raw html without any framework/helpers/etc
slainer68 has joined #ruby
jeremywrowe has joined #ruby
illsci has joined #ruby
rakl has quit [Quit: sleeping]
<apeiros_> hm, dunno, you mean things like has_many :whatever and you have a form with (+) and (-) buttons for the whatever?
<illsci> hey what's up
samphippen has joined #ruby
<illsci> I'm trying to setup different versions of ruby with rbenv and the ruby-build plugin
<apeiros_> freenode is up
<JonnieCache> apeiros_: yes. that but nested 3 times
<illsci> I cloned ruby-build into rbenv/plugins/ruby-build and rbenv doesn't appear to magically have a rbenv install
<illsci> how do I get that to happen?
<apeiros_> JonnieCache: sounds like fun
<JonnieCache> the ruby part is simplicity itself
<JonnieCache> its making the DOM in the browser line up with it thats the problem
<JonnieCache> regexes ahoy!
<apeiros_> I've done it for a single level of nesting, and that's relatively easy IMO
walbert has joined #ruby
<apeiros_> hm, I only had a single regex
tvw has quit [Remote host closed the connection]
<JonnieCache> the problem is i have 3 levels of nesting and im trying to use the same javascript function to manipulate the form at each level
Araxia has joined #ruby
<JonnieCache> so the regex has to cope with any scenario
<JonnieCache> its not that hard but its just one thing after another, you know?
<apeiros_> hm, I'd imagine with proper cascading, that should not be an issue. but the devil is often in the details, so I might well be unaware of a couple of nastinesses…
<JonnieCache> it wouldnt be an issue if i were a better programmer and if i didnt have the rest of the office asking me questions every 10 minutes
<apeiros_> or put in another way: I know how seemingly harmless things can turn into monstrosities within minutes :)
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
Takehiro has quit [Ping timeout: 240 seconds]
artOfWar has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
illsci has left #ruby [#ruby]
artOfWar has joined #ruby
sepp2k has joined #ruby
havenn has joined #ruby
icole has joined #ruby
apok has joined #ruby
icole_ has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
paul_s has quit [Quit: paul_s]
icole__ has joined #ruby
hbpoison has joined #ruby
jerius has joined #ruby
icole_ has quit [Read error: Connection reset by peer]
ephemerian has quit [Quit: Leaving.]
Araxia_ has joined #ruby
thinkdevcode has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
mjb2k has joined #ruby
<timmillwood> anyone got any datamapper performance tips?
samuel02 has quit [Remote host closed the connection]
mrsolo has quit [Quit: Leaving]
havenn has quit [Ping timeout: 260 seconds]
icole has quit [Ping timeout: 246 seconds]
hbpoison has quit [Ping timeout: 240 seconds]
paolooo has quit [Quit: Page closed]
GoGoGarrett has joined #ruby
<mr-rich> rking: ping
d3vic3 has quit [Quit: leaving]
<rking> mr-rich: Kinda pong.
mmitchell has quit [Remote host closed the connection]
ryanlecompte has joined #ruby
mmitchell has joined #ruby
sn0wb1rd has joined #ruby
jasond has joined #ruby
khakimov has joined #ruby
dekroning has quit [Ping timeout: 276 seconds]
<mr-rich> rking: do you use savon to make requests to any machines with self signed certs?
rakl has joined #ruby
mklappstuhl has joined #ruby
icole__ has quit [Read error: Connection reset by peer]
linoj has joined #ruby
mmitchell has quit [Ping timeout: 240 seconds]
rasbonics has quit [Quit: rasbonics]
icole has joined #ruby
<rking> mr-rich: No cert stuff yet. Just turning cert checks off. =\
mogaj has joined #ruby
greasegum has quit [Ping timeout: 260 seconds]
havenn has joined #ruby
<banisterfiend> rking: sup ryan
<banisterfiend> rking: did cirwin/ryanf say anything about visiting devswag?
<rking> banisterfiend: I've not been following the IRC happenings too closely, but I don't recall anything about that.
sertaconay has joined #ruby
<rking> banisterfiend: Do you want me to drive to devswag, myself?
<banisterfiend> rking: ah ok, you checked out ruby 2.0?
<banisterfiend> rking: nawwww, they're get around to it, eventually..
Essobi has quit [Ping timeout: 276 seconds]
<banisterfiend> rking: i just want my pry stickers so i can attract all the womens
nat2610 has joined #ruby
omry has quit [Quit: Leaving]
<banisterfiend> rking: did you see the /^$/ command that guard use?
<mr-rich> rking: all the devices I deal with have self signed certs. Setting http.auth.ssl.verify_mode = :none lets the requests through, but prints "at depth 0 - 18: self signed certificate" to STDOUT ... just wondering if you knew how to suppress those messages ...
<rking> banisterfiend: a) I still haven't successfully compiled Ruby 2.0, but I keep a distant eye on the code changes as they come in. Did your binding_of_caller thing get addressed? b) I was joking about driving. That'd take me >10 hrs.
<banisterfiend> rking: it's pretty clever, i never thought of using that to just hook an 'enter' press
<rking> banisterfiend: I invented that. =P
<banisterfiend> rking: oh really? cool
icole_ has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
<banisterfiend> rking: if you get it to replay Pry.history[-1] that would be a pretty nice default
BrianJ has joined #ruby
davidcelis has quit [Quit: K-Lined.]
<rking> banisterfiend: Problem with replaying history[-1] is recursion
csaunders has joined #ruby
<rking> Oh, no, maybe not
davidcelis has joined #ruby
<rking> I was trying to make a ,r command that would rerun the last one, but then it'd end up re-running itself the next time.
Jamone has joined #ruby
Jamone has joined #ruby
Jamone has quit [Changing host]
hsbt_away is now known as hsbt
<rking> But maybe doing the regex thing would sidestep that.
wallerdev has joined #ruby
icole has quit [Ping timeout: 246 seconds]
<arietis> if im running this script i get error https://gist.github.com/9afab92f33e908b8e2ce
schwap has joined #ruby
<arietis> Converter.rb:13:in `convert': undefined method `gsub' for nil:NilClass (NoMethodError)
<arietis> from Converter.rb:24:in `<class:Converter>'
<arietis> from Converter.rb:1:in `<main>'
<banisterfiend> rking: works great https://gist.github.com/3995162
<davidcelis> arietis: read the error
<davidcelis> arietis: it tells you _exactly_ what is wrong
<RubyPanther> nils don't get to #gsub
<banisterfiend> rking: it even worked inside a multi-line expression (such as a method definition) so pressing enter caused the method to have two lines with "puts 'hi'" in it :D
<RubyPanther> Bad nil! Stop trying to do something. You are nothing. Know your place.
<arietis> but i define arguments
<rking> banisterfiend: Cool. I'm not sure if such a short input should rerun previous. It's good for pry-debugger but I don't know if it's good enough elsewhere.
Monie has quit [Ping timeout: 260 seconds]
<rking> banisterfiend: And for pry-debugger, the best solution IMO is to map F-keys like other debuggers (e.g. Chrome/FF/MSVS)
<davidcelis> arietis: doesn't matter if you pass in nil for the argument
<davidcelis> arietis: which you did
<davidcelis> convert(nil) # you passed in nil as the argument, which doesn't have gsub
<banisterfiend> rking: still, it's a k00 trick ;)
<Paradox> stoopid paypal
icole_ has quit [Remote host closed the connection]
Jamone has quit [Client Quit]
<banisterfiend> rking: i like when nifty little things like that are invented by other people (i.e you), when i had thought it wasn't going to be so simple
casheew has quit [Read error: Connection reset by peer]
Monie has joined #ruby
<arietis> davidcelis: i passed str which is @content
<davidcelis> arietis: then @content is nil, dude
rasbonics has joined #ruby
<davidcelis> arietis: whatever you passed into convert is nil. your error message makes that pretty obvious
monobit_ has joined #ruby
<arietis> davidcelis: how can i debug it?
<rking> banisterfiend: I think that makes the score: ☈:2, B:875, but hey.
<blazes816> use pry and check the contents
casheew has joined #ruby
<davidcelis> ^
<blazes816> or "puts 'aaaaaaaa' if @content.nil?"
<davidcelis> or ruby-debug or some fucking puts statement
monobit_ has quit [Client Quit]
<davidcelis> i usually just puts the shit i want to see unless i need to do something more
xclite has quit [Remote host closed the connection]
<rking> davidcelis: But then you have to do it several times in a row if you guess wrong.
elico has joined #ruby
* davidcelis doesn't guess wrong
Emmanuel_Chanel has joined #ruby
<rking> davidcelis: Then why do you need to debug in the first place?
<blazes816> knowing wrong isn't any better ;)
qwerxy has joined #ruby
<davidcelis> rking: sshhhhhhh
erichmenge has quit [Quit: Be back later]
samphippen has quit [Quit: Computer has gone to sleep.]
xclite has joined #ruby
<davidcelis> just let me be bad
erichmenge has joined #ruby
<davidcelis> ;)
<rking> ruby-debug is a viable option, but I'd miss other pry features, e.g. show-source (the $ command)
erichmenge has quit [Client Quit]
mogaj has quit [Quit: Leaving]
<rking> I'm not sure what ruby-debug offers over pry-debugger. I need to examine that.
<davidcelis> jquery?
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<davidcelis> i don't think there's a reason to use ruby-debug over pry-debugger
<rking> davidcelis: Hehe, not jQuery on this one. A few of the highly-used pry commands have terse aliases. "$ Foo" is the same as "show-source Foo", and "? Foo" is the same as "show-doc Foo"
voodoofish430 has joined #ruby
mblb has joined #ruby
<davidcelis> haha i was joking :P
Monie has quit [Client Quit]
<rking> (And, if you use pry-de, "?$ Foo" is the same as doing "? Foo" then "$ Foo")
nohonor_alt has quit [Quit: Leaving]
postmodern has quit [Quit: Leaving]
nohonor has joined #ruby
nohonor has quit [Client Quit]
nohonor has joined #ruby
nohonor has quit [Client Quit]
enricostn has joined #ruby
icole_ has joined #ruby
Monie has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<JonnieCache> apeiros_: i forgot the thing that made my problem hard: the three levels are all different. theres no recursion involved
Araxia has quit [Read error: No route to host]
<enricostn> (reading The Ruby Programming, Flanagan & Matsumoto) raise Invalid, "Initial puzzle has duplicates" if has_duplicates? give me NameError: uninitialized constant Invalid
<JonnieCache> thats why writing a single function to handle all 3 levels is doing my head in
<enricostn> it seems Invalid is deprecated
casheew has joined #ruby
samphippen has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
<enricostn> what excepcion I should use instead now?
<rking> enricostn: I've never seen that class before.
<rking> enricostn: My guess is they have some line above that which is like: class Invalid < Exception; end
mmitchell has joined #ruby
SoonerBourne has quit [Quit: Try HydraIRC -> http://www.hydrairc.com <-]
staafl has joined #ruby
<enricostn> rking, I was looking for something like that but.. nope :(
<rking> enricostn: You can just get rid of the "Invalid, " and it'll work fine.
<rking> Raises a RuntimeError
JustinCampbell has quit [Remote host closed the connection]
Araxia has joined #ruby
SoonerBourne has joined #ruby
Neomex has joined #ruby
<apeiros_> enricostn: sounds like you're missing a piece of the code
SoonerBourne has quit [Client Quit]
savage- has joined #ruby
<apeiros_> enricostn: most likely they had something like `class Invalid < StandardError; end` in the code
<enricostn> rking, yeah. where I could look for the available exceptions?
<enricostn> apeiros_, nope :(
tds_ has joined #ruby
tds has quit [Disconnected by services]
tds_ is now known as tds
icole_ has quit [Remote host closed the connection]
Monie has quit [Quit: Quit]
<rking> apeiros_: How dare you not read what I wrote!!
proshot has joined #ruby
minijupe has joined #ruby
fantazo has joined #ruby
<rking> enricostn: http://goo.gl/EUW9u
<banisterfiend> enricostn: best book
ryanlecompte has quit [Ping timeout: 248 seconds]
<apeiros_> rking: sorry
punkrawkR has joined #ruby
<rking> apeiros_: J/k. Now we're even?
<rking> apeiros_: Why did you choose StandardError over Exception?
<rking> apeiros_: Actually, NM I totally see why.
vickaita has joined #ruby
<enricostn> rking, thank you!
<rking> non-StandardErrors are like compiler/ruby system errors.
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
rakl has quit [Quit: sleeping]
jaygen has quit [Remote host closed the connection]
<apeiros_> rking: never use Exception. rule of thumb.
<apeiros_> plain rescue doesn't rescue Exception, only StandardError
<rking> Cool.
SoonerBourne has joined #ruby
<apeiros_> and on the same note: `rescue Exception` is a bad idea. don't do it. it'll rescue things like NoMemoryError etc.
jaygen has joined #ruby
casheew has quit [Read error: Connection reset by peer]
irleif has quit [Quit: Computer has gone to sleep.]
SoonerBourne has quit [Client Quit]
csaunders has quit [Quit: Computer has gone to sleep.]
* rking makes note to examine this interesting concept of "hierarchy". Could be useful for arranging items and thoughts.
Agis__ has quit [Quit: Agis__]
dash_ has joined #ruby
kpshek has joined #ruby
timmillwood has quit [Ping timeout: 260 seconds]
mucker has quit [Quit: leaving]
samphippen has quit [Quit: Computer has gone to sleep.]
<arietis> davidcelis: found the problem
<dash_> hello, is possible to agregate aspect in aspect oriented programming?
<arietis> can't use @attr in main
rakl has joined #ruby
<arietis> need to use class.attr instead
casheew has joined #ruby
Rydefalk_ has quit [Read error: Connection reset by peer]
<rking> dash_: Elaborate, por favor.
Rydefalk has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
irleif has joined #ruby
sepp2k has joined #ruby
brianpWins has quit [Quit: brianpWins]
alfism has quit [Quit: alfism]
tvw has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
Rydefalk has joined #ruby
Neomex has quit [Quit: Neomex]
macmartine has joined #ruby
casheew has joined #ruby
Takehiro has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
dissolved has joined #ruby
J-_-L has joined #ruby
d2dchat has joined #ruby
mrsolo has joined #ruby
SoonerBourne has joined #ruby
Takehiro has quit [Ping timeout: 240 seconds]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
havenn has quit [Ping timeout: 260 seconds]
sertaconay has quit [Read error: Operation timed out]
cakehero has joined #ruby
havenn has joined #ruby
SoonerBourne has quit [Client Quit]
tenmilestereo has joined #ruby
skum has quit [Quit: Leaving...]
nateberkopec has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
samphippen has joined #ruby
casheew has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
pu22l3r has joined #ruby
rakl has quit [Quit: sleeping]
erichmenge has joined #ruby
samphippen has quit [Client Quit]
freakazoid0223 has quit [Remote host closed the connection]
SoonerBourne has joined #ruby
philcrissman has quit [Remote host closed the connection]
swex has joined #ruby
SoonerBourne has quit [Client Quit]
SoonerBourne has joined #ruby
mmlac has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
c0rn has joined #ruby
SoonerBourne has quit [Client Quit]
SoonerBourne has joined #ruby
casheew has joined #ruby
hbpoison has quit [Ping timeout: 240 seconds]
hotovson_ has quit [Remote host closed the connection]
rakl has joined #ruby
kpshek has quit []
Gmind has quit [Quit: Leaving.]
<t0rc> !ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
csaunders has joined #ruby
nitti_ has quit [Remote host closed the connection]
emmanuelux has joined #ruby
baphled has quit [Ping timeout: 248 seconds]
linoj has quit [Quit: linoj]
hsbt is now known as hsbt_away
Emmanuel_Chanel has joined #ruby
bricker has joined #ruby
yshh has quit [Read error: Connection reset by peer]
nat2610 has quit [Quit: Leaving.]
kpshek has joined #ruby
emmanuelux has quit [Client Quit]
casheew has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 252 seconds]
nat2610 has joined #ruby
casheew has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
geggam has quit [Remote host closed the connection]
havenn has quit [Read error: Connection reset by peer]
IrishGringo has quit [Read error: Operation timed out]
havenn has joined #ruby
beiter has quit [Quit: beiter]
mmlac has quit [Quit: mmlac]
schronicles47 has quit [Remote host closed the connection]
ckrailo has joined #ruby
schronicles47 has joined #ruby
yshh has joined #ruby
jrajav has joined #ruby
havenn has quit [Remote host closed the connection]
brianpWins has joined #ruby
havenn has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
BoomCow has joined #ruby
mjb2k has quit [Quit: Leaving]
burgestrand has joined #ruby
casheew has quit [Read error: Connection reset by peer]
burgestrand has quit [Client Quit]
Morkel has joined #ruby
casheew has joined #ruby
havenn has quit [Ping timeout: 265 seconds]
haxrbyte has quit [Remote host closed the connection]
geggam has joined #ruby
ABK has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
mmlac has joined #ruby
<Trioke> Under what circumstances would I want to use hash.map { |k, v| ... } versus hash.each { |k, v| ... }? Are they the same thing in this particular instance?
<apeiros_> you use map when you care about the (mapped, hence the name) return value
<apeiros_> you'd use each when you don't care about the return value, only about the side-effects of the loop. in that case, use do/end instead of {}
<catepillar> which is faster (generally)?
qwerxy has quit [Quit: offski]
<apeiros_> each
mmlac has quit [Client Quit]
<apeiros_> doesn't have to build a return value
<apeiros_> doesn't have to store the results in that return value
<catepillar> cool
<catepillar> i should really read up on the rvm
<apeiros_> o0
<Trioke> apeiros_: What do you mean by build a return value? Say I have this snippet: h1.map { |k, v| result[k] = h1[k] if h2[k].nil? }
<apeiros_> Trioke: you *probably* should read up on what map actually does
<Trioke> apeiros_: Does that mean in this case, I can replace map with each?
<apeiros_> it seems to me you have no idea…
<Trioke> apeiros_: Yeah, I have no idea O.o
<apeiros_> you do know that there's documentation, right?
kpshek has quit []
<Trioke> apeiros_: I just know the code works :D.
<blazes816> (facepalm)
<apeiros_> yeah, that's called 'voodoo coding'
jankly has joined #ruby
havenn has joined #ruby
<apeiros_> it somehow works, but you have no idea how or why
<Trioke> apeiros_: I like voodoo. Sort of.
<apeiros_> that's fine. but generally a horrible idea in the realm of programming.
<apeiros_> really, read the docs. if you have trouble understanding/applying them, then come back and ask.
sullenel has joined #ruby
<Xeago> map builds an array of the results of the block you pass
<apeiros_> but we ain't no docs. thank you for not wasting our time.
<Xeago> sorry for spoiling it..
<apeiros_> great, Xeago is your doc-tool then :-p
<Trioke> Lol.
pr0ton has joined #ruby
* apeiros_ wonders whether that's where "you're a tool" comes from…
* apeiros_ ducks, hides, runs
havenn has quit [Remote host closed the connection]
<blazes816> a tool of the establishment man
Xeago has quit [Read error: Connection reset by peer]
havenn has joined #ruby
JonnieCache has quit [Ping timeout: 244 seconds]
arielpts has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
havenn has quit [Read error: No route to host]
havenn has joined #ruby
Danielpk has quit [Ping timeout: 248 seconds]
<catepillar> so with map you can do something like x = hash.map {|k,v| "#{k}:#{v}"}
<Trioke> Okay, new problem (which has nothing to do with docs). I'm trying to write a hash to file: File.open(path, 'w+') { |f| f.write(hash.to_yaml) } Except the file isn't being written?
<catepillar> and that would return "k1:v1k2:v2"?
Danielpk has joined #ruby
<Trioke> catepillar: I'm guessing more like [[k1:v1],[k2:v2]]
arielpts has joined #ruby
<blazes816> ["k1:v1", "k2:v2"]
<blazes816> map returns an array
<blazes816> and the block returns a string
<catepillar> ok, makes sense
<blazes816> t
<catepillar> interesting
mvangala has quit [Read error: Connection reset by peer]
Neomex has joined #ruby
<catepillar> i dont think i can find uses for that in my code though ...
mvangala has joined #ruby
<blazes816> I wish there was a #hashy_map!, but there isn't
<blazes816> really?
Neomex has quit [Client Quit]
<Xeago> consider an array of users, you want all usernames: users.map { |u| u.name }
<blazes816> or
<blazes816> users.map(&:name)
nitti has joined #ruby
<Xeago> but you would probably use symbol to proc: users.map(&:name)
<blazes816> ah yeah
Araxia has quit [Read error: No route to host]
<Xeago> blazes816: I wasn't sure if he knew symbol-to-proc :)
<blazes816> whats the age of the oldest user? users.map(:age).max
olrrai has joined #ruby
philcrissman has joined #ruby
<apeiros_> blazes816: users.max_by(&:age).age
bluenemo has quit [Remote host closed the connection]
<apeiros_> also you forgot an &
<blazes816> that's the oldest user himself
<blazes816> (or her self)
<apeiros_> blazes816: no
LennyLinux has quit [Remote host closed the connection]
<blazes816> but I did forget &
<Xeago> the .age gets that user age
<apeiros_> that
<apeiros_> must. read. full. code. :-p
<apeiros_> assuming you have a lot of users, this saves you quite a bit of memory and mapping time.
Araxia has joined #ruby
<x82_nicole> How can I interact with an API using ruby? Our company is all in PHP, and I want to re-work their API in ruby (at my own pace :p)
<Trioke> x82_nicole: What an ambiguous question. You're really asking for two things. 1) How to figure out the current API's functionality (docs?). 2) How to replicate the same functionality in Ruby.
<x82_nicole> Well, I'm new to programming in general, but I'm trying to understand how you call URL's from within Ruby. Now, I assume you interact with an API the same way you would with a browser, and just take that data and "do" something with it.
<Trioke> x82_nicole: If it's a restful API, check out the rest_client gem.
<Xeago> x82_nicole: there are two parts of the api: consuming and serving
<Xeago> know which you are writing
Takehiro has joined #ruby
<x82_nicole> They have the API already, I'm just "calling" it, and getting the data. So it would be the consuming one (I think :c)
<Trioke> x82_nicole: Correct.
<X-Jester> mm, consumption
perryh has quit [Excess Flood]
adeponte has quit [Remote host closed the connection]
<Trioke> x82_nicole: Your original question was ambiguous, so I was under the impression that you wanted to re-implement it in Ruby (i.e. a 'port')
<x82_nicole> Ohhhh, no no, that's not something I'm ready for.
perryh has joined #ruby
nitti has quit [Ping timeout: 255 seconds]
<Xeago> there are several kinds of API's: SOAP, RESTfull, mixmatch and non of the former
clj_newb has joined #ruby
Vinz_ is now known as Vinz_`
Takehiro has quit [Ping timeout: 252 seconds]
<bricker> I'm getting a list of files recursively like so: Dir["/path/to/**/*"]... when I print out those files, how can I also know the file's parent directory?
walbert has quit [Remote host closed the connection]
olrrai has quit [Quit: Saliendo]
<X-Jester> bricker: File.dirname() ?
jaygen has quit [Remote host closed the connection]
<bricker> X-Jester: Good idea, thanks!
maletor has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Ping timeout: 245 seconds]
<bricker> X-Jester: Wait, I misunderstood. I'm using Dir[] which just returns an array of strings
<X-Jester> bricker: If that doesn't work (i.e. i think dirname only splits a file at the last '/'), you can mess with File.absolute_path
davidcelis has quit [Quit: K-Lined.]
<X-Jester> bricker: if you don't have the file's parent directory as part of one of those strings, you're going to have to at least get ruby pointed at the file in order to inspect it and locate its parent directory
havenn has quit [Remote host closed the connection]
<X-Jester> if i understand what you're trying to do correctly, which i may not
kpshek has joined #ruby
havenn has joined #ruby
Keva161 has joined #ruby
<bricker> X-Jester: I think I just need to loop through the directories, and then loop through each directory's files, rather than loop through a directory recursively.
hbpoison has joined #ruby
maletor has joined #ruby
<X-Jester> that may be a better way to do what you're after if you don't want to have to do string manipulation on everything returned from a single recursive call
<bricker> X-Jester: indeed. Thanks!
havenn has quit [Read error: No route to host]
Ry has quit [Ping timeout: 260 seconds]
havenn has joined #ruby
Ry has joined #ruby
<Ry> X-Jester: Dir["app/**/**"].map { |p| x = Pathname.new p; [x, x.parent] }
<Ry> just as an example (if this question is still relevant after my d/c!)
JarJar has quit [Quit: Leaving]
blacktulip has quit [Remote host closed the connection]
<Ry> bricker: ** actually :p
dissolved has quit [Quit: dissolved]
jaygen has joined #ruby
blacktulip has joined #ruby
drbawb has joined #ruby
maesbn has quit [Remote host closed the connection]
kpshek has quit []
JustinCampbell has joined #ruby
erichmeng has joined #ruby
linoj has joined #ruby
Araxia has quit [Read error: No route to host]
nitti has joined #ruby
Araxia has joined #ruby
pjb3 has joined #ruby
erichmeng has quit [Read error: Connection reset by peer]
erichmenge has quit [Ping timeout: 246 seconds]
emmanuelux has joined #ruby
linoj has quit [Client Quit]
tvw has quit [Remote host closed the connection]
<MarcWeber> How to creeate a ruby parsable representation out of a simple value such as list, hash, string, int?
nanderoo has quit [Quit: Leaving.]
anpl has joined #ruby
<MarcWeber> I'll give to_s a try.
<apeiros_> parseable by what?
<apeiros_> there's YAML, JSON, Marshal
<apeiros_> all core/stdlib in 1.9
<MarcWeber> by irb/ruby itself
<MarcWeber> I want to generate some data which will be processed by ruby later.
hsbt_away is now known as hsbt
enricostn has quit [Quit: Saliendo]
hotovson has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
linoj has joined #ruby
Apocalypse has quit [Ping timeout: 264 seconds]
<Ry> do you have a concrete example of what you mean?
reset has joined #ruby
<X-Jester> MarcWeber: YaML is the easiest I've used.
kpshek has joined #ruby
pjb3 has quit [Quit: pjb3]
<X-Jester> it's as simple as YAML.load_file
awestroke has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
Apocalypse has joined #ruby
JustinCampbell has quit [Remote host closed the connection]
atlantaman has joined #ruby
reinaldob has quit [Remote host closed the connection]
qwerxy has joined #ruby
icole has joined #ruby
Targen has joined #ruby
icole has quit [Remote host closed the connection]
icole_ has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
Russell^^ has joined #ruby
rippa has quit [Ping timeout: 260 seconds]
rdark has quit [Ping timeout: 256 seconds]
kbeddingfield has joined #ruby
rakl has quit [Quit: sleeping]
timmow has quit [Ping timeout: 252 seconds]
seanyo_ has quit [Ping timeout: 256 seconds]
havenn has quit [Read error: No route to host]
havenn has joined #ruby
Vinz_` is now known as Vinz_
qwerxy has quit [Quit: offski]
perlsyntax has joined #ruby
adeponte has joined #ruby
sullenel has quit [Quit: Leaving.]
vickaita_ has joined #ruby
Chryson has joined #ruby
<perlsyntax> hi
<JohnTeddy> Hello perlsyntax
<perlsyntax> hey just get start in ruby.
<perlsyntax> :)
<perlsyntax> i don't like rvm with ruby plaugin for eclipse.
dissolved has joined #ruby
<perlsyntax> don't know why it won't show the file.
dissolved has quit [Client Quit]
<perlsyntax> JohnTebby,How are you.
haxrbyte has joined #ruby
insulator has joined #ruby
vickaita has quit [Ping timeout: 252 seconds]
bricker has quit [Quit: leaving]
davidcelis has joined #ruby
bricker has joined #ruby
<JohnTeddy> perlsyntax: I'm doing well. I just started with ruby too. I'm completing the codecademy ruby track to familiarize myself.
<perlsyntax> yep
<JohnTeddy> perlsyntax: I don't fully understand your question, though if it's related to eclipse, check out #eclipse
perlsyntax has quit [Quit: Leaving]
philcrissman has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
irleif has joined #ruby
rburton- has joined #ruby
philcrissman has joined #ruby
ablankfield has joined #ruby
hefgi has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
hefgi has joined #ruby
haxrbyte has quit [Ping timeout: 244 seconds]
mpereira has joined #ruby
qwerxy has joined #ruby
Orcris has joined #ruby
hefgi has quit [Client Quit]
mmitchell has quit [Remote host closed the connection]
dekroning has joined #ruby
hefgi has joined #ruby
pothibo has joined #ruby
kirun has joined #ruby
Takehiro has joined #ruby
catepillar has quit [Quit: Lost terminal]
Araxia has quit [Read error: No route to host]
glyytchy has joined #ruby
Araxia has joined #ruby
caleb_io has joined #ruby
qwerxy has quit [Quit: offski]
sailias1 has joined #ruby
sailias has quit [Read error: No route to host]
atlantaman has quit [Quit: atlantaman]
sailias has joined #ruby
Takehiro has quit [Ping timeout: 246 seconds]
catepillar has joined #ruby
sailias1 has quit [Client Quit]
sailias2 has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
caleb_io has quit [Client Quit]
cableray has joined #ruby
elaptics is now known as elaptics`away
kpshek has quit []
kpshek has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
sailias has quit [Ping timeout: 245 seconds]
mmlac has joined #ruby
Morkel_ has joined #ruby
BadProphet has joined #ruby
erichmenge has joined #ruby
rburton- has quit [Quit: Leaving...]
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
jenrzzz has quit [Ping timeout: 255 seconds]
mklappstuhl has quit [Ping timeout: 244 seconds]
carloslo_ has quit [Remote host closed the connection]
linoj has quit [Quit: linoj]
evilbetty has joined #ruby
SoonerBourne is now known as SoonerBourne-AFK
<evilbetty> have a good afk :p
jlwestsr has quit [Ping timeout: 246 seconds]
havenn has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
havenn has joined #ruby
icole_ has quit [Read error: Connection reset by peer]
Guest36742 has quit [Remote host closed the connection]
icole has joined #ruby
qwerxy has joined #ruby
linoj has joined #ruby
mpereira has quit [Ping timeout: 252 seconds]
rburton- has joined #ruby
havenn has quit [Read error: No route to host]
dnyy has quit [Remote host closed the connection]
Mchl has quit [Quit: ZNC - http://znc.sourceforge.net]
mpereira has joined #ruby
havenn has joined #ruby
jaygen_ has joined #ruby
havenn has quit [Remote host closed the connection]
kpshek has quit []
havenn has joined #ruby
caleb_io has joined #ruby
jaygen has quit [Ping timeout: 252 seconds]
erichmenge has quit [Quit: Be back later]
hsbt_away is now known as hsbt
adeponte has joined #ruby
kpshek has joined #ruby
J-_-L has quit [Quit: Leaving.]
nignaztic has joined #ruby
havenn_ has joined #ruby
judd7 has quit [Quit: judd7]
havenn has quit [Read error: No route to host]
nemish has joined #ruby
hsbt has quit [Ping timeout: 268 seconds]
LennyLinux has joined #ruby
hsbt has joined #ruby
Mchl has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
LennyLinux has quit [Remote host closed the connection]
mpereira has quit [Read error: Connection reset by peer]
dnyy has joined #ruby
Targen has quit [Read error: Connection reset by peer]
bigmcq77 has quit [Quit: Computer has gone to sleep.]
hsbt is now known as hsbt_away
dshap has joined #ruby
dshap has left #ruby [#ruby]
havenn_ has quit [Remote host closed the connection]
bigmcq77 has joined #ruby
pignata has joined #ruby
Ry_ has joined #ruby
Ry has quit [Read error: Connection reset by peer]
Ry_ is now known as Ry
jasond has quit [Ping timeout: 264 seconds]
spooky12 has quit [Ping timeout: 245 seconds]
spo12 has joined #ruby
jrajav has quit []
mmlac has quit [Quit: mmlac]
mneorr has joined #ruby
geekbri has quit [Remote host closed the connection]
Araxia has quit [Read error: Connection reset by peer]
rakl has joined #ruby
Araxia has joined #ruby
CodeDroid__ has joined #ruby
dnyy has quit [Remote host closed the connection]
answer_42 has quit [Quit: WeeChat 0.3.9]
invisime has quit [Quit: Leaving.]
ld100 has joined #ruby
insulator has quit [Remote host closed the connection]
yalue has quit [Quit: Leaving]
Guest15771 has quit [Quit: Guest15771]
fredjean has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
atlantaman has joined #ruby
irleif has joined #ruby
jblack has joined #ruby
Dreamer3 has quit [Quit: Computer has gone to sleep.]
Dreamer3__ is now known as Dreamer3
tomdebenning has joined #ruby
havenn has joined #ruby
jeffreybaird has joined #ruby
pmros has joined #ruby
<pmros> hi!
Araxia has quit [Read error: No route to host]
Araxia has joined #ruby
mneorr has quit [Remote host closed the connection]
mpereira has joined #ruby
krawchyk has quit [Remote host closed the connection]
awestroke has joined #ruby
Liothen has quit [Remote host closed the connection]
fredjean has quit [Quit: Computer has gone to sleep.]
evilbetty has left #ruby [#ruby]
SoonerBourne-AFK has quit [Quit: HydraIRC -> http://www.hydrairc.com <- Organize your IRC]
SoonerBourne has joined #ruby
fredjean has joined #ruby
mark_locklear has quit [Remote host closed the connection]
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
ABK has joined #ruby
Takehiro has joined #ruby
Juul has joined #ruby
dekroning has quit [Ping timeout: 240 seconds]
spo12 has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
mneorr has joined #ruby
havenn has joined #ruby
solidoodlesuppor has quit [Remote host closed the connection]
qwerxy has quit [Quit: offski]
hsbt_away is now known as hsbt
stephenjudkins has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
wedgeV has joined #ruby
jblack has quit [Ping timeout: 276 seconds]
havenn has quit [Ping timeout: 252 seconds]
w400z has joined #ruby
havenn has joined #ruby
und3f has joined #ruby
iamjarvo has joined #ruby
daniel_-_ has joined #ruby
sailias2 has quit [Quit: Leaving.]
keymone has quit [Ping timeout: 260 seconds]
chrxn has quit [Ping timeout: 276 seconds]
Araxia has quit [Read error: Connection reset by peer]
ABK has quit [Read error: Connection reset by peer]
caleb_io has quit [Quit: caleb_io]
tommyvyo_ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Araxia has joined #ruby
ABK has joined #ruby
keymone has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
nat26101 has joined #ruby
nat2610 has quit [Read error: Connection reset by peer]
codecaster has joined #ruby
ld100 has quit [Read error: Connection reset by peer]
ld100 has joined #ruby
qwerxy has joined #ruby
glyytchy has quit [Quit: glyytchy]
Cultofmetatron has quit [Remote host closed the connection]
eugynon has quit [Quit: Leaving]
justinmcp has joined #ruby
pu22l3r has quit [Read error: Operation timed out]
und3f has quit [Ping timeout: 260 seconds]
emergion has joined #ruby
hsbt is now known as hsbt_away
arturaz has quit [Remote host closed the connection]
emergion has quit [Client Quit]
werdnativ has joined #ruby
mmlac has joined #ruby
w400z has quit []
keymone_ has joined #ruby
keymone has quit [Ping timeout: 255 seconds]
keymone_ is now known as keymone
LennyLinux has joined #ruby
medik has joined #ruby
chrxn has joined #ruby
rburton- has quit [Quit: Leaving...]
jenrzzz has joined #ruby
billiam has joined #ruby
yxhuvud has quit [Ping timeout: 252 seconds]
punkrawkR has quit [Read error: Connection reset by peer]
icole has quit [Remote host closed the connection]
linoj has quit [Quit: linoj]
awestroke has quit [Remote host closed the connection]
awestroke has joined #ruby
JonnieCache has joined #ruby
Araxia_ has joined #ruby
Araxia has quit [Read error: Connection reset by peer]
Araxia_ is now known as Araxia
nignaztic has quit [Quit: WeeChat 0.3.2]
daniel_-_ has quit [Ping timeout: 248 seconds]
hotovson has quit [Remote host closed the connection]
ryanf has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
stephenjudkins has joined #ruby
jeremywrowe has quit [Quit: jeremywrowe]
philcrissman has quit [Remote host closed the connection]
Araxia has quit [Read error: Connection reset by peer]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
dnyy has joined #ruby
icole_ has joined #ruby
philcrissman has joined #ruby
pmros has quit [Quit: Konversation terminated!]
TechCel has quit [Ping timeout: 260 seconds]
blacktulip has quit [Remote host closed the connection]
glyytchy has joined #ruby
pjb3 has joined #ruby
hsbt_away is now known as hsbt
und3f has joined #ruby
JonnieCache has quit [Ping timeout: 240 seconds]
jeremywrowe has joined #ruby
blacktulip has joined #ruby
BrianJ has quit [Quit: BrianJ]
jeremywrowe has quit [Client Quit]
nat26101 has quit [Read error: Connection reset by peer]
nat2610 has joined #ruby
linoj has joined #ruby
aetcore has joined #ruby
JustinCampbell has joined #ruby
daniel_-_ has joined #ruby
keymone_ has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
keymone has quit [Ping timeout: 256 seconds]
keymone_ is now known as keymone
atlantaman has left #ruby [#ruby]
Ry_ has joined #ruby
CodeDroid__ has quit [Ping timeout: 245 seconds]
Ry has quit [Ping timeout: 260 seconds]
havenn has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
havenn has joined #ruby
Xeago has joined #ruby
awaage has joined #ruby
justinmcp has joined #ruby
fredjean has quit [Quit: Computer has gone to sleep.]
Ry_ has quit [Ping timeout: 260 seconds]
sertaconay has joined #ruby
havenn_ has joined #ruby
Keva161 has quit [Ping timeout: 245 seconds]
mpereira has quit [Read error: Connection reset by peer]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
havenn has quit [Read error: Connection reset by peer]
justinmcp has quit [Ping timeout: 246 seconds]
Ry has joined #ruby
jerius has joined #ruby
stkowski has joined #ruby
doritostains has quit [Read error: Connection reset by peer]
ABK has quit [Read error: Connection reset by peer]
adelcampo has joined #ruby
ABK has joined #ruby
mappum has joined #ruby
vickaita_ has quit [Ping timeout: 240 seconds]
ltsstar has quit [Quit: ltsstar]
<mappum> Does anyone know where gem installs binaries on windows? like the equivalent of /usr/bin
Trevoke has joined #ruby
glyytchy has quit [Quit: glyytchy]
<Grieg> isn't it C:\RubyXXX\bin ?
Vert has quit [Remote host closed the connection]
<Trevoke> Hi all, has anyone successfully used OAuth to talk to Intuit before? Possibly through Rails? Possibly using this gist? https://gist.github.com/3853297
cakehero has joined #ruby
codecaster has left #ruby [#ruby]
<mappum> Grieg: ah, it is, thanks
csaunders has quit [Quit: Computer has gone to sleep.]
<Muz> mappum: Grieg: `gem environment` and look for EXECUTATABLE DIRECTORY
apok_ has joined #ruby
<Muz> You can't just rely on hardcoded paths like the one Grieg's suggested as it may vary, depending on the installation setup.
<Muz> Also, the above should work across platforms in a more or less deterministic manner.
Russell^^ has quit [Quit: Russell^^]
apok has quit [Ping timeout: 260 seconds]
apok_ is now known as apok
sambio has joined #ruby
adeponte has quit [Remote host closed the connection]
fredjean has joined #ruby
bbttxu has quit [Quit: bbttxu]
fredjean has quit [Client Quit]
Takehiro has joined #ruby
fredjean has joined #ruby
emergion has joined #ruby
adeponte has joined #ruby
jonn has joined #ruby
jonn has quit [Remote host closed the connection]
Russell^^ has joined #ruby
perryh has quit [Excess Flood]
Iszak has joined #ruby
apeiros_ has quit [Remote host closed the connection]
Iszak has quit [Changing host]
Iszak has joined #ruby
sailias has joined #ruby
apeiros_ has joined #ruby
frogstarr78 has quit [Remote host closed the connection]
apeiros_ has quit [Read error: Connection reset by peer]
frogstarr78 has joined #ruby
und3f has quit [Ping timeout: 252 seconds]
apeiros_ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
apeiros_ has joined #ruby
perryh has joined #ruby
fredjean has quit [Client Quit]
und3f has joined #ruby
Morkel has quit [Quit: Morkel]
hsbt is now known as hsbt_away
Takehiro has quit [Ping timeout: 260 seconds]
<havenn_> /join #maglev
philcrissman has quit [Remote host closed the connection]
<havenn_> sry
jerius has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Trevoke has left #ruby [#ruby]
mmlac has quit [Quit: mmlac]
icole_ has quit [Remote host closed the connection]
kbeddingfield has quit [Remote host closed the connection]
cakehero has joined #ruby
williamcotton has joined #ruby
<csmrfx> I would but cant pay gemstone license
mercwithamouth has quit [Ping timeout: 260 seconds]
ABK has quit [Read error: Connection reset by peer]
ephemerian has joined #ruby
bradhe has joined #ruby
ABK has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
ABK has quit [Read error: Connection reset by peer]
linoj has quit [Quit: linoj]
nitti_ has joined #ruby
mercwithamouth has joined #ruby
perryh has quit [Excess Flood]
nitti has quit [Ping timeout: 256 seconds]
perryh has joined #ruby
froy has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Ping timeout: 256 seconds]
nateberkopec has quit [Quit: Leaving...]
<x82_nicole> Can someone help out with this code? Just trying to parse a JSON response from an API, but sinatra throws a weird error: http://pastie.org/private/fa37bix6eokokbtdrkib2q
<x82_nicole> The error: [: errorI"}Rack::Lint::LintError: Body yielded non-string value ["errors", [{"message"=>"Sorry, that page does not exist", "code"=>34}]
<catepillar> its missing a closeing ]
blacktulip has quit [Remote host closed the connection]
otters has quit [Ping timeout: 252 seconds]
<apeiros_> x82_nicole: when you invoke /test ?
<reactormonk> x82_nicole, rack calls Array(response), depends what your httparty object does
nitti_ has quit [Ping timeout: 260 seconds]
ablankfield has quit [Ping timeout: 248 seconds]
<x82_nicole> Yeah, it's odd. Works fine on the command line. http://cl.ly/image/3U3F001t1H2T
csaunders has joined #ruby
<reactormonk> x82_nicole, screenshot for text? WTF?
<x82_nicole> Well I didn't paste it all in here :p
<apeiros_> x82_nicole: was that a reply to my question?
<havenn_> x82_nicole: gist.github.com
<x82_nicole> Derp. Totally slipped my mind.
<apeiros_> if so: I don't know sinatra, but you're probably supposed to return either a string or an array acceptable to rack
sailias has quit [Ping timeout: 260 seconds]
<reactormonk> x82_nicole, you already used pastie.org, did you
<x82_nicole> Yes, I know. Apologies.
<reactormonk> x82_nicole, works fine here
<apeiros_> and you return an HTTParty::Response object
linoj has joined #ruby
Progster has joined #ruby
<reactormonk> .. which defines #to_a I assume
<x82_nicole> I'm not sure I follow. I know with Sinatra, you don't have to invoke things like puts/echo, so I assume it would just work.
<reactormonk> x82_nicole, sure it does work
<apeiros_> x82_nicole: your `get '/test' do` should return a string. it does not.
JustinCampbell has quit [Remote host closed the connection]
<x82_nicole> response = HTTParty.get('http://twitter.com/statuses/public_timeline.json').to_s
<apeiros_> (the URL http://twitter.com/statuses/public_timeline.json is a 404 btw., you sure you got the correct url?)
<x82_nicole> That seems to work! Hmm.
jrajav has joined #ruby
<x82_nicole> apeiros_, yeah, a lot of tutorials seem to choose that url for some reason
miphe has joined #ruby
<apeiros_> probably outdated
jgarvey has quit [Quit: Leaving]
<x82_nicole> Also not quite sure why response even gets invoked, I didn't say to print it.
<apeiros_> again
<apeiros_> the return value is sent to the browser
<apeiros_> this ain't php
<apeiros_> and the return value is whatever the last statement's value is
<x82_nicole> Ahh, right! Makes sense!
jenrzzz has quit [Ping timeout: 256 seconds]
<apeiros_> get '/test' do "Hello World" end # <-- this will render "Hello World" in your browser
ABK has joined #ruby
minijupe has quit [Quit: minijupe]
<x82_nicole> the whole return thing, is that a ruby thing? or a sinatra thing?
bigmac has joined #ruby
macabre has quit [Remote host closed the connection]
<reactormonk> x82_nicole, ruby
<havenn_> csmrfx: GemStone VM is free up to 2 GB shared cache with unlimited disk storage.
<csmrfx> what
<reactormonk> x82_nicole, well, rack to be precise. but that's what most of the ruby web frameworks use
ABK has quit [Read error: Connection reset by peer]
<havenn_> csmrfx: Maglev's Ruby code is MIT license, and the VM is free (with the limitation of 2GB cache).
<csmrfx> 2GB shared cache means what
ABK has joined #ruby
marius has joined #ruby
<havenn_> csmrfx: You can store as much data as you want, but only get 2GB in your cache.
<csmrfx> its my local cache?
cakehero has quit [Quit: Computer has gone to sleep.]
hsbt_away is now known as hsbt
nemish has quit [Read error: Connection reset by peer]
<csmrfx> (or yet another PaaScloud scheme)
ABK has quit [Read error: Connection reset by peer]
<havenn_> csmrfx: 2GB distributed shared cache, you can cache whatever you want locally.
ABK has joined #ruby
vickaita has joined #ruby
nemish has joined #ruby
<havenn_> csmrfx: Yeah, not ideal - but nice to have a free version that is very usable!
cakehero has joined #ruby
stopbit has quit [Quit: Leaving]
qwerxy has quit [Quit: offski]
<csmrfx> not still having clear picture of what that cache is so not forming opinion on that
h4mz1d has joined #ruby
<csmrfx> you using it for what btw?
ablankfield has joined #ruby
<havenn_> csmrfx: For fun.
gabrielrotbart has joined #ruby
justinmcp has joined #ruby
love_color_text has quit [Remote host closed the connection]
love_color_text has joined #ruby
sailias has joined #ruby
jenrzzz has joined #ruby
<havenn_> csmrfx: A RubyConf presentation this morning showed off a worker queue in Maglev, and I'm working on a fork of it that is asynchronous.
samuel02 has quit [Remote host closed the connection]
kbeddingfield has joined #ruby
icole_ has joined #ruby
<havenn_> Speaking of RubyConf, grr I'm late to refactoring talk!
_numbers has joined #ruby
havenn_ has quit [Remote host closed the connection]
_numbers has left #ruby [#ruby]
hotovson has joined #ruby
bigmac has quit [Remote host closed the connection]
thinkdevcode has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 255 seconds]
heftig has quit [Quit: leaving]
schronicles47 has quit [Ping timeout: 246 seconds]
ABK has joined #ruby
staafl has quit [Quit: Leaving]
BadProphet has quit [Quit: This computer has gone to sleep]
theRoUS has quit [Ping timeout: 240 seconds]
BigFatFatty has left #ruby [#ruby]
und3f has quit [Quit: Leaving.]
love_color_text has quit [Remote host closed the connection]
daniel__ has joined #ruby
kbedding_ has joined #ruby
combatai` has quit [Read error: Connection reset by peer]
combatai` has joined #ruby
<daniel__> I'm having trouble getting my jasmine tests (coffeescript) to compile and run in a sinatra app i'm building, does anyone have a project i can use to help me?
LennyLinux has quit [Remote host closed the connection]
billiam has quit [Quit: Leaving]
<daniel__> im using sinatra-assetpack to compile the coffeescript on the fly for the app, i just cant seem to get the tests running
cableray has quit [Quit: cableray]
kbeddingfield has quit [Ping timeout: 244 seconds]
sebastorama has quit [Quit: Computer has gone to sleep.]
TheNumb has quit [Ping timeout: 276 seconds]
TheNumb has joined #ruby
tvw has joined #ruby
Russell^^ has quit [Quit: Russell^^]
kpshek has quit []
GoGoGarrett has joined #ruby
samphippen has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
keyvan has quit [Remote host closed the connection]
awestroke has quit [Remote host closed the connection]
twopoint718 has quit [Ping timeout: 264 seconds]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
waxjar has left #ruby ["Textual IRC Client: www.textualapp.com"]
nitti has joined #ruby
nitti has quit [Remote host closed the connection]
geggam has quit [Remote host closed the connection]
kandinski is now known as jcz
ABK has quit [Read error: Connection reset by peer]
csaunders has quit [Quit: Computer has gone to sleep.]
_alejandro has quit [Remote host closed the connection]
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<shadewind> why is that method called "value"?
staafl has joined #ruby
armenb has quit [Ping timeout: 245 seconds]
vickaita has quit [Ping timeout: 260 seconds]
<shadewind> it does not return a value
<shadewind> it throws exceptions...
ABK has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
jimeh has joined #ruby
jrajav has quit [Ping timeout: 240 seconds]
Takehiro has joined #ruby
DrShoggoth has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
lkba has joined #ruby
kirun has quit [Quit: Client exiting]
h4mz1d has quit [Ping timeout: 265 seconds]
ABK has quit [Read error: Connection reset by peer]
Takehiro has quit [Ping timeout: 260 seconds]
nemesit has quit [Quit: Leaving...]
ABK has joined #ruby
hefgi has quit [Quit: This computer has gone to sleep]
love_color_text has joined #ruby
joeycarmello has quit [Remote host closed the connection]
alanp_ has joined #ruby
TTilus has quit [Ping timeout: 260 seconds]
tenmilestereo has quit [Quit: Leaving]
savage- has quit [Remote host closed the connection]
chrisbolton has quit [Quit: chrisbolton]
alanp has quit [Ping timeout: 244 seconds]
jrajav has joined #ruby
ryanlecompte has joined #ruby
TTilus has joined #ruby
irleif has joined #ruby
apok has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
apok has joined #ruby
jlwestsr has joined #ruby
nari has joined #ruby
<csmrfx> shadewind: returns a value, and if not gotten, raises an error
Servidorv has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
<Servidorv> hey guys
<Servidorv> how are you
<Servidorv> can i ask a question
<Servidorv> what does period = period == :day ? '%A' : '%I%P' means???
<csmrfx> its a definition with ternary symbol and interpolated strings I suppose
<eph3meral> i don't see any interpolation
fantazo has quit [Ping timeout: 240 seconds]
Astral_ has quit [Ping timeout: 252 seconds]
<csmrfx> yeah you are right
<csmrfx> no interpolation
<csmrfx> just strings
Jeffferson has joined #ruby
F1skr has quit [Quit: WeeChat 0.3.9]
<csmrfx> uhm literal strings
hsbt is now known as hsbt_away
icole_ has quit [Remote host closed the connection]
<eph3meral> servidorv: google for "ruby ternary"
<eph3meral> servidorv: or just 'ternary'
mmlac has joined #ruby
<eph3meral> sorry, 'ternary operator' - it exists in many languages
<eph3meral> servidorv: it's a shorthand if/then
<eph3meral> though, ruby's syntactic sugar makes it sort of moot IMO since usually you can express it in a more elegant manner using the if or unless keywords
SCommette has quit [Quit: SCommette]
<csmrfx> I use tons of ternary with ruby
<csmrfx> if/unless dont give you alternatives without the end...
BadProphet has joined #ruby
<csmrfx> ...or else
<csmrfx> lol, shoulda written and
GeekOnCoffee has quit [Ping timeout: 244 seconds]
justinmcp has quit [Remote host closed the connection]
F1skr has joined #ruby
miphe has quit [Quit: Leaving]
linoj has quit [Quit: linoj]
palyboy has quit []
werdnativ has quit [Ping timeout: 260 seconds]
linoj has joined #ruby
palyboy has joined #ruby
scx has joined #ruby
linoj has quit [Client Quit]
anachronistic has quit [Quit: anachronistic]
GeekOnCoffee has joined #ruby
Cultofmetatron has joined #ruby
heftig has joined #ruby
fredjean has joined #ruby
jrajav has quit [Ping timeout: 245 seconds]
ablankfield has quit [Ping timeout: 260 seconds]
Cultofmetatron has quit [Remote host closed the connection]
scx has quit [Read error: Connection reset by peer]
omg765 has joined #ruby
jrajav has joined #ruby
Jeffferson has quit [Quit: Leaving...]
GoGoGarrett has joined #ruby
havenn has joined #ruby
Jeffferson has joined #ruby
linoj has joined #ruby
vickaita has joined #ruby
joeycarmello has joined #ruby
g-ram has joined #ruby
Villadelfia has quit [Read error: Operation timed out]
justinmcp has joined #ruby
froy has joined #ruby
slainer68 has joined #ruby
dagnachewa has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
kbedding_ has quit [Remote host closed the connection]
qwerxy has joined #ruby
apok_ has joined #ruby
mblb has quit [Quit: mblb]
hefgi has joined #ruby
apok_ has quit [Remote host closed the connection]
apok has quit [Read error: Operation timed out]
slainer68 has quit [Remote host closed the connection]
awaage has left #ruby [#ruby]
apok has joined #ruby
nat26101 has joined #ruby
nat2610 has quit [Read error: Connection reset by peer]
Villadelfia has joined #ruby
jenrzzz has joined #ruby
icole has joined #ruby
mpereira has joined #ruby
v0n has quit [Read error: Operation timed out]
fredjean has quit [Quit: Computer has gone to sleep.]
<Servidorv> sorry guys thanks for the answers
jcaudle has joined #ruby
Servidorv has quit [Quit: Few women admit their age. Few men act theirs.]
Cultofmetatron has joined #ruby
SCommette has joined #ruby
SCommette has quit [Client Quit]
rasbonics has quit [Quit: rasbonics]
daniel_-_ has quit [Ping timeout: 260 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Juul has quit [Quit: Leaving]
jeffreybaird has joined #ruby
jblack has joined #ruby
nari has quit [Ping timeout: 246 seconds]
Servidorv has joined #ruby
erichmenge has joined #ruby
<Servidorv> hey guys
<Servidorv> i have a question
Xeago has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
JonnieCache has joined #ruby
<Servidorv> is ther any way that i can see a text and check if it is negative or positive??
hsbt_away is now known as hsbt
<Servidorv> like to make ruby actually read the text and then tell me i the text was positive or negative??
<MarcWeber> servidorv: what is positive/negative text?
<MarcWeber> Are you talking about numbers?
<Servidorv> nop
<MarcWeber> Or about "I feel well" vs "I feel good"?
<Servidorv> an actuall text
clj_newb has quit [Ping timeout: 265 seconds]
<Servidorv> kind of like, that posts is stupid
<MarcWeber> servidorv: Depends on your view point.
<MarcWeber> The same text can be both: good and bad..
<Servidorv> or "i dont think this product is good"
<eph3meral> you're talking about classification basically
jeffreybaird has quit [Client Quit]
<Servidorv> yeah
<eph3meral> servidorv: ruby has very little in the way of libs like that
<eph3meral> servidorv: java and python do, so you could look at using jruby
<MarcWeber> Ask 10 people - and they all will give you a different response. Thus how can you expect a machine being able to do so? :)
manizzle has quit [Quit: Leaving]
<eph3meral> servidorv: you're talking basically about NLP, it's a topic of artificial intelligence
<Sou|cutter> you might be able to train a bayesian classifier to be pretty good for your typical data set
adeponte has quit [Remote host closed the connection]
<eph3meral> indeed, there are many types of classifiers
cobragoat has quit [Remote host closed the connection]
u89 has joined #ruby
<Servidorv> so what you are sying that i can use bayesian
<eph3meral> a big problem is that people both make typos and use sarcasm/humor/idioms/facetiousness
<Sou|cutter> http://mendicantbug.com/2009/09/13/nlp-resources-for-ruby/ this is old, but maybe there's something in there that would be useful
kbeddingfield has joined #ruby
<Servidorv> and then somehow tell the user to put comment good or bad, so that way bayesian learns what is good or what is bad??
<Sou|cutter> servidorv: that is one approach, but there are lots of different ones
Edward_ has quit [Ping timeout: 240 seconds]
<eph3meral> servidorv: try #ai
<Servidorv> ok well you guys gave me the right treack classifiers
Cultofmetatron has quit [Remote host closed the connection]
JustinCampbell has joined #ruby
otters has joined #ruby
<Servidorv> thanks guys
mklappstuhl has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<Servidorv> i will have to experiment with classifiers to see which on is better
Servidorv has quit [Quit: If your not living on the edge, you're taking up too much space]
JustinCampbell has quit [Remote host closed the connection]
<shadewind> csmrfx: no, that's the point... it does not return a value
<shadewind> csmrfx: if it returns at all, it returns nil
davidcelis has quit [Quit: K-Lined.]
kiyoura has joined #ruby
Takehiro has joined #ruby
rudle has joined #ruby
clj_newb has joined #ruby
fyolnish has quit [Remote host closed the connection]
JonnieCache has quit [Ping timeout: 240 seconds]
Jeffferson has quit [Remote host closed the connection]
<rudle> hello friends. when i run rspec, i don't always get the right exit code. at first i wanted to blame Kernel::at_exit, but logging all calls to it (using alias_method) shows that it's behaving normally. are there any other ways to affect a ruby process's exit code besides at_exit or exit?
cakehero has joined #ruby
<rudle> i suspect one of my gems is at fault, since rspec behaves correctly when i start a new rails app (which is the same, modulo gems & rails configuration)
cableray has joined #ruby
jeffreybaird has joined #ruby
Markvilla has joined #ruby