apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p327: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
x82_nicole has quit [Quit: Computer has gone to sleep.]
_nitti has quit [Ping timeout: 260 seconds]
lolcathost is now known as Playground
mathie has joined #ruby
xyzodiac has joined #ruby
nari has quit [Ping timeout: 246 seconds]
tommyvyo_ has joined #ruby
snorkdude has joined #ruby
jlwestsr has quit [Ping timeout: 246 seconds]
tomsthumb has quit [Quit: Leaving.]
mathie has quit [Ping timeout: 252 seconds]
ircmouser has joined #ruby
awarner has joined #ruby
savage- has joined #ruby
skattyadz has joined #ruby
jeffreybaird has joined #ruby
Michael_ has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
everdaniel has joined #ruby
ryanlecompte has quit [Ping timeout: 252 seconds]
sn0wb1rd has joined #ruby
Xeago has joined #ruby
krisfremen has quit [Ping timeout: 255 seconds]
krisfremen has joined #ruby
ircmouser has quit [Quit: i]
hsbt_away is now known as hsbt
slainer68 has joined #ruby
tomsthumb has joined #ruby
jlwestsr has joined #ruby
matchaw__ has quit [Ping timeout: 244 seconds]
cakehero has joined #ruby
lenovodroid has quit [Ping timeout: 255 seconds]
ABK has quit [Ping timeout: 248 seconds]
forced_request has joined #ruby
brandon has quit [Read error: Connection reset by peer]
thinkdevcode has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
F1skr has quit [Quit: WeeChat 0.3.9.2]
cek has quit [Ping timeout: 276 seconds]
krisfremen has quit [Ping timeout: 260 seconds]
murton has joined #ruby
<murton> is downloading ruby gems from rubyforge broken for everyone?
<murton> any other mirrors?
BiHi has quit [Read error: Connection reset by peer]
cakehero has quit [Quit: Computer has gone to sleep.]
BiHi has joined #ruby
mybrainis404 has quit [Ping timeout: 248 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
tr4656 has quit [Ping timeout: 240 seconds]
krisfremen has joined #ruby
krisfremen has quit [Changing host]
krisfremen has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
nateberkopec has quit [Quit: Leaving...]
_alejandro has joined #ruby
jenrzzz has joined #ruby
sn0wb1rd_ has joined #ruby
tr4656 has joined #ruby
sn0wb1rd has quit [Ping timeout: 260 seconds]
sn0wb1rd_ is now known as sn0wb1rd
Juul has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
murton has left #ruby ["Konversation terminated!"]
snorkdude has quit [Quit: snorkdude]
krisfremen has quit [Ping timeout: 264 seconds]
moted has quit [Ping timeout: 246 seconds]
wargasm has quit [Ping timeout: 240 seconds]
thone_ has joined #ruby
krisfremen has joined #ruby
krisfremen has quit [Changing host]
krisfremen has joined #ruby
snorkdude has joined #ruby
thone has quit [Ping timeout: 260 seconds]
X-Jester has joined #ruby
u89 has quit [Remote host closed the connection]
x77686d has quit [Ping timeout: 255 seconds]
elkclone has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
seanstickle has joined #ruby
yshh has quit [Remote host closed the connection]
kbeddingfield has quit [Remote host closed the connection]
snorkdude has quit [Quit: snorkdude]
elaptics is now known as elaptics`away
ninegrid has quit [Ping timeout: 246 seconds]
jjang has quit [Remote host closed the connection]
froy has quit [Quit: kablam!]
grzywacz has quit [Quit: :wq]
jrist is now known as jrist-afk
ryanf has quit [Ping timeout: 256 seconds]
byennen has joined #ruby
jds_ has quit [Remote host closed the connection]
jeffreybaird has joined #ruby
icole has quit [Remote host closed the connection]
skattyadz has quit [Quit: skattyadz]
jeffreybaird has quit [Client Quit]
shtirlic_ has joined #ruby
byennen has quit [Ping timeout: 246 seconds]
jds_ has joined #ruby
Xeago has quit [Remote host closed the connection]
shtirlic has quit [Read error: Connection reset by peer]
jds_ has quit [Remote host closed the connection]
shtirlic has joined #ruby
jgrevich_ has joined #ruby
savage- has quit [Remote host closed the connection]
emmanuelux has joined #ruby
ryanlecompte has joined #ruby
jgrevich has quit [Ping timeout: 255 seconds]
jgrevich_ is now known as jgrevich
jeffreybaird has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
mpereira has quit [Remote host closed the connection]
shtirlic_ has quit [Ping timeout: 264 seconds]
g-ram has joined #ruby
tomsthumb has quit [Quit: Leaving.]
tommyvyo has quit [Quit: Computer has gone to sleep.]
joeycarmello has quit [Remote host closed the connection]
apok has quit [Ping timeout: 244 seconds]
mathie has joined #ruby
havenn has quit [Remote host closed the connection]
freeayu has joined #ruby
frem has joined #ruby
fyolnish has joined #ruby
tommyvyo has joined #ruby
apok has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
g-ram has quit [Ping timeout: 264 seconds]
bbttxu has joined #ruby
sepp2k1 has quit [Remote host closed the connection]
_nitti has joined #ruby
jipiboily has joined #ruby
mpereira has joined #ruby
freezway has joined #ruby
mathie has quit [Ping timeout: 255 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
wmoxam has quit [Remote host closed the connection]
yshh has joined #ruby
_nitti has quit [Ping timeout: 246 seconds]
ffranz has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
carlyle has joined #ruby
gridaphobe has joined #ruby
tomsthumb has joined #ruby
dv_ has quit [Read error: Operation timed out]
dv_ has joined #ruby
byennen has joined #ruby
frem has quit [Quit: Computer has gone to sleep.]
davidcelis has quit [Quit: K-Lined.]
g-ram has joined #ruby
<lindenle> If I am working on a module where do i put a require?
dakine has left #ruby ["Leaving"]
daro_ has joined #ruby
bjeanes has quit [Quit: quitting]
nga4 has joined #ruby
tils has quit [Quit: ZNC - http://znc.sourceforge.net]
mrsolo has quit [Quit: Leaving]
tils_ has joined #ruby
enroxorz-work has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
frem has joined #ruby
snorkdude has joined #ruby
daro_ has quit [Client Quit]
bjeanes has joined #ruby
<swarley> lindenle; what do you mean
machty has quit [Quit: machty]
emmanuelux has quit [Remote host closed the connection]
mengu_ has quit [Remote host closed the connection]
jimeh has quit [Quit: Computer has gone to sleep.]
tyfighter has quit [Quit: tyfighter]
tjbiddle_ has joined #ruby
tjbiddle_ has quit [Client Quit]
reset has quit [Quit: Leaving...]
tjbiddle has quit [Ping timeout: 246 seconds]
ner0x has joined #ruby
<ner0x> Is there an easy way to convert 1231231234123 into 123-123-1234 x1234?
thone_ has quit [Ping timeout: 240 seconds]
<swarley> what
<swarley> i don't see your second 1234
<ner0x> Whoops. Missed the trailing 4.
ninegrid has joined #ruby
<ner0x> Actually, I might have found my answer.
stephenjudkins has joined #ruby
thone has joined #ruby
<heftig> "12312312341234".sub(/\A(...)(...)(.{4})(.{4})\z/, "\\1-\\2-\\3 x\\4")
ossareh has quit [Ping timeout: 246 seconds]
<swarley> sstr = str.split(//, 4); jstr = sstr[0..2].join(?-
<swarley> errr
<ner0x> Yeah, just saw that. What if anything after 10 digits was optional?
<swarley> premature enter
<swarley> sstr = str.split(//, 4); jstr = sstr[0..2].join(?-) + sstr[3]
Playground is now known as lolcathost
<swarley> also '-', 1.9 habit
slainer68 has quit [Remote host closed the connection]
<swarley> also i messed up
<swarley> Lol
headius has joined #ruby
<swarley> Just forget me, I'm dealing with other things. Let someone with fewer processes help you correctly
jipiboily has left #ruby [#ruby]
headius has quit [Client Quit]
nari has joined #ruby
ionte has quit [Read error: Operation timed out]
Bidness has joined #ruby
joppe has quit [Ping timeout: 246 seconds]
<heftig> ner0x: "12312312341234".sub(/\A(...)(...)(.{4})(.*)\z/) { "#{$1}-#{$2}-#{$3}" + ($4.empty? ? "" : " x#{$4}") }
Bidness has quit [Remote host closed the connection]
byennen has quit [Remote host closed the connection]
FDj has quit [Quit: leaving]
lampe21 has joined #ruby
tchebb has quit [Quit: ZNC - http://znc.in]
<heftig> ner0x: or "12312312341234".sub(/\A(...)(...)(.{4})/, "\\1-\\2-\\3 x").chomp(" x")
tchebb has joined #ruby
<ner0x> heftig: I rather like the first example
tommyvyo has quit [Quit: Computer has gone to sleep.]
byennen has joined #ruby
brianpWins has quit [Quit: brianpWins]
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
kbeddingfield has joined #ruby
atmosx has quit [Ping timeout: 276 seconds]
lampe2 has quit [Ping timeout: 264 seconds]
LouisGB has quit [Ping timeout: 260 seconds]
atmosx has joined #ruby
kbeddingfield has quit [Ping timeout: 244 seconds]
tbrock_ has joined #ruby
Drager has quit [Ping timeout: 246 seconds]
blazes816 has quit [Quit: blazes816]
Bosma has joined #ruby
nkts_ has quit []
FDj has joined #ruby
LucidDreamZzZ has quit [Remote host closed the connection]
davidcelis has joined #ruby
syamajala has joined #ruby
rippa has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
ryanf has joined #ruby
Michael_ has joined #ruby
Aiur has joined #ruby
mathie has joined #ruby
ttt has joined #ruby
jrajav has joined #ruby
Hanmac has quit [Ping timeout: 255 seconds]
froy has joined #ruby
slainer68 has joined #ruby
generalissimo has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 260 seconds]
mathie has quit [Ping timeout: 245 seconds]
jeffreybaird has quit [Quit: jeffreybaird]
chimkan_ has quit [Quit: chimkan_]
LucidDreamZzZ has joined #ruby
bricker_ has joined #ruby
rdctnst has joined #ruby
joeycarmello has joined #ruby
danktamagachi has joined #ruby
kbeddingfield has joined #ruby
Ontolog has quit [Quit: Ontolog]
bricker has quit [Ping timeout: 246 seconds]
aeontech has quit [Ping timeout: 246 seconds]
slainer68 has quit [Ping timeout: 260 seconds]
bricker_ has quit [Ping timeout: 260 seconds]
joeycarmello has quit [Ping timeout: 246 seconds]
krisfremen has quit [Read error: Operation timed out]
nateberkopec has joined #ruby
lukeholder has joined #ruby
kbeddingfield has quit [Ping timeout: 260 seconds]
<the_jeebster> I'm using this to search and remove periods from a file, but the changes are not being written to the file. any ideas?
<the_jeebster> f.each_line { |line| line.gsub('.', '') }
<the_jeebster> and I'm performing this in a File.open r+
mercwithamouth has quit [Ping timeout: 245 seconds]
krisfremen has joined #ruby
mercwith1mouth has quit [Ping timeout: 255 seconds]
Hanmac has joined #ruby
syamajala has quit [Ping timeout: 240 seconds]
machty has joined #ruby
mneorr has quit [Remote host closed the connection]
nateberkopec has quit [Client Quit]
generalissimo has joined #ruby
<ner0x> Most normal way to find out if a string has anything in it? !'string'.empty? or 'string'.length
<reactormonk> ner0x, well, 'string'.length will be true in any case
voodoofish430 has quit [Quit: Leaving.]
<ner0x> Ah, so 0 is true in ruby. Good to know.
rdctnst has quit [Quit: Leaving]
<heftig> the_jeebster: you need something like this: https://gist.github.com/4152004
marknyc has joined #ruby
iamjarvo has quit [Quit: Computer has gone to sleep.]
<heftig> completely untested, by the way. i won't be surprised if it doesn't quite work
<reactormonk> ner0x, everything but nil and false
jeffreybaird has joined #ruby
<the_jeebster> gotta use puts to write back to file eh
<the_jeebster> shit, that didn't work
<reactormonk> ner0x, no magic grep { hash[$_]++ } as in perl ;-)
mercwithamouth has joined #ruby
<the_jeebster> heftig: I'll try that out. thanks.
<ner0x> reactormonk: Ouch. My perl hurts.
<reactormonk> ner0x, maybe, pulled that line from somewhere very dusty outta my hat
<ner0x> So, I'm still unsure what is strictly ruby and what is strictly rails.
gridaphobe has quit [Ping timeout: 246 seconds]
<reactormonk> ner0x, as soon as you have require 'active_*' or 'rails', you have RoR
<reactormonk> IIRC, RoR defines #blank?
machty has quit [Quit: machty]
jrabbit_ is now known as jrabbiy
<reactormonk> so you could go !string.blank?
<heftig> the_jeebster: test run ran fine here
jrabbiy is now known as jrabbit
rhys has joined #ruby
machty has joined #ruby
<ner0x> reactormonk: https://gist.github.com/4152018 I know it's rails code but I think my issue is rails independent.
<reactormonk> ner0x, I don't see the logic in that
<reactormonk> why don't you just go c.mobile_number = nil
<the_jeebster> heftig: that works. what are the ~nop options?
mercwith1mouth has joined #ruby
<heftig> the_jeebster: not options
<heftig> the_jeebster: just a second file you're writing
<the_jeebster> ah
ikaros has quit [Quit: Ex-Chat]
<ner0x> reactormonk: You got it. That would make more sense.
<reactormonk> ner0x, I would understand if you'd remove non-numbers...
<reactormonk> ner0x, err wait, that's what \D does
<reactormonk> ner0x, adjust that comment
<ner0x> reactormonk: To make you sound more smart-like-stuff ?
* ner0x does so.
lampe21 has quit [Remote host closed the connection]
aeontech has joined #ruby
RPlasmid has joined #ruby
lampe2 has joined #ruby
yourmysin has joined #ruby
machty has quit [Client Quit]
<reactormonk> ner0x, what should 12 -> 18 do exactly?
ryanlecompte has quit [Remote host closed the connection]
<ner0x> reactormonk: Before validation, it strips it of all non-digits. Which if it is 10+ digits, it passes.
apok has quit [Remote host closed the connection]
<the_jeebster> heftig: so the output formatting is kinda funky. perhaps I need to be reading each character instead?
<the_jeebster> they look like this pre-format: 4.3.229.109,4.3.229.109
<the_jeebster> just trying to remove the octet notation
lampe2 is now known as lampe2_afk
apok has joined #ruby
<heftig> the_jeebster: what is it supposed to look like?
<the_jeebster> 43229109,43229109
<the_jeebster> just integers
aeontech has quit [Client Quit]
<reactormonk> ner0x, and you don't want it to throw errors when there is no number? Go on and use #try
<heftig> and what does it look like?
<the_jeebster> well I just deleted the copy since it looked all whack
<the_jeebster> line splits halfway through
forced_request has quit [Ping timeout: 256 seconds]
<ner0x> reactormonk: It will throw an error if there are no numbers.
<the_jeebster> I'll try it again and see if I get any different outpu
Michael_ has quit [Remote host closed the connection]
<ner0x> reactormonk: It still has to pass the \d{10,} format validator. :)
<reactormonk> ner0x, huh? gimme data where it raises
daniel_-_ has quit [Ping timeout: 260 seconds]
<reactormonk> ner0x, and \d{10,} means 10 or more
<ner0x> reactormonk: I know, they are allowed phone number extensions.
<ner0x> reactormonk: Anything such as ddd or dddddddddddddd
<reactormonk> ner0x, maybe don't give a shit implementing it yourself and go with http://rubygems.org/gems/phone
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
<ner0x> reactormonk: It's done now. lol
<ner0x> I know how to do it. :) It was easy enough to implement.
mascool has quit [Ping timeout: 260 seconds]
<reactormonk> ner0x, well, yours might have bugs, bla, blah, blah, and you don't have to test it on your own.
g-ram has quit [Quit: Computer has gone to sleep.]
RPlasmid has left #ruby ["Leaving"]
<ner0x> I hear ya. This is small enough I'm confident.
snorkdude has quit [Quit: snorkdude]
<ner0x> Plus it's a temporary app. Piority level -1
<reactormonk> ner0x, your choice.
cirwin has quit [Ping timeout: 255 seconds]
Michael_ has joined #ruby
mand__ has joined #ruby
Michael_ has quit [Remote host closed the connection]
<the_jeebster> heftig: my b, works fine. tests never lie :)
<the_jeebster> thanks for the help!
carlyle has quit [Remote host closed the connection]
Michael_ has joined #ruby
aeontech has joined #ruby
mand_ has quit [Ping timeout: 252 seconds]
Slivka has quit [Read error: Connection reset by peer]
jekotia has joined #ruby
yakko has joined #ruby
spursrails has joined #ruby
eka has quit [Remote host closed the connection]
Michael_ has quit [Remote host closed the connection]
Trioke has joined #ruby
nga4 has quit []
caleb_io has joined #ruby
jekotia has quit [Client Quit]
mercwith1mouth has quit [Quit: Lost terminal]
mercwithamouth has quit [Quit: Lost terminal]
aeontech has quit [Client Quit]
g-ram has joined #ruby
alexim has quit [Quit: sleep]
carlyle has joined #ruby
eka has joined #ruby
joeycarmello has joined #ruby
eka has quit [Remote host closed the connection]
rakl has joined #ruby
eka has joined #ruby
lukeholder has quit [Quit: Computer has gone to sleep.]
flip_digits has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Juul has quit [Ping timeout: 240 seconds]
joeycarmello has quit [Remote host closed the connection]
dankest has quit [Quit: Leaving...]
Juul has joined #ruby
diegoviola has quit [Ping timeout: 264 seconds]
carlyle has quit [Remote host closed the connection]
cdehaan has joined #ruby
joeycarmello has joined #ruby
Michael_ has joined #ruby
<cdehaan> Hello! I'm trying to do a "bundle install," but I keep getting the error Bundler could not find compatible versions for gem "bundler", which is requiring bundler ~> 1.0.0... but that makes no sense since I'm using bundler 1.2.2?
eka has quit [Ping timeout: 244 seconds]
eka has joined #ruby
robbyoconnor has joined #ruby
spursrails has quit [Ping timeout: 255 seconds]
eka has quit [Remote host closed the connection]
pipopopo has quit [Ping timeout: 264 seconds]
xpen has joined #ruby
pipopopo has joined #ruby
jrunning has joined #ruby
xpen has quit [Client Quit]
xpen has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
Michael_ has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
mathie has joined #ruby
swarley has quit [Read error: Connection reset by peer]
FDj has quit [Remote host closed the connection]
FDj has joined #ruby
<waxjar> ugh, lost a day of work because i thought it was a good idea to start with a fresh git repo. i still had some stuff stashed :(
swarley has joined #ruby
pipopopo has quit [Ping timeout: 260 seconds]
Ruler_Of_Heaven_ has joined #ruby
_nitti has joined #ruby
<the_jeebster> how is csv parsed with ruby? is each row an array of strings?
spursrails has joined #ruby
<heftig> check out the CSV class
snorkdude has joined #ruby
mathie has quit [Ping timeout: 252 seconds]
cdehaan has quit [Ping timeout: 245 seconds]
krisfremen has quit [Ping timeout: 246 seconds]
spursrails has quit [Client Quit]
adeponte has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 256 seconds]
ryanf has quit [Ping timeout: 244 seconds]
krisfremen has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
Juul has quit [Ping timeout: 260 seconds]
aeontech has joined #ruby
tommyvyo has joined #ruby
machty has joined #ruby
snorkdude has quit [Quit: snorkdude]
lukeholder has joined #ruby
jrunning has quit [Ping timeout: 264 seconds]
joeycarmello has quit [Remote host closed the connection]
krz has joined #ruby
marknyc has quit []
cj3kim has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
tbrock_ has quit [Quit: Computer has gone to sleep.]
lenovodroid has joined #ruby
charliesome has joined #ruby
iamjarvo_ has joined #ruby
frem has quit [Quit: Computer has gone to sleep.]
shtirlic_ has joined #ruby
lampe2_afk is now known as lampe2
ckrailo has quit [Quit: Computer has gone to sleep.]
sn0wb1rd has joined #ruby
<the_jeebster> heftig: I can't seem to access each index of a CSV row. I'm trying to convert strings to integers but I keep getting a "can't convert string into array error". weird.
sn0wb1rd has quit [Read error: Connection reset by peer]
sn0wb1rd has joined #ruby
bakis has joined #ruby
<swarley> which csv library are you using
joeycarmello has joined #ruby
aeontech has quit [Ping timeout: 246 seconds]
ryanf has joined #ruby
aeontech has joined #ruby
danktamagachi has quit [Ping timeout: 248 seconds]
<Elico> Anyone worked with non-blocking sockets?
the_jeebster has quit [Quit: Leaving.]
sn0wb1rd has quit [Quit: sn0wb1rd]
ryanlecompte has joined #ruby
h4mz1d has joined #ruby
xyzodiac has joined #ruby
kbeddingfield has joined #ruby
Juul has joined #ruby
Juul has quit [Client Quit]
Juul has joined #ruby
Aiur has quit [Quit: Computer has gone to sleep.]
paladino has joined #ruby
hackerdude has joined #ruby
dankest has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
FDj has quit [Read error: Connection reset by peer]
kbeddingfield has quit [Ping timeout: 246 seconds]
ryanf has quit [Ping timeout: 240 seconds]
ryanlecompte has quit [Ping timeout: 250 seconds]
swarley has quit [Ping timeout: 250 seconds]
phantasm66 has joined #ruby
seanstickle has quit [Quit: seanstickle]
twopoint718 has quit [Quit: leaving]
tbrock_ has joined #ruby
brianpWins has joined #ruby
FDj has joined #ruby
aeontech has quit [Quit: aeontech]
shtirlic_ has quit [Remote host closed the connection]
jrajav has quit [Read error: Connection reset by peer]
Derander has quit [Ping timeout: 260 seconds]
freeayu has quit [Read error: Connection reset by peer]
jrajav has joined #ruby
machty has quit [Quit: machty]
freeayu has joined #ruby
ewag has joined #ruby
tbrock_ has quit [Client Quit]
psino has quit [Quit: .]
fearoffish has quit [Ping timeout: 260 seconds]
Derander has joined #ruby
snorkdude has joined #ruby
wmoxam has joined #ruby
juha_ has quit [Ping timeout: 260 seconds]
cespare has quit [Ping timeout: 260 seconds]
machty has joined #ruby
psino has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
kil0byte has joined #ruby
kil0byte has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
Juul has quit [Quit: brb]
fearoffish has joined #ruby
stillEPIK has joined #ruby
hsbt is now known as hsbt_away
hackeron_ has quit [Ping timeout: 260 seconds]
hsbt_away is now known as hsbt
EPIK has quit [Ping timeout: 260 seconds]
frytaz1 has quit [Ping timeout: 260 seconds]
hsbt is now known as hsbt_away
juha_ has joined #ruby
ixx has quit [Ping timeout: 260 seconds]
dqminh has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
ixx has joined #ruby
hackeron has joined #ruby
hackeron has quit [Changing host]
hackeron has joined #ruby
ixx is now known as Guest68765
mathie has joined #ruby
hsbt_away is now known as hsbt
paladino has quit [Remote host closed the connection]
pu22l3r has joined #ruby
caleb_io has quit [Quit: caleb_io]
apok has quit [Ping timeout: 246 seconds]
krisfremen has quit [Ping timeout: 246 seconds]
cespare has joined #ruby
mathie has quit [Ping timeout: 260 seconds]
lukeholder has quit [Quit: Computer has gone to sleep.]
Slivka has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
slainer68 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
smile has joined #ruby
smile is now known as Guest19599
xyzodiac has joined #ruby
ryanf has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
Guest34355 has quit [Ping timeout: 260 seconds]
mahmoudimus has joined #ruby
gyre007 has joined #ruby
krisfremen has joined #ruby
BigO has joined #ruby
BigO has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Client Quit]
gyre007 has quit [Remote host closed the connection]
frytaz1 has joined #ruby
kbeddingfield has joined #ruby
adeponte has joined #ruby
mahmoudimus has joined #ruby
sn0wb1rd has joined #ruby
machty has quit [Quit: machty]
ryanf has quit [Ping timeout: 260 seconds]
pu22l3r has joined #ruby
alee-_ has quit [Ping timeout: 276 seconds]
pu22l3r has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
machty has joined #ruby
lukeholder has joined #ruby
lenovodroid has quit [Ping timeout: 260 seconds]
alee- has joined #ruby
sn0wb1rd has joined #ruby
sn0wb1rd has quit [Client Quit]
ananthakumaran has joined #ruby
jrajav has quit [Quit: I tend to be neutral about apples]
sn0wb1rd has joined #ruby
radic has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
ryanlecompte has joined #ruby
Drager has joined #ruby
joppe has joined #ruby
wmoxam_ has joined #ruby
wmoxam has quit [Quit: leaving]
radic_ has quit [Ping timeout: 250 seconds]
starship has quit [Quit: WeeChat 0.4.0-dev]
cintrikz has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
jgrevich_ has joined #ruby
stephenjudkins has quit [Quit: stephenjudkins]
hackerdude has quit [Ping timeout: 245 seconds]
lenovodroid has joined #ruby
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
rakl has joined #ruby
ionte has joined #ruby
hackerdude has joined #ruby
<B|aster> Hey I created a simple test with MiniTest and I got NameError: uninitialized constant MiniTest. I thought MiniTest was included by default with 1.9 ?
ner0x has quit [Quit: Leaving]
ryanf has joined #ruby
FDj has quit [Read error: Connection reset by peer]
machty has quit [Quit: machty]
lenovodroid has quit [Ping timeout: 256 seconds]
brian` has quit []
eka has joined #ruby
Rym has joined #ruby
Bosma has quit [Quit: leaving]
ananthakumaran has quit [Quit: Leaving.]
sn0wb1rd has quit [Quit: sn0wb1rd]
hsbt is now known as hsbt_away
* hemanth wonders where is VectorS*...
hsbt_away is now known as hsbt
jlwestsr has quit [Ping timeout: 246 seconds]
eka has quit [Ping timeout: 246 seconds]
phantasm66 has quit [Quit: *sleeeeep*]
ryanf has quit [Ping timeout: 244 seconds]
sn0wb1rd has joined #ruby
mneorr has joined #ruby
hackerdude has quit [Remote host closed the connection]
Rym has quit [Quit: Rym]
mathie has joined #ruby
rtd_ has joined #ruby
thefirstdude has joined #ruby
shorne has joined #ruby
aeontech has joined #ruby
_nitti has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
jphpsf has joined #ruby
ABK has joined #ruby
phantasm66 has joined #ruby
mathie has quit [Ping timeout: 248 seconds]
LiquidInsect has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 246 seconds]
hsbt is now known as hsbt_away
Trioke has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
hsbt_away is now known as hsbt
sn0wb1rd has quit [Quit: sn0wb1rd]
hackerdude has joined #ruby
ABK has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
sn0wb1rd has joined #ruby
ABK has joined #ruby
wallerdev has joined #ruby
phantasm66 has quit [Quit: *sleeeeep*]
slainer68 has quit [Ping timeout: 260 seconds]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
schleppy has joined #ruby
tommyvyo has joined #ruby
<schleppy> I am trying to get the debugger in RubyMine working, but it appears that the host for linecache19 is no longer available: http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem is this a known issue?
freezway has quit [Ping timeout: 252 seconds]
<schleppy> anyone know of any mirrors?
burgestrand has quit [Quit: Leaving.]
<Elico> tried google for file name + mirror?
<Elico> schleppy: pretty sure any linux distro holds one of these.
joeycarmello has quit [Remote host closed the connection]
danktamagachi has joined #ruby
ryanf has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
d-snp has quit [Ping timeout: 246 seconds]
rohit has joined #ruby
Nowaker has quit [Read error: Operation timed out]
Nowaker has joined #ruby
irving_ has quit [Read error: Operation timed out]
ABK has quit [Read error: Connection reset by peer]
irving has joined #ruby
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
Bootstrapper has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
kbeddingfield has joined #ruby
ABK has quit [Read error: Connection reset by peer]
fir_ed has quit [Ping timeout: 245 seconds]
ABK has joined #ruby
rtd_ has quit [Remote host closed the connection]
rtd_ has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
ryanf has quit [Ping timeout: 264 seconds]
ABK has quit [Read error: Connection reset by peer]
lukeholder has quit [Quit: Computer has gone to sleep.]
lunks has joined #ruby
ABK has joined #ruby
<lunks> Hey, what is an easy way to make a class behave like static, but use an actual instance? I'm mainly creating an API. i.e. I'd like to call API.method instead of API.new.method, but both should accomplish the same.
<lunks> It's kind of a singleton, but without needing to fetch the instance everytime.
EyesIsServer has joined #ruby
<dantesun> lunks: maybe you could try using module+method
<lunks> dantesun: do you have any links to point me to?
<lunks> hmm
<lunks> no, because this would be same as a static class
EyesIsMine has quit [Ping timeout: 264 seconds]
rhys has quit [Quit: Leaving]
caleb_io has joined #ruby
Guest24042 has joined #ruby
mahmoudimus has joined #ruby
SeySayux has quit [Read error: Operation timed out]
Villadelfia has quit [Read error: Operation timed out]
nat2610 has joined #ruby
rippa has joined #ruby
jwang has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
jwang has joined #ruby
SeySayux has joined #ruby
Villadelfia has joined #ruby
Guest24042 has quit [Read error: Connection reset by peer]
joeycarmello has joined #ruby
lampe2 has quit [Ping timeout: 264 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
snorkdude has quit [Quit: snorkdude]
nemesit has joined #ruby
Niamkik has quit [Quit: Caught sigterm, terminating...]
Niamkik has joined #ruby
joeycarmello has quit [Ping timeout: 256 seconds]
ryanf has joined #ruby
mathie has joined #ruby
stkowski has joined #ruby
stkowski has quit [Client Quit]
<waxjar> lunks: look up class methods
<lunks> waxjar: I dont want it to be a singleton
<lunks> or static
<lunks> I just want it to silently call new
Slivka has quit [Read error: Connection reset by peer]
<waxjar> you can have a class method return a new instance?
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
<dqminh> lunks: self.method_missing
<lunks> dqminh: hmm nice!
codecop has joined #ruby
ABK has quit [Ping timeout: 256 seconds]
nat2610 has left #ruby [#ruby]
joeycarmello has joined #ruby
rakl has quit [Quit: sleeping]
slainer68 has joined #ruby
pu22l3r has quit [Ping timeout: 248 seconds]
sn0wb1rd has joined #ruby
matrixise has quit [Ping timeout: 260 seconds]
elsifaka has joined #ruby
ryanf has quit [Ping timeout: 255 seconds]
joeycarmello has quit [Remote host closed the connection]
apok has joined #ruby
joeycarmello has joined #ruby
slainer68 has quit [Ping timeout: 255 seconds]
areil has joined #ruby
mercwithamouth has joined #ruby
rtd__ has joined #ruby
jwang has quit [Quit: Leaving]
<RubyPanther> def self.omg; @@omg ||= self.new ; @@omg.ponies! end
joeycarmello has quit [Ping timeout: 255 seconds]
cirwin has joined #ruby
nemesit has quit [Quit: Leaving...]
rtd_ has quit [Ping timeout: 260 seconds]
margle has joined #ruby
michaelmartinez has joined #ruby
BigO has joined #ruby
tagrudev has joined #ruby
d-snp has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
dqminh_ has joined #ruby
FDj has joined #ruby
dqminh_ has quit [Remote host closed the connection]
chimkan_ has joined #ruby
ABK has joined #ruby
topek has joined #ruby
danktamagachi has quit [Ping timeout: 256 seconds]
dqminh has quit [Ping timeout: 264 seconds]
wargasm has joined #ruby
caleb_io has quit [Quit: caleb_io]
Bootstrapper has joined #ruby
ryanf has joined #ruby
teddfox has joined #ruby
ChampS666 has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
teddfox has left #ruby [#ruby]
djdb has joined #ruby
answer_42 has joined #ruby
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
kil0byte has quit [Ping timeout: 264 seconds]
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
atno is now known as atno|Ping
thefirstdude has quit [Quit: Leaving]
hackerdude has quit [Remote host closed the connection]
Eplemosen has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
kbeddingfield has joined #ruby
Jeffferson has joined #ruby
ryanf has quit [Ping timeout: 252 seconds]
starship has joined #ruby
sn0wb1rd has joined #ruby
sn0wb1rd has quit [Client Quit]
FDj has quit [Ping timeout: 240 seconds]
BigO has quit [Remote host closed the connection]
FredLe has joined #ruby
gbchaosmaster has joined #ruby
Niamkik has quit [Quit: Caught sigterm, terminating...]
Niamkik has joined #ruby
codezombie has joined #ruby
bobsaget has joined #ruby
michaelmartinez has quit [Quit: Check it, Wreck it http://www.caffeineindustries.com/blog]
<krz> whats a nice way to check if foo is true or false? something better than:
<krz> foo == true or foo == false ? foo : nil
FredLe has quit [Client Quit]
Takehiro has joined #ruby
mathie has quit [Ping timeout: 260 seconds]
zommi has joined #ruby
<krz> [true, false].include? foo
<krz> anything better?
zeromodulus has joined #ruby
<reactormonk> krz, if foo ... ?
<krz> i need a one liner
<krz> and if foo will only work if foo is true
<reactormonk> krz, what are you testing exactly
<reactormonk> krz, ... or any other object
<krz> foo needs to be true or false, otherwise return nil
<reactormonk> foo.class == Boolean
<krz> foo = true; foo.class == Boolean; returns false
<otters> Boolean is an uninitialized constant
busybox42 has quit [Ping timeout: 264 seconds]
_nitti has joined #ruby
<reactormonk> ... right, ruby
generalissimo has quit [Remote host closed the connection]
<krz> reactormonk: as opposed to what other language?
<reactormonk> krz, scala?
sn0wb1rd has joined #ruby
Jeffferson has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 246 seconds]
zommi has quit [Quit: Leaving.]
matrixise has joined #ruby
ryanf has joined #ruby
tdubz is now known as thomas
zommi has joined #ruby
Hivan has joined #ruby
maesbn has joined #ruby
Elhu has joined #ruby
cj3kim has left #ruby ["Leaving"]
cj3kim has joined #ruby
codecop has quit [Remote host closed the connection]
Hivan_ has joined #ruby
Hivan_ has quit [Remote host closed the connection]
rohit has quit [Quit: Leaving]
codecop has joined #ruby
gbchaosmaster has quit [Quit: Leaving]
joeycarmello has joined #ruby
mathie has joined #ruby
u89 has joined #ruby
segv- has joined #ruby
hamed_r has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
Eplemosen has quit [Quit: Hexchat FTW! http://www.hexchat.org/]
joeycarmello has quit [Ping timeout: 256 seconds]
aganov has joined #ruby
jackbrownhf has quit [Ping timeout: 260 seconds]
uberusha1imus has joined #ruby
FredLe has joined #ruby
a_a_g has joined #ruby
Bootstrapper has quit [Remote host closed the connection]
caleb_io has joined #ruby
nemesit has joined #ruby
Juul has joined #ruby
rumba has joined #ruby
<Hivan> Hi
eldariof has joined #ruby
Hivan has quit [Quit: Hivan]
xpen has quit [Ping timeout: 256 seconds]
tonini has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
ChampS666 has quit [Ping timeout: 248 seconds]
lolcathost has joined #ruby
jenrzzz has joined #ruby
Guest68765 is now known as ixx
Elhu has quit [Quit: Computer has gone to sleep.]
chimkan_ has quit [Quit: chimkan_]
kbeddingfield has joined #ruby
uberusha1imus is now known as uberushaximus
u89 has quit [Remote host closed the connection]
Juul has quit [Ping timeout: 256 seconds]
<reactormonk> can I apply a function to every second element?
xpen has joined #ruby
dr_bob has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
morf has joined #ruby
az7ar has joined #ruby
schaary has joined #ruby
<a_a_g> reactormonk: you could use reduce and keep a check of the parity in the block itself
erichmenge has quit [Ping timeout: 276 seconds]
dgethings has quit [Quit: dgethings]
chimkan has joined #ruby
carlzulauf has quit [Ping timeout: 264 seconds]
Morkel has joined #ruby
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
xsbeats_ has joined #ruby
carlzulauf has joined #ruby
bobsaget has quit [Quit: Leaving]
xsbeats has quit [Read error: Connection reset by peer]
erichmenge has joined #ruby
nat2610 has joined #ruby
dangerousdave has joined #ruby
mand__ has quit [Quit: Leaving]
mand__ has joined #ruby
mand__ is now known as mand
mand is now known as mand_
MarcWebe1 is now known as MarcWeber
MarcWeber has quit [Quit: leaving]
ssspiff has joined #ruby
braoru has joined #ruby
arya has joined #ruby
sspiff has quit [Ping timeout: 255 seconds]
atno|Ping has quit [Read error: Connection reset by peer]
grzywacz has joined #ruby
_nitti has joined #ruby
atno|Ping has joined #ruby
mathie has quit [Quit: Sleeping...]
<reactormonk> a_a_g, each_slice(2) does the job fine
<a_a_g> cool
caleb_io has quit [Quit: caleb_io]
jprovazn has joined #ruby
bartj3 has joined #ruby
_nitti has quit [Ping timeout: 246 seconds]
chimkan___ has joined #ruby
chimkan has quit [Ping timeout: 246 seconds]
chimkan___ is now known as chimkan
sejo has left #ruby [#ruby]
Mon_Ouie has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
_bart has quit [Quit: _bart]
mneorr has quit [Remote host closed the connection]
cj3kim has quit [Quit: This computer has gone to sleep]
chimkan___ has joined #ruby
mneorr has joined #ruby
hamed_r has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
timonv has quit [Remote host closed the connection]
hoelzro|away is now known as hoelzro
chimkan has quit [Ping timeout: 244 seconds]
chimkan___ is now known as chimkan
clocKwize has joined #ruby
jackbrownhf has quit [Read error: Operation timed out]
__class__ has quit [Read error: Connection reset by peer]
nat2610 has quit [Quit: Leaving.]
punkrawkR has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 256 seconds]
Brainix has quit [Quit: Brainix]
arya has quit []
chimkan has quit [Quit: chimkan]
arya has joined #ruby
bluOxigen has joined #ruby
Axsuul has joined #ruby
k610 has joined #ruby
lolcathost has quit [Ping timeout: 264 seconds]
arya_ has joined #ruby
hamed_r has joined #ruby
u89 has joined #ruby
Elhu has joined #ruby
arya has quit [Ping timeout: 244 seconds]
__class__ has joined #ruby
u89 has quit [Remote host closed the connection]
mand_ has quit [Ping timeout: 260 seconds]
tobinharris has joined #ruby
lolcathost has joined #ruby
u89 has joined #ruby
adeponte has quit [Remote host closed the connection]
u89 has quit [Remote host closed the connection]
k610 has quit [Quit: Leaving]
u89 has joined #ruby
sk87 has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
Bootstrapper has joined #ruby
Mon_Ouie has joined #ruby
iamjarvo_ has quit [Quit: Computer has gone to sleep.]
FDj has joined #ruby
jds_ has joined #ruby
randomautomator has joined #ruby
Bootstrapper has quit [Ping timeout: 250 seconds]
nomenkun has joined #ruby
xpen_ has joined #ruby
punkrawkR has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
D4T has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
vlad_starkov has joined #ruby
xpen has quit [Ping timeout: 260 seconds]
etank has quit [Ping timeout: 246 seconds]
chussenot has joined #ruby
jds_ has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
eb has quit [Remote host closed the connection]
atno|Ping is now known as atno
tonini has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
nemesit has quit [Ping timeout: 246 seconds]
atno is now known as atno|AFK
ebouchut has joined #ruby
jimeh has joined #ruby
mand_ has joined #ruby
kbeddingfield has joined #ruby
Axsuul has quit [Ping timeout: 240 seconds]
randomautomator has quit [Remote host closed the connection]
_nitti has joined #ruby
k610 has joined #ruby
kbeddingfield has quit [Ping timeout: 246 seconds]
everdaniel has quit [Ping timeout: 246 seconds]
apeiros_ has joined #ruby
Brainix has joined #ruby
vlad_starkov has joined #ruby
blacktulip has joined #ruby
slainer68 has joined #ruby
LouisGB has joined #ruby
_nitti has quit [Ping timeout: 246 seconds]
D4T has joined #ruby
ExxKA has joined #ruby
<witchdoc> hi all
nemesit has joined #ruby
elaptics`away is now known as elaptics
ryanf has quit [Quit: leaving]
FDj has quit [Read error: Connection reset by peer]
<D4T> Im writing a class to interact with a third party API, most of the xml I'm sending remains the same for certain tasks. At the moment I'm generating the XML using libxml but I'm wondering what the pros / cons would be in just defining them as strings?
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
elrzn has joined #ruby
cek has joined #ruby
<Paradox> D4T, if you're generating the same XML, over and over and over and over again
KevinSjoberg has joined #ruby
<Paradox> you're faster just using string interpolation/concatination
arya_ has quit [Ping timeout: 244 seconds]
<D4T> Paradox: this is what i was thinking
arya has joined #ruby
<D4T> theres basically about 30 commands i can send, at the moment I'm generating the XML but it seems a little silly
Vainoharhainen has joined #ruby
elrzn has left #ruby [#ruby]
<D4T> given nothing in the xml changes
<Paradox> generate a few
<Paradox> see whats the same
<Paradox> use it
x0F has quit [Quit: Leaving]
rdark has joined #ruby
<Paradox> i mean hel
<Paradox> even if you generate the middle part
<Paradox> you can wrap it with the start and end
<D4T> yeah
<D4T> just wasn't sure if it was good practice either really. defining lots of long strings in my class
<Paradox> generally magic strings are frowned upon
* Paradox but…
<Paradox> better than generating the same shit over and over again
<D4T> yeah
<Paradox> (faster too)
FDj has joined #ruby
<D4T> ok thats settled then, thanks for your advice :)
nari has quit [Ping timeout: 250 seconds]
cdt has joined #ruby
k610 has quit [Quit: Leaving]
k610 has joined #ruby
kbeddingfield has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
kil0byte_ has joined #ruby
googya has joined #ruby
Ivo has joined #ruby
k610 has quit [Client Quit]
k610 has joined #ruby
kil0byte has quit [Ping timeout: 264 seconds]
rotor` is now known as rotor
tuannat has joined #ruby
SoleSoul has joined #ruby
JohnBat26 has joined #ruby
berserkr has joined #ruby
timmow has joined #ruby
joschi_ is now known as joschi
ExxKA has quit [Quit: This computer has gone to sleep]
k_sze has joined #ruby
<SoleSoul> Hi. A beginner's question: What is the curly braced block in this short example? what does it do? http://pastebin.com/9WnQ4yW3 Thanks :)
ExxKA has joined #ruby
Iszak has joined #ruby
<a_a_g> it is a literal Hash
<a_a_g> in ruby 1.9 onwards, {a: b} is the same as {:a => b}
<SoleSoul> is "name : name" an assignment?
<apeiros_> no
<apeiros_> only = is used for assignment.
<apeiros_> a: b in {a: b} defines a key-value pair
Xeago has joined #ruby
<apeiros_> with the key being a Symbol
cirwin has quit [Ping timeout: 256 seconds]
<a_a_g> SoleSoul: are you familiar with any other language, so that we could give equivalents
<SoleSoul> yeah, C++
<SoleSoul> haskell
vlad_starkov has quit [Ping timeout: 246 seconds]
<SoleSoul> it's a function, right? it shouldn't be able to hold state
<apeiros_> it doesn't hold state
<apeiros_> it's a method
zz_chrismcg is now known as chrismcg
<apeiros_> it returns a new Hash instance
daniel_-_ has joined #ruby
<apeiros_> {}.class # => Hash
<SoleSoul> so now you can do game{:name}?
chrismcg is now known as zz_chrismcg
Takehiro has quit [Remote host closed the connection]
<apeiros_> no
<apeiros_> some_hash = {key: "value"}
<apeiros_> some_hash[:key] # => "value"
<apeiros_> I suggest you read a book on ruby basics
<SoleSoul> Now I understand.
workmad3 has joined #ruby
xpen_ has quit [Ping timeout: 248 seconds]
<SoleSoul> it creates a new hash and returns it. game now contains the hash and it is possible to access what it contsins
<k_sze> gem list shows me 4 local gems. I don't remember when I installed them (or could some of them have come with Mac OS X Lion)?
<SoleSoul> I was confused because of the implicit "return" and the multiline hash creation
m4rtijn has joined #ruby
<k_sze> The only one I remember is the vimgolf gem.
<m4rtijn> heyho
<SoleSoul> apeiros_ and a_a_g: Thank you! :)
<a_a_g> SoleSoul: in that sense ruby is like haskell in that eerything evaluates to a value
<a_a_g> to an object to be more precise
ikaros has joined #ruby
<SoleSoul> I'm learning ruby with codeschool now. only second level :)
<SoleSoul> they showed this example without explayning it
<SoleSoul> so I just needed this point clarified
vlad_starkov has joined #ruby
thinkdevcode has quit [Remote host closed the connection]
Brainix has quit [Quit: Brainix]
Juul has joined #ruby
arya has quit [Ping timeout: 244 seconds]
timonv has joined #ruby
_bart has joined #ruby
SoleSoul has quit [Quit: Page closed]
undersc0re97 has quit [Remote host closed the connection]
Takehiro has joined #ruby
hsbt is now known as hsbt_away
Juul has quit [Quit: Leaving]
robbyoconnor has quit [Ping timeout: 260 seconds]
samphippen has joined #ruby
jds_ has joined #ruby
undersc0re97 has joined #ruby
kil0byte has joined #ruby
schaerli has joined #ruby
yshh has quit [Remote host closed the connection]
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
undersc0re97 has quit [Client Quit]
tuan_nat has joined #ruby
<k_sze> I can't get rubygems to work.
kil0byte_ has quit [Ping timeout: 264 seconds]
<k_sze> the gem command just gives me gem:17:in `require': no such file to load -- rubygems (LoadError)
banisterfiend has quit [Remote host closed the connection]
jds_ has quit [Ping timeout: 246 seconds]
tuannat has quit [Ping timeout: 255 seconds]
Grieg has joined #ruby
Grieg has quit [Changing host]
Grieg has joined #ruby
<charliesome> k_sze: ruby -v
<k_sze> ruby 1.8.7 (2012-10-12 patchlevel 371) [i686-darwin11]
<k_sze> this is ruby 1.8.7 from MacPorts
<k_sze> but I don't want to use the RubyGems from MacPorts because it's outdated.
roadt has joined #ruby
dertyp has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<k_sze> Instead, I was trying to install RubyGems using the official tarball from rubygems.org.
vlad_starkov has joined #ruby
fyolnish has quit [Remote host closed the connection]
shtirlic_ has joined #ruby
jlwestsr has joined #ruby
<workmad3> k_sze: you don't want to use an outdated rubygems from macports, but you're ok using an outdated ruby from macports?
<k_sze> Well, ruby from MacPorts is not as outdated. 1.8.7 is still mainstream.
<workmad3> 1.8.x is dead
nemesit has quit [Quit: Leaving...]
banisterfiend has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<workmad3> seriously, 1.8.7 reached end of maintenance back in june, and is hitting end of life next june
<k_sze> workmad3: there is ruby19 on MacPorts if it makes a difference.
<workmad3> I'd highly recommend using it
<workmad3> or use rbfu, rbenv or rvm
rippa has quit [Ping timeout: 245 seconds]
mathie has joined #ruby
<workmad3> I'd also suggest pulling the self-installed rubygems off your system
jayne has joined #ruby
<k_sze> workmad3: why is that?
<workmad3> because it'll probably screw with the rubygems that comes with 1.9
<k_sze> ruby 1.9 comes with RubyGems preinstalled?
<workmad3> not 'preinstalled'... rubygems is part of 1.9
jlwestsr has quit [Quit: Ex-Chat]
g-ram has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
arturaz has joined #ruby
olya has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
olya has left #ruby [#ruby]
g-ram has quit [Quit: Computer has gone to sleep.]
<k_sze> if I install a gem using gem1.9 (instead of gem, which is 1.8), will the gem automatically use Ruby 1.9?
<k_sze> e.g. the AppFog command line tools are packaged as a gem.
mahmoudimus has quit [Quit: Computer has gone to sleep.]
tuan_nat has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
lolcathost has joined #ruby
tk__ has joined #ruby
g-ram has joined #ruby
hsbt_away is now known as hsbt
gyre007 has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
Averna has joined #ruby
statarb3 has quit [Read error: Connection reset by peer]
hola123 has joined #ruby
hola123 is now known as arkvier
Marius has joined #ruby
Rym has joined #ruby
samphippen has joined #ruby
dertyp has quit [Quit: Leaving...]
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
samphippen has quit [Client Quit]
lampe2 has joined #ruby
Marius has quit [Client Quit]
Takehiro_ has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
schaerli has quit [Remote host closed the connection]
_bart has quit [Quit: _bart]
shtirlic_ has quit [Remote host closed the connection]
shtirlic_ has joined #ruby
Eiam has quit [Read error: Connection reset by peer]
dankest has quit [Quit: Leaving...]
Drakevr has quit [Ping timeout: 264 seconds]
Drakevr has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
etank has joined #ruby
spike|spiegel has joined #ruby
_nitti has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
JonnieCache has quit [Quit: Reconnecting]
JonnieCache has joined #ruby
yakko has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
shtirlic_ has quit [Remote host closed the connection]
spike|spiegel has quit [Client Quit]
rdark has quit [Quit: leaving]
r4um has joined #ruby
rdark has joined #ruby
kil0byte_ has joined #ruby
_nitti has quit [Ping timeout: 246 seconds]
estan_ is now known as estan
Michael__ has joined #ruby
spike|spiegel has joined #ruby
kil0byte has quit [Ping timeout: 246 seconds]
samphippen has joined #ruby
roadt has quit [Ping timeout: 246 seconds]
roadt has joined #ruby
Marius has joined #ruby
Michael__ has quit [Remote host closed the connection]
Michael__ has joined #ruby
spike|spiegel has quit [Quit: WeeChat 0.3.9.2]
fyolnish has joined #ruby
hoelzro is now known as hoelzro|away
beiter has joined #ruby
vlad_starkov has quit [Ping timeout: 255 seconds]
lunks has quit [Remote host closed the connection]
arya has joined #ruby
fyolnish has quit [Ping timeout: 244 seconds]
Averna has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
davidrhyswhite has joined #ruby
schaerli has joined #ruby
leifmadsen has joined #ruby
callenb has joined #ruby
arya_ has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
eka has joined #ruby
arya has quit [Ping timeout: 244 seconds]
fyolnish has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
krz has quit [Quit: krz]
Michael__ has quit [Remote host closed the connection]
naequs has joined #ruby
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
Michael__ has joined #ruby
fir_ed has joined #ruby
atno|AFK is now known as atno
naequs has left #ruby [#ruby]
pcarrier has joined #ruby
shiin has joined #ruby
leifmadsen has quit [Quit: Peas out homey]
bier has quit [Read error: Operation timed out]
Zai00 has joined #ruby
replore_ has joined #ruby
BiHi has quit [Quit: Computer has gone to sleep]
bier_ has quit [Ping timeout: 240 seconds]
chussenot has quit [Quit: chussenot]
larissa has joined #ruby
a_a_g has quit [Quit: Leaving.]
hotovson_ has joined #ruby
cmarques has joined #ruby
kil0byte has joined #ruby
[Neurotic] has quit [Ping timeout: 244 seconds]
kil0byte_ has quit [Ping timeout: 260 seconds]
a_a_g has joined #ruby
jlwestsr has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
hoelzro|away is now known as hoelzro
bier_ has joined #ruby
bier has joined #ruby
volta has joined #ruby
g-ram has joined #ruby
workmad3_ has joined #ruby
Goles has quit [Remote host closed the connection]
_nitti has joined #ruby
fir_ed has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 260 seconds]
skattyadz has joined #ruby
burgestrand has joined #ruby
mengu has joined #ruby
Dreamer3 has quit [Ping timeout: 276 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
_nitti has quit [Ping timeout: 246 seconds]
Dreamer3 has joined #ruby
Rym has quit [Quit: Rym]
workmad3_ is now known as workmad3
carloslopes has joined #ruby
leifmadsen has joined #ruby
shiin has quit [Quit: Computer has gone to sleep.]
ExxKA has quit [Quit: This computer has gone to sleep]
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
cek has quit [Ping timeout: 245 seconds]
chussenot has joined #ruby
banisterfiend has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
leifmadsen has quit [Quit: Peas out homey]
ExxKA has joined #ruby
leifmadsen has joined #ruby
omani has joined #ruby
xyzodiac has joined #ruby
rovalent has joined #ruby
ttt has quit [Remote host closed the connection]
u89 has quit [Remote host closed the connection]
answer_42 has joined #ruby
<Xeago> Using CBC-MAC from AES, when given a tag for a message, how many calls to AES have to be done to compute a message that has the last bit flipped of the original message? (key is known)
<Xeago> 1 call to decrypt the tag, to the xor of last-block-of-m xor'ed with previous E(blocks)
<Xeago> in that we can flip the last bit
<Xeago> and encrypt that again
<Xeago> that is 2 calls to the AES function, 1 to decrypt and 1 to encrypt
<Xeago> unfrotunately this appears to no be a valid answer, what am I doing wrong?
jlwestsr has quit [Read error: Connection reset by peer]
Drakevr has quit [Ping timeout: 264 seconds]
elspeth_ has quit [Ping timeout: 264 seconds]
elspeth has joined #ruby
Drakevr has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
spike|spiegel has joined #ruby
googya has quit [Quit: Leaving.]
<samphippen> Xeago: try #crypto
<Xeago> wwops
<Xeago> thought I was there
<Xeago> xD
vlad_starkov has joined #ruby
carlzulauf has quit [Ping timeout: 246 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
carlzulauf has joined #ruby
jsmonkey has joined #ruby
Nisstyre has quit [Ping timeout: 240 seconds]
nemesit has joined #ruby
cek has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
xyzodiac has quit [Quit: Computer has gone to sleep.]
cek has quit [Client Quit]
tvw has joined #ruby
swiftsure has joined #ruby
nanderoo has joined #ruby
ABK has quit [Ping timeout: 250 seconds]
jbpros has quit [Excess Flood]
jbpros has joined #ruby
nari has joined #ruby
arya has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
arya_ has quit [Ping timeout: 244 seconds]
Nisstyre has joined #ruby
schaary has quit [Quit: Leaving.]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
rovalent has quit [Quit: Linkinus - http://linkinus.com]
hsbt is now known as hsbt_away
elkclone has quit [Quit: It's never too late to unplug and run.]
elkclone has joined #ruby
grzywacz has quit [Ping timeout: 246 seconds]
Slivka has joined #ruby
hsbt_away is now known as hsbt
u89 has joined #ruby
hsbt is now known as hsbt_away
BiHi has joined #ruby
u89 has quit [Remote host closed the connection]
ExxKA has joined #ruby
krz has joined #ruby
swiftsure has quit [Ping timeout: 244 seconds]
a_a_g has quit [Quit: Leaving.]
Takehiro_ has quit [Remote host closed the connection]
lenovodroid has joined #ruby
sk87 has quit [Quit: sk87]
erichmenge has quit [Quit: Arrivederci!]
lenovodroid has quit [Client Quit]
erichmenge has joined #ruby
mark_locklear has joined #ruby
u89 has joined #ruby
carloslopes has quit [Remote host closed the connection]
soc42 has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
iamjarvo has joined #ruby
ffranz has joined #ruby
Takehiro has joined #ruby
carloslopes has joined #ruby
tommyvyo has joined #ruby
Takehiro has quit [Ping timeout: 248 seconds]
Ruler_Of_Heaven_ is now known as pipopopo
krawchyk has joined #ruby
Goles has joined #ruby
rippa has joined #ruby
erry has quit [Quit: Segmentation fault]
leifmadsen has quit [Quit: Peas out homey]
Elhu has joined #ruby
g-ram has quit [Quit: Computer has gone to sleep.]
lampe2 has quit [Ping timeout: 264 seconds]
hsbt_away is now known as hsbt
k610 has quit [Ping timeout: 256 seconds]
replore_ has quit [Remote host closed the connection]
<shevy> hmm when you have a module Foo, and a class inside it class Bar
ltsstar has joined #ruby
nari has quit [Ping timeout: 255 seconds]
jackbrownhf has quit [Ping timeout: 256 seconds]
<shevy> I suppose you can not dynamically move class Bar into other namespaces, without also having to include module Foo, right?
arkvier has quit [Ping timeout: 256 seconds]
xyzodiac has joined #ruby
r4um has quit [Quit: leaving]
<Xeago> any mac user here using Dock Gone?
<apeiros_> no, but from the name it sounds like something useful…
* apeiros_ never uses the doc
<apeiros_> +k
tobinharris has quit [Quit: tobinharris]
skattyadz has quit [Quit: skattyadz]
<Xeago> apeiros_: that is kinda the point
zigomir has joined #ruby
<Xeago> it claims it removes it completely, so random cursor movements won't show it
<Xeago> however, when hiding the dock as os x allows you to do
<Xeago> there is a 3px space at the bottom of the screen
sepp2k has joined #ruby
<apeiros_> yepp
mercwithamouth has joined #ruby
<apeiros_> which tends to be annoying
Uranio has joined #ruby
<Xeago> yep, was hoping that Dock Gone would get rid of that :)
<apeiros_> ah, so you're asking whether it works as advertized?
<apeiros_> it's payware?
jimeh has quit [Quit: Computer has gone to sleep.]
<Xeago> it will work as advertised, but hiding the dock is not getting rid of the 3 pixels :)
<Xeago> it's shareware, but comes with a nasty prefpane
ttt has joined #ruby
omani has left #ruby [#ruby]
jimeh has joined #ruby
Takehiro has joined #ruby
<shevy> 3 pixels
<shevy> that's the kind of problem osx users have
<Xeago> something like that
<Xeago> haven't really measured it
<Xeago> atleast we bitch about it :)
<apeiros_> shevy: infinite pixels as per fitt's law
<JonnieCache> defaults write com.apple.Dock autohide-delay -float 10 && killall Dock
<JonnieCache> run that in the console and you have a 10 second delay until its shown. that should do it, no shareware needed
nateberkopec has joined #ruby
<apeiros_> JonnieCache: oh, neat
ttt has quit [Ping timeout: 245 seconds]
<Xeago> apeiros_: you didn't know?
<apeiros_> I assume I can set that to 9999999 too?
<JonnieCache> guess so
<apeiros_> Xeago: never bothered me enough to search for solutions
<JonnieCache> osx has lots of hidden options like that
<Xeago> secrets.binaryage.com or net or org
yourmysin has quit [Read error: Connection reset by peer]
<Xeago> JonnieCache: that unfortunately won't get away of the 3pixel margin between bottom of screen and windows
xyzodiac has quit [Ping timeout: 264 seconds]
tommyvyo_ has joined #ruby
ner0x has joined #ruby
Bane_ has quit [Read error: Connection reset by peer]
<JonnieCache> i doubt thats possible
Bane has joined #ruby
az7ar has quit [Remote host closed the connection]
<JonnieCache> thats nothing to the 10.7 fullscreen behaviour
geekbri has joined #ruby
<JonnieCache> that actually makes me violent
<Xeago> not using fullscreen behaviour
<charliesome> JonnieCache: 10.7 fullscreen behaviour is entirely useless for multiscreen setups
<Xeago> if you just align a window for the full height of the screen, there's a margin where your dock hides
<JonnieCache> thats why it makes me violent
<Xeago> that margin is anoying
<Xeago> yea that aswell :)
<charliesome> does nobody at apple use multiple monitors
<JonnieCache> fortunately most apps allow you to disable it. only exception is chrome.
xyzodiac has joined #ruby
<JonnieCache> html5 video now blanks out my main screen. i almost threw my computer out the window when i couldnt fix that
Takehiro has quit [Ping timeout: 248 seconds]
a_a_g has joined #ruby
Takehiro has joined #ruby
flagg0204 has quit [Read error: Operation timed out]
flagg0204 has joined #ruby
v0n has joined #ruby
Goles has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 256 seconds]
ABK has joined #ruby
xyzodiac has quit [Ping timeout: 264 seconds]
mklappstuhl has joined #ruby
r4um has joined #ruby
<atmosx> JonnieCache: you watch youtube videos in two monitors?
xyzodiac has joined #ruby
<atmosx> or porn for tha matter
Banistergalaxy has joined #ruby
a_a_g has quit [Quit: Leaving.]
zigomir has quit [Quit: zigomir]
Goles has joined #ruby
<mklappstuhl> using rubyzip: is it computationally expensive to extract a single file compared to extracting multiple files?
<mklappstuhl> (i.e. is there a significant overhead in opening an archive etc?
<JonnieCache> atmosx: sometimes i want to watch a video on one screen while doing something else on the other screen
<JonnieCache> eg. watching music production tutorials and following them at the same time
<atmosx> if you're talking about rar I highly doubt it, but you could run a benchmark anyway
<atmosx> JonnieCache: oh, didn't thought of that.
k610 has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
<atmosx> I was amazed the last version of ubuntu on sony vaio, was dealing with this out of the box quite well
<atmosx> my friend was watching the movie while I was compiling a kernel for bifferboard..
<atmosx> I think MacOSX Mountain Lion can do that sort double screen also.
<atmosx> but didn't try it
<Xeago> asin two screens for the same user?
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<Xeago> or what do you mean?
mneorr has quit [Read error: Connection reset by peer]
<atmosx> yeah
<Xeago> and hence multiple user spaces?
<atmosx> he was watching movies on his tv via hdmi
<atmosx> yeap
<atmosx> that's what it might be called, no idea
<Xeago> yep no problem
<Xeago> userspace=kernel term
<braoru> someone here familliar with nginx version of passenger ?
ltsstar has quit [Ping timeout: 256 seconds]
vlad_starkov has joined #ruby
<Xeago> atmosx: it basically fires up another systemuiserver under a new launchd for that user
samphippen has joined #ruby
<braoru> I'm trying to run a small app from it but can't find why it don't run so well... (running if I lunch it directly from rake..) so I may have a problem with my config :) but its pretty simple ..http://fpaste.org/hOFF/ and the grack repository : http://fpaste.org/JwoB/
<apeiros_> leshop? like, leshop.ch?
jrajav has joined #ruby
<braoru> yeah
<apeiros_> you're interfacing with them or working on that site? :)
<mklappstuhl> when calling methods of a class within that class is prepending self. considered good or bad? to me it seems to improve readability. how do you do it and why?
Goles has quit [Ping timeout: 246 seconds]
<braoru> working .. but don't know if its the right expression :P
<apeiros_> mklappstuhl: I never prepend methods with self
<braoru> but anyway I can't find why it was so simple to run everything but this little app ...
<apeiros_> except for those rare cases where syntax (keyword-named methods) makes it necessary (parens would work too)
<braoru> even my crappy home-made app run well
leifmadsen has joined #ruby
Guest24042 has joined #ruby
<JonnieCache> mklappstuhl: its a matter of taste
zigomir has joined #ruby
<mklappstuhl> JonnieCache, apeiros_ I looked through the github style guide and they don't have anything on that
<mklappstuhl> apeiros_, is there an explicit reason for not doing it?
<apeiros_> mklappstuhl: class methods are methods, if they have something on methods in general, apply that
<apeiros_> mklappstuhl: sure, private methods won't work
RiotingPacifist has joined #ruby
linoj_ has joined #ruby
<RiotingPacifist> How long should the ruby interpreter take to start up on a decent laptop? It looks likes it's hanging but this is the first time I've tried to use ruby?
ExxKA has quit [Quit: This computer has gone to sleep]
<apeiros_> RiotingPacifist: the interpreter alone? less than 10ms
macabre has joined #ruby
<apeiros_> ok, less than 25ms :)
<RiotingPacifist> hmmm ok, is it possible to break ruby by installing gems?
<apeiros_> ah, I guess 1.9 requiring rubygems takes more time. at least I'm pretty sure 1.8 was faster.
keyvan has quit [Remote host closed the connection]
GoGoGarrett has joined #ruby
<RiotingPacifist> ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0] just doesn't seem to start
nari has joined #ruby
<RiotingPacifist> is there a start very verbose, in safe mode flag, --help gave me W but that isn't showing an error
jeffreybaird has joined #ruby
<RiotingPacifist> ok never mind I was being an idiot, thought I could call ruby directly
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
hamed_r has quit [Ping timeout: 246 seconds]
<JonnieCache> oh shit yeah youve just started the interpreter and its waiting for code on stdin
ToTo has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<JonnieCache> dont use 1.8.7 though its old and sucks hard
_nitti has joined #ruby
<RiotingPacifist> yeah I have 1.9.3 through RVM instead was just going for the base install incase I had broken it, as it was happening for both
anderse has joined #ruby
<shevy> RiotingPacifist how did you install rubygems
<RiotingPacifist> was already installed (I think) on OS X
<shevy> any just random gem should not be able to break ruby, but perhaps it's so loaded with bugs that you never want to make use of that gem
<RiotingPacifist> it's all working now i found out i need to use irb
ABK has quit [Ping timeout: 244 seconds]
<shevy> "gem --version" should show 1.8.24
shtirlic_ has joined #ruby
<shevy> :)
rippa has quit [Ping timeout: 248 seconds]
ananthakumaran has quit [Quit: Leaving.]
ever_daniel has joined #ruby
RiotingPacifist_ has joined #ruby
sailias has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
BadProphet has joined #ruby
RiotingPacifist has quit [Ping timeout: 260 seconds]
RiotingPacifist_ is now known as RiotingPacifist
djdb has quit [Remote host closed the connection]
hotovson_ has quit [Remote host closed the connection]
x82_nicole has joined #ruby
ExxKA has joined #ruby
<atmosx> there are little things in life comparable to nutella
tk__ has quit [Quit: ばいばい]
blitzrage has joined #ruby
blitzrage has quit [Read error: Connection reset by peer]
jrist-afk is now known as jrist
bbttxu has quit [Quit: bbttxu]
theRoUS has joined #ruby
_bart has joined #ruby
nick_h_ has quit [Ping timeout: 264 seconds]
nick_h has joined #ruby
ewag has quit [Ping timeout: 255 seconds]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
Leitz has joined #ruby
leifmadsen has quit [Ping timeout: 256 seconds]
iamjarvo has quit [Quit: Computer has gone to sleep.]
Goles has joined #ruby
love_color_text has joined #ruby
<Leitz> Is there a way to invoke "#!/usr/bin/env ruby" with the "-w" flag? Just trying to add it to the line failed.
<apeiros_> Leitz: in sane OSes, yes
<eka> Leitz: you can always do an alias to alias rubyw='ruby -w'
<hoelzro> does env pass flags to the command?
<apeiros_> but I think GNU env didn't support flags for quite a while
<apeiros_> hoelzro: BSD env does
<hoelzro> oh, that's neat
<Leitz> I'm on Fedora 17, so new and at least marginally sane.
<apeiros_> Leitz: you can set RUBYOPT
busybox42 has joined #ruby
<apeiros_> Leitz: hm, so gnu env still doesn't pass flags. I thought they "fixed" that. sad.
<apeiros_> maybe there's some religious reason not to pass the flags.
RiotingPacifist_ has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Leitz> apeiros_, does RUBYOPT go in the usual .bashrc or is there a Ruby specific RC file for it?
<Xeago> it goes in your shell environment
<apeiros_> wherever you set your env vars
<Xeago> doesn't matter where it comes from as long as it is there when you want it to be there
invisime has joined #ruby
RiotingPacifist has quit [Ping timeout: 255 seconds]
RiotingPacifist_ is now known as RiotingPacifist
daniel_-_ has quit [Ping timeout: 246 seconds]
karnowski has joined #ruby
chrisja has joined #ruby
leifmadsen has joined #ruby
poseid has joined #ruby
<Leitz> Well, drat. The ambigous code the book talked about gives the same errors if the -w is there or not.
bigmac has quit [Quit: Leaving]
_bart has left #ruby [#ruby]
<apeiros_> paste?
sn0wb1rd has quit [Quit: sn0wb1rd]
<apeiros_> maybe the book was for an older version of ruby… some of the syntax changed between 1.8 and 1.9
mklappstuhl has quit [Read error: Connection reset by peer]
<Leitz> apeiros_, I usually assume it's operator error. That's usually the culprit. :)
<Leitz> Lemme put something up.
<apeiros_> there aren't that many operators in ruby. most things are methods (e.g. +, - are all methods in ruby)
aaronmcadam has joined #ruby
<Leitz> The book says that f(3+2)+1 and f (3+2)+1 will both work under Ruby without the "-w" but will throw an error with it.
<Leitz> The difference being the ambiguity in the space between f and ().
stopbit has joined #ruby
<apeiros_> -w prints warnings, it doesn't raise errors…
nari has quit [Ping timeout: 246 seconds]
<apeiros_> (and "throw" has an different meaning in ruby than raise))
ABK has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
<Leitz> Ah, sorry. Still a Ruby noobie.
<apeiros_> that's why I tell you :-p
larissa has quit [Quit: Leaving]
<apeiros_> I assume the book means that f() returns an integer
<apeiros_> your fz returns nil
<apeiros_> and nil+1 will raise
cakehero has joined #ruby
<apeiros_> i.e., change your fz to e.g. `def fz(val) val*10 end`
skattyadz has joined #ruby
<Leitz> In the book "f" wasn't defined, they were just talking about the warnings. I'd like to have warnings to help me write better code.
<apeiros_> -w will complain, and you'll get different results for f() vs. f ()
byennen has quit [Remote host closed the connection]
<apeiros_> yeah, the idea is nice. sadly you only get all warnings or none. so you'll get the warnings for all 3rd party libs too
<apeiros_> which makes the whole system rather useless :(
kil0byte_ has joined #ruby
freeayu has quit [Remote host closed the connection]
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
maz-dev has quit [Ping timeout: 240 seconds]
joofsh has joined #ruby
ABK has quit [Read error: Connection reset by peer]
_alejandro has quit [Remote host closed the connection]
ABK has joined #ruby
maz-dev has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
phantasm66 has joined #ruby
<Leitz> Okay, got the warning. Yeah, all or none is a problem, though.
<apeiros_> it's sad because it wouldn't have to be that way
bbttxu has joined #ruby
Agis__ has joined #ruby
<apeiros_> there've been languages before ruby exhibiting the very same problem :-/
<apeiros_> and it's not like there weren't any solutions
samphippen has joined #ruby
xyzodiac has joined #ruby
joukokar has quit [Quit: leaving]
<Leitz> Yeah. Maybe in Ruby 1.10 or something.
ExxKA has quit [Quit: This computer has gone to sleep]
lampe2 has joined #ruby
<k610> how can I access a method's documentation - docstring
Agis__ has quit [Client Quit]
<apeiros_> k610: programmatically?
codecop has quit [Remote host closed the connection]
<k610> i am doing a cli for my gem each method of the gem gets a cli method so i'd like to reuse the docs
<apeiros_> there's no built-in way
<apeiros_> you can use rdoc or yard
<k610> yard seems easier
<k610> how do i get the docstring from there
freezway has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
generalissimo has joined #ruby
fasta has quit [Read error: Connection reset by peer]
nemesit has quit [Quit: Leaving...]
ABK has quit [Read error: Connection reset by peer]
<Leitz> apeiros_, it's funny to see warnings on the default installed rubygems. I see what you mean about warning overload...
ABK has joined #ruby
<apeiros_> Leitz: and it gets worse…
<Leitz> ugh.
soc42 has quit [Remote host closed the connection]
krawchyk_ has joined #ruby
Liothen has quit [Remote host closed the connection]
<k610> how do i get the "yard doc" string from http://pastie.org/5442907
hotovson has joined #ruby
mneorr has joined #ruby
cmo has joined #ruby
rhys has joined #ruby
rhys has quit [Changing host]
rhys has joined #ruby
helllen has joined #ruby
<helllen> helllo
carloslopes has quit [Remote host closed the connection]
<helllen> how can I replace substring with regexp but no case sensitive ?
asobrasil has left #ruby [#ruby]
buibex has joined #ruby
<Xeago> don't you specify /regex/i?
jeffreybaird has joined #ruby
ExxKA has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
<shevy> helllen I think if you append the i after the / as Xeago wrote
krawchyk has quit [Ping timeout: 255 seconds]
Uranio has quit [Quit: WeeChat 0.3.8]
berserkr has quit [Quit: Leaving.]
shtirlic_ has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
niklasb has joined #ruby
dnstbr has joined #ruby
<k610> apeiros_, yes programmatically
odyssey4me has joined #ruby
<apeiros_> k610: as said, use the doc tools
<apeiros_> (and no, I don't know their API by heart, you'll have to read the docs)
helllen has quit [Ping timeout: 245 seconds]
seanyo has joined #ruby
ABK has quit [Read error: Connection reset by peer]
odyssey4me has quit [Client Quit]
yshh has joined #ruby
ABK has joined #ruby
thinker_ has joined #ruby
sk87 has joined #ruby
mybrainis404 has joined #ruby
zommi has quit [Quit: Leaving.]
ewag has joined #ruby
vlad_starkov has joined #ruby
invisime1 has joined #ruby
mmitchell has joined #ruby
byennen has joined #ruby
chimkan has joined #ruby
freezway has quit [Ping timeout: 252 seconds]
jprovazn has quit [Quit: Leaving]
Goles has quit [Remote host closed the connection]
oposomme has joined #ruby
x77686d has joined #ruby
invisime has quit [Ping timeout: 260 seconds]
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Xeago> anyone uses mutt?
<oposomme> hi I would like to know why when i assign foo, bar = '' bar is not reassign in a loop i havs to force with foo = '' and bar = ''?
tobinharris has joined #ruby
m4rtijn has quit [Remote host closed the connection]
<hoelzro> oposomme: you mean the statement foo, bar = ''?
<hoelzro> that code, verbatim?
<oposomme> hoelzro: yes
<hoelzro> maybe you should paste some code =)
<oposomme> ok
Mon_Ouie has joined #ruby
matthewrobbins has joined #ruby
thinker_ has quit [Quit: Leaving]
jlast has joined #ruby
dangerousdave has joined #ruby
helllen has joined #ruby
elsifaka has quit [Quit: Veloma e!]
jdripper has joined #ruby
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
_alejandro has joined #ruby
BigO has joined #ruby
<shevy> oposomme, but you assign only one
<shevy> foo, bar = '',''
<shevy> haha
<shevy> :D
joeycarmello has joined #ruby
<shevy> kinda hilarious
<shevy> foo, bar = ''
<shevy> oops
<shevy> ah yeah
<shevy> in the first, two empty string objects. in the second, one empty string object and one nil object.
shiin has joined #ruby
oposomme has quit [Ping timeout: 245 seconds]
braoru has quit [Quit: Leaving]
aeontech has quit [Quit: aeontech]
eldariof has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
tagrudev has quit [Quit: Me = Awesome]
byennen has quit [Remote host closed the connection]
schaerli has quit [Remote host closed the connection]
rumba has quit [Ping timeout: 246 seconds]
leifmadsen has quit [Ping timeout: 256 seconds]
aaronmcadam has quit [Ping timeout: 246 seconds]
_nitti has quit [Remote host closed the connection]
tomsthumb has quit [Read error: Connection reset by peer]
shorne has quit [Ping timeout: 256 seconds]
Nisstyre has quit [Ping timeout: 260 seconds]
_nitti has joined #ruby
ryanlecompte has joined #ruby
ProT-0-TypE has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
<shevy> coding is way too much effort
Bootstrapper has joined #ruby
tobinharris has quit [Quit: tobinharris]
iamjarvo_ has joined #ruby
ulisescab has joined #ruby
nobuoka has joined #ruby
reinaldob has joined #ruby
xyzodiac has joined #ruby
tobinharris has joined #ruby
joeycarmello has quit [Remote host closed the connection]
matrixise has quit [Ping timeout: 260 seconds]
stat1x has joined #ruby
Bootstrapper has quit [Ping timeout: 240 seconds]
leifmadsen has joined #ruby
xclite has joined #ruby
rippa has joined #ruby
blitzrage has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
love_color_text has quit [Ping timeout: 246 seconds]
bartj3 has quit []
love_color_text has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
leifmadsen has quit [Ping timeout: 248 seconds]
ephemerian has joined #ruby
<D4T> anyone got much experience with the json class?
RiotingPacifist_ has joined #ruby
ottbot has quit [Ping timeout: 260 seconds]
<D4T> I'm not sure if I'm just going mad…. but it feels like the API I'm interacting with doesn't like the order in which the elements are formatted even though its valid JSON
<D4T> not sure what to do about it
topek has quit [Quit: Leaving.]
xsbeats_ is now known as xsbeats
RiotingPacifist has quit [Ping timeout: 260 seconds]
RiotingPacifist_ is now known as RiotingPacifist
mmitchel_ has joined #ruby
SCommette has joined #ruby
aeontech has joined #ruby
helllen has left #ruby ["Saliendo"]
codeFiend has joined #ruby
mklappstuhl has joined #ruby
<waxjar> d4t, what's your question? :)
burgestrand has quit [Quit: Leaving.]
seanyo_ has joined #ruby
seanyo has quit [Ping timeout: 248 seconds]
<D4T> waxjar: let me provide some examples… two secs
tomsthumb has joined #ruby
mmitchell has quit [Ping timeout: 260 seconds]
chimkan has quit [Quit: chimkan]
byennen has joined #ruby
aeontech has quit [Ping timeout: 264 seconds]
codeFiend is now known as aeontech
<D4T> waxjar: http://pastie.org/5443160 that shows the example, and what I'm sending using httparty but its throwing up an error and I have no idea why
<D4T> waxjar: no matter, figured it!
<waxjar> :)
Morkel has quit [Quit: Morkel]
<D4T> good ol' pastie.org opened my eyes a little ;)
<waxjar> id being a String instead of an Integer?
nga4 has joined #ruby
ottbot has joined #ruby
<D4T> haha thats it smarty pants
<D4T> :P
seanyo_ has quit [Ping timeout: 248 seconds]
blitzrage has quit [Ping timeout: 240 seconds]
Snugug has joined #ruby
ltsstar has joined #ruby
carlyle has joined #ruby
Cork has quit [Ping timeout: 276 seconds]
<Snugug> I'm building a gemspec and I'm using Dir.glob to add a bunch of files into the built gem, but I need to change the directories of the files. For example, I need Dir.glob("_text/lib/**/*.*") to be added, but I need it to be added to the gem as lib/**/*.* (aka drop the _test)
<Snugug> How can I do this?
chimkan_ has joined #ruby
Cork has joined #ruby
maesbn has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
fmcgeough has joined #ruby
thym has joined #ruby
Takehiro has joined #ruby
<JonnieCache> call .map on the collection and trim the strings in the usual way?
kidoz has joined #ruby
RiotingPacifist_ has joined #ruby
buibex has quit [Remote host closed the connection]
<D4T> c ya all
D4T has quit [Quit: Textual IRC Client: www.textualapp.com]
danneu has joined #ruby
axl_ has joined #ruby
RiotingPacifist has quit [Ping timeout: 260 seconds]
alex__c2022 has joined #ruby
cmo has quit [Quit: Page closed]
shiin has quit [Ping timeout: 244 seconds]
<thym> Anyone familiar with getting bundle to use debian packages? There's the rubygems-integration package now, but I can't quite get it to go.
havenn has joined #ruby
Uranio has joined #ruby
skattyadz has quit [Quit: skattyadz]
RiotingPacifist has joined #ruby
krawchyk_ has quit [Remote host closed the connection]
RiotingPacifist_ has quit [Ping timeout: 245 seconds]
Takehiro has quit [Remote host closed the connection]
jekotia has joined #ruby
anachronistic has joined #ruby
krawchyk has joined #ruby
davidrhyswhite has quit [Remote host closed the connection]
h4mz1d has joined #ruby
Takehiro has joined #ruby
lufu has joined #ruby
adeponte has joined #ruby
ffranz1 has joined #ruby
Monie has quit [Quit: Quit]
machuga has joined #ruby
mengu has quit [Quit: Konversation terminated!]
<arturaz> has anybody used mina and know if it can be used for copying local files into the server?
generalissimo has quit [Remote host closed the connection]
morf has quit [Quit: eof]
RiotingPacifist_ has joined #ruby
machuga has left #ruby [#ruby]
adeponte has quit [Remote host closed the connection]
ffranz has quit [Ping timeout: 260 seconds]
seanyo has joined #ruby
LiquidInsect has joined #ruby
dankest has joined #ruby
baroquebobcat has joined #ruby
ffranz1 has quit [Quit: Leaving]
mneorr_ has joined #ruby
RiotingPacifist has quit [Ping timeout: 246 seconds]
RiotingPacifist_ is now known as RiotingPacifist
ffranz has joined #ruby
mneorr has quit [Ping timeout: 260 seconds]
poseid has quit [Ping timeout: 245 seconds]
skattyadz has joined #ruby
brianpWins has quit [Quit: brianpWins]
aganov has quit [Remote host closed the connection]
lkba has joined #ruby
apeiros_ has quit [Remote host closed the connection]
a_a_g has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
chimkan_ has quit [Quit: chimkan_]
Bootstrapper has joined #ruby
adeponte has joined #ruby
matrixise has joined #ruby
Snugug has quit [Quit: Snugug]
lufu has quit [Remote host closed the connection]
chimkan has joined #ruby
jrajav has joined #ruby
maz-dev has quit [Ping timeout: 246 seconds]
adeponte has quit [Remote host closed the connection]
maz-dev has joined #ruby
replore_ has joined #ruby
shiin has joined #ruby
joeycarmello has joined #ruby
ExxKA has joined #ruby
davidcelis has quit [Quit: K-Lined.]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
jsmonkey has quit [Quit: Lost terminal]
danneu has left #ruby ["WeeChat 0.3.8"]
havenn has quit [Read error: Connection reset by peer]
Snugug has joined #ruby
havenn has joined #ruby
blazes816 has joined #ruby
h4mz1d has quit [Ping timeout: 245 seconds]
k610 has quit [Ping timeout: 256 seconds]
Neomex has joined #ruby
airstream66 has joined #ruby
cdehaan has joined #ruby
<cdehaan> Hello! I have bundler and jeweler installed, but when trying to do "bundle install," I'm getting: Bundler could not find compatible versions for gem "bundler":
vlad_starkov has quit [Remote host closed the connection]
robustus has joined #ruby
airstream66 has left #ruby [#ruby]
ProT-0-TypE has quit [Ping timeout: 265 seconds]
Neomex has quit [Client Quit]
yshh has quit [Remote host closed the connection]
lindenle has quit [Quit: Leaving]
philips_ has joined #ruby
generalissimo has joined #ruby
u89 has quit [Remote host closed the connection]
kbeddingfield has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mneorr_ has quit [Remote host closed the connection]
daniel_-_ has joined #ruby
u89 has joined #ruby
ABK has quit [Read error: Connection reset by peer]
chussenot has left #ruby [#ruby]
zigomir has quit [Quit: zigomir]
xyzodiac has joined #ruby
ABK has joined #ruby
ryanlecompte has joined #ruby
jackbrownhf has quit [Quit: Sto andando via]
tommyvyo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
buibex has joined #ruby
havenn has quit [Remote host closed the connection]
mneorr has joined #ruby
Monie has joined #ruby
havenn has joined #ruby
BiHi has quit [Ping timeout: 246 seconds]
nemesit has joined #ruby
mahmoudimus has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
geggam has joined #ruby
apeiros_ has joined #ruby
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
BiHi has joined #ruby
krz has quit [Quit: krz]
mmitchel_ has quit [Remote host closed the connection]
x77686d has quit [Ping timeout: 244 seconds]
x82_nicole has quit [Quit: Computer has gone to sleep.]
x77686d has joined #ruby
dr_bob has quit [Quit: Leaving.]
mmitchell has joined #ruby
havenn has quit [Ping timeout: 260 seconds]
dnstbr has quit [Quit: Computer has gone to sleep.]
cdehaan has quit [Quit: Page closed]
atno has quit [Quit: Leaving]
x82_nicole has joined #ruby
timonv has quit [Remote host closed the connection]
enroxorz-work has joined #ruby
jgarvey has quit [Quit: Leaving]
asobrasil has joined #ruby
dnstbr has joined #ruby
anderse has quit [Quit: anderse]
atno has joined #ruby
scriabin has joined #ruby
<scriabin> stupid noob question: if you define a variable in one private function, how do you make it visible to another private function in the same class?
jenrzzz has joined #ruby
tommyvyo has joined #ruby
<eka> scriabin: @myvar
ToTo has quit [Ping timeout: 246 seconds]
<GeekOnCoffee> scriabin: or message passing
<scriabin> that's what I did. hmmmm.
<eka> scriabin: paste your code in any pastebin so we can see
<scriabin> in application.rb in before_filter I define @start_time, in after_filter I define @end_time and try @end_time - @start_time and it says it can't reference @start_time
<scriabin> ok just a sec
axl_ has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: sk87]
berserkr has joined #ruby
stkowski has joined #ruby
<eka> scriabin: ah you are talking about rails?
luki3k5 has joined #ruby
<JonnieCache> in rails everything is a bit different
<eka> scriabin: that's a whole different beast
<scriabin> eka yeah rails - sorry I guess I should be in #rubyonrails
<eka> scriabin: yes :)
<scriabin> but I *thought* this was a ruby issue
atno has quit [Quit: Leaving]
<enroxorz-work> i would like to state that i love ruby. after being forced to work with C# for teh past two days I am ready to come back home to the hoarde.
<eka> scriabin: then let us know ;)
RiotingPacifist_ has joined #ruby
atno has joined #ruby
<JonnieCache> scriabin: for a start, your variables are called @start_datetime yet they contain Time objects, not DateTime
<scriabin> eka aww you're a nice chap
<shevy> enroxorz-work hehehe
chimkan has quit [Quit: chimkan]
<scriabin> JonnieCache: is it possible that the names of my variables could be affecting scope?
<JonnieCache> nope
<JonnieCache> also, youre resetting the variables in the after filter, so the difference will always be zero
<JonnieCache> scriabin: also you should look into around_filter as it will allow you to achieve what you want with just one filter
u89 has quit [Remote host closed the connection]
Ethan2 has joined #ruby
<JonnieCache> scriabin: finally, rails already times all its requests for you. look in the development log
undersc0re97 has quit [Ping timeout: 260 seconds]
<enroxorz-work> shevy: just to scan a string for regex values took 4 lines of code...so inefficient. Time to write a wrapper, I guess...
havenn has joined #ruby
<scriabin> around_filter - brilliant! thanks so much!
replore_ has quit [Remote host closed the connection]
RiotingPacifist has quit [Ping timeout: 245 seconds]
RiotingPacifist_ is now known as RiotingPacifist
davidcelis has joined #ruby
<scriabin> JonnieCache: do you know how to get those times, ala 'rails already times all its requests for you'?
replore has joined #ruby
fasta has joined #ruby
axl_ has joined #ruby
<JonnieCache> if you look in the development server log output, the last line of each request's output includes the times for the view rendering and the db access
mathie has quit [Quit: Bye!]
nobuoka has quit [Quit: Leaving...]
applesarefruits has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
Snugug has quit [Quit: Snugug]
ulisescab has quit [Ping timeout: 260 seconds]
gridaphobe has joined #ruby
kidoz has quit [Quit: Ухожу я от вас]
jenrzzz has quit [Ping timeout: 260 seconds]
replore has quit [Ping timeout: 260 seconds]
moted has joined #ruby
bbttxu has quit [Quit: bbttxu]
Iszak has quit [Quit: Textual IRC Client: www.textualapp.com]
tommyvyo has quit [Ping timeout: 255 seconds]
bbttxu has joined #ruby
sterNiX has joined #ruby
judd7 has joined #ruby
adeponte has joined #ruby
judd7 has quit [Client Quit]
daniel_-_ has quit [Ping timeout: 245 seconds]
Uranio has quit [Ping timeout: 245 seconds]
headius has joined #ruby
judd7 has joined #ruby
sterNiX has quit [Max SendQ exceeded]
Goles has joined #ruby
sterNiX has joined #ruby
Uranio has joined #ruby
mneorr has quit [Remote host closed the connection]
callenb has left #ruby [#ruby]
matrixise has quit [Ping timeout: 265 seconds]
nomenkun has quit [Ping timeout: 246 seconds]
brianpWins has joined #ruby
jlast has quit [Remote host closed the connection]
sterNiX has quit [Max SendQ exceeded]
Uranio has quit [Client Quit]
luki3k5 has quit [Quit: Leaving...]
sterNiX has joined #ruby
joofsh has quit [Ping timeout: 246 seconds]
Aiur has joined #ruby
xyzodiac has joined #ruby
aeontech has quit [Quit: aeontech]
ExxKA has quit [Quit: This computer has gone to sleep]
BiHi has quit [Quit: Computer has gone to sleep]
ABK has quit [Read error: Connection reset by peer]
rovalent has joined #ruby
ExxKA has joined #ruby
mrsolo has joined #ruby
ABK has joined #ruby
judd7 has quit [Quit: judd7]
Michael__ has quit [Ping timeout: 252 seconds]
Roa_ has quit [Quit: leaving]
ABK has quit [Read error: Connection reset by peer]
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
ABK has joined #ruby
Snugug has joined #ruby
jlogsdon has joined #ruby
Takehiro has quit [Remote host closed the connection]
sterNiX has quit [Max SendQ exceeded]
sterNiX has joined #ruby
Roa is now known as Roa
v0n has quit [Ping timeout: 246 seconds]
jlast has joined #ruby
Ethan2 has quit [Quit: Leaving]
undersc0re97 has joined #ruby
robbyoconnor has quit [Read error: Connection reset by peer]
<Xeago> "to represent and act on my behalf"
<Xeago> is the word act used properly, and suitable for formal use?
Eiam has joined #ruby
robbyoconnor has joined #ruby
alfism has joined #ruby
sterNiX has quit [Max SendQ exceeded]
voodoofish has joined #ruby
<shevy> I think so
<shevy> sounds very much like notarial speaking. are you planning your final day already Xeago? ;)
aeontech has joined #ruby
<Xeago> shevy: need an authorization letter to collect stuff from banks
Goles has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
jrajav has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE]
<Xeago> wondering if I should make an authorization letter per task, or a generalized one
gp5st has joined #ruby
x77686d has joined #ruby
<gp5st> is there a library that supports tls-srp?
ExxKA has quit [Quit: This computer has gone to sleep]
dankest has quit [Quit: Leaving...]
ExxKA has joined #ruby
mneorr has joined #ruby
Dwarf has joined #ruby
cdt has quit [Ping timeout: 246 seconds]
Elhu has quit [Quit: Computer has gone to sleep.]
lushious has quit [Quit: "CHRIS HANSEN IS KNOCKING ON MY DOOR"]
tommyvyo has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
timmow has quit [Ping timeout: 252 seconds]
Aiur has quit [Quit: Computer has gone to sleep.]
nat2610 has joined #ruby
apok has quit [Quit: apok]
JonnieCache has quit [Ping timeout: 246 seconds]
_guy has quit [Ping timeout: 260 seconds]
matthewrobbins has quit [Ping timeout: 245 seconds]
hoelzro is now known as hoelzro|away
LBRapid has joined #ruby
LBRapid is now known as Guest81846
c0rn has joined #ruby
tables has joined #ruby
<eka> gp5st: don't know what is that... did google say something?
rovalent has quit [Quit: Linkinus - http://linkinus.com]
chimkan has joined #ruby
<tables> http://rubydoc.info/gems/time_diff/0.3.0/frames <-- i'm new to ruby, how do i do that usage part?
<tables> i'm tryin to make a ruby script that uses that time_diff
daniel_-_ has joined #ruby
<gp5st> eka: google? tls-srp is a password based mutual authentication protocol built into tls. i want to use it in an application but nothing seems to support it:(
<tables> i guess what i want is a ruby hello world
reset has joined #ruby
Aiur has joined #ruby
<davidcelis> puts "hello world"
dmerrick has joined #ruby
<Xeago> gp5st: openssl supports it, didn't someone say that in ##crypto?
mneorr has quit [Read error: Connection reset by peer]
<gp5st> yes it does, that doesn't mean the language bindings do
mneorr has joined #ruby
Guest81846 has quit [Client Quit]
<gp5st> gnutls also supports it
<Xeago> what prevents you from writing that yourself?
LBRapid_ has joined #ruby
<Xeago> that would be a great extension
<gp5st> it won't be supported nearly wide enough for my application to be useful
mrsolo has quit [Quit: This computer has gone to sleep]
<Xeago> then code in c if you need it to run on that many platforms
jackbrownhf has quit [Quit: Sto andando via]
haxrbyte has joined #ruby
<gp5st> the issue is acceptance, not ability
<Xeago> hmm
<tables> http://rubydoc.info/gems/time_diff/0.3.0/frames <-- how do i use this in ruby? i'm new and trying to write a script that calculates the differences between two dates
Vainoharhainen has quit [Quit: Leaving...]
<Xeago> fair point, but out of time
<Xeago> gotta go home
<gp5st> take care
samphippen has quit [Quit: Computer has gone to sleep.]
Xeago has quit [Remote host closed the connection]
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
robbyoconnor has joined #ruby
dnstbr has quit [Quit: Computer has gone to sleep.]
mrsolo has joined #ruby
<tables> Time.diff(Time.parse('2011-03-06'), Time.parse('2011-03-07')) <-- how do i write this in a ruby script properly?
u89 has joined #ruby
<tables> #!/usr/bin/env ruby
<tables> require 'time_diff'
<tables> Time.diff(Time.parse('2010-03-06 12:30:00'), Time.parse('2011-03-07 12:30:30'), '%y, %d and %h:%m:%s')
cakehero has quit [Quit: Computer has gone to sleep.]
<tables> that simple script won't work
<tables> it won't print when i run it like ./myscript.rb
* apeiros_ wonders when people will stop describing their problem as "doesn't work"
<tables> i'm new to ruby
u89 has quit [Remote host closed the connection]
areil has quit [Remote host closed the connection]
<apeiros_> srsly, who in his right mind thinks that this was a useful description in *any* way?
<apeiros_> you don't tell it to print
<tables> https://github.com/abhidsm/time_diff <-- look at examples down there
<apeiros_> puts expression
<tables> i just want a simple shell script that'll print those
<tables> maybe take date1 and date2 as arguments
<apeiros_> Time.diff returns a string. it doesn't print.
<apeiros_> you use puts to print the returned string
elaptics is now known as elaptics`away
<tables> ah i get it now
<tables> put 'puts' in front of it
<tables> lol
<tables> thx
v0n has joined #ruby
<Eiam> not sure if you 'get' it so much as were given an answer but okay
<eka> tables: you can always use google also... look what I found... http://stackoverflow.com/questions/1679266/can-ruby-print-out-time-difference-duration-readily
rdark has quit [Quit: leaving]
verto|off is now known as verto
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
<apeiros_> hm, I think I'll add a new routine.
<apeiros_> whenever somebody says "X doesn't work", I'll reply "your description doesn't work".
<apeiros_> lets see how that works out.
<eka> apeiros_: lol... chill out... new ppl
ewag has quit [Ping timeout: 246 seconds]
<apeiros_> eka: I don't care. if somebody wants help, he/she should be thoughtful about how to get it
u89 has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
<apeiros_> wasting other people's time by not being thoughtful is just outright rude.
<eka> apeiros_: maybe it's a kid... or someone with a kids mind
kil0byte_ has quit [Remote host closed the connection]
u89 has quit [Remote host closed the connection]
<eka> apeiros_: apart from that you are right ;)
jlast has quit [Remote host closed the connection]
<apeiros_> a kid can think too
ABK has quit [Read error: Connection reset by peer]
Trioke has joined #ruby
ABK has joined #ruby
Xeago has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
icole has joined #ruby
Nisstyre-laptop has joined #ruby
voodoofish430 has joined #ruby
Xeago has quit [Remote host closed the connection]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
ABK has quit [Read error: Connection reset by peer]
mukul_d has joined #ruby
dankest has joined #ruby
Spaceboy has quit [Read error: Operation timed out]
ABK has joined #ruby
tenmilestereo has joined #ruby
slainer68 has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
hotovson has quit [Remote host closed the connection]
ossareh has joined #ruby
havenn has quit [Remote host closed the connection]
ever_daniel has quit [Remote host closed the connection]
the_jeebster has joined #ruby
havenn has joined #ruby
ql6wlld1 has quit []
juarlex has joined #ruby
Goles has joined #ruby
egn_ has quit [Quit: leaving]
mascool has joined #ruby
Spaceboy has joined #ruby
cakehero has joined #ruby
rhys has quit [Quit: Leaving]
jdripper has quit [Quit: Leaving.]
havenn_ has joined #ruby
havenn has quit [Read error: Operation timed out]
Xeago has joined #ruby
<the_jeebster> I'm playing with the ruby csv stdlib and I notice that rows are arrays of strings. is there any way to manipulate the string objects? I can't seem to do so by iterating through each row and assigning the value of each item to an integer
Nisstyre-laptop has quit [Quit: Leaving]
roadt has quit [Ping timeout: 256 seconds]
cakehero has quit [Client Quit]
x77686d has joined #ruby
jrist is now known as jrist-afk
<Mon_Ouie> The left side of an assignment isn't an object or a value, it's a variable (or a special method call, or a constant)
cpruitt has joined #ruby
<Mon_Ouie> So you're probably just setting a local variable to some value, which has no effect beyond the scope of your loop
ABK has quit [Read error: Connection reset by peer]
samphippen has joined #ruby
<the_jeebster> so I'm doing something like this...
ABK has joined #ruby
<apeiros_> (a constant is a variable, despite its name)
ABK has quit [Read error: Connection reset by peer]
<the_jeebster> CSV.foreach("filename") do |row|
<the_jeebster> # Rows are arrays of strings
<the_jeebster> row.each do |val1, val2|
<the_jeebster> val1 = val1.to_i
<the_jeebster> print row
<the_jeebster> val2 = val2.to_i
<the_jeebster> end
<the_jeebster> end
ABK has joined #ruby
Xeago has quit [Remote host closed the connection]
* apeiros_ smacks the_jeebster with the topic
<Mon_Ouie> Use pastie.org for pasting code
<the_jeebster> k
<Mon_Ouie> And yes your just setting val1 and val2, it doesn't affect the row object.
<waxjar> row is still an array the_jeebster, it is never altered
<Mon_Ouie> I'd probably use Enumerable#map in this case
<the_jeebster> I was thinking about mapping
chrishunt has joined #ruby
<the_jeebster> waxjar: but I'm enumerating through each object in the row, no?
<the_jeebster> so each object in the array
tables has quit [Read error: Connection reset by peer]
<Mon_Ouie> (map! is closer to modifying row itself, but I doubt it's actually useful, might be faster because it saves the creation of an array)
tables has joined #ruby
<waxjar> yes, but row still points to the array
krawchyk has quit [Remote host closed the connection]
<waxjar> the stuff you put between do and end, is what gets called on the objects of the array (one by one)
<the_jeebster> waxjar: maybe I'm missing something…the way I see it is that I'm iterating through each value of the array
<Mon_Ouie> val1 = val1.to_i sets the local variable val1 to the return value of val1.to_i. The object that was initially referred to by val1 — the string — however is not changed.
krawchyk has joined #ruby
<waxjar> you are yes, but the object you're iterating to is val1 in this case, row is just a variable that holds that array
xyzodiac has quit [Quit: Computer has gone to sleep.]
<Mon_Ouie> And your array still contains a reference to that string, not the integer you got from #to_i
havenn_ has quit [Ping timeout: 264 seconds]
Nisstyre-laptop has joined #ruby
elux has joined #ruby
machty has joined #ruby
lampe2 is now known as lampe2_css_afk
<the_jeebster> ah, so there's really no way to alter the original object without mapping it?
zigidias_ has quit [Quit: cookies!]
<waxjar> map! alters the original array
ABK has quit [Read error: Connection reset by peer]
<waxjar> map returns a new, altered array
<Mon_Ouie> You can't change the class of an object
<waxjar> each just iterates over the array
ABK has joined #ruby
<Mon_Ouie> So you can't turn your string into an integer. You can modify what objects are stored in your array, though.
ABK has quit [Read error: Connection reset by peer]
<the_jeebster> right, so I performed map! and it looks good
<Mon_Ouie> #map! is one way to do that, #[]= another
ABK has joined #ruby
x77686d has quit [Quit: x77686d]
verto is now known as verto|off
thinkdevcode has joined #ruby
havenn has joined #ruby
<the_jeebster> so could I then use row.each to pull out the values of each object in the array and insert them into a range?
<waxjar> quick example: https://gist.github.com/4156105
<Mon_Ouie> What do you mean? Ranges are immutable, you can't insert values in them.
trevortwining has joined #ruby
<the_jeebster> I'm going to create a range based on the array values
InFlames has joined #ruby
<the_jeebster> I have two integer objects in each array (row)
kil0byte has joined #ruby
alexim has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<waxjar> you can use Range.new *row for that, i think
ABK has joined #ruby
<Mon_Ouie> Or just row[0]..row[1] (or row[0].to_i..row[1].to_i)
<Mon_Ouie> Assuming one is the beginning of the range and the other one the end
atno has quit [Read error: Connection reset by peer]
joeycarmello has quit [Remote host closed the connection]
x77686d has joined #ruby
<the_jeebster> Mon_Ouie: I tried that, and I do a puts row[0] and it still prints out the entire csv
atno has joined #ruby
<waxjar> do make sure you really get the iterating stuff though, it'll make your life so much easier
a_a_g has quit [Quit: Leaving.]
RiotingPacifist_ has joined #ruby
<the_jeebster> waxjar: I do for the most part. I think it's how the enumeration is handled in the CSV that's confusing to me
nemesit has quit [Ping timeout: 264 seconds]
<the_jeebster> I understand it in other facets of ruby
micsha has joined #ruby
RiotingPacifist has quit [Ping timeout: 245 seconds]
arietis has joined #ruby
<the_jeebster> it seems that CSV.foreach iterates the entire file as a single row, no matter what
RiotingPacifist has joined #ruby
dmiller has joined #ruby
<micsha> I just have a quick question: if I have an object that has instances variables, can I read from those variables and if so how?
<waxjar> what do you get if you run CSV.each { |row| puts row } ?
<apeiros_> micsha: you provide an accessor to read them
robbyoconnor has quit [Read error: Connection reset by peer]
<apeiros_> micsha: either by defining the method yourself, or by using one of the Module#attr_* methods
robbyoconnor has joined #ruby
kbeddingfield has quit [Remote host closed the connection]
joeycarmello has joined #ruby
mand_ has quit [Ping timeout: 260 seconds]
Zai00 has quit [Quit: Zai00]
RiotingPacifist_ has quit [Ping timeout: 245 seconds]
<micsha> thanks, sorry, i'm still really new to understanding how ruby works.
<micsha> I'm coming from C so this is all completely new to me
nat2610 has quit [Quit: Leaving.]
nat2610 has joined #ruby
nat2610 has quit [Client Quit]
dmiller has quit [Remote host closed the connection]
timonv has joined #ruby
ABK has quit [Read error: Connection reset by peer]
rektide has joined #ruby
ABK has joined #ruby
<rektide> hello. i upgraded a gem "debugger-linecache" which once used to require vm_core.h
gp5st has left #ruby [#ruby]
ABK has quit [Read error: Connection reset by peer]
<rektide> has ruby itself changed at all to help gems such as this not need to include vm_core.h ?
Xeago has joined #ruby
benlieb has joined #ruby
<rektide> how is the gem able to function without vm_core.h ?
ABK has joined #ruby
<micsha> if I don't have an accessor for that object, I can just re-define that object with the accessor, right?
dankest has quit [Remote host closed the connection]
dangerousdave has quit [Quit: Leaving...]
<shevy> micsha what?
dankest has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<shevy> accessors are just method calls over @ivars
<micsha> did i say it wrong?
ABK has joined #ruby
<shevy> attr_accessor :foo is equal to def foo; @foo; end and def foo=(i);@foo = i; end
<shevy> exactly in ruby code
imami|afk is now known as banseljaj
<shevy> so if you have such method names, and lateron also define a new "def foo", then I think the new method will overwrite the old one
<shevy> and you can modify a ruby object at any time
<havenn> syntactic suga!
<shevy> you can remove a method... you can add a method...
<micsha> right.
<waxjar> i think micsha is asking if instance.accesor = 'new object' alters @accessor. ti does
<waxjar> *it
<shevy> so the answer to your question is yes, micsha :-)
brandon|work has joined #ruby
<shevy> yeah it does
<micsha> thanks =)
Xeago has quit [Remote host closed the connection]
<waxjar> well, if you forgive my typo, that is :P
RiotingPacifist has quit [Read error: Connection reset by peer]
<micsha> but, I cannot directly access @foo from an object with out the accessor method, correct? those are private to the object, yes?
u89 has joined #ruby
kbeddingfield has joined #ruby
<micsha> so I can't just say foo.@bar and expect to get the value of @bar, correct?
apeiros_ has quit [Remote host closed the connection]
<Mon_Ouie> There are methods that allow you to cheat, like instance_variable_get(:@bar)
<waxjar> correct
Russell^^ has joined #ruby
<micsha> but for the most part I generally can't do that.
apeiros_ has joined #ruby
<micsha> ok
RiotingPacifist has joined #ruby
bricker has joined #ruby
<waxjar> isn't instance_variable_get/set just an accessor, though?
tvw has quit [Read error: Connection reset by peer]
nat2610 has joined #ruby
apeiros has joined #ruby
Marius has quit [Remote host closed the connection]
arturaz has quit [Remote host closed the connection]
codecop has joined #ruby
<Mon_Ouie> You could see it like that, but specifically for instance variables, and even if they weren't meant to be used outside the class.
<davidcelis> #rubyprivacy
<Mon_Ouie> By constrast, regular accessors make the use of the instance variable an implementation detail
leifmadsen has joined #ruby
<Mon_Ouie> And make it clear they can be used freely
mrsolo has quit [Quit: This computer has gone to sleep]
chrishunt has quit [Quit: Leaving...]
Xeago has joined #ruby
kirun has joined #ruby
jackbrownhf has quit [Quit: Sto andando via]
apeiros_ has quit [Ping timeout: 252 seconds]
chrishunt has joined #ruby
xyzodiac has joined #ruby
stephenjudkins has joined #ruby
jlast has joined #ruby
applesarefruits has quit [Ping timeout: 252 seconds]
mrsolo has joined #ruby
tobinharris has quit [Quit: tobinharris]
RiotingPacifist_ has joined #ruby
tobinharris has joined #ruby
tobinharris has quit [Client Quit]
RiotingPacifist has quit [Ping timeout: 255 seconds]
RiotingPacifist_ is now known as RiotingPacifist
dmiller has joined #ruby
swex has joined #ruby
ExxKA has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
swex_ has quit [Ping timeout: 256 seconds]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
RiotingPacifist_ has joined #ruby
seanyo has quit [Read error: Connection reset by peer]
ProT-0-TypE has joined #ruby
seanyo has joined #ruby
mklappstuhl has quit [Ping timeout: 245 seconds]
apok has joined #ruby
digifiv5e has joined #ruby
luki3k5 has joined #ruby
RiotingPacifist has quit [Ping timeout: 255 seconds]
x82_nicole has joined #ruby
RiotingPacifist_ has quit [Ping timeout: 245 seconds]
ossareh has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
RiotingPacifist has joined #ruby
ossareh has joined #ruby
ABK has quit [Read error: Connection reset by peer]
<waxjar> fair point, what i meant was more that there's still no direct access to instance variables.
arya has quit [Ping timeout: 244 seconds]
ABK has joined #ruby
arya has joined #ruby
kil0byte has quit [Ping timeout: 246 seconds]
Nisstyre-laptop has quit [Ping timeout: 265 seconds]
moted has quit [Ping timeout: 265 seconds]
RiotingPacifist has quit [Read error: Connection reset by peer]
mand_ has joined #ruby
h4mz1d has joined #ruby
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
tables has quit [Ping timeout: 245 seconds]
tables has joined #ruby
krawchyk_ has joined #ruby
rezzack has joined #ruby
slainer68 has joined #ruby
dankest is now known as dankest|away
bjeanes has quit [Ping timeout: 246 seconds]
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
TheFuzzball has quit [Ping timeout: 256 seconds]
krawchyk has quit [Ping timeout: 260 seconds]
love_color_text has joined #ruby
Goles has quit [Remote host closed the connection]
TheFuzzball has joined #ruby
havenn has quit [Read error: Connection reset by peer]
byennen has quit [Remote host closed the connection]
havenn has joined #ruby
Vainoharhainen has joined #ruby
byennen has joined #ruby
dnstbr has joined #ruby
freezway has joined #ruby
fartcop has joined #ruby
krapplefries has joined #ruby
dankest|away is now known as dankest
IPGlider has joined #ruby
lushious has joined #ruby
RiotingPacifist_ has joined #ruby
<krapplefries> i want to make a ruby interpreter in flash script
love_col_ has joined #ruby
emptyflask has joined #ruby
<eka> krapplefries: that's old... ;)
Dan- has joined #ruby
love_color_text has quit [Ping timeout: 246 seconds]
chrishunt has quit [Quit: Leaving...]
mklappstuhl has joined #ruby
<emptyflask> anyone know how to escape square brackets for yard doc comments? I'd like to have some text in the doc that mentions "user['events']", but it keeps getting replaced by "<a href='events'>user</a>"
Nisstyre-laptop has joined #ruby
havenn has quit [Remote host closed the connection]
<krapplefries> emptyflask are you sure youre naming the files .html?
Vainoharhainen has quit [Ping timeout: 244 seconds]
ABK has quit [Read error: Connection reset by peer]
Jamone has joined #ruby
ABK has joined #ruby
<emptyflask> krapplefries: I'm just writing this in ruby comments, with `yard server --reload` running
<krapplefries> yes
<krapplefries> is it in the back yard or the front yard?
RiotingPacifist_ has quit [Read error: Connection reset by peer]
<krapplefries> and how big is your yard?
<krapplefries> would a pool fit in your yard?
nat2610 has quit [Read error: Connection reset by peer]
nat2610 has joined #ruby
ckrailo has joined #ruby
johnmilton has joined #ruby
<emptyflask> the back yard, naturally
spike|spiegel has quit [Quit: WeeChat 0.3.9.2]
carlyle_ has joined #ruby
nazty has joined #ruby
dankest has quit [Ping timeout: 264 seconds]
RiotingPacifist has joined #ruby
shevy has quit [Ping timeout: 246 seconds]
carlyle has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Ping timeout: 244 seconds]
Monie has quit [Ping timeout: 244 seconds]
<emptyflask> the syntax for escaping such stuff with rdoc generation was \user['events'] but that doesn't work with yard
ProT-0-TypE has quit [Ping timeout: 252 seconds]
postmodern has joined #ruby
a_a_g has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
berserkr has quit [Quit: Leaving.]
huoxito has joined #ruby
IPGlider has quit []
micsha has quit [Ping timeout: 260 seconds]
<dominikh> emptyflask: it will depend on the provider (markdown etc) what gets replaced and how to escape it
chrishunt has joined #ruby
tables has quit [Ping timeout: 256 seconds]
<emptyflask> hmm. this is the first time i've ever used yard, so i assume it's using whatever is default
tables has joined #ruby
Xeago has quit [Remote host closed the connection]
tables has quit [Client Quit]
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
volta has quit [Remote host closed the connection]
emmanuelux has joined #ruby
Slivka has joined #ruby
havenn has joined #ruby
claudijd has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
claudijd has left #ruby [#ruby]
RiotingPacifist has quit [Quit: RiotingPacifist]
shevy has joined #ruby
punkrawkR^Home has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
micsha has joined #ruby
brandon|work has quit [Remote host closed the connection]
xyzodiac has joined #ruby
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
elkclone has quit [Changing host]
elkclone has joined #ruby
ABK has quit [Read error: Connection reset by peer]
ABK has joined #ruby
arturaz has joined #ruby
sterNiX has joined #ruby
sterNiX has quit [Changing host]
sterNiX has joined #ruby
ABK has quit [Read error: Connection reset by peer]
Vainoharhainen has joined #ruby
ABK has joined #ruby
fartcop has quit [Read error: Connection reset by peer]
fartcop has joined #ruby
dmiller has quit [Read error: Operation timed out]
JonnieCache has joined #ruby
dangerousdave has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros_ has joined #ruby
Villadelfia has quit [Remote host closed the connection]
SeySayux has quit [Remote host closed the connection]
emptyflask has quit [Remote host closed the connection]
SeySayux has joined #ruby
Villadelfia has joined #ruby
alexim has quit [Quit: sleep]
love_col_ has quit [Remote host closed the connection]
codeFiend has joined #ruby
leifmadsen has quit [Ping timeout: 260 seconds]
sailias has quit [Read error: Connection reset by peer]
sailias1 has joined #ruby
notfunk has quit [Remote host closed the connection]
cakehero has joined #ruby
notfunk has joined #ruby
codeFiend_ has joined #ruby
jrist-afk is now known as jrist
zigidias has joined #ruby
davidcelis has quit [Quit: K-Lined.]
aeontech has quit [Ping timeout: 246 seconds]
<Aiur> Anybody used rbenv before? My 'rbenv version' doesn't match 'ruby -v'
Leitz has quit [Quit: ciao!]
kbeddingfield has quit [Remote host closed the connection]
codeFiend has quit [Ping timeout: 246 seconds]
schaerli has joined #ruby
<havenn> Aiur: Maybe 'rbenv rehash' (something like that?). Not sure, I switched to chruby + ruby-build and never looked back! https://github.com/postmodern/chruby
banisterfiend has joined #ruby
thomas has quit [Read error: Operation timed out]
wchun has quit [Quit: Leaving]
arya has quit [Ping timeout: 244 seconds]
schaerli has quit [Remote host closed the connection]
Snugug has quit [Quit: Snugug]
postmodern has quit [Quit: Leaving]
FredLe has quit [Ping timeout: 260 seconds]
margle has quit [Quit: Computer has gone to sleep.]
<shevy> more ruby means good things
mikepack has joined #ruby
Jamone has quit [Read error: Connection reset by peer]
FredLe has joined #ruby
Monie has joined #ruby
margle has joined #ruby
arya has joined #ruby
trevortwining has quit [Quit: trevortwining]
Monie has quit [Read error: Connection reset by peer]
pyr0commie has joined #ruby
havenn has quit [Remote host closed the connection]
carloslopes has joined #ruby
keyvan has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
havenn has joined #ruby
carloslopes has joined #ruby
keyvan has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
himsin has joined #ruby
dmiller has joined #ruby
Guest24042 has quit [Quit: Guest24042]
rippa has quit [Ping timeout: 250 seconds]
Nisstyre-laptop has quit [Ping timeout: 240 seconds]
leifmadsen has joined #ruby
schaerli has joined #ruby
havenn has quit [Ping timeout: 245 seconds]
grzywacz has joined #ruby
grzywacz has joined #ruby
grzywacz has quit [Changing host]
havenn has joined #ruby
senj has quit []
mneorr has quit [Remote host closed the connection]
aniasis has joined #ruby
<aniasis> hello
<aniasis> I am attempting to install ruby on my server so that I may run a ruby script from my shell
otters has quit [Ping timeout: 252 seconds]
<aniasis> but for some reason I am getting errors.
emptyflask has joined #ruby
matthewrobbins has joined #ruby
<shevy> what errors
<atmosx> aniasis: what OS? if it's linux what distro?
<havenn> aniasis: Can you paste a gist of the errors? How are you installing Ruby? OS?
headius has quit [Quit: headius]
lampe2_css_afk is now known as lampe2
xyzodiac has quit [Quit: Computer has gone to sleep.]
<aniasis> Ubuntu 11.04
schaerli has quit [Remote host closed the connection]
banseljaj has quit [Excess Flood]
answer_42 has quit [Quit: WeeChat 0.3.9.2]
a_a_g has quit [Quit: Leaving.]
banseljaj has joined #ruby
mneorr has joined #ruby
<aniasis> havenn, a list of errro http://pastebin.com/nPciMBuw
Elico has quit [Remote host closed the connection]
canton7 has quit [Excess Flood]
<aniasis> havenn, I install Ruby using the apt-get package manager
canton7 has joined #ruby
nat2610 has quit [Quit: Leaving.]
nat2610 has joined #ruby
nat2610 has quit [Client Quit]
jlwestsr has joined #ruby
Beoran_ has joined #ruby
mklappstuhl has quit [Ping timeout: 265 seconds]
rektide has left #ruby [#ruby]
nat2610 has joined #ruby
banisterfiend has quit [Remote host closed the connection]
<havenn> aniasis: I think the conventional wisdom is to not use the apt-get version. Building from source or using a tool like ruby-build or RVM is a good bet.
kirun has quit [Quit: Client exiting]
jipiboily has joined #ruby
<havenn> aniasis: Packages for building Ruby: sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkgconfig
tnk1 has joined #ruby
jipiboily has left #ruby [#ruby]
ProT-0-TypE has joined #ruby
<havenn> aniasis: My personal recommendation is chruby + ruby-build or RVM.
Vainoharhainen has quit [Quit: Leaving...]
Beoran__ has quit [Ping timeout: 260 seconds]
<reactormonk> err, how do you say 'should be bigger than' in rspec?
kbeddingfield has joined #ruby
seanyo has quit [Ping timeout: 256 seconds]
hackerdude has joined #ruby
jds_ has joined #ruby
ProT-0-TypE has quit [Ping timeout: 265 seconds]
nemesit has joined #ruby
FDj has quit [Read error: Operation timed out]
<aniasis> ok thanks
aniasis has left #ruby [#ruby]
h4mz1d has quit [Ping timeout: 245 seconds]
chrishunt has quit [Quit: Linkinus - http://linkinus.com]
kirun has joined #ruby
hderms has joined #ruby
<hderms> hey
chaplain has joined #ruby
zigidias has quit [Quit: cookies!]
hderms_ has joined #ruby
<hderms_> hey
hderms has quit [Client Quit]
hderms_ has quit [Client Quit]
h4mz1d has joined #ruby
hderms has joined #ruby
<hderms> ugh
<hderms> ugh
kbeddingfield has quit [Ping timeout: 255 seconds]
moted has joined #ruby
ProT-0-TypE has joined #ruby
ltsstar has quit [Quit: ltsstar]
BigO has quit [Remote host closed the connection]
BoomCow has joined #ruby
jds_ has quit [Remote host closed the connection]
lolcathost has joined #ruby
<havenn> aniasis: Oh, you left... anyway not sure if this works by my attempt at chruby + ruby-build Ubuntu instructions: https://gist.github.com/4156894
ProT-0-TypE has quit [Client Quit]
ProT-0-TypE has joined #ruby
theRoUS has quit [Ping timeout: 240 seconds]
hderms has quit [Client Quit]
ProT-0-TypE has quit [Client Quit]
BigO has joined #ruby
joofsh has joined #ruby
ProT-0-TypE has joined #ruby
chaplain has quit [Read error: Connection reset by peer]
ProT-0-TypE has quit [Client Quit]
margle has quit [Quit: Computer has gone to sleep.]
chaplain has joined #ruby
havenn has quit [Remote host closed the connection]
hderms has joined #ruby
lolcathost has quit [Ping timeout: 248 seconds]
generalissimo has quit [Remote host closed the connection]
headius has joined #ruby
Virunga has joined #ruby
hderms has quit [Client Quit]
rezzack has quit [Quit: Leaving.]
BigO has quit [Remote host closed the connection]
zigidias has joined #ruby
chimkan has quit [Quit: chimkan]
chussenot has joined #ruby
dmiller has quit [Remote host closed the connection]
LBRapid_ has quit [Quit: Farewell.]
chussenot has quit [Client Quit]
schaerli has joined #ruby
chaplain has quit [Read error: Connection reset by peer]
chaplain has joined #ruby
nanderoo has quit [Quit: Leaving.]
carlyle_ has quit [Remote host closed the connection]
chaplain has quit [Client Quit]
rezzack has joined #ruby
davidcelis has joined #ruby
BigO has joined #ruby
jgarvey has joined #ruby
dermot has quit [Quit: leaving]
carloslopes has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
burgestrand has joined #ruby
jgarvey has quit [Client Quit]
workmad3 has joined #ruby
codeFiend_ has quit [Quit: codeFiend_]
scriabin has quit [Ping timeout: 245 seconds]
reinaldob has quit [Remote host closed the connection]
reinaldob has joined #ruby
horrror has joined #ruby
horrror is now known as hrr
schaerli has quit [Ping timeout: 260 seconds]
stephenjudkins has quit [Quit: stephenjudkins]
x82_nicole has quit [Quit: Computer has gone to sleep.]
aeontech has joined #ruby
emmanuelux has quit [Quit: emmanuelux]
darthdeus has joined #ruby
Snugug has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
R3dy has joined #ruby
<R3dy> I've managed to jumble up a string in a program I'm working on and it returns like this "A\x00d\x00m\x00i\x00n\x00i\x00s\x00t\x00r\x00a\x00t\x00o\x00r\x00"
reinaldob has quit [Ping timeout: 265 seconds]
<apeiros_> you're looking at binary data
<R3dy> How do I get it to return cleanly with just the ASCII chars
x82_nicole has joined #ruby
h4mz1d has quit [Ping timeout: 264 seconds]
xclite has quit [Remote host closed the connection]
<davidcelis> Administrator
<davidcelis> lolol
<R3dy> right I know what it is
<davidcelis> wasn't somebody in here yesterday with the same problem
<R3dy> I just don't want the output to be messy like that
<davidcelis> but with artist names after extracting from iTunes or some shit
<R3dy> don't know anything about that
xclite has joined #ruby
<R3dy> so I should try to unpack it to Hex then?
<R3dy> i'll try that
<R3dy> nope
ABK has quit [Quit: Leaving]
krawchyk_ has quit [Remote host closed the connection]
<apeiros_> R3dy: you're probably looking at utf-16
tbrock has quit [Quit: Leaving]
<apeiros_> and you should just transcode it to whatever encoding you want. remember though that ascii can't represent all characters of unicode.
AndChat| has joined #ruby
lolcathost has joined #ruby
ltsstar has joined #ruby
[Neurotic] has joined #ruby
carlyle has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 246 seconds]
CharlieSu has quit [Ping timeout: 246 seconds]
<R3dy> got it thanks
segv- has quit [Quit: segv-]
fourcolors has joined #ruby
monkegjinni has joined #ruby
<fourcolors> hi, is it possible to create a file that is 2kb big in ruby?
<shevy> fourcolors yes
<apeiros_> kb? as in kilobit?
apeiros_ has quit [Remote host closed the connection]
ltsstar has quit [Client Quit]
banjara has joined #ruby
<shevy> where is he
<shevy> where did apeiros go
apeiros_ has joined #ruby
<fourcolors> there he is
<apeiros_> he went from wireless to wired
<shevy> fourcolors, I think you can fill in any data you want
FDj has joined #ruby
moted has quit [Remote host closed the connection]
<shevy> kb is killerboogies apeiros_
<apeiros_> ah, that
<apeiros_> no, ruby can't make a 2 killerboogies big file
<shevy> lol
<shevy> hmm
<fourcolors> man, I needed killerboogies
<shevy> fourcolors, let's solve this together
dmiller has joined #ruby
cascalheira has joined #ruby
<fourcolors> ok im looking up the file api
headius has quit [Quit: headius]
ryanf has joined #ruby
<shevy> File.open('test.txt', 'w+') {|file| file.write("\n"*2000) }
<shevy> how about this
moted has joined #ruby
<shevy> what do you say fourcolors
<fourcolors> can you do something like 2.killobytes or something?
<fourcolors> that makes sense
<shevy> test.txt is 2.0K in size
<shevy> that is 2 kilobytes or?
<fourcolors> so n\ is 1 byte?
dmerrick has quit [Quit: dmerrick]
<shevy> if you want something like 2.567, just write a method that replaces the hardcoded 2000 with the input you give
<fourcolors> ya that makes sense
<shevy> def create_a_file(i = 2000); File.open('test.txt', 'w+') {|file| file.write("\n"*i) }; end
<shevy> there
<fourcolors> so Im writing a test for upload sizes
<fourcolors> ok this works I can totally do this
<fourcolors> don't I need to close the buffer or soemthing
<fourcolors> like File.close()
<shevy> the } closes the block there
<shevy> the {}
sailias1 has quit [Quit: Leaving.]
<shevy> if you want, you can do it without {}
<fourcolors> oh cool
<shevy> but using {} is less lines of code and simpler
<shevy> f = File.new("newfile", "w+")
<shevy> f.write 'blablabla'
<shevy> f.close # I think
<shevy> but why write 3 lines!
Steppen has joined #ruby
<fourcolors> haha right
mukul_d has quit [Quit: mukul_d]
RudyValencia has joined #ruby
cmarques has quit [Ping timeout: 240 seconds]
alfism has quit [Quit: alfism]
shorne has joined #ruby
L1 has joined #ruby
<fourcolors> When you open and write to the file does it start at the end of the file? or does it clear all existing data in the file
wchun has joined #ruby
mukul_d has joined #ruby
frem has joined #ruby
arya_ has joined #ruby
jackbrownhf has quit [Quit: Sto andando via]
arya has quit [Ping timeout: 244 seconds]
aeontech has quit [Quit: aeontech]
Guest61468 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
aeontech has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
geekbri has quit [Remote host closed the connection]
jslowe has joined #ruby
u89 has quit [Read error: Connection reset by peer]
Steppen has quit [Ping timeout: 246 seconds]
headius has joined #ruby
kbeddingfield has joined #ruby
emmanuelux has joined #ruby
ChampS666 has joined #ruby
<Cadwallion> fourcolors: that depends upon the mode you opened the file.
<fourcolors> I think I can do file.truncate(0)
love_color_text has joined #ruby
danneu has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
kbeddingfield has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
xyzodiac has joined #ruby
jds_ has joined #ruby
x82_nicole has joined #ruby
lolcathost has quit [Ping timeout: 244 seconds]
kbeddingfield has joined #ruby
lolcathost has joined #ruby
hrr has quit [Quit: hrr]
BoomCow has quit [Quit: This computer has gone to sleep]
stephenjudkins has joined #ruby
BoomCow has joined #ruby
gmci has joined #ruby
dmiller has quit [Remote host closed the connection]
gmci is now known as Guest91972
chimkan_ has joined #ruby
workmad3 has joined #ruby
iamjarvo_ has quit [Quit: Computer has gone to sleep.]
keyvan has quit [Remote host closed the connection]
Nisstyre has joined #ruby
jrunning has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
headius has quit [Quit: headius]
BigO has quit [Remote host closed the connection]
bbttxu has quit [Quit: bbttxu]
jenrzzz has joined #ruby
ExxKA has joined #ruby
senj has joined #ruby
wargasm has quit [Ping timeout: 240 seconds]
ExxKA has quit [Client Quit]
linnea has quit [Read error: Operation timed out]
Brainix has joined #ruby
jlast has quit [Read error: Connection reset by peer]
linnea has joined #ruby
jlast has joined #ruby
linnea is now known as Guest24761
_class_ has joined #ruby
geggam has quit [Ping timeout: 244 seconds]
sailias has joined #ruby
__class__ has quit [Ping timeout: 260 seconds]
dmiller has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
codecop has quit [Quit: Išeinu]
_class_ is now known as __class__
gyre007 has quit [Remote host closed the connection]
zigidias has quit [Ping timeout: 260 seconds]
adeponte has quit [Remote host closed the connection]
apok_ has joined #ruby
adeponte has joined #ruby
joast has quit [Quit: Leaving.]
vasile has joined #ruby
havenn has joined #ruby
apok has quit [Ping timeout: 250 seconds]
apok_ is now known as apok
_nitti has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
<vasile> I'm a ruby novice trying to install a rails app, and I'm struggling to understand the error: /usr/lib/ruby/vendor_ruby/rails/configuration.rb:8:in `<module:Rails>': Configuration is not a module (TypeError) I pasted the full traceback at http://pastebin.com/ZMeSA3VW). Any pointers would be appreciated.
bigmcq77 has quit [Quit: Textual IRC Client: www.textualapp.com]
jlogsdon has quit [Read error: Connection reset by peer]
riley526 has joined #ruby
arya_ has quit [Ping timeout: 244 seconds]
frem has quit [Read error: Connection reset by peer]
arturaz has quit [Remote host closed the connection]
zigidias has joined #ruby
linoj_ has quit [Quit: linoj_]
linoj has joined #ruby
tcdent_ has joined #ruby
dmiller has quit [Remote host closed the connection]
Monie has joined #ruby
tcdent_ has left #ruby [#ruby]
wargasm has joined #ruby
emptyflask has quit [Remote host closed the connection]
Grieg has quit [Quit: laterz! :D]
joast has joined #ruby
zeromodulus has quit [Read error: Connection reset by peer]
<havenn> vasile: Update to Rails 3.2 (and Ruby 1.9.3). For Rails specifics: #RubyOnRails
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<vasile> havenn: Ah, ok. Will do. Thank you.
arya has joined #ruby
zeromodulus has joined #ruby
headius has joined #ruby
twopoint718 has quit [Ping timeout: 265 seconds]
<havenn> vasile: Update Ruby then gem install rails, in that order. :P
Russell^^ has quit [Quit: Russell^^]
<vasile> havenn: I think my rails came from apt-get
<vasile> (It's a Debian box)
<kapowaz> is it possible to add a class method via a module?
mercwithamouth has quit [Ping timeout: 264 seconds]
<havenn> vasile: I just wrote up a Gist earlier today on apt-get install of Ruby through ruby-build and chruby: https://gist.github.com/4156894
tenmilestereo has quit [Quit: Leaving]
<havenn> vasile: Haven't actually tested it yet. >.> I *might* work?
Monie has quit [Read error: Connection reset by peer]
<vasile> havenn: I'll look at it now.
<havenn> vasile: apt-get packages for Ruby are Rails aren't viable, at least not yet.
<havenn> vasile: If it works, let me know!! :O
<vasile> havenn: I will indeed.
justinlilly has quit [Ping timeout: 246 seconds]
TheMoonMaster has quit [Ping timeout: 246 seconds]
Monie has joined #ruby
<waxjar> kapowaz, yes. extend instead of include
arya_ has joined #ruby
fartcop has quit [Ping timeout: 246 seconds]
xybre_ has quit [Ping timeout: 246 seconds]
<havenn> vasile: chruby is awesome... like 50 lines of shell and you even get Ruby name abbreviations.
mark_locklear has quit [Remote host closed the connection]
<havenn> vasile: And ruby-build or RVM are the simplest way to build Ruby imho.
<kapowaz> waxjar: hmm, I was just reading about that — tried it and it doesn't seem to do what I want
justinlilly has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
arya has quit [Ping timeout: 244 seconds]
medik has joined #ruby
xybre has joined #ruby
medik has quit [Excess Flood]
<vasile> havenn: I don't know what Ruby name abbreviations are. I'm just now coming to the language. But anything that is 50 lines of bash and does cool things is pretty awesome in my book.
medik has joined #ruby
TheMoonMaster has joined #ruby
<waxjar> kapowaz: http://pastie.org/5444859
<havenn> vasile: I said that badly. What I mean is fuzzy matching of Rubies by name. (i.e., to install 1.9.3p...: chruby 1.9.3
<vasile> havenn: ah, got it
<kapowaz> waxjar: yeah, but a class method? rather than an instance method…
burntbit has joined #ruby
<vasile> havenn: I hadn't realized it was common to keep multiple Rubies around
<waxjar> see line 11 :)
mascool_ has joined #ruby
<kapowaz> waxjar: aha, so you can define it but without the self.method_name syntax inside the module
<kapowaz> great, thanks :)
<vasile> havenn: I'm guessing that apt-get should be s/pkgconfig/pkg-config/
brianpWins has quit [Quit: brianpWins]
<havenn> vasile: My current installed Rubies (see by typing chruby): 1.9.3-p327, 2.0.0-preview1, jruby-1.7.0, maglev-1.1.0-dev, mruby-dev, rbx-2.0.0-rc1
<havenn> hrmm, I need to install macruby...
tommyvyo has joined #ruby
fartcop has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
emptyflask has joined #ruby
<havenn> vasile: Yeah, oops!
<vasile> havenn: Do normal users usually have a lot of those installed?
<waxjar> i've only got MRI 1.9.3 to be honest
jrist is now known as jrist-afk
jrunning has quit [Quit: leaving]
Guest91972 has quit [Ping timeout: 265 seconds]
mascool has quit [Ping timeout: 265 seconds]
linoj has quit [Quit: linoj]
ner0x has quit [Quit: Leaving]
danneu has quit [Quit: WeeChat 0.3.8]
brandon|work has joined #ruby
monkegjinni has quit [Remote host closed the connection]
<havenn> vasile: I dunno. I think 1.9.3, 2.0.0, jruby and rbx are all pretty common to see these days. Admittedly, maglev and mruby in particular are less common.
<vasile> havenn: Hrm. I'm running Rails 3.2.6 and Ruby 1.9.3p194, so I don't think I need to upgrade after all
mneorr has quit [Remote host closed the connection]
schaerli has joined #ruby
<havenn> RVM and ruby-build let you easily keep up to day.
<havenn> vasile: Ruby 2.0.0 out in Feb!
<havenn> rvm or ruby-build, rather
krapplefries has left #ruby [#ruby]
tommyvyo_ has joined #ruby
hadees has joined #ruby
carlyle has quit [Remote host closed the connection]
<havenn> vasile: P.S. ~ Current Rails is 3.2.9
<havenn> vasile: gem update
eph3meral has joined #ruby
schaerli has quit [Ping timeout: 245 seconds]
dmiller has joined #ruby
benlieb has quit [Read error: Connection reset by peer]
benlieb has joined #ruby
<vasile> havenn: That is pulling down a ton of stuff...
<havenn> vasile: A lot of it is just for compiling gem extensions or ssl support, etc.
<havenn> vasile: I'm fixing the Gist as I do a Mint install :P
blazes816 has quit [Quit: blazes816]
Virunga has quit [Remote host closed the connection]
<kapowaz> do ruby modules have anything akin to a constructor for whenever the module is included?
tbrock has joined #ruby
samphippen has joined #ruby
BadProphet has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
Snugug has quit [Quit: Snugug]
<vasile> havenn: So many versions of ruby! Reminds me of lisp...
elaptics`away is now known as elaptics
phantasm66 has quit [Quit: *sleeeeep*]
pyx has joined #ruby
<vasile> havenn: I gem installed rails and now have 3.2.9 as well as ruby 1.9.3p194. The problem remains unchanged.
<vasile> havenn: What's the first step in understanding the traceback?
<vasile> Is it the case that it's trying to import a thing called Configuration as a module but when ruby looks at it, it's not a module?
<vasile> (traceback is http://pastebin.com/ZMeSA3VW)
<havenn> vasile: That is Rails 2.3.14
nemesit has quit [Ping timeout: 240 seconds]
Ethan2 has joined #ruby
<apeiros_> vasile: sounds like something defines a class Configuration and something else a module Configuration
<apeiros_> and there can only be one Configuration. either a class or a module, not both
<vasile> apeiros_: ok, that's interesting. Is there a tool for finding where an identifier is defined?
<apeiros_> the backtrace tells you where one is being defined
gmci has joined #ruby
<vasile> apeiros_: I'm afraid I don't know how to get that info from that backtrace.
<apeiros_> /usr/lib/ruby/vendor_ruby/rails/configuration.rb:8:in `<module:Rails>': Configuration is not a module (TypeError)
<apeiros_> first line
gmci is now known as Guest65901
<apeiros_> first line is the last line of code which was executed
<vasile> Right. So does that mean there's a bug in /usr/lib/ruby/vendor_ruby/rails/configuration.rb?
<vasile> And how would I find the competing definition?
<havenn> vasile: A problem on line 8 of that file, a TypeError.
<apeiros_> it says: in file "/usr/lib/ruby/vendor_ruby/rails/configuration.rb" on line 8, within the context `<module:Rails>' the exception TypeError with message "Configuration is not a module" happened
<havenn> vasile: That is not Rails 3 though. You either need to bundle, or change your Gemfile or generate a new app, or something. :P
undersc0re97 has quit [Ping timeout: 260 seconds]
katherinem13 is now known as katherinem13_brb
<vasile> Ok, I understand the error at a superficial level.
mklappstuhl has joined #ruby
<vasile> havenn: If I installed the latest ruby and rails, why is it still using something that is not rails 3?
ryanlecompte has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
<havenn> vasile: Did you generate the app with Rails 2?
ryanlecompte has joined #ruby
<havenn> vasile: Updating your gem doesn't update the app.
<eph3meral> vasile: there's also #rubyonrails
<havenn> ^
<havenn> vasile: To remove old gems: gem cleanup
<vasile> havenn: Ah, ok. Sorry I'm a ruby newb. the words you're writing are starting to make more sense as this conversation goes on.
<vasile> I'll take my question to #rubyonrails.
<vasile> I appreciate the help. Thank you very much.
xclite has quit [Remote host closed the connection]
nemesit has joined #ruby
<havenn> vasile: G'luck!
jrajav has joined #ruby
<vasile> havenn: Thanks much.
nari has joined #ruby
Averna has joined #ruby
Averna has quit [Client Quit]
xclite has joined #ruby
stkowski has quit [Quit: stkowski]
chimkan_ has quit [Quit: chimkan_]
burntbit has quit [Ping timeout: 245 seconds]
ewag has joined #ruby
shtirlic has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
chimkan has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
jlast has quit [Remote host closed the connection]
jeffreybaird has quit [Quit: jeffreybaird]
matthewrobbins has joined #ruby
jimeh has quit [Quit: Computer has gone to sleep.]
tyfighter has joined #ruby
micsha has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
jeffreybaird has joined #ruby
alanp_ has joined #ruby
alanp_ has quit [Read error: Connection reset by peer]
byennen has quit [Remote host closed the connection]
nat2610 has quit [Quit: Leaving.]
GoGoGarrett has quit [Remote host closed the connection]
alanp_ has joined #ruby
jlast has joined #ruby
Ethan2 has quit [Quit: Leaving]
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
undersc0re97 has joined #ruby
nemesit has quit [Quit: Leaving...]
kaichanvong has joined #ruby
alanp has quit [Ping timeout: 246 seconds]
nat2610 has joined #ruby
ikaros has quit [Quit: Ex-Chat]
emmanuelux has quit [Quit: emmanuelux]
mmitchell has quit [Ping timeout: 264 seconds]
carlyle has joined #ruby
matthewrobbins has quit [Quit: matthewrobbins]
Monie has quit [Read error: Connection reset by peer]
carlyle has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 245 seconds]
stopbit has quit [Quit: Leaving]
gabrielrotbart has joined #ruby
jds_ has quit [Remote host closed the connection]
FredLe has quit [Quit: Leaving.]
kbeddingfield has quit [Remote host closed the connection]
dagnachew has joined #ruby
<dagnachew> hi all
<mklappstuhl> any ideas how to get a File object from a ZipFile (http://rdoc.info/github/aussiegeek/rubyzip/master/frames)
macabre has quit [Remote host closed the connection]
<mklappstuhl> I dont want to save it to a specific file but return it with a function
blacktulip has quit [Remote host closed the connection]
elux has quit [Quit: Bye!]
<havenn> mklappstuhl: Maybe: https://github.com/Hanmac/libarchive-ruby
<heftig> mklappstuhl: for writing or reading a file?
<mklappstuhl> heftig, I want to return a file from a zip with a method
<heftig> get_output_stream
<mklappstuhl> heftig, so readin I guess
<heftig> er, whoops
<mklappstuhl> heftig, I tried that already.
<heftig> get_input_stream
Ankhers has joined #ruby
<mklappstuhl> heftig, ah okay
darthdeus has quit [Quit: Leaving...]
<mklappstuhl> heftig, this doesn't return the file though (Zip::ZipInputStream instead)
<mklappstuhl> there is a file object in @decompressor/@inputStream but how do I access that?
lampe2 has quit [Ping timeout: 264 seconds]
stkowski has joined #ruby
Michael_ has joined #ruby
Ankhers has quit [Remote host closed the connection]
katherinem13_brb is now known as katherinem13
Goles has joined #ruby
<heftig> mklappstuhl: that's the zip file itself
<heftig> won't help you
<heftig> just use the ZipInputStream as you would a File
<heftig> you can call read and stuff on it
Goles_ has joined #ruby
<mklappstuhl> heftig, is there no way to return a regular File object?
<heftig> ni.
<heftig> no.
eph3meral has quit [Quit: eph3meral]
<voodoofish430> anyone know of a good tutorial on activerecord?
<mklappstuhl> voodoofish, there is a good railscast called "understanding active record" which also explains some of the internal things
<mklappstuhl> (I think that was the name
<havenn> voodoofish430: Mostly AR if I recall?: http://railsforzombies.org/
tommyvyo has quit [Quit: Computer has gone to sleep.]
tommyvyo_ is now known as tommyvyo
<voodoofish430> ahh, that could be useful
ikaros has joined #ruby
anachronistic has quit [Quit: anachronistic]
<mklappstuhl> heftig, hm, ok. seems wierd
<voodoofish430> thanks guys!
dross has quit [Ping timeout: 245 seconds]
Goles has quit [Ping timeout: 245 seconds]
<heftig> mklappstuhl: the only file you're working with here is the zipfile itself
otters has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
<mklappstuhl> heftig, So how would I use read on that?
<heftig> its contents aren't files
<mklappstuhl> I basically want a method that returns one specific file which is inside the zip file so that this file can be saved elsewhere
jenrzzz has quit [Ping timeout: 240 seconds]
<heftig> ZipInputStream is that
<mklappstuhl> and I'd like to decouple that as much as possible from the zip-handling etc
jrist-afk is now known as jrist
Michael_ has quit [Remote host closed the connection]
<mklappstuhl> couldn't I convert such stream into a file? (I guess a File object is always bound to specific file on disc, that might be the problem—did I get this right?)
maz-dev has quit [Ping timeout: 255 seconds]
dangerousdave has quit [Quit: Leaving...]
maz-dev has joined #ruby
<heftig> mklappstuhl: yes.
<heftig> (that's the problem)
BoomCow has quit [Quit: This computer has gone to sleep]
SCommette has quit [Quit: SCommette]
R3dy has quit [Ping timeout: 245 seconds]
otters has quit [Ping timeout: 265 seconds]
BoomCow has joined #ruby
trevortwining has joined #ruby
snorkdude has joined #ruby
<mklappstuhl> heftig, ok, got it. Any advice then how to return the file contents and maybe the original filename? (I described the original problem above)
<mklappstuhl> I basically want a method that returns one specific file which is inside the zip file so that this file can be saved elsewhere
chimkan has quit [Quit: chimkan]
<heftig> don't you already know the name?
<heftig> reading from the input stream will get you the contents
axl_ has quit [Read error: Connection reset by peer]
Goles has joined #ruby
machty has quit [Quit: machty]
fourcolors has quit [Remote host closed the connection]
buibex has quit [Remote host closed the connection]
stephenjudkins has quit [Quit: stephenjudkins]
Michael_ has joined #ruby
Goles_ has quit [Ping timeout: 246 seconds]
axl_ has joined #ruby
<mklappstuhl> yeah but for saving the file somewhere later on the file name would be good to know the right suffix... at least easier than deriving it from the content I guess
chimkan_ has joined #ruby
buibex has joined #ruby
dagnachew has quit [Quit: Leaving]
Goles_ has joined #ruby
jds_ has joined #ruby
fir_ed has joined #ruby
jlast has quit [Remote host closed the connection]
ChampS666 has quit [Ping timeout: 255 seconds]
Guest19599 has quit [Quit: Leaving]
trevortwining has quit [Quit: trevortwining]
Goles_ has quit [Read error: Connection reset by peer]
Goles has quit [Ping timeout: 245 seconds]
Michael_ has quit [Remote host closed the connection]
dnstbr has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Michael_ has joined #ruby
Goles has joined #ruby
nateberkopec has quit [Quit: Leaving...]
leifmadsen has quit [Quit: Peas out homey]
Goles_ has joined #ruby
forced_request has joined #ruby
baroquebobcat has joined #ruby
stephenjudkins has joined #ruby
jimeh has joined #ruby
Goles__ has joined #ruby
beiter has quit [Quit: beiter]
Goles has quit [Ping timeout: 245 seconds]
lolcathost has quit [Ping timeout: 250 seconds]
emptyflask has quit [Remote host closed the connection]
wargasm has quit [Ping timeout: 252 seconds]
jds_ has quit [Ping timeout: 260 seconds]
lolcathost has joined #ruby
lolcathost has quit [Client Quit]
Michael_ has quit [Remote host closed the connection]
Goles_ has quit [Ping timeout: 260 seconds]
kolbe has joined #ruby
g-ram has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
<mklappstuhl> heftig, any advice? :)
<heftig> mklappstuhl: what are you missing?
greenarrow has quit [Quit: IRC is just multiplayer notepad]
keyvan has joined #ruby
keyvan has quit [Changing host]
keyvan has joined #ruby
<kolbe> is this a reasonable place to ask about Active Record? I'm wondering if there is some way to set a default query timeout (JDBC Statement.setQueryTimeout()) since afaict it's not possible to access the Statement object used by Active Record to do this myself
<kolbe> hm perhaps #RubyOnRails would be a better channel for this question!
<shevy> kolbe dont think many people here know active record well
<atmosx> kolbe: you can ask here for starters and try #rails also
<shevy> I for example dont know anything about it so I could not help
<mklappstuhl> heftig, for saving the file somewhere later on the file name would be good to know the right suffix... at least easier than deriving it from the content I guess
<atmosx> I know it has something to do with rails and they it interacts with mysql (or other db)
<atmosx> do I win a cookie?
<kolbe> atmosx: i would gladly give you a cookie!
<shevy> you win one night with queen merkel from germany!
<atmosx> nah, I don't like her
eroc has quit [Quit: eroc]
<heftig> mklappstuhl: what file name?
<atmosx> can I pick another German girl? There are so many cute out there
keyvan has quit [Read error: Operation timed out]
<mklappstuhl> heftig, the file name of the file I would be able to access if I simply unzip the archive
<heftig> mklappstuhl: it can contain many files.
<mklappstuhl> yes, but as I said I want to give access to one specific file (an image in that case)
<heftig> so you need to know the name of that file
<shevy> atmosx no you must pick the ugliest ones, I am sorry :(
<mklappstuhl> I know that
<heftig> then what's the problem?
tbrock has quit [Quit: Computer has gone to sleep.]
otters has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]