apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p327: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
mahmoudimus has joined #ruby
Adget has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
freeayu has joined #ruby
dmiller has joined #ruby
lenodroid has quit [Read error: Connection reset by peer]
lenodroid has joined #ruby
jeffreybaird has quit [Quit: jeffreybaird]
babykosh has quit [Quit: babykosh]
snorkdude has joined #ruby
byennen_ has quit [Remote host closed the connection]
byennen has joined #ruby
jeffreybaird has joined #ruby
byennen has quit [Read error: Connection reset by peer]
byennen has joined #ruby
acoyfellow has quit [Ping timeout: 260 seconds]
tbrock has joined #ruby
jeffreybaird has quit [Client Quit]
piotr has quit [Ping timeout: 256 seconds]
caleb_io has quit [Quit: caleb_io]
byennen has quit [Ping timeout: 252 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
lampe2 has joined #ruby
machty has quit [Quit: machty]
jrunning_ has joined #ruby
lolcathost has joined #ruby
AxonetBE has joined #ruby
nhnate has quit [Remote host closed the connection]
seanstickle has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
tenmilestereo has quit [Quit: Leaving]
jhunter has quit [Ping timeout: 264 seconds]
jhunter has joined #ruby
Virunga has quit [Remote host closed the connection]
ttt_ has joined #ruby
deepgray has joined #ruby
<deepgray> hi guys
love_color_text has joined #ruby
awarner has quit [Remote host closed the connection]
lenodroid has quit [Remote host closed the connection]
ttt_ has quit [Ping timeout: 245 seconds]
freeayu has quit [Remote host closed the connection]
keyvan has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
jsilver_ has joined #ruby
snorkdude has quit [Quit: snorkdude]
love_color_text has quit [Ping timeout: 255 seconds]
eka has quit [Remote host closed the connection]
phelps has joined #ruby
whowantstolivef0 has quit [Quit: quit]
jsilver has quit [Ping timeout: 248 seconds]
bluesnow has left #ruby [#ruby]
jellosea has left #ruby [#ruby]
<slash_nick> hi
thone has joined #ruby
snorkdude has joined #ruby
snorkdude has quit [Client Quit]
byennen has joined #ruby
snorkdude has joined #ruby
thone_ has quit [Ping timeout: 256 seconds]
icole has quit [Remote host closed the connection]
statarb3 has quit [Quit: Leaving]
ltsstar has quit [Quit: ltsstar]
acoyfellow has joined #ruby
headius has joined #ruby
cableray has quit [Quit: cableray]
Adget has quit [Ping timeout: 252 seconds]
malkomalko has joined #ruby
mneorr has quit [Remote host closed the connection]
byennen has quit [Ping timeout: 256 seconds]
dzhulk has quit [Quit: Leaving.]
mneorr has joined #ruby
nhnate has joined #ruby
nhnate has quit [Remote host closed the connection]
staafl has quit [Ping timeout: 265 seconds]
axl_ has quit [Read error: Connection reset by peer]
Proshot has joined #ruby
axl_ has joined #ruby
rellin has quit [Ping timeout: 260 seconds]
bluesnow has joined #ruby
ikaros has quit [Quit: Ex-Chat]
<bluesnow> Hi, I'm working through the rails tutorial and at "rails generate controller home index"
<bluesnow> That added get "home/index" to my routes.rb
<bluesnow> Can anyone tell me what 'get "home/index"' means?
<bluesnow> It doesn't look like a URL mapping..
_alejandro has joined #ruby
banisterfiend has joined #ruby
<slash_nick> thinking about modeling real world mathy stuff... any gem dependencies I should think about using?
bluesnow has left #ruby [#ruby]
<seanstickle> haskell?
emergion has joined #ruby
joeycarmello has joined #ruby
<slash_nick> bluesnow: yeah... "get 'home/index'" will infer you want to route a get request 'home/index' to the controller action HomeController#index .... it a
Russell^^ has joined #ruby
Markvilla has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
joeycarmello has quit [Ping timeout: 246 seconds]
Slivka has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
Proshot has quit [Remote host closed the connection]
Proshot has joined #ruby
axl_ has quit [Quit: axl_]
headius has quit [Quit: headius]
AxonetBE has quit [Quit: Leaving.]
samphippen has quit [Quit: Computer has gone to sleep.]
byennen has joined #ruby
hsbt is now known as hsbt_away
byennen has quit [Read error: Connection reset by peer]
deepgray has quit [Read error: Connection reset by peer]
byennen has joined #ruby
snorkdude has quit [Quit: snorkdude]
whitedawg has joined #ruby
volty has joined #ruby
snorkdude has joined #ruby
acoyfellow has quit [Ping timeout: 255 seconds]
<volty> hi, shorthand for obj.kind_of?(ClassA) || obj.kind_of?(ClassB) .... ?
joeycarmello has joined #ruby
axl_ has joined #ruby
<banisterfiend> volty: ClassA === obj || ClassB === obj
snorkdude has quit [Client Quit]
Rym has joined #ruby
ttt_ has joined #ruby
<volty> banisterfiend: i would like something like obj.one_of?(ClassA, ClassB, ...) // do i have to write the method?
ossareh has joined #ruby
byennen has quit [Ping timeout: 245 seconds]
<banisterfiend> volty: well u can do: [CLassA, ClassB].any? { |v| v === obj }
Markvilla has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<volty> banisterfiend: nice, i forgot that way, i'll wrap that one, thx :)
hsbt_away is now known as hsbt
huoxito has joined #ruby
ISF has joined #ruby
headius has joined #ruby
ttt_ has quit [Ping timeout: 276 seconds]
<volty> class Object; def any_of?(*a); a.any? { |v| v === self }; end; end; // right?
ryanlecompte has joined #ruby
whitedawg has quit [Quit: Leaving.]
MattHulse has joined #ruby
whitedawg has joined #ruby
whitedawg has quit [Client Quit]
<MattHulse> I am trying to pass the background color into code that generates an image using RMagick. I set background to the passed in value and then I run the following:
<MattHulse> img = Image.new(100,100){ self.background_color = background }
<MattHulse> It raises an error because background is nil in the block.
codecaster has quit [Quit: Leaving.]
jsilver_ has quit [Quit: Leaving...]
r4um has quit [Ping timeout: 264 seconds]
jsilver has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<MattHulse> Admittedly I've been away from Ruby for awhile. Is this expected behavior in 1.9.2?
r4um has joined #ruby
jrunning_ has quit [Ping timeout: 248 seconds]
ircmouser has quit [Ping timeout: 260 seconds]
<apeiros_> MattHulse: you're not showing why background should not be nil
<apeiros_> therefore - impossible to tell
<MattHulse> The previous line is background = "black"
<apeiros_> then no, not expected
rellin has joined #ruby
<volty> y = 5; class A; attr_accessor :x; end; a = A.new() { self.x = y }; puts a.x # => nil ruby-1.8.7
dpg has left #ruby [#ruby]
nyrb has quit [Remote host closed the connection]
Rym has quit [Quit: Rym]
nyrb has joined #ruby
<apeiros_> volty: of course
<apeiros_> the block isn't executed at all
<volty> ah :) thx
<apeiros_> add a proper initialize and it'll change.
<volty> ops, sorry, i forgot, maybe so: the block gets executed with initialize
<apeiros_> if you just yield, it'll raise
axl_ has quit [Quit: axl_]
<volty> if initialize, ok, thx
<apeiros_> you have to instance_eval the block (otherwise self isn't a, but main)
seanstickle has left #ruby [#ruby]
skattyadz has quit [Quit: skattyadz]
banisterfiend has quit [Ping timeout: 250 seconds]
<MattHulse> Okay, I left out an important detail it seems. background is an instance variable of my class. I assumed the same would happen when simplifying the example.
<apeiros_> MattHulse: stupid idea to leave out such information
<apeiros_> an ivar is NOT the same as an lvar.
<MattHulse> The code I posted works fine. It's this code that doesn't:
<apeiros_> if you make an example, make sure it does what you think it does. otherwise it's entirely useless.
<MattHulse> @background = "black"
<MattHulse> ImageMagick.new(100,100){self.background_color = @background}
<apeiros_> MattHulse: of course it won't work
<apeiros_> an ivar is bound to the same object that is represented by self
<apeiros_> and obviously Image::new instance_eval's the passed block
<apeiros_> otherwise, how'd self.background_color= work?
<apeiros_> so your @background refers to your new Image instance's @background, and that, of course, is nil.
<MattHulse> Wow, things have changed since I last worked with Ruby.
<apeiros_> when have you last worked with ruby?
<apeiros_> because instance_eval exists for 8y+
<MattHulse> I'm referring to being insulted in the IRC channel.
<MattHulse> thanks for the help
MattHulse has left #ruby [#ruby]
<volty> MattHulse: apeiros_ is precious anyway, don't be too sensible
<apeiros_> he left
<apeiros_> and obviously he's not capable between making the difference between insult and telling somebody that he did something stupid
<apeiros_> gah, minus first "between"
BoomCow has joined #ruby
slainer68 has joined #ruby
<volty> look, i, like him, leave ruby from time to time, but at least, when i see something strange, i do not use the same names for the variables
byennen has joined #ruby
vasile has quit [Ping timeout: 246 seconds]
<apeiros_> that's fine. but that's not the same as using different constructs.
<apeiros_> it's even fine to use different constructs. but before you ask, you verify that the problem still exists.
Banistergalaxy has quit [Ping timeout: 246 seconds]
<volty> agree
<apeiros_> not doing so is stupid. there isn't much to argue about that.
<apeiros_> but doing something stupid ain't the same thing as *being* stupid. and I didn't say that he was stupid.
axl_ has joined #ruby
<cout> just because something is stupid doesn't mean you have to say that it is :(
<volty> it depends on the kindness of the stupid too :)
dmiller has quit [Ping timeout: 260 seconds]
* cout scratches head
<cout> volty: english isn't your first language, is it?
axl_ has quit [Client Quit]
<volty> not at all, my dear
<cout> volty: I know what you are saying but your choice of words tickles :)
<volty> it depends upon the kindness of the stupid?
<cout> yes, that
<volty> tell me that i write in a stupid way, honey :)
<cout> and "don't be too sensible"
<apeiros_> cout: I see no value in talking around issues. it doesn't matter in what words you wrap a fact, the fact remains the same.
pyx has joined #ruby
<cout> apeiros: I didn't say anything about talking around issues
<volty> :) not at all, i know enough, i'm old enough, smart enough, know what i don't know
<cout> apeiros: but if you don't want me to talk around the issue, then I'll be blunt
icole has joined #ruby
<volty> apeiros_: mah, when you see a short man you don't say to him that he's short, do you? :)
<apeiros_> volty: if he asks me
<cout> apeiros: your choice of wording was, simply, stupid :(
<apeiros_> cout: so how'd you have said it?
<volty> but this pure man didn't ask you if his piece of code was stupid ? :)
<apeiros_> volty: read the backlog
<volty> poor
<apeiros_> I didn't say his code was stupid
<apeiros_> I said his act of NOT CHECKING that his example exhibited the behavior he asked about, was stupid
<jrajav> I might tell a short man that he's short if he came into a room full of people and asked why he couldn't reach the top shelf at a grocery store
<cout> apeiros: I probably would have said "oh, yeah, that's kind of important"
<apeiros_> cout: see, dressing up words
<apeiros_> tell me the truth in flowers…
iPhoneMRZ has joined #ruby
<cout> it's not dressing up anything
<apeiros_> yes it is
Xeago has quit [Remote host closed the connection]
<apeiros_> it's stupid not to check your example first.
<cout> no, it isn't
<apeiros_> it defeats the purpose of making the example in the first place.
<cout> you were simply being mean to make yourself feel better
<cout> that's stupid.
<apeiros_> cout: you're wrong.
<cout> I'm not wrong.
<volty> some people come here to ask when they are tired and desperate
<apeiros_> very much so.
xcvd`` has quit [Read error: Connection reset by peer]
bluesnow has joined #ruby
<bluesnow> Hi, I'm new to Rails
<volty> otherwise they could fix by themselves - if not stupid enough :)
<bluesnow> Generate scaffold created a posts_path, but I don't see the path when I type rake routes
<bluesnow> How does posts_path work?
byennen has quit [Ping timeout: 264 seconds]
<cout> bluesnow: try asking in #rubyonrails
jeffreybaird has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<volty> it's stupid to ask in a wrong channel :)
_nitti has joined #ruby
ossareh has quit [Ping timeout: 252 seconds]
<volty> rdoc has problems when encountering :1
<volty> rdoc has problems when encountering :@1
<volty> rdoc has problems when encountering :$1
<volty> sorry
bluesnow has left #ruby [#ruby]
<apeiros_> volty: you're stretching it :-p
Monie has joined #ruby
twopoint718 has quit [Ping timeout: 244 seconds]
<volty> it was strech.pop; strech.empty? => true
bigmac has quit [Ping timeout: 265 seconds]
_nitti has quit [Ping timeout: 260 seconds]
dorei has joined #ruby
<shevy> stretching the pop
phantasm66 has joined #ruby
iPhoneMRZ has quit [Ping timeout: 255 seconds]
jackdanger has joined #ruby
Michae___ has joined #ruby
nyrb has quit [Remote host closed the connection]
nyrb has joined #ruby
nkts has quit []
<apeiros_> cout: ok, while talking with matthulse, I read the scrollback. and I did indeed not write what I wanted to express.
<apeiros_> I did write that leaving out the information was stupid. what I wanted to refer to was that not checking an example was stupid.
<apeiros_> I agree that what I wrote was not good. But I stand by my opinion that a) not fact-checking examples is stupid, and b) it should be pointed out as such.
<shevy> well he had no patience anyway
<shevy> he should argue with zenspider on #ruby-lang :>
Michae___ has quit [Remote host closed the connection]
<shevy> hmmm
araujo has quit [Quit: Leaving]
<volty> what about "you should fact-check your examples, for the joy of my patience" ? :)
mercwithamouth has joined #ruby
<shevy> are people reading english letters faster than people who read chinese symbols?
<shevy> volty hehe. I think if you help people a lot over many weeks, you become impatient with them, and you try to bring them to the point where they are more efficient in demonstrating the problem they have
<volty> shevy: i don't beleive so, anyway they read with different side of brain
LouisGB has quit [Ping timeout: 260 seconds]
<shevy> yeah, well they often face a problem and dont understand what happens, so they don't think about being terse, succint, concise. it's like someone having lost the way and needs help to find the way again
<shevy> RMagick died years ago too :(
<shevy> like the ruby GUI toolkits ...
<apeiros_> shevy: maybe you should go jruby - swing is afaik live and kicking…
<apeiros_> but from what I hear from manveru, so is Tk
<shevy> hmmm
<volty> true, they have to exercise and develop the right connections from the one to the other side of the brain :)
bradhe has joined #ruby
<shevy> I could bite the bullet and learn java ... it's either java or C .....
<volty> what was rmagick about ?
<shevy> it was a wrapper over ImageMagick
niklasb has quit [Read error: No route to host]
mahmoudimus has joined #ruby
byennen has joined #ruby
charliesome has joined #ruby
<apeiros_> shevy: hm? just use ruby on jruby. no java involved.
<apeiros_> you can use the java classes without a line of java afaik
<shevy> hehe
<shevy> hmm I even have java installed ...
<shevy> java version "1.7.0_07"
<shevy> well, I will give swing a try
<shevy> can't be worse than tk ...
<volty> unless a lot of calling, i prefer to build commands and call with system
Proshot has quit [Quit: Leaving]
ttt_ has joined #ruby
<shevy> you mean system('bla')?
emsilva has quit [Quit: Computer has gone to sleep.]
<shevy> for GUIs?
<shevy> I think I have a few thousand commandline .rb scripts by now
<volty> yes, for gui's too
<shevy> would be nice to arrange them all into GUIs / Gui-like components
<shevy> hmmm
freeayu has joined #ruby
<shevy> how do you do that volty?
jackdanger has quit [Quit: Leaving.]
<volty> building the command string, translating the variables and queuing into the string
bigmac has joined #ruby
dmiller has joined #ruby
moshee has quit [Ping timeout: 260 seconds]
<volty> possibly putting the output on /dev/shm (or equiv on windows) for faster writing & reading back
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<shevy> hmmmmm interesting
mrsolo has joined #ruby
<shevy> volty you dont happen to have some simple example for that that could work?
<shevy> or know where I could look that up
ttt_ has quit [Ping timeout: 245 seconds]
jackdanger has joined #ruby
<volty> one of the next days i hope, big mess here
eka has joined #ruby
<shevy> ok cool
<volty> shevy: anyway, a wrapper arround imagemagick cannot be that different from the cli options
<volty> (i mean you have to learn it anyway)
jrajav has quit [Quit: I tend to be neutral about apples]
eka has quit [Ping timeout: 248 seconds]
Monie has quit [Quit: Quit]
jackdanger has quit [Quit: Leaving.]
jeffreybaird has quit [Quit: jeffreybaird]
GoGoGarrett has joined #ruby
Michae___ has joined #ruby
otters has quit [Ping timeout: 246 seconds]
pu22l3r has joined #ruby
freeayu has quit [Remote host closed the connection]
jeffreybaird has joined #ruby
jackdanger has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 246 seconds]
InFlames has quit [Read error: Connection reset by peer]
igro has joined #ruby
otters has joined #ruby
<apeiros_> it's so annoying that you have to remember passing -1 as second arg to split…
Spaceboy1 has joined #ruby
sailias has joined #ruby
ISF has quit [Ping timeout: 255 seconds]
<volty> def full_split ˙
Spaceboy has quit [Ping timeout: 276 seconds]
xkx has quit [Quit: WeeChat 0.3.7]
lolcathost has quit [Ping timeout: 256 seconds]
havenn has joined #ruby
sailias has quit [Quit: Leaving.]
havenn has quit [Remote host closed the connection]
Hanmac has quit [Ping timeout: 255 seconds]
LouisGB has joined #ruby
dorei has quit [Read error: Connection reset by peer]
<jsilver> what is the best way to convert ruby into C so it can be run for long periods of time, with stable memory management and no zombies
<jsilver> tried RubyToC and got this: https://gist.github.com/4186558
<charliesome> jsilver: don't bother
<jsilver> thought so
<jsilver> may rewrite the server in node
<jsilver> the server i have now is fine, for 10-100 people lets say, but the memory is very bad.. in any ruby
pipopopo has quit [Ping timeout: 250 seconds]
Ruler_Of_Heaven_ has joined #ruby
_nitti has joined #ruby
cj3kim has joined #ruby
rellin has quit [Ping timeout: 264 seconds]
slainer68 has quit [Remote host closed the connection]
<charliesome> jsilver: it's probably more an issue with your code rather than ruby
Tombar has quit [Remote host closed the connection]
<charliesome> is your code up on github or something?
volty has quit [Quit: Konversation terminated!]
burgestrand has quit [Ping timeout: 264 seconds]
burgestrand1 has joined #ruby
Tombar has joined #ruby
jackdanger has quit [Quit: Leaving.]
machty has joined #ruby
_nitti has quit [Ping timeout: 256 seconds]
mercwithamouth has quit [Ping timeout: 255 seconds]
k611 has quit [Ping timeout: 256 seconds]
Hanmac has joined #ruby
h4mz1d has joined #ruby
paolooo has joined #ruby
paolooo has quit [Client Quit]
ryanlecompte has quit [Read error: Connection reset by peer]
paolooo has joined #ruby
<jsilver> charliesome: yes
gbchaosmaster has joined #ruby
<jsilver> the main thing im profiling is GChatServ.rb in master /
<gbchaosmaster> msg nickserv identify hunter2
<gbchaosmaster> messages[-2].delete
<jsilver> there's an easy crossplatform client and a macruby client "gem install globalchat" .. thats gui... for console you can just use client_console.rb in master
mrsolo has quit [Ping timeout: 245 seconds]
ttt_ has joined #ruby
mrsolo has joined #ruby
sailias has joined #ruby
<swarley> As I reach a point of desperation, I have to ask here for some opinions on the way I'm doing this https://raw.github.com/gist/4186786/c1b08668fe68886941b187b31665de9e8e51b2af/gistfile1.rb . Thoughts on how it could be done a little more elegantly? It's in raw because it's just one big YARD comment. But I'm trying to make this API better and I need some opinions
ttt_ has quit [Ping timeout: 276 seconds]
kuzushi has quit [Remote host closed the connection]
r0bby has joined #ruby
robbyoconnor has quit [Ping timeout: 246 seconds]
Bosox20051 has joined #ruby
c0rn has joined #ruby
Russell^^ has quit [Quit: Russell^^]
slash_nick has quit [Ping timeout: 265 seconds]
slainer68 has joined #ruby
jackdanger has joined #ruby
ossareh has joined #ruby
mrsolo has quit [Quit: Leaving]
krawchyk has joined #ruby
techhelp has joined #ruby
otters has quit [Ping timeout: 265 seconds]
slainer68 has quit [Ping timeout: 245 seconds]
malkomalko has quit [Ping timeout: 264 seconds]
Kruppe has quit [Remote host closed the connection]
lenovodroid has joined #ruby
Michae___ has quit [Remote host closed the connection]
lolcathost has joined #ruby
dmiller has quit [Remote host closed the connection]
sorbo_ has quit [Quit: sorbo_]
igro has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
cosjef has joined #ruby
cosjef has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
jekotia has quit [Ping timeout: 246 seconds]
prox|a is now known as virtualentity
ranjan is now known as Guest49392
mercwithamouth has joined #ruby
xsbeats_ has quit [Ping timeout: 248 seconds]
BoomCow has quit [Quit: This computer has gone to sleep]
jekotia has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
slash_nick has joined #ruby
h4mz1d has quit [Ping timeout: 260 seconds]
BoomCow has joined #ruby
postmodern has joined #ruby
_nitti has joined #ruby
skaczor has joined #ruby
jackdanger has quit [Quit: Leaving.]
L1 has joined #ruby
_nitti has quit [Ping timeout: 264 seconds]
kiwnix has quit [Quit: Saliendo]
jackdanger has joined #ruby
jackdanger has quit [Client Quit]
replore_ has joined #ruby
pu22l3r has quit [Remote host closed the connection]
cj3kim has quit [Quit: This computer has gone to sleep]
jlwestsr has joined #ruby
tbrock has joined #ruby
mahmoudimus has joined #ruby
jarred_ has quit [Quit: jarred_]
cj3kim has joined #ruby
replore_ has quit [Remote host closed the connection]
sorbo_ has joined #ruby
Drekonus has joined #ruby
icole has quit [Remote host closed the connection]
Elico has joined #ruby
ossareh has quit [Ping timeout: 260 seconds]
krawchyk has quit [Remote host closed the connection]
Drekonus has quit [Remote host closed the connection]
sorbo_ has quit [Client Quit]
ttt has joined #ruby
ttt has quit [Ping timeout: 276 seconds]
skaczor has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
otters has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
nari has joined #ruby
Chryson has joined #ruby
phanousit has joined #ruby
phanousit is now known as siameseguy
radic has joined #ruby
wargasm has joined #ruby
ebobby has quit [Quit: Lost terminal]
radic_ has quit [Ping timeout: 252 seconds]
dmiller has quit [Remote host closed the connection]
cj3kim has joined #ruby
r0bby is now known as robbyoconnor
slainer68 has joined #ruby
Takehiro has quit [Remote host closed the connection]
zaki has quit [Read error: Operation timed out]
jeffreybaird has quit [Quit: jeffreybaird]
_alejandro has quit [Remote host closed the connection]
xsbeats has joined #ruby
c0rn has quit []
daniel_hinojosa has joined #ruby
SCommette has joined #ruby
slainer68 has quit [Ping timeout: 245 seconds]
michu has joined #ruby
<michu> hi what's a good book for a complete beginner with no programming experience ?
tbrock has quit [Quit: Computer has gone to sleep.]
lushious has quit [Ping timeout: 252 seconds]
<ozzloy> SICP
icole has joined #ruby
<charliesome> ozzloy: sicp is a pretty heavy text even for experienced programmers
<ozzloy> it actually assumes no programming experience
dmiller has joined #ruby
lenovodroid has quit [Ping timeout: 265 seconds]
dmiller has quit [Read error: Connection reset by peer]
c0rn has joined #ruby
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
<ozzloy> michu, why's poignant guide is good. pretty sure it'd be ok for someone without programming experience, but i haven't seen it
<ozzloy> er... haven't seen someone with no programming experience read through it
lushious has joined #ruby
dmiller has joined #ruby
zaki has joined #ruby
<jsilver> never recommend why's poignant guide
dmiller has quit [Read error: Connection reset by peer]
<jsilver> waste of time
ner0x has joined #ruby
<jsilver> don't bother
x82_nicole has joined #ruby
<charliesome> has anyone actually read through all of the poignant guide
dmiller has joined #ruby
<ozzloy> me
icole has quit [Remote host closed the connection]
<charliesome> ozzloy: you're one of the rare few
<tos9> I got about 5 lines in before the terrible sense of humor sent me packing.
<ozzloy> i'm surprised at that response. i found it fun to read and informative
rtd has joined #ruby
<jsilver> really
<jsilver> i hate the drawings
<jsilver> :)
SCommette has quit [Quit: SCommette]
<jsilver> couldnt stand it
<charliesome> i liked the drawings and all that, i just hated how much fluff there was
<charliesome> it could be about a quarter of the size and still have as much relevant content
<tos9> Yeah. That too. I kept skipping forward hoping to finally get to something useful.
<ozzloy> how did you feel about dwemthy's array?
dmiller has quit [Ping timeout: 244 seconds]
c0rn has quit [Ping timeout: 260 seconds]
<ozzloy> michu, do you already have ruby installed?
<michu> ozzloy: yes
<michu> came with slackware :-)
<ozzloy> cool, first hurdle cleared
<ozzloy> you're actually over what could have been a huge time-sink
<michu> hehe
<ozzloy> slackware, eh?
<ozzloy> i think about trying that every once in a while. maybe in a vm.
<michu> yup can't leave it :P
<ozzloy> what made you choose slackware?
<michu> yup it's good stuff , all the dev tools you need come with the dvd iso
<michu> that's why i mainly use it
<michu> well not all you need but i mean the basic stuff
LouisGB has quit [Ping timeout: 264 seconds]
thistle_ has joined #ruby
<ozzloy> well if why's poignant guide isn't your style, maybe this: http://pine.fm/LearnToProgram/?Chapter=01 i haven't read it, but it seems to address the issues mentioned by jsilver and charliesome
<charliesome> michu: ruby -v
<michu> ozzloy: ah okay thanks
<charliesome> if you're on 1.8, you need to get a newer ruby
techhelp has quit [Quit: This computer has gone to sleep]
mneorr has quit [Remote host closed the connection]
<jsilver> what issues?
<michu> charliesome: Ruby 1.9.3-p194
<michu> :-)
<charliesome> oh cool
<ozzloy> the bad drawings and fluffy-not-ruby-related text
mneorr has joined #ruby
<ozzloy> jsilver, ^
lampe2 has quit [Ping timeout: 265 seconds]
c0rn has joined #ruby
<charliesome> that's the first distro besides arch i've seen come with a ruby that's even slightly up to date
<jsilver> ozzloy: agreed
<michu> charliesome: oh nice :p
<ozzloy> michu, "all the dev tools" makes me suspect you're coming to slackware from some version of ms windows. is this the case?
lenovodroid has joined #ruby
<michu> ozzloy: no sorry what i meant to say is that it comes with git mercurial , programming languages , compilers etc.. on the dvd iso , really like that because i don't have internet all the time :/
sailias has quit [Quit: Leaving.]
n1x has joined #ruby
<ozzloy> if so, you might try any other distribution, like ubuntu. compared to ms windows, they all come with "all the dev tools", or have them easily available through a package manager (like an app store)
<ozzloy> man, i'm getting tons of lag
<ozzloy> michu, oh, i see
rjj has joined #ruby
Takehiro has joined #ruby
<michu> ozzloy: you see i really can't install ubuntu and install stuff later because i don't have a working internet connection , but with slackware a lot of stuff is already in the iso
<ozzloy> yeah, that makes sense
rjj has left #ruby [#ruby]
<ozzloy> i take internet for granted.
<michu> man hopefully i'll get my own internet connection some day *sigh*
<michu> ozzloy: haha yeah man just get disconnected for months and you'll wish you valued your "internet" time more :p
<ozzloy> best of fortune to you!
dzhulk has joined #ruby
<michu> thanks !
jekotia has quit [Quit: sleep/runaway]
<michu> grrr tons of lag here
<ozzloy> yeah, i'm appreciating it right now. thanks for giving me contrast
<michu> :-)
nhnate has joined #ruby
mneorr has quit [Ping timeout: 255 seconds]
roadt_ has joined #ruby
wereHamster has quit [Remote host closed the connection]
wereHamster has joined #ruby
wereHamster has quit [Changing host]
wereHamster has joined #ruby
<foucist> michu: what sort of internet do you have?
<ozzloy> so you're not new to unix-y OSes
<michu> foucist: right now ? none but i'm at a family member's house we have at&t u-verse
rohit has joined #ruby
<michu> ozzloy: nope!
<michu> just programming
<michu> really want to get into web dev to earn some money
arya has joined #ruby
<ozzloy> rails is a good way to do that
<foucist> michu: web dev wise, javascript is the bomb.. and ruby on rails too
<ozzloy> so ruby is good
Takehiro has quit [Ping timeout: 265 seconds]
ananthakumaran has joined #ruby
<michu> foucist: yeah awesome stuff !
<michu> ozzloy: awesome
<ozzloy> rails-for-zombies comes to mind. i started it. it seemed pretty gentle.
aharris6 has joined #ruby
snorkdude has joined #ruby
ttt has joined #ruby
<ozzloy> oh
<michu> ozzloy: is it free ?
ewag has joined #ruby
<ozzloy> that's totally on the internets though. yeah. or it was free when i did it
<michu> it's some sort of video tutorials right ?
<ozzloy> yeah
<michu> grrrrr yeah that will be a problem lol
ctwiz has joined #ruby
<foucist> michu: just dl lots of books and videos all at once onto a usb stick or external drive perhaps?
<michu> foucist: yeah that's what i can do for now
dzhulk has quit [Quit: Leaving.]
<ozzloy> while you have internet, read through this: http://tryruby.org/levels/1/challenges/0
ctwiz has left #ruby [#ruby]
caleb_io has joined #ruby
ttt has quit [Ping timeout: 276 seconds]
<michu> ozzloy: oh nice thanks i'll do that , btw omg i can download the rails for zombies videos and slides from their site !
<ozzloy> oh you can? awesome
jrunning_ has joined #ruby
tomsthumb has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
n1x has quit [Quit: Ex-Chat]
postmodern has quit [Quit: Leaving]
<foucist> michu: pm
arya has quit [Ping timeout: 244 seconds]
xsbeats has quit [Ping timeout: 252 seconds]
arya has joined #ruby
jonahR has joined #ruby
jrunning_ has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
rellin has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
michu has quit [Quit: Page closed]
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
jrunning_ has joined #ruby
cardoni has joined #ruby
rtd has quit [Quit: rtd]
mahmoudimus has quit [Remote host closed the connection]
fyolnish has quit [Remote host closed the connection]
icole has joined #ruby
headius has quit [Quit: headius]
icole has quit [Read error: Connection reset by peer]
Takehiro has quit [Ping timeout: 265 seconds]
jeffreybaird has joined #ruby
icole has joined #ruby
jeffreybaird has quit [Client Quit]
centipedefarmer has quit [Remote host closed the connection]
jlwestsr has quit [Quit: Ex-Chat]
coj has joined #ruby
mahmoudimus has joined #ruby
byennen has quit [Remote host closed the connection]
rohit has quit [Quit: Leaving]
Slivka has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
postmodern has joined #ruby
Slivka has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
greg- has joined #ruby
swex_ has joined #ruby
Vert has joined #ruby
swex has quit [Ping timeout: 246 seconds]
cardoni has quit [Ping timeout: 265 seconds]
<coj> for rails, can someone point me to a way to delay a job by a specific time and modify the delay as needed? so i can update the db only when the user hasn't made any change for 5min, for example.
ryanlecompte has joined #ruby
<iamjarvo_> do you guys see ways of improving this script http://pastie.org/private/sbwl9x8naf0glyle4bvscq
A124 has joined #ruby
<iamjarvo_> con why don't you have a cron task running
<iamjarvo_> coj ^
<heftig> coj: where is the state saved before its put into the db?
<coj> a cron task executes at various intervals, doesn't it? what i want is a rolling expiry time, say 5min
<coj> i'm working in rails, so i'm not sure how to store an impermanent state
thistle_ has quit [Remote host closed the connection]
<iamjarvo_> you can make it persist and then delete it or change it after your requirements happen
thistle_ has joined #ruby
nhnate has quit [Remote host closed the connection]
<iamjarvo_> you can run the job every minute
<coj> but then i'd just be hitting the DB every time the user made the change, which is what i was trying to avoid
<coj> *made a change
joofsh has quit [Remote host closed the connection]
thistle_ has quit [Remote host closed the connection]
<siameseguy> hey guys, I'm making a tic tac to game, but I'm having trouble implementing the win condition. can someone help me?
Takehiro has joined #ruby
<reactormonk> siameseguy, go on...
<siameseguy> I'm using a hash to store the inputs
thistle_ has joined #ruby
huoxito has quit [Quit: Leaving]
<siameseguy> i just need to inter ate through it every time a play remakes a move and if make a row then they win
<heftig> much faster.
<heftig> benchmark it!
<siameseguy> question is, how to i make the game realize that someone has won?!
lenovodroid has quit [Ping timeout: 250 seconds]
thistle_ is now known as stylus_
<reactormonk> siameseguy, you're using a sparse matrix - I'd use a full one here. But that's detail
<siameseguy> reactormonk: I'm not sure what that means
<heftig> siameseguy: by looking at the game board and checking if there's a row, a column or a diagonal that's all the same symbols
capaterra has quit [Ping timeout: 265 seconds]
<iamjarvo_> heftig can you explain whats going on in the enumerator.new?
<reactormonk> siameseguy, wikipedia
<heftig> iamjarvo_: it creates an infinite sequence
_bry4n has joined #ruby
<siameseguy> heftig: how do i do that? heres my code so far
<iamjarvo_> hrm
ttt has joined #ruby
nyrb has quit [Ping timeout: 248 seconds]
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
tommyvyo has quit [Quit: Computer has gone to sleep.]
<heftig> siameseguy: eww, spaghetti code, and recursive at that
fyolnish has joined #ruby
<heftig> iamjarvo_: basically, taking one value from the sequence runs the code until the y << a (which outputs one value). then it's paused there until the next value is requested
<iamjarvo_> heftig o ok. i will have to play with it to understand. its way faster though
nyrb has joined #ruby
ttt has quit [Ping timeout: 276 seconds]
Zta has quit [Ping timeout: 255 seconds]
caleb_io has quit [Quit: caleb_io]
Takehiro has quit [Read error: Connection reset by peer]
_bry4n has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
z has joined #ruby
r4um has quit [Quit: leaving]
<heftig> iamjarvo_: your recursive code calculates fib(7) as fib(2) + fib(1) + fib(2) + fib(2) + fib(1) + fib(2) + fib(1) + fib(2) + fib(2) + fib(1) + fib(2) + fib(2) + fib(1)
<heftig> iamjarvo_: the calls of fib(x) explode as n increases, you're not reusing already-calculated values at all, and you're doing a whole new recursion for each step of the loop
pcarrier has joined #ruby
<iamjarvo_> heftig yea
<iamjarvo_> thank you
capaterra has joined #ruby
fyolnish has quit [Ping timeout: 256 seconds]
centipedefarmer has quit [Remote host closed the connection]
siameseguy has quit [Quit: siameseguy]
generalissimo has joined #ruby
nari has quit [Ping timeout: 265 seconds]
generalissimo has quit [Read error: Connection reset by peer]
daniel_hinojosa has quit [Quit: Leaving.]
ikaros has joined #ruby
arya has quit [Ping timeout: 244 seconds]
generalissimo has joined #ruby
h4mz1d has joined #ruby
BoomCow has quit [Quit: This computer has gone to sleep]
c0rn has quit []
arya has joined #ruby
baphled has quit [Read error: Connection reset by peer]
aharris6 has quit [Remote host closed the connection]
haxrbyte has joined #ruby
macabre has quit [Remote host closed the connection]
Elico has quit [Remote host closed the connection]
keyvan has quit [Remote host closed the connection]
sepp2k1 has quit [Remote host closed the connection]
bapa has quit [Read error: Connection reset by peer]
bapa has joined #ruby
bigmac has quit [Ping timeout: 256 seconds]
postmodern has quit [Ping timeout: 260 seconds]
jaygen has joined #ruby
pcarrier has quit []
love_color_text has joined #ruby
Elico has joined #ruby
dukedave has quit [Quit: Leaving.]
Bosox20051 has quit [Quit: Leaving]
_nitti has joined #ruby
iamjarvo_ has quit [Quit: Computer has gone to sleep.]
x82_nicole has joined #ruby
fir_ed has quit [Ping timeout: 256 seconds]
Elico has quit [Remote host closed the connection]
_nitti has quit [Ping timeout: 260 seconds]
ryanlecompte has quit [Read error: No route to host]
dmiller has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
mercwithamouth has joined #ruby
stylus_ has quit [Remote host closed the connection]
stylus_ has joined #ruby
bigmac has joined #ruby
guille has joined #ruby
arya has quit [Ping timeout: 244 seconds]
lolcathost has quit [Quit: lag]
postmodern has joined #ruby
lolcathost has joined #ruby
ikaros has quit [Quit: Ex-Chat]
horrror has joined #ruby
<horrror> guys - how effective does those shazam-like apps that you can humm and it identifies your song?
fyolnish has joined #ruby
haxrbyte has quit [Ping timeout: 244 seconds]
<foucist> horrror: so effective does they
<horrror> huh?
arya has joined #ruby
ttt has joined #ruby
<heftig> horrror: Has anypony really been far even as decided to use even go want to do look more like?
<horrror> ;]
andre____ has joined #ruby
andre____ is now known as andrewhl
paolooo has quit [Quit: Page closed]
<andrewhl> is there a way I could refactor this? https://gist.github.com/4187602
medik has quit [Quit: Leaving]
ttt has quit [Ping timeout: 276 seconds]
<andrewhl> I originally had self.accounts.any? { |account| account.event.id == event_id }; but it choked if any of the accounts did not have an event
pcarrier has joined #ruby
<andrewhl> just wondering if there's a way to condense the whole thing down to one line
fyolnish has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
love_color_text has quit [Remote host closed the connection]
<horrror> not one line, but you can account.event.id == event_id if account.event
snorkdude has quit [Quit: snorkdude]
nobuoka has joined #ruby
<Hanmac> horrror & andrewhl: self.accounts.any? { |account| account.event && account.event.id == event_id }
<andrewhl> Hanmac: nice, thanks
<horrror> nice
<horrror> btw why r u '==' and not '=' ?
<Hanmac> horrror google it
rippa has joined #ruby
<horrror> i know that = is for setting and == for comparing
<andrewhl> == is equality
eldariof has joined #ruby
<andrewhl> =~ is comparison
<Hanmac> horrror than you know why "==" and not "="
jrunning_ has quit [Ping timeout: 264 seconds]
<andrewhl> horrror: .any? evaluates the block to true or false; so it needs to be a logical operation and not an assignment
<Hanmac> andrewhl: =~ is for regexmatching (i dont know of comparison is the right word for that)
<andrewhl> Hanmac: sorry, was trying to fuzzy match his semantics:) I know
<andrewhl> Hanmac: but regex is closer to a comparison than strict equality... I guess
<Hanmac> <=> is needed for Comparison
<Hanmac> === is also interesing (i dont have the right word for that)
x82_nicole has quit [Quit: Computer has gone to sleep.]
<horrror> andrewhl: comparing is an action which results in either equally or not
<andrewhl> Hanmac: I believe the word is identity
<horrror> correct
<Hanmac> no
<Hanmac> === is used for that: Array === [] #=> true
<Hanmac> (1..10) === 5 #=> true
rakunHo has joined #ruby
Vert has quit [Read error: Connection reset by peer]
jrunning has quit [Ping timeout: 265 seconds]
<heftig> Hanmac: case equality
Vert has joined #ruby
slainer68 has joined #ruby
<Hanmac> yeah i want to show them that "identity" is not the right word ... we are not #php :P
<heftig> Hanmac: er, or more correctly, "case subsumption"
slainer68 has quit [Ping timeout: 264 seconds]
generalissimo has quit [Remote host closed the connection]
arya has quit [Ping timeout: 244 seconds]
Proshot has joined #ruby
arya has joined #ruby
slash_nick has quit [Ping timeout: 244 seconds]
aquagrunty has joined #ruby
aquagrunty is now known as nil
nil is now known as aquagrunty
jlogsdon has joined #ruby
arya has quit [Ping timeout: 244 seconds]
arya has joined #ruby
werdnativ has joined #ruby
danneu has quit [Ping timeout: 245 seconds]
<werdnativ> I have an occurrence object that wraps a @start_time and delegates to it.
<werdnativ> I'd like to be able to do: Time.now - Occurrence.new(Time.now - 60) # should == 60
postmodern has quit [Ping timeout: 264 seconds]
coj has quit []
ner0x has quit [Remote host closed the connection]
<werdnativ> I can make it work the other way when my occurrence is on the left… is it possible?
jwang has joined #ruby
nomenkun_ has joined #ruby
nomenkun has quit [Ping timeout: 246 seconds]
<werdnativ> Looking at the method source here: http://www.ruby-doc.org/core-1.9.3/Time.html#method-i-2D it looks like the receiver doesn't coerce the argument… I'm guessing I can't write a to_time method or anything to make it work.
horrror has quit [Quit: horrror]
jlogsdon has quit [Remote host closed the connection]
Neomex has joined #ruby
LBRapid has joined #ruby
LBRapid is now known as Guest97770
Guest97770 has quit [Client Quit]
arya has quit [Ping timeout: 244 seconds]
LBRapid_ has joined #ruby
arya has joined #ruby
rippa has quit [Ping timeout: 255 seconds]
<werdnativ> Just tried redefining the minus method on Time, but it says it has no superclass method when I call super in it.
<Hanmac> werdnativ you need to use alias
<Hanmac> bzw alias_method
<charliesome> werdnativ: if you redefine a method, calling super won't call the original method, it'll look in ancestors
<charliesome> Hanmac: i like to avoid fucking with aliases. if performance isn't an absolute priority, imo it's best to keep a reference to the original Method
<werdnativ> oh, right… thanks. or include it via module or something.
katherinem13_out is now known as katherinem13_bed
postmodern has joined #ruby
<charliesome> werdnativ: also, it doesn't call to_time or anything, but time_add() does call to_int or to_r
oGMinor has joined #ruby
<werdnativ> so that means there's no sane built-in way for Time to diff a non-Time object?
rellin has quit [Ping timeout: 264 seconds]
<charliesome> it doesn't look like it
LBRapid_ has quit [Read error: Connection reset by peer]
s1n4 has joined #ruby
araujo has joined #ruby
Neomex has quit [Quit: Neomex]
postmodern has quit [Ping timeout: 248 seconds]
h4mz1d has quit [Ping timeout: 260 seconds]
rippa has joined #ruby
LBRapid_ has joined #ruby
u89 has quit [Remote host closed the connection]
LBRapid_ has quit [Read error: Connection reset by peer]
Beoran_ has joined #ruby
icole has quit [Remote host closed the connection]
LBRapid_ has joined #ruby
Beoran__ has quit [Ping timeout: 246 seconds]
elkclone has joined #ruby
LBRapid_ has quit [Read error: Connection reset by peer]
aetcore has joined #ruby
lolcathost has quit [Ping timeout: 255 seconds]
arya has quit [Ping timeout: 244 seconds]
arya has joined #ruby
ToTo has joined #ruby
jaygen has quit [Remote host closed the connection]
postmodern has joined #ruby
LBRapid_ has joined #ruby
jaygen has joined #ruby
andrewhl has quit [Remote host closed the connection]
LBRapid_ has quit [Read error: Connection reset by peer]
love_color_text has joined #ruby
lolcathost has joined #ruby
jrunning has joined #ruby
ananthakumaran1 has joined #ruby
Guest30882 has joined #ruby
hamed_r has joined #ruby
chaosis has joined #ruby
LBRapid_ has joined #ruby
love_color_text has quit [Remote host closed the connection]
arya has quit [Ping timeout: 244 seconds]
ananthakumaran has quit [Ping timeout: 265 seconds]
postmodern has quit [Ping timeout: 252 seconds]
bluOxigen has joined #ruby
jrunning has quit [Ping timeout: 265 seconds]
cableray has joined #ruby
LBRapid_ has quit [Read error: Connection reset by peer]
arya has joined #ruby
stylus_ is now known as rising_
rising_ has quit [Remote host closed the connection]
h4mz1d has joined #ruby
dzhulk has joined #ruby
<cj3kim> hello
LBRapid has joined #ruby
nari has joined #ruby
browndawg has joined #ruby
Chryson has quit [Quit: Leaving]
lenovodroid has joined #ruby
jenrzzz has joined #ruby
love_color_text has joined #ruby
lenovodroid has quit [Read error: Connection reset by peer]
love_color_text has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
cardoni has joined #ruby
bradhe has joined #ruby
arietis has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
icole has joined #ruby
browndawg has left #ruby [#ruby]
browndawg has joined #ruby
greg- has quit [Ping timeout: 264 seconds]
apeiros_ has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 265 seconds]
apeiros_ has joined #ruby
fyolnish has joined #ruby
LBRapid has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
emsilva has joined #ruby
Proshot has quit [Quit: Leaving]
h4mz1d has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
icole has quit [Ping timeout: 245 seconds]
pcarrier has quit []
havenn has joined #ruby
ToTo has quit [Quit: Leaving...]
hola123 has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
<Gate> hi
browndawg has quit [Ping timeout: 244 seconds]
MissionCritical has quit [Ping timeout: 256 seconds]
_alejandro has joined #ruby
LBRapid has joined #ruby
hola123 is now known as g33k
rohit has joined #ruby
SPYGAME has joined #ruby
ttt has joined #ruby
ttt has quit [Ping timeout: 245 seconds]
arya has quit [Ping timeout: 244 seconds]
emergion has joined #ruby
Mon_Ouie has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
pcarrier has joined #ruby
arya has joined #ruby
emergion has quit [Ping timeout: 244 seconds]
LBRapid has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
LBRapid has quit [Read error: Connection reset by peer]
LBRapid has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
havenn has quit [Read error: Connection reset by peer]
MissionCritical has joined #ruby
Tombar has quit [Remote host closed the connection]
kil0byte has quit [Ping timeout: 255 seconds]
Tombar has joined #ruby
LBRapid has joined #ruby
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
samphippen has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
jackbrownhf has quit [Read error: Connection reset by peer]
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
jackbrownhf has joined #ruby
adambeynon has joined #ruby
g33k has quit [Quit: Leaving]
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
LBRapid has quit [Read error: Connection reset by peer]
benoitdo_ has joined #ruby
benoitdo_ has left #ruby [#ruby]
L1 has quit [Quit: Quitter]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
LBRapid has joined #ruby
banisterfiend has joined #ruby
answer_42 has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
SPYGAME has quit [Ping timeout: 260 seconds]
browndawg has joined #ruby
catepillar has quit [Quit: I'm a little teapot short and stout...here is my handle here is my note from my shrink.... she says i'm getting better all the time....last week i thought i was a toaster oven]
LBRapid has joined #ruby
skattyadz has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
pcarrier has quit []
skattyadz has quit [Read error: Connection reset by peer]
skattyadz has joined #ruby
bradhe has joined #ruby
LBRapid has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
pyx has quit [Quit: WeeChat 0.3.9.2]
skattyadz has quit [Ping timeout: 256 seconds]
icole has joined #ruby
staafl has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
LBRapid has joined #ruby
<aquagrunty> does anyone have a good doc source?
<aquagrunty> for ruby
robustus has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
Synthead has quit [Quit: p33 ba115]
LBRapid has quit [Read error: Connection reset by peer]
icole has quit [Ping timeout: 265 seconds]
Elico has joined #ruby
<charliesome> aquagrunty: http://ruby-doc.org/core-1.9.3/
dnyy has quit [Remote host closed the connection]
beilabs has joined #ruby
jimeh has joined #ruby
bubu\a has joined #ruby
tPl0ch has joined #ruby
machty has quit [Quit: machty]
dnyy has joined #ruby
LBRapid has joined #ruby
SPYGAME has joined #ruby
ryanf has quit [Quit: leaving]
chaplain has joined #ruby
ttt has joined #ruby
samphippen has joined #ruby
Elico1 has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
Elico has quit [Ping timeout: 264 seconds]
Elico1 has quit [Client Quit]
Elico has joined #ruby
ttt has quit [Ping timeout: 245 seconds]
rohit has quit [Quit: Leaving]
s1n4 has quit [Quit: Lost terminal]
Elico1 has joined #ruby
LBRapid has joined #ruby
tk__ has joined #ruby
Elico has quit [Ping timeout: 244 seconds]
piccalingo has joined #ruby
segv- has joined #ruby
kil0byte has joined #ruby
piotr has joined #ruby
piccalingo has quit [Remote host closed the connection]
Tearan has quit [Quit: Sleepy Badger....]
LBRapid has quit [Read error: Connection reset by peer]
jimeh has quit [Quit: Computer has gone to sleep.]
LBRapid has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
Elico1 has quit [Ping timeout: 248 seconds]
LBRapid has joined #ruby
thomas is now known as Guest84088
chaplain is now known as thomas
buscon has joined #ruby
slainer68 has joined #ruby
SPYGAME has quit [Read error: Connection reset by peer]
ebouchut_ has joined #ruby
fyolnish has quit [Remote host closed the connection]
fyolnish has joined #ruby
answer_42 has quit [Ping timeout: 276 seconds]
ebouchut_ has quit [Client Quit]
Guest84088 has quit [Quit: gibberish.]
LBRapid has quit [Read error: Connection reset by peer]
emergion has joined #ruby
jsilver has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 256 seconds]
buscon_ has joined #ruby
LBRapid has joined #ruby
ebouchut_ has joined #ruby
buscon has quit [Ping timeout: 252 seconds]
buscon_ is now known as buscon
nemesit has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
LBRapid has joined #ruby
mindbender1 has joined #ruby
toto_ has joined #ruby
arya has quit [Ping timeout: 244 seconds]
SPYGAME has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
lampe2 has joined #ruby
browndawg has quit [Ping timeout: 245 seconds]
bradhe has joined #ruby
arya has joined #ruby
ebouchut_ has quit [Quit: This computer has gone to sleep]
LBRapid has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
Takehiro has quit [Remote host closed the connection]
postmodern has joined #ruby
cousine has joined #ruby
wchun has quit [Quit: Leaving]
icole has joined #ruby
Takehiro has joined #ruby
igro has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
Tombar has quit [Remote host closed the connection]
LBRapid has joined #ruby
Tombar has joined #ruby
icole has quit [Ping timeout: 265 seconds]
hamed_r has quit [Ping timeout: 255 seconds]
ltsstar has joined #ruby
wchun has joined #ruby
answer_42 has joined #ruby
igro has quit [Quit: Computer has gone to sleep.]
acoyfellow has joined #ruby
brendan_ has quit [Read error: Operation timed out]
LBRapid has quit [Read error: Connection reset by peer]
jackbrownhf has quit [Ping timeout: 264 seconds]
<buscon> is there a command line tool in ruby?
<shevy> buscon you must define what is a command line tool
<shevy> because the answer to your question, by default, is yes
<buscon> an interactive command line
<buscon> like in python
<shevy> ah
<buscon> eheh
<shevy> yes, "irb"
<Mon_Ouie> See also pry
<buscon> ok, thx
slainer68 has joined #ruby
LBRapid has joined #ruby
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 0.3.9.2]
emergion has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
emergion has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
aetcore has quit [Remote host closed the connection]
werdnativ has quit [Quit: werdnativ]
LBRapid has joined #ruby
browndawg has joined #ruby
lolcathost has quit [Ping timeout: 244 seconds]
lolcathost has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
wallerdev has quit [Quit: wallerdev]
LBRapid has quit [Read error: Connection reset by peer]
u89 has joined #ruby
<mindbender1> what's the best way to upgrade rubygems on debian
kirun has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
lolcathost has quit [Ping timeout: 256 seconds]
LBRapid has joined #ruby
piccalingo has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
acoyfellow has quit [Ping timeout: 255 seconds]
malkomalko has joined #ruby
lolcathost has joined #ruby
LBRapid has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
banisterfiend has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
SPYGAME has quit [Read error: Connection reset by peer]
bier_ has quit [Ping timeout: 248 seconds]
bier has quit [Ping timeout: 264 seconds]
skattyadz has joined #ruby
Michae___ has joined #ruby
jackbrownhf has joined #ruby
jackbrownhf has joined #ruby
jackbrownhf has quit [Changing host]
piccalingo has quit [Remote host closed the connection]
<apeiros_> mindbender1: I'd say by not using apt* and then simply `gem update --system`
Michae___ has quit [Remote host closed the connection]
LBRapid has joined #ruby
<mindbender1> apeiros_: I got this when I treid that initially
<mindbender1> ERROR: While executing gem ... (RuntimeError)
<mindbender1> gem update --system is disabled on Debian, because it will overwrite the content of the rubygems Debian package, and might break your Debian system in subtle ways. The Debian-supported way to update rubygems is through apt-get, using Debian official repositories.
<mindbender1> If you really know what you are doing, you can still update rubygems by setting the REALLY_GEM_UPDATE_SYSTEM environment variable, but please remember that this is completely unsupported by Debian.
<apeiros_> yes, that's because you used apt to install ruby/gems
<mindbender1> so I uninstall first?
<mindbender1> apeiros_: so what's the recommended way to install
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<mindbender1> on Debian
<apeiros_> personally I prefer rvm
<mindbender1> rvm?
<apeiros_> http://rvm.io
<apeiros_> allows you to keep your OS ruby (in case any apps installed via apt rely on it)
roadt_ has quit [Ping timeout: 265 seconds]
<mindbender1> apeiros_: ok thanks let me check it out
<mindbender1> apeiros_: so won't the one rvm install conflict with the existing install
<apeiros_> should not, no
AxonetBE has joined #ruby
<mindbender1> pls give me a quick incantation for rvm to install gem
Elico has joined #ruby
<Mon_Ouie> Just use the regular gem command
lolcathost has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
LBRapid has quit [Read error: Connection reset by peer]
gcds has joined #ruby
<gcds> hello
lolcathost has joined #ruby
freeayu has joined #ruby
chaosis has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
LBRapid has joined #ruby
bier_ has joined #ruby
bier has joined #ruby
Elico has quit [Ping timeout: 260 seconds]
cousine has quit [Remote host closed the connection]
cousine has joined #ruby
SPYGAME has joined #ruby
<postmodern> mindbender1, you could just install ruby into /usr/local
Elico has joined #ruby
<postmodern> mindbender1, ./configure --prefix=/usr/local && make && sudo make install
hamed_r has joined #ruby
<gcds> is it possible to make string replace with dynamic replacement like pass to block?
<mindbender1> postmodern: will that solve the gem issue
Elico has quit [Remote host closed the connection]
<postmodern> mindbender1, 1.9.3 comes with a newer version of rubygems
<postmodern> mindbender1, it will also let you run `gem update --system`
roadt_ has joined #ruby
<mindbender1> do I need to uninstall something before using the MRI one
<postmodern> mindbender1, nope, /usr/local takes precedence over /usr
<mindbender1> postmodern: I'll give it a shot and see how it goes sounds like a good alternative, thnaks
<mindbender1> thanks
lampe2 has quit [Quit: Leaving.]
LBRapid has quit [Read error: Connection reset by peer]
tenmilestereo has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
AxonetBE has quit [Quit: Leaving.]
<mindbender1> postmodern: how do I deal with this message: Package libreadline5-dev is not available, but is referred to by another package.This may mean that the package is missing, has been obsoleted, or
<mindbender1> is only available from another source. However the following packages replace it: libreadline-gplv2-dev:i386 lib64readline-gplv2-dev:i386 libreadline-gplv2-dev
Elico has joined #ruby
<postmodern> mindbender1, oh, use libreadline-gplv2-dev instead
<mindbender1> ok thanks
<postmodern> mindbender1, debian has slightly different package names than ubuntu
LBRapid has joined #ruby
<mindbender1> ok
<shevy> mindbender1 you always need to decripple those packages
<mindbender1> decripple?
<shevy> sure. if you compile from source, you get everything. if you install packages, they split up things into subcomponents
<shevy> and name their dev- packages differently too
<mindbender1> shevy: I see what you mean
<shevy> as far as I know there is no global way to say "give me everything that should be contained whenever I use apt-get etc..."
<mindbender1> dev habits I guess
<shevy> yup. they reason that "a server OS never needs .h files by default"
LBRapid has quit [Read error: Connection reset by peer]
ebouchut_ has joined #ruby
baphled has joined #ruby
baphled has quit [Client Quit]
cousine has quit [Remote host closed the connection]
<shevy> readline has two "main" versions, version 5.2 and 6.2 - latest source is at http://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz, in my opinion installing the header files of any readline version works just fine, i.e. it seems on debian the main package is libreadline-dev
rakunHo has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 264 seconds]
baphled has joined #ruby
<shevy> postmodern hmmmm
<mindbender1> shevy: I think libreadline-gplv2-dev
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> postmodern why does ubuntu not use the same names for packages? :\
<mindbender1> works fine
<shevy> distributions are the ultimate cargo cult...
LBRapid has joined #ruby
elkclone has quit [Remote host closed the connection]
Adget has joined #ruby
googya has joined #ruby
ebouchut_ has quit [Client Quit]
<postmodern> shevy, no clue on that one
<postmodern> mindbender1, when you figure out all the correct debian package names, mesg me
<postmodern> mindbender1, i'll add a debian specific command to the wiki page
<shevy> \o/
<mindbender1> postmodern: ok
<shevy> mindbender1 - if you want to read a bit philosophy from a debian-ruby guy, have a look at: http://www.lucas-nussbaum.net/blog/?p=566
browndawg has quit [Quit: Leaving.]
AxonetBE has joined #ruby
<postmodern> last i heard, debian/ubuntu were about to make the switch to ruby 1.9 as the default ruby
<postmodern> or atleast in their testing branches
<mindbender1> shevy: thanks
toto_ has quit [Quit: Leaving...]
<shevy> I think ubuntu did it already
jaygen has quit [Remote host closed the connection]
<shevy> the last 2 weeks when I tried ubuntu-based distributions, 1.9 was the ruby that came with it
<shevy> no idea how much "main" ubuntu was lagging behind that
u89 has quit [Remote host closed the connection]
<postmodern> i kind of like how Fedora was ahead of everyone (again)
<postmodern> 1.9.3 has been the default ruby in Fedora 17
<postmodern> also gems are automatically installed into ~/.gem for normal users
<postmodern> or into /usr/local/share/gem/ as root
daniel_- has joined #ruby
<shevy> yeah
<shevy> well, the glibc 2.16 causes some compile problems here and there
<shevy> now I am back on linuxmint again... ldd (Ubuntu EGLIBC 2.15-0ubuntu20) 2.15
banisterfiend has joined #ruby
<shevy> I am almost happy with it!
Tombar has quit [Remote host closed the connection]
<mindbender1> shevy: that guy sounds full of pain
<shevy> mindbender1 hehehe
aetcore has joined #ruby
daniel_- has quit [Ping timeout: 256 seconds]
<mindbender1> that's Debian for you
<shevy> mindbender1 I have no pity for distributions. they change things in ruby, people come here asking for help, and then other people have to fix up problems caused by those distributions in the first place
<shevy> my favourite recent example:
<shevy> require 'mkmf'
<shevy> it wasn't available when I tried!!!
<shevy> they deliberately removed it
<postmodern> yeah, it's in the ruby-dev package
<shevy> the mental mode for this is - "You either stay in the distribution ecosystem, or you are on your own."
<postmodern> or ruby-devel on redhat/fedora
<shevy> haha
<mindbender1> shevy: exactly
<shevy> they all use different names too :)
<postmodern> shevy, wait they removed it completely?
<mindbender1> I think it's not a bad idea too
<shevy> postmodern, nah, I am sure it is available, otherwise one could not compile things natively
<shevy> and they at least must do so one, in order to provide packages
<shevy> *once
<mindbender1> to be top notch with your dependencies
<mindbender1> you have to stay close
daniel_- has joined #ruby
<mindbender1> mailing lists, I see maintainers always asking if it's ok to move or remove a package
<shevy> uhm
<shevy> mindbender1, they lag behind years ;)
<shevy> if they would at least provide the most recent version within a day or two...
<postmodern> i think more people need to help the ruby teams
<shevy> but that would go against the philosophy of "providing stable programs only"
<postmodern> or submit more bugs for newer ruby packages
<postmodern> i mean, OSX still ships 1.8.7
<mindbender1> postmodern: you're right
<mindbender1> they are beings too
<shevy> haha cool
<shevy> they are even slower than debian :)
<mindbender1> code takes a great deal of effort to maintain
<shevy> yeah
acoyfellow has joined #ruby
<shevy> I'd rather have my code in ruby than in shell scripts though
acoyfellow has quit [Client Quit]
arietis has joined #ruby
kirun has quit [Quit: Client exiting]
<bubu\a> lol
<bubu\a> am used to shell scripts and am having to learn ruby at the mo
<bubu\a> ruby koans is cool
<bubu\a> for practical, but not very descriptive!
<ninegrid> a koan seldom is (descriptive)
<bubu\a> lol
skattyadz has quit [Quit: skattyadz]
<bubu\a> anyone know any other good resources for anyone who has never done any programming what so ever?
<ninegrid> yes!
<bubu\a> do alot of bash scripting, my perl and python suck.
<bubu\a> now trying to learn ruby :)
<ninegrid> write as much code as possible, and when you are not, model it in your head
<shevy> bubu\a I find both ruby and python muuuuuch easier than shell scripting
<shevy> perl not so much, perl syntax is awful to read, no real improve over shell scripts
<bubu\a> hopefully once I 'click' with ruby it should be good
<bubu\a> still not quite there though
<postmodern> don't get me started on shell comparability...
<shevy> bubu\a work through this here as fast as possible, with "irb" in your terminal - http://pine.fm/LearnToProgram/?Chapter=01 skip the "homework" however, only read the content and try if you can do the same in irb
<shevy> I never fancied the poignant guide much :\
<shevy> it was creative, but confusing
<bubu\a> shevy, ta, will check it out!!!
<ninegrid> shevy: i agree with you, it wasn't even fancy and the jokes weren't even funny
<bubu\a> no but its about my level right now
<bubu\a> lol
<ninegrid> bubu\a: do you understand arithmetic?
<bubu\a> ya - I did maths A-level but its been a while
<bubu\a> :)
<ninegrid> well you understand how to add, subtract, multiply, divide?
<shevy> ninegrid yeah... I do give it that it was creative though, it's nice if there are folks in a community able to be creative. I am absolutely uncreative, and I can't draw at all, not even in photoshop or gimp :<
<ninegrid> shevy: my wife read poignant guide and liked it... so it has a niche, but I don't think walking away from it you learn anything about programming at all
<bubu\a> yes ninegrid
<bubu\a> its more learning ruby syntax at the moment
<banisterfiend> ninegrid: it's supposed to inspire you to learn more about ruby
<ninegrid> if someone is new to semantics and syntax, it takes study to learn the balance of both, if someone has programming experience and understands oo semantics, poignant guide is potentially more useful in learning ruby syntax
<shevy> ninegrid does your wife program?
<banisterfiend> IMO, and it had that effect on me
arturaz_ has joined #ruby
igro has joined #ruby
LouisGB has joined #ruby
<ninegrid> shevy: not really
<shevy> :(
jds_ has joined #ruby
<ninegrid> yea i know :(
<mindbender1> postmodern: I don't remember where my old gem install came from is ok to just overwrite it by symlinking to my new gem install
<postmodern> mindbender1, i would just re-install the gem using the new ruby
byennen has joined #ruby
<postmodern> mindbender1, any executables will be installed into /usr/local/bin
<mindbender1> does /usr/local/bin override /usr/bin too
<postmodern> mindbender1, yep
<postmodern> mindbender1, echo $PATH
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
<postmodern> mindbender1, shows the priority of which directory your shell will search for executables
x0F_ is now known as x0F
<mindbender1> postmodern: yeah thanks
ebouchut_ has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
<bubu\a> meh 0 i dont even understand block arguments
<bubu\a> lol
hotovson_ has joined #ruby
<ninegrid> bubu\a: as i was saying, if you know arithmetic, and if you know about data types... the basics ints, floats, chars... and you know about basic datastructures, strings (in some languages aren't primitives but a special case of array), arrays, lists, maps/hashes/dictionaries, trees... you can take on any language, but then if you know a bit about OO, like the distinction between class and object, properties/accessors, constructors/in
bluOxigen has quit [Ping timeout: 252 seconds]
igro has quit [Quit: Computer has gone to sleep.]
<bubu\a> I know none of that ninegrid, never programmed anything in my life
<bubu\a> norm the sys admin / networking / infrastructure guy
<ninegrid> bubu\a: it is a road map for you then
<bubu\a> have a new job starting next week for a ruby house
bradhe has joined #ruby
<bubu\a> who also use chef instead of puppet
<bubu\a> so thats all ruby
<ninegrid> bubu\a: sounds exciting will you be programming ruby professionally?
<bubu\a> big road map ninegrid :)
u89 has joined #ruby
LBRapid has joined #ruby
<bubu\a> perhaps yes but not until I know what I'm doing!
<ninegrid> o that is a small roadmap, these concepts aren't something you actually grapple with your entire life ;)
<bubu\a> dev opsy role once I understand ruby
<bubu\a> i have a feeling I will
<bubu\a> not that smart and I can struggle with big bash scripts some times and I class bash scripting as easy as it gets
<ninegrid> in your sys admin, have you ever had the opportunity to parameterize some code with some other code?
<ninegrid> like maybe, using awk
jrunning has joined #ruby
<bubu\a> yeah I guess
<ninegrid> that is a block
igro has joined #ruby
<bubu\a> hmm
<ninegrid> before i came to ruby, i would call it a higher order function
<bubu\a> ah, think it just clicked
<ninegrid> or if you know sql, maybe you could think of it like sending a stored procedure a string as a parameter that is used inside the stored procedure as SQL code
<bubu\a> yeah gotcha ninegrid
daniel_- has quit [Ping timeout: 256 seconds]
<bubu\a> :D
jlwestsr has joined #ruby
<ninegrid> but i think the HoF analogy is better, since it is an unnamed function (called a "lambda" in other languages)
bradhe has quit [Ping timeout: 244 seconds]
Elhu has joined #ruby
<bubu\a> ja
samphippen has quit [Quit: Computer has gone to sleep.]
<bubu\a> a way of passing different parameters to blocks
kil0byte has quit [Ping timeout: 245 seconds]
<bubu\a> should get it more once start using them
<ninegrid> { |i| doItTo i } == \i doItTo i == (fun i -> doItTo i) ... these are all similar, but ruby gives you more degrees of freedom here since ruby blocks can side effect the world and lambdas cannot
Slivka has joined #ruby
<bubu\a> okok
<bubu\a> confusing me now :p
dekroning has joined #ruby
Elhu has quit [Client Quit]
<dekroning> hi
hotovson_ has quit [Remote host closed the connection]
<ninegrid> bubu\a: maybe you should read the poignant guide's chapter on blocks
<ninegrid> the only way to learn about them is with metaphor, and the only way to learn them is through using them on your own
roadt_ has quit [Ping timeout: 245 seconds]
Averna has quit [Quit: Leaving.]
<dekroning> i'm a bit confused with Bundler, i'm tryint to wrap a C lib in a ruby extension. Now i'm always confused with .gemspec file, when I want to add the gem 'rake-compile' do I need to add it as gem.add_development_dependency or should I add it to the regular Gemfile ?
ToTo has joined #ruby
<postmodern> dekroning, looks like development dependency
<postmodern> dekroning, when installed it should run extconf.rb
<postmodern> dekroning, also checkout FFI, no need for compiling
<dekroning> postmodern: and it should be in the .gemspec file right? instead of Gemfile
<postmodern> dekroning, correct
<dekroning> even though the Gemfile is mentioning you shouldn't add gems directly to it, I still see blogs online who are doing it non the less
<dekroning> postmodern: ok thanks
petershepley has quit [Quit: Leaving]
k610 has joined #ruby
ikaros has joined #ruby
ebouchut_ has quit [Quit: This computer has gone to sleep]
<mindbender1> is rinari still good for development with ruby on emacs? or is there a newer dev env
Adget has quit [Quit: Adget]
<mindbender1> Sorry but I just love my emacs
LBRapid has quit [Read error: Connection reset by peer]
banisterfiend has quit [Remote host closed the connection]
arya_ has joined #ruby
LBRapid has joined #ruby
nari has quit [Ping timeout: 245 seconds]
Retistic has quit [Quit: Retistic]
arya has quit [Ping timeout: 244 seconds]
pu22l3r has joined #ruby
arya_ is now known as arya
Tombar has joined #ruby
Slivka has quit [Ping timeout: 252 seconds]
Proshot has joined #ruby
freeayu has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
samphippen has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
Slivka has joined #ruby
LBRapid has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
jaygen_ has joined #ruby
Elico has quit [Quit: Elico]
LBRapid has joined #ruby
JohnBat26 has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
jonahR_ has joined #ruby
chaosis has joined #ruby
Bane_ has quit [Ping timeout: 265 seconds]
browndawg has joined #ruby
jonahR has quit [Ping timeout: 245 seconds]
jonahR_ is now known as jonahR
jaygen_ has quit [Read error: Connection reset by peer]
dekroning has quit [Quit: leaving]
LBRapid has joined #ruby
<shevy> mindbender1 hehe
<mindbender1> shevy: :)
jaygen has joined #ruby
ewag has quit [Ping timeout: 264 seconds]
rakl has quit [Quit: sleeping]
ToTo has quit [Quit: Leaving...]
Bry8Star has quit [Ping timeout: 276 seconds]
jaygen_ has joined #ruby
jds_ has quit [Remote host closed the connection]
jaygen has quit [Read error: Connection reset by peer]
pu22l3r has quit [Remote host closed the connection]
LBRapid has quit [Read error: Connection reset by peer]
hamed_r has quit [Quit: Leaving]
jonahR has quit [Quit: jonahR]
kirun has joined #ruby
somazero has joined #ruby
cableray has quit [Ping timeout: 245 seconds]
LBRapid has joined #ruby
roadt_ has joined #ruby
jrunning has quit [Ping timeout: 260 seconds]
icole has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
AxonetBE has left #ruby [#ruby]
LBRapid has joined #ruby
icole has quit [Ping timeout: 260 seconds]
brendan_ has joined #ruby
gcds_ has joined #ruby
epitron has quit [Ping timeout: 252 seconds]
gcds has quit [Read error: Operation timed out]
gcds_ is now known as gcds
googya has quit [Quit: Leaving.]
robustus has quit [Ping timeout: 255 seconds]
jds_ has joined #ruby
freeayu has joined #ruby
<bubu\a> damn stuggling with ruby koans :(
robustus has joined #ruby
Takehiro has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
<bubu\a> 9/28-
<bubu\a> 280*
<bubu\a> :/
jrunning has joined #ruby
pen has joined #ruby
niklasb has joined #ruby
kirun has quit [Ping timeout: 256 seconds]
<mindbender1> how do I recover from a failed rails initialization
<mindbender1> rails project
chaosis has quit [Ping timeout: 260 seconds]
<yxhuvud> don't fail in the first place.
<mindbender1> are we in school
<mindbender1> we learn by failing in the first place
<mindbender1> so?
LBRapid has joined #ruby
<mindbender1> is the only option I have to delete the failed initialization or is there a smarter way to recover
jrunning has quit [Ping timeout: 256 seconds]
<yxhuvud> start by figuring out why it fails.
<mindbender1> I have fixed the reasons
<yxhuvud> so then it works?
<mindbender1> you don't get my question I guess
aquagrunty has quit [Remote host closed the connection]
<mindbender1> something like apt-get -f
Banistergalaxy has joined #ruby
<mindbender1> to continue from failure point because it waas requesting for some missing lib
somazero has quit [Quit: Leaving]
burgestrand has joined #ruby
<yxhuvud> I'd suggest you install all required libraries.
<burgestrand> mindbender1: failed?
burgestrand1 has quit [Ping timeout: 265 seconds]
<mindbender1> burgestrand: Gem::RemoteFetcher::FetchError: Errno::ETIMEDOUT: Connection timed out - connect(2) (https://rubygems.org/gems/i18n-0.6.1.gem)
<mindbender1> An error occurred while installing i18n (0.6.1), and Bundler cannot continue.
<mindbender1> Make sure that `gem install i18n -v '0.6.1'` succeeds before bundling.
<mindbender1> which i have done
<mindbender1> any idea
<burgestrand> mindbender1: after creating a new rails project, rails will go into that project and install all the dependencies for you
<burgestrand> mindbender1: that last step is completely optional; just go into your project and run "bundle install"
<burgestrand> mindbender1: it’ll do the same thing as rails did
<burgestrand> mindbender1: this is a command you’ll need to run after adding any kind of library to your project anyway, so it is not out of the ordinary to run this command
<mindbender1> burgestrand: exactly what I wanted to hear
<burgestrand> mindbender1: for future rails-specific questions you’re probably better off in #rubyonrails though
<mindbender1> burgestrand: noted thanks
seanstickle has joined #ruby
<burgestrand> mindbender1: here’s the website for the "bundle" command: http://gembundler.com/ (it’s not really part of rails, but a library/gem that rails uses)
Slivka has quit [Remote host closed the connection]
<mindbender1> burgestrand: thanks
jrunning has joined #ruby
byennen has quit [Read error: Connection reset by peer]
artnez has quit [Ping timeout: 276 seconds]
byennen has joined #ruby
kil0byte has joined #ruby
bubu\a has quit [Remote host closed the connection]
<Hanmac> burgestrand mindbender1 there is #bundler too
bubu\a has joined #ruby
<mindbender1> Hanmac: perfect thanks
zooz has joined #ruby
<zooz> hi
<zooz> what does the following syntax mean: answer ||= []
faulkner has quit [Ping timeout: 246 seconds]
Virunga has joined #ruby
<zooz> I am not sure about the two pipes before the equal sign
benwoody has quit [Ping timeout: 245 seconds]
<postmodern> zooz, it only assigns [] to answer, if answer is nil or false
<heftig> like answer || answer = []
horrror has joined #ruby
jrunning has quit [Ping timeout: 260 seconds]
<zooz> so if the "answer" array exists it will just add more items to it, is that right?
joofsh has joined #ruby
<heftig> that line alone doesn't add any items
horrror is now known as hrr
<zooz> to be specific, I am looking at the following code: https://github.com/puppetlabs/puppet/blob/master/lib/hiera/backend/puppet_backend.rb#L86
hrr is now known as horrror
igro has quit [Quit: Computer has gone to sleep.]
horrror is now known as hrr
rtd has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
wermel has joined #ruby
LBRapid has joined #ruby
pu22l3r has joined #ruby
vasile has joined #ruby
byennen has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
LBRapid has quit [Read error: Connection reset by peer]
freeayu has quit [Remote host closed the connection]
_nitti has joined #ruby
browndawg has quit [Quit: Leaving.]
phantasm66 has quit [Quit: *sleeeeep*]
<Hanmac> heftig & zooz but it does a bit more magic ... when answer is not defined it does create it
LBRapid has joined #ruby
_nitti has quit [Ping timeout: 260 seconds]
nemesit has quit [Quit: Leaving...]
dweeb has joined #ruby
jds_ has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
jds_ has joined #ruby
chaosis has joined #ruby
braham has joined #ruby
braham has left #ruby [#ruby]
LBRapid has quit [Read error: Connection reset by peer]
jds_ has quit [Ping timeout: 265 seconds]
machty has joined #ruby
LBRapid has joined #ruby
pu22l3r has quit [Remote host closed the connection]
banisterfiend has joined #ruby
arya_ has joined #ruby
kennyvb has quit [Read error: Operation timed out]
arya has quit [Ping timeout: 244 seconds]
tk__ has quit [Quit: ばいばい]
LBRapid has quit [Read error: Connection reset by peer]
tommyvyo has joined #ruby
Russell^^ has joined #ruby
aquagrunty has joined #ruby
freakazoid0223 has joined #ruby
kennyvb has joined #ruby
LBRapid has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
adambeynon has joined #ruby
kidoz has quit [Remote host closed the connection]
jrunning has joined #ruby
LBRapid has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
kirun has joined #ruby
<kapowaz> can anyone recommend good examples of the pattern of user registration that involves use of an activation token? i.e. user registers, gets an email containing a link with a single-use token, user follows that link and is then activated?
robotmay has joined #ruby
gyre007 has joined #ruby
dzhulk has quit [Quit: Leaving.]
LBRapid has joined #ruby
iamjarvo has joined #ruby
generalissimo has joined #ruby
Neomex has joined #ruby
tommyvyo_ has joined #ruby
_axx has quit [Read error: No route to host]
jds_ has joined #ruby
execute has joined #ruby
<heftig> kapowaz: token could be a hash of some internal data, like username + time of registration + a (fixed) salt
<heftig> that way you don't need to save the token server-side
slainer68 has quit [Read error: Connection reset by peer]
<kapowaz> heftig: yeah, that sounds good. I'm just wondering if there are any other crucial details about how to do this ‘right’ — like just emailing that token as part of the link back to the site is enough?
tbrock has joined #ruby
<heftig> I think so, but I'm no security expert.
<kapowaz> presumably you'd need to provide both username + token
verbad has joined #ruby
<heftig> yes.
<kapowaz> so that you can perform the hash on the username and check if it comes to the same token
<kapowaz> sounds good
slainer68 has joined #ruby
<heftig> just don't make it too predictable
<kapowaz> well it won't matter if there's a private salt too
<kapowaz> (assuming that stays secret)
<heftig> Yeah, I just picked time of registration, as that's commonly saved as well
<kapowaz> also unlikely to be guessable, at least not to any reliable degree of precision.
Goles has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
LBRapid has joined #ruby
<iamjarvo> heftig whats up
<iamjarvo> i implemented 'caching' for the fib method and its way faster
arya_ has quit [Ping timeout: 244 seconds]
eka has joined #ruby
Slivka has joined #ruby
arya has joined #ruby
Takehiro has quit [Remote host closed the connection]
pu22l3r has joined #ruby
Takehiro has joined #ruby
bubu\a has quit [Ping timeout: 260 seconds]
samphippen has quit [Quit: Computer has gone to sleep.]
bubu\a has joined #ruby
DaZ has quit [Ping timeout: 256 seconds]
LBRapid has quit [Read error: Connection reset by peer]
nateberkopec has joined #ruby
hotovson has joined #ruby
Goles has quit [Remote host closed the connection]
mikepack has joined #ruby
jrunning has quit [Ping timeout: 260 seconds]
LBRapid has joined #ruby
DaZ has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
DaZ has quit [Client Quit]
DaZ has joined #ruby
lampe2 has joined #ruby
SCommette has joined #ruby
soyapi has joined #ruby
soyapi has quit [Client Quit]
LBRapid has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
samphippen has joined #ruby
yacks has joined #ruby
LBRapid has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 244 seconds]
Mon_Ouie has quit [Ping timeout: 260 seconds]
Nisstyre-laptop has joined #ruby
yours_truly has joined #ruby
jrunning has joined #ruby
ryanlecompte has joined #ruby
centipedefarmer has joined #ruby
arya has joined #ruby
jds_ has quit [Remote host closed the connection]
GoGoGarrett has quit [Remote host closed the connection]
jds_ has joined #ruby
imami|afk is now known as banseljaj
buscon has quit [Quit: buscon]
lenovodroid has joined #ruby
Neomex has quit [Quit: Neomex]
browndawg has joined #ruby
awarner has joined #ruby
benwoody has joined #ruby
faulkner has joined #ruby
jrunning has quit [Ping timeout: 256 seconds]
u89 has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
nateberkopec has quit [Quit: Leaving...]
mfd0 has joined #ruby
teejmya has joined #ruby
yours_truly has quit [Quit: Leaving]
emsilva has quit [Quit: Textual IRC Client: www.textualapp.com]
pu22l3r has quit [Remote host closed the connection]
mfd0 has quit [Client Quit]
yshh has quit [Read error: Connection reset by peer]
mfd0 has joined #ruby
andrewhl has joined #ruby
framling has quit [Quit: Lost terminal]
slainer68 has quit [Remote host closed the connection]
framling has joined #ruby
Rollabunna has joined #ruby
dmiller has quit [Ping timeout: 265 seconds]
LBRapid has quit [Read error: Connection reset by peer]
SCommette has quit [Quit: SCommette]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
JonnieCa1he has joined #ruby
ltsstar has quit [Ping timeout: 252 seconds]
LBRapid has joined #ruby
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
SCommette has joined #ruby
teejmya has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
robotmay has quit [Remote host closed the connection]
execute is now known as _axx
generalissimo has quit [Remote host closed the connection]
JonnieCa1he has quit [Quit: leaving]
ebouchut_ has joined #ruby
lolcathost has quit [Ping timeout: 265 seconds]
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
Nykolla has joined #ruby
jackdanger has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
faoiseamh has quit [Ping timeout: 256 seconds]
byennen has joined #ruby
faoiseamh has joined #ruby
h8R has quit [Ping timeout: 244 seconds]
LBRapid has joined #ruby
yshh has joined #ruby
pu22l3r has joined #ruby
lampe21 has joined #ruby
lampe2 has quit [Ping timeout: 265 seconds]
dagnachewa has joined #ruby
dagnachewa has quit [Client Quit]
yewton has joined #ruby
TechZombie has quit [Quit: Leaving.]
mfd0 has quit [Quit: mfd0]
vlad_starkov has joined #ruby
bondar has joined #ruby
gener1c has quit [Remote host closed the connection]
bondar has quit [Excess Flood]
byennen has quit [Remote host closed the connection]
paolooo has joined #ruby
bondar has joined #ruby
bondar has quit [Excess Flood]
bondar has joined #ruby
bondar has quit [Excess Flood]
bondar has joined #ruby
bondar has quit [Excess Flood]
bondar has joined #ruby
bondar has quit [Client Quit]
Rollabunna has quit [Remote host closed the connection]
bondar has joined #ruby
bondar has quit [Excess Flood]
danneu has joined #ruby
slainer68 has joined #ruby
mahmoudimus has joined #ruby
dagnachew has joined #ruby
banister_ has joined #ruby
sepp2k has joined #ruby
<shevy> hmm
<shevy> I started to rewrite a project
<shevy> and now I am again wondering why I did that...
joshman_ has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
ltsstar has joined #ruby
joshman_ has quit [Client Quit]
axl_ has joined #ruby
yewton has quit [Quit: (*´ω`*)]
banister_ has quit [Ping timeout: 256 seconds]
LBRapid has joined #ruby
ephemerian has joined #ruby
paolooo has quit [Quit: Page closed]
yewton has joined #ruby
jlwestsr has quit [Quit: Ex-Chat]
paolooo has joined #ruby
apeiros_ has quit [Remote host closed the connection]
mmercer has quit [Ping timeout: 245 seconds]
LBRapid has quit [Read error: Connection reset by peer]
slainer68 has quit [Ping timeout: 260 seconds]
Goles has joined #ruby
juanlas has joined #ruby
verbad has quit []
dmiller has joined #ruby
someguy has joined #ruby
mercwithamouth has joined #ruby
mmercer has joined #ruby
LBRapid has joined #ruby
Goles has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
hrr has quit [Quit: hrr]
mindbender1 has quit [Ping timeout: 264 seconds]
cj3kim has quit [Ping timeout: 276 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
LBRapid has quit [Read error: Connection reset by peer]
IrishGringo has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
awarner has quit [Remote host closed the connection]
jds_ has quit [Remote host closed the connection]
lenodroid has joined #ruby
Slivka has quit [Read error: Connection reset by peer]
lenovodroid has quit [Read error: Connection reset by peer]
yankeefan04 has joined #ruby
Slivka has joined #ruby
yankeefan04 has quit [Remote host closed the connection]
jackdanger has quit [Quit: Leaving.]
alecs has joined #ruby
alecs has left #ruby ["Leaving..."]
tommyvyo_ has joined #ruby
LBRapid has joined #ruby
x82_nicole has joined #ruby
piotr_ has joined #ruby
piotr has quit [Ping timeout: 245 seconds]
yankeefan04 has joined #ruby
jds_ has joined #ruby
jackdanger has joined #ruby
<yankeefan04> \\I am having trouble understanding the initialize method and super keyword, does it just pull the information from the class above it?
dmiller has quit [Remote host closed the connection]
ebouchut_ has quit [Quit: This computer has gone to sleep]
<davidcelis> yes, #super calls the superclass' method
<yankeefan04> and then initialize is just a faster way to define variables for one object versus doing Person.age= x for each variable?
<yankeefan04> doing multiple at once, versus one at a time*
freakazoid0223 has quit [Quit: Leaving]
aharris6 has joined #ruby
kingdias has joined #ruby
ChampS666 has joined #ruby
u89 has joined #ruby
jackdanger has quit [Quit: Leaving.]
pu22l3r has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
dagnachew has quit [Remote host closed the connection]
bradhe has joined #ruby
Bry8Star has joined #ruby
SCommette has quit [Quit: SCommette]
dangerousdave has quit [Quit: Leaving...]
jrunning has joined #ruby
TechZombie has joined #ruby
awarner has joined #ruby
_alejandro has quit [Remote host closed the connection]
bluOxigen has joined #ruby
yewton has quit [Max SendQ exceeded]
dukedave has joined #ruby
Goles has joined #ruby
robotmay has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
yewton has joined #ruby
paolooo has quit [Quit: Page closed]
LBRapid has quit [Read error: Connection reset by peer]
jrunning has quit [Ping timeout: 260 seconds]
awarner has quit [Remote host closed the connection]
someguy has quit [Ping timeout: 245 seconds]
otters has quit [Ping timeout: 265 seconds]
tbrock has quit [Quit: Computer has gone to sleep.]
elementz has joined #ruby
<elementz> hi all.
krawchyk has joined #ruby
icooba has joined #ruby
pu22l3r has quit [Remote host closed the connection]
horrror has joined #ruby
<seanstickle> oy
horrror has quit [Client Quit]
LBRapid has joined #ruby
cakehero has joined #ruby
<elementz> what is the best way to test if a hash has a key that is a value in a given array? e.g. having an array ary = %w(foo bar baz) how can i test something like that `h.haskey?ary` < thats not possible i know
tbrock has joined #ruby
locriani_ has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
bondar has joined #ruby
bondar has quit [Excess Flood]
vlad_starkov has joined #ruby
bondar has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
jrajav has joined #ruby
bondar has quit [Excess Flood]
locriani has quit [Read error: Connection reset by peer]
bondar has joined #ruby
bondar has quit [Excess Flood]
bondar has joined #ruby
bondar has quit [Client Quit]
<elementz> hm, should i rephrase my question? or is it clear what i would like to do?
rehat_ has joined #ruby
<seanstickle> Want to see if any of the keys in a hash are in the array that you have constructed?
<seanstickle> Yes?
eka has quit [Remote host closed the connection]
LBRapid has joined #ruby
Tombar has quit [Remote host closed the connection]
pu22l3r has joined #ruby
_nitti has joined #ruby
<seanstickle> foo = {a:1, b:2, c:3}; bar = [:a,:b]; foo.keys & bar
pu22l3r has quit [Remote host closed the connection]
<seanstickle> foo = {a:1, b:2, c:3}; bar = [:a,:b,:d]; foo.keys & bar
<seanstickle> ^^ probably clearer
Goles has quit [Remote host closed the connection]
pu22l3r has joined #ruby
Tombar has joined #ruby
undersc0re97 has quit [Ping timeout: 265 seconds]
chaosis has quit [Ping timeout: 260 seconds]
rellin has joined #ruby
Goles has joined #ruby
hotovson has quit [Remote host closed the connection]
eka has joined #ruby
arya_ has joined #ruby
arya has quit [Ping timeout: 244 seconds]
_nitti has quit [Ping timeout: 260 seconds]
<elementz> seanstickle: thx :)
jekotia has joined #ruby
dzhulk has joined #ruby
Elico has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
nemesit has joined #ruby
icole has joined #ruby
IceDragon has joined #ruby
mikepack has quit [Remote host closed the connection]
fir_ed has joined #ruby
LBRapid has joined #ruby
locriani_ has quit [Read error: Connection reset by peer]
arya_ has quit [Ping timeout: 244 seconds]
locriani has joined #ruby
icole has quit [Ping timeout: 255 seconds]
jonahR has joined #ruby
<IceDragon> hello, I have a question
ebouchut_ has joined #ruby
<IceDragon> what would be the C equivalent of ruby's Array#pack function. Or rather how do I pack C datatypes into a ruby string for dumping?
yankeefan04 has quit [Ping timeout: 255 seconds]
ryanlecompte has quit [Remote host closed the connection]
yankeefan04 has joined #ruby
<Hanmac> IceDragon i dont think it is easy possible, it depends on the C-DataType, i think is the best to turn the elements into an ruby array and call Array#pack with that
<IceDragon> its just ints
ebouchut_ has quit [Client Quit]
Elico has quit [Quit: elico]
<IceDragon> But I guess I could use your method until I figure it out
<Hanmac> make an array with rb_ary_new and add elements with rb_ary_push and than use rb_funcall(array,rb_intern("pack"),1,rb_str_new("packstr"))
<yankeefan04> are object variables available in classes below original variable?
yacks has quit [Quit: Leaving]
yacks has joined #ruby
<IceDragon> Thanks Hanmac
<Hanmac> yankeefan04 make an pastie from what you mean
gcds has quit [Read error: Connection reset by peer]
mahmoudimus has joined #ruby
axl_ has quit [Quit: axl_]
gcds has joined #ruby
<elementz> seanstickle: going back to your solution, what does the & actually do?
pyr0commie has joined #ruby
nateberkopec has joined #ruby
<seanstickle> elementz: intersection
<elementz> seanstickle: thx
LBRapid has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
arya has joined #ruby
c0rn has joined #ruby
jaygen_ has quit [Remote host closed the connection]
LBRapid has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
yankeefan04 has quit [Remote host closed the connection]
Tombar has quit [Remote host closed the connection]
LBRapid has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
jonahR_ has joined #ruby
aharris6 has quit [Read error: Connection reset by peer]
aharris6_ has joined #ruby
aharris6_ has quit [Remote host closed the connection]
atmosx has quit [Remote host closed the connection]
tbrock has quit [Quit: Computer has gone to sleep.]
aharris6 has joined #ruby
jonahR has quit [Ping timeout: 244 seconds]
jonahR_ is now known as jonahR
LBRapid has joined #ruby
atmosx has joined #ruby
baphled has quit [Ping timeout: 245 seconds]
Mon_Ouie has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
busybox42 has quit [Ping timeout: 244 seconds]
mikepack has quit [Remote host closed the connection]
h4mz1d has joined #ruby
nobuoka has quit [Quit: Leaving...]
LBRapid has joined #ruby
queequeg1 has quit [Ping timeout: 248 seconds]
tnk1 has joined #ruby
tbrock has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
bluOxigen has quit [Ping timeout: 248 seconds]
chaosis has joined #ruby
LBRapid has joined #ruby
_alejandro has joined #ruby
baphled has joined #ruby
phantasm66 has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
Proshot has quit [Quit: Leaving]
Morkel has joined #ruby
lampe21 has quit [Quit: Leaving.]
h4mz1d has quit [Ping timeout: 264 seconds]
igro has joined #ruby
pratz has joined #ruby
_nitti has joined #ruby
RickSchmitty has joined #ruby
wargasm has quit [Read error: Connection reset by peer]
LBRapid has joined #ruby
nemesit has quit [Ping timeout: 260 seconds]
danneu has quit [Ping timeout: 264 seconds]
lampe2 has joined #ruby
arya has quit [Ping timeout: 244 seconds]
otters has joined #ruby
_nitti has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
cj3kim has joined #ruby
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
_alejandro has quit [Remote host closed the connection]
LBRapid has quit [Read error: Connection reset by peer]
robotmay has quit [Remote host closed the connection]
pratz has quit [Quit: leaving]
<RickSchmitty> Anyone good with csv? I'm having troubles converting a simple php script to ruby, the ruby parser claims to have a stray quote - which I cannot see. http://pastebin.com/pKVJyeXY Is there some other setting I'm missing on the ruby side? I'm also able to import the text into excel successfully, so I have to be missing something in the ruby settings...
BoomCow has joined #ruby
<seanstickle> RickSchmitty: please use gist.github.com or pastie.org
<seanstickle> RickSchmitty: pastebin is an eyesore and many people here will refuse to use it
<Hanmac> seantickle but pastiebin has features pastie.org does not have
browndawg has left #ruby [#ruby]
arya has joined #ruby
Tombar has joined #ruby
<seanstickle> Hanmac: true
<seanstickle> Hanmac: for one, it has the feature of being awful
<tos9> Like only working with JS and free ad with your pastebin.
LBRapid has joined #ruby
<seanstickle> Perhaps other features as well :)
bluOxigen has joined #ruby
<Hanmac> seanstickle it has expire feature that the pastie will be deleted automaticly
apeiros_ has joined #ruby
x82_nicole has quit [Ping timeout: 252 seconds]
<RickSchmitty> seanstickle, Hanmac gist seems like the best for my question anyways, here is updated with individual snippets: https://gist.github.com/4190526
tommyvyo has quit [Quit: Computer has gone to sleep.]
lenodroid has quit [Read error: Connection reset by peer]
Z_Mass has joined #ruby
bgh has joined #ruby
<RickSchmitty> I want to think that the problem line is "too long" but I noticed in the 1.9.3 docs field_size_limit is nil by default, as in no limit?
<seanstickle> RickSchmitty: that's because you have a stray quote in your data
mneorr has joined #ruby
<Hanmac> http://<iframe ... are you kidding me?
nemesit has joined #ruby
<RickSchmitty> i get no choice, its a MLS provider, so archaic
danneu has joined #ruby
_alejandro has joined #ruby
<seanstickle> RickSchmitty: well, that's going to be a problem then
x82_nicole has joined #ruby
swex_ has quit [Remote host closed the connection]
<RickSchmitty> where did you spot the stray quote?
swex has joined #ruby
<Hanmac> the tablecell with the iframe is the bad one
<seanstickle> RickSchmitty: after the iframe thing
<seanstickle> width=" etc etc
<RickSchmitty> ah. ugh
<RickSchmitty> thank you
LBRapid has quit [Read error: Connection reset by peer]
rehat_ has quit [Remote host closed the connection]
jrunning has joined #ruby
apeiros_ has quit [Remote host closed the connection]
lampe2 has quit [Ping timeout: 265 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Tombar has quit [Remote host closed the connection]
apeiros_ has joined #ruby
juanlas has quit [Quit: leaving]
rismoney1 has joined #ruby
lampe2 has joined #ruby
<rismoney1> how can i write - if var is not a boolean or a symbol do blah
LBRapid has joined #ruby
daniel_hinojosa1 has joined #ruby
<Hanmac> rismoney: unless [TrueClass, FalseClass,Symbol].any? {|c| c === obj}
beiter has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 256 seconds]
wargasm has joined #ruby
c0rn has quit []
xsbeats has joined #ruby
Xeago has joined #ruby
skaczor has joined #ruby
<rismoney1> HanMac, whats the {|c| c ==obj}
twopoint718 has quit [Ping timeout: 264 seconds]
LBRapid has joined #ruby
Morkel has quit [Read error: Connection reset by peer]
<RickSchmitty> Hanmac, seanstickle thank you for the help, I switched to reading the file line by line then using CSV.parse_line skipping the crap data for now :)
LBRapid has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
<Hanmac> why does noone read my code? ... i used THREE =
matrixise has quit [Ping timeout: 264 seconds]
mercwithamouth has quit [Ping timeout: 256 seconds]
tommyvyo has joined #ruby
rakl has joined #ruby
LBRapid has joined #ruby
pu22l3r_ has joined #ruby
shevy has quit [Ping timeout: 265 seconds]
pu22l3r_ has quit [Remote host closed the connection]
philips_ has quit [Excess Flood]
pac1 has quit [Quit: I got it one line of code at a time]
philips_ has joined #ruby
jrunning has quit [Ping timeout: 248 seconds]
pu22l3r has quit [Ping timeout: 250 seconds]
mindbender1 has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
werdnativ has joined #ruby
arya has quit [Ping timeout: 244 seconds]
LBRapid has joined #ruby
<danneu> [TrueClass, FalseClass, Symbol] & [obj.class]
<danneu> l0l
jds_ has quit [Remote host closed the connection]
joofsh has quit [Remote host closed the connection]
<Spaceghostc2c> initializeIKR
icole has joined #ruby
<Spaceghostc2c> Lol.
<Spaceghostc2c> Hanmac: That's a pretty hideous way to handle that. :D
<danneu> ha
c0rn has joined #ruby
heftig has quit [Quit: leaving]
shevy has joined #ruby
roadt_ has quit [Ping timeout: 245 seconds]
jds_ has joined #ruby
jds_ has quit [Read error: Connection reset by peer]
<danneu> Spaceghostc2c: what's your idea
macabre has joined #ruby
leonardorb has joined #ruby
jds_ has joined #ruby
jds_ has quit [Read error: Connection reset by peer]
arya has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
kingdias has quit [Ping timeout: 245 seconds]
<Spaceghostc2c> danneu: obj.is_a? TrueClass || FalseClass || Symbol
bgh has quit [Read error: Connection reset by peer]
<Spaceghostc2c> Could maybe get prettier.
jackbrownhf has quit [Quit: Sto andando via]
aetcore has quit [Remote host closed the connection]
<atmosx> hi
werdnativ has quit [Quit: werdnativ]
cousine has joined #ruby
samphippen has joined #ruby
banseljaj is now known as imami|afk
cousine has quit [Remote host closed the connection]
werdnativ has joined #ruby
hackerdude has joined #ruby
krnlsndrs has quit [Quit: leaving]
aharris6 has quit [Remote host closed the connection]
phelps has quit [Changing host]
phelps has joined #ruby
<danneu> Spaceghostc2c: oh, duh. haven't done a type check in forever
<Spaceghostc2c> danneu: That was the whole question. :(
<Spaceghostc2c> Mine breaks though.
<Spaceghostc2c> Wait, no it doesn't.
pcarrier has joined #ruby
ToTo has joined #ruby
robotmay has joined #ruby
c0rn has quit []
wallerdev has joined #ruby
mercwithamouth has joined #ruby
seanstickle has quit [Quit: seanstickle]
jmuniz has joined #ruby
rippa has quit [Ping timeout: 256 seconds]
arya has quit []
slainer6_ has joined #ruby
<danneu> i meant .is_a? doesn't even come into mind for me
CaptainJet has joined #ruby
arya has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
<apeiros_> Spaceghostc2c: yours may not break, but it doesn't do what you want it to do
jds_ has joined #ruby
<apeiros_> obj.is_a? TrueClass || FalseClass || Symbol --> TrueClass || FalseClass || Symbol == TrueClass
jds_ has quit [Read error: Connection reset by peer]
<apeiros_> so basically you're just doing: obj.is_a? TrueClass
katherinem13_bed is now known as katherinem13
adambeynon has joined #ruby
tbrock has quit [Quit: Computer has gone to sleep.]
<canton7> [TrueClass, FalseClass, Symbol].any{ |x| obj.is_a?(x) }, or [TrueClass, FalseClass, Symbol].include?(obj.class)
<Spaceghostc2c> apeiros_: unless [TrueClass, FalseClass,Symbol].any? {|c| c === obj} # Is htis better?
jds_ has joined #ruby
<canton7> unless + #any? is the same as if + #none?
jds_ has quit [Read error: Connection reset by peer]
jds_ has joined #ruby
jrunning has joined #ruby
<apeiros_> Spaceghostc2c: that one works. don't know whether you want unless or if (the last one didn't include that part)
<Spaceghostc2c> Hm.
<Spaceghostc2c> Hanmac: You win this time.
gyre007 has quit [Remote host closed the connection]
zigomir has joined #ruby
aetcore has joined #ruby
mikepack has joined #ruby
jds_ has quit [Ping timeout: 256 seconds]
ctwiz has joined #ruby
jsilver has joined #ruby
mikepack has quit [Remote host closed the connection]
aetcore has left #ruby [#ruby]
BoomCow has quit [Quit: Leaving]
EyesIsMine has quit [Ping timeout: 260 seconds]
TechZombie has quit [Quit: Leaving.]
queequeg1 has joined #ruby
L1 has joined #ruby
arya has quit []
mindbender2 has joined #ruby
ctwiz has left #ruby [#ruby]
aetcore has joined #ruby
malkomalko has quit [Remote host closed the connection]
arya has joined #ruby
pu22l3r has joined #ruby
xsbeats has quit [Ping timeout: 256 seconds]
mindbender1 has quit [Ping timeout: 265 seconds]
chaosis has quit [Ping timeout: 260 seconds]
ChampS666 has quit [Ping timeout: 260 seconds]
aetcore has quit [Client Quit]
Guest30882 has quit [Quit: Guest30882]
Shamgar has quit [Ping timeout: 250 seconds]
bluOxigen has quit [Ping timeout: 265 seconds]
aetcore has joined #ruby
aetcore has quit [Remote host closed the connection]
arya has quit [Client Quit]
adeponte has joined #ruby
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
pen has quit [Remote host closed the connection]
emergion has joined #ruby
emergion has quit [Client Quit]
v0n has joined #ruby
emergion has joined #ruby
emergion has quit [Client Quit]
ToTo has quit [Read error: Connection reset by peer]
ChampS666 has joined #ruby
ltsstar has quit [Remote host closed the connection]
bubu\a has quit [Read error: Connection reset by peer]
emergion has joined #ruby
macmartine has joined #ruby
aetcore has joined #ruby
aetcore has quit [Read error: Connection reset by peer]
arya has joined #ruby
FredLe has joined #ruby
heftig has joined #ruby
banisterfiend has joined #ruby
jrunning_ has joined #ruby
macmartine has quit [Read error: Connection reset by peer]
matrixise has joined #ruby
aetcore has joined #ruby
aetcore has quit [Remote host closed the connection]
macmartine has joined #ruby
aetcore has joined #ruby
<rismoney1> I want to see if @resource[:name] has multiple words in it, and if it does make a new var where the items only contain the first word. Anyone know how i can achieve that?
<rismoney1> not multiple items.
<apeiros_> rismoney1: first you have to define "word"
<apeiros_> but: str[/\p{Word}+/] will extract the first substring containing only word characters
<rismoney1> I basically want to discard everything after from the first space onward.
dangerousdave has quit [Quit: Leaving...]
ebouchut_ has joined #ruby
<apeiros_> then str[/\A\S*/]
<apeiros_> or str[/\A[^ ]*/] (this is strictly space, above is any whitespace)
<rismoney1> So if there are two items in @resource:name ["this is a test","hey wassup"] I want a new var = ["this","hey"]
staafl has quit [Quit: Leaving]
<rismoney1> strictly space
kirun has quit [Read error: Operation timed out]
<apeiros_> see Array#map for that
EyesIsMine has joined #ruby
leonardorb has quit [Remote host closed the connection]
arya has quit [Ping timeout: 244 seconds]
gcds_ has joined #ruby
jds_ has joined #ruby
staafl has joined #ruby
GoGoGarrett has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
hotovson has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.9.2]
gcds has quit [Ping timeout: 264 seconds]
gcds_ is now known as gcds
<rismoney1> actually i think the regex will do what i need, simpler is better.
Takehiro has quit [Remote host closed the connection]
<rismoney1> tyvm
* rismoney1 sometimes overthinks
daniel_hinojosa1 has quit [Ping timeout: 256 seconds]
mindbender2 has quit [Ping timeout: 265 seconds]
adeponte has quit [Remote host closed the connection]
malkomalko has joined #ruby
jackdanger has joined #ruby
jds_ has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
sepp2k1 has joined #ruby
bradhe has joined #ruby
mindbender1 has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
Proshot has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
twinturbo has joined #ruby
punkrawkR^Home has quit [Read error: Connection reset by peer]
thoolihan has joined #ruby
ebouchut_ has quit [Quit: This computer has gone to sleep]
emergion has quit [Quit: Computer has gone to sleep.]
tPl0ch has quit [Quit: Verlassend]
jackdanger has quit [Quit: Leaving.]
L1_ has joined #ruby
[Neurotic] has joined #ruby
LBRapid has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
vasile has quit [Ping timeout: 260 seconds]
thoolihan has quit [Client Quit]
tnk1 has quit []
L1 has quit [Ping timeout: 245 seconds]
v0n has quit [Read error: Connection reset by peer]
TechZombie has joined #ruby
jlwestsr has joined #ruby
skaczor has quit [Quit: Leaving]
snearch has joined #ruby
techhelp has joined #ruby
dweeb has quit [Quit: Textual IRC Client: www.textualapp.com]
robustus has quit [Quit: ZNC - http://znc.in]
krawchyk has quit [Remote host closed the connection]
snearch has quit [Quit: Verlassend]
icole has quit [Remote host closed the connection]
BoomCow has joined #ruby
c0rn has joined #ruby
vlad_starkov has joined #ruby
twinturbo has quit [Quit: twinturbo]
havenn has joined #ruby
GoGoGarrett has joined #ruby
workmad3 has joined #ruby
twopoint718 has quit [Ping timeout: 264 seconds]
LBRapid has quit [Read error: Connection reset by peer]
pyr0commie has quit [Remote host closed the connection]
daniel_- has joined #ruby
arturaz_ has quit [Remote host closed the connection]
Takehiro has joined #ruby
jds_ has joined #ruby
yankeefan04 has joined #ruby
LBRapid has joined #ruby
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
LBRapid has quit [Read error: Connection reset by peer]
Takehiro has quit [Ping timeout: 256 seconds]
ChampS666 has quit [Ping timeout: 250 seconds]
yankeefan04 has quit [Remote host closed the connection]
Guest30420 is now known as verto|off
havenn has quit [Remote host closed the connection]
LBRapid has joined #ruby
rjmt___ has joined #ruby
aetcore has quit [Quit: aetcore]
gabrielrotbart has joined #ruby
Proshot is now known as statarb3
statarb3 has quit [Changing host]
statarb3 has joined #ruby
wallerdev has joined #ruby
wei_ has joined #ruby
baphled has quit [Ping timeout: 256 seconds]
werdnativ has quit [Quit: FAMOUS_LAST_WORDS is nil]
dukedave has quit [Quit: Leaving.]
rjmt___ has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
<pdtpatrick> Question - how can i improve this? I'm mainly concerned with lines 19-26. Thanks
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
bradhe has quit [Remote host closed the connection]
jrunning_ has quit [Ping timeout: 244 seconds]
rjmt___ has joined #ruby
bradhe has joined #ruby
sspiff has joined #ruby
jlogsdon has joined #ruby
nemesit|osx has joined #ruby
Russell^^ has quit [Quit: Russell^^]
nemesit has quit [Ping timeout: 245 seconds]
ssspiff has quit [Ping timeout: 260 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
FredLe has quit [Ping timeout: 248 seconds]
beiter has quit [Quit: beiter]
L1_ has quit [Quit: Quitter]
bradhe has quit [Ping timeout: 255 seconds]
L1_ has joined #ruby
L1_ has quit [Read error: Connection reset by peer]
L1 has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
rjmt___ has quit [Ping timeout: 250 seconds]
tommyvyo has joined #ruby
SPYGAME has quit [Ping timeout: 260 seconds]
s0ber_ has joined #ruby
baphled has joined #ruby
mneorr has quit [Remote host closed the connection]
s0ber has quit [Ping timeout: 260 seconds]
s0ber_ is now known as s0ber
<apeiros_> pdtpatrick: weird code you're having there…
wargasm has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
Tearan has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
segv- has quit [Quit: segv-]
wermel has quit [Ping timeout: 265 seconds]
nemesit|osx has quit [Quit: Leaving...]
Takehiro has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
blazes816 has joined #ruby
Monie has joined #ruby
ryanf has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
gyre007 has joined #ruby
Takehiro has quit [Ping timeout: 255 seconds]
twopoint718 has joined #ruby
twopoint718 has quit [Changing host]
twopoint718 has joined #ruby
LBRapid has joined #ruby
LBRapid has quit [Read error: Connection reset by peer]
tbrock has joined #ruby
havenn has joined #ruby
h4mz1d has joined #ruby
tbrock has quit [Client Quit]
gyre007 has quit [Ping timeout: 256 seconds]
lunks has joined #ruby
mindbender1 has quit [Ping timeout: 265 seconds]
<lunks> Hey! I'd like to make my irb listen to anything from a UNIX socket and eval it. I couldn't find a lot of info on the interwebs. Could anyone provide me with any help?
LBRapid has joined #ruby
jlogsdon has quit [Remote host closed the connection]
hackerdude has quit [Remote host closed the connection]
jrunning_ has joined #ruby
Mon_Ouie has joined #ruby
x82_nicole has quit [Quit: Computer has gone to sleep.]
mindbender1 has joined #ruby
tommyvyo has joined #ruby
mindbender2 has joined #ruby
tommyvyo_ has joined #ruby
<pdtpatrick> apeiros_: I know. In the actual code im making a LDAP call which returns a string and then each string wouldh ave a parent until you finally get _none. Anyway, I think I've figured how to optimize it. Thanks
statarb3 is now known as proshot
sspiff has quit [Ping timeout: 256 seconds]
jmeeuwen has quit [Ping timeout: 256 seconds]
sorbo_ has joined #ruby
TechZombie has quit [Quit: Leaving.]
bwwrd has joined #ruby
mindbender1 has quit [Ping timeout: 265 seconds]
havenn has quit [Ping timeout: 265 seconds]
jrunning_ has quit [Ping timeout: 260 seconds]
Spaceboy1 has quit [Remote host closed the connection]
leonardorb has joined #ruby
tomsthumb has quit [Quit: Leaving.]
cardoni has quit [Quit: Linkinus - http://linkinus.com]
<apeiros_> pdtpatrick: you probably want inject then
wargasm has joined #ruby
igro has quit [Quit: Computer has gone to sleep.]
<apeiros_> you want all ancestors?
baphled has quit [Ping timeout: 256 seconds]
BoomCow has quit [Quit: This computer has gone to sleep]
otters has quit [Ping timeout: 265 seconds]
ddd has joined #ruby
Morkel has quit [Quit: Morkel]
ikaros has quit [Quit: Ex-Chat]
bradhe has quit [Remote host closed the connection]
seanstickle has joined #ruby
bradhe has joined #ruby
bradhe has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
cakehero has joined #ruby
mindbender2 has quit [Ping timeout: 265 seconds]
bwwrd has quit [Quit: Textual IRC Client: www.textualapp.com]
LBRapid has quit [Read error: Connection reset by peer]
jlwestsr has quit [Ping timeout: 246 seconds]
techhelp has quit [Quit: This computer has gone to sleep]
mindbender1 has joined #ruby
LBRapid has joined #ruby
ikaros has joined #ruby
xkx has joined #ruby
xkx has quit [Client Quit]
xkx has joined #ruby
LBRapid has quit [Client Quit]
pu22l3r has quit [Remote host closed the connection]
xkx has quit [Client Quit]
adeponte has joined #ruby
elementz_ has joined #ruby
elementz_ has quit [Changing host]
elementz_ has joined #ruby
TechZombie has joined #ruby
emergion has joined #ruby
elementz has quit [Ping timeout: 256 seconds]
gabrielrotbart has quit [Remote host closed the connection]
tenmilestereo has quit [Quit: Leaving]
Codecery has joined #ruby
cpted has joined #ruby
nari has joined #ruby
jlwestsr has joined #ruby
flagg0204 has quit [Quit: leaving]
SJrX is now known as SJr
Codecery has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 260 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
Nisstyre-laptop has quit [Quit: Leaving]
Nisstyre-laptop has joined #ruby
cpted has quit [Quit: ChatZilla 0.9.89 [Firefox 13.0.1/20120614114901]]
workmad3 has joined #ruby
zooz has quit [Quit: Leaving IRC]
vlad_starkov has joined #ruby
babykosh has joined #ruby
jrunning_ has joined #ruby
emergion has quit [Ping timeout: 255 seconds]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
aharris6 has joined #ruby
vlad_starkov has quit [Ping timeout: 252 seconds]
alanp has joined #ruby
lampe2 has quit [Quit: Leaving.]
ddd has quit [Ping timeout: 245 seconds]
doritostains has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
somazero has joined #ruby
jmeeuwen has joined #ruby
havenn has joined #ruby
g-ram has joined #ruby
gcds has quit [Quit: gcds]
alanp_ has quit [Ping timeout: 264 seconds]
x82_nicole has joined #ruby
Shamgar has joined #ruby
_nitti has joined #ruby
Retistic has joined #ruby
cableray has joined #ruby
IceDragon has quit [Ping timeout: 245 seconds]
cub949 has joined #ruby
IceDragon has joined #ruby
_nitti has quit [Ping timeout: 248 seconds]
<cub949> I'm trying to use user input (e.g gets) in a regexp pattern but I dunno how to insert it properly http://pastebin.com/mvXztW8b
Targen has quit [Remote host closed the connection]
<cub949> I've tried creating a regexp object but I'm obviously doing it wrong
gridaphobe has joined #ruby
aharris6 has quit [Remote host closed the connection]
<cub949> oh nevermind /#{pattern}.*/ works
zigomir has quit [Quit: zigomir]
bradhe has quit [Remote host closed the connection]
rmillerx_ has joined #ruby
havenn has quit [Remote host closed the connection]
codezombie has joined #ruby
bradhe has joined #ruby
proshot has quit [Ping timeout: 245 seconds]
c0rn has quit []
rmillerx_ has quit [Client Quit]
aharris6 has joined #ruby
havenn has joined #ruby
andrewhl has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
atno has quit [Ping timeout: 250 seconds]
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
bradhe has quit [Ping timeout: 264 seconds]
jmeeuwen has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
IceDragon has quit [Ping timeout: 250 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
gridaphobe` has joined #ruby
g-ram has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
staafl has quit [Ping timeout: 245 seconds]
gridaphobe has quit [Ping timeout: 260 seconds]
<maetthew> Can someone please help me with an error message i'm getting that i don't understand
chaosis has joined #ruby
<maetthew> code is first line and error message below
gabrielrotbart has joined #ruby
gridaphobe` is now known as gridaphobe
<seanstickle> What's with all this use of paste bin?
<seanstickle> gist.github.org people!
<maetthew> what's wrong with pastebin? :p
IceDragon has joined #ruby
<maetthew> (this is datamapper btw)
jlwestsr has quit [Ping timeout: 246 seconds]
<seanstickle> Well, if you post to gist.github.com, I'm happy to take a look
moshee has quit [Ping timeout: 256 seconds]
elkclone has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<maetthew> seanstickle, https://gist.github.com/4191557 :P
wei_ has quit [Quit: wei_]
awarner has joined #ruby
bgh has joined #ruby
<seanstickle> DataMapper 1.2?
<jrajav> seanstickle: Are you a paste-ist? Not cool, man
<seanstickle> jrajav: I am. And proud of it!
<seanstickle> Anti-bin-ite, right here
<seanstickle> maetthew: DataMapper 1.2?
<jrajav> Just because some pastebins paste's aren't forkable git repos is no reason to discriminate
wei_ has joined #ruby
<jrajav> Well okay maybe it is
<maetthew> seanstickle, yes
<seanstickle> maetthew: seen that?
<maetthew> hmm nope
jenrzzz has joined #ruby
<maetthew> DataMapper.finalize hmm
<cub949> Does anyone know why this regexp statement isn't matching all the other words that start with "co"? http://rubular.com/r/OG6m5Qr0Yr
c0rn has joined #ruby
sorbo_ has left #ruby [#ruby]
piotr_ has quit [Ping timeout: 260 seconds]
jds_ has quit [Remote host closed the connection]
jjang has joined #ruby
Shamgar has quit [Ping timeout: 248 seconds]
J-_-L has joined #ruby
Shamgar has joined #ruby
atno has joined #ruby
sorbo_ has joined #ruby
jlwestsr has joined #ruby
<jrajav> cub949: Because ^ anchors it to the start of the string
phantasm66 has quit [Quit: *poof*]
<maetthew> seanstickle, Thanks that "fixed" it. Though nothing is getting added into the database
<cub949> thanks
<maetthew> seanstickle, I made a new gist https://gist.github.com/4191607. Not sure why it's not saving.
<maetthew> The important part is the if statement on line 19
<maetthew> it does output "SAVED" though
havenn has joined #ruby
havenn has quit [Remote host closed the connection]
bradhe has joined #ruby
rakl has quit [Quit: gone]
Xeago has joined #ruby
somazero has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<sorbo_> +1 for rubular
<sorbo_> that site has saved my regular expression bacon several times
bgh has quit [Remote host closed the connection]
<rking> What the heck?? File.join %w(a b) on Windows returns 'a/b'. What the heck is the point, then, of even using File.join ?
<Spaceghostc2c> !rubular
bgh has joined #ruby
<Spaceghostc2c> Oh damn, no helpa
senj has joined #ruby
g-ram has joined #ruby
<jsilver> rking: "/" and "\" different but mean same thing on Win32
bradhe has quit [Ping timeout: 264 seconds]
<jsilver> and UNIX
<jsilver> File.join is for crossplatformness
<jsilver> sounds like a bug
techhelp has joined #ruby
<rking> jsilver: I don't think so
h4mz1d has quit [Ping timeout: 264 seconds]
<jsilver> it should be "a\b"
<rking> I think the reality is that '/' works everywhere stupid '\' would, so there's no point.
vasile has joined #ruby
<jsilver> right.. "backslash" should have never been used in the first place
xyzodiac has joined #ruby
<jsilver> a great example of microsoft failing to invent anything by diverging from the POSIX standard
<jsilver> and just creating what is now, an ancient archaic graveyard of confusion thats even on our precious ruby
<jsilver> in File#join
chaosis has quit [Ping timeout: 260 seconds]
axl_ has quit [Remote host closed the connection]
<jsilver> has '/ always worked in windows