apeiros_ changed the topic of #ruby to: Ruby 1.9.3-p286: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com
pyreal has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
slainer68 has quit [Remote host closed the connection]
chrishunt has quit [Ping timeout: 260 seconds]
<bairui> bin/binary/command are too specific (my fault on the git example). the 'system' may equally well be db query or uri fetch or simply represent an arbitrary tree of text files. but thanks for making me think more about my boundaries. hmm... target...
<blazes816> in that case target's looking better
<blazes816> what does your tool do with this input?
<bairui> i'm rolling client around on my tongue for this now...
KevinSjoberg has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
alienven1m has quit [Ping timeout: 244 seconds]
<bairui> i am attempting to build a fault localisation tool using binary search (partitioning, more like it)
lggr has joined #ruby
<bairui> so, an invocation would look something like: bisectly --target=vim f-command-broken.vim
zmo_ has quit [Quit: Leaving]
<blazes816> in that case I would go with target for sure. i personally like the term haystack for an object that is being searched, but target sounds a bit more formal
<blazes816> bisectly is an awesome name btw
<bairui> thanks :)
<bairui> i have a logo for it, and pseudocode... i just need to pull my finger out and turn it into ruby now :)
apok_ has joined #ruby
Tarential has quit [Ping timeout: 255 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
<blazes816> that's sweet man, i love the play on words, or whatever you'd call it
apok has quit [Ping timeout: 256 seconds]
apok_ is now known as apok
lggr has quit [Ping timeout: 265 seconds]
pskosinski has quit [Ping timeout: 272 seconds]
alienvenom has joined #ruby
<waxjar> i would keep that square thing, but just put the name as normal left of it
<bairui> thanks. the colouring is significant too - in league with another famous bi movement :)
cakehero has joined #ruby
<bairui> thanks, waxjar. I will play with some variations, so feedback like that is most welcome. I am not a graphic artist :)
<blazes816> lol @ the other famous bi movement
<bairui> :)
<blazes816> you could call it bisectool
<bairui> waxjar: name vertically or horizontally? horiz will alter the perspective and create a lot of white space
<blazes816> but a bit of 'sh' with the t
mahmoudimus has joined #ruby
chendo_ has quit [Quit: Leaving...]
lggr has joined #ruby
<bairui> heh, an early working title was bisectual
<waxjar> one sec bairui
<bairui> but i didn't think of bisectool i like that better
mahmoudimus has quit [Client Quit]
kil0byte has quit [Remote host closed the connection]
gogiel has joined #ruby
thedeadghost has joined #ruby
<Spooner> If you call it bisectol, you will also be able to get it from pharmacies ;)
<waxjar> like that, but fancier :P
<bairui> waxjar: nice
emmanuelux has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
<bairui> ok - i have a variation of that in my inkscape scraps. i'll note the +1 for that style. :)
<waxjar> :)
lggr has joined #ruby
Takehiro has joined #ruby
ephemerian has left #ruby [#ruby]
<Dwarf> Could anyone assist me on something seemingly simple?
<Dwarf> The raw command to do the following
* Dwarf hello
<Dwarf> is \001ACTION hello\001
<bairui> waxjar: that was my original. i'll play with your suggestion of removing the chars from the boxes
<Dwarf> Yet, if I send that, all I get is silly signs
bricker has quit [Ping timeout: 265 seconds]
SCommette has joined #ruby
Z0idberg has joined #ruby
AndChat| has joined #ruby
AndChat- has joined #ruby
nari has joined #ruby
Takehiro has quit [Ping timeout: 272 seconds]
Takehiro has joined #ruby
froy has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 256 seconds]
Banistergalaxy has quit [Ping timeout: 260 seconds]
<waxjar> Dwarf: p "\001ACTION test \001" # => "\u0001ACTION test \u0001"
<waxjar> i think you have to escape the \s, like \\
<Dwarf> I read the RFC, it states that it has to be a \001 character
AndChat| has quit [Ping timeout: 240 seconds]
<Dwarf> e.g.
<Dwarf> raw('PRIVMSG', "#{type} :#{1.chr}ACTION #{message}#{1.chr}")
baroquebobcat has joined #ruby
* Dwarf is testing
* Dwarf is testing
lggr has joined #ruby
<Dwarf> Which is exactly the same
blazes816 has quit [Quit: blazes816]
<Cool_Fire> The right char is indeed 
<waxjar> hmm, lame. maybe it has something to do with the encoding?
<Dwarf> I don't know
<Dwarf> It shows up as an actual 
<waxjar> are you working on an irc library, btw?
<Dwarf> IRC Bot
<Dwarf> Already made the same bot in PHP so might as well do it in ruby
<waxjar> ah, ok. i asked because i am :p
<Kovensky> yes, CTCP is delimited by 0x01 bytes
<waxjar> have you checked out Cinch? it's a p good platform to write bots on
g-ram has joined #ruby
<Dwarf> I'd rather write it from scratch
<Dwarf> That way I actually learn something
<waxjar> true
* Cool_Fire shakes Dwarf's hand
oldB has quit [Quit: oldB]
Chryson has quit [Ping timeout: 260 seconds]
Dwergje has joined #ruby
<Dwarf> ^
<Dwarf> That's him
<Dwarf> Quick example of what's wrong
<Cool_Fire> IRC libs/gems are no fun
<Dwarf> !act #ruby likes pie
* Dwergje likes pie
<dominikh> you'll learn that IRC sucks, yeah :)
<Dwarf> wat
<Dwarf> Suddenly, it works.
<Dwarf> I'm stumped.
<Dwarf> So it might be a server error then
<Dwarf> !quit
Dwergje has quit [Client Quit]
<Cool_Fire> That's how I did it
<Dwarf> One thing I'm really proud of is that it ghosts itself :D
<Cool_Fire> That is quite clever
<Dwarf> [02:37 AM] <@Dwarf> !act #dwarf is sexy
* Dwarf is sexy
<Dwarf> Tadaaa
Z0idberg has quit [Quit: Leaving]
<dominikh> doesn't look like it works to me?
lggr has quit [Ping timeout: 246 seconds]
kiyoura has quit [Quit: Leaving]
kiyoura has joined #ruby
adeponte has quit [Remote host closed the connection]
<Dwarf> It doesn't work on rizon
<Dwarf> Strangely
quazimodo has quit [Ping timeout: 246 seconds]
<Dwarf> The worst thing is that it works here
<Dwarf> For some reason
<dominikh> pretty sure Rizon doesn't randomly strip CTCPs from messages :P
Drewch has quit [Ping timeout: 246 seconds]
<Dwarf> My PHP bot worked on rizon
<Dwarf> So this one should too, as it's an exact port
joofsh has quit [Ping timeout: 246 seconds]
<dominikh> I mean, yes, Rizon is a horribly shitty network, but still
<Dwarf> (but with less junk code)
<dominikh> my bet is on a missing \001 at the end of the message :P
A124 has quit [Quit: Leaving.]
<Dwarf> Nope
<Dwarf> As you can see it's there
<Dwarf> Oh wait
<Dwarf> Waaaaaaaaait
johnduhart2 has joined #ruby
* Dwarf is sexy
<Dwarf> Thar.
<Dwarf> Double :
quazimodo has joined #ruby
lggr has joined #ruby
<dominikh> heh. the fact that the message even made it to #dwarf is sad then :P
rubious has quit [Quit: Linkinus - http://linkinus.com]
sakh_ has joined #ruby
<Dwarf> it worked here without errors
<Dwarf> So I don't know which server is worse ;)
avrgsecguy has joined #ruby
<dominikh> in this case, freenode.
joofsh has joined #ruby
companion_ has joined #ruby
<Dwarf> :D
Drewch has joined #ruby
<dominikh> frankly though I think you edited the code afterwards, because with the wrong colon, it definitely does not work on freenode, either.
<dominikh> PRIVMSG :#dominikh :test
<dominikh> :card.freenode.net 412 dominikh_ :No text to send
sakh has quit [Ping timeout: 248 seconds]
<dominikh> which isn't surprising, that way, it's only a single parameter
dagobah_ has joined #ruby
sent-hil has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
dmiller_ has joined #ruby
<Dwarf> ok ok
<Dwarf> NOW it's weird.
* Dwarf likes pie
* Dwarf likes pie
* Dwarf likes pie
<Dwarf> The second one doesn't
<Dwarf> They're identical
<dominikh> you realize your pastes are useless if unprintable characters don't get masked for display? :)
<kiyoura> the space between : and ACTION is \001, right?
lggr has quit [Ping timeout: 244 seconds]
ryanlecompte has quit [Read error: Connection reset by peer]
<Dwarf> Yap
<Dwarf> Mmm they show as boxes for me, dominikh
ryanlecompte has joined #ruby
<dominikh> fair enough. my client must be stripping them
avrgsecguy has left #ruby [#ruby]
<kiyoura> as is mine
<dominikh> because they're not valid code points
graft is now known as Guest76766
smw__ has joined #ruby
Servidorv has quit [Ping timeout: 245 seconds]
smw__ has quit [Remote host closed the connection]
hemanth has quit [*.net *.split]
jeffreybaird has quit [*.net *.split]
mneorr has quit [*.net *.split]
dotemacs has quit [*.net *.split]
smw_ has quit [*.net *.split]
jhubert has quit [*.net *.split]
ZenGuy311 has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
schronicles47 has quit [*.net *.split]
m_3 has quit [*.net *.split]
dmiller has quit [*.net *.split]
freakazoid0223 has quit [*.net *.split]
nricciar_ has quit [*.net *.split]
knirhs has quit [*.net *.split]
AwesomeGarethMan has quit [*.net *.split]
xclite has quit [*.net *.split]
busybox42 has quit [*.net *.split]
Companion has quit [*.net *.split]
johnduhart has quit [*.net *.split]
pradeepto has quit [*.net *.split]
BombStrike has quit [*.net *.split]
dagobah has quit [*.net *.split]
companion_ is now known as companion
companion has quit [Changing host]
companion has joined #ruby
<waxjar> netsplit! :D
<Dwarf> Wasn't me
nricciar_ has joined #ruby
pdtpatr1ck has quit [Quit: pdtpatr1ck]
lggr has joined #ruby
Hanmac has joined #ruby
sammybaby has joined #ruby
Foxandxss has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<Dwarf> The actual code
jimeh has quit [Ping timeout: 260 seconds]
zeromodu_ has joined #ruby
Tarential has joined #ruby
<Hanmac> Dwarf you can replace "#{1.chr}" with "\1"
<Dwarf> Rad
zeromodulus has quit [Ping timeout: 245 seconds]
AwesomeGarethMan has joined #ruby
icole has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
karstensrage has quit [Quit: changing servers]
Servidorv has joined #ruby
eiffel has joined #ruby
<Hanmac> Dwarf and i may recomend to repalce "\r\n" with "#{$/}"
<Hanmac> and .nil? is better than == nil
<Hanmac> or use unless
pradeepto has joined #ruby
ZenGuy311 has joined #ruby
freakazoid0223 has joined #ruby
jeffreybaird has joined #ruby
dotemacs has joined #ruby
BombStrike has joined #ruby
hemanth has joined #ruby
xclite has joined #ruby
knirhs has joined #ruby
Mon_Ouie has joined #ruby
busybox42 has joined #ruby
m_3 has joined #ruby
mneorr has joined #ruby
freakazoid0223 has quit [Ping timeout: 246 seconds]
slainer68 has joined #ruby
<Hanmac> hm but in your case switch the if cases so you can do: if msg ... else ... end
<waxjar> the IRC protocol requires "\r\n" as line endings (i'm assuming $/ is the platform line ending thing)
peregrine81 has joined #ruby
Mon_Ouie has quit [Remote host closed the connection]
xclite has quit [Ping timeout: 246 seconds]
icole has quit [Remote host closed the connection]
freakazoid0223 has joined #ruby
<dominikh> Hanmac: he most certainl should not replace \r\n with $/
xclite has joined #ruby
lggr has joined #ruby
Guest43265 has joined #ruby
Guest43265 has quit [Max SendQ exceeded]
Mon_Ouie has joined #ruby
<dominikh> Hanmac: the IRC protocol could not care less about your platform's line delimiter, it expects \r\n to end a message :)
<Dwarf> Well I fixed that error thanks to dominikh's awesome debugging skills
<Hanmac> hm ok, but the other part could be done better
<Dwarf> so if msg.nil?
kyletcarey has joined #ruby
<Dwarf> noted.
_karstensrage has joined #ruby
_karstensrage has quit [Max SendQ exceeded]
_karstensrage has joined #ruby
_karstensrage has quit [Max SendQ exceeded]
eiffel has quit [Quit: Linkinus - http://linkinus.com]
_karstensrage has joined #ruby
_karstensrage has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
LineByLine has joined #ruby
_karstensrage has joined #ruby
reuf has quit [Quit: Leaving]
daniel_- has quit [Quit: WeeChat 0.3.9]
_karstensrage has quit [Excess Flood]
<Hanmac> Dwarf i dont know irc so much, but http://pastebin.com/cbnTeAmc should work too
slainer68 has quit [Ping timeout: 272 seconds]
_karstensrage has joined #ruby
_karstensrage has quit [Excess Flood]
<Hanmac> it works because: "#{nil}" #=> ""
<Dwarf> Mhm
_karstensrage has joined #ruby
Banistergalaxy has joined #ruby
<Dwarf> Unfortunately, that was actually the culprit
<Dwarf> The space between #{msg} and \r\n
<dominikh> well, remove that again then. his point was, the nil check is not needed
<dominikh> nil.to_s is "", so even if you add nil to the string, it doesn't change it
AndChat| has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
weeb1e has quit [Ping timeout: 244 seconds]
jvdz has quit [Quit: jvdz]
kaawee has quit [Ping timeout: 252 seconds]
<Hanmac> Dwarf: i hope not that irc makes errors when i add two " " where should be one ...
<dominikh> CTCP does.
<Dwarf> Mmm
<Dwarf> But
SCommette has quit [Quit: SCommette]
<Dwarf> It needs a space between #{cmd} and #{msg}
AndChat- has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
<dominikh> true
Banistergalaxy has quit [Ping timeout: 245 seconds]
ryanlecompte has quit [Remote host closed the connection]
lucianosousa has joined #ruby
<Hanmac> Dwarf there is, but what if msg is nil? then there are two spaces ... is that a problem?
_karstensrage has quit [Excess Flood]
nari has quit [Ping timeout: 260 seconds]
_karstensrage has joined #ruby
<Dwarf> Probably
kil0byte has joined #ruby
DomKM_ has joined #ruby
DomKM_ has left #ruby [#ruby]
<dominikh> rule of thumb: trailing spaces are bad :)
<dominikh> in code, in protocols and in everything
kyletcarey has quit [Quit: leaving]
jamjam has joined #ruby
<Hanmac> $con.puts([cmd,msg,"\r\n"].compact.join(" "))
DomKM_ has joined #ruby
<dominikh> you really consider that nicer code? ;)
<dominikh> (not to mention it's probably slow)
<Hanmac> have you better idea?
<dominikh> sure. just keep the if :)
irleif has quit [Quit: Computer has gone to sleep.]
DomKM_ has quit [Client Quit]
<dominikh> or, really, change the method signature and realize that cmd and msg should be one single argument, anyway
glyytchy has quit [Quit: Leaving...]
davidcelis has quit [Quit: K-Lined.]
<Hanmac> $con.puts(msg ? "#{cmd} #{msg} \r\n" : "#{cmd} \r\n")
LineByLine has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
lggr has quit [Ping timeout: 245 seconds]
joeycarmello has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
lggr has joined #ruby
kyletcarey has joined #ruby
pmros_ has quit [Quit: Konversation terminated!]
voodoofish430 has quit [Quit: Leaving.]
sent-hil has quit [Remote host closed the connection]
JonnieCache has joined #ruby
mikepack has joined #ruby
gmurphey has quit [Ping timeout: 245 seconds]
CaptainJet has quit []
seanyo has joined #ruby
rcs has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 245 seconds]
epochwolf has quit [Ping timeout: 276 seconds]
danheberden has quit [Quit: oh noes]
Banistergalaxy has joined #ruby
danheberden has joined #ruby
joeycarm_ has joined #ruby
joeycarmello has quit [Read error: Connection reset by peer]
rcs has joined #ruby
lggr has joined #ruby
epochwolf has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
AndChat| has quit [Ping timeout: 245 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
JonnieCache has quit [Ping timeout: 252 seconds]
c0rn_ has joined #ruby
_karstensrage is now known as karstensrage
Takehiro has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
nateberkopec has joined #ruby
mohits has joined #ruby
lggr has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
nateberkopec has quit [Client Quit]
dpk has quit [Quit: Asleep at the keyboard.]
reuf has joined #ruby
ebobby has joined #ruby
ebobby is now known as Guest88012
wpaulson has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Vert has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
reuf has quit [Client Quit]
sent-hil has joined #ruby
thmzlt has quit [Read error: Connection reset by peer]
lggr has joined #ruby
lucianosousa has quit [Ping timeout: 246 seconds]
Mon_Ouie has quit [Ping timeout: 246 seconds]
sent-hil has quit [Remote host closed the connection]
Tarential has quit [Ping timeout: 245 seconds]
Hanmac has quit [Ping timeout: 272 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
Guest93059 is now known as sent-hil
sent-hil is now known as Guest91117
irleif has joined #ruby
thmzlt has joined #ruby
jamjam has quit [Ping timeout: 255 seconds]
Guest88012 has quit [Ping timeout: 272 seconds]
lggr has quit [Ping timeout: 272 seconds]
joeycarmello has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
joeycarm_ has quit [Ping timeout: 246 seconds]
hemanth has quit [Read error: Connection reset by peer]
lggr has joined #ruby
hemanth has joined #ruby
sn0wb1rd has joined #ruby
joshman_ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
karstensrage has quit [Quit: changing servers]
nai has joined #ruby
ryanf has quit [Ping timeout: 256 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
apok has quit [Quit: apok]
Servidorv has quit [Quit: I cna ytpe 300 wrods pre mniuet!!!]
karstensrage has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
pradeepto has quit [Ping timeout: 246 seconds]
ZenGuy311 has quit [Ping timeout: 246 seconds]
joshman_ has quit [Ping timeout: 244 seconds]
karstensrage is now known as Guest5672
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
AndChat| has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
wpaulson has quit [Read error: Connection reset by peer]
AndChat- has joined #ruby
wpaulson has joined #ruby
ZenGuy311 has joined #ruby
lggr has joined #ruby
irleif has joined #ruby
ElderFain has quit [Quit: I'm Gone]
jeffreybaird has quit [Read error: Connection reset by peer]
pradeepto has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
wpaulson has quit [Read error: Connection reset by peer]
hotovson has joined #ruby
wpaulson has joined #ruby
chrishunt has joined #ruby
Mon_Ouie has joined #ruby
wpaulson has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 245 seconds]
wpaulson has joined #ruby
psyl0n has joined #ruby
AndChat| has quit [Ping timeout: 276 seconds]
Trioke has quit [Ping timeout: 255 seconds]
wedtm is now known as wedtm|away
justinmcp has quit [Remote host closed the connection]
wpaulson_ has joined #ruby
wpaulson_ has quit [Client Quit]
lggr has quit [Ping timeout: 256 seconds]
hotovson has quit [Remote host closed the connection]
icole has joined #ruby
Chryson has joined #ruby
chussenot has quit [Quit: chussenot]
lggr has joined #ruby
ddd has quit [Quit: Leaving.]
wpaulson has quit [Ping timeout: 260 seconds]
hotovson has joined #ruby
icole has quit [Ping timeout: 260 seconds]
Solnse has joined #ruby
Banistergalaxy has joined #ruby
AndChat| has joined #ruby
roadt has joined #ruby
hotovson has quit [Read error: No route to host]
lggr has quit [Ping timeout: 240 seconds]
Serial_Killer_C has joined #ruby
ryanlecompte has joined #ruby
knite has quit [Quit: knite]
rakunHo has joined #ruby
radic has joined #ruby
AndChat- has quit [Ping timeout: 276 seconds]
lggr has joined #ruby
Banistergalaxy has quit [Ping timeout: 276 seconds]
ZenGuy311 has quit [Ping timeout: 245 seconds]
ryanlecompte has quit [Ping timeout: 256 seconds]
sammybaby has quit [Quit: sammybaby]
radic_ has quit [Ping timeout: 272 seconds]
adeponte has joined #ruby
cakehero has quit [Quit: Leaving...]
lggr has quit [Ping timeout: 256 seconds]
swarley has joined #ruby
lggr has joined #ruby
Guest5672 is now known as karstensrage
nari has joined #ruby
sn0wb1rd has quit [Quit: sn0wb1rd]
sn0wb1rd has joined #ruby
peregrine81 has quit [Quit: Goodbye.]
davidcelis has joined #ruby
dorei has quit []
lggr has quit [Ping timeout: 265 seconds]
Banistergalaxy has joined #ruby
AndChat- has joined #ruby
bradyl0ve has quit [Quit: Linkinus - http://linkinus.com]
glyytchy has joined #ruby
AndChat| has quit [Ping timeout: 276 seconds]
lggr has joined #ruby
Takehiro has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
felipec has joined #ruby
ZenGuy311 has joined #ruby
<felipec> what's a good string separator in Ruby that is an ascii code that is not visible?
<heftig> \0?
<davidcelis> felipec: why
lggr has quit [Ping timeout: 245 seconds]
<felipec> heftig: that terminates a string, I can't do string.split("\0")
<felipec> davidboy: because I don't want to use characters that might appear in a string
deryldoucette has joined #ruby
<heftig> yes you can
<heftig> "asdf\0ghjk\0zcxv".split("\0")
deryldoucette has quit [Client Quit]
lggr has joined #ruby
<felipec> heftig: ahh, it was only open() that was complaining about it
ddd has joined #ruby
<felipec> cool
<heftig> NUL bytes are not valid in filenames IIRC
glyytchy has quit [Ping timeout: 245 seconds]
<swarley> null bytes shouldn't be valid in filenames
<swarley> considering they are stored as c strings at the os level
philips_ has quit [Excess Flood]
lggr has quit [Ping timeout: 260 seconds]
forced_request has joined #ruby
yourmysin has joined #ruby
philips_ has joined #ruby
nai has quit [Remote host closed the connection]
<kiyoura> swarley, that's bad terminology
one8zero has quit [Quit: one8zero]
lggr has joined #ruby
<kiyoura> a c-string is null-terminated; null bytes are not 'stored as' c strings
<swarley> no
<swarley> file names
<swarley> are stored as c strings
slainer68 has joined #ruby
<swarley> that is what i'm referring to
<swarley> I've done more than enough work with low level C, to know that C strings are null terminated
<kiyoura> C is a high-level language, lol
<kiyoura> assembly is low, however
<kiyoura> moreover, it does not bother filenames
<dakine> holy. shit.
<dakine> kiyoura ?
rakl has joined #ruby
<kiyoura> ?
<dakine> is my nick familiar?
<dakine> or xe0n
<wmoxam> ????
<swarley> i never said C was low level, lol. I just said i did low level work in C
mohits has quit [Ping timeout: 276 seconds]
<kiyoura> lol hi xe0n
<swarley> And I did all of the string library for C in asm, if that will please you
<dakine> sup kiyoura :D
<kiyoura> swarley, oh lol. good ;)
<swarley> Operating System development is a bitch
<swarley> makes you learn math
<kiyoura> ive been wanting to start
slainer68 has quit [Ping timeout: 252 seconds]
<kiyoura> but this isn't the place for that ;)
<swarley> Yeah
<swarley> lol
<swarley> And i would assume that null effected the file, since the name is just char * in the linux headers
<swarley> filename*
Banistergalaxy has joined #ruby
<wmoxam> swarley: what flavour of asm? x86?
<kiyoura> ooo maybe ARM :)
AndChat| has joined #ruby
<swarley> Yeah, x86 and x86_64
<swarley> I did it all in 64 and went back through and added the x86
<wmoxam> I did some on a Motorola 86000
<swarley> lots of #ifdef __i386__
lggr has quit [Ping timeout: 255 seconds]
<wmoxam> that was a while ago :p
parzorep has quit [Quit: parzorep]
<wmoxam> haven't really touched x86 yet
<wmoxam> :p
<swarley> kiyoura; if you want a very small challenge, write a gameboy advanced kernel
<swarley> arm programming is really easy lol.
<kiyoura> swarley, my friend wrote a gb emulator
<swarley> Oh cool
AndChat- has quit [Ping timeout: 260 seconds]
<kiyoura> for the DS :p
<swarley> xD
<swarley> Well, sec
<wmoxam> i've been meaning to learn MIX
<kiyoura> but swarley that sounds like something to put on my todo list tho
<swarley> Yeah i did some work on an operating system in C
<swarley> i got lost in programming the stdlib though
<swarley> and forgot to work on the actual OS
<felipec> is there a nicer way to do a = b if b
<swarley> i dont even think i wrote a complete text mode handler
lggr has joined #ruby
<swarley> a = (b) ? b : a <- if you want it to be ugly and confusing
Banistergalaxy has quit [Ping timeout: 260 seconds]
<Spooner> felipec : Nope. Not unless you think a = b|a is niver.
<Spooner> *nicer
<Spooner> Oops, b || a I meant.
mahmoudimus has joined #ruby
whackatre has quit [Quit: Cya.]
<swarley> yeah
<swarley> it doesnt even boot, because i got busy writing the std lib
AlbireoX has quit [Remote host closed the connection]
<swarley> well, it boots
<swarley> just it does nothing
<kiyoura> beautiful code ;)
<swarley> did give me a nice excuse to use my todo gem
AlbireoX has joined #ruby
<swarley> sarcasm? :p
<kiyoura> your 8-width tabs oddly makes it more readable
<kiyoura> lol
<swarley> lol, that was before i created my .vimrc
weeb1e has joined #ruby
<swarley> oh god, my WHAT THE HELL IS GCC DOING?!? code is in there
AlbireoX`Laptop has joined #ruby
AlbireoX has quit [Read error: Connection reset by peer]
bradhe has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
fixl has joined #ruby
ryanf has joined #ruby
<swarley> I also have a C++ version
werdnativ has quit [Ping timeout: 245 seconds]
<swarley> but i'm not as happy with that one
Takehiro has quit [Remote host closed the connection]
lggr has joined #ruby
linoj has quit [Quit: linoj]
bradhe has quit [Read error: Operation timed out]
psyl0n has quit [Quit: psyl0n]
dmiller has joined #ruby
bricker has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
dmiller_ has quit [Ping timeout: 240 seconds]
swarley has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
xbayrockx has quit [Ping timeout: 265 seconds]
parzorep has joined #ruby
rakl has quit [Quit: sleeping]
ryanf_ has joined #ruby
xbayrockx has joined #ruby
nandos has joined #ruby
Spooner has quit [Ping timeout: 245 seconds]
ryanf has quit [Ping timeout: 255 seconds]
Serial_Killer_C has quit [Remote host closed the connection]
nandos has quit [Remote host closed the connection]
skaczor has quit [Ping timeout: 260 seconds]
yshh has joined #ruby
BMF has joined #ruby
lggr has quit [Ping timeout: 272 seconds]
quest88 has joined #ruby
mohits has joined #ruby
c0rn_ has joined #ruby
lggr has joined #ruby
rburton- has joined #ruby
jenrzzz has joined #ruby
yourmysin_ has joined #ruby
hsbt is now known as hsbt_away
yourmysin has quit [Ping timeout: 246 seconds]
mohits has quit [Client Quit]
starship has joined #ruby
starship has quit [Changing host]
starship has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Tarential has joined #ruby
gmci has quit [Quit: Computer has gone to sleep.]
ntfox has joined #ruby
<ntfox> Hi guys, does any have experience with goliath? Do you know, how to make work goliath with mongoid(moped) ?
lggr has joined #ruby
alek_b has quit [Remote host closed the connection]
<ntfox> Does anyone have exp with goliath?
n_blownapart has joined #ruby
davidcelis has quit [Quit: K-Lined.]
<n_blownapart> hi still confused about these regex examples with 2 captures; the special characters on line 7 and what is going on generally. thanks. http://pastie.org/4906423
miso1337 has joined #ruby
<n_blownapart> what is going on particularly on line 7 ^^
lggr has quit [Ping timeout: 260 seconds]
Takehiro has joined #ruby
werdnativ has joined #ruby
ZenGuy311 has quit [Ping timeout: 246 seconds]
<kiyoura> n_blownapart, is that like the irb prompt or something?
lggr has joined #ruby
<n_blownapart> I guess kiyoura ... I think it will run from a file too. but I'm confused about the code itself.
<kiyoura> ive been wondering how people are debugging ruby that way
JonnieCache has joined #ruby
slainer68 has joined #ruby
<n_blownapart> but kiyoura do you know how the \\1 \\1 $1, $2 notation works in the arguments and beyond? (i.e. within the brackets.)
<kiyoura> n_blownapart, \\1 and $1 notation aren't interchangeable?
codeFiend has joined #ruby
starship has quit [Ping timeout: 255 seconds]
<kiyoura> im fairly sure ruby only accepts the latter
<kiyoura> besides that im not really sure
jenrzzz has quit [Ping timeout: 255 seconds]
BMF has quit [Remote host closed the connection]
yellow5 has quit [Ping timeout: 272 seconds]
Norrin has quit [Ping timeout: 246 seconds]
yshh has quit [Remote host closed the connection]
<n_blownapart> thanks kiyoura
n_blownapart has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 240 seconds]
levicole has quit [Ping timeout: 256 seconds]
hackeron_ has quit [Ping timeout: 240 seconds]
<profx_> hi guys
slainer68 has quit [Ping timeout: 255 seconds]
<profx_> as you know, a bunch of people are doing a RonRs Berkeley course
<kiyoura> profx_, you may want #rails
jord has quit [Ping timeout: 246 seconds]
<profx_> im just having a little issue with understanding true/false, 0/not 0
codeFiend is now known as aeontech
verto is now known as verto|off
<profx_> kiyoura: actually, no, I don't
hackeron has joined #ruby
<kiyoura> just making sure
<profx_> the def is to return true
<profx_> i use a comparator and have 0 returned, if they are equal
<profx_> so I was -trying- to code my def to give the expected result
<profx_> if result == 0 return "true" else return "false" end
lggr has joined #ruby
<AndChat|> Kiyoura maori?
<kiyoura> hmm?
adeponte has quit [Remote host closed the connection]
<profx_> when I run the first test on the def, i get the incorrect result
adeponte has joined #ruby
<kiyoura> profx_, '', 0, nil, false, etc all evaluate to 'false'
<AndChat|> Kiyours your name means hello in maori
Norrin has joined #ruby
levicole has joined #ruby
yellow5 has joined #ruby
<kiyoura> if you know what you're expecting exactly use ===
<AndChat|> Kiyoura wrong 0 is true
<kiyoura> AndChat|, really? cool
<AndChat|> Kiyoura wrong again
rburton- has quit [Quit: Linkinus - http://linkinus.com]
<profx_> if palindrome? test_str receives "false", would that equate to ?
<AndChat|> kiyoura why are you making stuff up???
horofox has joined #ruby
<profx_> AndChat|: why is all your attention on the other user :P
<AndChat|> Kiyoura === does not do as you say
<AndChat|> Kiyoura === is case equality
<kiyoura> .. no its not?
jord has joined #ruby
<AndChat|> Kiyoura yeah it it's, ruby is not php:)
<kiyoura> AndChat|, yes, ruby is defined per each object
<profx_> can someone answer my question then ?
<AndChat|> Kiyoura that example shows nothing of semantics of ===
<kiyoura> hmm AndChat| seems your right :/
<AndChat|> Kiyoura you mean equal?
adeponte has quit [Ping timeout: 240 seconds]
<AndChat|> Kiyoura yep:)
<kiyoura> interesting
joeycarmello has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
<AndChat|> Kiyoura,Buy a book
pen has joined #ruby
<kiyoura> AndChat|, lol i was just mixed up with php for a sec :p
<ntfox> What irc client do you use, guys?
<AndChat|> Yeah
<AndChat|> BUT to learn subtleties like this,a book is best kiyoura
Takehiro has quit [Remote host closed the connection]
<kiyoura> AndChat|, i have one lol guess i should go over it again :p
ZenGuy311 has joined #ruby
<profx_> anyone else then ?
lggr has joined #ruby
seanyo has quit [Ping timeout: 245 seconds]
leprkhn has quit [Quit: Leaving]
Takehiro has joined #ruby
Monie has quit [Ping timeout: 244 seconds]
bradhe has joined #ruby
zeromodu_ has quit [Ping timeout: 240 seconds]
zeromodulus has joined #ruby
adeponte has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
havenn has joined #ruby
dmiller has quit [Remote host closed the connection]
roadt has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
vitor-br has joined #ruby
SCommette has joined #ruby
bradhe has quit [Ping timeout: 245 seconds]
frogstarr78 has quit [Remote host closed the connection]
thismax has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
frogstarr78 has joined #ruby
davidcelis has joined #ruby
xopherg has joined #ruby
xopherg has quit [Client Quit]
lggr has joined #ruby
SCommette has quit [Quit: SCommette]
mercwithamouth has quit [Ping timeout: 246 seconds]
JonnieCache has quit [Ping timeout: 272 seconds]
swarley has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
SCommette has joined #ruby
lggr has joined #ruby
emergion has joined #ruby
quazimodo has quit [Ping timeout: 245 seconds]
raul782 has joined #ruby
Bosma has joined #ruby
felipec has left #ruby ["Leaving"]
AlbireoX`Laptop has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 245 seconds]
AlbireoX has joined #ruby
evaryont has joined #ruby
c0rn_ has quit [Quit: Computer has gone to sleep.]
<evaryont> hello #ruby! I'm looking into static web site/blog engines. I know of Jekyll, but it seems dead/stale. Anyone know of some other awesome static engines?
lggr has joined #ruby
GarethAdams has joined #ruby
AlbireoX has quit [Read error: Operation timed out]
love_color_text has quit [Remote host closed the connection]
<ryanf_> I like middleman, not sure if it's what you're looking for though
c0rn_ has joined #ruby
aeontech has quit [Ping timeout: 245 seconds]
connor_ has joined #ruby
codeFiend has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
ryanlecompte has joined #ruby
<Paradox> boop
lggr has quit [Ping timeout: 272 seconds]
kiyoura has quit [Quit: Leaving]
justinmcp has joined #ruby
dmiller has joined #ruby
bradhe has joined #ruby
connor_ has quit [Ping timeout: 276 seconds]
slainer68 has joined #ruby
lggr has joined #ruby
g-ram has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
miso1337 has quit [Quit: afk]
Banistergalaxy has joined #ruby
AndChat- has joined #ruby
connor_ has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
c0rn_ has quit [Quit: Computer has gone to sleep.]
nilg has quit [Read error: Operation timed out]
<evaryont> nah
slainer68 has quit [Ping timeout: 272 seconds]
connor_ has quit [Remote host closed the connection]
<evaryont> ryanf_: I'm looking for an alternative to jekyll, middleman acts more like a Sinatra/Guard blend :)
Banistergalaxy has quit [Ping timeout: 240 seconds]
<evaryont> or not
AndChat| has quit [Ping timeout: 260 seconds]
<evaryont> it seems I didn't realize exactly what it does
lggr has quit [Ping timeout: 245 seconds]
<ryanf_> yeah, middleman is definitely less batteries-included than jekyll I think
<profx_> if palindrome? test_str receives "false", would that equate to ?
<ryanf_> pardon?
icole has joined #ruby
bradhe has joined #ruby
lggr has joined #ruby
<profx_> palindrome's def should return false, because the test_str is not one. if the def 'returns "false"', what would 'if palindrome? test_str' equate to ?
ryanf_ is now known as ryanf
SCommette has quit [Quit: SCommette]
adeponte has quit [Remote host closed the connection]
swarley has quit [Ping timeout: 255 seconds]
adeponte has joined #ruby
ryanf_ has joined #ruby
iamjarvo has quit [Ping timeout: 245 seconds]
yaymukund has quit [Ping timeout: 246 seconds]
<evaryont> profx_: if palindrome? test_str == if(palindrome?(test_str)), and the return result of "false" (a string containing the letters 'f', 'a', 'l', 's', 'e') will result in boolean true, since all strings in ruby are truthy
<profx_> so is "false" a string, rather than a booelean ?
raul782 has quit [Ping timeout: 245 seconds]
advorak has joined #ruby
ninegrid has quit [Ping timeout: 240 seconds]
<evaryont> it depends... if your code has `return "false"`, that is a string. if it has `return false`, that is a boolean. Ruby doesn't do magic string interpretation, converting a string of "false" to be the same as false.
<profx_> ok, thats clear for me
lggr has quit [Ping timeout: 260 seconds]
<evaryont> profx_: it comes down to: Are you using quotes?
<profx_> now, I am doing a comparitor, using <=>
bigmcq77 has joined #ruby
ninegrid has joined #ruby
<profx_> yes, I -had- quotes around it, now I won't
<evaryont> heh
<profx_> the comparior returns 0, for a success
ryanf has quit [Ping timeout: 260 seconds]
<profx_> but the result they are expecting from the def is true or false
ryanf_ is now known as ryanf
<profx_> i added in, if result == 0 return true else return false end
adeponte has quit [Ping timeout: 272 seconds]
<profx_> to determine if the string is a palindrome, I reverse the original string and <=> compare them
<profx_> am I way off mark ?
lggr has joined #ruby
akemEikko has quit [Ping timeout: 272 seconds]
justinmcp has quit [Remote host closed the connection]
love_color_text_ has quit [Remote host closed the connection]
<heftig> profx_: all you really need is a return str == str.reverse
bradhe has quit [Read error: Connection reset by peer]
jhubert has joined #ruby
<profx_> and that returns true/false ?
<heftig> yes
<profx_> whereas the <=> would do 0 or +/- value
<heftig> yes
adeponte has joined #ruby
<profx_> ok, perfect
bradleyprice has joined #ruby
<profx_> thanks
SCommette has joined #ruby
kil0byte has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 260 seconds]
emergion has joined #ruby
advorak has quit [Quit: This computer has gone to sleep]
irleif has quit [Ping timeout: 240 seconds]
kil0byte has joined #ruby
lggr has joined #ruby
Takehiro has quit [Remote host closed the connection]
irleif has joined #ruby
Takehiro has joined #ruby
nari has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 260 seconds]
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
roadt has joined #ruby
lggr has joined #ruby
Banistergalaxy has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
AndChat| has joined #ruby
ericmathison has joined #ruby
AndChat- has quit [Ping timeout: 240 seconds]
adeponte has quit [Ping timeout: 252 seconds]
quazimodo has joined #ruby
AndChat- has joined #ruby
yxhuvud has joined #ruby
SCommette has quit [Quit: SCommette]
Quadrant has joined #ruby
Banistergalaxy has quit [Ping timeout: 252 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
dmiller has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
answer_42 has joined #ruby
AndChat- has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
AndChat| has quit [Ping timeout: 252 seconds]
bradleyprice has quit [Remote host closed the connection]
lggr has joined #ruby
havenn has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
irleif has joined #ruby
charliesome has joined #ruby
joeycarmello has joined #ruby
Araxia has quit [Quit: Araxia]
lggr has quit [Ping timeout: 245 seconds]
swarley has joined #ruby
joeycarmello has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
daniel_hinojosa has quit [Ping timeout: 255 seconds]
havenn has joined #ruby
slainer68 has joined #ruby
thismax has quit [Quit: leaving]
chendo_ has joined #ruby
mahmoudimus has joined #ruby
joofsh has quit [Remote host closed the connection]
jrp has joined #ruby
<jrp> hello, Im trying to figure out how to verify a message with a public key
<jrp> but im not having much luck
<jrp> I have a pem encoded pubkey, and a message, but it seems like OpenSSL::PKey.verify requires a private key, which obviously i dont have
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
slainer68 has quit [Ping timeout: 245 seconds]
ryanf has quit [Quit: broken pipes |||]
frogstarr78 has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
dmiller has joined #ruby
rTypo has joined #ruby
bricker_ has joined #ruby
bricker_ has quit [K-Lined]
ryanf has joined #ruby
frogstarr78 has joined #ruby
araujo has quit [Quit: Leaving]
lggr has quit [Ping timeout: 245 seconds]
bricker has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
Bosma has quit [Ping timeout: 255 seconds]
ananthakumaran has joined #ruby
freezway has quit [Ping timeout: 248 seconds]
dmiller has quit [Remote host closed the connection]
jrp has left #ruby [#ruby]
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
dmiller has joined #ruby
dmiller has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
dmiller has joined #ruby
jmampost has joined #ruby
fantazo_ has joined #ruby
lggr has joined #ruby
dmiller has quit [Ping timeout: 245 seconds]
swarley has quit [Ping timeout: 246 seconds]
Morkel has joined #ruby
icole has quit [Remote host closed the connection]
freeayu has quit [Ping timeout: 246 seconds]
icole has joined #ruby
mucker has joined #ruby
SCommette has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
lggr has joined #ruby
snorkdude has joined #ruby
werdnativ has quit [Quit: werdnativ]
darutoko- has joined #ruby
bradhe has quit [Ping timeout: 260 seconds]
nyrb has quit [Remote host closed the connection]
werdnativ has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
knite has joined #ruby
love_color_text has joined #ruby
arturaz has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
reset has quit [Ping timeout: 245 seconds]
und3f has joined #ruby
<darutoko-> I want to get from hash a new hash with 'true' values, doing this: h = hh.each.{|k,v| k => true} but it does not working, how to do it right?
JonnieCache has joined #ruby
parzorep has quit [Quit: parzorep]
rubious has joined #ruby
slainer68 has joined #ruby
thone_ has joined #ruby
AlbireoX has joined #ruby
biesiad has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
thone has quit [Ping timeout: 240 seconds]
JonnieCache has quit [Ping timeout: 248 seconds]
slainer68 has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
Banistergalaxy has quit [Ping timeout: 246 seconds]
kzrl has quit [Ping timeout: 246 seconds]
manizzle has joined #ruby
advorak has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
yaymukund has joined #ruby
parzorep has joined #ruby
jmampost has quit [Ping timeout: 248 seconds]
havenn has quit [Remote host closed the connection]
Hsparks has joined #ruby
Hsparks has quit [Remote host closed the connection]
emergion has joined #ruby
adeponte has joined #ruby
Hsparks has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
Morkel has quit [Quit: Morkel]
und3f has quit [Ping timeout: 245 seconds]
quest88 has quit [Quit: quest88]
cardoni has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
havenn has joined #ruby
advorak has quit [Quit: This computer has gone to sleep]
icole has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
kzrl has joined #ruby
Banistergalaxy has joined #ruby
advorak has joined #ruby
lggr has joined #ruby
Erfankam has joined #ruby
advorak has quit [Read error: Connection reset by peer]
advorak has joined #ruby
ZubKonst_ has joined #ruby
ZubKonst has quit [Read error: Connection reset by peer]
<havenn> darkc0met: h = hh.each_key { |k| hh[k] = true }
kyletcarey has quit [Ping timeout: 272 seconds]
lggr has quit [Ping timeout: 246 seconds]
SCommette has quit [Quit: SCommette]
rippa has joined #ruby
icole has joined #ruby
lggr has joined #ruby
axl_ has quit [Read error: Connection reset by peer]
Hsparks has quit [Quit: Bye]
und3f has joined #ruby
axl_ has joined #ruby
parzorep has quit [Quit: parzorep]
ntfox has quit [Remote host closed the connection]
hbpoison has joined #ruby
hamed_r has joined #ruby
icole has quit [Ping timeout: 265 seconds]
QKO_ has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
havenn has quit [Remote host closed the connection]
QKO has quit [Ping timeout: 246 seconds]
Banistergalaxy has quit [Ping timeout: 240 seconds]
armenb_ has quit [Ping timeout: 276 seconds]
imami|afk is now known as banseljaj
_bart has quit [Quit: _bart]
lggr has quit [Ping timeout: 252 seconds]
hotovson_ has joined #ruby
freeayu has joined #ruby
lggr has joined #ruby
ryanf has quit [Quit: leaving]
biesiad has quit [Ping timeout: 246 seconds]
cj3kim has joined #ruby
snorkdude has quit [Remote host closed the connection]
FifthWall has quit [Quit: Zzzzzzzzzzzzz]
emergion has quit [Quit: Computer has gone to sleep.]
advorak has quit [Quit: This computer has gone to sleep]
AlbireoX has quit [Remote host closed the connection]
AlbireoX has joined #ruby
lggr has quit [Ping timeout: 272 seconds]
lggr has joined #ruby
_bart has joined #ruby
punkrawkR has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 252 seconds]
rTypo has left #ruby ["WeeChat 0.3.9"]
AlbireoX has quit [Ping timeout: 255 seconds]
armenb has joined #ruby
zenformatics1 has quit [Ping timeout: 245 seconds]
icole has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
sepp2k has joined #ruby
werdnativ has quit [Quit: FAMOUS_LAST_WORDS is nil]
anirudh24seven has joined #ruby
rubious has quit [Quit: Leaving...]
jimgg has joined #ruby
lggr has joined #ruby
roadt has quit [Ping timeout: 255 seconds]
ForevernadeAFK has joined #ruby
emergion has joined #ruby
lukeholder has joined #ruby
miso1337 has joined #ruby
icole has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
miso1337_ has joined #ruby
Forevernade has quit [Ping timeout: 255 seconds]
roadt has joined #ruby
miso1337 has quit [Ping timeout: 245 seconds]
miso1337_ is now known as miso1337
lggr has quit [Ping timeout: 244 seconds]
armenb has quit [Ping timeout: 240 seconds]
miso1337_ has joined #ruby
lggr has joined #ruby
lukeholder has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
roadt has quit [Ping timeout: 245 seconds]
cj3kim has quit [Quit: This computer has gone to sleep]
miso1337 has quit [Ping timeout: 246 seconds]
miso1337_ is now known as miso1337
jimgg has quit [Quit: ChatZilla 0.9.89 [Firefox 14.0.1/2012071300]]
timonv has quit [Remote host closed the connection]
justinmcp has joined #ruby
knite has quit [Quit: knite]
lggr has quit [Ping timeout: 272 seconds]
_bart has quit [Quit: _bart]
lggr has joined #ruby
mucker has quit [Ping timeout: 244 seconds]
codeFiend has quit [Ping timeout: 260 seconds]
akem has joined #ruby
icooba has joined #ruby
codeFiend has joined #ruby
aeontech has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
hamed_r has quit [Quit: Leaving]
sn0wb1rd has quit [Quit: sn0wb1rd]
lggr has quit [Ping timeout: 245 seconds]
squimmy has joined #ruby
timonv has joined #ruby
codeFiend has quit [Ping timeout: 256 seconds]
aeontech is now known as codeFiend
wallerdev has quit [Quit: wallerdev]
lggr has joined #ruby
frogstarr78 has quit [Ping timeout: 252 seconds]
Beoran_ has quit [Ping timeout: 252 seconds]
alanp_ has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
lggr has quit [Ping timeout: 272 seconds]
jimgg has joined #ruby
alanp has joined #ruby
lggr has joined #ruby
justinmcp has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
Xeago has joined #ruby
nari_ has joined #ruby
Beoran_ has joined #ruby
icooba has quit [Quit: Computer has gone to sleep.]
frogstarr78 has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
Virunga has joined #ruby
shikamaru has quit [Ping timeout: 256 seconds]
hbpoison has joined #ruby
shikamaru has joined #ruby
emergion has joined #ruby
hbpoison has quit [Ping timeout: 245 seconds]
rakl has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
roadt has joined #ruby
pskosinski has joined #ruby
burgestrand has joined #ruby
Cache_Money has joined #ruby
<Cache_Money> is there a method for determining whether the characters in a string are unique or not?
armenb has joined #ruby
lggr has quit [Ping timeout: 265 seconds]
freeayu has quit [Ping timeout: 265 seconds]
lggr has joined #ruby
<Hanmac1> Cache_Money: s="abcdea";s.each_char.none? {|c| s.count(c) > 1}
<Cache_Money> Hanmac1: nice
Hanmac1 is now known as Hanmac
freeayu has joined #ruby
slainer68 has joined #ruby
jgrevich has quit [Quit: jgrevich]
JonnieCache has joined #ruby
hsbt_away is now known as hsbt
lggr has quit [Ping timeout: 260 seconds]
Solnse has quit [Ping timeout: 256 seconds]
rabidpraxis has quit [Remote host closed the connection]
lggr has joined #ruby
JonnieCache has quit [Ping timeout: 248 seconds]
zenformatics has joined #ruby
Solnse has joined #ruby
Erfankam has quit [Remote host closed the connection]
dangerousdave has joined #ruby
tjbiddle has joined #ruby
jimgg has left #ruby [#ruby]
Jellyg00se has joined #ruby
lggr has quit [Ping timeout: 276 seconds]
araujo has joined #ruby
hbpoison has joined #ruby
raluxgaza has joined #ruby
emergion has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
anderse has joined #ruby
samphippen has joined #ruby
ForevernadeAFK has quit [Ping timeout: 252 seconds]
araujo has quit [Read error: Connection reset by peer]
hbpoison has quit [Ping timeout: 255 seconds]
araujo has joined #ruby
Virunga has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 255 seconds]
Virunga has joined #ruby
Virunga has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
hbpoison has joined #ruby
lggr has joined #ruby
ZubKonst has joined #ruby
ZubKonst_ has quit [Ping timeout: 245 seconds]
samuel02 has joined #ruby
<Dwarf> Simple question:
<Dwarf> In an if statement, how would one do something along the lines of if (var1 == 1 || var2 == 2)
<Dwarf> Is that valid?
<Dwarf> Or rather, if (var1 == 1 && var2 == 2)
<Dwarf> Because I read somewhere that it will execute things instead
lggr has quit [Ping timeout: 246 seconds]
kjellski has joined #ruby
lggr has joined #ruby
frogprince_mac has joined #ruby
rabidpraxis has joined #ruby
rakl has quit [Quit: sleeping]
emergion has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
chussenot has joined #ruby
akem has quit [Ping timeout: 245 seconds]
rabidpraxis has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
Cache_Money has quit [Ping timeout: 255 seconds]
miso1337 has quit [Quit: afk]
icole has joined #ruby
akem has joined #ruby
jamesaxl has quit [Ping timeout: 240 seconds]
<Dwarf> How would I go about doing something like arrayindex = array.count -1
jamesaxl has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
x0F__ has joined #ruby
x0F__ is now known as x0F
lggr has quit [Ping timeout: 272 seconds]
icole has quit [Ping timeout: 244 seconds]
mneorr has quit [Ping timeout: 246 seconds]
x0F_ has quit [Ping timeout: 248 seconds]
niklasb has joined #ruby
lggr has joined #ruby
justinmcp has joined #ruby
wez has joined #ruby
jamesaxl has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
vitor-br has quit [Ping timeout: 245 seconds]
<Hanmac> Dwarf why do you need the arrayindex?
frederic has joined #ruby
lggr has joined #ruby
kjellski has quit [Quit: This computer has gone to sleep]
adeponte has quit [Remote host closed the connection]
anirudh24seven has quit [Ping timeout: 276 seconds]
mucker has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
vlad_starkov has joined #ruby
Solnse has quit [Ping timeout: 248 seconds]
niklasb has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
a_a_g has joined #ruby
zeromodulus has quit [Ping timeout: 240 seconds]
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
cardoni has quit [Quit: cardoni]
akem has quit [Excess Flood]
akem has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
zeromodulus has joined #ruby
lggr has joined #ruby
timonv has joined #ruby
Morkel has joined #ruby
zeromodulus has quit [Ping timeout: 260 seconds]
hamed_r has joined #ruby
mneorr has joined #ruby
anirudh24seven has joined #ruby
prtksxna has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
theRoUS has joined #ruby
negev has joined #ruby
Iszak has quit [Read error: Connection reset by peer]
justinmcp has quit [Remote host closed the connection]
<negev> hi, can anyone point me at a very simple ORM written in Ruby? ideally something small and lightweight, a single file library, that i can easy extend to work with a different database backend
lggr has joined #ruby
timonv has quit [Remote host closed the connection]
nemesit has joined #ruby
nemesit has quit [Client Quit]
zeromodulus has joined #ruby
Iszak has joined #ruby
Iszak has quit [Changing host]
Iszak has joined #ruby
anderse has quit [Quit: anderse]
lggr has quit [Ping timeout: 240 seconds]
negev has left #ruby [#ruby]
anirudh24seven has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
arietis has joined #ruby
davidcelis has quit [Ping timeout: 245 seconds]
* Kovensky prefers to just use datamapper
<Kovensky> automigration is just too nice :>
zeromodulus has quit [Ping timeout: 272 seconds]
icole has joined #ruby
Takehiro has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
snearch has joined #ruby
lggr has joined #ruby
hamed_r has quit [Ping timeout: 256 seconds]
icole has quit [Ping timeout: 252 seconds]
wez has quit [Ping timeout: 245 seconds]
cakehero has joined #ruby
wez has joined #ruby
und3f has quit [Quit: Leaving.]
mneorr has quit [Remote host closed the connection]
cakehero has quit [Client Quit]
wez has quit [Client Quit]
cakehero has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
Virunga has joined #ruby
kirun has joined #ruby
a_a_g has quit [Quit: Leaving.]
cakehero has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 252 seconds]
bluenemo has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
freeayu has quit [Ping timeout: 256 seconds]
anderse has joined #ruby
JonnieCache has joined #ruby
lggr has joined #ruby
Takehiro has joined #ruby
cakehero has joined #ruby
hbpoison has quit [Ping timeout: 244 seconds]
haxrbyte has joined #ruby
verto|off is now known as verto
freeayu has joined #ruby
JonnieCache has quit [Read error: Operation timed out]
lggr has quit [Ping timeout: 252 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
tandy80 has joined #ruby
tandy80 has left #ruby [#ruby]
lggr has joined #ruby
clj_newb has joined #ruby
haxrbyte has quit [Ping timeout: 248 seconds]
_bart has joined #ruby
zeromodu_ has joined #ruby
timonv has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
zeromodu_ has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
freeayu has left #ruby ["离开"]
hamed_r has joined #ruby
bluenemo_ has joined #ruby
A124 has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 240 seconds]
Rydefalk has joined #ruby
lggr has joined #ruby
fphilipe has joined #ruby
Iszak has quit [Remote host closed the connection]
zeromodu_ has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
akem has quit [Read error: Connection reset by peer]
icole has joined #ruby
miphe has quit [Remote host closed the connection]
akem has joined #ruby
lggr has joined #ruby
roadt has quit [Ping timeout: 245 seconds]
zeromodu_ has quit [Ping timeout: 245 seconds]
Morkel has quit [Quit: Morkel]
mucker has quit [Ping timeout: 260 seconds]
icole has quit [Ping timeout: 248 seconds]
Axsuul has quit [Ping timeout: 276 seconds]
mucker has joined #ruby
dpk has joined #ruby
raluxgaza has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
starship has joined #ruby
_bart has quit [Quit: _bart]
_bart has joined #ruby
nicoulaj has joined #ruby
_bart has left #ruby [#ruby]
A124 has quit [Quit: Leaving.]
lggr has joined #ruby
A124 has joined #ruby
roadt has joined #ruby
<sakh_> can i define a local variable in ruby that has the same name as an already existing method?
fixl has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<sakh_> if var local var "abc" when I already have a method "abd(x)"
<sakh_> "abc(x)"
sakh_ is now known as sakh
<shevy> sakh, ruby will try to find out what you mean first
<shevy> it has some rules for that. I think a method name can never be on the left of an assignment
<shevy> foo() = x
<shevy> ruby would scream that this is invalid
<shevy> whereas
<shevy> x = foo()
<shevy> should work
<shevy> as should
<shevy> foo = foo()
krz has joined #ruby
<sakh> mmm kk ty
<shevy> guys... if I have a string like x = "abcDef" ... is there a way to make this "AbcDef"?
<shevy> .capitalize unfortunately downcases everything else, and upcases the first character
lggr has quit [Ping timeout: 252 seconds]
<shevy> right now I use foo[0,1] = foo[0,1].upcase but that sucks
zeromodulus has joined #ruby
<sakh> camelize?
<sakh> i think something like this exists
<canton7> sounds like an activesupport thing?
<shevy> hmm I dont want to use extensions, if possible. my experience was that I had to carry them with my projects
<shevy> I'll use the ugly foo[0,1] thing then :\
lggr has joined #ruby
hbpoison has joined #ruby
NuclearL1cifer has joined #ruby
<NuclearL1cifer> greetings..
<canton7> shevy, you can do foo[0] = foo[0].upcase, and shave a few chars :)
timonv has quit [Remote host closed the connection]
zeromodulus has quit [Ping timeout: 256 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
hotovson_ has quit [Remote host closed the connection]
hbpoison has quit [Ping timeout: 255 seconds]
mercwithamouth has joined #ruby
<shevy> yeah
prtksxna has quit [Ping timeout: 255 seconds]
bluenemo_ has quit [Remote host closed the connection]
bluenemo has quit [Remote host closed the connection]
<shevy> but .capitalize on a string is so much nicer :)
<shevy> I used to have a method called .my_cap
<shevy> just so that it capitalizes the first character... until I got tired of carrying it into my projects
<shevy> hmm
dinamicex1 has joined #ruby
<shevy> isn't there a way for a one liner?
lggr has quit [Ping timeout: 246 seconds]
<shevy> like "work on this string that has its first character upcased, then continue with other stuff"
sandGorgon has joined #ruby
rakunHo has quit [Remote host closed the connection]
<dinamicex1> Hi! Does someone know a Ruby online problem solving competition that is still active? I heard of RPCFN but there were no contests since 2010.
<sakh> y
<matti> ;]
<sakh> its called "install ruby-debug19 on my machine"
lggr has joined #ruby
hbpoison has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
kiyoura has joined #ruby
vectorshelve has joined #ruby
lggr has joined #ruby
arturaz has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
kjellski has joined #ruby
iamjarvo has joined #ruby
mercwithamouth has quit [Ping timeout: 244 seconds]
gmci has joined #ruby
banisterfiend has joined #ruby
<banisterfiend> anyone here got ruby 1.8 ?
lggr has quit [Ping timeout: 246 seconds]
pyreal has quit [Quit: pyreal]
nemesit has joined #ruby
<Hanmac> 1.8 is so totally last century ... you are not up-to-date :P
pmros has joined #ruby
hsbt has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
<pmros> hi!
<banisterfiend> pmros: sup
hsbt has joined #ruby
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
<shevy> 1.8 was the sweet times
<shevy> 1.9 is the rails-ruby
<shevy> 2.0 will be called railsy
<shevy> railsy foo.ry
<vectorshelve> hoe can write a method using this regex to check if the input is 10 digit or not using regex https://gist.github.com/3884581
<matti> Nobody!
pmros has quit [Ping timeout: 272 seconds]
pmros has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
hsbt has quit [Ping timeout: 252 seconds]
zmo_ has joined #ruby
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
hamed_r has quit [Quit: Leaving]
lggr has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
morozovm has joined #ruby
icole has joined #ruby
<Hanmac> vectorshelve you need to learn to do it your self ... but i help a little bit... i would recomend this regex: /\A\+?[0-9]{10}\Z/
<matti> vectorshelve: ...
seoaqua has joined #ruby
hsbt has quit [Ping timeout: 248 seconds]
<vectorshelve> Hanmac: thanks mate.. I think String.match /\A\+?[0-9]{10}\Z/ should work :)
<matti> [0-9] is so ...
<matti> Hanmac: \d
<matti> ;d
prtksxna has joined #ruby
<matti> vectorshelve: Use Rubular for poking rx'es.
<Hanmac> matti you could use [[:digit:]] too
icole has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 252 seconds]
<matti> Hanmac: NO! That smells like Bash / POSIX.
<matti> ;/
hsbt has joined #ruby
<matti> Eh.
<matti> Writing code > Writing tests > Writing documentation
<matti> ;/
<vectorshelve> Hanmac: it works... but for "111111111\".match /\A\+?[0-9]{10}\Z/ SyntaxError: (irb):11: syntax error, unexpected tINTEGER, expecting $end "111111111\".match /\A\+?[0-9]{10}\Z/
<matti> vectorshelve: \" ?
<vectorshelve> matti: was just trying giving diff values to string.. to cross check regex
<matti> vectorshelve: You escaped "
<canton7> but why the backslash before the quote?
<vectorshelve> matti: all it should have is 10digits.. and regex should find it :)
<vectorshelve> matti: backslash before quote was intentional to see if something could break and it did.. got error..
<Hanmac> matti the difference is that /[[:digit:]]/.match("\u06F2") returns not-nil
<matti> vectorshelve: You should read 101 for Ruby development too.
<matti> Hanmac: Cheeky monkey you.
lggr has joined #ruby
<vectorshelve> matti: I hope you understood what I was trying to do... check all possible wierd combinations.. I need to use this regex to validate my input :)
<matti> vectorshelve: \" has nothing to do with with regular expression.
<matti> vectorshelve: Its a syntax error.
<matti> vectorshelve: '12345"' is a different kettle of fish.
Virunga has quit [Remote host closed the connection]
<canton7> vectorshelve, the problem is that you're not even defining your input. the backslash means that your input definition is, in fact, a syntax error
<matti> vectorshelve: Or "12345\""
<matti> canton7: He has no idea what is he doing ;d
<vectorshelve> canton7: matti what if really the input is "111111111\" thats my question
<canton7> I gathered :P
<canton7> vectorshelve, the '"1111111\"'.match(...)
<matti> vectorshelve: That is fine.
<canton7> *then
<matti> vectorshelve: Your approach to testing it is wrong.
<matti> vectorshelve: You have introduced a syntax error while testing invalidating your test predicate.
mercwithamouth has joined #ruby
Virunga has joined #ruby
clj_newb has quit [Ping timeout: 240 seconds]
<matti> vectorshelve: "a12345" or "12345a" or "12a345" would do it too.
<vectorshelve> matti: canton7 http://pastie.org/5052283
kramutils has joined #ruby
pmros has quit [Quit: Konversation terminated!]
<matti> Eh.
* matti rolls eyes
<canton7> vectorshelve, you never completed the first statement, because you never closed your quotes
<canton7> ruby tells you with with the 002"> on the second line
<canton7> it's waiting for you to finish defining your string
<matti> vectorshelve: [15:22:51] < matti> vectorshelve: '12345"' is a different kettle of fish.
<matti> vectorshelve: [15:23:38] < canton7> vectorshelve, the '"1111111\"'.match(...)
<vectorshelve> matti: ok getting it.. thanks this is my function as of now https://gist.github.com/3884581
<matti> vectorshelve: Reading with understanding is the core principle in development :)
<matti> vectorshelve: Your syntax is wrong.
<matti> vectorshelve: Got Ruby book :)
lggr has quit [Ping timeout: 240 seconds]
<Hanmac> '123"' is valid, "123"" is not, "123\"" is valid, "123\" is not
emmanuelux has joined #ruby
<matti> s/Got/Get/
<vectorshelve> matti: oh.. I was referring to the answer here http://stackoverflow.com/questions/2353931/why-doesnt-this-ruby-code-compare-regex
mercwithamouth has quit [Ping timeout: 255 seconds]
Virunga has quit [Remote host closed the connection]
<Hanmac> return !!(number =~ /\A\+?\d{10}\Z/)
<matti> The double-bang idiom.
<matti> Ture Ninja there.d
<matti> True*
* matti is being silly ;p
<matti> !! in C <3
<vectorshelve> Hanmac: thanks
<vectorshelve> it becomes 3 line now https://gist.github.com/3884581 :)
lggr has joined #ruby
<matti> vectorshelve: You can even drop return ;p
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
iamjarvo has quit [Ping timeout: 245 seconds]
<vectorshelve> matti: yes
<Hanmac> yeah but i like my return ...
<matti> Hanmac: SO anti-Rails.
<matti> ;d
reuf has joined #ruby
* matti hugs Hanmac
Virunga has joined #ruby
<matti> vectorshelve: IIRC, class self << xxx is not a valid syntax?
<matti> Unless its Ruby 3.0 ;d
stwzea has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
Virunga has quit [Read error: Connection reset by peer]
Virunga_ has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
sambio has joined #ruby
monkegjinni has joined #ruby
lggr has joined #ruby
kaawee has joined #ruby
hsbt is now known as hsbt_away
iamjarvo has joined #ruby
clj_newb has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
<Hanmac> matti i have seen a guy that replaces all { ... } blocks with do ... end blocks, and then he wonder why the code is not working :P
lggr has quit [Ping timeout: 260 seconds]
forced_request has quit [Remote host closed the connection]
<matti> ;p
<matti> Hanmac: I guess some bad memory inprint from his time with Pascal ;d
<Hanmac> { ... } and do ... end are similar but sometimes are not interchangeable
vectorshelve has quit [Ping timeout: 245 seconds]
<matti> Indeed.
hbpoison has quit [Ping timeout: 246 seconds]
<matti> They bind differently from lexical point of view.
<matti> But this is like 101 Ruby.
wpaulson has joined #ruby
<matti> ;/
<matti> We want 102 Ruby problems.
<matti> And 201 ...
lggr has joined #ruby
<matti> Eh, being jobless is so great.
<matti> I have so much time!
<profx_> hey guys, im using Terminal in OSX, when I run irb, and I am at the bottom of the terminal, it keeps filling the bottom of the window, and makes a mess, strings printed on two or more lines show on a single line, up arrow makes the output a mess, etc
<matti> profx_: Try to use this with iTerm2
<matti> profx_: There might be problem / issue with Readline (or lack of it).
<matti> OS X is only for buying music on iTunes.
<matti> When will people realise that ;p
<matti> Like Windows is just for games.
hbpoison has joined #ruby
<profx_> well, that won't work, I don't 'buy' music
<Hanmac> for what else do you need OSX?
<profx_> ill try iterm2, thanks matti
<matti> ;]
<matti> Hanmac: Hahah
sailias has joined #ruby
Xeago has quit [Ping timeout: 246 seconds]
n1x has joined #ruby
<profx_> music media center, sync idevices, import photos, web browsing, run upto 8 VMs using VMWare Fusion, telephone calls across North America, and movie trailers
gmci has quit [Read error: No route to host]
<matti> Um.
<matti> profx_: And all that after you sepnt 2000 $$$
<matti> ;d
<profx_> over $2000
<matti> There you go ;]
<profx_> are you a banker ?
<matti> No.
lggr has quit [Ping timeout: 260 seconds]
<profx_> there YOU go
* matti <- Linux user
wpaulson_ has joined #ruby
wpaulson has quit [Read error: Connection reset by peer]
wpaulson_ is now known as wpaulson
soulcake has quit [Read error: Connection reset by peer]
gmci has joined #ruby
miphe has joined #ruby
<matti> profx_: I cannot spent $2000 or over, I am too busy compiling latest kernel!
<matti> ;d
wpaulson has quit [Client Quit]
<profx_> obvious you are bored as well.
lggr has joined #ruby
<matti> I am still couting times when I closed my terminal with Apple-Q by accident ;/
anirudh24seven has joined #ruby
<matti> profx_: Its 3rd day of me being jobless ;d
<matti> profx_: So I am enjoying myself ;]
<profx_> apple-K does not cut a line in nano FYI
<Hanmac> i am currently jobless too so i have time to write bindings for 3D-engines ...
<matti> nano?
<matti> VIm <3
* matti puts profx_ on fire
akem has quit [Read error: Connection reset by peer]
<matti> profx_: :)
<matti> Hanmac: I just cooked dinner, want a bite of profx_?
JonnieCache has joined #ruby
<matti> ;]
* profx_ has dragon ancestry, walks out of this fire
<matti> wb JonnieCache
<Hanmac> who needs output? i can type without monitor :D
negev has joined #ruby
<matti> Hanmac: LOL
<matti> profx_: :)
<matti> profx_: So, you are now super-heated.
<matti> profx_: If I trhrow a super-cold water on you,will physics do the rest?
<profx_> now, im comfortable
<matti> ;d
Neomex has joined #ruby
Neomex has quit [Client Quit]
<negev> why doesn't this work? http://pastebin.com/bixDiGmQ
soulcake has joined #ruby
<profx_> ok, so ! is destructive, i am going words.downcase.chats.sort.join
noxoc has joined #ruby
<profx_> can I place these back into words, using a bang?
<canton7> profx_, not necessarily destructive. when there are two methods with do very similar things, often the one that does the least expected thing has the bang suffix
lggr has quit [Ping timeout: 240 seconds]
<profx_> least expected means, be cautious ?
clj_newb has quit [Ping timeout: 276 seconds]
negev has quit [Quit: Lost terminal]
JonnieCache has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
snearch has quit [Quit: Verlassend]
<Hanmac> negev you need def self.property
soulcake has quit [Quit: ZNC - http://znc.in]
kjellski has quit [Quit: This computer has gone to sleep]
akem has joined #ruby
soulcake has joined #ruby
<profx_> is there a ruby bot ?
hsbt_away is now known as hsbt
Takehiro has quit [Read error: Connection reset by peer]
<matti> Used to be
ZenGuy311 has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 255 seconds]
<Hanmac> there was, but the author has no time to host it anymore
akem has quit [Read error: Connection reset by peer]
ZenGuy311 has joined #ruby
jerius has joined #ruby
Takehiro has joined #ruby
<matti> Who is he?
lggr has joined #ruby
<Hanmac> the old owner is currently not online
negev has joined #ruby
<negev> hi, is it possible to get the instance from within a class method?
<negev> i can set instance variables with @something = "test"
<Hanmac> no
irleif has joined #ruby
possibilities has joined #ruby
<Hanmac> matti: there is the old bot repo: https://github.com/jrajav/al2o3cr
Spooner has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
apok has joined #ruby
<negev> so how do you dynamically create accessors then? i can't get it to work, http://pastebin.com/5g5TUy6S
akem has joined #ruby
seoaqua has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
<Hanmac> 1. remove the self.class. from create_method you are allready in the class
<Hanmac> 2. remove the .to_sym stuff, ruby does that internal for you
delinquentme has joined #ruby
<delinquentme> so I'm looking at this File.symlink()
<delinquentme> and i'm hoping it has the possibility to specify a soft symlink
<delinquentme> anyone know/
possibilities has quit [Remote host closed the connection]
<Hanmac> delinquentme ... File.symlink is allready an soft symbolic link ...
<delinquentme> Hanmac, i'm not sure about that ... as the links im looking at are all full system path links?
<delinquentme> and im sure they were created with File.symlink()
monkegjinni has quit [Remote host closed the connection]
<delinquentme> NM!
<delinquentme> ah ha!
apok has quit [Quit: apok]
<shevy> wat
<shevy> why is apeiros gone again
<shevy> people are LZAY
clj_newb has joined #ruby
<Hanmac> the link is created with the same what you input ... if you input an absolute path, it makes an absolute link
akem has quit [Read error: Connection reset by peer]
sailias has quit [Quit: Leaving.]
banisterfiend has joined #ruby
<negev> Hanmac: those changes did not make it work
lggr has quit [Ping timeout: 245 seconds]
nari_ has quit [Ping timeout: 255 seconds]
emmanuelux has quit [Remote host closed the connection]
hsbt is now known as hsbt_away
Russell^^ has joined #ruby
lggr has joined #ruby
clj_newb has quit [Quit: Lost terminal]
clj_newb has joined #ruby
chussenot has quit [Quit: chussenot]
banisterfiend has quit [Read error: Connection reset by peer]
akem has joined #ruby
chussenot has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 245 seconds]
jamjam has joined #ruby
slainer68 has joined #ruby
rabidpraxis has joined #ruby
<negev> thanks :)
jeffreybaird has joined #ruby
lggr has joined #ruby
sambio has quit [Ping timeout: 240 seconds]
yshh has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
uris_ has joined #ruby
<clj_newb> Hi, is there any way to free open resources at exit? For example a process spawned
<waxjar> ruby is garbage collected, so it does that on its own
gmurphey has joined #ruby
<clj_newb> then should I implement the 'finalize' method (referring to java) to close that process?
<Mon_Ouie> Not for everything, e.g. ruby -e 'Process.spawn "sleep 1; echo foo"'
<Mon_Ouie> Use an ensure block or, if you really need to, Kernel#at_exit to kill the process
anirudh24seven has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121010235040]]
<clj_newb> thanks Mon_Ouie and waxjar
lggr has quit [Ping timeout: 260 seconds]
_bart has joined #ruby
parzorep has joined #ruby
sambio has joined #ruby
lggr has joined #ruby
codeFiend has quit [Read error: Connection reset by peer]
rTypo has joined #ruby
<clj_newb> Is there like an ensure but for the program?
<Hanmac> just add begin and end
kjellski has joined #ruby
<clj_newb> well I was thinking more of a hook on exit
n1x has quit [Quit: Ex-Chat]
<waxjar> at_exit takes a block that's executed when the program exits, with trap you can "catch" certain signals (e.g. kills, interrupt, etc) and do stuff before it the program exits
jeffreybaird has quit [Quit: jeffreybaird]
<waxjar> i never know when to use which one, but that should be enough to let google do its magic :P
sambio has quit []
sambio has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Ivo has joined #ruby
one8zero has joined #ruby
<matti> Mon_Ouie: ;]
hbpoison has quit [Ping timeout: 246 seconds]
<Hanmac> waxjar and then the program catchs both SIGTERM and SIGKILL :P
<waxjar> with at_exit you mean?
emmanuelux has joined #ruby
codeFiend has joined #ruby
<matti> Hanmac: You cannot catch SIGKILL ;p
<Hanmac> good to know :P
<matti> ;p
lggr has joined #ruby
<matti> Hanmac: STOP and KILL are one among few significant ones, that you cannot really intercept, like you would do with INT and TERM sometimes.
kjellski has quit [Quit: This computer has gone to sleep]
<matti> Travils green. Mission successful.
codeFiend has quit [Client Quit]
roadt has quit [Ping timeout: 255 seconds]
pmros has joined #ruby
sambio has quit []
sambio has joined #ruby
sambio has quit [Remote host closed the connection]
manizzle has quit [Ping timeout: 245 seconds]
sambio has joined #ruby
lggr has quit [Ping timeout: 272 seconds]
sambio has quit [Client Quit]
sambio has joined #ruby
icole has joined #ruby
lggr has joined #ruby
gmci has quit [Read error: No route to host]
hsbt_away is now known as hsbt
fphilipe has quit [Remote host closed the connection]
fantazo_ has quit [Ping timeout: 260 seconds]
fphilipe has joined #ruby
icole has quit [Ping timeout: 244 seconds]
gmci has joined #ruby
fantazo has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
hsbt has quit [Ping timeout: 245 seconds]
prtksxna_ has joined #ruby
fphilipe has quit [Ping timeout: 240 seconds]
seanyo has joined #ruby
prtksxna has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
parzorep has quit [Quit: parzorep]
sterNiX has joined #ruby
nixon has joined #ruby
<nixon> Hello everyone!
* nixon slaps `heliar_ around a bit with a large trout
<Dwarf> Hanmac: I want to have a string but want to remove the first two words, so I exploded it with the space as delimiter
<Dwarf> I don't know if that's the smartest thing to do tho
snorkdude has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
F1skr has joined #ruby
lggr has quit [Ping timeout: 255 seconds]
<nixon> somebody can recommend books for the beginner ... Of course I can look myself, but I want to hear what books you yourself have helped
codeFiend has joined #ruby
lggr has joined #ruby
timonv has joined #ruby
<Spooner> nixon: New to programming or new to Ruby?
zeromodulus has joined #ruby
hotovson has joined #ruby
hsbt_away has joined #ruby
<Hanmac> Dwarf: s="this is a string"; s[/\b(\w+\s?){2}\b/]=""; s #=>"a string"
<Hanmac> it may not work perfect
<Dwarf> Regex ;_;
irleif has joined #ruby
<Dwarf> Is there an easier to do and easier to understand method?
<Dwarf> I don't like having parts of my code that I don't understand
<waxjar> still on the irc bot dwarf?
<Hanmac> hm it seems that /\b(\w+\W?){2}/ is better
<Dwarf> Sure thing waxjar
<nixon> I am a student at the university in the first year ... but now i am studying javascript could you advise where it is better to start to learn ruby
codeFiend has quit [Client Quit]
<waxjar> aye. best thing to do is just split the string imo
slainer68 has quit [Remote host closed the connection]
<Dwarf> Like I used to do?
snorkdude has quit [Remote host closed the connection]
<Dwarf> And then pop the first two out of the array, then join them with spaces again?
<Hanmac> waxjar and what do you use for split?
hbpoison has joined #ruby
<matti> nixon: Start writing code ;)
<Hanmac> and what about "this is, a string" ?
zmo_ has quit [Ping timeout: 255 seconds]
<matti> Hanmac: Pesky comma ;p
<waxjar> that's the hard part, the prefixes are optional
lggr has quit [Ping timeout: 246 seconds]
<waxjar> if you were to just pop off the first two, you might take a param of that's of interest to you
<Dwarf> Could you elaborate?
<Dwarf> I'm mainly looking to get rid of the "nick!ident@host PRIVMSG #chan" part
<Dwarf> first three then I guess
<waxjar> in that case you're looking for the trail, splitting on ":" would do the trick
monkegjinni has joined #ruby
<Dwarf> Oh right
<Dwarf> That's very smart indeed
lggr has joined #ruby
<Dwarf> But what if
<Dwarf> People were to use multiple :'s
<Dwarf> Or would I split it then pop of the first one and then join it
<Dwarf> Yea that would work
<waxjar> keep in mind that messages might start with a : too. if that's the case, max it to 3 instead of two
<matti> Dwarf: Over-engineering is a root of evil ;]
<Dwarf> True dat
<waxjar> message.split(':', 2 || 3).last
hbpoison has quit [Ping timeout: 245 seconds]
krz has quit [Quit: krz]
<waxjar> where 2 or 3 depends on wether the message starts with : or not
morozovm has quit [Read error: Connection reset by peer]
FifthWall has joined #ruby
morozovm has joined #ruby
monkegjinni has quit [Ping timeout: 246 seconds]
noxoc1 has joined #ruby
kiyoura has quit [Quit: Leaving]
<Dwarf> Heh waxjar, for some reason it spouts out the whole string
<Dwarf> [ 5:48 PM] <#dwarf:Dwarf> Dwarf!jesus@what.have.i.bcome.nl PRIVMSG #dwarf :Hello world
<Dwarf> But what if someone has an IPv6 address ._.
noxoc has quit [Ping timeout: 240 seconds]
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
<waxjar> good point, maybe use a regexp after all :p
rabidpraxis has quit [Remote host closed the connection]
CaptainJet has joined #ruby
F1skr has quit [Ping timeout: 245 seconds]
<Dwarf> ew
tjbiddle has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
<matti> lol
<Dwarf> Isn't it possible to join the array but skipping the first three items? ._.
<matti> Dwarf: Write FFI to libirssi ;]
lggr has joined #ruby
<Dwarf> Less abbreviations please
<Dwarf> This is my first project after all
<matti> :>
tjbiddle has quit [Client Quit]
anderse has quit [Quit: anderse]
delinquentme has quit [Quit: Leaving]
SuperrMann has joined #ruby
one8zero has quit [Quit: one8zero]
<waxjar> i guess it'd be ok if that's the only kind of message you analyse, i.e. you're absolutely certain the prefix (dwarf!*@*) isn't left out
rabidpraxis has joined #ruby
horofox has joined #ruby
<Dwarf> That's what I want to leave out
<matti> Dwarf: Read RFC for IRC protocol.
<Dwarf> I know the RFC
mucker has quit [Quit: Lost terminal]
vegardx has joined #ruby
<matti> Dwarf: OK, so there is a structure that is expected.
<Dwarf> Yap
<matti> Dwarf: Find it, and then it will be easy to separate message from it.
mucker has joined #ruby
<matti> Dwarf: So you would be able to handle : : : : : and other things.
<matti> Dwarf: Parse protocol elements first.
<vegardx> I'm having a great deal of issues getting things in ruby to work, and no nvm or other version controller is not a solution, it just messes things up even more. When I install a gem for some reason rake does not find it if that makes any sense.
<vegardx> And google just tells me to setup a proper path, without anything more. What path? where? how? When?
<Dwarf> Ay
negev has quit [Quit: Lost terminal]
<Dwarf> I know what the RFC is and I know the specifications
<Dwarf> But I want to know how to join an array but leave the first three out
<Dwarf> That's all
<burgestrand> vegardx: how’d you mess it up?
jerius has joined #ruby
<burgestrand> vegardx: how did you install ruby?
<waxjar> array[2..array.size] would work i think
<Hanmac> array[2..-1]
<vegardx> burgestrand: I'm using the default version that ships with debian.
lggr has quit [Ping timeout: 246 seconds]
<waxjar> damn, that's handy to know Hanmac
<burgestrand> vegardx: version 1.8. It’s begun it’s end of life and will pretty much ignored after summer 2013. Either way, you require rubygems in your Rakefile — because I assume that’s where you require your gem that is missing?
<Hanmac> vegardx so what does "ruby -v" and "gem env" output?
saschagehlich has joined #ruby
timonv has quit [Remote host closed the connection]
sailias has joined #ruby
irleif has joined #ruby
monkegjinni has joined #ruby
<Hanmac> you could switch the defaultversion shiped with debian, when you install ruby1.9.1-full and do "update-alternatives --config ruby" & "update-alternatives --config gem"
<vegardx> that's ubuntu only afaik
<vegardx> burgestrand: The problem seems to be that rake looks for the gems in a diffrente place, but when i use --trace it tells me that it looks in the correnct path.
<burgestrand> vegardx: did you require rubygems?
<vegardx> i did what?
fir_ed has joined #ruby
<Hanmac> hm no update-alternatives should work on debian too
conor_ireland has joined #ruby
lggr has joined #ruby
<burgestrand> vegardx: you said you have a Rakefile. Rakefiles are ruby scripts. In ruby 1.8 you need to require rubygems to be able to require gems.
<vegardx> Hanmac: hm, i'll try that on another box, this redmine installation is too important to just fiddle with it :)
<vegardx> burgestrand: I have no idea, I'm trying to install redmine, never written a line of ruby before.
<burgestrand> vegardx: what’s the complete error output?
negev has joined #ruby
<vegardx> burgestrand: https://gist.github.com/3885148
<negev> what does this mean?
<negev> data.rb:25:in `new': allocator undefined for Source (TypeError)
<negev> when trying to create a new instance of a class
dagnachewa has joined #ruby
<Dwarf> Thanks, waxjar, Hanmac
Araxia has joined #ruby
<burgestrand> vegardx: you have a Gemfile. In the Gemfile, do you have gem 'inifile' in it?
<vegardx> burgestrand: where should I have this Gemfile?
<burgestrand> vegardx: the root of the redmine project.
<vegardx> Ill check :)
sailias has quit [Quit: Leaving.]
<negev> nm solved it
<vegardx> nupe, as this is the requirement of the plugin
<burgestrand> vegardx: Gemfile is the authorative source of gems your application may require. It’s like an application sandbox kind of thing for libraries.
<vegardx> aha
<Hanmac> negev you cant use the Data class its for internal stuff
<burgestrand> vegardx: when you do "bundle install", you’ll create a Gemfile.lock in the process. This Gemfile.lock lists *all* gems and dependencies your application may use.
mr-rich has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
<burgestrand> vegardx: is the inifile gem something you require yourself, or part of some library or plugin?
lggr has quit [Ping timeout: 246 seconds]
fphilipe has joined #ruby
<vegardx> It's a part of the plugin, not redmine itself
<dagnachewa> rvm upgrade 1.9.3-p194 1.9.3-p286 complains about signature
<burgestrand> vegardx: alright. If you grep through the Gemfile.lock, do you see any mention of inifile in there?
jeffreybaird has joined #ruby
<vegardx> Not before I manually added it to Gemfile
<burgestrand> vegardx: alright, that is definitely *an* issue then. Might work after you’ve added it to the Gemfile :)
<vegardx> but the module seems to not work with 1.8.7, as now I get errors that seems to stem for uninitialized constants
<vegardx> thanks a lot :)
<vegardx> will have to try out update-alternatives as Hanmac pointed out, but on another system first
<burgestrand> vegardx: more information about what a Gemfile is, in case you are curious: http://gembundler.com/
lggr has joined #ruby
ddd has quit [Quit: Leaving.]
havenn has joined #ruby
<Hanmac> update-alternatives cant break anything ... and if its not work, you could switch is back without problems ... the update-alternatives are only redirect links
fphilipe has quit [Remote host closed the connection]
reuf has quit [Ping timeout: 245 seconds]
<vegardx> I think I should get a gist of how ruby works a little more before messing with a live redmine site :)
icole has joined #ruby
<vegardx> but thanks
pmros has quit [Quit: Konversation terminated!]
burgestrand1 has joined #ruby
<vegardx> For some reason 1.9.1 does not show up after installing ruby1.9.1-full
<Dwarf> Sexy.
<Dwarf> vegardx, debian it is?
<vegardx> yep
<Dwarf> It told me I didn't install a gem
<dagnachewa> rubies upgrade error http://pastie.org/5052959
<Dwarf> gem install didn't work, I had to use gem1.9.1
<Dwarf> Then afterwards it still said that I didn't install it
<Dwarf> must be a debian problem
<Dwarf> squeeze, right?
<dagnachewa> rvm upgrade 1.9.3-p194 1.9.3-p286 gives me http://pastie.org/5052959
<vegardx> Dwarf: yep
burgestrand has quit [Ping timeout: 246 seconds]
hsbt_away is now known as hsbt
lggr has quit [Ping timeout: 260 seconds]
JonnieCache has joined #ruby
<vegardx> in wheezy you get ruby-switch
<burgestrand1> vegardx: avoid 1.9.1 if you can. Use 1.9.2 or 1.9.3.
<vegardx> aha
burgestrand1 is now known as burgestrand
<vegardx> then wheezy it is
<vegardx> should be ~stable around now
icole has quit [Ping timeout: 244 seconds]
<Hanmac> burgestrand in debian/ubuntu the ruby1.9.3 package is avaiable under ruby1.9.1 because of api compatibility
<burgestrand> Yeah, I know, it’s silly.
lggr has joined #ruby
hbpoison has joined #ruby
<Hanmac> dagnachewa: /home/dagnachew/.rvm/log/ruby-1.9.3-p286/fetch.log show it to us
icooba has joined #ruby
JonnieCache has quit [Ping timeout: 246 seconds]
Taranis has quit [Read error: Connection reset by peer]
Taranis has joined #ruby
erichmenge has joined #ruby
<dagnachewa> Hanmac, http://pastie.org/5052988
nixon has left #ruby [#ruby]
lggr has quit [Ping timeout: 256 seconds]
dinamicex1 has quit [Remote host closed the connection]
erichmenge has quit [Client Quit]
teddyp1cker has joined #ruby
seanyo has quit [Ping timeout: 276 seconds]
eldar has joined #ruby
<Hanmac> hm is this possible? rvm upgrade 1.9.3-p194 1.9.3-p286 --verify-downloads 1
<dagnachewa> same error
teddyp1cker has quit [Remote host closed the connection]
lggr has joined #ruby
<dagnachewa> Hanmac, sorry I had forgoten the 1
<dagnachewa> it works know
rubious has joined #ruby
erichmenge has joined #ruby
<dagnachewa> Hanmac, it will moves gemssets to the new right ?
<Hanmac> i dont know ... it should
Serial_Killer_C has joined #ruby
hsbt is now known as hsbt_away
armenb has quit [Ping timeout: 246 seconds]
xeronic has joined #ruby
Virunga_ has quit [Remote host closed the connection]
cantonic_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Araxia has quit [Quit: Araxia]
Serial_Killer_C has quit [Remote host closed the connection]
ryanlecompte has joined #ruby
slainer68 has joined #ruby
cantonic has quit [Ping timeout: 246 seconds]
cantonic_ is now known as cantonic
Serial_Killer_C has joined #ruby
lggr has joined #ruby
timonv has joined #ruby
Serial_Killer_C has quit [Remote host closed the connection]
cthulhu2 has joined #ruby
slainer68 has quit [Ping timeout: 252 seconds]
vectorshelve has joined #ruby
emmanuelux has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
adeponte has joined #ruby
emmanuelux has joined #ruby
chussenot has quit [Quit: chussenot]
joppe has joined #ruby
HAL9000 has joined #ruby
monkegjinni has quit [Remote host closed the connection]
one8zero has joined #ruby
JohnBat26 has joined #ruby
ruby has joined #ruby
<conor_ireland> ruby!
D4rk has joined #ruby
<ruby> COuld anyone help me? I have a ruby needle gem error. here's the code: http://pastie.org/5053117 and here's the error http://pastie.org/5053119
jeffreybaird has quit [Quit: jeffreybaird]
lggr has quit [Ping timeout: 276 seconds]
F1skr has joined #ruby
lggr has joined #ruby
arkiver has joined #ruby
tommyvyo has joined #ruby
GarethAdams has quit [Quit: Leaving...]
tobyo has joined #ruby
advorak has joined #ruby
jeffreybaird has joined #ruby
horofox has quit [Quit: horofox]
lggr has quit [Ping timeout: 252 seconds]
iamjarvo has quit [Ping timeout: 245 seconds]
bondar has joined #ruby
quest88 has joined #ruby
CodeDroid__ has joined #ruby
joeycarmello has joined #ruby
lggr has joined #ruby
Neomex has joined #ruby
<Spooner> ruby: It is 1.8 specific in how it works.
quest88 has quit [Client Quit]
rabidpraxis has quit [Remote host closed the connection]
<Spooner> ruby: It will not work with 1.9 and give you those warnings. Do you really need it?
<Spooner> ruby: The other problem is in gltail, which is quite another issue.
lledet has joined #ruby
uris_ has quit [Quit: Lost terminal]
ruby has quit [Ping timeout: 276 seconds]
<Spooner> ruby: Well, gltail uses a version of the opengl gem which is not compatible with 1.9 (not associated with that error, but something else to worry about).
lggr has quit [Ping timeout: 265 seconds]
clj_newb has quit [Ping timeout: 260 seconds]
JohnBat26 has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
JohnBat26 has joined #ruby
JohnBat26 has quit [Client Quit]
wallerdev has joined #ruby
lggr has joined #ruby
mucker has quit [Quit: leaving]
quest88 has joined #ruby
bradhe has joined #ruby
harushimo has joined #ruby
anderse has joined #ruby
<harushimo> i'm back
<harushimo> hehe
hsbt_away has quit [Ping timeout: 245 seconds]
shevy has quit [Ping timeout: 245 seconds]
apok has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
apok has quit [Client Quit]
lggr has joined #ruby
Monie has joined #ruby
Monie has joined #ruby
Monie has quit [Changing host]
irleif has quit [Quit: Computer has gone to sleep.]
JohnBat26 has joined #ruby
exit2 has joined #ruby
anderse has quit [Quit: anderse]
D4rk has left #ruby [#ruby]
mucker has joined #ruby
Bosma has joined #ruby
elux has joined #ruby
anderse has joined #ruby
bradleyprice has joined #ruby
bradleyprice has quit [Remote host closed the connection]
irleif has joined #ruby
CodeDroid__ has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 272 seconds]
yaymukund has quit [Ping timeout: 245 seconds]
irleif has quit [Client Quit]
bondar has quit [Read error: Connection reset by peer]
rubious has quit [Quit: Linkinus - http://linkinus.com]
hsbt_away has joined #ruby
shevy has joined #ruby
lggr has joined #ruby
`brendan has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
hemanth has quit [Read error: Connection reset by peer]
rabidpraxis has joined #ruby
ryannielson has joined #ruby
hemanth has joined #ruby
sepp2k has joined #ruby
slainer68 has joined #ruby
sailias has joined #ruby
Neomex has quit [Quit: Neomex]
conor_ireland has quit [Quit: conor_ireland]
sailias has quit [Client Quit]
conor_ireland has joined #ruby
gogiel has quit [Read error: Operation timed out]
lggr has quit [Ping timeout: 248 seconds]
himsin has joined #ruby
jerius has quit [Quit: Computer has gone to sleep.]
Solnse has joined #ruby
slainer68 has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
exit2 has quit [Remote host closed the connection]
mikepack has joined #ruby
gogiel has joined #ruby
lledet has quit [Quit: lledet]
chessguy has joined #ruby
BadLarry has quit [Ping timeout: 246 seconds]
irleif has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
icooba has quit [Quit: Computer has gone to sleep.]
BadLarry has joined #ruby
lggr has joined #ruby
Virunga has joined #ruby
one8zero has quit [Quit: one8zero]
Algo2 has joined #ruby
hotovson has quit [Remote host closed the connection]
reuf has joined #ruby
erichmenge has quit [Quit: Be back later]
Virunga has quit [Remote host closed the connection]
Synthead has joined #ruby
Serial_Killer_C has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
kpshek has joined #ruby
<vegardx> I'm having issues migrating because of an error
jgrevich has joined #ruby
lggr has joined #ruby
<matti> vegardx: #rubyonrails
<vegardx> you need to register with nickserver to ust talk there
arkiver has quit [Quit: Leaving]
thmzlt has quit []
<vegardx> wtf is up with that?
<matti> Oh.
<matti> Silly.
<matti> I wonder why they did it.
<matti> Makes no sense
<vegardx> Hm, do you know of any other rails-spedific channels?
r1ddl3r has joined #ruby
<matti> No.
negev has quit [Quit: Lost terminal]
thmzlt has joined #ruby
mosheee is now known as moshee
<vegardx> blargh, then we need to register with nickserve, hmrhp.
<shevy> vegardx you are kinda out of luck, they are too snobbish to allow free talking
<shevy> #ruby-lang same btw
<shevy> only #ruby is nice to everyone
<vegardx> Yeah, I'm inclined to like you guys more!
<shevy> we even accept matti here
<shevy> vegardx most here also dont use rails ;P
<shevy> I'd wish rails would become smaller
<thmzlt> is there such a thing as ruby without rails?!
kzrl has quit [Ping timeout: 246 seconds]
<shevy> a bit still yeah
<shevy> like 20% of the folks who use ruby I estimate :P
<Spooner> thmzlt What is this rayles you speak of?
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
ryanf has joined #ruby
peneconleche has joined #ruby
<thmzlt> Spooner: it's this new version of wordpress
lggr has quit [Ping timeout: 255 seconds]
bluOxigen has joined #ruby
adeponte has quit [Remote host closed the connection]
kzrl has joined #ruby
<vegardx> thmzlt: Only with more dependencies that Will Break Your System (tm)!
<Algo2> Anyone know what type of map this is called at the bottom? It shows the earth's dark side over a world map http://time.gov/timezone.cgi?Eastern/d/-5/java
<Algo2> I haven't seen it anywhere else online
ryanlecompte has quit [Remote host closed the connection]
workmad3 has joined #ruby
<Spooner> Algo2 : daylight map
Araxia has joined #ruby
lggr has joined #ruby
vectorshelve has quit [Quit: Page closed]
jbw has quit [Ping timeout: 272 seconds]
irleif has quit [Quit: Computer has gone to sleep.]
Nanuq has quit [Quit: Lost terminal]
<Algo2> Ahh thanks
icole has joined #ruby
kpshek has quit []
Nanuq has joined #ruby
<burgestrand> vegardx: what does line 33 say in config/environment.rb?
thmzlt has quit [Remote host closed the connection]
<vegardx> :key => sessionconfig[Rails.env]['key'],
<profx_> i want to create an array that contains the index (of another array), when the string contained in one index is the same as a string in another index
<profx_> someone point me in the right direct ?
friskd has joined #ruby
Algo2 has left #ruby [#ruby]
friskd has quit [Client Quit]
<Spooner> profx_ : Don't quite understand. Can you give an example?
hsbt_away is now known as hsbt
<profx_> sure
arturaz has joined #ruby
<profx_> ['ab','bc','ab'], gives the array [[0,2],[1]]
lggr has quit [Ping timeout: 245 seconds]
cthulhu2 has quit [Quit: Nettalk6 - www.ntalk.de]
<burgestrand> vegardx: looks like there is some configuration missing, not sure where sessionconfig comes from
icole has quit [Ping timeout: 240 seconds]
armenb has joined #ruby
anderse has quit [Quit: anderse]
<vegardx> burgestrand: hm, I'm upgrading to a newer version of rails, to see if that helps
<shevy> profx_ what is the logic behind this, why are the values 0 2 and 1 assigned in that way
<vegardx> and install redmine from source
<Spooner> shevy : BEcause index 0 and 2 are the same and 1 is unique.
<shevy> hmm
<shevy> ah
<shevy> two times 'ab' right?
mr-rich has joined #ruby
<profx_> there is a match of 'ab'(0) and 'ad'(2), so I place them in index 0 as an array
<shevy> did not see that
<shevy> with a hash that would be even easier :D
kyletcarey has joined #ruby
<profx_> then continue to the next.... 'bc'
<Spooner> profx_ : I understand the problem, but I don't understand why you'd need it ;)
<profx_> Spooner: and I don't understand how to do it, guess we are all here to learn :)
cthulhu2 has joined #ruby
one8zero has joined #ruby
lggr has joined #ruby
slainer68 has joined #ruby
<shevy> but does it have to be an array? i mean why not a hash? the hash could just count the occurences of 'ab'? or do you really just need the positions in the array, for some awkward reason
<profx_> i need the positions
<profx_> so, i am not counting the occurences
<profx_> and I don't want unique
<profx_> as it will flatten
one8zero has quit [Client Quit]
<shevy> ok so you have like
<shevy> array1 = ["ab", "cd", "ab"]; array2 = ["aeeb", "cd", "ab"]
cthulhu2 has quit [Client Quit]
<profx_> its for an anagram test
<shevy> what shall the resulting array show in this case?
<shevy> anagram? is that like a palindrome?
<profx_> from array1, it would result in: [ [0,2] [1] ], array2: [ [0], [1], [2] ]
<shevy> Spooner help me out, I have a hard time imagining this hehehe
<profx_> anagram, is: ask, kas
<shevy> aha
<profx_> same letters used in multiple words
<profx_> so I sort the word alphabetically
thmzlt has joined #ruby
<shevy> k then palindrome is different... it would be like "otto"
<profx_> then I want to move over the array, then reference the index of the original
<profx_> yes, that is a palindrome
<profx_> abba
<shevy> yeah
<shevy> swedish pop group
<profx_> never heard of them ;)
<shevy> hmmm
<shevy> don't you actually need some kind of logic checker, to find out what is an anagram and what is not?
<profx_> thats what I am doing :D
<shevy> ok so basically you know what the end result should be (some array with positions)
<profx_> yep
<shevy> now you need some kind of method that compares, I think, two words with one another
<shevy> like foo("abc","ca") or something like that
darutoko- has quit [Quit: Any sufficiently advanced technology is indistinguishable from magic. (Arthur C. Clarke)]
<shevy> Spooner, show us an algorithm to find the smallest route to an anagram please!
lggr has quit [Ping timeout: 255 seconds]
<shevy> where are the math guys... I always try and try until things work without thinking
<Spooner> Well, I have a partial result, but I'm not sure how that helps you do what you want. What is your aim that you need such a result?
harryheintz has joined #ruby
RegEchse has joined #ruby
<shevy> let me try to speak in pseudo logic... "take each character... work on it... reverse each position... compare... if found match, add it to a list... continue"
<profx_> i dont require the answer
<profx_> maybe just a push, really
<Spooner> a = %w<ab bc ab>; a.uniq.map.with_object([]) {|e| get all indexes of a in e }
<profx_> ah, so you use uniq
Virunga has joined #ruby
peneconleche has quit [Ping timeout: 240 seconds]
<profx_> oh, wait, thats your own defined function
<Spooner> I mean a.uniq.map.with_object([]) {|e| work out an array of all indecies of e in a }
<Spooner> *indices
elico has joined #ruby
<profx_> sorry, what is map ?
lggr has joined #ruby
thehustle has joined #ruby
<Spooner> If you need to know map, you are going to struggle.
<shevy> profx_ .map applies something on each element of a collection
<burgestrand> Or at least not find your way.
<Hanmac> ["ab", "cd", "ba"].each_with_index.group_by{|o,i| o.each_char.sort.to_a}.map{|k,v| v.map{|i|i[1]}} => [[0, 2], [1]]
<profx_> for example, add a " " (space) at the end of each string ?
<shevy> profx_, here is how .map works: %w( a b c ).map {|x| x+' '} # => ["a ", "b ", "c "]
<shevy> yeah
<profx_> yeah
<shevy> of your array
vlad_starkov has quit [Remote host closed the connection]
<shevy> not the string as such I think
<shevy> oh
<shevy> works on string too hmmmmm
<shevy> strange :\
<thmzlt> is there a bot here that evaluates ruby code?
<shevy> I usually use .map on Array
<profx_> thmzlt: nope
<Spooner> No, it died.
<shevy> thmzlt, there used to be a few weeks ago
<shevy> Hanmac destroyed it :(
<Hanmac> shevy no, map does not work on String anymore
<profx_> Spooner: everyone has to start somewhere
<shevy> ah ok, good. that confused me just now
rabidpraxis has quit [Remote host closed the connection]
<thmzlt> profx_: what are you trying to do?
<Hanmac> its beacause 1.9er String does not include Enumerable anymore
<Spooner> Yes, but I thought you were just after an algorithm, not basic Ruby knowledge.
<Spooner> profx_ : It is fine. It just wasn't clear.
<profx_> thmzlt: i have an array, [ ab','bc','ab'] and I am trying to get [ [0,2],[1] ], the index where the strings are the same
<profx_> Spooner, no worries, im taking nothing personally
havenn has quit [Remote host closed the connection]
<profx_> it is IRC, after all
ZenGuy311 has quit [Ping timeout: 245 seconds]
<Spooner> Hanmac : gave a solution, but it assumed you wanted the same letters,not strings.
<shevy> profx_ you need to somehow come up with the logic that gives you that result
<profx_> shevy, yep, for sure
<shevy> just some simple method
<Hanmac> profx_ are you sure you dont want to find both "ab" and "ba" in the same group?
<profx_> Hanmac: yes, thats what I am heading towards
ZenGuy311 has joined #ruby
<profx_> Hanmac: to do so, i have created [ 'ab,'ab' ]
<Hanmac> Spooner my solution works with same latters, so "ab" and "ba" are in the same group
<Spooner> Hanmac : Bah, I always overuse group_by, but didn't think of using it here. Bah!
akemEikko has joined #ruby
<profx_> missed a ' there
<Spooner> Hanmac : Yah, I know. It just wasn't what was asked for,even if it anticipated the next step.
<thmzlt> profx_: the methods you're looknig for are #map and #each_with_index
rabidpraxis has joined #ruby
<profx_> ok, ill look into them
<profx_> thanks
nyrb has joined #ruby
axl_ has quit [Quit: axl_]
akem has quit [Read error: Connection reset by peer]
<vegardx> hm, mariadb is incompatible with mysql2
<vegardx> because it uses parts of libmysqlclient-dev
<profx_> sorry, each_with_index is where ?
rabidpra_ has joined #ruby
<profx_> i dont see it under the array docs
lggr has quit [Ping timeout: 245 seconds]
hsbt is now known as hsbt_away
<Spooner> profx_ : It is in Enumerable
r1ddl3r has quit [Quit: Leaving.]
<profx_> ah, yep, thanks
<Spooner> profx_ : Use pry and you can do "show-doc Array#each_with_index" OK.
<profx_> pry ?
<Spooner> irb on steroids.
<profx_> yeah, but how ?
<Spooner> gem install pry
<profx_> if (installer(ruby) ) { use pry } else { install pry} ?
<Spooner> then just "pry" from the command line.
erichmenge has joined #ruby
<Hanmac> Spooner & profx_ : ["ab", "cd", "ba"].each_with_index.with_object(Hash.new([])) {|(o,i),h| h[o.each_char.sort] += [i]}.values #=> [[0, 2], [1]]
LineByLine has joined #ruby
<profx_> wow, i wouldn't be able to come up with that
<profx_> lol
rabidpraxis has quit [Ping timeout: 245 seconds]
ddd has joined #ruby
<profx_> pry doesn't work on my OSX mac nor my ubuntu shell
<profx_> seems ill have to install it
<Spooner> "gem install pry" ;)
<ddd> profx_: should work just fine.
lggr has joined #ruby
yxhuvud2 has joined #ruby
<profx_> gem ?
<ddd> I'm on Lion
<Spooner> It isn't in-built.
<Spooner> Yes, of course.
timonv has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 256 seconds]
<ddd> gem install pry-full
rabidpraxis has joined #ruby
<ddd> baseline set of tools that make it so you can debug the stack, exceptions, color hilighting, etc
<ddd> gem search pry-full -dr
rabidpra_ has quit [Ping timeout: 260 seconds]
<profx_> im using iterm2, as well
<Spooner> I was only mentioning it to make looking up docs easier. Don't need to go mad, ddd ;)
<ddd> works under Terminal.app or iTerm2 no problems
<profx_> gem just sits there, doing nothing
JohnBat26 has joined #ruby
<profx_> i don't think gem is a native command
<thmzlt> profx_: you realize you are now completely away from your initial problem, right?
yxhuvud2 has quit [Client Quit]
<Mon_Ouie> It just needs time to install stuff
yxhuvud has joined #ruby
<Mon_Ouie> And gem does com with Ruby 1.9
<ddd> independent of the shell. if you're using RVM, you should install in your ruby's @global gemset, and make sure your shell launches as a login term so that RVM loads. other than that, you work with it like any other gem you would install. absolutely no difference
icooba has joined #ruby
<profx_> so do I have to enter irb, then use gem ?
<Mon_Ouie> (although some packagers may think otherwise)
ruby has joined #ruby
<ddd> nope, you type pry
<ddd> though you can alias irb='pry'
<Mon_Ouie> No, gem is a regular command
<profx_> weird
<ddd> and you don't run gem from inside irb.
<Spooner> profx_ : gem is a command that Ruby gives you, to install gems (libraries). It is a CLI command, not Ruby source.
<profx_> not working here
<ddd> do you know how to use ruby?
<Mon_Ouie> Elaborate on "not working"
<profx_> oh well, I can use the web for documentation
thmzlt has quit [Remote host closed the connection]
<ddd> iwanttolearnruby.com
<profx_> everyone coming out of the woodwork now
<Spooner> If you can't use gems, profx_, then you might as well give up on Ruby. It isn't something you can just not bother with.
ZenGuy311 has quit [Ping timeout: 245 seconds]
<ddd> ehh, i hang in the pry channel, know the dev team (originally written by banisterfiend) so when I saw you talking about it and needed help i kicked in. more than enough people to get you from here to there
<ddd> Spooner++
<ruby> Can someone help me? I have a ruby needle gem error... Here's my code: http://pastie.org/5053117 and this is the error I get: http://pastie.org/5053119 ..
<Spooner> ruby : I answered earlier, but I assume you quit when you weren't answered under 60 seconds.
<ruby> no... I was afk
ebobby has joined #ruby
<profx_> Hanmac: so thats the full answer, by the looks of it
ZenGuy311 has joined #ruby
<Spooner> ruby : So look at my response. Short answer "use 1.8.7 with gems not compatible with 1.9".
ebobby is now known as Guest91427
lggr has quit [Ping timeout: 255 seconds]
<Spooner> Or be prepared to fix them ;)
<profx_> yep, it is :)
<profx_> thanks Hanmac
daniel_- has joined #ruby
nyrb has quit [Remote host closed the connection]
<Hanmac> profx_ it may not work with 1.8 but it dont support it :P
<profx_> i, frankly, don't mind
anderse has joined #ruby
lggr has joined #ruby
workmad3 has quit [Read error: Operation timed out]
LineByLine has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
adeponte has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<Spooner> Sorry, profx_ , I'm giving you a hard time and not really being fair. You do need to learn about using gems in general, even if you don't want to use pry for what I suggested.
JonnieCache has joined #ruby
prtksxna_ has quit [Remote host closed the connection]
<profx_> Spooner, i don't take your comments personally
<profx_> i was simply getting back to my question, you took me on a tangent
jenrzzz has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
anderse has quit [Client Quit]
<Spooner> ruby: Also, I suspect that SIGUP is not supported on Windows, so gltail isn't going to work for that reason too.
<profx_> interesing, with_object errors on my mac
erichmenge has quit [Quit: Linkinus - http://linkinus.com]
<profx_> perhaps my Mac vs. Ubuntu Ruby versions are different
<Spooner> profx_ : What Ruby version? (ruby -v)
<profx_> yep, just checking
<Spooner> It wasn't in 1.8, I don't think.
<profx_> ah, thats it
<profx_> mac is 1.8
<Spooner> But as said, Hanmac (and I) don't support 1.8 ;)
<profx_> yeah, no worries
ryannielson has quit [Quit: ryannielson]
JohnBat26 has joined #ruby
<Spooner> The system Ruby is only 1.8.7 on OSX. Shame they are a bit behind the times.
<Mon_Ouie> If you're going to learn Ruby now, you should be using 1.9 — 1.8 will only get security updates now
lggr has quit [Ping timeout: 244 seconds]
Serial_Killer_C has quit [Remote host closed the connection]
<Hanmac> my non-support of 1.8 is some kind of "natural selection" ... :P
havenn has joined #ruby
<profx_> hehe
<profx_> i imagine the class is using 1.9
<profx_> but thats just an assumption
<Spooner> If it is a class, they will probably be using 1.8.5 :P
<profx_> nah, I doubt it
<profx_> but ill find out, the hard way
hotovson has joined #ruby
recycle has joined #ruby
<profx_> ugh, i know I am doing this wrong
<profx_> too many arrays :)
lggr has joined #ruby
cj3kim has joined #ruby
cj3kim has quit [Changing host]
cj3kim has joined #ruby
recycle has quit [Remote host closed the connection]
recycle has joined #ruby
m_3 has quit [Remote host closed the connection]
rTypo has quit [Quit: WeeChat 0.3.9]
Cache_Money has joined #ruby
remaus has joined #ruby
miphe has quit [Remote host closed the connection]
Apocalypse has quit [Remote host closed the connection]
caveat- has quit [Ping timeout: 252 seconds]
skaczor has joined #ruby
lggr has quit [Ping timeout: 272 seconds]
recycle has quit [Ping timeout: 252 seconds]
Cache_Money has quit [Read error: Connection reset by peer]
skaczor_ has joined #ruby
Cache_Money has joined #ruby
skaczor_ has left #ruby [#ruby]
nazty has joined #ruby
elico has quit [Quit: Elico]
daniel_- has quit [Read error: Operation timed out]
lggr has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
jarred has joined #ruby
caveat- has joined #ruby
HAL9000 has quit [Quit: bye]
lggr has quit [Ping timeout: 255 seconds]
lushious_ has joined #ruby
lushious has quit [Ping timeout: 252 seconds]
swarley has joined #ruby
lggr has joined #ruby
cj3kim has quit [Quit: Leaving]
shikamaru has quit [Read error: No route to host]
jenrzzz has quit [Ping timeout: 255 seconds]
horofox has joined #ruby
hsbt_away is now known as hsbt
icooba has quit [Ping timeout: 260 seconds]
cakehero has joined #ruby
skaczor has quit [Quit: Leaving]
skaczor has joined #ruby
wargasm has joined #ruby
shikamaru has joined #ruby
icooba has joined #ruby
hbpoison has quit [Ping timeout: 246 seconds]
emmanuelux has quit [Remote host closed the connection]
irleif has joined #ruby
yaymukund has joined #ruby
<shevy> guys
lggr has quit [Ping timeout: 255 seconds]
<shevy> anyone knows... having lots of threads... registered, when starting an app
<shevy> I kinda need to store a list of threads, of things that should be run, similar to cron. but in pure ruby
<shevy> and it's killing my head right now
jeffreybaird has quit [Quit: jeffreybaird]
<shevy> hmm nevermind that
cakehero has quit [Quit: Computer has gone to sleep.]
lushious has joined #ruby
<shevy> another question - I need to send signals or commands to running ruby programs
ericmathison has quit [Ping timeout: 245 seconds]
lushious has quit [Remote host closed the connection]
<Spooner> That is a statement, not a question.
lushious has joined #ruby
lushious_ has quit [Read error: Connection reset by peer]
cakehero has joined #ruby
Guest91427 has quit [Ping timeout: 240 seconds]
F1skr has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
emmanuelux has joined #ruby
tjbiddle has joined #ruby
Araxia has quit [Quit: Araxia]
<shevy> ok
<shevy> How do I send commands to running ruby programs? (These are standalone .rb files)
<shevy> hmm or perhaps ...
<Spooner> shevy : drb || eventmachine (or similar).
shadoi has joined #ruby
<shevy> hmmm
<shevy> ok
<shevy> going to try eventmachine
<profx_> what does the ? mean in def something?
<Spooner> profx_ : Means it returns a boolean result.
Dawne has quit [Ping timeout: 240 seconds]
<profx_> oh, then how do you call it ?
<Spooner> It isn't enforced though; it is just a stylistic choice.
<profx_> obj.something?
<Spooner> Yeah.
<profx_> ah, perfect
<profx_> merci
<Spooner> e.g. explode unless array.empty?
nateberkopec has joined #ruby
ryanlecompte has joined #ruby
cakehero has quit [Quit: Computer has gone to sleep.]
daniel_-_ has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
<Spooner> profx_ : We generally use empty? where another language would use is_empty()
hsbt is now known as hsbt_away
<profx_> got it :)
<vegardx> Does rake have some sort of cache that I'm not aware of?
<vegardx> I'm getting tons of "/usr/lib/ruby/vendor_ruby/rake/version.rb:2: warning: already initialized constant VERSION
<shevy> looks as if some file tries to reload version.rb
<Spooner> Would only happen if it is using #load, not #require, though.
<vegardx> Ruby really need a "Sysadmin ruby 101"-book, so many things are done in completely mindboggeling strange ways
lggr has joined #ruby
<shevy> vegardx yeah, ruby is quite complex, I'd wish it would be simpler and more streamlined
frederic has quit [Remote host closed the connection]
<shevy> then things like @@foo could be destroyed too
<Spooner> shevy : Roll on Ruby 3.0
<vegardx> shevy: And don't get me started on all the versions. My god...
vlad_starkov has joined #ruby
<shevy> hehehe
`brendan has quit [Read error: Connection reset by peer]
<Spooner> vegardx : There are only 2 real versions. Teh current and the old one (1.9.3 and 1.8.7).
<shevy> perhaps mruby can stimulate new enthusiasm about ruby
<Spooner> Oh, all those versions.
<vegardx> From a non-developer point of view, it's giving me a headacke
<shevy> well, there were incompatibilities added between 1.8.x and 1.9.x even within the same branch
<Spooner> You only need to use one version of one Ruby platform.
<vegardx> Spooner: Yeah, but that's not true at all. In Debian I count 4, and not to mention all the issues with dependencies of gems which has a boarload of versions that are incompatible with each others.
<shevy> I think ruby-1.9.3-p286 behaves differently compared to 1.9.0 or 1.9.1
<shevy> ack debian
<vegardx> The development moves too fast for systems to pick up, and no, installing from source is not always a good alternative.
<shevy> debian wants to control all software
<Spooner> vegardx : Find me a language without 100 "versions" as you speak of, and we can continue ;)
<shevy> so they recommend to use apt-get for gems
<shevy> and then people come here and ask why they have problems
rabidpraxis has quit [Remote host closed the connection]
one8zero has joined #ruby
<shevy> :)
<shevy> (with debian + apt-get)
<Spooner> shevy But 1.9.0 and 1.9.1 were not widely used. 1.9.2 was the first production-quality 1.9 as far as I'm aware.
<vegardx> Spooner: Few, but they have proper documentation so you can sit back, read for five minutes and understand that X wont work in Y. With ruby you have to wait for it to crash, do a trace, make sense of the trace, and then realize that you are on the wrong version of GEM X.
<shevy> vegardx, well... the quality of the different gems varies
vlad_sta_ has joined #ruby
<Spooner> vegardx : Yeah, we use bundler to avoid that. It shouldn't be an issue in real use.
<shevy> ack bundler
<vegardx> It feels like the wrong way to solve the problem
<shevy> but hey, perhaps one day I will like bundler
akem has joined #ruby
<vegardx> but that's just me
<Spooner> I love people who slag off bundler, the only thing that makes anything work. Before it, we were screwed all the time.
<shevy> vegardx everyone strives for control
<vegardx> shevy: good to hear :)
vlad_starkov has quit [Ping timeout: 245 seconds]
<shevy> Oh then I simply point out that I followed the officials rails tutorial with bundler, which did not work for me at all
<vegardx> Not just me that's lost in all of the different versions that are mutually exlusive to one other
akemEikko has quit [Read error: Connection reset by peer]
axl_ has joined #ruby
<havenn> I can't ever tell if the bundler gripers and trolls or not.
<shevy> let's give it a try again, perhaps it works this time :)
Orcris has joined #ruby
akem has quit [Max SendQ exceeded]
pmros has joined #ruby
<havenn> Sometimes it is really hard to tell with clever trolls. For example, pip has no way to update all packages. It is a package manager... and can't update all its packages.
lggr has quit [Ping timeout: 260 seconds]
akem has joined #ruby
<havenn> *all installed packages
<shevy> hmmmm strange
`brendan has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
<shevy> bundler is not needed when installing rails?
mucker has quit [Quit: leaving]
<shevy> or is it needed only afterwards .... hmmm
jrajav has joined #ruby
<Spooner> Installing Rails gem will install deps via gem.
akem has quit [Max SendQ exceeded]
<Spooner> Rails apps need bundler.
<shevy> :(
seanyo has joined #ruby
akem has joined #ruby
<shevy> Hanmac, I am going to ask you about bundler from now on
<shevy> I even failed earlier, somehow I broke digest/md5 ... time for beer ...
JonnieCache has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
hbpoison has joined #ruby
<Hanmac> i never used bundler :D
chessguy has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
<havenn> I like bundler + gem-release for cutting and releasing gems :) https://github.com/svenfuchs/gem-release
Virunga has quit [Remote host closed the connection]
rabidpraxis has joined #ruby
_bart has quit [Quit: _bart]
raul782 has joined #ruby
rabidpraxis has quit [Read error: Connection reset by peer]
_bart has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
vlad_sta_ has quit [Remote host closed the connection]
<pmros> shevy
kenneth has joined #ruby
cyong has joined #ruby
lggr has joined #ruby
seanyo has quit [Remote host closed the connection]
manizzle has joined #ruby
slainer68 has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
Xeago has joined #ruby
methoddk has quit [Ping timeout: 244 seconds]
pmros has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 265 seconds]
havenn has joined #ruby
harryheintz has quit [Quit: Linkinus - http://linkinus.com]
pmros has joined #ruby
lggr has joined #ruby
irleif has quit [Quit: Computer has gone to sleep.]
advorak has quit [Quit: This computer has gone to sleep]
cardoni has joined #ruby
baphled has joined #ruby
conor_ireland has quit [Quit: conor_ireland]
advorak has joined #ruby
icole_ has joined #ruby
<pmros> can you imagine code in ruby with your girlfriend?
<pmros> it would be great
jimeh has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
<Spaceghostc2c> pmros: You mean writing ruby with your significant other?
<Spitfire> pmros, me and my girlfriend code together in ruby, sometimes. Heh.
daniel_hinojosa has joined #ruby
<pmros> really?
<Spitfire> Yup.
<Hanmac> my ruby code can make others vomit with ther eyes :D
<Spitfire> Haven't for a while, though.
<pmros> very nice
yxhuvud2 has joined #ruby
<Spitfire> But we've been busy with other things, so yeah. Haven't done much coding at all lately.
lggr has joined #ruby
hsbt_away is now known as hsbt
yxhuvud has quit [Ping timeout: 255 seconds]
<pmros> anyway, congratulations
remaus has quit [Quit: Leaving...]
rabidpraxis has joined #ruby
<Spaceghostc2c> I make my ruby look as visually unsettling as possible.
adeponte has quit [Remote host closed the connection]
<Spaceghostc2c> It should make you have to use the bathroom.
methoddk has joined #ruby
rabidpraxis has quit [Remote host closed the connection]
uris_ has joined #ruby
remaus has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
eldar has quit []
<Spitfire> Spaceghostc2c, one word: perl
* Spitfire cackles.
<Spaceghostc2c> Spitfire: :D
ZenGuy311 has quit [Ping timeout: 245 seconds]
ZenGuy311 has joined #ruby
icole_ has quit [Remote host closed the connection]
anderse has joined #ruby
lggr has joined #ruby
freezey has joined #ruby
advorak has quit [Quit: This computer has gone to sleep]
slainer68 has joined #ruby
SuperrMann has quit [Quit: Computer has gone to sleep.]
mercwithamouth has joined #ruby
rippa has quit [Ping timeout: 276 seconds]
s0ber_ has joined #ruby
raul782 has quit [Remote host closed the connection]
s0ber has quit [Read error: Connection reset by peer]
s0ber_ is now known as s0ber
hsbt is now known as hsbt_away
ryanlecompte has quit [Remote host closed the connection]
rabidpraxis has joined #ruby
anderse has quit [Quit: anderse]
rabidpraxis has quit [Read error: Connection reset by peer]
xorgnak has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
keyvan has joined #ruby
keyvan has joined #ruby
keyvan has quit [Changing host]
banseljaj is now known as imami|afk
freezey has quit [Quit: freezey]
yxhuvud2 has quit [Quit: Nettalk6 - www.ntalk.de]
lggr has joined #ruby
yxhuvud has joined #ruby
slainer68 has quit [Ping timeout: 260 seconds]
ananthakumaran has quit [Quit: Leaving.]
<RubyPanther> Spitfire: http://stuff.rubypanther.com/perl.rb (ruby 1.8 only)
<shevy> pmros dunno, most girls don't like programming
<shevy> it's not exactly an activity you can do together, unlike sightseeing
<RubyPanther> Pair Programming for Couples
irleif has joined #ruby
bbttxu_ has joined #ruby
<Spaceghostc2c> shevy: Try fucking off. <3
<matti> LOL
anderse has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
thomasfedb has quit [Ping timeout: 244 seconds]
cyong has quit [Quit: Leaving.]
gmci has quit [Quit: Computer has gone to sleep.]
<shevy> that makes more sense than pair programming
tjbiddle has quit [Quit: tjbiddle]
<RubyPanther> Pair programming with my wife, that means she makes a skype call on my computer while I'm trying to code
lggr has joined #ruby
<Spitfire> lol
raul782 has joined #ruby
anderse has quit [Quit: anderse]
AlbireoX has joined #ruby
sent-hil has joined #ruby
sent-hil has quit [Remote host closed the connection]
elico has joined #ruby
yaroslav has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
mahmoudimus has joined #ruby
dangerousdave has quit [Quit: Leaving...]
rburton- has joined #ruby
<ddd> i'd actually like to do some pair programming. did a bit with The Rubyists group, but that was months and months ago. I'd like to do it again. (including skyping for real time deliberating)
lggr has quit [Ping timeout: 276 seconds]
tommyvyo has quit [Quit: Computer has gone to sleep.]
mahmoudimus has quit [Client Quit]
cakehero has joined #ruby
cakehero has quit [Client Quit]
lggr has joined #ruby
jarred has quit [Quit: jarred]
<pmros> you could share things you love with person you love
<pmros> it's perfect
<rburton-> pmros speaking about my website ;)
<pmros> :)
<rburton-> Actually the site I'm building is for that ;)
mikepack has quit [Remote host closed the connection]
adeponte has joined #ruby
vlad_starkov has joined #ruby
marcux has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
h4mz1d has joined #ruby
dblandin has joined #ruby
<Xeago> anyone here with some gpg knowledge?
<Xeago> I have an old backup that has/had a private key
bluOxigen has joined #ruby
raul782 has quit [Remote host closed the connection]
apok has joined #ruby
BMF has joined #ruby
lggr has joined #ruby
<Xeago> is all the information exclusively stored in ~/.gnupg ?
vlad_starkov has quit [Ping timeout: 246 seconds]
dblandin has quit [Client Quit]
<Xeago> (I am using gpgv2, I did use macgpg2 to create the key)
justinmcp has joined #ruby
<ddd> Xeago: yeah usually stored in .gnupg/gnupgrc or similar
<ddd> its all text based for config. and yes if you copy over your .gnupg dir into the existing dir it should all just work
<ddd> so long as you don't overwrite a similarly named but internally different keyset
erichmenge has joined #ruby
erichmenge has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 244 seconds]
<Xeago> that is an ls of ~/.gnupg
<Xeago> I can't find any key in there
<Xeago> all is encrypted/binary
<Xeago> besides conf
<Xeago> (directory is empty)
<ddd> stored in secring.gpg and pubring.gpg
anderse has joined #ruby
<ddd> gpg —list-keys iirc
<ddd> err --
<ddd> my client for some reason keeps changing '—' to '-' on me
<ddd> the ones with the ~ are the backups from the last addition/removal of key(s) you did
joeycarmello has quit [Remote host closed the connection]
<ddd> run 'gpg —help' and look at how to export keys. you need the key fingerprint and should be able to just extract it.
lggr has quit [Ping timeout: 240 seconds]
<Xeago> gnupg: stable 1.4.12
<Xeago> is old right?
<Xeago> 2.+ should be used right?
<Xeago> I don't have a gpg binary yet
ryanlecompte has joined #ruby
joeycarmello has joined #ruby
v0n has joined #ruby
<ddd> yeah 2 is fine
adeponte has quit [Remote host closed the connection]
<ddd> iirc it not only has backwards compatability configurable, it also will convert iirc
<ddd> don't trust that last bit, thats from memory
apok has quit [Quit: apok]
<Xeago> I used macgpg2, which uses gpg2
<Xeago> afaik
h4mz1d has quit [Ping timeout: 246 seconds]
<ddd> yep
<ddd> i use gpg2 out of brew
<ddd> either works
lggr has joined #ruby
joeycarmello has quit [Remote host closed the connection]
<ddd> same public key infrastructure. both use and push OpenGPG keys
<ddd> s/keys/key format/
hsbt_away is now known as hsbt
<Xeago> gpg2 from brew does not set up a symlink it seems
<Xeago> :O
horofox has quit [Ping timeout: 240 seconds]
gmurphey has quit [Ping timeout: 260 seconds]
<Xeago> oh it does
<ddd> brew link gpg2
icooba has quit [Quit: Computer has gone to sleep.]
anderse has quit [Quit: anderse]
ryanlecompte has quit [Remote host closed the connection]
Axsuul has joined #ruby
<ddd> if the links are fucked just brew unlink gpg2 && brew link gpg2. if they're so totally screwed it can't undo them it usually lists which ones it can't in the error(s)
clj_newb has joined #ruby
<Xeago> blurgh: .gnupg/gpg.conf:236: invalid auto-key-locate list
<Xeago> auto-key-locate cert pka ldap hkp://keys.gnupg.net
<ddd> you'll have to look up the gpg.conf variables
<ddd> idr what they are off hand
<Xeago> that's my conf
nilg has joined #ruby
hsbt has quit [Ping timeout: 246 seconds]
hsbt_away has joined #ruby
hsbt_away is now known as hsbt
lggr has quit [Ping timeout: 256 seconds]
<ddd> thats mine
jenrzzz has joined #ruby
mercwithamouth has joined #ruby
remaus has quit [Quit: Leaving...]
arturaz_ has joined #ruby
m_3 has joined #ruby
elux has quit [Quit: Bye!]
snorkdude has joined #ruby
adeponte has joined #ruby
lggr has joined #ruby
arturaz has quit [Remote host closed the connection]
<Xeago> the line it complains about are equal lol
gmci has joined #ruby
keyvan has quit [Remote host closed the connection]
reuf has quit [Ping timeout: 260 seconds]
<ddd> yeah, that just started. I just upgraded the version 2.0.19. wonder what thats about
cobragoat has joined #ruby
<ddd> i think its one of the options passed
<ddd> the *setting* is valid, but something in the list of options is not
xeronic has quit []
<cobragoat> any thoughts on the best approach to running 1.9.3 on Precise in a production environment? wondering about rvm, rbenv etc..
thomasfedb has joined #ruby
thomasfedb has joined #ruby
thomasfedb has quit [Changing host]
havenn has quit [Remote host closed the connection]
nicoulaj has quit [Remote host closed the connection]
alecchen has quit [Ping timeout: 265 seconds]
lggr has quit [Ping timeout: 255 seconds]
<Xeago> I moved the config out of place
<Xeago> commands work lol
baroquebobcat has joined #ruby
<arturaz_> cobragoat: go with rbenv
<arturaz_> Less headaches.
lggr has joined #ruby
<ddd> what headaches?
<cobragoat> arturaz_: thanks
<cobragoat> rvm headaches
<ddd> it works, installs easily, and manages quite easily
<cobragoat> or at least while configuring with chef
dblandin has joined #ruby
<Xeago> requiring sourcing of shellrc/env
baroquebobcat has quit [Client Quit]
Apocalypse has joined #ruby
dinamicex1 has joined #ruby
<ddd> err? guess you don't use any command completion additions (like bash-completion or git-completion) then
<dinamicex1> Hi. Can someone explain me why when I declare a function( like attr_accessor) in the class Class then I can run that function inside an instance of the class Class (which is a class itself). Here is an example http://ideone.com/tE7LN
pmros has quit [Quit: Konversation terminated!]
<ddd> or anything similar, nor source any bash alias files, or .bash_functions files etc
<Xeago> ddd, rbenv supplies completion for bash and zsh.. ?
<Xeago> from my experience, stuff in cron had to manually source bash.rc
<ddd> Xeago: idk, does it? rvm supplies completion, sets up the correct variables, even lets you install ruby-specific pkgs needed for compiling if needed. not that hard
adeponte has quit [Remote host closed the connection]
<ddd> yes it did
<arturaz_> Ddd - production script headaches
<arturaz_> or bash version requirements
<waxjar> rbenv has completion yeah
<Xeago> I found rbenv to do less, but but less hackier
<Xeago> I prefer to use a tool that does 1 thing good
icole has joined #ruby
<arturaz_> Indeed
<ddd> arturaz_: please file Issues for what you're finding wrong. We'll fix. Also bash v3.2.x is the minimum which is just fine
<matti> OK, running valgrind and Ruby was quite a scary experience.
<Xeago> and use other stuff for the rest
<Xeago> matti valgrind?
<Xeago> vagrand?
<Hanmac> cobragoat you could change the default ruby with update-alternatives
<ddd> think its bash 3.2.18 and osx and others offer either bash4 or at least bash 3.2.48 so shouldn't be an issue
<ddd> and Hanmac likes to use just the packages. so many ways :)
<arturaz_> ddd - rvm stable refused to install on ubuntu 10.04
<cobragoat> hanmac: thanks. yes I know. I think i'd like to use rvm or rbenv as I really like rvm for development
<ddd> arturaz_: file a specific bug. We have quite a few people using older versions of ubuntu, debian, freebsd, and sunos. any issues, file, they're usually fixed that day
<arturaz_> Anyway, after trying rbenv i've learned that i personally prefer it more. Though rvm is still cool :-)
chrishunt has quit [Read error: Connection reset by peer]
<cobragoat> while we are here.. what servers are you guys using for production? I've tried a few setups but would love to hear some opinions.. however opinionated
<Xeago> ubuntu lts 10
lggr has quit [Ping timeout: 240 seconds]
<ddd> now *that* is a valid reason. preference due to active usage patterns.
<ddd> I like 12.04 personally
<cobragoat> talkin web and app servers..
kirun has quit [Quit: Client exiting]
bluOxigen has quit [Ping timeout: 248 seconds]
chrishunt has joined #ruby
<cobragoat> I'm using 12.04 definitely
<Xeago> atm everything ubuntu lts 10
<Xeago> there is some rented vm's we use that run centos
<cobragoat> but wondering about unicorn/phusion apache/nginx etc
<Xeago> but everything we set up ourselves in prod was 10
<Xeago> we're migrating to a newer version of ubuntu
<Xeago> our tests run at lts 12
workmad3 has joined #ruby
<Xeago> and dev mostly on osx, tho some people use ubuntu, some run a hack of everything
icole has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
<Xeago> ddd: how would I list private keys?
lggr has joined #ruby
* Xeago is blind: -K
raul782 has joined #ruby
<ddd> hehe
<shevy> lol
alecchen has joined #ruby
rburton- has quit [Read error: Connection reset by peer]
rburton- has joined #ruby
<Xeago> if I want to increase/reset the expiration date of my key
<Xeago> I am supposed to make a new key, and then sign it with the old
<Xeago> and reissue the new key?
mahmoudimus has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
Virunga has joined #ruby
<ddd> gpg —edit-key yourid
<ddd> help edit
<ddd> err help expire
vlad_starkov has joined #ruby
alanp_ has joined #ruby
answer_42 has quit [Ping timeout: 260 seconds]
vlad_sta_ has joined #ruby
pac1 has joined #ruby
lggr has joined #ruby
Apocalypse has quit [Remote host closed the connection]
statix_ has quit [Read error: Connection reset by peer]
remaus has joined #ruby
statix_ has joined #ruby
justinmcp has quit [Remote host closed the connection]
alanp has quit [Ping timeout: 246 seconds]
vlad_starkov has quit [Ping timeout: 255 seconds]
raul782 has quit [Remote host closed the connection]
dinamicex1 has quit [Remote host closed the connection]
arturaz_ has quit [Quit: Bye]
lggr has quit [Ping timeout: 245 seconds]
damagednoob has joined #ruby
Takehiro has quit [Remote host closed the connection]
adeponte has joined #ruby
morozovm has quit [Quit: morozovm]
JonnieCache has joined #ruby
horofox has joined #ruby
lggr has joined #ruby
weasels has joined #ruby
stwzea has quit [Quit: Leaving.]
miphe has joined #ruby
<Xeago> how large is 30kB for an image in a key in gpg?
thomasfedb has quit [Ping timeout: 244 seconds]
hotovson has quit [Ping timeout: 245 seconds]
otters has quit [Ping timeout: 240 seconds]
jrajav has quit []
moshee has quit []
BMF has quit [Remote host closed the connection]
weasels is now known as otters
thomasfedb has joined #ruby
hotovson has joined #ruby
JonnieCache has quit [Read error: Operation timed out]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Foxandxss has joined #ruby
lggr has joined #ruby
snorkdude has quit [Remote host closed the connection]
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
adeponte has quit [Remote host closed the connection]
zodiak has quit [Remote host closed the connection]
marcux has quit [Ping timeout: 255 seconds]
dmiller has joined #ruby
somazero has joined #ruby
adeponte has joined #ruby
tommyvyo has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
chessguy has joined #ruby
kyletcarey has quit [Quit: Lost terminal]
damagednoob has quit [Quit: Leaving]
vlad_sta_ has quit [Remote host closed the connection]
lggr has joined #ruby
nemesit has quit [Quit: Leaving...]
tommyvyo has quit [Quit: Computer has gone to sleep.]
irleif has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 245 seconds]
joeycarmello has joined #ruby
lggr has joined #ruby
Solnse has quit [Ping timeout: 248 seconds]
justinmcp has joined #ruby
Takehiro has joined #ruby
joeycarmello has quit [Ping timeout: 245 seconds]
v0n has quit [Ping timeout: 246 seconds]
Virunga has quit [Remote host closed the connection]
CaptainJet has quit []
Apocalypse has joined #ruby
tommyvyo has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
codeFiend has joined #ruby
Takehiro has quit [Ping timeout: 260 seconds]
lggr has joined #ruby
Apocalypse has quit [Remote host closed the connection]
uris_ has quit [Quit: Lost terminal]
h4mz1d has joined #ruby
kramutils has quit [Quit: leaving]
jimeh has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 265 seconds]
kzrl has quit [Ping timeout: 240 seconds]
kyletcarey has joined #ruby
lggr has joined #ruby
kzrl has joined #ruby
ryanf_ has joined #ruby
ryanf has quit [Quit: leaving]
ryanf_ is now known as ryanf
miphe has quit [Remote host closed the connection]
icole has joined #ruby
timonv has joined #ruby
sailias has joined #ruby
dblandin has quit [Quit: dblandin]
vitor-br has joined #ruby
dblandin has joined #ruby
remaus has quit [Quit: Linkinus - http://linkinus.com]
lggr has quit [Ping timeout: 244 seconds]
Apocalypse has joined #ruby
sailias has quit [Read error: Operation timed out]
roadt has joined #ruby
lggr has joined #ruby
postmodern has joined #ruby
daniel_hinojosa has quit [Read error: No route to host]
daniel_hinojosa has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
hsbt is now known as hsbt_away
hsbt_away is now known as hsbt
shadewind has joined #ruby
bier has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 246 seconds]
<shadewind> what's the difference between ARGV and $*?
<shadewind> if I understand correctly $* is read only but ARGV is not
rburton- has quit [Quit: Linkinus - http://linkinus.com]
`brendan has quit [Ping timeout: 246 seconds]
hsbt has quit [Ping timeout: 272 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
timonv has quit [Remote host closed the connection]
lggr has joined #ruby
hsbt has joined #ruby
conor_ireland has joined #ruby
chessguy has quit [Remote host closed the connection]
justinmcp has quit [Remote host closed the connection]
adeponte has quit [Remote host closed the connection]
v0n has joined #ruby
<Spooner> shadewind: The array in $* is still internally modificable and changing ARGV gives a warning. Not sure how you are using that as a meaningful differentiation.
lggr has quit [Ping timeout: 272 seconds]
bier has joined #ruby
fixl has joined #ruby
<shadewind> Spooner: it's probably just that I have no idea
lggr has joined #ruby
<shadewind> Spooner: what's the difference between them? it seems to be that both contain command line arguments
cakehero has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
<Spooner> shadewind : Everyone would use ARGV rather than the more magic $* is the main difference. Realistically, most people would use an options parser rather than touch either themselves ;)
<Spooner> It is bloody Perl baggage :/
<shadewind> Spooner: yeah I figured ARGV is the "proper way"
<Spooner> $* and the other magics that is.
<shadewind> and that was actually my first guess about $*
<shadewind> I haven't used Perl myself but I've heard about all its special variables
<shadewind> which themselves are baggage from shell scripts, IIRC
gmci has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
v0n has quit [Ping timeout: 245 seconds]
<Spooner> I avoided shell scripts, since I found Ruby before I needed to make myself crazy with such madness :D
<shadewind> hehe :)
<shadewind> but to sum it up... "use ARGV or some parser if doing anything non-trivial"
<Spooner> ARGV seems to just be an alias for $* (since you can push to one and it appears in the other). So identical.
<Spooner> Yep.
<conor_ireland> "the plan is to have code freeze October 2012 and release February 2013" How big is ruby 2.0?
<conor_ireland> 4month code freeze!?!
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<shadewind> |------------------------| <--- this big
<Spooner> It is just to stop adding features.
<Spooner> Yeah, about that.
dpk has quit [Quit: Asleep at the keyboard.]
fixl has joined #ruby
lggr has quit [Ping timeout: 252 seconds]
<conor_ireland> Spooner: So all other ruby development has to stop for 4 months just to release 2.0? There is no better way to do it? Surely there is?
jrajav has joined #ruby
<Spooner> conor_ireland : No, it doesn't mean that. It means they won't add new feature bloat from Oct, while they ensure that everything works perfectly.
<Spooner> It is a completely different branch from any work on 1.9 (and obviously 1.8 isn't going anywhere any more).
<conor_ireland> Spooner: ok, that makes much more sense
<Spooner> So if you have any bright ideas, they will have to wait for 2.1 ;)
<conor_ireland> I am not a ruby developer (although I love the language)
<Spooner> But based on how quickly we moved to 1.9, I wouldn't worry about 2.0 for a couple of years.
<conor_ireland> you don't think 2.0 will be on time?
lggr has joined #ruby
<Spooner> No, I mean that it won't be useable until 2.1 and it won't be production quality until 2.2
<conor_ireland> Ah
mahmoudimus has quit [Quit: Computer has gone to sleep.]
daniel_-_ has quit [Read error: Operation timed out]
<Spooner> Though that is maybe a little harsh. I didn't switch to 1.9 until 1.9.2, but some did earlier and there are still plenty still hugging onto 1.8 for dear life ;)
<conor_ireland> I was taught ruby on 1.8 as 1.9 was thought to be not ready, same thing with python 3 (although that has worse compatibility problems too)
<Spooner> It is mostly the adoption of compatibility in gems though, rather than the language itself. Until the gems you need work, you can't upgrade.
sterNiX has quit [Ping timeout: 245 seconds]
freeayu has joined #ruby
vlad_starkov has joined #ruby
zii has quit [Read error: Connection reset by peer]
Takehiro has joined #ruby
* Spooner waits for someone who knows what they are talking about to correct him.
dmiller has quit [Remote host closed the connection]
ZenGuy311 has quit [Ping timeout: 245 seconds]
<conor_ireland> Spooner: I know less than you on Ruby, but that makes sense. Gems are very numerous, and 3rd party so them being upgraded will take a while
lggr has quit [Ping timeout: 265 seconds]
h4mz1d has quit [Ping timeout: 245 seconds]
<conor_ireland> plus I'd say it is a chicken/egg thing to with devs not bothering to update because people en masse are not using 2.0 which is circular
<Spooner> Yep.
vlad_starkov has quit [Ping timeout: 260 seconds]
somazero has quit [Quit: Leaving]
zastern has joined #ruby
lggr has joined #ruby
<zastern> I'm having trouble with something kinda basic - I know that this - input_file = ARGV[0] - means set input_file equal to command line argument, but what does the 0 mean?
joeycarmello has joined #ruby
<Spooner> zastern : ARGV is just an array.
<zastern> Spooner: and therefore?
<Spooner> [0] just means the first element of that array.
<zastern> oh ok. so if I made it 1, then it would set the var equal to the second command line argument?
<Spooner> So for "ruby frog.rb cheese peas", ARGV will be ["cheese", "peas"]
<Spooner> Yep.
<zastern> Spooner: great thanks.
noxoc1 has quit [Quit: Leaving.]
rakl has joined #ruby
ben_alman has quit [Excess Flood]
<Spooner> zastern : I recommend looking at this as an intro to Ruby - http://pine.fm/LearnToProgram/?Chapter=01 (ch7 includes arrays)
Takehiro has quit [Ping timeout: 260 seconds]
<zastern> Spooner: I'm going through LRTHW right now
<zastern> i had tried the pine.fm book first, but it was a bit difficult for me as a non-programmer
<Spooner> Ah right. I am aware of it, but have never read it.
<zastern> once i finish LRTHW ill probably use a "real" book
<zastern> also, I understand arrays, I just didn't realize ARGV was one
<zastern> I mean, I understand them conceptually. Probably not in practice :)
<Spooner> zastern: puts ARGV.class #=> Array
<zastern> Spooner: that statement is currently meaningless to me :)
Orcris has quit [Ping timeout: 245 seconds]
justinmcp has joined #ruby
<Spooner> Oh, fair enough. What I mean is that you can check what class somethign is with .class (for ARGV.class, the result is Array).
lggr has quit [Ping timeout: 276 seconds]
<zastern> ah i see
<zastern> thanks
<zastern> is that something I could do in say, IRB?
<Spooner> It is a good idea to use irb (or equivalent online like tryruby.org) to play around (for example, but "ARGV.class" into tryruby.org or irb)
<fbernier> any idiomatic way of saying "round this number to the closest number between -1 and 1" ?
dmiller has joined #ruby
<fbernier> so -2 would be -1, 0 would be 0, 5 would be 1
adeponte has joined #ruby
<Spooner> [[n.round, 2].min, -1].max
lggr has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
<Spooner> Oops, obviously: [[n.round, 1].min, -1].max
<fbernier> yeah figured that out :P
<fbernier> thanks!
<Spooner> zastern : Obviously, ARGV is likely to be an empty array, [], in irb or online ;)
ryanf_ has joined #ruby
ben_alman has joined #ruby
<zastern> Spooner: on my current internet connection, tryruby.org takes about 2 seconds to return a result for ARGV.class. I'll stick to irb ;)
<zastern> Spooner: yes, I understand that lacking arguments, there are not arguments
<zastern> :P
<Spooner> Of course, but the time to return is the time to run it in a local Ruby process. Isn't the Internet slowing it down. Yeah, using irb makes more sense if you already have Ruby installed ;)
Tearan has joined #ruby
<zastern> Spooner: wasn't there something better than irb that people were using now
codeFiend has quit [Quit: codeFiend]
<zastern> i know it doesnt really matter for a n00b, im just curious
hsbt is now known as hsbt_away
<waxjar> (pssh, get pry :P)
<Spooner> zastern : Yes, pry is better, but pushing it to a complete noob is overkill.
hsbt_away is now known as hsbt