apeiros changed the topic of #ruby-lang to: Ruby 1.9.3-p374: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
Rarrikins_a has quit [Ping timeout: 255 seconds]
andrewhl has joined #ruby-lang
KA_ has quit [Quit: KA_]
mpan has joined #ruby-lang
tomzx_mac has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
drbrain has joined #ruby-lang
spuk has joined #ruby-lang
adam12 has quit [Read error: Operation timed out]
Rarrikins_i has joined #ruby-lang
robbyoconnor has joined #ruby-lang
dankest is now known as dankest|away
cyndis has quit [Remote host closed the connection]
adam12 has joined #ruby-lang
cyndis has joined #ruby-lang
Kuifje has quit [Ping timeout: 255 seconds]
Rarrikins has quit [Ping timeout: 255 seconds]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
KA_ has joined #ruby-lang
dankest|away has quit [Quit: Leaving...]
KA_ has quit [Client Quit]
Rarrikins_i_q has joined #ruby-lang
marr has quit [Ping timeout: 276 seconds]
Rarrikins_i has quit [Ping timeout: 244 seconds]
KA_ has joined #ruby-lang
UNIXgod has quit [Quit: leaving]
tomzx_mac has quit [Ping timeout: 276 seconds]
Rarrikins_i_q has quit [Remote host closed the connection]
esad has joined #ruby-lang
gustavnils has quit [Quit: Textual IRC Client: www.textualapp.com]
KA_ has quit [Quit: KA_]
wdperson_ has joined #ruby-lang
andrewhl has quit [Read error: Connection reset by peer]
wdperson_ has quit [Client Quit]
andrewhl has joined #ruby-lang
hugobastien has joined #ruby-lang
jtoy has quit [Quit: jtoy]
mercwithamouth has quit [Ping timeout: 255 seconds]
jtoy has joined #ruby-lang
solars has quit [Ping timeout: 252 seconds]
spuk has joined #ruby-lang
rue_XIV has joined #ruby-lang
rue has quit [Ping timeout: 252 seconds]
stonerfish has joined #ruby-lang
jtoy has quit [Quit: jtoy]
esad has quit [Quit: Computer has gone to sleep.]
toretore has quit [Quit: Leaving]
gregmore_ has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
Rarrikins has joined #ruby-lang
mercwithamouth has joined #ruby-lang
esad has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
AndChat| has joined #ruby-lang
Rarrikins_g has joined #ruby-lang
Rarrikins has quit [Ping timeout: 244 seconds]
Banistergalaxy has quit [Ping timeout: 256 seconds]
Rarrikins has joined #ruby-lang
ruby-lang295 has joined #ruby-lang
Rarrikins_g has quit [Ping timeout: 246 seconds]
ruby-lang295 has quit [Client Quit]
emocakes has quit [Quit: emocakes]
Rarrikins_i has joined #ruby-lang
evanx_ has quit [Ping timeout: 245 seconds]
Rarrikins has quit [Ping timeout: 252 seconds]
evanx has joined #ruby-lang
mercwithamouth has quit [Quit: Lost terminal]
vlad_starkov has joined #ruby-lang
Rarrikins_i has quit [Ping timeout: 240 seconds]
_rs has joined #ruby-lang
apeiros_ has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
_rs has left #ruby-lang [#ruby-lang]
<reactormonk> FiXato, what dialect is 'würst'?
vlad_starkov has quit [Ping timeout: 255 seconds]
apeiros_ has quit [Ping timeout: 256 seconds]
soypirate has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
stonerfish has quit [Quit: Leaving.]
KA_ has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
dous has quit [Remote host closed the connection]
dous has joined #ruby-lang
andrewhl has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
mockingbird has joined #ruby-lang
mockingbird has quit [Remote host closed the connection]
mockingbird has joined #ruby-lang
mockingbird has quit [Client Quit]
bazookasam has joined #ruby-lang
bazookasam has quit [Client Quit]
bazookasam has joined #ruby-lang
KA_ has quit [Quit: KA_]
benanne has quit [Quit: kbai]
tomzx_mac has joined #ruby-lang
dous has quit [Ping timeout: 256 seconds]
sush24 has joined #ruby-lang
bazookasam has left #ruby-lang [#ruby-lang]
hugobastien has quit [Remote host closed the connection]
KA_ has joined #ruby-lang
mwjcomputing has joined #ruby-lang
KA_ has quit [Quit: KA_]
sush24 has quit [Quit: This computer has gone to sleep]
sush24 has joined #ruby-lang
stardiviner has joined #ruby-lang
vlad_starkov has joined #ruby-lang
madish has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
vlad_starkov has quit [Ping timeout: 256 seconds]
mercwithamouth has joined #ruby-lang
Rarrikins has joined #ruby-lang
banister`sleep has quit [Remote host closed the connection]
io_syl has quit [Ping timeout: 256 seconds]
Rarrikins_g has joined #ruby-lang
io_syl has joined #ruby-lang
gregmore_ has joined #ruby-lang
Rarrikins has quit [Ping timeout: 276 seconds]
Kallikanzarid has quit [Quit: Quitting]
Rarrikins has joined #ruby-lang
Rarrikins_f has joined #ruby-lang
gregmore_ has quit [Ping timeout: 276 seconds]
Rarrikins_e has joined #ruby-lang
dous has joined #ruby-lang
Rarrikins_q has joined #ruby-lang
Rarrikins_g has quit [Ping timeout: 245 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
Rarrikins has quit [Ping timeout: 256 seconds]
Rarrikins_f has quit [Ping timeout: 256 seconds]
Rarrikins has joined #ruby-lang
Rarrikins_e has quit [Ping timeout: 252 seconds]
Rarrikins_q has quit [Ping timeout: 255 seconds]
dous has quit [Ping timeout: 256 seconds]
postmodern has joined #ruby-lang
mwjcomputing has quit [Ping timeout: 252 seconds]
esad has joined #ruby-lang
nXqd has joined #ruby-lang
stardiviner has joined #ruby-lang
Nisstyre-laptop has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
megha has joined #ruby-lang
apeiros has quit [Ping timeout: 256 seconds]
Cope has joined #ruby-lang
<Cope> Hi - I'd like to create an array, assign it to something, and fill it with 50 random numbers; I'm curious about how to do it in one line; This feels recursive... my_array = Array.new { 50.times { Random.rand(100) } } #obviously wrong... but do you see what I mean?
<Cope> ie assign the array, call it a, and than recursively add stuff to a
<Cope> or am I being obtuse and there's something ludicrousy obvious?
<Rarrikins> Array.new(50) { |i| rand(100) }
<Rarrikins> I'm not sure what you mean by recursively.
<Cope> Rarrikins: i had a feeling Array.new took a block - but that's obvious now I see it, thanks
<Rarrikins> You're welcome
Cope has quit [Quit: leaving]
Cope has joined #ruby-lang
b1rkh0ff has quit [Ping timeout: 252 seconds]
b1rkh0ff has joined #ruby-lang
KA_ has joined #ruby-lang
Rarrikins_p has joined #ruby-lang
Rarrikins_p_j has joined #ruby-lang
Rarrikins has quit [Ping timeout: 276 seconds]
Rarrikins_p has quit [Ping timeout: 244 seconds]
spuk has quit [Ping timeout: 245 seconds]
spuk has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
<Cope> I'm trying to produce an array from two arrays, where the product is each element concatenated, but in each direction. So merge(["a", "b"], ["x", "y"]) would give ["ax", "xa", "ay", "ya", "bx", "xb", "by", "yb"]
<Cope> I'm able to do it in two passes
<Cope> but I wonder if tehre's a nicer way
Rarrikins_p_j_x has joined #ruby-lang
evanx has left #ruby-lang [#ruby-lang]
andrewhl has joined #ruby-lang
Rarrikins_p_j has quit [Ping timeout: 252 seconds]
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
mossplix has joined #ruby-lang
<mistym> Cope: I'm sure there's a better way than this, but: https://gist.github.com/fcd0dc4f31e04cb0019f
datanoise has joined #ruby-lang
* Cope fiddles
<mistym> I love #flat_map, though I wish there were also a #compact_map
<Cope> that's nice - i'd not seen flat_map before
<ggreer> Cope: what should merge(['a', 'a'], ['x', 'y']) do? should it have two copies of ax, xa, ay, and ya?
<havenn> Another way for fun: a.product(b).map(&:join) + b.product(a).map(&:join)
<wmoxam> Cope: (a.product(b) + b.product(a)).map(&:join)
<wmoxam> havenn: gah, beat me to it
neocoin has joined #ruby-lang
gregf has quit [Quit: WeeChat 0.3.8]
sepp2k has quit [Quit: Leaving.]
datanoise has quit [Ping timeout: 276 seconds]
esad has quit [Quit: Computer has gone to sleep.]
megha has quit [Quit: WeeChat 0.4.0]
mpan has quit [Read error: Operation timed out]
thufir_ has quit [Read error: Connection reset by peer]
rdw200169 has quit [Ping timeout: 255 seconds]
datanoise has joined #ruby-lang
<Cope> wmoxam: what does &:join mean?
nXqd has quit [Ping timeout: 245 seconds]
KA_ has quit [Quit: KA_]
<havenn> Cope: `.map &:join` is shorthand for `.map { |x| x.join }`
apeiros has joined #ruby-lang
<havenn> Cope: & calls to_proc and passes it as a block
datanoise has quit [Ping timeout: 252 seconds]
<havenn> Cope: Here's a nice post on Symbol#to_proc: http://iain.nl/going-crazy-with-to_proc
apeiros has quit [Ping timeout: 256 seconds]
drbrain has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 252 seconds]
<Cope> thans havenn
<Cope> What's an appropriate way to try a bunch of times when calling a remote service? ie rescue a connection error and try again 5 times?
megha has joined #ruby-lang
<Cope> is it begin, rescue, retry, end ? and then count retries?
KA_ has joined #ruby-lang
rdw200169 has joined #ruby-lang
<wmoxam> Cope: just put it in a 5.times do
<wmoxam> Cope: and break if successful
<wmoxam> :p
datanoise has joined #ruby-lang
megha has quit [Ping timeout: 245 seconds]
Nisstyre-laptop has joined #ruby-lang
dhruvasagar has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
soypirate has quit [Quit: Leaving]
__BigO__ has joined #ruby-lang
__BigO__ has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
megha has joined #ruby-lang
datanoise has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 244 seconds]
elux has quit [Quit: Bye!]
srbaker has joined #ruby-lang
blacktulip has joined #ruby-lang
apeiros has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 244 seconds]
apeiros has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby-lang
banister`sleep has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
tomzx_mac has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
spuk has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
wallerdev has quit [Quit: wallerdev]
havenn has quit [Ping timeout: 256 seconds]
srbaker has joined #ruby-lang
Rizzle has quit [Ping timeout: 255 seconds]
setmeaway has quit [Quit: Leaving]
dhruvasagar has quit [Read error: Operation timed out]
mistym has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
dc5ala has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
gjaldon has joined #ruby-lang
apeiros_ has quit [Ping timeout: 240 seconds]
datanoise has joined #ruby-lang
banister`sleep has quit [Read error: Connection reset by peer]
methods1 has joined #ruby-lang
havenn has joined #ruby-lang
mossplix has quit [Ping timeout: 256 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
datanoise has quit [Ping timeout: 252 seconds]
bzb has joined #ruby-lang
KA_ has quit [Quit: KA_]
banister`sleep has joined #ruby-lang
guns has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 276 seconds]
dhruvasagar has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
mytrile has joined #ruby-lang
dhruvasagar has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 244 seconds]
solars has joined #ruby-lang
xalei has joined #ruby-lang
xalei_ has joined #ruby-lang
xalei_ has quit [Read error: Connection reset by peer]
xalei has quit [Client Quit]
xalei has joined #ruby-lang
rue_XIV has quit [Remote host closed the connection]
rue has joined #ruby-lang
megha has quit [Quit: WeeChat 0.4.0]
marr has joined #ruby-lang
ruurd has joined #ruby-lang
dhruvasagar has joined #ruby-lang
xcombelle has joined #ruby-lang
publicvoid has joined #ruby-lang
emocakes has joined #ruby-lang
bzalasky has joined #ruby-lang
idkazuma has joined #ruby-lang
xcombelle_ has joined #ruby-lang
xcombelle has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
jxie has joined #ruby-lang
Nisstyre-laptop has quit [Ping timeout: 246 seconds]
xalei has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 256 seconds]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
tbuehlmann has joined #ruby-lang
drbrain has joined #ruby-lang
dhruvasagar has joined #ruby-lang
yfeldblum has quit [Ping timeout: 248 seconds]
ryanf has joined #ruby-lang
marr has quit [Ping timeout: 252 seconds]
banister`sleep has quit [Remote host closed the connection]
bzb has quit [Quit: Leaving]
io_syl has quit [Quit: Computer has gone to sleep.]
ryanf has quit [Ping timeout: 256 seconds]
sush24 has quit [Quit: This computer has gone to sleep]
sush24 has joined #ruby-lang
inverse has joined #ruby-lang
publicvoid has quit [Ping timeout: 256 seconds]
fsvehla_ has joined #ruby-lang
fsvehla has quit [Ping timeout: 264 seconds]
fsvehla_ is now known as fsvehla
ruurd has quit [Quit: Leaving...]
gustavnils has joined #ruby-lang
ryanf has joined #ruby-lang
toretore has joined #ruby-lang
workmad3 has joined #ruby-lang
ryanf has quit [Ping timeout: 255 seconds]
marr has joined #ruby-lang
jbsan has quit [Quit: jbsan]
Miraks has joined #ruby-lang
idkazuma has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 252 seconds]
sulo has joined #ruby-lang
banister`sleep has joined #ruby-lang
ruurd has joined #ruby-lang
ryanf has joined #ruby-lang
charliesome has joined #ruby-lang
Vektur has quit [Ping timeout: 260 seconds]
postmodern has quit [Ping timeout: 276 seconds]
banister`sleep has quit [Read error: Connection reset by peer]
sulo has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
ryanf has quit [Ping timeout: 244 seconds]
sn0wb1rd has quit [Quit: sn0wb1rd]
sulo has joined #ruby-lang
Miraks has quit []
Miraks has joined #ruby-lang
Miraks has quit [Client Quit]
Miraks has joined #ruby-lang
sulo has quit [Remote host closed the connection]
banister_ has joined #ruby-lang
xcombelle_ has quit [Remote host closed the connection]
GitNick has quit [Ping timeout: 256 seconds]
sulo has joined #ruby-lang
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
madish has joined #ruby-lang
ryanf has joined #ruby-lang
tbuehlmann has joined #ruby-lang
bright_day has joined #ruby-lang
sulo has quit [Remote host closed the connection]
Rarrikins_p_j_x_ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 276 seconds]
Rarrikins_p_j_x has quit [Ping timeout: 276 seconds]
ryanf has quit [Ping timeout: 246 seconds]
guns has quit [Quit: guns]
GitNick has joined #ruby-lang
jxie has quit [Quit: leaving]
erichmenge has quit [Ping timeout: 245 seconds]
Kallikanzarid has joined #ruby-lang
dcwu has quit [Quit: Leaving.]
xcombelle has joined #ruby-lang
sulo has joined #ruby-lang
madish_ has joined #ruby-lang
mossplix has joined #ruby-lang
madish has quit [Ping timeout: 240 seconds]
dzhulk has quit [Quit: Leaving.]
vlad_starkov has quit [Remote host closed the connection]
madish has joined #ruby-lang
vlad_starkov has joined #ruby-lang
bright_day has quit [Remote host closed the connection]
madish has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
chendo_ has joined #ruby-lang
madish_ has quit [Ping timeout: 276 seconds]
dc5ala has quit [Quit: Ex-Chat]
madish has joined #ruby-lang
ryanf has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
ruurd has quit [Quit: Leaving...]
megha has joined #ruby-lang
facest has quit [Quit: Leaving]
faces has joined #ruby-lang
banister_ has quit [Read error: Connection reset by peer]
jbsan has joined #ruby-lang
banister`sleep has joined #ruby-lang
ryanf has quit [Ping timeout: 276 seconds]
vesan has quit [Read error: Connection reset by peer]
ruurd has joined #ruby-lang
heftig has quit [Ping timeout: 245 seconds]
vesan has joined #ruby-lang
Rizzle has joined #ruby-lang
fushi has joined #ruby-lang
erichmenge has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
ryanf has joined #ruby-lang
Miraks has quit []
chendo_ has quit [Quit: Computer has gone to sleep.]
Miraks has joined #ruby-lang
megha has quit [Ping timeout: 255 seconds]
ryanf has quit [Ping timeout: 245 seconds]
Miraks has quit []
megha has joined #ruby-lang
Miraks has joined #ruby-lang
banister`sleep has quit [Remote host closed the connection]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
KINGSABRI has joined #ruby-lang
x0F_ is now known as x0F
<KINGSABRI> hello guys
vlad_starkov has joined #ruby-lang
<KINGSABRI> I need to take "\xdb\xc1\xbe\x8e\x0c\xae\x5a" string from stdin and convert it to binary file ,,
<KINGSABRI> the issue is when I write it to bin file I found the same string in the binary file as text
<KINGSABRI> but if I put the same string in variable , the binary file become correct binary file
<Mon_Ouie> Because when you read from stdin escape sequences aren't interpreted
<Mon_Ouie> If you type "\xdb" you get the string "\\xdb"
ruurd has joined #ruby-lang
<Mon_Ouie> You need to explicitly replace those with the byte you want
vlad_starkov has quit [Ping timeout: 256 seconds]
xcombelle has quit [Remote host closed the connection]
huydx has joined #ruby-lang
fushi has quit [Ping timeout: 264 seconds]
banister`sleep has joined #ruby-lang
<KINGSABRI> Mon_Ouie, I debug p var_string and it gives "xdbxc1xf3"
fushi has joined #ruby-lang
<KINGSABRI> Mon_Ouie, I made method to convert "xdbxc1xbex8e" format to "\xdb\xc1\xbe\x8e"
<KINGSABRI> Mon_Ouie, still not working
hapster has joined #ruby-lang
<Mon_Ouie> Because you're still not interpreting those escape sequences
<Mon_Ouie> Well, unless you actually made it generate "\xDB…" and not "\\xdb" as I suspect
Kuifje has joined #ruby-lang
Kuifje has quit [Changing host]
Kuifje has joined #ruby-lang
ryanf has joined #ruby-lang
publicvoid has joined #ruby-lang
lcdhoffman has joined #ruby-lang
Kuifje has quit [Read error: Connection reset by peer]
Kuifje has joined #ruby-lang
Kuifje has quit [Changing host]
Kuifje has joined #ruby-lang
ryanf has quit [Ping timeout: 255 seconds]
sulo has quit [Remote host closed the connection]
stenum has joined #ruby-lang
<KINGSABRI> Mon_Ouie, so due suggest a better solution?
<KINGSABRI> my method is just gsub for characters cases
Vektur has joined #ruby-lang
<Mon_Ouie> Well, gsubing those sequence of 4 bytes and replacing them by a single byte using a block
<KINGSABRI> Mon_Ouie, ok, je vais essayer ça
Kuifje has quit [Read error: Connection reset by peer]
Kuifje has joined #ruby-lang
jtoy has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
jtoy has quit [Client Quit]
sulo has joined #ruby-lang
antbody has joined #ruby-lang
sulo has quit [Read error: Connection reset by peer]
sulo has joined #ruby-lang
workmad3 has joined #ruby-lang
ryanf has joined #ruby-lang
ruurd has quit [Quit: Leaving...]
scottschecter has quit [Quit: WeeChat 0.3.9.2]
benanne has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby-lang
ryanf has quit [Ping timeout: 246 seconds]
mytrile has joined #ruby-lang
andrewhl has joined #ruby-lang
ephialtes480 has joined #ruby-lang
stonerfish has joined #ruby-lang
vlad_starkov has joined #ruby-lang
sullenel has joined #ruby-lang
dzhulk has joined #ruby-lang
megha has quit [Quit: WeeChat 0.4.0]
mytrile has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: No route to host]
postmodern has joined #ruby-lang
KINGSABRI has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 245 seconds]
mytrile has joined #ruby-lang
Miraks has quit []
vlad_starkov has joined #ruby-lang
Rarrikins has joined #ruby-lang
Rarrikins_p_j_x_ has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
ryanf has joined #ruby-lang
vlad_starkov has joined #ruby-lang
xcombelle has joined #ruby-lang
xcombelle has quit [Read error: Connection reset by peer]
jtoy has joined #ruby-lang
stenum has quit [Remote host closed the connection]
xcombelle has joined #ruby-lang
wallerdev has joined #ruby-lang
wallerdev has quit [Client Quit]
wallerdev has joined #ruby-lang
fushi has quit [Quit: fushi]
ryanf has quit [Ping timeout: 244 seconds]
havenn has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
banister`sleep has quit [Read error: Connection reset by peer]
grp_ has joined #ruby-lang
InfiniteInt has joined #ruby-lang
havenn has quit [Ping timeout: 252 seconds]
havenn has joined #ruby-lang
tomzx_mac has joined #ruby-lang
grp_ has left #ruby-lang [#ruby-lang]
guyrap has joined #ruby-lang
guyrap has quit [Client Quit]
guyrap has joined #ruby-lang
banister_ has joined #ruby-lang
jrafanie has joined #ruby-lang
guyrap has quit [Ping timeout: 245 seconds]
<InfiniteInt> Hello, where can I post a small bug in the bignum class? 2**63 shouldn't be −9223372036854775808
jxie has joined #ruby-lang
<darix> InfiniteInt: 32bit ruby?
KA__ has joined #ruby-lang
pbjorklund has joined #ruby-lang
<InfiniteInt> darix: ruby 1.8.7 patchlevel 358 on osx 10.8.2. Unfortunately, I am not sure if it is 64 or 32 bit.
<darix> i cant reproduce it on linux x86_64 with either 1.9 or 1.8
ryanf has joined #ruby-lang
<whitequark> InfiniteInt: `uname -a`
<sullenel> better uname -m
<yorickpeterse> The output is "9223372036854775808" for me, same output as when calculating it in `bc`
_tockitj has joined #ruby-lang
<yorickpeterse> This is on 64bit Ruby/Lunix
<InfiniteInt> whitequark: Darwin iMac.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
<havenn> On OS X 10.8 system Ruby I get the bug. Not on other Rubies though.
<havenn> Solution, use 1.9.3+! :P
<yorickpeterse> or don't use the system ruby :)
<havenn> ^
yfeldblum has joined #ruby-lang
<darix> or dont use osx?
<havenn> darix: boo hiss >.>
<InfiniteInt> should I update with rvm?
<sullenel> why not?
<havenn> InfiniteInt: RVM or chruby work really nicely.
<yorickpeterse> I can't say I disagree with the statement "don't use OS X", though that's a bit too much for now :)
vlad_starkov has quit [Remote host closed the connection]
stonerfish has quit [Ping timeout: 276 seconds]
<InfiniteInt> ArchLinux on my iMac would be really nice, but this is a lot of work.
<havenn> InfiniteInt: On OS X, if you `brew install chruby`, follow instructions, and run setup.sh script, you'll have latest Ruby, JRuby and RBX. Can switch between them with name globbing, e.g.: chruby 1.9
megha has joined #ruby-lang
jonahR has joined #ruby-lang
<havenn> InfiniteInt: <3 Homebrew
ryanf has quit [Ping timeout: 245 seconds]
madish has quit [Read error: Connection reset by peer]
madish has joined #ruby-lang
pbjorklund has quit [Quit: leaving]
apeiros_ has joined #ruby-lang
vlad_starkov has joined #ruby-lang
<InfiniteInt> Thank you for the quick help.
apeiros_ has quit [Ping timeout: 252 seconds]
jrafanie has quit [Quit: jrafanie]
antbody has quit [Quit: leaving]
KA__ has quit [Quit: KA__]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
wmoxam has quit [Remote host closed the connection]
publicvoid has quit [Ping timeout: 252 seconds]
stonerfish has joined #ruby-lang
scottschecter has joined #ruby-lang
b1rkh0ff has quit [Ping timeout: 245 seconds]
b1rkh0ff has joined #ruby-lang
jtoy has quit [Quit: jtoy]
Rarrikins_h has joined #ruby-lang
ryanf has joined #ruby-lang
Rarrikins has quit [Ping timeout: 246 seconds]
ivanque has joined #ruby-lang
ivanque has left #ruby-lang [#ruby-lang]
ivanque has joined #ruby-lang
InfiniteInt has left #ruby-lang [#ruby-lang]
ivanque has quit [Client Quit]
esad has joined #ruby-lang
esad has quit [Client Quit]
markit has joined #ruby-lang
<markit> hi, is not ruby related but regex related, and I know you are experts :) I've from shell find . -type l | grep '.*(tmp|cache).*'
<markit> that does not match anything! if I use only '.*tmp.*' or '.*cache.*' it does
<markit> how can it be?
<markit> ok
<markit> stupid me
<markit> I've to use egrep
<markit> let's try with find -regex now (that was my starting point)
<markit> find . -type l -regex ".*(tmp|cache).*" does NOT work
<markit> ok, I have to escape some
<markit> find . -type l -regex ".*\(tmp\|cache\).*"
<markit> works
<markit> incredible channel, you can see the truth just joining into ;P
ryanf has quit [Ping timeout: 256 seconds]
joast has quit [Quit: Leaving.]
srbaker has joined #ruby-lang
pbjorklund has joined #ruby-lang
<whitequark> markit: google "rubber duck debugging"
<markit> whitequark: exactly :)
sullenel has quit [Quit: leaving]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
soypirate has joined #ruby-lang
soypirate has quit [Read error: Connection reset by peer]
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
ryanf has joined #ruby-lang
jtoy has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
megha has quit [Quit: WeeChat 0.4.0]
publicvoid has joined #ruby-lang
joast has joined #ruby-lang
jtoy has quit [Client Quit]
KA__ has joined #ruby-lang
kentos has joined #ruby-lang
postmodern has quit [Quit: Leaving]
dous_ has joined #ruby-lang
dous_ has quit [Changing host]
dous_ has joined #ruby-lang
ryanf has quit [Ping timeout: 245 seconds]
tjadc has joined #ruby-lang
dous has quit [Ping timeout: 256 seconds]
banister_ has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
<banisterfiend> d
<yorickpeterse> e
mercwithamouth has joined #ruby-lang
<banisterfiend> yorickpeterse: what's up
<yorickpeterse> not much, writing code while the cat is chillin' next to me
<yorickpeterse> as usual
workmad3 has joined #ruby-lang
unlikely_monkey has joined #ruby-lang
<banisterfiend> yorickpeterse: how's your linter going?
sush24 has quit [Quit: This computer has gone to sleep]
<yorickpeterse> Quite well, I re-implemented the code for dealing with unused variables, shadowed variables and I'm currently putting the last work in undefined variables
<yorickpeterse> After that I need to re-implement method call validations and the CLI
Banistergalaxy has quit [Ping timeout: 245 seconds]
<yorickpeterse> I suppose that if I have enough time I can take a look at jruby support this week
Banistergalaxy has joined #ruby-lang
ryanf has joined #ruby-lang
esad has joined #ruby-lang
workmad3 has quit [Ping timeout: 276 seconds]
workmad3 has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
esad has quit [Quit: Computer has gone to sleep.]
ryanf has quit [Ping timeout: 244 seconds]
sullenel has joined #ruby-lang
Bearproof has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
Rarrikins_h has quit [Read error: Connection reset by peer]
Rarrikins has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
fsvehla has quit [Quit: fsvehla]
esad has joined #ruby-lang
io_syl has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 256 seconds]
esad has quit [Client Quit]
emocakes has quit [Quit: emocakes]
solars has quit [Ping timeout: 245 seconds]
sulo has quit [Remote host closed the connection]
Rarrikins_x has joined #ruby-lang
methods1 has left #ruby-lang [#ruby-lang]
Rarrikins has quit [Ping timeout: 252 seconds]
ryanf has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
KA__ has quit [Quit: KA__]
glebm has joined #ruby-lang
wallerdev has joined #ruby-lang
mytrile has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
tomzx_mac has quit [Ping timeout: 252 seconds]
sn0wb1rd has joined #ruby-lang
megha has joined #ruby-lang
emocakes has joined #ruby-lang
Rarrikins_x has quit [Read error: Connection reset by peer]
Rarrikins_x has joined #ruby-lang
ryanf has quit [Ping timeout: 240 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
workmad3 has quit [Ping timeout: 255 seconds]
gregmore_ has joined #ruby-lang
esad has joined #ruby-lang
fsvehla has joined #ruby-lang
dcwu has joined #ruby-lang
sulo has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
mpan has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
My_Hearing has joined #ruby-lang
My_Hearing has joined #ruby-lang
My_Hearing has quit [Changing host]
Mon_Ouie has quit [Disconnected by services]
My_Hearing is now known as Mon_Ouie
My_Hearing has joined #ruby-lang
sulo has quit [Ping timeout: 256 seconds]
xcombelle is now known as xcombelle_away
wmoxam has joined #ruby-lang
mwjcomputing has joined #ruby-lang
megha has quit [Ping timeout: 252 seconds]
ryanf has joined #ruby-lang
dankest has joined #ruby-lang
lcdhoffman has joined #ruby-lang
wmoxam has quit [Quit: leaving]
Rarrikins has joined #ruby-lang
Rarrikins_x has quit [Ping timeout: 260 seconds]
ryanf has quit [Ping timeout: 245 seconds]
krz has quit [Quit: krz]
megha has joined #ruby-lang
bzalasky has joined #ruby-lang
<emocakes> I have a bit of a internal question
<emocakes> say I have an or like this
<emocakes> foo = (bar== 'dog' || bar =='james' || some really costly time consuming comparison here)
<emocakes> as ruby works right to left for conditionals
<emocakes> would it be safe to say that if i put the really costly comparison at the start, it will only get run when the other two fail?
<emocakes> or they all get evaluated?
dzhulk has quit [Quit: Leaving.]
lcdhoffman has quit [Quit: lcdhoffman]
<markit> emocakes: I don't know/remember. Create 3 procedures with "puts 'procedure x'" and use them in the condition and see if are evaluated
<markit> (of course the first has to return false, the other true)
<emocakes> good point hold on
<emocakes> ok
<emocakes> so it works the other way round in this case markit
<emocakes> starts from the left
<emocakes> 1.9.3p374 :016 > (c || b || a)
<emocakes> c;
<emocakes> a
<emocakes> => true
<emocakes> b
<emocakes> a returns true
Nisstyre-laptop has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby-lang
Bearproof has joined #ruby-lang
hugobastien has joined #ruby-lang
<markit> mmm a and be return false, ok?
<markit> oh, yes sorry
<markit> c true and b and a false
<markit> which ones are executed?
hugobastien has quit [Remote host closed the connection]
drbrain has quit [Remote host closed the connection]
<markit> I've to go, bye
markit has quit []
Bearproof has quit [Ping timeout: 244 seconds]
<emocakes> a is true
<emocakes> the rest are falsch
<sullenel> emocakes: it will be evaluated until it finds the first true value
lsegal has joined #ruby-lang
<emocakes> sullenel, just didnt know which order
<emocakes> i.e: right to left the rest of ruby, or left to right
<emocakes> its left to right
benanne has quit [Quit: kbai]
xcombelle_away is now known as xcombelle
Bearproof has joined #ruby-lang
imajes has quit [Excess Flood]
ryanf has joined #ruby-lang
Bearproof has left #ruby-lang [#ruby-lang]
Bosox20051 has joined #ruby-lang
dankest has quit [Quit: Linkinus - http://linkinus.com]
imajes has joined #ruby-lang
<manveru> rest of ruby isn't right to left
esad has joined #ruby-lang
<manveru> it's from inside out, then left to right
esad has quit [Client Quit]
<manveru> and from top to bottom
<banisterfiend> manveru: out of interest, what do you have against rails?
<manveru> the culture and size
<banisterfiend> manveru: so not against the particular design/structure ?
<manveru> i don't know it well enough to rant about it
<banisterfiend> fair enough
Banistergalaxy has quit [Ping timeout: 246 seconds]
Hauro has joined #ruby-lang
slaytanic has quit [Quit: mmmb0p.]
<manveru> the vibe i get from folks using rails is going overboard on dependencies, sticking with the fashion of the month, troubles upgrading so legacy apps stays that way very often, bundler, DHH, and YAML and DSL all over the place just for the sake of it
Quatrerwin has joined #ruby-lang
<manveru> so... my motivation to learn rails has been close to 0, and so far i've been lucky enough to never have a job that required it
jtoy has joined #ruby-lang
setmeaway has joined #ruby-lang
<manveru> when people don't use RoR it either means they have thought things through, or they're insane
<manveru> and i've worked for both types :)
<emocakes> manveru yah
<emocakes> you can be one of those developers who installs every single imaginable
<emocakes> then complains about tests taking 6 hours
<emocakes> and a restart 2 minutes
<emocakes> :p
<emocakes> or you can just use the ruby you know and make it do what you need it to do, instead of what you might maybe possibly need in the distant future
<manveru> brb
mossplix has quit [Remote host closed the connection]
Hauro has quit [Quit: Page closed]
apeiros_ has joined #ruby-lang
rippa has joined #ruby-lang
jtoy has quit [Quit: jtoy]
jtoy has joined #ruby-lang
Rarrikins has quit [Ping timeout: 240 seconds]
bzalasky has quit [Remote host closed the connection]
Rarrikins has joined #ruby-lang
bzalasky has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
<whitequark> banisterfiend: I LOVE YOU
<whitequark> method names lined in columns
<banisterfiend> whitequark: what?
<whitequark> banisterfiend: http://pastie.org/5886971 this
<whitequark> so much better than the mess it printed previously
xcombelle has quit [Remote host closed the connection]
<banisterfiend> whitequark: hehe yeah, i think that was primarily the work of andrewvos and rking :)
mytrile has joined #ruby-lang
spinagon has joined #ruby-lang
rippa has quit [Read error: Connection reset by peer]
dous_ has quit [Remote host closed the connection]
dous has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 260 seconds]
tjadc has quit [Ping timeout: 252 seconds]
lcdhoffman has joined #ruby-lang
spinagon has quit [Ping timeout: 240 seconds]
sullenel has quit [Quit: leaving]
dous has quit [Ping timeout: 260 seconds]
slaytanic has joined #ruby-lang
datanoise has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
znake has joined #ruby-lang
znake has quit [Client Quit]
benanne has joined #ruby-lang
znake has joined #ruby-lang
mwjcomputing has quit [Ping timeout: 252 seconds]
datanoise has quit [Ping timeout: 276 seconds]
tomzx_mac has joined #ruby-lang
s0ber has quit [Read error: Connection reset by peer]
s0ber has joined #ruby-lang
tylersmith has joined #ruby-lang
znake has quit [Quit: Linkinus - http://linkinus.com]
methods has joined #ruby-lang
methods has left #ruby-lang [#ruby-lang]
unlikely_monkey has quit [Remote host closed the connection]
esad has joined #ruby-lang
hugobastien has joined #ruby-lang
hugobastien has quit [Remote host closed the connection]
methods1 has joined #ruby-lang
lunarjar has joined #ruby-lang
lunarjar has quit [Read error: Connection reset by peer]
lunarjar has joined #ruby-lang
lunarjar has quit [Read error: Connection reset by peer]
Rarrikins has quit [Ping timeout: 255 seconds]
Rarrikins has joined #ruby-lang
methods1 has left #ruby-lang [#ruby-lang]
lunarjar has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
gustavnils has quit [Quit: Textual IRC Client: www.textualapp.com]
lunarjar has quit [Client Quit]
esad has joined #ruby-lang
esad has quit [Quit: Computer has gone to sleep.]
cored has quit [Read error: Operation timed out]
methods has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
datanoise has joined #ruby-lang
tonni has quit [Remote host closed the connection]
ronaldo__ has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
tonni has joined #ruby-lang
esad has joined #ruby-lang
thone_ has joined #ruby-lang
esad has quit [Client Quit]
guns has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
thone has quit [Ping timeout: 245 seconds]
tbuehlmann has quit [Remote host closed the connection]
mytrile has quit [Remote host closed the connection]
megha has quit [Read error: Operation timed out]
datanoise has quit [Ping timeout: 252 seconds]
tbuehlmann has joined #ruby-lang
benanne has quit [Quit: kbai]
slyv has joined #ruby-lang
slyv has quit [Max SendQ exceeded]
slyv has joined #ruby-lang
ronaldo__ has quit [Read error: Connection reset by peer]
slyv has quit [Max SendQ exceeded]
ronaldo__ has joined #ruby-lang
slyv has joined #ruby-lang
slyv has quit [Max SendQ exceeded]
megha has joined #ruby-lang
Rarrikins has quit [Ping timeout: 256 seconds]
Rarrikins has joined #ruby-lang
kentos has quit [Quit: Leaving]
ronaldo__ has quit [Read error: Connection reset by peer]
ronaldo__ has joined #ruby-lang
idkazuma has joined #ruby-lang
gix has quit [Ping timeout: 252 seconds]
gix has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
unsymbol has left #ruby-lang [#ruby-lang]
tomzx_mac has quit [Read error: Operation timed out]
swav has quit [Remote host closed the connection]
guns has quit [Ping timeout: 255 seconds]
guns has joined #ruby-lang
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
swav has joined #ruby-lang
unlikely_monkey has joined #ruby-lang
srbaker has joined #ruby-lang
dragonkh has joined #ruby-lang
<dragonkh> evening
swav has quit [Remote host closed the connection]
methods has left #ruby-lang [#ruby-lang]
<dragonkh> zenspider or drbrain - is the ruby2c project still alive and relevant ?
havenn has quit [Remote host closed the connection]
kiwnix has joined #ruby-lang
swav has joined #ruby-lang
swav has quit [Remote host closed the connection]
dragonkh has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 276 seconds]
dbelley has joined #ruby-lang
workmad3 has joined #ruby-lang
havenn has joined #ruby-lang
megha has quit [Ping timeout: 255 seconds]
benanne has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
retro|cz has quit [Ping timeout: 256 seconds]
heftig has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
swav has joined #ruby-lang
swav has quit [Remote host closed the connection]
glebm has quit [Quit: Computer has gone to sleep.]
havenn has quit [Remote host closed the connection]
retro|cz has joined #ruby-lang
megha has joined #ruby-lang
s1n4 has joined #ruby-lang
ryanf has quit [Ping timeout: 244 seconds]
Kuifje has quit [Ping timeout: 276 seconds]
ryanf has joined #ruby-lang
guns has quit [Quit: guns]