ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
savage-_ has joined #ruby-lang
savage- has quit [Read error: Connection reset by peer]
cantonic_ has joined #ruby-lang
S2kx has joined #ruby-lang
cantonic has quit [Ping timeout: 272 seconds]
cantonic_ is now known as cantonic
S1kx has quit [Ping timeout: 252 seconds]
sailias has joined #ruby-lang
artOfWar has joined #ruby-lang
billyoc has joined #ruby-lang
mistym has quit [Remote host closed the connection]
achiu has quit [Quit: WeeChat 0.3.7]
t83823 has quit [Remote host closed the connection]
t6541 has joined #ruby-lang
_malte has joined #ruby-lang
achiu has joined #ruby-lang
deryl has quit [Ping timeout: 248 seconds]
TheNullByte has quit [Quit: TheNullByte]
achiu has quit [Client Quit]
achiu has joined #ruby-lang
_malte has quit [Ping timeout: 246 seconds]
sepp2k has quit [Read error: Connection reset by peer]
malev has joined #ruby-lang
deryl has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
banisterfiend has quit [Remote host closed the connection]
TheNullByte has joined #ruby-lang
S2kx has quit [Quit: Leaving]
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
CarlB_the_great has joined #ruby-lang
vlad_starkov has joined #ruby-lang
dous_ has quit [Remote host closed the connection]
chimkan_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 246 seconds]
t6541 has quit [Remote host closed the connection]
t53455 has joined #ruby-lang
cantonic has quit [Quit: cantonic]
kingCrawlerx has quit [Quit: Computer has gone to sleep]
kingCrawlerx has joined #ruby-lang
wmoxam has joined #ruby-lang
agile has quit [Read error: Connection reset by peer]
diegoviola has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 246 seconds]
S1kx has quit [Quit: Leaving]
<MouseTheLuckyDog> If I want to use instances of a class as a ,key in a hash, and I want to be able to sort the ketys, what methods do need to I supply to the class?
Quatrerwin has joined #ruby-lang
diegoviola has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
_malte has joined #ruby-lang
banisterfiend has joined #ruby-lang
_malte has quit [Ping timeout: 268 seconds]
fgomez has quit [Ping timeout: 240 seconds]
t53455 has quit [Remote host closed the connection]
t16215 has joined #ruby-lang
pygwing has joined #ruby-lang
fgomez has joined #ruby-lang
malev has quit [Remote host closed the connection]
jackhammer2022 has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
woollyams has quit [Quit: Computer has gone to sleep.]
Dreamer3 has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #ruby-lang
mztriz has left #ruby-lang [#ruby-lang]
kingCrawlerx has quit [Quit: Computer has gone to sleep]
kingCrawlerx has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
Cherrum has quit [Read error: Connection reset by peer]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
Cherrum has joined #ruby-lang
kingCrawlerx has quit [Quit: Computer has gone to sleep]
banisterfiend has joined #ruby-lang
m3nd3s_ has quit [Remote host closed the connection]
gsav has quit [Read error: Connection reset by peer]
TheNullByte has quit [Quit: TheNullByte]
TheNullByte has joined #ruby-lang
kingCrawlerx has joined #ruby-lang
woollyams has joined #ruby-lang
t16215 has quit [Remote host closed the connection]
t52162 has joined #ruby-lang
_malte has joined #ruby-lang
ramonmaruko has quit [Remote host closed the connection]
_malte has quit [Ping timeout: 246 seconds]
ramonmaruko has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
mistym has joined #ruby-lang
deryl has quit [Quit: deryl]
<steveklabnik> MouseTheLuckyDog: I think ==
pwing has joined #ruby-lang
<steveklabnik> MouseTheLuckyDog: yep: http://pastie.org/4659806
artOfWar has quit [Remote host closed the connection]
pygwing has quit [Ping timeout: 244 seconds]
Tearan has quit [Quit: Sleepy Badger....]
<GeekOnCoffee> steveklabnik: awesomely demonstrated
kain has quit [Remote host closed the connection]
kain has joined #ruby-lang
pvh has joined #ruby-lang
<steveklabnik> ty
<steveklabnik> i always try to do the maximum awesome
CarlB_the_great has quit [Remote host closed the connection]
t52162 has quit [Remote host closed the connection]
t91601 has joined #ruby-lang
<GeekOnCoffee> steveklabnik: all ready for Chicago? I wish I could make it :(
<steveklabnik> yep!
<steveklabnik> i'm gonna be there for almost a week, it's good :)
<steveklabnik> <3 chicago
<steveklabnik> the talk got great reviews when i gave it at eurucamp
<GeekOnCoffee> nice! I really need to spend some time there, my time has been almost entirely just driving through on the freeway
<steveklabnik> heh
<steveklabnik> i'm there every few months or so.
<steveklabnik> enjoy it a lot. will probably live there at some point in my life
<GeekOnCoffee> the timing of the confs around here didn't work out well for me this year :( would have liked to have done both MadisonRuby and Windy City, but Spreeconf and 2 weeks in Ireland got in the way
* steveklabnik nods
<steveklabnik> madison was so good this year
<steveklabnik> it was so good last year too
banisterfiend has quit [Ping timeout: 244 seconds]
pwing has quit [Ping timeout: 240 seconds]
brunocoelho has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
gsav has joined #ruby-lang
woollyams has joined #ruby-lang
_malte has joined #ruby-lang
pwing has joined #ruby-lang
sailias has quit [Ping timeout: 246 seconds]
macmartine has joined #ruby-lang
lcdhoffman has joined #ruby-lang
_malte has quit [Ping timeout: 246 seconds]
eric-wood is now known as ericwood
pwing has quit [Ping timeout: 244 seconds]
TheNullByte has quit [Quit: TheNullByte]
Jotade11 has quit [Quit: Linkinus - http://linkinus.com]
woollyams has quit [Quit: Computer has gone to sleep.]
pwing has joined #ruby-lang
slyphon has joined #ruby-lang
chimkan___ has joined #ruby-lang
chimkan___ has quit [Client Quit]
porkwing has joined #ruby-lang
pwing has quit [Ping timeout: 260 seconds]
t91601 has quit [Remote host closed the connection]
chimkan_ has quit [Ping timeout: 276 seconds]
t22068 has joined #ruby-lang
nXqd has joined #ruby-lang
Bosox20051 has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
gsav has joined #ruby-lang
postmodern has joined #ruby-lang
ramonmaruko has quit [Remote host closed the connection]
ttilley has joined #ruby-lang
neocoin has joined #ruby-lang
ramonmaruko has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
_malte has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
_malte has quit [Ping timeout: 244 seconds]
ramonmaruko has quit [Remote host closed the connection]
savage-_ has quit [Remote host closed the connection]
Carnage\ has quit []
ramonmaruko has joined #ruby-lang
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
havenn has joined #ruby-lang
savage- has joined #ruby-lang
woollyams has joined #ruby-lang
woollyams has quit [Client Quit]
macmartine has quit [Quit: Computer has gone to sleep.]
ramonmaruko has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
ramonmaruko has joined #ruby-lang
Bosox20051 has quit [Quit: Leaving]
ttilley has quit [Quit: ttilley]
artOfWar has joined #ruby-lang
ramonmaruko has quit [Remote host closed the connection]
savage- has quit [Quit: .]
ramonmaruko has joined #ruby-lang
gsav has joined #ruby-lang
neocoin has quit []
andoyasushi has joined #ruby-lang
andoyasushi has quit [Excess Flood]
gsav has quit [Quit: Lost terminal]
banisterfiend has joined #ruby-lang
WillMarshall has joined #ruby-lang
burgestrand has joined #ruby-lang
gsav has joined #ruby-lang
wmoxam has quit [Ping timeout: 260 seconds]
gsav has quit [Read error: Connection reset by peer]
andoyasushi has joined #ruby-lang
_malte has joined #ruby-lang
_malte_ has joined #ruby-lang
_malte has quit [Read error: Connection reset by peer]
_malte_ has quit [Remote host closed the connection]
slyphon has quit [Ping timeout: 245 seconds]
hollymann has joined #ruby-lang
|Vargas| has joined #ruby-lang
|Vargas| has quit [Changing host]
|Vargas| has joined #ruby-lang
tonni_ has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
porkwing has quit [Ping timeout: 255 seconds]
areil has joined #ruby-lang
t22068 has quit [Remote host closed the connection]
porkwing has joined #ruby-lang
porkwing has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Remote host closed the connection]
<erikh> fart
d3vic3 has quit [Ping timeout: 252 seconds]
d3vic3 has joined #ruby-lang
lcdhoffman has joined #ruby-lang
nXqd has quit [Ping timeout: 244 seconds]
tonni has joined #ruby-lang
abrausch has joined #ruby-lang
chimkan_ has joined #ruby-lang
porkwing has joined #ruby-lang
nXqd has joined #ruby-lang
gsav has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
eridani has quit [Ping timeout: 272 seconds]
burgestrand has quit [Quit: Leaving.]
s1n4 has joined #ruby-lang
rue|w has joined #ruby-lang
yats has joined #ruby-lang
banisterfiend has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
tonni has quit [Remote host closed the connection]
tonni has joined #ruby-lang
JohnBat26 has joined #ruby-lang
<JohnBat26> Hello
<JohnBat26> What does it mean: ::AES ?
<JohnBat26> I keep in view emptiness before ::
tonni has quit [Ping timeout: 246 seconds]
<erikh> it means to references the 'AES' constant from the root namespace
kitallis has joined #ruby-lang
<JohnBat26> erikh: Thanks
<erikh> np. you'll see it a lot when you have something like 'Foo::File' and something that references 'File' by itself, which with normal constant lookup would reference 'Foo::File' before 'File'
diegoviola has quit [Ping timeout: 264 seconds]
<erikh> the '::File' basically re-routes the lookup to say "consult the root namespace only"
<erikh> of course, this applies to any namespace, e.g., ::FileUtils::Verbose would do what you think it would.
chimkan_ has quit [Quit: chimkan_]
ruurd has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
porkwing has quit [Quit: WeeChat 0.3.5]
JohnBat26 has quit [Remote host closed the connection]
Dreamer3 has quit [Quit: Leaving...]
qwerxy has joined #ruby-lang
stepnem has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
havenn has quit [Remote host closed the connection]
JohnBat26 has joined #ruby-lang
Cherrum has quit [Ping timeout: 245 seconds]
Madis has joined #ruby-lang
<yorickpeterse> Morning
Dreamer3 has joined #ruby-lang
<erikh> hi
solars has joined #ruby-lang
zmack has joined #ruby-lang
diegoviola has joined #ruby-lang
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Cherrum has joined #ruby-lang
dhruvasagar has joined #ruby-lang
songrit has joined #ruby-lang
ryanf has quit [Quit: leaving]
songrit has left #ruby-lang [#ruby-lang]
WillMarshall has quit [Quit: Computer has gone to sleep.]
<rue|w> HI THERE
rolfb has joined #ruby-lang
thone has quit [Read error: Operation timed out]
d3vic3 has quit [Quit: leaving]
artOfWar has quit [Remote host closed the connection]
artOfWar has joined #ruby-lang
chendo_ has quit [Ping timeout: 244 seconds]
rolfb_ has joined #ruby-lang
rolfb has quit [Read error: Connection reset by peer]
thone has joined #ruby-lang
Leeky_afk is now known as Leeky
Quatrerwin has quit [Quit: Leaving]
chendo_ has joined #ruby-lang
qwerxy has quit [Quit: offski]
just4dos has quit [Ping timeout: 245 seconds]
cantonic has joined #ruby-lang
rolfb_ has quit [Quit: Linkinus - http://linkinus.com]
diegoviola has quit [Ping timeout: 244 seconds]
vlad_starkov has joined #ruby-lang
ttilley has joined #ruby-lang
josh^ has quit [Ping timeout: 272 seconds]
josh^ has joined #ruby-lang
cdt has joined #ruby-lang
tbuehlmann has joined #ruby-lang
rolfb has joined #ruby-lang
yxhuvud has joined #ruby-lang
Hakon has joined #ruby-lang
Hakon has quit [Read error: Connection reset by peer]
tonni has joined #ruby-lang
Mon_Ouie has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
Leeky is now known as Leeky_afk
dfr|mac has joined #ruby-lang
adambeynon has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
GeekOnCoffee has quit [Ping timeout: 244 seconds]
dfr|mac has joined #ruby-lang
GeekOnCoffee has joined #ruby-lang
artOfWar has quit [Remote host closed the connection]
runeb has joined #ruby-lang
gnufied has joined #ruby-lang
Future[Chimp] has joined #ruby-lang
ttilley has quit [Quit: ttilley]
dfr|mac has quit [Remote host closed the connection]
Madis has quit [Ping timeout: 246 seconds]
Criztian has joined #ruby-lang
qwerxy has joined #ruby-lang
<yorickpeterse> ARE WE SHOUTING AGAIN?
havenn has joined #ruby-lang
havenn has quit [Remote host closed the connection]
Future[Chimp] has quit [Quit: Leaving]
havenn has joined #ruby-lang
havenn has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Ping timeout: 240 seconds]
_malte has joined #ruby-lang
d3vic3 has joined #ruby-lang
d3vic3 has quit [Client Quit]
d3vic3 has joined #ruby-lang
_malte_ has joined #ruby-lang
d3vic3 has quit [Client Quit]
d3vic3 has joined #ruby-lang
d3vic3 has quit [Client Quit]
_malte has quit [Ping timeout: 252 seconds]
<rolfb> yorickpeterse: *crickets*
<yorickpeterse> CLEARLY THIS CHANNEL NEEDS MORE CAPITALS
<banisterfiend> yorickpeterse: yozzy
gnufied has quit [Quit: Leaving.]
chendo_ has quit [Ping timeout: 244 seconds]
<rolfb> i don't think a capital would fit
gnufied has joined #ruby-lang
Madis has joined #ruby-lang
chendo_ has joined #ruby-lang
charliesome has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
xyz has joined #ruby-lang
<rue|w> Egh
chendo_ has quit [Ping timeout: 244 seconds]
toretore has joined #ruby-lang
artOfWar has joined #ruby-lang
chendo_ has joined #ruby-lang
artOfWar has quit [Ping timeout: 245 seconds]
gianlucadv has quit [Quit: ZNC - http://znc.sourceforge.net]
deryl has joined #ruby-lang
gianlucadv has joined #ruby-lang
andoyasushi has quit [Ping timeout: 252 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
vlad_starkov has quit [Remote host closed the connection]
Theueip has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
lolmaus has joined #ruby-lang
<lolmaus> Could you please suggest the most awesome paid Ruby and RoR courses?
Madis has quit [Ping timeout: 246 seconds]
<bnagy> can anyone take a look at an algorithm? It blows up with OOM and I can't see why
<matti> OOM?
<matti> Out Of Mind?
<matti> ;]
charliesome is now known as epochfail
epochfail has quit [Disconnected by services]
<bnagy> parallel greedy in the middle
charliesome has joined #ruby-lang
Madis has joined #ruby-lang
stardiviner has joined #ruby-lang
kingCrawlerx has quit [Quit: Computer has gone to sleep]
<erikh> bnagy: Parallel uses Thread, not fork, right?
<erikh> oh, I see.
<erikh> hm.
<erikh> ok, next question: is this on windows? :)
<bnagy> no
<bnagy> it's under jruby, which is how I noticed the OOM - mri would just grind
stardiviner has quit [Client Quit]
<erikh> interesting; jruby implements fork doesn't it?
kingCrawlerx has joined #ruby-lang
<bnagy> no
kingCrawlerx has quit [Client Quit]
<erikh> just trying to figure out if you're OOMing because you're doing a lot of fork copies or there's a GC issue
<bnagy> it will use threads under jruby
<erikh> ok
ruurd has quit [Quit: Leaving...]
vlad_starkov has joined #ruby-lang
<erikh> Set#merge has side effects?
<bnagy> afaik it's basically just Hash#merge
<bnagy> ie it shouldn't
<masterkorp> Is there any regex ninja in here ?
<erikh> right, but Hash#merge returns the result, it doesn't modify the receiver
<masterkorp> ĩ want to parse the date of this line
<erikh> Set#merge (guessing from the docs) mutates the receiver
<masterkorp> Started GET "/api/events/1/members" for 127.0.0.1 at 2012-09-04 11:56:01 +0100
<masterkorp> /\[\d{2}\/\w{3}\/\d{4}\:\d{2}:\d{2}:\d{2}\s.{5}\]/
<masterkorp> what i got so far
<bnagy> why must people insist on using regular expressions like idiots?
<erikh> be nice, he's green
<bnagy> /at (.*)$/
<erikh> masterkorp: start coarsely
<erikh> like bnagy suggested; I'd personally split by space first, and work with the individual elements.
<bnagy> then throw that into DateTime.parse ideally
<bnagy> parsing dates with regexp is a short, straight road to failtown
<erikh> DateTime.parse has some issues portability-wise, strptime is better
<bnagy> it does?
<erikh> bnagy: the short is that I don't have any answers for you. I can't see any leaks with just a read.
<bnagy> I never use it portably (I barely parse dates irl)
<masterkorp> erikh: excuse me, i am not a native english speaker, what coarsely means ?
<erikh> bnagy: yeah, they switched from european to japanese (or the other direction) for m/d/y between 1.8 and 1.9
<bnagy> erikh: yeah, thanks, least I'm not just insane
<masterkorp> this is getting a monster, i need to start over
<bnagy> to me, if it makes it past the initial expansion it should peak there
<erikh> so 11/10/2010 could be november 10th or october 11th depending on which version of ruby you're using.
<bnagy> can't you set a locale flag or something to control that?
<bnagy> oh right I see, 1.8->9 compat
<bnagy> pff who cares :D
<erikh> not as far as I saw, I had pretty solid tests for a database date thing I was working on.
<erikh> masterkorp: coarsely means to not be too specific..
<erikh> masterkorp: I would strongly suggest using as little regex as possible to get the date, then look at at DateTime.strptime to actually manage the date itself.
<bnagy> masterkorp: line[/at (.*)$/,1]
<bnagy> DateTime.parse l[/at (.*)$/,1]
<bnagy> => #<DateTime: 2012-09-04T11:56:01+01:00 (212213516161/86400,1/24,2299161)>
<bnagy> or strptime if you prefer
<erikh> I think strptime has a canned format for that one.
<erikh> I think it's %F, but I'd have to read the docs.
<erikh> DateTime.parse is also slooooooow
<erikh> but enough hate on that.
<bnagy> well it's a super liberal parser, give it a break
<erikh> right, which is why if you know the format you should always use strptime
<erikh> :)
vlad_starkov has quit [Remote host closed the connection]
<bnagy> yeah but I was done coding in 4 seconds
<bnagy> you're still looking up strptime formats ;)
<erikh> oh, no i'm not. I wouldn't write a log parser in ruby i don't think.
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
QaDeS has joined #ruby-lang
<injekt> eww a log parser in ruby
jxie_ has quit [Quit: leaving]
<injekt> I guess you have a lot of time to waste waiting for that thing to work its way through logs
<erikh> jruby might not be so bad.
<erikh> but yeah, i'd probably use trusty old perl
<injekt> i'd probably use perl or maybe go
<erikh> yeah. I was thinking about that, but really can't speak to it's ability to handle strings.
<erikh> gonna make a hard effort to get rust in my brain tomorrow.
<injekt> it's not really comparable to perl, but it's good
<injekt> cool
<injekt> erikh: you touched/planned on touching rakudo?
<erikh> well, my initial thought went to C, then I thought about C string handling and I :(
<injekt> aye
<erikh> injekt: eh, perl 6..
<injekt> :D
<injekt> I can't stomach it
rararadar has joined #ruby-lang
<erikh> I gotta give it to them though, at least they're trying new things
<erikh> everything I've heard about python 3 is that they took a decent language and just fucked it up hard, while not changing it substantially
<injekt> aye
<injekt> so basically, if you're going to fuck it up, do it properly?
yats has quit [Read error: Connection reset by peer]
<erikh> more or less. I mean, perl 6 is larry's sandbox and it's his right to do so
<injekt> heh yeah
<injekt> I just can't handle the syntax
<erikh> same with guido really, but I know that larry&co is actually trying something different, where guido's just opining in a way that makes everyone unhappy.
<erikh> I really just wish larry didn't call it perl
<injekt> seems that way yeah
<erikh> it would have changed so much about the perception of both perl 6 and the evolution of perl 5.
<injekt> agreed
<injekt> multi sub strftime( Str $format is copy, DateTime $dt ) is export(:DEFAULT)
<injekt> :/
<erikh> oh, you should see all this shit in perl 5 now
banisterfiend has quit [Read error: Connection reset by peer]
<erikh> between perl5i and all the modern perl stuff
<injekt> oh god, bridging stuff?
<erikh> I can't say I really like it much. it makes some things simpler but it also really seems to overcomplicate matters.
<erikh> perl5i could be (poorly) summarized as "ruby for perl programmers"
<injekt> lol
<injekt> $format .= subst( /'%'(\dN|\w|'%')/, -> $/ { (%substitutions{~$0} // die "Unknown format letter '$0'").() }, :global );
<injekt> wow
<masterkorp> bnagy: gets me the weird results on rubular
<erikh> injekt: that's actually pretty close to p5 syntax
<bnagy> masterkorp: that's because the [] part isn't regexp, it's a method in String
<erikh> the // is just defined-or, which was mainline in 5.10 and patched into some distro 5.8 release
<erikh> s
<injekt> erikh: // and :global lost me, the rest was familiar
<injekt> ah
<injekt> oh yeah
<erikh> :global's just a symbol like ruby and lisp
<injekt> //= duh
<masterkorp> bnagy: sorry my bad
<injekt> yeah was curious about that
brianpWins has quit [Quit: brianpWins]
<erikh> I respect the effort that modern perl is trying to bring, I just can't jive with the approach
<erikh> and the whole operator system in perl 6 makes me want to stab people
<bnagy> masterkorp: [/blah(.)blah/,1] returns the first grouped match from that regexp
<injekt> erikh: heh yeah
<erikh> I'd just use haskell if I wanted that shit
<injekt> i like haskell, I just forget it after every time i've used it
rue|w has quit [Remote host closed the connection]
<erikh> ah, I really don't like it.
<erikh> written awk with less punctuation in it.
<injekt> :D
<erikh> anyhow, I get really grumpy at kitchen sink languages
<erikh> if I just had C with better string handling and worthwhile GC I'd probably throw everything else out.
<injekt> ehm
<injekt> :)
banisterfiend has joined #ruby-lang
<erikh> this is where I get to hear about Go, aye?
<injekt> it was implicit
<injekt> :D
kingCrawlerx has joined #ruby-lang
<erikh> it's on the list; the type system in rust intrigues me
<erikh> mostly because it's basically ocaml's type system, D's type system, haskell's type system...
<erikh> scala's type system, and so on. but it's geared at systems programming.
<injekt> it looks interesting yeah, just cant get my head around some of the syntax
<erikh> it's still evolving. you should see the chatter on the irc.mozilla.org channel.
<erikh> they have a roadmap but it's pretty obvious there's still a lot of discussion about where things should go.
<banisterfiend> erikh: have oyu looked into nimrod too?
<erikh> no!
<banisterfiend> it's pretty k00, i'll show u a rake clone someone wrote in it
<erikh> I'm just hoping and praying that rust doesn't turn into D
<injekt> heh
<injekt> didn't nimrod get big and then completely lack development for like 10 months?
<banisterfiend> i dont really know anything about it
<banisterfiend> but it looks ok
<erikh> eh
<injekt> stmt {.immediate.} this kind of syntax bothers me
<erikh> I'm really looking for something with real pointers, good string handling, a type system that's strong enough to be helpful but not get in the way (i.e. inference), and ideally an algol-like syntax
<erikh> oh and a GC.
<banisterfiend> injekt: it's kind of interesting in that the language allows you to define new syntax and stuff, it's meant to be kind of lispy
<injekt> interesting
zmack has quit [Read error: Connection reset by peer]
<injekt> I hate 'let'
zmack has joined #ruby-lang
<erikh> honestly, C# would be perfect if it ran on the right platforms.
yats has joined #ruby-lang
<injekt> except needs less verbose
<erikh> yeah I'm not too big on the conventions
<erikh> I mean, there's no real requirement that C# be verbose; it's just the java mindset
<injekt> aye
<injekt> I dont like capitalized method names either, it still bothers me with go
<erikh> right, but this is all cultural
<erikh> when your IDE tab-completes everything it doesn't matter anyway
postmodern has quit [Quit: Leaving]
<injekt> sure
<erikh> I mean, C++ or ObjC wouldn't be far off, but they really have the same problems as C# and a whole host of other issues
<erikh> anyway I'm ranting, and if I really want my magical faerie language I should put up or shut up
<erikh> off to read more tolkein. ttfn
<injekt> cya
kingCrawlerx has quit [Quit: [kingCrawlerx release]]
rue|w has joined #ruby-lang
banisterfiend` has joined #ruby-lang
Guedes0 has left #ruby-lang [#ruby-lang]
Guest59387 has joined #ruby-lang
Guest59387 has quit [Read error: Connection reset by peer]
banisterfiend has quit [Ping timeout: 244 seconds]
Guedes0 has joined #ruby-lang
lcdhoffman has joined #ruby-lang
Guedes0 has left #ruby-lang [#ruby-lang]
lcdhoffman has quit [Client Quit]
zarubin has joined #ruby-lang
m3nd3s has joined #ruby-lang
sailias has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<masterkorp> Guys, can you point to any documentation on reading big logs files
<masterkorp> just the last parts
<masterkorp> so i would prefer a reverse operation
cantonic has quit [Quit: cantonic]
<bnagy> tail it?
<bnagy> write your script to process ARGF
<bnagy> reading lines in reverse is hard
<bnagy> like, you can seek to the end
<bnagy> but lines aren't fixed length
<masterkorp> seems like a decent approach
sepp2k has joined #ruby-lang
m3nd3s has quit [Read error: Connection timed out]
chendo_ has quit [Ping timeout: 244 seconds]
Defusal has quit [Read error: Connection reset by peer]
gnufied has quit [Quit: Leaving.]
chendo_ has joined #ruby-lang
m3nd3s has joined #ruby-lang
rohit has joined #ruby-lang
gnufied has joined #ruby-lang
<whitequark> is it grammatically correct to say "Having X to be shown in Y would be handy."?
<Mon_Ouie> I'm no native English speaker, but I'd remove the "to be"
<whitequark> hm, yeah, seems better to me too
CarlB_the_great has joined #ruby-lang
cantonic has joined #ruby-lang
m3nd3s has quit [Read error: Connection timed out]
dhruvasagar has quit [Ping timeout: 248 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
carloslopes has joined #ruby-lang
dhruvasagar has joined #ruby-lang
m3nd3s has joined #ruby-lang
m3nd3s has quit [Read error: Connection reset by peer]
CarlB_the_great has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
mistym has quit [Remote host closed the connection]
neocoin has joined #ruby-lang
neocoin has quit [Client Quit]
rohit has quit [Quit: Leaving]
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
Defusal has joined #ruby-lang
hollymann has left #ruby-lang [#ruby-lang]
hollymann has joined #ruby-lang
hollymann has left #ruby-lang [#ruby-lang]
hollymann has joined #ruby-lang
hollymann has left #ruby-lang [#ruby-lang]
m3nd3s has quit [Read error: Connection timed out]
m3nd3s has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
qwerxy has quit [Quit: offski]
codewrangler has joined #ruby-lang
yats has quit [Read error: Connection reset by peer]
<rue|w> Showing X in Y…, Having X (shown) in Y…, yes
yats has joined #ruby-lang
Jay_Levitt has quit [Quit: Jay_Levitt]
kingCrawlerx has joined #ruby-lang
Axsuul has quit [Ping timeout: 264 seconds]
<bnagy> start with 'it would be handy' and it's a lot easier
<kingCrawlerx> any ruby developers not using Rails?
sailias has quit [Quit: Leaving.]
qwerxy has joined #ruby-lang
<rolfb> kingCrawlerx: weird question?
<kingCrawlerx> i was just curious
<rolfb> kingCrawlerx: about what exactly?
stardiviner has joined #ruby-lang
<kingCrawlerx> what other ruby frameworks are gaining popularity
setmeaway2 has quit [Quit: Leaving]
<kingCrawlerx> I'm familiar with rails and macruby
<rolfb> that's a better questions
<rolfb> question*
<rolfb> :)
<kingCrawlerx> i was leading into it lol
<rolfb> kingCrawlerx: padrino, sinatra and raptor
<zzak> good morning!
<kingCrawlerx> ahh sinatra right
totallymike has joined #ruby-lang
<kingCrawlerx> it says on the padrino site that Sinatra is a DSL
<kingCrawlerx> what does DSL stand for?
<kingCrawlerx> in this context
kobac has joined #ruby-lang
heftig has quit [Quit: leaving]
<rolfb> kingCrawlerx: domain specific language
<lianj> for routing
<rue|w> Sinatra/Padrino, webmachine-ruby
<kingCrawlerx> thanks
<rue|w> Webmachine is pretty effing awesome
kain has quit [Ping timeout: 244 seconds]
m3nd3s has quit []
m3nd3s has joined #ruby-lang
heftig has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
bougyman has quit [Remote host closed the connection]
deryl has quit [Quit: deryl]
bougyman has joined #ruby-lang
bougyman has quit [Changing host]
bougyman has joined #ruby-lang
m3nd3s has quit [Read error: Connection timed out]
jbsan_ has joined #ruby-lang
jbsan has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby-lang
m3nd3s has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
dous has joined #ruby-lang
mistym has quit [Remote host closed the connection]
jbsan_ has quit [Ping timeout: 244 seconds]
acyed has quit [Remote host closed the connection]
cantonic has quit [Quit: cantonic]
scampbell has joined #ruby-lang
jbsan has joined #ruby-lang
thorncp has quit [Ping timeout: 272 seconds]
relix has joined #ruby-lang
<relix> hey guys, I have troubles using the rmagick gem (what else, amirite?)
CarlB_th_ has joined #ruby-lang
agile has joined #ruby-lang
<relix> locally it works fine (mac os x), I've got a RoR project that runs locally, but when deployed it goes all wrong
thorncp has joined #ruby-lang
<relix> on the server: imagemagick is installed as well as the libdev, I can run 'convert', I installed the gem rmagick succesfully, but hwen I try to 'require "rmagick"' it says path not found
qwerxy has quit [Quit: offski]
llaskin has joined #ruby-lang
qwerxy has joined #ruby-lang
<llaskin> "http://www.url.com:/folder".gsub(/.*:.*(:)/, ':8080') #I want to replace the 2nd ":" with :8080 but I get compile errors...any suggestions?
vlad_starkov has joined #ruby-lang
chimkan_ has joined #ruby-lang
cantonic has joined #ruby-lang
<canton7> (above answered in #ruby)
llaskin has left #ruby-lang [#ruby-lang]
<relix> so the problem was that you need to do require "RMagick" and not require "rmagick"
<relix> and it worked on mac os x because of the case insensitive filesyste, I suppose
Leeky_afk is now known as Leeky
<rue|w> That’s odd, it should have been fixed
Defusal has quit [Read error: Connection reset by peer]
m3nd3s has quit [Read error: Connection timed out]
tbuehlmann has quit [Remote host closed the connection]
Madis has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
m3nd3s has joined #ruby-lang
kobac has quit [Remote host closed the connection]
sailias has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
verbad has joined #ruby-lang
cantonic has quit [Quit: cantonic]
lolmaus has quit []
alexkane has quit [Quit: alexkane]
Madis has joined #ruby-lang
gsav has joined #ruby-lang
chimkan_ has quit [Quit: chimkan_]
bryancp has joined #ruby-lang
relix has quit []
fgomez has quit [Quit: Lost terminal]
m3nd3s has quit [Read error: Connection timed out]
rue|w has quit [Remote host closed the connection]
verbad has quit []
<andrewvos> I have a list of postcodes in the UK. I want to make something with them. I have them in in a DB and can easily search using latitude/longitude... At first I wanted to do an autocomplete textbox for postcodes, or a "find my postcode" button. I realised that these are kind of useless because everyone in England knows their postcode.
<andrewvos> Anyone got any interesting ideas?
s1n4 has quit [Quit: leaving]
<mfn> I'd ask on openstreetmaps probably :)
lele|w has joined #ruby-lang
m3nd3s has joined #ruby-lang
<andrewvos> I asked here because this place normally has weird ideas :)
<zzak> andrewvos: werent you asking about that before?
<mfn> hehe =)
<andrewvos> zzak: I was.. but I got sidetracked for a week or so.
<canton7> personally I use the post office postcode finder a lot, to find other people's postcodes
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
<andrewvos> canton7: So, you type in an address and get a postcode?
<canton7> actually that's the royal mail one, but there's a post office one too that's very similar
<andrewvos> Yeah I think I've seen that one in my travels.
dhruvasagar has quit [Ping timeout: 264 seconds]
cantonic has joined #ruby-lang
gsav_ has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
jordan` has quit [Ping timeout: 246 seconds]
chimkan_ has joined #ruby-lang
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
Defusal has joined #ruby-lang
Jay_Levitt has quit [Remote host closed the connection]
Jay_Levitt has joined #ruby-lang
jxie has joined #ruby-lang
itcharlie has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
m3nd3s has quit [Read error: Connection timed out]
m3nd3s has joined #ruby-lang
m3nd3s has quit [Read error: Connection reset by peer]
m3nd3s has joined #ruby-lang
wmoxam has joined #ruby-lang
tonni has quit [Remote host closed the connection]
itcharlie has quit [Ping timeout: 246 seconds]
kingCrawlerx has quit [Quit: [kingCrawlerx release]]
abrausch has quit [Quit: abrausch]
enroxorz-work has joined #ruby-lang
enroxorz-work is now known as Guest34300
Guest34300 has quit [Client Quit]
fgomez has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
Criztian has quit [Ping timeout: 248 seconds]
deryl has joined #ruby-lang
Criztian has joined #ruby-lang
kitallis has quit [Quit: Computer has gone to sleep.]
_malte_ has quit [Remote host closed the connection]
rippa has joined #ruby-lang
itcharlie has joined #ruby-lang
|Vargas| has quit [Quit: ...]
Jay_Levitt has quit [Quit: Jay_Levitt]
Jay_Levitt has joined #ruby-lang
Theueip has quit [Quit: Leaving...]
sepp2k has quit [Quit: Leaving.]
nXqd has quit [Ping timeout: 255 seconds]
Rich_Morin has left #ruby-lang [#ruby-lang]
itcharlie has left #ruby-lang [#ruby-lang]
alvaro_o has joined #ruby-lang
macmartine has joined #ruby-lang
t4nkd has joined #ruby-lang
rue|w has joined #ruby-lang
alvaro_o_ has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
nXqd has joined #ruby-lang
alexkane has joined #ruby-lang
rue|w has quit [Ping timeout: 260 seconds]
alvaro_o has quit [Ping timeout: 260 seconds]
gnufied has quit [Quit: Leaving.]
burgestrand has joined #ruby-lang
wpaulson has joined #ruby-lang
shevy has left #ruby-lang [#ruby-lang]
CarlB_the_great has joined #ruby-lang
wpaulson has quit [Client Quit]
CarlB_th_ has quit [Ping timeout: 246 seconds]
_malte has joined #ruby-lang
nXqd has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby-lang
enebo has joined #ruby-lang
areil has quit [Remote host closed the connection]
runeb has quit [Remote host closed the connection]
yxhvuud has joined #ruby-lang
m3nd3s has joined #ruby-lang
yxhuvud has quit [Ping timeout: 252 seconds]
JohnBat26 has quit [Remote host closed the connection]
zmack has quit [Remote host closed the connection]
gnufied has joined #ruby-lang
gnufied has quit [Client Quit]
gnufied has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
solars has quit [Ping timeout: 252 seconds]
wmoxam has quit [Quit: leaving]
wmoxam has joined #ruby-lang
t4nkd has left #ruby-lang ["Linkinus - http://linkinus.com"]
carloslopes has quit [Ping timeout: 268 seconds]
tbuehlmann has joined #ruby-lang
sepp2k has joined #ruby-lang
hollymann has joined #ruby-lang
Leeky is now known as Leeky_afk
<masterkorp> I have a json file that i generated by the following get request http://10.0.0.72/render/?target=stats.syllabus.production.json_publisher.listen&from=-5min&format=json
ivanoats has joined #ruby-lang
<masterkorp> what do you recomend as a simple way to read it
<manveru> JSON.parse
<masterkorp> manveru: oh, can it process the get ?
nXqd has joined #ruby-lang
<manveru> actually might need open().read
s1n4 has joined #ruby-lang
<masterkorp> open from the IO lib?
<manveru> open-uri
diegoviola has joined #ruby-lang
<manveru> it extends the Kernel#open
robbyoconnor has quit [Ping timeout: 268 seconds]
outoftime has joined #ruby-lang
hollymann_ has joined #ruby-lang
<masterkorp> manveru: that's so clean :D
<masterkorp> swwet
hollymann has quit [Ping timeout: 252 seconds]
hollymann_ is now known as hollymann
<darix> .oO( and now we add error handling )o
<manveru> :)
<manveru> yeah, with proper error handling it's gonna be 15 lines and four ifs...
<masterkorp> who cares about that :p
crudson has left #ruby-lang [#ruby-lang]
<manveru> i know you don't :P
<matti> Hi hi manveru
<masterkorp> this is a nagios test
zmack has joined #ruby-lang
<masterkorp> so will just throw unkown status if does not work
<masterkorp> and warning is generated
<manveru> cool
<darix> is there a ruby lib to output proper nagios format?
<darix> I know there is a python lib
<matti> darix: Probably more than one.
<matti> darix: But Nagios configuration files are easy to write as ERBs.
<darix> not configs
<matti> darix: NRPE has simple format as well -- including performance data.
<darix> writing the proper output format for performance data
<manveru> darix: i thought it's just a line with stuff?
<matti> manveru: It is.
<matti> I wrote tons of these.
<manveru> well, it was last time i wrote some
<matti> I hate fucking Nagios ;]
<manveru> used icinga :)
<matti> Same shit ;p
<manveru> better than other shit though
<darix> just having the checkboxes + the action drop down in the problem view is gold :)
<darix> if you need to rerun all checks after someone pulled the wrong network cable
gnufied has quit [Quit: Leaving.]
gnufied has joined #ruby-lang
_malte_ has joined #ruby-lang
savage- has joined #ruby-lang
<matti> manveru: Point-in-time monitoring is the future :)
<bougyman> matti: seen sensu?
<bougyman> darix: i'm sure sensu must have that code in it, it allows using nagios plugins for output
_malte has quit [Ping timeout: 276 seconds]
<matti> bougyman: I did seen, but not in action.
<matti> bougyman: I did build something custom once.
<matti> bougyman: Agents + AMQ.
<bougyman> this is rabbitmq backed.
<matti> bougyman: And custom scheduler with Rundeck integration.
<bougyman> ah they leverage pagerduty for that now.
<matti> Hehe
<matti> OK :)
<matti> Same idea, different execution.
<bougyman> i think it's pretty pluggable, just got into devving on it with the new job
<matti> But I do agree with Sensu model too.
<matti> Lucky you.
<matti> ;/
<matti> My job sucks.
<bougyman> my job is wonderful
<matti> ;]
sepp2k has quit [Ping timeout: 246 seconds]
burgestrand has quit [Quit: Leaving.]
butchanton has joined #ruby-lang
cdt has quit [Quit: Ex-Chat]
alex_kira has quit [Remote host closed the connection]
QaDeS has quit [Ping timeout: 246 seconds]
chimkan_ has quit [Quit: chimkan_]
_malte_ has quit [Remote host closed the connection]
gnufied has quit [Read error: Connection reset by peer]
chimkan_ has joined #ruby-lang
alex_kira has joined #ruby-lang
alex_kira has quit [Remote host closed the connection]
sepp2k has joined #ruby-lang
zmack has quit [Remote host closed the connection]
xyz has quit [Remote host closed the connection]
Fullmoon has joined #ruby-lang
th3hunt has left #ruby-lang [#ruby-lang]
qwerxy has quit [Quit: offski]
alex_kira has joined #ruby-lang
alex_kir_ has joined #ruby-lang
<andrewvos> I have the best job.
<andrewvos> I'm unemployed.
alex_kira has quit [Ping timeout: 248 seconds]
<matti> andrewvos: I may join your company soon ;-)
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
carloslopes has joined #ruby-lang
yxhvuud has quit [Ping timeout: 246 seconds]
hollymann_ has joined #ruby-lang
headius has joined #ruby-lang
hollymann has quit [Ping timeout: 264 seconds]
hollymann_ is now known as hollymann
mistym is now known as mistym_coffee
mojo_pojo has joined #ruby-lang
rararadar has quit [Remote host closed the connection]
havenn has joined #ruby-lang
s1n4 has left #ruby-lang ["leaving"]
artOfWar_ has joined #ruby-lang
yxhuvud has joined #ruby-lang
Austin__ has joined #ruby-lang
havenn has quit [Remote host closed the connection]
artOfWar_ has quit [Remote host closed the connection]
artOfWar_ has joined #ruby-lang
artOfWar_ has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
qwerxy has joined #ruby-lang
tenderlove has joined #ruby-lang
Asher has joined #ruby-lang
Jay_Levitt has quit [Ping timeout: 272 seconds]
yats has quit [Ping timeout: 246 seconds]
Jay_Levitt has joined #ruby-lang
alex_kir_ has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
erikwb has left #ruby-lang [#ruby-lang]
alex_kira has joined #ruby-lang
mrsolo has joined #ruby-lang
rue|w has joined #ruby-lang
rwilcox has joined #ruby-lang
gregmoreno has quit [Read error: Connection reset by peer]
pygwing has joined #ruby-lang
gregmoreno has joined #ruby-lang
qpingu has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
spinagon has joined #ruby-lang
mistym_coffee is now known as mistym
mylordangus has joined #ruby-lang
rippa has quit [Ping timeout: 272 seconds]
mylordangus has quit [Remote host closed the connection]
chendo_ has quit [Ping timeout: 244 seconds]
havenn has joined #ruby-lang
chendo_ has joined #ruby-lang
alvaro_o__ has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 240 seconds]
alvaro_o has joined #ruby-lang
artOfWar_ has joined #ruby-lang
alvaro_o_ has quit [Ping timeout: 246 seconds]
musl has quit [Remote host closed the connection]
alvaro_o__ has quit [Ping timeout: 268 seconds]
musl has joined #ruby-lang
Nisstyre_ has quit [Quit: Leaving]
artOfWar_ has quit [Ping timeout: 252 seconds]
Nisstyre has joined #ruby-lang
Nisstyre is now known as Nisstyre_
cjs226 has joined #ruby-lang
benanne has joined #ruby-lang
SubSpawn has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
bryancp has quit [Remote host closed the connection]
yxhuvud has quit [Ping timeout: 244 seconds]
rue|w has quit [Remote host closed the connection]
pygwing has quit [Quit: WeeChat 0.3.5]
CarlB_the_great has quit [Remote host closed the connection]
headius has quit [Quit: headius]
CarlB_the_great has joined #ruby-lang
postmodern has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
havenn has joined #ruby-lang
musl has quit [Quit: WeeChat 0.3.9-rc1]
musl has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
Theueip has joined #ruby-lang
bryancp has joined #ruby-lang
rue has quit [Remote host closed the connection]
rue|w has joined #ruby-lang
rue has joined #ruby-lang
alex_kira has quit [Remote host closed the connection]
alex_kira has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
bryancp has joined #ruby-lang
tenderlove has joined #ruby-lang
Skif has joined #ruby-lang
tonni has joined #ruby-lang
Axsuul has joined #ruby-lang
havenn has joined #ruby-lang
lcdhoffman has joined #ruby-lang
pygwing has joined #ruby-lang
deryl has quit [Quit: deryl]
kain_ has joined #ruby-lang
kain_ is now known as kain
Fullmoon has quit [Read error: Connection reset by peer]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
deryl has joined #ruby-lang
Fullmoon has joined #ruby-lang
snorkdude has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
<snorkdude> Is anyone here able to easily tranlate C,Go,Java,JS,PHP, or PY to Ruby? I need a short file converted, only about 50 lines
<yorickpeterse> ...You might want to mention *what* language the input file is in
<yorickpeterse> Instead of just naming all the commonly used ones
<eam> clearly 4 lines of each language
<snorkdude> I can give you a file in any of those languages
<eam> if you are fluent in those languages it should be easy to write it in ruby
<snorkdude> I am not. I tried translating the JS file, but I am running into lots of syntax errors.
havenn has joined #ruby-lang
<yorickpeterse> You do know Ruby, right?
<snorkdude> Yes.
<yorickpeterse> And one of these input languages?
<snorkdude> Not really.
<snorkdude> I'm self taught - I understand the languages but I'm having trouble translating.
<whitequark> just post the file content already
<snorkdude> Here it is in JS
eroc has joined #ruby-lang
ylluminate has quit [Read error: Connection reset by peer]
<mfn> I knew it sounded like doing someones homework
<eroc> I was just on ruby-docs.org and saw this line of code: "if File.basename(path)[0] == ..". What does the double-period equal? The semantics of the line is that we are checking to see if the path starts with a single period.
<eroc> Better put, syntactically, what is the double period?
Theueip has quit [Quit: Leaving...]
<yorickpeterse> eroc: just an example
ylluminate has joined #ruby-lang
<snorkdude> mfn, I'm trying to solve the self-avoiding walk problem. Not for homework.
<yorickpeterse> Perl has this concept of the "yadya" operator (or w/e it was called) and it's commonly used, also outside of Perl, for examples
<yorickpeterse> snorkdude: that JS is fairly trivial to translate, most of the syntax features exist in Ruby as well
<yorickpeterse> but instead of `var grid = { ... }` it would be an actual class
<mfn> snorkdude: still. instead you could ask about specific errors in the syntax you made instead starting off with asking others to do work for you
headius has joined #ruby-lang
<eroc> yorickpeterse: Based on the context, I don't think it is an example. Here it is in context: http://www.ruby-doc.org/stdlib-1.9.3/libdoc/find/rdoc/Find.html
<yorickpeterse> eroc: I think that's meant to be quoted
<yorickpeterse> but it seems that's not the case
<eroc> Ah, you think typo in the example
<mfn> eroc: yeah, an error in the docs. I'd look it up in the original sources and report it
<yorickpeterse> ha! it's already in the comments
pygwing has quit [Quit: WeeChat 0.3.5]
<snorkdude> yorickpeterse, https://gist.github.com/3626088
<yorickpeterse> snorkdude: please don't define global methods
<eroc> Sure is! Man, I've got to work on my scrolling skills. :)
<yorickpeterse> wrap it in a class or module
<yorickpeterse> Also, fix your indentation
<zzak> eroc: you can file a bug at bugs.ruby-lang.org
<snorkdude> yorickpeterse, I am a bit of a coding noob -> 17 years old. My indentation looks good in TM, but it got a bit jacked up in the Gist.
<yorickpeterse> Also, you don't need to prefix everything with `self`
<yorickpeterse> And don't use your age as an excuse
<snorkdude> lol
<yorickpeterse> (I'm an asshole, if I see bad code I'll blast people for it)
<eroc> yorickpeterse: Will do
<snorkdude> I'm trying to justify my inexperience
<yorickpeterse> snorkdude: gimme a quick sec to clean it up a bit
<yorickpeterse> eroc: that wasn't re: you
<eroc> yorickpeterse: I was referring to filing a bug
<yorickpeterse> Oh right
<yorickpeterse> I missed that
<yorickpeterse> Yeah, that sounds like a good idea
<eroc> But feel free to blast my code any time. Love constructive criticism.
sandbags has joined #ruby-lang
<yorickpeterse> haha
sandbags has quit [Changing host]
sandbags has joined #ruby-lang
spinagon has quit [Ping timeout: 244 seconds]
<snorkdude> yorickpeterse, Yeah my code is clean in TextMate but I think some formatting was changed when I put it into a Gist. I should have checked it real quick before submitting.
<andrewvos> matti: Congratulations!
<yorickpeterse> snorkdude: Turn off tabs for Ruby and use 2 spaces per indentation level, that should prevent it from going postal
rwilcox has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<mfn> oh my I hate JS ... Array.sort really sorts the array in-place :/
<yorickpeterse> snorkdude: http://pastebin.com/raw.php?i=a4T6wjHy
<yorickpeterse> mfn: it's not supposed to
<mfn> yorickpeterse: well ...
<mfn> IMO it does so; clearly. Run this in firebug: a = [6,2,3,5,1,7]; a.sort(); console.log(a);
rue|w has joined #ruby-lang
<yorickpeterse> JS sorting requires a callback function to work properly for non string values
<yorickpeterse> hold on, lemme slap a JS fiddle together
<mfn> yorickpeterse: shouldn't matter what JS does with the array itself; could be object containing custom properties ..
<eroc> Not sure if this is off topic or not, but what's the difference between the #ruby and #ruby-lang rooms?
<snorkdude> yorickpeterse, That helps a lot. Thanks!
havenn has quit [Remote host closed the connection]
<yorickpeterse> eroc: one is semi offical, the other one isn't
<yorickpeterse> This one being the semi official one
havenn has joined #ruby-lang
<eroc> #ruby-lang is semi-official?
<mfn> it's official as official as it gets; it listed at http://www.ruby-lang.org/en/community/ at least
<eroc> Also, is there a different audience in the two rooms or is it all overlap?
<yorickpeterse> mfn: what the hell, seems you're right
<yorickpeterse> TIL
s0ber has quit [Read error: Connection reset by peer]
<rue|w> yorickpeterse: This is what I keep telling you
<mfn> nice. I like the night-blue variant; all my terminals have a dark blue background
<andrewvos> Yeah me too.
s0ber has joined #ruby-lang
<rue|w> Meh, maybe the dark
<rue|w> I quite like solarized
gsav_ has quit [Quit: Lost terminal]
<mfn> Unfortunately terminals usually don't have 256 colors .. I really wish the terminal protocol would allow more colors and such stuff
<rue|w> But options is good
<yorickpeterse> rue|w: what?
<yorickpeterse> The JS stuff?
<yorickpeterse> mfn: they do on Linux :)
musl has quit [Quit: WeeChat 0.3.9-rc1]
<mfn> yorickpeterse: yeah, no; I mean when handling remote stuff, no? When I login remote via SSH and start using terminal vim there, I won't enjoy 256 colors, would I?
<yorickpeterse> mfn: yes you would
kvirani has joined #ruby-lang
<yorickpeterse> It's just ANSI, doesn't matter how it's transported
<mfn> yorickpeterse: doh ... ok; need to check on that :)
voker57 has joined #ruby-lang
<yorickpeterse> But make sure that Vim itself is configured properly
<yorickpeterse> if I recall you'd have to run `set t_Co=256` for it to even use 256 colors
<mfn> O_O
havenn has quit [Remote host closed the connection]
towski has joined #ruby-lang
<zzak> mfn: which terminal are you using?
* mfn doesn't want to tell ..
snorkdude has quit [Remote host closed the connection]
<mfn> putty. which implies windows. which makes me an outlaw now, doesn't it? :p
<mfn> but hell no, I don't developer under windows; it's just the machine I'm sitting in front of
snorkdude has joined #ruby-lang
<zzak> putty can do 256
<rue|w> Hm. /ignore mfn
<rue|w> Have to have SOME standards…
* rue|w runs
<rue|w> zzak: Little-known fact, it can actually do 258
havenn has joined #ruby-lang
<yorickpeterse> ugh, Putty
<yorickpeterse> copy-pasting shit into that mess is...a mess
<rue|w> Octarine and negaoctarine
<zzak> better off with just a cli on a vm
sailias has quit [Quit: Leaving.]
<zzak> if you're going to main windows
<yorickpeterse> We had a new guy use Windows
<yorickpeterse> Then a VM
<yorickpeterse> Then I realized he was using root all the time
<yorickpeterse> "Yeah but `sudo su root` is just easier"
<mfn> jesus
<eam> why would you not sudo -s
<lianj> questions over questions
<eam> honestly, sudo is braindamaged. There's nothing wrong with using a root shell directly
<yorickpeterse> ...
alex_kir_ has joined #ruby-lang
<yorickpeterse> I mean the guy was running trivial shit as root, all the time
<yorickpeterse> so he'd start, `sudo su root` and then continue happily
<zzak> gonna go shoot badguys till dinner
* zzak hugs a rue
<eam> I don't use sudo (or any suid binaries) on many of my systems
stardiviner has joined #ruby-lang
<mfn> that 256 color stuff doesn't work right, but thanks for the info; need to investigate, looks really nice
alex_kira has quit [Ping timeout: 272 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
havenn has quit [Remote host closed the connection]
brianpWins has joined #ruby-lang
tubbo has joined #ruby-lang
cjs226 has quit []
bryancp has quit [Remote host closed the connection]
fromhet has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
krz has joined #ruby-lang
Austin__ has quit [Quit: Leaving.]
sandbags has quit [Remote host closed the connection]
nXqd has quit [Ping timeout: 244 seconds]
snorkdude has quit [Remote host closed the connection]
musl has joined #ruby-lang
Criztian has joined #ruby-lang
musl has quit [Client Quit]
musl has joined #ruby-lang
musl has quit [Client Quit]
<rue|w> Godsbedamned, why can I not get this bolding off in Limechat
havenn has joined #ruby-lang
lcdhoffman has joined #ruby-lang
<rue|w> To make things worse, it’s normal-weight on the other computer…
toretore has quit [Quit: Leaving]
musl has joined #ruby-lang
Hakon has joined #ruby-lang
qwerxy has quit [Quit: offski]
vlad_starkov has quit [Remote host closed the connection]
bryancp has joined #ruby-lang
vlad_starkov has joined #ruby-lang
musl has quit [Client Quit]
tenderlove has quit [Remote host closed the connection]
fromhet has quit [Quit: fromhet]
vlad_starkov has quit [Ping timeout: 246 seconds]
kvirani has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
gsav has quit [Quit: leaving]
gsav has joined #ruby-lang
jackhammer2022 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
havenn has quit [Remote host closed the connection]
m3nd3s has quit [Remote host closed the connection]
carloslopes has quit [Quit: Leaving.]
<andrewvos> diff?
rue|w has quit [Remote host closed the connection]
rue|w has joined #ruby-lang
scampbell has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
snorkdude has joined #ruby-lang
havenn has joined #ruby-lang
snorkdude has quit [Remote host closed the connection]
CarlB_the_great has quit [Remote host closed the connection]
nibbo has quit [Ping timeout: 252 seconds]
musl has joined #ruby-lang
nibbo has joined #ruby-lang
musl has quit [Client Quit]
tenderlove has joined #ruby-lang
Madis has quit [Quit: ChatZilla 0.9.88.2 [Firefox 11.0/20120313180949]]
robbyoconnor has joined #ruby-lang
rue|w has quit [Remote host closed the connection]
musl has joined #ruby-lang
gsav has quit [Ping timeout: 252 seconds]
musl has quit [Client Quit]
musl has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
musl has quit [Client Quit]
musl has joined #ruby-lang
musl has quit [Client Quit]
musl has joined #ruby-lang
stepnem has quit [Ping timeout: 252 seconds]
musl has quit [Client Quit]
musl has joined #ruby-lang
<rue> Builtin
<rue> Or, I’m sure it’s somewhere, I’m just too tired to look
<rue> Nite
bryancp has quit [Remote host closed the connection]
cjs226 has joined #ruby-lang
deryl has quit [Read error: Connection reset by peer]
deryl has joined #ruby-lang
wmoxam has quit [Quit: leaving]
havenn has quit [Remote host closed the connection]
Nisstyre_ has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
s0ber has quit [Read error: Connection reset by peer]
s0ber has joined #ruby-lang
cjs226 has quit []
bryancp has joined #ruby-lang
havenn has quit [Remote host closed the connection]
billyoc` has joined #ruby-lang
Nisstyre_ has joined #ruby-lang
billyoc` has quit [Remote host closed the connection]
workmad3 has quit [Read error: Operation timed out]
billyoc has quit [Ping timeout: 252 seconds]
voker57 has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
mistym_ has joined #ruby-lang
chimkan__ has joined #ruby-lang
nXqd has joined #ruby-lang
chimkan_ has quit [Ping timeout: 246 seconds]
chimkan__ has quit [Ping timeout: 260 seconds]
headius has quit [Quit: headius]
nXqd has quit [Ping timeout: 260 seconds]
rue|w has joined #ruby-lang
havenn has quit [Remote host closed the connection]
icooba has quit [Ping timeout: 248 seconds]
cantonic has quit [Quit: cantonic]
icooba has joined #ruby-lang
crackity_jones has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
bryancp has joined #ruby-lang
rue|w has quit [Ping timeout: 245 seconds]
bryancp has quit [Remote host closed the connection]
m3nd3s_ has joined #ruby-lang
cantonic has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 268 seconds]
benanne has quit [Quit: kbai]
butchanton has quit [Quit: Leaving.]
Criztian has quit [Remote host closed the connection]
dfr|mac has joined #ruby-lang
mojo_pojo has left #ruby-lang [#ruby-lang]
hollymann has quit [Ping timeout: 255 seconds]
havenn has joined #ruby-lang
schroedinbug has quit [Quit: WeeChat 0.3.8]
robbyoconnor has quit [Ping timeout: 245 seconds]
cantonic has quit [Quit: cantonic]
dfr|mac_ has joined #ruby-lang
dfr|mac has quit [Read error: Connection reset by peer]
havenn has quit [Remote host closed the connection]