apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste >3 lines of text on gist.github.com || Rails is in #rubyonrails || Log: http://irclog.whitequark.org/ruby
<VampireTeddyBear> i took alot of acid today
seanstickle has quit [Quit: seanstickle]
krusty_ar has quit [Read error: Connection reset by peer]
<VampireTeddyBear> the germans got roy
<VampireTeddyBear> hes bleeding everywhere
<VampireTeddyBear> get off my car david blain!!
umttumt has quit [Remote host closed the connection]
krusty_ar has joined #ruby
mikeric has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
rudolfrck has quit [Ping timeout: 265 seconds]
maletor has joined #ruby
wpaulson has quit [Ping timeout: 240 seconds]
ukd1 has joined #ruby
ukd1 is now known as Guest50580
* VampireTeddyBear slaps Guest50580 around a bit with a large trout
* VampireTeddyBear slaps Guest50580 around a bit with a large trout
* VampireTeddyBear slaps Guest50580 around a bit with a large trout
<VampireTeddyBear> to the death!
* VampireTeddyBear slaps Guest50580 around a bit with a large trout
baphled has joined #ruby
maletor has quit [Client Quit]
maletor has joined #ruby
Manhose has joined #ruby
kylemcgill has joined #ruby
fbernier has quit [Ping timeout: 264 seconds]
Manhose has quit [Client Quit]
baphled has quit [Quit: leaving]
VampireTeddyBear has quit [Ping timeout: 260 seconds]
jonathanwallace has quit [Read error: Connection timed out]
CheeToS has quit [Ping timeout: 240 seconds]
jeff_sebring has joined #ruby
croz has joined #ruby
Vendethiel has quit [Ping timeout: 246 seconds]
soulcake has quit [Read error: Connection reset by peer]
VegetableSpoon has quit [Quit: Leaving]
soulcake has joined #ruby
savage- has joined #ruby
jduan1981 has joined #ruby
baphled has joined #ruby
bashdy has quit [Quit: bashdy]
kjellski has quit [Quit: This computer has gone to sleep]
GravenHearth has joined #ruby
AlienElite has joined #ruby
ringotwo has joined #ruby
heftig has quit [Quit: leaving]
tewecske has quit [Quit: Leaving.]
ipoval has quit [Quit: ipoval]
mpereira_ has joined #ruby
heftig has joined #ruby
pk1001100011 has quit [Ping timeout: 249 seconds]
rakunHo has joined #ruby
umttumt has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
dkissell_ has joined #ruby
savage- has quit [Remote host closed the connection]
saschagehlich has quit [Quit: saschagehlich]
iocor has quit [Quit: Computer has gone to sleep.]
dkissell has quit [Ping timeout: 252 seconds]
dkissell_ is now known as dkissell
VampireTeddyBear has joined #ruby
rismoney has quit []
QaDeS has joined #ruby
jeff_sebring has quit [Quit: Leaving]
thoughtfusion has joined #ruby
thoughtfusion has quit [Client Quit]
dcampano has joined #ruby
fantazo has joined #ruby
freeayu has joined #ruby
zodiac1111 has joined #ruby
VampireTeddyBear has quit [Ping timeout: 260 seconds]
tomb___ has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Remote host closed the connection]
Ethan has quit [Quit: *poof*]
ringotwo has quit [Remote host closed the connection]
jfoley has joined #ruby
ben_alman has quit [Excess Flood]
IrishGringo has joined #ruby
bjhaid has joined #ruby
jsilver has joined #ruby
<jsilver> RUby Channel
<jsilver> Know these words
<jsilver> We must make Language C die and kill it and make everything have to b ruby
<jsilver> Ruby Everywhere(tm)
<jsilver> that is all
ibash has joined #ruby
fantazo has quit [Ping timeout: 246 seconds]
baphled has quit [Quit: Lost terminal]
subbyyy has quit [Read error: Connection reset by peer]
l2trace99 has quit [Remote host closed the connection]
blazes816 has quit [Quit: Leaving]
subbyyy has joined #ruby
subbyyy has quit [Max SendQ exceeded]
ben_alman has joined #ruby
mikeric has quit [Quit: mikeric]
johnfriel has joined #ruby
ringotwo has joined #ruby
bjhaid has quit [Ping timeout: 250 seconds]
QaDeS has quit [Quit: Ex-Chat]
subbyyy has joined #ruby
tomzx_ has joined #ruby
ringotwo has quit [Remote host closed the connection]
ringotwo has joined #ruby
bjhaid has joined #ruby
fayimora has quit [Ping timeout: 246 seconds]
bjhaid has quit [Ping timeout: 250 seconds]
baphled has joined #ruby
tomzx_ has quit [Ping timeout: 244 seconds]
mengu has joined #ruby
fantazo has joined #ruby
samuelj has quit [Quit: Leaving]
GravenHearth has quit []
macmartine has joined #ruby
Seventoes has quit [Remote host closed the connection]
fayimora has joined #ruby
ringotwo has quit [Remote host closed the connection]
umttumt_ has joined #ruby
umttumt has quit [Ping timeout: 245 seconds]
Guest50580 has quit [Ping timeout: 255 seconds]
mockra has joined #ruby
redgetan has joined #ruby
CheeToS has joined #ruby
savage- has joined #ruby
macmartine has quit [Quit: macmartine]
nobitanobi has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<nobitanobi> Given an array [1,2,3] how do I put the elements of another array inside? So. [1,2,3] << [4,5] gives [1,2,3,[4,5]]. But I want [1,2,3,4,5]
Dan-_ has quit [Quit: Leaving...]
<cirwin> [1, 2, 3] + [4, 5]
<nobitanobi> easy. cirwin thanks :)
<cirwin> np
Richmond has joined #ruby
mengu has quit [Remote host closed the connection]
bradhe has joined #ruby
<novochar> wikipedia to the rescue over here
nobitanobi has quit [Read error: Connection reset by peer]
randomautomator has joined #ruby
nobitanobi has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
nobitanobi has quit [Read error: Connection reset by peer]
geekbri has joined #ruby
randomau_ has joined #ruby
randomau_ has quit [Read error: Connection reset by peer]
randomautomator has quit [Read error: Connection reset by peer]
randomautomator has joined #ruby
baroquebobcat has joined #ruby
ericcoleman has quit [Quit: leaving]
randomautomator has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
cdepue has joined #ruby
nobitanobi has joined #ruby
Targen has quit [Quit: No Ping reply in 180 seconds.]
olrrai has joined #ruby
Targen has joined #ruby
dankest has joined #ruby
geekbri has quit [Ping timeout: 246 seconds]
geekbri has joined #ruby
GuidovanPossum has quit [Quit: GuidovanPossum]
chico_chicote has quit [Ping timeout: 246 seconds]
fayimora_ has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
fayimora has quit [Ping timeout: 264 seconds]
Nowaker has joined #ruby
fayimora_ is now known as fayimora
radic has quit [Ping timeout: 246 seconds]
<Nowaker> all my files.rb contain # encoding: utf-8, however, I still get "invalid byte sequence in US-ASCII" - and it comes from an external gem
nobitanobi has quit [Read error: Connection reset by peer]
<Nowaker> what to do?
nobitanobi has joined #ruby
otters has quit [Read error: Connection reset by peer]
noganex has quit [Read error: Operation timed out]
otters has joined #ruby
krusty_ar has quit [Read error: Connection reset by peer]
Seventoes has joined #ruby
VampireTeddyBear has joined #ruby
noganex has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
wagle has quit [Ping timeout: 272 seconds]
krusty_ar has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
radic has joined #ruby
mikeric has joined #ruby
fearoffish has joined #ruby
Guest61957 has quit [Read error: Operation timed out]
nobitanobi has joined #ruby
wagle has joined #ruby
mmun has joined #ruby
jianxioy has joined #ruby
Richmond has quit [Quit: Leaving]
Guest67948 has joined #ruby
Chryson has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
Grey2Young has joined #ruby
zodiac1111 has quit [Remote host closed the connection]
gtuckerkellogg has joined #ruby
zodiac1111 has joined #ruby
igaiga has joined #ruby
thebope has joined #ruby
adeponte has quit [Remote host closed the connection]
AlienElite has quit []
wagle has quit [Read error: Connection reset by peer]
nari_ has joined #ruby
Grey2Young has quit []
fbernier has joined #ruby
silentpost has joined #ruby
khakimov has joined #ruby
<nobitanobi> If I have an array like [1,2,3] and I do [1,2,3].sample - How can I get the index of that returned element?
<Nowaker> [1,2,3].find_index
<nobitanobi> ok…Nowaker thanks
emmanuelux has quit [Ping timeout: 248 seconds]
moos3 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
charliesome has joined #ruby
Spooner has quit []
ibash has quit [Quit: ibash]
SegFaultAX has quit [Quit: Lost terminal]
nobitanobi has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
mockra has quit [Remote host closed the connection]
joast has quit [Quit: Leaving.]
adeponte has joined #ruby
krusty_ar has quit [Ping timeout: 250 seconds]
jfoley has quit [Quit: jfoley]
nobitanobi has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
uris has joined #ruby
andrewhl has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
sailias has joined #ruby
artOfWar has joined #ruby
artOfWar_ has joined #ruby
nobitanobi has joined #ruby
Liothen has quit [Remote host closed the connection]
VampireTeddyBear has quit []
nobitanobi has quit [Read error: Connection reset by peer]
artOfWar has quit [Ping timeout: 244 seconds]
nobitanobi has joined #ruby
dcampano has quit [Quit: dcampano]
nobitanobi has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
umttumt_ has quit [Remote host closed the connection]
joast has joined #ruby
umttumt has joined #ruby
VegetableSpoon has joined #ruby
kevinbond has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
nari_ has quit [Ping timeout: 244 seconds]
nobitanobi has quit [Read error: Connection reset by peer]
nowthatsamatt has joined #ruby
nobitanobi has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
nobitanobi has quit [Client Quit]
nowthatsamatt has left #ruby [#ruby]
itnomad has joined #ruby
aces1up has joined #ruby
<aces1up> what do you guys use for debugging ruby? Currently I just drop output messages to a log file, but do you guys use any debuggers for quicker debugging?
<Spaceghostc2c> I use debugger, and pry.
<Nowaker> rubymine
VegetableSpoon has quit [Quit: Leaving]
<Spaceghostc2c> For quicker debugging, try adderal.
jonathanwallace has joined #ruby
ukd1 has joined #ruby
ukd1 is now known as Guest30836
ryanf has joined #ruby
silentpost has quit [Ping timeout: 265 seconds]
jonatha__ has joined #ruby
dbgster has joined #ruby
jonatha__ has quit [Remote host closed the connection]
savage- has quit [Remote host closed the connection]
jonatha__ has joined #ruby
jonathanwallace has quit [Ping timeout: 244 seconds]
sailias has quit [Ping timeout: 246 seconds]
tdmackey has joined #ruby
savage- has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
mockra has joined #ruby
sailias has joined #ruby
perryh_away is now known as perryh
MarcWeber has joined #ruby
tfittsy is now known as tfitts
artOfWar has joined #ruby
MarcWebe1 has quit [Ping timeout: 245 seconds]
artOfWar_ has quit [Ping timeout: 250 seconds]
tomb___ has joined #ruby
plastics has joined #ruby
adeponte has quit [Remote host closed the connection]
t3hk0d3|2 has joined #ruby
chrxn has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
johnfriel has quit [Quit: johnfriel]
apok has joined #ruby
mikeric has quit [Quit: mikeric]
Guest30836 has quit [Ping timeout: 240 seconds]
mikeric has joined #ruby
ryanf has quit [Ping timeout: 264 seconds]
tk___ has joined #ruby
t3hk0d3 has quit [Ping timeout: 246 seconds]
hemanth has quit [Read error: Connection reset by peer]
ryanf has joined #ruby
hemanth has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
philips has quit [Excess Flood]
atmosx has joined #ruby
<atmosx> hello
geekbri has quit [Remote host closed the connection]
mikeric has quit [Client Quit]
richo_ has quit [Quit: Lost terminal]
Squee-D has joined #ruby
philips has joined #ruby
dsa has joined #ruby
dsa has quit [Remote host closed the connection]
perryh is now known as perry
kevinbond has quit [Quit: kevinbond]
fbernier has quit [Ping timeout: 246 seconds]
EzeQL has quit [Ping timeout: 272 seconds]
friskd_ has joined #ruby
friskd_ has quit [Client Quit]
banisterfiend has joined #ruby
friskd has quit [Ping timeout: 240 seconds]
mikeric has joined #ruby
wagle has joined #ruby
<fowl> atmosx, welcome to #ruby, where all your dreams might come true!
Squee-D has quit [Quit: The computer fell asleep]
<atmosx> finally
<atmosx> !!!
<atmosx> I will write a program in ruby sell it and buy the aston martin db9 that I've always wanted as a second car!
<banisterfiend> fowl: wil u go to the stl rubyconf
<atmosx> puts "Hello world!"
mockra has quit [Remote host closed the connection]
zagabar has joined #ruby
zagabar has left #ruby [#ruby]
<fowl> banisterfiend, no
<banisterfiend> fowl: y
<fowl> i cant imagine a room full of rubies
* fowl imagines 605 people in a room and only 3 are talking
<fowl> you have to assume at least 3% of the silent ones are plotting against you, and insurrection always spreads if left unchecked
<banisterfiend> fowl: u can walk around in your pry t-shirt and give out autographs
macmartine has joined #ruby
dbgster has quit [Quit: dbgster]
ipoval has joined #ruby
wagle has quit [Remote host closed the connection]
wagle has joined #ruby
countdigi has joined #ruby
Azure has quit [Quit: ZNC - http://znc.in]
apok has quit [Quit: apok]
JustinCampbell has quit [Remote host closed the connection]
<countdigi> question bout this - when i marshal.dump then marshal.load this object i lose the dynamic generated attr_reader fields
<countdigi> the one statically defined worked - question is if there is a way to do this without having to write them out?
anothervenue has quit [Read error: Connection reset by peer]
anothervenue has joined #ruby
mockra has joined #ruby
kevinbond has joined #ruby
wagle has quit [Ping timeout: 265 seconds]
<Paradox> i've got an app i'm trying to write, and i'm trying to store data in a 2 dimensional hash, where { "12345" => {time: sometime, name: "somename" }
<Paradox> but i dont know the values before hand
<Paradox> and sometimes i may do myhash["12345][:time] = time
<Paradox> but doing that throws an error
<countdigi> you have to do myhash['12345'] = {}
<Paradox> i thought so
<countdigi> then do what you did
<countdigi> there is a way to create a new hash that does this by default
<Paradox> should i create a hash with hash.new and add {time: nil, name: nil } as its default option?
<andrewhl> I have a set of ifs and elsifs. I want to trigger the first elsif, but the condition for the first if is true. I want to add a nested conditional in this if statement that, if false, will skip to next higher level elsif. Is there a command for this?
itnomad has quit [Quit: Leaving]
<Paradox> an yes
<Paradox> ah yes
<Paradox> Hash.new({time: nil, name: nil}) works just fine
<countdigi> cool
MarcWebe1 has joined #ruby
ipoval has quit [Quit: ipoval]
minijupe has joined #ruby
MarcWeber has quit [Ping timeout: 252 seconds]
CheeToS has quit [Ping timeout: 250 seconds]
<bnagy> andrewhl: that just sounds like if a || b elsif c
tastycakeman has joined #ruby
<tastycakeman> question! does ruby on rails support css reset?
<bnagy> tastycakeman: try #rubyonrails
<tastycakeman> ah! thanks!
aces1up has quit []
josefig has joined #ruby
josefig has joined #ruby
<countdigi> Paradox: if u want to do true perl-like autovivification:
<countdigi> body = proc {|hsh,key| hsh[key] = Hash.new &body }
<countdigi> myhash = Hash.new &body
<deryl> sick
<countdigi> it will go multiple levels deep - might be overkill for what ur doing but wanted to look that up
cbuxton has joined #ruby
ph^ has joined #ruby
baphled has quit [Ping timeout: 252 seconds]
digitalcakestudi has quit [Read error: Connection reset by peer]
ph^ has quit [Remote host closed the connection]
uris has quit [Quit: leaving]
digitalcakestudi has joined #ruby
whitedawg has joined #ruby
mockra has quit [Remote host closed the connection]
JustinCampbell has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
silentpost has joined #ruby
GuidovanPossum has joined #ruby
<GuidovanPossum> Hello,
<jsilver> oh god
macmartine has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
<countdigi> lol
<GuidovanPossum> I'm using hpricot to parse a file and want to delete part of it but when I use delete I get this error: undefined method `delete' for #<Hpricot::Doc:0x10175a498>
mockra has joined #ruby
ipoval has joined #ruby
rippa has joined #ruby
freeayu has quit [Quit: 离开]
sailias has joined #ruby
mikeric has quit [Quit: mikeric]
<GuidovanPossum> In #python lol is not allowed, here's the code any suggestions for removing this line? https://gist.github.com/3026905
Azure has joined #ruby
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
<atmosx> GuidovanPossum: try -> flame_file_contents.delete('<?xml version="1.0" encoding="UTF-8"?>')
sailias has quit [Ping timeout: 246 seconds]
<atmosx> although the error clearly state that the methods does not exist
RainbowDashh has joined #ruby
yonatane has left #ruby [#ruby]
<atmosx> so at this point you'd wanna do: puts falme_file_contents.methods.join(", ")
<atmosx> to check out available methods
<atmosx> and puts falme_file_contents.class to understand what's going on (which class it is.. that supports the methods)
andrewhl has quit [Remote host closed the connection]
<bnagy> try nokogiri instead
<bnagy> hpricot is dead afaik
atmosx has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
atmosx has joined #ruby
<bnagy> but.. isn't that the first line in an xml file?
MarcWebe1 has quit [Read error: Operation timed out]
<jsilver> <<<<<<<<<<<<<<<<<<<< SMILE !!! :) :) :) [[[[[[[[[[[[[[MINASWAN]]]]]]]]]]]]]]]] SMILES :) :) :) >>>>>>>>>>>>>>>>>>>
<jsilver> nokogiri kinda dead too, may wanna check sinew
<GuidovanPossum> I'm saving the file over and over to one file, so I only don't want the first line, because it will throw an error code then
mpereira has quit [Ping timeout: 245 seconds]
<bnagy> File.readlines(fname).drop(1)
<bnagy> why do you need an xml parser to delete one line?
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
<GuidovanPossum> I'll check out sinew thanks for the help I've been stumped on this for a year the fool that I am, so every time I manually delete the first line of the 2 input files
<bnagy> ... you've been looking at Flame for a year?
<GuidovanPossum> I could put up the code if anyone's interested it's a flam3 animator script
cbuxton has quit [Quit: Leaving.]
<bnagy> oic. Not the malware :D
<atmosx> nokogiri is dead?
<atmosx> that's a tragedy
<GuidovanPossum> nope no dirty gems here :O
ananthakumaran has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby
wagle has joined #ruby
RainbowDashh has joined #ruby
RainbowDashh has quit [Client Quit]
L-----D has joined #ruby
GuidoP has joined #ruby
silentpost has quit [Ping timeout: 246 seconds]
MarcWeber has joined #ruby
mockra has quit [Remote host closed the connection]
nari_ has joined #ruby
tomb___ has quit [Quit: Computer has gone to sleep.]
MarcWeber has quit [Ping timeout: 248 seconds]
MarcWebe1 has joined #ruby
MarcWebe1 has quit [Read error: Operation timed out]
RainbowDashh has joined #ruby
tastycakeman has quit [Ping timeout: 265 seconds]
jimeh has quit [Ping timeout: 246 seconds]
emdub has quit [Quit: new kernel time]
darth-happiness has joined #ruby
RainbowDashh has quit [Client Quit]
Skaboy has joined #ruby
yannis has joined #ruby
emdub has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
tewecske has joined #ruby
dankest has quit [Quit: Leaving...]
macmartine has joined #ruby
nari_ has quit [Ping timeout: 264 seconds]
macmartine has quit [Read error: Connection reset by peer]
TheFuzzball has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
TheFuzzball has joined #ruby
emdub has quit [Client Quit]
emdub has joined #ruby
artOfWar_ has joined #ruby
artOfWar has quit [Ping timeout: 240 seconds]
wallerdev has quit [Remote host closed the connection]
wallerdev has joined #ruby
justaguest has joined #ruby
whomp has joined #ruby
RainbowDashh has joined #ruby
<whomp> i am trying to install ruby 1.9 by running gem update ruby, but gem tells me that there is nothing to update even though i'm at version 1.8.7. how can i fix this?
Tricks_ has joined #ruby
zastaph has joined #ruby
<jsilver> dont install ruby 1.9 like that
<jsilver> i use rvm
<jsilver> [notroll]
<zastaph> considering writing my bash prompt in ruby instead of bash.. or trying out zsh. Writing bash shells is not sane
<zastaph> anyone did that?
<jsilver> or r b-env
MarcWeber has joined #ruby
Tricks has quit [Ping timeout: 240 seconds]
TheFuzzball has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
TheFuzzball has joined #ruby
tvw has joined #ruby
darth-happiness has left #ruby ["Leaving"]
MarcWeber has quit [Ping timeout: 265 seconds]
banisterfiend has joined #ruby
<atmosx> zastaph: there's a ruby prompt… project
<atmosx> Don't remember the name though
pooya72 has joined #ruby
sailias has joined #ruby
digitalcakestudi has quit [Read error: Operation timed out]
<zastaph> it's quite easy to start... prompt_command() { export PS1=$(ruby_prompt.rb) } PROMPT_COMMAND=prompt_command
bglusman has quit [Remote host closed the connection]
<zastaph> but I need examples of what is possible from ruby :)
<whomp> curl
<fowl> zastaph, in pry i write ruby code then .cd ~ .ls .etc for normal shell stuff
<whomp> lol thought this was my bash prompt
<whomp> jsilver, can i use gem and rvm in conjunction with each other?
<jsilver> yes
<jsilver> they are designed to integrate... it controls environment which is what gem configuration itself is based on
xubuntu5 has quit [Ping timeout: 246 seconds]
jd__ has quit [Ping timeout: 246 seconds]
<jsilver> it's a bash based program
<atmosx> http://www.youtube.com/watch?v=8vMKN1tYknE <--- that's awesome
<jsilver> lol
<jsilver> wait
plastics has quit [Ping timeout: 265 seconds]
<jsilver> is #lollin around here alrite?
<atmosx> jsilver: sure, it's 8:15 here and I have a plane at 9:45
<jsilver> jeesh
<jsilver> ruff
<atmosx> yeah life sucks, I know
<jsilver> hope u have time 2 eat before yr meeting!
<jsilver> :D
<atmosx> hahahahah
<jsilver> ;)
<atmosx> I don't have a meeting, I'm going back home :-P
<jsilver> oh
<fowl> wtf is #lollin
<jsilver> Object Life
<jsilver> methods:
<atmosx> fowl: You try to stay focus on your speech
<jsilver> def lollin
<jsilver> lol
<jsilver> i forget how ruby work
<jsilver> but yea
<jsilver> listenin to MIA
<atmosx> what's MIA?
<atmosx> Pearl Jam is a rock band from Seattle
<atmosx> omg
* atmosx ducks and runs
<jsilver> lmfao
<atmosx> And now my bitterr hands, hands broken glasss
<atmosx> of what was everything
<atmosx> LALALALALA
TheFuzzball has quit [Ping timeout: 244 seconds]
TheFuzzball has joined #ruby
CheeToS has joined #ruby
mikeycgto has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
whomp has quit [Remote host closed the connection]
mayankkohaley has quit [Ping timeout: 244 seconds]
sailias has quit [Ping timeout: 246 seconds]
trend has joined #ruby
MarcWeber has joined #ruby
minijupe has quit [Quit: minijupe]
Icoin has joined #ruby
<jsilver> ok listening
<jsilver> heh
tastycakeman has joined #ruby
tastycakeman has quit [Client Quit]
igotnolegs has quit [Quit: Computer has gone to sleep.]
ozzloy has quit [Ping timeout: 265 seconds]
hadees has quit [Quit: hadees]
liluo has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
sailias has joined #ruby
wargasm has joined #ruby
savage- has quit [Remote host closed the connection]
macmartine has quit [Quit: macmartine]
wargasm has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 255 seconds]
gtuckerkellogg has joined #ruby
mockra has joined #ruby
rippa has joined #ruby
mockra has quit [Remote host closed the connection]
RainbowDashh has quit [Ping timeout: 246 seconds]
jameshyde has quit [Ping timeout: 245 seconds]
RainbowDashh has joined #ruby
wallerdev has quit [Quit: wallerdev]
wargasm has joined #ruby
GhettoCode has quit []
nachtwandler has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
fixl has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
justaguest has quit []
bosphorus_ has quit [Remote host closed the connection]
RainbowDashh has quit [Disconnected by services]
RainbowD_ has joined #ruby
mikeric has joined #ruby
liluo has quit [Remote host closed the connection]
abra has quit [Ping timeout: 276 seconds]
umttumt has quit [Remote host closed the connection]
abra has joined #ruby
adeponte has joined #ruby
wargasm has joined #ruby
josefig has quit [Quit: Computer has gone to sleep.]
perry is now known as perryh_away
thebope has quit [Remote host closed the connection]
wargasm has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
fayimora has quit [Ping timeout: 246 seconds]
flowerha_ has joined #ruby
flowerha_ is now known as flowerhack_
kevinbond has quit [Quit: kevinbond]
fayimora has joined #ruby
atmosx has quit [Quit: Computer has gone to sleep.]
croz has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
neku has joined #ruby
yxhuvud has joined #ruby
nachtwandler has quit [Ping timeout: 264 seconds]
theRoUS has quit [Remote host closed the connection]
RainbowD_ is now known as RainbowDashh
remmy444 has joined #ruby
trend has quit [Quit: trend]
khakimov has joined #ruby
jduan1981 has quit [Quit: jduan1981]
zodiac1111 has quit [Ping timeout: 244 seconds]
Niamkik has joined #ruby
TheFuzzball has quit [Ping timeout: 265 seconds]
wargasm has joined #ruby
artOfWar_ has quit [Ping timeout: 240 seconds]
wargasm has quit [Read error: Connection reset by peer]
TheFuzzball has joined #ruby
wargasm has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
ananthakumaran1 has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
justaguest has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
mohits has quit [Read error: Connection reset by peer]
ryanf has quit [Ping timeout: 245 seconds]
ebanoid has joined #ruby
RudyValencia has quit [Quit: My IRC client doesn't advertise in /quit messages.]
bier has quit [Ping timeout: 246 seconds]
bier|tp has quit [Ping timeout: 246 seconds]
TheFuzzball has quit [Ping timeout: 244 seconds]
TheFuzzball has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
Icoin has quit [Quit: Icoin]
Emmanuel_Chanel has joined #ruby
CheeToS has quit [Ping timeout: 248 seconds]
mmun has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
neku is now known as neku|away
bier has joined #ruby
bier|tp has joined #ruby
nari_ has joined #ruby
qwerxy has joined #ruby
TheFuzzball has quit [Ping timeout: 265 seconds]
TheFuzzball has joined #ruby
qwerxy has quit [Client Quit]
bosphorus has joined #ruby
sepp2k has joined #ruby
fearoffish has quit [Ping timeout: 246 seconds]
Axsuul has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
indeterminate has joined #ruby
twik has joined #ruby
apeiros_ has joined #ruby
AndChat- has quit [Ping timeout: 246 seconds]
kjellski has joined #ruby
freeayu has joined #ruby
thone_ has quit [Ping timeout: 264 seconds]
thone has joined #ruby
blacktulip has joined #ruby
Raduwen has joined #ruby
zodiac1111 has joined #ruby
xbayrockx has joined #ruby
justaguest has quit []
fangwen has joined #ruby
<fangwen> how to make Emacs auto indent the current line in ruby mode?
burgestrand has quit [Quit: Leaving.]
burgestrand has joined #ruby
L-----D has quit [Ping timeout: 255 seconds]
freeayu has quit [Quit: 离开]
Criztian has joined #ruby
ryanf has joined #ruby
kaneda has joined #ruby
kaneda is now known as Guest37183
<Mon_Ouie> Tab?
mneorr has joined #ruby
<banisterfiend> Mon_Ouie: you seem kind of chirpy recently, did you receive some good news?
neku|away is now known as neku
kaneda__ has quit [Ping timeout: 252 seconds]
<Mon_Ouie> None that I know of
ryanf has quit [Ping timeout: 246 seconds]
mneorr has quit [Client Quit]
saschagehlich has joined #ruby
mneorr has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
kjellski has quit [Quit: Leaving]
wvms has quit [Read error: Connection reset by peer]
wvms has joined #ruby
Spooner has joined #ruby
wargasm has joined #ruby
dr_bob has joined #ruby
mikeric has quit [Quit: mikeric]
subbyyy has quit [Quit: Leaving.]
wargasm has quit [Read error: Connection reset by peer]
twik has quit [Ping timeout: 245 seconds]
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
kaspernj has joined #ruby
<mneorr> how to pretty print a ruby string? e.g "first_line\r\nsecond_line"
<apeiros_> p str
AlbireoX`Laptop has quit [Remote host closed the connection]
<apeiros_> or puts str.inspect
<mneorr> p didn't work but puts did :) thanks
igaiga has quit [Remote host closed the connection]
cirwin has quit [Quit: sleep....ping!]
yannis has quit [Quit: Bye!]
<apeiros_> mneorr: what do you mean "didn't work"?
fangwen has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<mneorr> in irb, it didn't pretty print with p
<mneorr> but it worked perfectly with puts
<mneorr> ruby 1.9.3 p0
<apeiros_> did you do `puts str` or `puts str.inspect`?
<mneorr> without inspect
<apeiros_> hm, dude… that's not pretty print
<apeiros_> that's just plain print
<mneorr> hm,. maybe I've used the wrong term :)
<mneorr> just wanted to see the real new lines, instead of \r\n
dr_bob has left #ruby [#ruby]
<apeiros_> mneorr: also for future reference - do NOT state your problem as "didn't work". that's an utterly pointless description.
justinmcp has joined #ruby
pooya72 has quit [Quit: pooya72]
wargasm has joined #ruby
bjhaid has joined #ruby
<mneorr> okay
<mneorr> tnx
flowerhack_ has quit [Remote host closed the connection]
redj0hn has joined #ruby
redj0hn has left #ruby [#ruby]
nari_ has quit [Ping timeout: 252 seconds]
niklasb has joined #ruby
qwerxy has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
j3ll3 has joined #ruby
j3ll3 has left #ruby [#ruby]
danishman has joined #ruby
timonv has joined #ruby
jigfox has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
Foxandxss has joined #ruby
ph^ has joined #ruby
pk1001100011 has joined #ruby
monkegjinni has joined #ruby
qwerxy has quit [Ping timeout: 250 seconds]
qwerxy has joined #ruby
justaguest has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
bjhaid has quit [Ping timeout: 249 seconds]
bjhaid has joined #ruby
jigfox has quit [Quit: WeeChat 0.3.8]
bjhaid has quit [Read error: Connection reset by peer]
bjhaid has joined #ruby
qwerxy has quit [Quit: offski]
bjhaid has quit [Read error: Connection reset by peer]
bjhaid has joined #ruby
bjhaid has quit [Read error: Connection reset by peer]
Criztian has quit [Remote host closed the connection]
bjhaid has joined #ruby
bjhaid has quit [Read error: Connection reset by peer]
<shevy> mneorr you can use pp too
<shevy> after doing require 'pp'; pp your_object_here
<shevy> it's very nice for array and hashes
robotmay has joined #ruby
<mneorr> shevy: tnx, trying it out
<shevy> if you want more colours, you can install wirble gem. "gem install wirble". and you can test "awesome print", I think ap, too... but it has too many colours for me, I find pp to suffice
<mneorr> hm,. i guess my irb is screwed up
<shevy> hah comforts then
<shevy> for me, pry is screwed up but irb works fine :(
<shevy> one enter leads to 10 new lines and a jumping to focus on top left area
<mneorr> I remember i had to add some stuff to .irbrc because the completion was lost :) probably i'll delete it
preller has quit [Remote host closed the connection]
<mneorr> btw, (as i'm pretty new to ruby), what's the advantage of pry?
<mneorr> okay awesome print works flawlessly in irb here :)
<banisterfiend> mneorr: pry is the the coolest thing
<mneorr> shevy: is there a gem to install for pp?
<shevy> mneorr it is part of ruby stdlib
<shevy> so it comes bundled with ruby distributions
<shevy> mneorr, with pry you can inspect objects more closely
<mneorr> shevy: hm weird that it doesn't output any differently than a plain p on my machine :)
QKO_ has joined #ruby
callenb has joined #ruby
<shevy> mneorr, hmm try a very large array perhaps.... require 'pp'; array = %w( asdhklhasg jhegwjhge whklweg klweghklwegkekwegjkwegjklwegjklwehjklhwejkl hweklhwekl hwe hwe hwe hwe hwe whe whejkehljrhkljirhjerhiljerhl ); pp array
schovi has joined #ruby
<shevy> for strings it is indeed not that useful, that's why I wrote for array and hashes mostly :)
<shevy> but I love it especially for complicated hashes
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
mvangala has quit [Remote host closed the connection]
jimeh has joined #ruby
QKO has quit [Read error: Operation timed out]
<mneorr> shevy: oh, got it :) tnx
QKO_ has quit [Ping timeout: 248 seconds]
<shevy> \o/
QKO has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
whitedawg has quit [Quit: Leaving]
lxsameer has quit [Max SendQ exceeded]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
QKO_ has joined #ruby
QKO has quit [Ping timeout: 245 seconds]
tvw has quit [Remote host closed the connection]
pooya72 has joined #ruby
Guest37183 has quit [Quit: Leaving]
kaneda has joined #ruby
kaneda is now known as Guest82415
nari_ has joined #ruby
robotmay has quit [Ping timeout: 264 seconds]
iocor has joined #ruby
robotmay has joined #ruby
lxsameer has quit [Quit: Leaving]
L-----D has joined #ruby
plastics has joined #ruby
robotmay has quit [Ping timeout: 252 seconds]
Emmanuel_Chanel has quit [Ping timeout: 248 seconds]
ph^ has quit [Remote host closed the connection]
rakunHo_ has joined #ruby
robotmay has joined #ruby
rakunHo has quit [Ping timeout: 246 seconds]
twik has joined #ruby
twik has quit [Client Quit]
nari_ has quit [Ping timeout: 244 seconds]
emmanuelux has joined #ruby
<joni> what would be the best way to print a number of characters, ie (0..10).map { |i| "-" }.join("")
<joni> anything faster?
freeayu has joined #ruby
fixl has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
ixti has joined #ruby
<apeiros_> lol :)
<apeiros_> "-"*11 ;-)
<apeiros_> (you realize that 0..10 is 11 elements?)
<apeiros_> ^ @ joni
stenno\splat has joined #ruby
<stenno\splat> is it true that there is no lookahead/behind in ruby 1.8.x ?
<stenno\splat> good day everyone, first
<stenno\splat> >_>"
selvakumaran has joined #ruby
<apeiros_> stenno\splat: in regexen? yes. you can use the oniguruma-gem, though
<stenno\splat> alright, thanks
<apeiros_> lookahead is there too
<apeiros_> only lookbehind was missing
<apeiros_> (iirc, been a couple of years)
<stenno\splat> i see
<stenno\splat> :)
<apeiros_> also: DROP 1.8, SRSLY, IT'S DEAD!!!!!!!
<stenno\splat> yes i know
<apeiros_> :-p
Kwpolska has quit [Ping timeout: 244 seconds]
<stenno\splat> the software we are using is a year old though and might still run on 1.8.7 >_>"
<apeiros_> 1.8 was dead 1y ago already…
<apeiros_> you're using zombie software :)
<stenno\splat> >_>
<banisterfiend> stenno\splat: they're pulling support for it soon too iirc
<apeiros_> if it is OSS, why not patch it up for 1.9 and make a pull request? :) you'd do something good too…
<banisterfiend> stenno\splat: so if you find a mission critical bug in ruby 1.8 that opens up your app to malicious attacks, u wont get any help from core :)
<apeiros_> I think they still do patchlevel updates on 1.8.7
<stenno\splat> it is oss
<stenno\splat> the whole project is smoehow strange
<stenno\splat> somhow*
<stenno\splat> argh
burgestrand has quit [Quit: Leaving.]
<apeiros_> oh wow
<apeiros_> talk about bad project setup…
<apeiros_> "conventions? whatsthat?"
<apeiros_> "lib dir? bin dir? baaah, who needs those…"
andrewhl has joined #ruby
fridim_ has joined #ruby
ph^ has joined #ruby
emmanuelux has quit [Ping timeout: 246 seconds]
GuidoP has quit [Quit: Bye]
ph^ has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
Icoin has joined #ruby
justaguest has quit []
QKO_ has quit [Ping timeout: 248 seconds]
Vendethiel has joined #ruby
justinmcp has quit [Remote host closed the connection]
RainbowDashh has quit [Quit: SLEEP MODE. [NSFW!] [WIERD] [WTF] http://pastebin.com/6L0WjKRk]
andrewhl has quit [Remote host closed the connection]
rakunHo has joined #ruby
rakunHo_ has quit [Ping timeout: 246 seconds]
stenno\splat is now known as stenno
Criztian has joined #ruby
olrrai has quit [Ping timeout: 246 seconds]
MatthewGA has joined #ruby
kaspernj has quit [Read error: Operation timed out]
jonatha__ has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
justaguest has joined #ruby
justaguest has quit [Client Quit]
justaguest has joined #ruby
pygospa has quit [Disconnected by services]
pygospa has joined #ruby
emmanuelux has joined #ruby
QKO has joined #ruby
ixti has quit [Read error: Connection reset by peer]
callenb has quit [Ping timeout: 255 seconds]
rakunHo has quit [Remote host closed the connection]
<MatthewGA> In Ruby classes, can one method call/reference another method? I'm trying self.class.OtherMethodName but I'm getting errors that OtherMethodName is undefined
<apeiros_> MatthewGA: can you make a simple example of what you try to do?
<apeiros_> I think you're messing up the receiver
<MatthewGA> Let me make a Gist
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<apeiros_> MatthewGA: yeah, just leave away the `self.class`
<apeiros_> `self.class.` actually
<apeiros_> also, in ruby the convention is snake_case method names, not camelCase
<apeiros_> (CapitalizedCamelCase is even worse…)
kaspernj has joined #ruby
<MatthewGA> Convention noted. I now get a different error "uninitialized constant SugarCRM::CheckAndFixUrl (NameError)" - I read that as "you can't just say CheckAndFixUrl"
<apeiros_> yes, because you CapitalCased it
<apeiros_> if you do that, you *must* either use parens, or pass an argument
<apeiros_> otherwise ruby can't distinguish it from a constant
<apeiros_> really *don't* CapitalCamelCase your method names.
<MatthewGA> Sweet, now it's saying that I can't spell include. Fair enough on that one. Thanks very much. I'll update casing/naming to snake_case convention.
<apeiros_> with your use of @@vars, you might also be in for a surprise. I don't see your whole code, though.
<apeiros_> just note that @@vars are particularly difficult to handle, as they're shared not just between class and instance, but through the whole inheritance tree too
<MatthewGA> The class doesn't inherit from anywhere, and I don't expect it'll ever really be inherited. Still, should I opt for the single-@, just set @url as needed?
fearoffish has joined #ruby
<apeiros_> can't just say that out of the blue. depends on what you want to do with it.
<banisterfiend> apeiros_: do u understand htis? https://gist.github.com/f9e95ade0aaa9ea19d1b
<apeiros_> but it doesn't sound like data that should be shared across different instances either
<MatthewGA> This will just be a REST API wrapper for SugarCRM, and possibly used with a more simple script to extract certain data
<apeiros_> banisterfiend: seems like the parser doesn't care about branching for determining whether a local is being set
<apeiros_> and thus reserving its spot etc etc
<banisterfiend> yeah, confused me for a while
<banisterfiend> i didnt understand how x existed outside the block
<apeiros_> same as `x = nil if false; x` doesn't cause a NameError
<MatthewGA> Updated for casing, etc. The "whole code" though it isn't much more than I pasted earlier. Early stages lol https://gist.github.com/bd64c7c52509ffd5de05
qwerxy has joined #ruby
<apeiros_> MatthewGA: I'd also fix indentation
<apeiros_> helps a lot with spotting syntax errors
<apeiros_> also makes reading much easier
<apeiros_> I wonder why you don't set the credentials in initialize
ixti has joined #ruby
ixti has quit [Read error: Connection reset by peer]
qpt has joined #ruby
qpt is now known as IHateHavingToReg
freeayu has quit [Quit: 离开]
ixti has joined #ruby
ixti has quit [Read error: Connection reset by peer]
sonkei has quit [Ping timeout: 265 seconds]
<MatthewGA> I was considering it. The first guide I read mentioned there was no "main" type method, then I saw that elsewhere and just haven't moved it.
<MatthewGA> I found Net:HTTP but is there something similar for HTTPS?
<MatthewGA> and isn't indentation convention two spaces/
stabby_lambda has joined #ruby
stabby_lambda is now known as rjsamson
<banisterfiend> apeiros_: what are some huge rails classes
blacktulip has quit [Ping timeout: 252 seconds]
Axsuul has quit [Ping timeout: 265 seconds]
udante has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
mpereira has joined #ruby
blacktulip has joined #ruby
<MatthewGA> nvm I see use_ssl now. Thanks
Kesavoka has quit [Read error: Connection reset by peer]
IHateHavingToReg has left #ruby [#ruby]
execute has joined #ruby
mayankkohaley has joined #ruby
L-----D has quit [Quit: Leaving]
blacktulip has quit [Ping timeout: 252 seconds]
kaspernj has quit [Ping timeout: 255 seconds]
Emmanuel_Chanel has joined #ruby
gtuckerkellogg has joined #ruby
rjsamson has quit [Remote host closed the connection]
SeySayux has quit [Ping timeout: 265 seconds]
SeySayux has joined #ruby
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
qwerxy has quit [Quit: offski]
rjsamson has joined #ruby
rjsamson has quit [Remote host closed the connection]
pooya72 has quit [Quit: pooya72]
gtuckerkellogg has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
minijupe has joined #ruby
justaguest has quit [Ping timeout: 252 seconds]
<apeiros_> banisterfiend: I avoid looking at rails' source
<apeiros_> it hurts too much
bashdy has joined #ruby
<apeiros_> banisterfiend: I'd assume the form stuff to be somewhat big
<stenno> rails >_>"
<apeiros_> also AM could have some bigger stuff in it
<banisterfiend> apeiros_: can u name some classes? :P
<banisterfiend> apeiros_: im just benchmarking source extraction for huge classes
<apeiros_> not really, no
<stenno> activerecord maybe
<apeiros_> banisterfiend: wc on **/* in the rails things :)
<apeiros_> WC ALL THE FILES!
mickn has joined #ruby
fbernier has joined #ruby
qwerxy has joined #ruby
rjsamson has joined #ruby
rjsamson has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
pooya72 has joined #ruby
silentpost has joined #ruby
bashdy has quit [Quit: bashdy]
qwerxy has quit [Quit: offski]
mengu has joined #ruby
blacktulip has joined #ruby
<apeiros_> MatthewGA: yes, indent convention is 2 spaces
<apeiros_> but your code is wrongly indented in several places
<apeiros_> and yes, there is net/https
<apeiros_> requires openssl iirc
baroquebobcat has quit [Quit: baroquebobcat]
Kesava has joined #ruby
EzeQL has joined #ruby
qwerxy has joined #ruby
qwerxy has quit [Client Quit]
mickn has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
joshsmith has joined #ruby
<joshsmith> hey all, I'm just starting to learn Ruby and I'm getting a little confused with this hash I'm getting from RMagick
ByteCrunch has quit [Remote host closed the connection]
<apeiros_> that does not look like a hash
<joshsmith> I'm not really sure how to access any of those attributes
<apeiros_> {red=1799 <-- not valid hash syntax, not the output of Hash#inspect
<apeiros_> check the class of that value, then the docs of that class.
<joshsmith> the class is Hash
ByteCrunch has joined #ruby
<apeiros_> no, it's not.
<joshsmith> I'm telling you it is
qwerxy has joined #ruby
<joshsmith> here's IRB output
<apeiros_> what you just pasted is *not* a Hash. no matter what you say.
<apeiros_> um, yes
emmanuelux has quit [Ping timeout: 245 seconds]
<apeiros_> 1.9.3-p194 :020 > h#inspect # <-- # is a comment, so what you did is just h
<joshsmith> oh
<joshsmith> hah
<apeiros_> anyway, try: Object.instance_method(:class).bind(h).call
<joshsmith> Hash
<apeiros_> did you fiddle with your irb settings?
<joshsmith> not that I know of
<apeiros_> what does `p h` print?
<apeiros_> also: did you load any irb-output-fancies? like wirble, hirb etc.…
<joshsmith> also not that I know of
<joshsmith> I think I'm running as 'nilla as I can
<joshsmith> afaik
<apeiros_> joshsmith: yeah, look, a normal hash inspect will not be a=b, it's a=>b
<apeiros_> which is why I'm positive that there's something off
TheFuzzball has quit [Quit: Leaving...]
<apeiros_> ok. next thing to check: h.method(:inspect).source_location
<joshsmith> nil
<apeiros_> …
<apeiros_> something is off here
<apeiros_> but I don't know what. this is not a valid Hash inspect value.
monkegjinni has quit [Ping timeout: 248 seconds]
<joshsmith> very weird. the actual information in the output is generally what I'd expect to see
<apeiros_> h.singleton_class.ancestors
<apeiros_> running slowly out of ideas…
<joshsmith> [Hash, Enumerable, Object, Magick, Kernel, BasicObject]
<apeiros_> hm, ok, it has Magick included
<apeiros_> or extended
<apeiros_> but…
<apeiros_> no… wrong place for it to be an extend on the object…
<apeiros_> would be the first then…
<apeiros_> h.method(:inspect).owner
<joshsmith> Hash
<apeiros_> ok. out of ideas then. also SC2 UK finals going on…
fbernier has quit [Ping timeout: 264 seconds]
<joshsmith> haha no worries, thanks for the help so far, though
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<joshsmith> this was the method I used to do it: http://www.simplesystems.org/RMagick/doc/image1.html#color_histogram
Foxandxss has joined #ruby
igotnolegs has joined #ruby
tomb___ has joined #ruby
baroquebobcat has joined #ruby
Occult has quit [Read error: Connection reset by peer]
Asher has quit [Ping timeout: 250 seconds]
twock has joined #ruby
igel_ has joined #ruby
baroquebobcat has quit [Client Quit]
<igel_> why is ruby 1.8 still so popular?
<countdigi> some people like round numbers
monkegjinni has joined #ruby
<daed> hahaha
<daed> nice reason.
<apeiros_> countdigi: then why don't they use ruby 1?
<countdigi> :-) true for a true roundist that would be best
<yxhuvud> igel_: I doubt it is *popular*, but there are people that is forced to use it for some reason or another. (like packaging, or legacy).
execute is now known as _axx
jfoley has joined #ruby
<igel_> yxhuvud: 1.8 came out as the default when i installed jruby on a ubuntu 12.04.
<igel_> and i thought: how can 1.8 be the default?
<daed> at my company we don't use 1.8 at all
<yxhuvud> packagers are retards.
<daed> everything was ported to 1.9 last year
<countdigi> a buddy of mine's company uses jruby and recently he mentioned there are still some flaky things in 1.9 w/ jruby not sure it thats still valid
<yxhuvud> also, iirc some fairly common ruby based lib had a dependency on an old rails version that doesn't work on 1.9
seanstickle has joined #ruby
<joni> apeiros_: yes ofc
qwerxy has quit [Quit: offski]
Asher has joined #ruby
<Spooner> What is the ettiquette for finishing someone else's abandoned project and publishing it as a gem? Wouldn't that mean I then _owned_ the ability to push that gem, not them (they never published). Not sure how gem pushing works on that level.
<deryl> igel_: distributions like debian think they're being 'stable' when they're not changing the version like that. and most of the others are lemmings and just following suit (usually because they're just knockoffs of that distribution in the first place)
radic has quit [Remote host closed the connection]
<Spooner> igel_ : OSX comes with 1.8.7, so it makes it easier to distribute apps on that platform. Hopefully 1.8 will phase out once it stops getting support.
<stenno> Spooner, depends on the license
radic has joined #ruby
<Spooner> stat1x : MIT
<stenno> if it is something like GPL or MIT or w/e you can be pretty sure
<stenno> ah
<stenno> stenno* :)
TheFuzzball has joined #ruby
<stenno> well MIT basically means "Do what you like with it lol"
<deryl> Spooner: idk if its 'the' ettiquette', i would think that if someone coded the source, gave it a reasonable license like MIT, put it up on a open repo like github, never ever pushed it in gem format through the known community gem servers, AND has NOT done any additional coding (say a year) on it.. I would simply follow the license and give them credit then drive forward
<stenno> i think you can even sell the software, but i am not sure
MarcWeber has quit [Ping timeout: 264 seconds]
<deryl> is this more a question of ownership or of licensed capabilities?
<stenno> fork it, then its yours and you own it (the fork, that is)
<deryl> because for all time, the person that wrote it will 'own' the original source.
<deryl> right
twinturbo has joined #ruby
<Spooner> Yeah, it is pretty much zombied: https://github.com/boj/ruby-perlin/commits/master - I'm talking about ownership of gem push rights. I know I can happily fork and play/distribute with it forever :)
<deryl> if they made a rubygems account and have that listed under their account, you would ahve to be added to have ANY rights to push in the first place
<deryl> otherwise, and you said they never pushed, you could create your own account and then list the gem under that and then of course you have push rights.
<stenno> unless you call it ruby-perlin2 :)
<stenno> or you mean, to the same project?
<stenno> n/m
<deryl> if they added the gem to their OWN account but *never* pushed, the first still applies
<stenno> disergard me
<twinturbo> how can I figure out what library is chaing my YAML adapter from psych to syck?
<stenno> debug! :)
<stenno> read source code
<deryl> youo'd have to contact the original owner and have them put you on as an owner as well, or do as stenno says and simply use a different but similar name
<Spooner> It wasn't even a gem when I forked, so in some ways the whole thing is moot. Am I able to give the original guy push rights if he wants them back in the future? If I can, then there is no real reason not to push on.
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
Foxandxss has joined #ruby
<deryl> rather weird question. you could give your mom push rights if you wanted to
<twinturbo> stenno: was that at me?
<deryl> (no slur or insult intended, just a point)
<stenno> twinturbo, yes
<twinturbo> stenno: syck has to be set expliclity right?
<deryl> so long as YOU are the primary on the rubygems account with which the gem is associated
xubuntu5 has joined #ruby
jd__ has joined #ruby
<stenno> i don't know either sych nor psych
bier has quit [Ping timeout: 244 seconds]
<stenno> syck*
Foxandxss has quit [Client Quit]
Foxandxss has joined #ruby
<Spooner> Thanks for the wisdom. I'll leave it another week for a reply, then I'll plug on :)
<twinturbo> i guess i could write a script to search for "syck" in all the gems in the bundle but god damn
<stenno> what do you mean, a script
baroquebobcat has joined #ruby
<stenno> grep -r -e 'syck'
<stenno> ^ script
<stenno> maybe -l too
digitalcakestudi has joined #ruby
<stenno> cat /usr/local/bin/grepsrc
fayimora_ has joined #ruby
<stenno> grep -rnIe "$1" .
<stenno> bash is your friend there :P
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
<deryl> i don't know either of them myself, but my brain keeps bringing to mind a discussion in here awhile back. I thought it was said that that was a *compile* time option. And google backs that up with: http://blog.tddium.com/2011/12/01/psych-isnt-syck/
baroquebobcat has quit [Client Quit]
blacktulip has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
kaspernj has joined #ruby
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
fbernier has joined #ruby
fantazo has quit [Remote host closed the connection]
tk___ has quit [Quit: ばいばい]
pooya72 has quit [Remote host closed the connection]
zodiac1111 has quit [Ping timeout: 248 seconds]
pooya72 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
fbernier has quit [Ping timeout: 265 seconds]
lexy0202 has joined #ruby
joshsmith has quit [Read error: Connection reset by peer]
joshsmith has joined #ruby
joshsmith has quit [Client Quit]
ixti has joined #ruby
BrianJ has joined #ruby
pooya72_ has joined #ruby
<BrianJ> In ruby what is analogous to nexus/maven ?
dkissell_ has joined #ruby
<BrianJ> rake for build tool i imagine, but whats the typical artifact repository?
<banisterfiend> BrianJ: rubygems
<banisterfiend> thoug hi've never heard a library called an 'artifact' before ;)
<BrianJ> wars and other binaries are generally called artifacts in Java land
<BrianJ> lol
<stenno> well they are called eggs and gems too :)
fayimora_ has joined #ruby
<BrianJ> java world -.-
<stenno> binaries?
pooya72 has quit [Ping timeout: 246 seconds]
pooya72_ is now known as pooya72
<BrianJ> So I need to create my own local ruby gem repository?
krusty_ar has joined #ruby
dkissell has quit [Ping timeout: 246 seconds]
dkissell_ is now known as dkissell
<stenno> nexus sounds more like git imho
cakehero has joined #ruby
lexy0202 has left #ruby [#ruby]
lexy0202 has joined #ruby
<Mon_Ouie> Not necessarily. Only if you want to install a gem on several computers without making it public (well, even then, it's just one way to automatize it, not required)
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
subbyyy has joined #ruby
GuidovanPossum has quit [Quit: GuidovanPossum]
<matled> is there any built-in function to execute a program by array (i.e. exec("command", "arg1")) and easily read stdout?
kirun has joined #ruby
<Mon_Ouie> IO.popen
<Mon_Ouie> IO.popen(["command", "arg1"]) { … }
<stenno> value = %x{ program args}
<matled> Mon_Ouie: ah, I didn't see that cmd could be an array. thanks!
<Mon_Ouie> stenno: What if arg1 is something like "foo bar"?
cakehero has quit [Quit: Computer has gone to sleep.]
<stenno> where is the problem..?
<Nowaker> BrianJ: mvn -> rake (via Rakefile), pom.xml/dependencies -> Gemfile (fetch depedencies with `bundle install`, but first need to `gem install bundler`)
<stenno> value = %x{ programs #{arg1}}
<stenno> -s
<Mon_Ouie> stenno: That passes 2 different arguments to program, not a single one
<Mon_Ouie> You need to escape arg1 If you want to do it that way
macmartine has joined #ruby
<stenno> anyway, with IO.popen you get stdio and stdout descriptors and can talk to it during runtime, so its preferable anyway
<stenno> and you are right, yes
<stenno> s/stdio/stdin/ :D
<stenno> or in/out rather
dchelimsky has joined #ruby
qwerxy has joined #ruby
<stenno> also concerning
kevinbond has joined #ruby
krusty_ar has quit [Ping timeout: 240 seconds]
<stenno> also concerning the 'as array', in ruby you can always splat an array
selvakumaran has quit [Ping timeout: 244 seconds]
thecreators has joined #ruby
dchelimsky has quit [Remote host closed the connection]
<stenno> so if you have def bla a,b,c; a + b + c;end
<stenno> you can do: bla *[1,2,3]
tvw has joined #ruby
monkegjinni has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
dankest has joined #ruby
fayimora has joined #ruby
CheeToS has joined #ruby
rad has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby
liluo has joined #ruby
JStoker has quit [Excess Flood]
qwerxy has quit [Quit: offski]
silentpost has quit [Ping timeout: 240 seconds]
torstar has joined #ruby
<torstar> anyone know if there's a dedicated channel for ruby mechanize? or where I could get help with it?
<rad> Hey :) I'm new to Ruby... I understand how to read arguments with the ARGV array. However, if my program uses more than command, i.e, after the user presses enter and enters further commands, how can my program read these arguments?
udante has quit [Quit: Linkinus - http://linkinus.com]
Beoran_ has joined #ruby
JStoker has joined #ruby
<apeiros_> rad: $stdin.gets
d3c has joined #ruby
<rad> apeiros_: thanks
<apeiros_> rad: be aware that there's also just plain `gets` (really being Kernel#gets), but that one works off of ARGF
<rad> apeiros_: ok, I will try this :-)
<rad> thanks
<apeiros_> the effect is, that a plain gets will treat any value in ARGV as a file and tries to read from there first
dankest has quit [Quit: Leaving...]
<apeiros_> lots of people fall into that trap, not realizing that Kernel#gets is ARGF.gets, and not $stdin.gets. most often you want $stdin.gets.
Beoran__ has quit [Ping timeout: 265 seconds]
fayimora_ has joined #ruby
torstar has quit [Quit: torstar]
khakimov has joined #ruby
virunga has joined #ruby
lexy0202 has quit [Quit: lexy0202]
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
marcoshack has joined #ruby
lexy0202 has joined #ruby
lexy0202 has quit [Client Quit]
shevy has quit [Ping timeout: 248 seconds]
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby
havenn has joined #ruby
graspee has joined #ruby
umttumt has joined #ruby
silentpost has joined #ruby
marcoshack has quit [Remote host closed the connection]
minijupe has quit [Quit: minijupe]
ph^ has joined #ruby
bashdy has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby
robotmay has quit [Ping timeout: 252 seconds]
shevy has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
Habib has joined #ruby
<Habib> hey
<Habib> did anyone use sublime text?
maletor has joined #ruby
dankest has joined #ruby
maletor has quit [Client Quit]
<bnagy> I think a lot of rails devs use it, try #rubyonrails
maletor has joined #ruby
<Habib> and what ide to use if i'm not interested in rails
<Habib> ?vim?
robotmay has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby
<bnagy> st2 is not an ide
<bnagy> or, if it is, then so are vim and emacs
n1x has joined #ruby
dbgster has joined #ruby
<Mon_Ouie> And as a text editor it can be used just as well whether you're planning on using Rails or not
itnomad has joined #ruby
savage- has joined #ruby
rad has quit [Ping timeout: 245 seconds]
sonkei has joined #ruby
Criztian has quit [Remote host closed the connection]
fbernier has joined #ruby
kylemcgill has quit [Remote host closed the connection]
joch_n has joined #ruby
blazes816 has joined #ruby
<Xethron> Hmmmmm.... I wish to count the amount of words in a string line.... I tried counting it with MySQL, but I did that looking for spaces... And if someone then adds 10 spaces inbetween words, it kinda fails. :P Or if someone adds a period/coma and no space, it also doesn't pick it up....
savage- has quit [Remote host closed the connection]
josefig has joined #ruby
josefig has quit [Changing host]
josefig has joined #ruby
<Xethron> But I thought about going way out and improving the a LOT
anothervenue has quit [Ping timeout: 250 seconds]
<Xethron> Counting for words in a dictionary....
<Xethron> So I'd download one of them english dictionary files... and then search how many valid words are in there...
<kaspernj> Xethron, shouldnt you be asking in the MySQL channel? What about using count of regex matches? http://www.sitepoint.com/forums/showthread.php?587599-Counting-regexp-matches-with-MySQL
<kaspernj> Xethron, use this regex I guess: /\s+/
<Xethron> kaspernj: I don't think MySQL could search for dictionary matches?
<Xethron> was thinking on doing it on the Ruby side....
<Xethron> And then just saving the result to MySQL on every query
<Xethron> Its a IRC bot...
anothervenue has joined #ruby
<Xethron> And it generates stats like, how many characters you used, and so forth.......
<kaspernj> Xethron, wouldnt you get a lot of overhead, because you would need to transfer from MySQL to Ruby? I think it would be better just counting it directly in MySQL and reading the result.
remmy444 has quit [Ping timeout: 248 seconds]
<Xethron> kaspernj: So adding the dictionary words to a MySQL table...
Guest____ has joined #ruby
<Xethron> hmmmmm, could work I guess
Guest____ is now known as jtallant
<kaspernj> Xethron, you wanted to count words, and you said you counted spaces before, but you problem was if there was 10 spaces in a row.
<kaspernj> Xethron, but if you want to do stats, then you properly need to drag Ruby into it :-)
<Xethron> kaspernj: Yes, or no spaces...like this...and thats also irritating,as some people do that:p
neku is now known as neku|away
<kaspernj> Xethron, res = db.query("SELECT...").fetch; words = res[:textcol].split(/\s+/)
<Xethron> oki
neku|away is now known as neku
<kaspernj> I guess you would have to strip dots, commas and so on as well.
<Xethron> ill try it
tayy has joined #ruby
<Xethron> bbl
<Xethron> need to run quicks
pooya72 has quit [Quit: pooya72]
dankest has quit [Ping timeout: 244 seconds]
sirdeiu has quit [Remote host closed the connection]
mockra has joined #ruby
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
Spooner has quit [Ping timeout: 246 seconds]
kaspernj has quit [Ping timeout: 248 seconds]
mengu has quit [Remote host closed the connection]
hmans has joined #ruby
schovi has quit [Remote host closed the connection]
ramblex has joined #ruby
qwerxy has joined #ruby
qwerxy has quit [Client Quit]
ryanf has joined #ruby
saschagehlich has joined #ruby
fayimora has quit [Read error: Connection reset by peer]
jgrevich has joined #ruby
fayimora has joined #ruby
pooya72 has joined #ruby
ipoval has quit [Quit: ipoval]
fayimora has quit [Read error: Connection reset by peer]
fayimora has joined #ruby
fartofagony has joined #ruby
<fartofagony> hi guys
<fartofagony> just a quick one: between python and ruby which is better when it comes to webserver programming?
<fartofagony> in your opinions
chson has quit [Remote host closed the connection]
artOfWar has joined #ruby
<apeiros_> fartofagony: obviously in our opinion ruby. otherwise we'd all hang out in #python.
williamcotton has quit [Ping timeout: 250 seconds]
ananthakumaran1 has quit [Quit: Leaving.]
artOfWar_ has joined #ruby
robotmay has quit [Remote host closed the connection]
<offby1> To me, "X hangs out in #ruby" does not imply "X considers ruby superior to python". Instead it implies "X uses ruby"
banghouse has joined #ruby
artOfWar has quit [Ping timeout: 244 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie> But both language can be used just as well for something like a webserver, so choosing one mostly depends on personal preferences
<Mon_Ouie> Which doesn't say anything about one being "superior" to the other
mockra has quit [Remote host closed the connection]
khakimov has joined #ruby
umttumt has quit [Remote host closed the connection]
BlasterBlade has joined #ruby
fbernier has quit [Ping timeout: 264 seconds]
kevinbond has quit [Quit: kevinbond]
pooya72 has quit [Quit: pooya72]
BlasterBlade has left #ruby [#ruby]
kaspernj has joined #ruby
<apeiros_> offby1: yes, it's a stupidly simplified answer to a stupidly simplified question. feel free to give a better one instead of bitching about given answers, though.
chson has joined #ruby
chson has quit [Remote host closed the connection]
<graspee> when someone comes on a channel called #ruby with a name like "fartofagony" and asking which is better ruby or python it's a wonder anyone takes them seriously at all
<apeiros_> ^ +1
<Yarou> i used to hang out in #python, but sometimes i time out so i go to the other one
philips has quit [Excess Flood]
bashdy has quit [Quit: bashdy]
Eldariof-ru has joined #ruby
philips has joined #ruby
trend has joined #ruby
trend has quit [Client Quit]
Tuxist has joined #ruby
blacktulip has joined #ruby
Tuxist has quit [Read error: Connection reset by peer]
schovi has joined #ruby
kaspernj has quit [Ping timeout: 240 seconds]
strnx has quit [Excess Flood]
tayy has quit [Remote host closed the connection]
neku is now known as neku|away
strnx has joined #ruby
ryanf has quit [Ping timeout: 248 seconds]
hmans has quit [Quit: Linkinus - http://linkinus.com]
d3c has quit [Read error: Connection reset by peer]
apok has joined #ruby
joch_n has quit [Remote host closed the connection]
lambdan has quit [Read error: Operation timed out]
Habib has quit [Remote host closed the connection]
snearch has joined #ruby
IrishGringo has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120614114901]]
igel_ has quit [Ping timeout: 245 seconds]
minijupe has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
jgrevich_ has joined #ruby
philips has quit [Excess Flood]
pooya72 has joined #ruby
tobago has joined #ruby
musee is now known as lae
cakehero has joined #ruby
JStoker has quit [Excess Flood]
tobago has quit [Remote host closed the connection]
philips has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
dcampano has joined #ruby
Ethan has joined #ruby
becomingGuru has joined #ruby
Adran has quit [Excess Flood]
twinturbo_ has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
<fartofagony> i was told by others that i should keep my questions short and simple
<fartofagony> and the opposite
twinturbo has quit [Ping timeout: 246 seconds]
twinturbo_ is now known as twinturbo
<fartofagony> i study c++, thats the language that introduced me to computer science. i am not a professional computer scientist.
Adran has joined #ruby
<fartofagony> i was googling after what language to start with
<fartofagony> before i started with c++
<fartofagony> python was the most suggested one
<fartofagony> i did not like it. it was not what i wanted to learn
<fartofagony> i learned that googling after answers is dangerours
<fartofagony> you can get mislead
<stenno> learn javascript for a fun time
IrishGringo has joined #ruby
<fartofagony> learning something you would not want to learn
gry has joined #ruby
<stenno> i guess you _want_ to learn ruby because programming ruby is fun
<fartofagony> so i joined your channel just to see what you would recomend
<fartofagony> or suggest
<fartofagony> or think
<fartofagony> between ruby and python
<stenno> how useful or useless it will be for your later life
<stenno> oh lol
<stenno> ruby
<stenno> what a question in #ruby
<fartofagony> and my nickname is my own business
<fartofagony> well
blazes816 is now known as blazes816_idle
<fartofagony> i know you will argue FOR ruby, i was just interested in what you thought were the benefits
<fartofagony> didnt think you would be hostile
jgrevich_ has quit [Quit: jgrevich_]
<yxhuvud> fartofagony: well, ruby and python is pretty similar on the surface, but quite a lot of the philosophy behind the languages are differing quite a bit.
Tulak has joined #ruby
JStoker has joined #ruby
Tulak has left #ruby [#ruby]
<fartofagony> what would be rubys strongest side?
<yxhuvud> blocks.
Spooner has joined #ruby
<yxhuvud> and a nonretarded way of doing OO.
<stenno> general OOP
<fartofagony> i just read a PDF that compared python and ruby, they seem to be identically good
<stenno> not as consequent OOP as in javascript, but still very concise and clear
<stenno> but, but, indentation for block delimiting sucks :<
<yxhuvud> javascript is consequent in OOP (or anything else for that matter)?!?
<fartofagony> the biggest con i noticed was its popularity in the job market/industry
<stenno> yes
<stenno> yxhuvud, a consequence of prototypal inheritance is that there are no classes as such
<yxhuvud> stenno: is that why there are three competing ways of doing oo in js?
<stenno> what?
<yxhuvud> new keyword usage or not etc.
<stenno> oh new
<stenno> new is an illusion
<siefca> I have a RSpec question: should my examples be real-life (generic, covering whole operation) or should I test one method per example?
<stenno> not illusion
Icoin has quit [Quit: Icoin]
<stenno> but its a bad expression because it implies that something gets instanciated from a class
<stenno> when in javascript, the 'classes' are instances themselves
<fartofagony> thanks guys, sorry for bothering, think i ll go for ruby an
<stenno> yay
<stenno> gogogo ruby
<fartofagony> for web based programming
<stenno> D:
mohits has quit [Ping timeout: 248 seconds]
<stenno> well on the server side ^^"
<stenno> its very easy
<stenno> try to write your own webserver!
<stenno> using TCPServer or something
ph^ has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
jimeh has quit [Ping timeout: 240 seconds]
plastics has quit [Ping timeout: 248 seconds]
31NABD042 has joined #ruby
<stenno> fartofagony, do you know what http
mpereira_ has quit [Quit: leaving]
<stenno> is?
liluo has quit [Remote host closed the connection]
<fartofagony> ahh
<fartofagony> just that it is used before www
<stenno> hihi ^^
<stenno> learn about http, and after that, learn ruby.
<fartofagony> honestly, i am a newbie at those subjects. just been writing basic c++ code for over a year
<stenno> you will get a hacker orgasm when switching from c++ to ruby :P
<fartofagony> sounds temptingg haha!
<stenno> look at this:
<stenno> bla = [1,2,3,4]
<stenno> bla.push 2
<stenno> bla.length
ph^ has quit [Ping timeout: 265 seconds]
* offby1 looks
mohits has joined #ruby
mohits has quit [Changing host]
mohits has joined #ruby
<fartofagony> nothing uncommon there
<stenno> you know, you now have [1,2,3,4,5,2]
fromhet has joined #ruby
<stenno> try to make that in c++
<offby1> what should I expect to see?
<offby1> Is there a tiger?
<fartofagony> where did the 5 come from?
<stenno> er - the 5
<offby1> I don't see a 5 in mine
artOfWar_ has quit [Read error: Connection reset by peer]
<offby1> maybe you somehow got the "push 2" and the "length" on the same line, so that you pushed both values
artOfWar has joined #ruby
<fartofagony> stenno: with vectors its as easy
<stenno> fartofagony, do this in c++ then:
<stenno> bla = [1]
<stenno> bla.push "hello"
<stenno> then you will get [1, "hello"]
<stenno> also those template stuff in C++ is scaru
<stenno> scary
<stenno> afaik it destroys turing completeness of C++
<stenno> (please correct me if i am wrong)
<stenno> and slows down compiling a lot
<stenno> no the turing completeness thing is wrong, disregard that
<stenno> ]
plastics has joined #ruby
ibash has joined #ruby
fayimora_ has joined #ruby
<graspee> how can templates in c++ destroy its turing completeness?!
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
<graspee> oh wait you already said sorry
qwerxy has joined #ruby
<fromhet> Hia! I am new to ruby, and programming in general and have ran into a silly problem that I can't seem to find an answer to on google. It's five lines of code and in some way, 'gets' gets in the way of things. Here is the code and the output I get: http://pastie.org/4183231 . What am I doing wrong?
<stenno> anyway what i wanted to say ofc you can do all the stuff in c++ that you can do in ruby too, its just a question to write 20 lines of strange-looking C++ code or one line of elegant ruby code
becomingGuru has quit [Quit: Leaving.]
<graspee> to be fair, it stops looking strange when you're used to it
<Yarou> templates are strange, but i can see the rationale behind implementing them
<Yarou> "strange", gotta stop using the s word :P
olrrai has joined #ruby
joch_n has joined #ruby
danishman has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<stenno> i guess that my example:
<stenno> <stenno> bla = [1]
<stenno> <stenno> bla.push "hello"
<stenno> <stenno> then you will get [1, "hello"]
JustinCampbell has quit [Remote host closed the connection]
<stenno> looks very strange in C++
digitalcakestudi has quit [Read error: Operation timed out]
<graspee> fromhet: it works fine for me
<stenno> maybe it looks better in C++11 or whatsitcalled
JustinCampbell has joined #ruby
apok has quit [Quit: apok]
dv310p3r has joined #ruby
<stenno> but you are correct, 'strange' is totally subjective :)
<Yarou> stenno: right, that looks normal to me :P
<Hanmac> fromlet whats your os and ruby version?
<stenno> Yarou, how would you implement that example in C++?
<fromhet> Hanmac macosx with ruby 1.9.3 (via rvm)
<Hanmac> stenno in c++ you need some kind of Any Object imo ...
<stenno> you don't even have Any in ruby, i think
<graspee> you wouldn't often want arbitrary types in a collection though, would you?
<stenno> no, its just a demonstrative example
<Hanmac> stenno: i dont mean in ruby, i mean you need it in C++
<stenno> Hanmac, well you might need it in ruby, too :)
<stenno> also there is kinda any with <T>
ryanf has joined #ruby
<stenno> maybe you would do a thingy, whatsitcalled
<stenno> enum or so
<graspee> no in the sense you need it here
<graspee> your example is putting 2 different types into one container
<stenno> yes
<graspee> a template won't let you do that
<fartofagony> stenno: ok tried something like std::vector<std::pair<int, std::string>> , but ran into a few problems. guess youre right :(
<stenno> not just T
<stenno> thats true
<fartofagony> or that i just suck at it
<stenno> sec, let me find an implementation, i remember it (this is C though)
<stenno> to be exact, K&R C :D
<graspee> it will be a union
td123 has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
larissa has joined #ruby
<graspee> but that's not an ideal way of doing it
Niamkik has quit [Quit: leaving]
<Hanmac> graspee wxWidgets and Ogre has any objects too, so its possible in some way to use them in a vector
<graspee> yes but it's not very neat or standard is it
snearch has quit [Quit: Verlassend]
<graspee> of course you can make a type which can contain various other things and then fill a container with it
<graspee> because the container still only has one type in it, your super containing various things type
burgestrand has joined #ruby
Emmanuel_Chanel has joined #ruby
seanstickle has quit [Quit: seanstickle]
ttilley has joined #ruby
mengu has joined #ruby
joch_n has quit [Quit: Leaving...]
ryanf has quit [Quit: leaving]
wallerdev has joined #ruby
ipoval has joined #ruby
baphled has joined #ruby
mpereira_ has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
myth17 has joined #ruby
QKO_ has joined #ruby
austinbv1 has joined #ruby
mpereira has quit [Remote host closed the connection]
mpereira_ has quit [Client Quit]
QKO has quit [Ping timeout: 264 seconds]
mpereira has joined #ruby
mwilson_ has quit [Excess Flood]
mwilson_ has joined #ruby
imami|afk is now known as banseljaj
jimeh has joined #ruby
bosphorus has quit [Remote host closed the connection]
punknology has joined #ruby
wallerdev_ has joined #ruby
wallerdev_ has quit [Client Quit]
wallerdev has quit [Read error: Operation timed out]
wallerdev has joined #ruby
fayimora_ has joined #ruby
joch_n has joined #ruby
<Xethron> Whats the easiest way to find out how many values are in a array?
mohits has quit [Read error: Connection reset by peer]
thomas is now known as ukukele
ukukele is now known as thomas
<Xethron> loop through it and +1?
<Xethron> or does ruby have some kinda counter...
<Spooner> arr.size
montox has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
montox has left #ruby [#ruby]
thomas is now known as ukulele
<Xethron> tx Spooner
<matled> banisterfiend: any comment regarding my issue for the local .pryrc? maybe I'll create a patch if you tell me your opinion on the way to solve this (https://github.com/pry/pry/issues/612)
fayimora has quit [Ping timeout: 264 seconds]
fayimora_ is now known as fayimora
<Spooner> Xethron : Please use something like pry or online docs for that sort of stuff. e.g. in pry: ls Array # Gives list of all methods.
<Xethron> pry? whats that?
ukulele is now known as thomas
hadees has joined #ruby
<Spooner> It is like irb, but better. "gem install pry" then "pry"
<Xethron> ok
<Spooner> Or use docs if you prefer: http://www.ruby-doc.org/core-1.9.3/Array.html
31NABD042 is now known as mafs
<fowl> matled, they dont often let issues go unnoticed
mpereira has quit [Quit: leaving]
<jsilver> w00t pry <3
<jsilver> we use pry standardly now
<jsilver> same w/ rvm
<fowl> matled, thats interesting i didnt know it loaded ./.pryrc
<Spooner> banisterfiend : promised me to send me less dodgy links if I advertise pry more :P
mpereira has joined #ruby
<fowl> Spooner, you: http://tinyurl.com/78kzwxl :p
<jsilver> lol
<stenno> def ls theclass; theclass.methods; end
Eldariof-ru has quit []
<fowl> there is a bit more to it than that
<Spooner> def parse_input(txt); do_what_user_wanted(txt); end
<jsilver> i have sublime, but i'm starting to luv redcar editor
<jsilver> even tho its less "coolsy"
<jsilver> plus, the new RM integration by Delisa can't be beat!
hemanth has quit [Read error: Connection reset by peer]
<TheMoonMaster> Vim forever/
chessguy has joined #ruby
<jsilver> never~
hemanth has joined #ruby
<jsilver> hehe
<jsilver> good thing about vim it never lags tho
<baphled> j #vim
<jsilver> i neeed muh gui tho
<chessguy> i'm trying to write some acceptance tests for a CLI program. i want to be able to simulate "puts" and "gets" and make assertions about the values. is popen or something my best bet?
<jsilver> no way
<TheMoonMaster> Macvim, gVim, etc.
<jsilver> haha
<jsilver> yea
<jsilver> maybe when RM support catches up Ill use ol Vim
jimeh has quit [Read error: Connection reset by peer]
<jsilver> write something to translate the C style bridesupport APIs into Ruby methods like in Redcar and i'll use vim.. doubt it will be as easy tho haha
jimeh has joined #ruby
<graspee> i still like eric
mikeric has joined #ruby
<TheMoonMaster> RM?
<jsilver> ruby motion
<TheMoonMaster> People are using that?
<jsilver> why wouldnt they
<jsilver> it works fine
<jsilver> i've made 1 app with it already that works great and has an interface made in IB
<jsilver> also been doin a lot of macruby experiments
pk1001100011 has quit [Remote host closed the connection]
<jsilver> MacRuby list reports 1.0 coming and ML support and Sandbox stuff
pk1001100011 has joined #ruby
<burgestrand> chessguy: you can reassign $stdin and $stdout to StringIO objects, and make your assertions on those
<chessguy> burgestrand: hmm, like the example ngautier gave of why the rspec book was so bad?
mikeric has quit [Client Quit]
<jsilver> rspec book ain't bad...
<burgestrand> chessguy: I have no idea why you mean, but here’s what I mean: http://codepad.org/gi9cERTq
mpereira has quit [Quit: leaving]
<jsilver> when i read it in pre-release it wasn't
mikeric has joined #ruby
<burgestrand> I also have no idea why I said why instead of what.
mpereira has joined #ruby
<burgestrand> Anyhow, that code trick also works for stdout
robotmay has joined #ruby
* burgestrand shrugs
mikeric has quit [Client Quit]
<jsilver> i'm more disgusted by the second blog post, but
<jsilver> it doesn't seem to discredit well-done BDD to me
<jsilver> though Mocking is more of a gray area, its not hard to understand y you'd do it
<chessguy> burgestrand: hmm. i'd like to be able to actually execute the whole program
saschagehlich has joined #ruby
<chessguy> jsilver: the discussion in the comments is my favorite part about that post, it became more congenial after a bit
<burgestrand> chessguy: I don’t see the problem, why can’t you?
<chessguy> burgestrand: i guess i'm not seeing how your example fits with that.
<jsilver> ah yes I see
<burgestrand> chessguy: all I tried to answer was how to feed stuff into gets, and read stuff off of puts/print :)
<burgestrand> I’m probably misunderstanding what you’re asking for
<chessguy> burgestrand: well, this is definitely good stuff, though
<Gavilan> chessguy: That guy is right, mocking is evil...
<chessguy> but i'm trying to do something like: popen("myprogram arg1 arg2") {|io| io.reads.should == "something" }
<chessguy> err, s/reads/read/
<graspee> mocking as in mocking up or mocking as in "your c++ skills are feeble! muhahahha!"
<Gavilan> graspee: both....
<graspee> oops ruby. wrong channel hehe
<graspee> "i forgot which language is the best in the world for a moment!"
<Gavilan> graspee: most people c++ skills are probably feeble in this channel....
<graspee> and most people's ruby skills in ##c++ are prolly feeble too
<Gavilan> graspee: probably...
<Gavilan> graspee: We should probably mate them, and see if something better comes out!!!
<chessguy> burgestrand: seems to fall apart when i want to do both reading and writing, though
<graspee> a programmer who knows and likes both c++ and ruby? unpossible (sic)
<Gavilan> graspee: I used to like C++ :)
<graspee> i still do
* Gavilan slaps graspee around a bit with a large trout
kaspernj has joined #ruby
<Gavilan> graspee: you need to come to your senses...
<graspee> but, but it's fast and portable!
<chessguy> graspee: so is ruby :)
<burgestrand> chessguy: ruby might open it in readonly by default
<Gavilan> graspee: I agree with that... But it's still ugly...
<burgestrand> also, I’m not sure if either party (ruby, or myprogram) requires the input/output to be closed between reads
<chessguy> burgestrand: yeah, i passed in the "r+" mode, for read-write, but it's still giving me a broken pipe
<burgestrand> chessguy: aw :(
<chessguy> burgestrand: http://codepad.org/JqEDz92p
<burgestrand> chessguy: I can’t stick around much more to investigate I’m afraid, 'm about to leave
Axsuul has joined #ruby
<chessguy> ok, well, thanks for the discussion
baphled has left #ruby [#ruby]
<Gavilan> Sorry about the out-of-topic posting, but given that there is no channel about software design... I've just created my first post in my new blog about Software Design... If you want to read it and give me feedback I'll greatly appreciate it... Thanks! http://talkingaboutsoftwaredesign.wordpress.com/
stenno has quit [Ping timeout: 250 seconds]
punknology has quit [Quit: Computer has gone to sleep.]
timonv has quit [Remote host closed the connection]
s0ber has quit [Read error: Connection reset by peer]
perryh_away is now known as perryh
s0ber has joined #ruby
jimeh has quit [Ping timeout: 246 seconds]
wubino has joined #ruby
<wubino> what is the ruby marshalling library called?
<apeiros_> Marshal
<apeiros_> I know, totally surprising :-p
<apeiros_> (granted, Serialize would've been even more surprising)
<fromhet> Hey, remember that I was wondering why gets was misbehaving when I used it in combination with argv (http://pastie.org/4183231)? For you who worry about my well-being (thanks), it worked when I used 'key = $stdin.gets.chomp' instead of merely 'gets.chomp'. So now my little project works our :)
<wubino> apeiros_: is there a persistent data store for marshalled objects (ala shelve in python)?
<fromhet> Apparently me spelling skills still aren't doing the same.
<apeiros_> wubino: you can save it to a file
<graspee> fromhet: i don't know why it didn't work with just gets though
<graspee> it did for me
<apeiros_> if you mean something else, specify your requirements
<wubino> is there a Db for marshaled objects?
<Spooner> fromhet pstore
<Spooner> Oops, I meant wubino
<apeiros_> fromhet: yes, that's because Kernel#gets (the plain `gets`) is actually ARGF.gets, and not $stdin.gets
croz has joined #ruby
<apeiros_> and ARGF.gets treats every argument passed to the script (to be more precise: every item still in ARGV) as a file and reads from them in order before going on to $stdin
<fromhet> graspee: as apeiros says, gets is really ARGF.gets, not $stdin.gets if not specified.
<apeiros_> so either you clear out ARGV before starting to use `gets` or you use `$stdin.gets` (as you did)
<fromhet> apeiros: yup. Thanks :)
<apeiros_> wubino: sure, you can store your serialized stuff in a file, in mysql, in sqlite, in mongodb, in postgres, in oracle, in db2…
<apeiros_> whatever you fancy.
bosphorus has joined #ruby
<Spooner> I think pstore looks to be the same as python's shelve though.
<graspee> i wonder why it works for me though, fromhet
<wubino> I am developing just simple stuff, no need to get enterprisee or hip
<graspee> is it a difference in our ruby setups?
<wubino> A CSV db would work fine
<graspee> oh wait. i didn't call the script with an argument
<graspee> that explains it. duh
<fromhet> graspee: are you sure you have something in your ARGV? i.e 'ruby script.rb "some text"'
<graspee> hehe
Bonkers has joined #ruby
akem has quit [Ping timeout: 252 seconds]
ph^ has joined #ruby
MarcWeber has joined #ruby
chson has joined #ruby
morfin has joined #ruby
morfin has left #ruby [#ruby]
dipnlik has joined #ruby
jimeh has joined #ruby
<dipnlik> hi. i'm editing a script that uses @output = STDOUT and @output.puts for every message it wants to print on screen. what's the easiest way to dump @output to a file at the end of the script?
plastics has quit [Ping timeout: 244 seconds]
pooya72 has quit [Ping timeout: 265 seconds]
myth17 has quit [Quit: Leaving]
<graspee> you need to collect the lines you print, surely
twinturbo has quit [Quit: twinturbo]
<graspee> make output a little class with an array in it or something and a puts method that puts to stdout and also pushes the message onto the array
akem has joined #ruby
<graspee> then have another method you call at the end of the program which goes through the array and puts the lines in it to a file
<Hanmac> dipnlik you could look at reopen
sepp2k1 has joined #ruby
redgetan has quit [Quit: This computer has gone to sleep]
sepp2k has quit [Ping timeout: 264 seconds]
ghanima has joined #ruby
<dipnlik> Hanmac: i'm trying File.open('dump.txt', 'w') do {|f| f.reopen(@output); f.readlines} but the reopen line errors with IOError: not opened for reading. ideas?
<dipnlik> graspee: i'll take a shot at your idea, thanks
<Hanmac> i thought about this: STDOUT.reopen('dump.txt')
<Tasser> dipnlik, reopen(@output, 'w')
chson has quit [Remote host closed the connection]
lambdan has joined #ruby
rippa has quit [Ping timeout: 252 seconds]
flori has quit [Ping timeout: 246 seconds]
ph^ has quit [Remote host closed the connection]
robotmay has quit [Remote host closed the connection]
ph^ has joined #ruby
minijupe has quit [Quit: minijupe]
<wubino> how do I code: [if ruby version < 1.9: require ruby gems ]
goodieboy has joined #ruby
goodieboy has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
ph^ has quit [Ping timeout: 264 seconds]
joch_n has quit [Quit: Leaving...]
Markvilla has joined #ruby
slicslak has joined #ruby
<Spooner> begin; require 'rubygems'; rescue LoadError; end # lazy ;)
<Tasser> should do
demet8 has joined #ruby
virunga has quit [Quit: Sto andando via]
<Spooner> Though there is no harm in re-requiring it, wubino. Require only ever runs once (load works every time though).
Markvilla has quit [Client Quit]
wargasm has joined #ruby
kevinbond has joined #ruby
<dipnlik> isolated the reopen test case in a simple script, but still can't make it work as expected, any help would be appreciated https://gist.github.com/5c353d4bcbb564a7a8ca
mikeric has joined #ruby
chson has joined #ruby
apok has joined #ruby
EstanislaoStan has joined #ruby
digitalcakestudi has joined #ruby
<chessguy> can anyone explain to me why this gives a broken pipe? myprogram does nothing but print something to stdout. http://codepad.org/JqEDz92p
jianxioy has quit [Quit: leaving]
dsa has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
flowerha_ has joined #ruby
<wubino> how do I list the files in a directory?
<Mon_Ouie> Dir.entries
khakimov has joined #ruby
<wubino> i tried Dir.foreach("/folder") do ; |f| puts f; end
<Mon_Ouie> chessguy: IO#read already reads everything until EOF
denstark has joined #ruby
<wubino> Dir.entries worked alot better
jamesaxl has quit [Ping timeout: 252 seconds]
<chessguy> Mon_Ouie: oh. how do i just read to a newline?
<Mon_Ouie> #gets
jamesaxl has joined #ruby
yxhuvud has quit [Ping timeout: 245 seconds]
EzeQL has quit [Ping timeout: 248 seconds]
Guest45702 has joined #ruby
<denstark> Hello, I was wondering if anyone could kindly help me understand something to do with strings (learning ruby for the first time through rubykoans) -- doing string concatenation, the shovel operator modifies the original string but += does not... to me it seems like this functionality (creating a new object instead of just a pointer) should be done in assignment, or am I not understanding it? link to code: https://gist.github.com/3fc
<chessguy> Mon_Ouie: ahhhh, so read closes the pipe after it finishes or something?
<Spooner> denstark : bad link
ph^ has joined #ruby
<Mon_Ouie> Well, when it returns, it means the program closed its output — and it's likely that it's not even running anymor
<Hanmac> denstark forget everything you think to know about pointers ... ruby itself does not have any kind of pointers (we dont need them)
seanstickle has joined #ruby
<Spooner> It is because a += b is just sugar for a = a + b, whereas << is a method in a that thus allows appending.
CheeToS has quit [Ping timeout: 250 seconds]
<denstark> Hrm.. Spooner link still not working for you? Seems to work fine in a couple different browsers
dipnlik has quit [Read error: Connection reset by peer]
<Spooner> denstark : I see https://gist.github.com/3fc
<denstark> Ah, it must have gotten cut off
<Spooner> I assume it got chopped by IRC
<denstark> How's that? :)
<Spooner> fine
ph^_ has joined #ruby
<Paradox> is there any non-blocking way in ruby to emulate javascript's setInterval?
<Paradox> i'm trying to fix up alangilbert's ttfm ruby api
fantazo has joined #ruby
<Hanmac> what does setInterval do?
<Paradox> runs a method every x interval
qwerxy has quit [Quit: offski]
ph^ has quit [Ping timeout: 264 seconds]
<Paradox> ie setInterval(herp, 1000) runs herp every second
<Spooner> A thread with 'sleep 1; herp' in it?
<fowl> are you asking how to set up a timer? -_-
<Paradox> no
<Paradox> its a bit more complex
<Paradox> let me link the source code
<Paradox> i normally would do a loop with exactly that Spooner
<Paradox> (i didnt write this, i'm just getting it into a working state)
yannis has joined #ruby
ph^_ has quit [Remote host closed the connection]
yannis has quit [Client Quit]
<Hanmac> denstark: your third test is original_string == "Hello, World" because the object gets modified
ph^ has joined #ruby
ipoval has quit [Quit: ipoval]
schovi has quit [Remote host closed the connection]
<denstark> Hanmac: so hi = original_string does not make hi a copy of original_string, but references it directly?
croz has quit [Quit: Leaving]
<Spooner> Yes, you'd use hi = original_string.dup to make an actual copy.
<denstark> aha! I see. interesting :) thanks for clearing that up
<fowl> denstark, arrays act the same way, compare a = []; b= a; b << 4; puts a, b to a = []; b = a; b += [1]; puts a, b
<Spooner> fowl: Everything works the same way :)
<Paradox> sigh, i really wish he wrote this using eventMachine
<Paradox> ah well
n1x has quit [Quit: Ex-Chat]
<Paradox> maybe i'll rewrite it one day to do so
dipnlik has joined #ruby
<denstark> Sounds like this could very easily trip me up... is it a common thing to do object.dup when creating copies? aka, is it something that comes up a lot in common usage of ruby?
ph^ has quit [Ping timeout: 264 seconds]
_md has joined #ruby
chessguy has quit [Remote host closed the connection]
<fowl> denstark, depends on the programming style, application needs etc, im not an avid dupper myself
<denstark> I see :) I'm a sysadmin, mostly familiar with bash/perl (not very advanced things though) so trying to broaden my horizons, just want to make sure to pay attention to some big differences
Ethan has quit [Quit: *poof*]
chessguy has joined #ruby
<wubino> i am iterating an array: array.each { |item| puts item}
<Spooner> If you need a copy, then dup is quite normal. You don't need one too often though.
cheese1756 has quit [Changing host]
cheese1756 has joined #ruby
<wubino> how can I add a line between the items? (its being printed to a webpage)
crm11four has joined #ruby
<Tasser> wubino, #rubyonrails
<fowl> puts item; puts '-' * 80
<crm11four> hello!
Markvilla has joined #ruby
<fowl> oh web pages n such
<wubino> Tasser: I am using sinatra
<Spooner> Nah, Sinatra!
<crm11four> does anyone know how to split this text into an array of each of it's speakers? http://neolab.stat.ucla.edu/cranstats/repub_debate.txt
<crm11four> its*
<crm11four> like "GREGORY:", "ROMNEY:" and so on
Ethan has joined #ruby
<fowl> crm11four, what are we starting the bidding at
<denstark> fowl, Spooner Thanks for your help
<crm11four> fowl what bidding?
<Spooner> wubino: You shouldn't be using puts in Sinatra though
<Tasser> crm11four, we can't, however, help you filtering out all the bullshitting ;-)
bglusman has joined #ruby
zastaph has quit []
<wubino> Spooner: use print instead?
ipoval has joined #ruby
<wubino> Its just a trivial static page
Ethan has quit [Client Quit]
<Tasser> crm11four, www.rubular.com and /^([A-Z]):/ might solve that
<Spooner> No, what are you using? HAML, slim, erb?
Ethan has joined #ruby
<Spooner> Printing/putsing would go to the console, not the webpage.
<Spooner> And it is, by definition, not a static page, if you are hosting it on Sinatra and generating it with code (#each and such).
<wubino> Spooner: Nothing yet, erb eventually
khakimov has quit [Quit: Computer has gone to sleep.]
schovi has joined #ruby
blacktulip has quit [Remote host closed the connection]
ipoval has quit [Client Quit]
<wubino> Spooner: Its just text on a html view, do i need to puts <b> ?
havenn has quit [Remote host closed the connection]
<wubino> Spooner: Its just text on a html view, do i need to puts <p> ?
<Spooner> Please, please, don't puts. Learn something easy to make your life 100x easier: http://slim-lang.com/
EstanislaoStan has quit [Ping timeout: 245 seconds]
<Spooner> And save your typing fingers :)
manizzle has joined #ruby
Juul has joined #ruby
<wubino> Spooner: do I link to the slim doc or is it put inline with the rest of the sinatra code?
tvw has quit [Remote host closed the connection]
khakimov has joined #ruby
<dipnlik> Spooner: never used slim but i used haml a bit and liked it. do you like slim better than haml? if so, why?
<Spooner> It is a separate document (.slim). HAML/erb/markdown/whatever would be fine too; I was just suggesting the flavour of the month.
Habib has joined #ruby
<fowl> Spooner, i thought that sinatra inlined all the templates and such now
<Habib> hey. did anyone try sublime text? is it free?
<wubino> Good enough, I am flavour agnostic this month
<daed> it's free to try yes
<daed> i like sublime
<daed> i've been using the evaluation copy
<canton7> habib, lovely editor. free trial - just bugs you occasionally when you try to save
<Spooner> dipnlik : I only use haml, to tell the truth, but only because Rubymine doesn't highlight it. Apparently it is an order of magnitude faster to process than HAML and is pretty much the same to use.
<daed> it's almost good enough to buy
<daed> i'm close to buying it
<canton7> same. especially now 2.0 is out
<daed> $59 seems a little steep though
<daed> for a text editor
<Habib> canton7, do u use vim?
cakehero has quit [Quit: Leaving...]
<Habib> anyone use vim?
<canton7> habib, yeah, when I'm using cli. I'm not too versed in it though
<wubino> RE: text editors, Scite or Gedit free and great enough
<wubino> Vim too
<Habib> canton7, versed?
<dipnlik> daed: $59 for a tool you'll use 40hours a week? I say not-steep (but i'm a textmate user myself)
Markvilla has quit [Quit: Markvilla]
<canton7> habib, I only know a handful of the keystrokes
<wubino> Vim kicks my ass though and my confidence gets bruised
<Spooner> fowl I haven't used Sinatra much; mainly just for a RestClient (I use nanoc for my website, and host at github).
<daed> dipnlik: i end up using vim 90% of the time though
<daed> and sublime the other 10%
<daed> that's why it's hard to justify
<canton7> just wait 'till xmas, then buy it as a present to yourself :P
<dipnlik> daed: oh i see
<daed> i could see myself moving toward sublime more if it was a bit cheaper
<daed> i partially blame it on my lack of learning vim file navigation plugins
GravenHearth has joined #ruby
<wubino> is there a virtual env for vim?
demet8 has quit [Quit: demet8]
<wubino> Too many plugins has done me in one to many times
<wubino> Perhaps I could jsut create a new user per environment
<Spooner> fowl : Oh right, inlined indeed! I should do some more slim :) http://ididitmyway.heroku.com/past/2011/3/28/sinatra_gets_slim/
dsa has quit []
EzeQL has joined #ruby
dv310p3r has quit [Ping timeout: 246 seconds]
ipoval has joined #ruby
joch_n has joined #ruby
<graspee> i think whatever editor you use for major coding there is a need for a fast editor that opens up right where you are working, in the terminal
<wubino> Spooner: How do I put one array item per line in slim?
wallerdev has quit [Quit: wallerdev]
deryl has quit [Quit: deryl]
<Habib> does anyone use VIM?
<seanstickle> Most people
wallerdev has joined #ruby
<Habib> .join #vim
<Spooner> Most people who use VIM use VIM.
williamcotton has joined #ruby
<Spooner> wubino : http://pastie.org/4184118
jhunter has quit [Ping timeout: 246 seconds]
jhunter has joined #ruby
<wubino> Spooner: is there a ruby webserver that does auto reload of pages per request?
<wubino> Just for development
<Spooner> What do you mean? Oh, they mostly do.
<apeiros_> I think he means full code reload
kapowaz has quit [Quit: Connection closed for inactivity]
<apeiros_> and then rails is one that does, sinatra kicked it out
<apeiros_> yupp, and that :)
<apeiros_> wubino: note that code reloading is not without issues.
balki_ has joined #ruby
<canton7> in sinatra, and I suspect rails as well, views will always auto-reload (unless you have some sort of caching configured)
balki has quit [Read error: Operation timed out]
cdepue has quit [Remote host closed the connection]
<wubino> Sinatra and Rails use webbrick out of the box
<apeiros_> canton7: ah well yes, he may very well just have meant template reloading
ixti has quit [Quit: So Long, and Thanks for All the Fish!]
sei has joined #ruby
indeterminate has quit [Read error: Connection reset by peer]
apok has quit [Quit: apok]
neku|away is now known as neku
sailias has quit [Quit: Leaving.]
jsilver has quit [Remote host closed the connection]
ebanoid has quit []
king313 has joined #ruby
king313 has quit [Changing host]
king313 has joined #ruby
Chryson has quit [Quit: Leaving]
fayimora has quit [Quit: Be back in a gifii]
trend has joined #ruby
Juul has quit [Ping timeout: 246 seconds]
Icoin has joined #ruby
havenn has joined #ruby
<GravenHearth> ^^
MarcWeber has quit [Quit: Lost terminal]
larissa has quit [Quit: Saindo]
olrrai has quit [Quit: Saliendo]
Habib has quit [Ping timeout: 246 seconds]
schovi has quit [Remote host closed the connection]
banseljaj is now known as imami|afk
joch_n has quit [Quit: Linkinus - http://linkinus.com]
wubino has quit [Remote host closed the connection]
chrisg has quit [Ping timeout: 246 seconds]
Ethan has quit [Quit: *poof*]
Guest45702 has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
Ethan has joined #ruby
olrrai has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
apok has joined #ruby
Progster has joined #ruby
seanstickle has quit [Quit: Nihil sub sole novum]
fromhet has quit [Read error: Connection reset by peer]
fromhet has joined #ruby
sailias has joined #ruby
fromhet has quit [Read error: Connection reset by peer]
fromhet_ has joined #ruby
nari_ has joined #ruby
pvh has joined #ruby
EstanislaoStan has joined #ruby
joshcheek has joined #ruby
fridim_ has quit [Ping timeout: 244 seconds]
monkegjinni has quit [Remote host closed the connection]
<EstanislaoStan> Is there a command that lists all the gems currently installed?
<dipnlik> gem list
hemanth has quit [Read error: Connection reset by peer]
<EstanislaoStan> Thanks!
<EstanislaoStan> I should have looked harder.
hemanth has joined #ruby
CheeToS has joined #ruby
pk1001100011 has quit [Quit: I've got a feeling there's a fish in the floor; I'd better squish it or he'll swim out the door; Sometimes they take me for a walk in the sun; I see my fish and I have to run]
apeiros_ has quit [Remote host closed the connection]
trend has quit [Quit: trend]
marcoshack has joined #ruby
affix has quit [Excess Flood]
marcoshack has quit [Remote host closed the connection]
maletor has joined #ruby
kirun has quit [Quit: Client exiting]
[Neurotic] has joined #ruby
affix has joined #ruby
neglesaks has joined #ruby
_md has quit [Quit: Leaving...]
GravenHearth has quit []
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
trend has joined #ruby
ryanf has joined #ruby
rakm has quit [Ping timeout: 246 seconds]
jameshyde has joined #ruby
GravenHearth has joined #ruby
cdepue has joined #ruby
blazes816_idle has quit [Quit: Leaving]
lkba has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
AlienElite has joined #ruby
AlienElite has quit [Client Quit]
darthdeus has quit [Quit: Leaving...]
darthdeus has joined #ruby
binaryplease has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
AlienElite has joined #ruby
trend has quit [Quit: trend]
freeayu has joined #ruby
heftig has quit [Quit: leaving]
heftig has joined #ruby
chessguy has quit [Remote host closed the connection]
tewecske has quit [Quit: Leaving.]
chessguy has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
* GravenHearth slaps AlienElite around a bit with a large trout
Alien_Elite has joined #ruby
dipnlik has left #ruby [#ruby]
chessguy has quit [Read error: Connection reset by peer]
Vendethiel has quit [Quit: je ne suis plus là, tqvu]
sailias has joined #ruby
deryl has joined #ruby
king313 has quit [Remote host closed the connection]
austinbv1 has quit [Ping timeout: 246 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
darthdeus has quit [Quit: Leaving...]
emmanuelux has joined #ruby
darthdeus has joined #ruby
pk1001100011 has joined #ruby
ryanf has quit [Ping timeout: 265 seconds]
kylemcgill has joined #ruby
havenn has quit [Remote host closed the connection]
cuppsy has quit [Ping timeout: 265 seconds]
dkissell_ has joined #ruby
crm11four has quit [Quit: Ex-Chat]
dkissell has quit [Ping timeout: 255 seconds]
dkissell_ is now known as dkissell
sailias has quit [Ping timeout: 246 seconds]