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
<uzsidoboz> got it :)
<uzsidoboz> i didn't know that trick
<uzsidoboz> thanks
<steveklabnik> :)
<steveklabnik> it's 1.9 only
<zenspider> I think ::Base and -core should be excised from our vocabulary
<steveklabnik> iirc
<steveklabnik> zenspider: +1
<steveklabnik> draper will kill ::Base as of 1.0
<steveklabnik> which will happen soonish
<uzsidoboz> the activemodel is the felon...
<zenspider> and rspec for -core... at least that was the first place I saw it
<zenspider> man.. running ruby tests is SLOOOOOW... even on this zippy new laptop
macmartine has joined #ruby-lang
benanne has quit [Quit: kbai]
<banisterfiend> zenspider: im guessing u ahve one of those new retina screen MBPs ? :)
<JoelMcCracken> I haven't paid much attention in a while, but what is the status of all that macros-in-ruby stuff?
<zenspider> no. I prefer 13s
<JoelMcCracken> obv. rewrite ruby was just released, but but there is a whole semi-out-of-date ecosystem
<banisterfiend> JoelMcCracken: can u link to rewrite ruby? never heard of it..
<zenspider> I've never heard of it either :)
<zenspider> and afaik, rubymacros never really worked
banisterfiend has quit [Read error: Connection reset by peer]
<zenspider> I didn't have much luck getting redparse or rubylexer to do much of anything... and they were so messy I couldn't submit patches
<JoelMcCracken> sorry, not rewrite ruby. ruby_parser
<zenspider> haha
<zenspider> well... I heard that's a peice of shit
<JoelMcCracken> I was looking at rewrite ruby tho, http://rewrite.rubyforge.org/
dvorak has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
<steveklabnik> as well
<JoelMcCracken> yeah
<JoelMcCracken> they aren't good
<zenspider> I was referring to ruby_parser, for the record
<JoelMcCracken> oh
<JoelMcCracken> =)
<JoelMcCracken> well, anyway, they're old/out of date
<JoelMcCracken> so, "nothing"?
dous has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
JoshWines has joined #ruby-lang
<zenspider> well... as I pointed out above, ruby_parser 3.0.0.a6 was just released
<JoelMcCracken> mm
titaniumNoob has joined #ruby-lang
<JoelMcCracken> ruby parser is text-only parsing, tho, yes?
<zenspider> yup
<JoelMcCracken> good job tho =D
<zenspider> eh... not yet. it's getting there tho.
<zenspider> I'm finding the pain points now
<JoelMcCracken> what are you using it for?
<zenspider> flog, flay, other tools ppl write
t51823 has quit [Remote host closed the connection]
t85131 has joined #ruby-lang
<JoelMcCracken> well, either way, cool project
<uzsidoboz> steveklabnik: i've found it :) thanks again..
<uzsidoboz> and thanks to everyone who helped :)
woollyams has quit [Quit: Computer has gone to sleep.]
itsmeduncan has quit [Quit: itsmeduncan]
<steveklabnik> awesome :D
<uzsidoboz> activemodel creates those automatically
seanstickle has joined #ruby-lang
<uzsidoboz> the problem was i forgot to add the username column before the migration.. :$
kingCrawlerx has joined #ruby-lang
<steveklabnik> ahhh
<uzsidoboz> that source_location thingy will spare me hours next time.. so it did worth it :)
<steveklabnik> i thought that might be true
<steveklabnik> but i wasn't sure
<uzsidoboz> is there any chance for the String class will cooperate with locales in the future?
abletony84 has quit [Quit: leaving]
<uzsidoboz> the upcase and downcase hurt
neocoin has quit [Remote host closed the connection]
<drbrain> uzsidoboz: yes… there's a chance someone will write a patch, and a chance it will be accepted
<uzsidoboz> ouch
<uzsidoboz> so the odds aren't good :)
reactormonk has quit [Ping timeout: 276 seconds]
<uzsidoboz> i would ... but i'm not good enough for it in c
dvorak has joined #ruby-lang
<drbrain> uzsidoboz: I'm not very good at C either, but I am a committer
<zenspider> TestIssuezillaParsing#test_rexml = 73.91 s = .
<zenspider> argh
<uzsidoboz> drbrain: :)
wpaulson has joined #ruby-lang
wpaulson_ has joined #ruby-lang
wpaulson has quit [Read error: No route to host]
wpaulson_ is now known as wpaulson
reactormonk has joined #ruby-lang
<kingCrawlerx> downcase?
<uzsidoboz> ?
<zenspider> downcase!
robbyoconnor has quit [Ping timeout: 256 seconds]
kingCrawlerx has quit [Quit: Computer has gone to sleep]
jezebel has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
robbyoconnor has joined #ruby-lang
gmci has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby-lang
Sambalero has joined #ruby-lang
willdrew_ has quit [Remote host closed the connection]
tenderlo_ has quit [Ping timeout: 265 seconds]
gsav has quit [Ping timeout: 260 seconds]
jezebel has quit [Ping timeout: 244 seconds]
Leeky is now known as Leeky_afk
RegEchse has quit [Quit: good night]
gsav has joined #ruby-lang
t85131 has quit [Remote host closed the connection]
t94049 has joined #ruby-lang
gsav has quit [Client Quit]
JoshWines has quit [Ping timeout: 276 seconds]
m3nd3s has joined #ruby-lang
m3nd3s_ has quit [Ping timeout: 244 seconds]
areil has quit [Remote host closed the connection]
gsav has joined #ruby-lang
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
mwjcomputing has joined #ruby-lang
JoshWines has joined #ruby-lang
JoelMcCracken has quit [Ping timeout: 276 seconds]
titaniumNoob has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
<uzsidoboz> bye
uzsidoboz has quit [Quit: Távozom]
andrewhl has joined #ruby-lang
dous has quit [Remote host closed the connection]
JoelMcCr` has joined #ruby-lang
gsav has quit [Quit: Lost terminal]
willdrew has joined #ruby-lang
savage-_ has joined #ruby-lang
savage- has quit [Ping timeout: 246 seconds]
andrewhl has quit [Remote host closed the connection]
gsav has joined #ruby-lang
<banisterfiend> anyone else think "coderwall" is just a lot of nothing?
cdt has joined #ruby-lang
cdt has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
<drbrain> banisterfiend: pretty much
<drbrain> it's like klout
banisterfiend has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
Weems has quit [Ping timeout: 265 seconds]
codewrangler has joined #ruby-lang
JoelMcCracken has joined #ruby-lang
gmci has quit [Quit: Computer has gone to sleep.]
banisterfiend has quit [Ping timeout: 252 seconds]
JoelMcCr` has quit [Remote host closed the connection]
JoelMcCracken has quit [Remote host closed the connection]
gmci has joined #ruby-lang
itsmeduncan has joined #ruby-lang
Weems has joined #ruby-lang
Weems has joined #ruby-lang
Weems has quit [Changing host]
Tearan has joined #ruby-lang
savage-_ has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
t94049 has quit [Remote host closed the connection]
t64019 has joined #ruby-lang
banisterfiend has joined #ruby-lang
mwjcomputing has quit [Quit: Leaving]
macmartine has joined #ruby-lang
srbartlett has quit [Read error: Connection reset by peer]
srbartlett has joined #ruby-lang
itsmeduncan has quit [Quit: itsmeduncan]
macmartine has quit [Client Quit]
jkprg has quit [Quit: jkprg]
neocoin has joined #ruby-lang
perryh_away is now known as perryh
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
bryancp has quit [Remote host closed the connection]
woollyams has quit [Quit: Computer has gone to sleep.]
m3nd3s has quit [Remote host closed the connection]
dous has joined #ruby-lang
dous has joined #ruby-lang
dous has quit [Changing host]
banisterfiend has quit [Remote host closed the connection]
t64019 has quit [Remote host closed the connection]
achamian has quit [Remote host closed the connection]
t57116 has joined #ruby-lang
chendo_ has quit [Ping timeout: 245 seconds]
krz has quit [Quit: krz]
lsegal has joined #ruby-lang
alvaro_o has quit [Quit: Ex-Chat]
chendo_ has joined #ruby-lang
dous has quit [Ping timeout: 276 seconds]
Sambalero has quit [Remote host closed the connection]
chendo_ has quit [Ping timeout: 245 seconds]
chendo_ has joined #ruby-lang
qpingu has left #ruby-lang [#ruby-lang]
savage- has joined #ruby-lang
codewrangler has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
havenn has joined #ruby-lang
banisterfiend has joined #ruby-lang
seanstickle has quit [Quit: seanstickle]
igotnolegs has joined #ruby-lang
havenn has quit [Remote host closed the connection]
localhost has quit [Quit: Do fish get thirsty?]
woollyams has joined #ruby-lang
quazimodo has joined #ruby-lang
<quazimodo> hey guys :D
savage- has quit [Read error: Connection reset by peer]
savage- has joined #ruby-lang
dhruvasagar has joined #ruby-lang
t57116 has quit [Remote host closed the connection]
t81637 has joined #ruby-lang
yats has joined #ruby-lang
gmci has quit [Quit: Computer has gone to sleep.]
dmwuw_ has joined #ruby-lang
dmwuw has quit [Ping timeout: 244 seconds]
dhruvasagar has quit [Ping timeout: 272 seconds]
dmwuw_ has quit [Ping timeout: 260 seconds]
kaiwren has joined #ruby-lang
reactormonk has quit [Ping timeout: 276 seconds]
t81637 has quit [Remote host closed the connection]
t90212 has joined #ruby-lang
slyphon is now known as slyphon_away
woollyams has quit [Quit: Computer has gone to sleep.]
dmwuw has joined #ruby-lang
gmci has joined #ruby-lang
macmartine has joined #ruby-lang
reactormonk has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
t90212 has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
t2981 has joined #ruby-lang
brianpWins has joined #ruby-lang
charliesome has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
rhizmoe has joined #ruby-lang
<rhizmoe> hi all
banisterfiend has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
<rhizmoe> i'm writing some ruby for which i'd like to also write tests. does a basic test consist only of requiring the ruby files being tested and test/unit?
<countdigi> rhizmoe: i use rspec but i believe u require 'test/unit' and then require 'libfoo' whatever that might be
<rhizmoe> cool, thanks. i'm going off of this: http://en.wikibooks.org/wiki/Ruby_Programming/Unit_testing
kaiwren has quit [Quit: kaiwren]
kaiwren has joined #ruby-lang
kaiwren has quit [Client Quit]
<countdigi> cool .. the only other warning is u have to watch paths if u have your tests in one dir and your libs in another - but i would start w/ it in the same directory til u get swinging
<countdigi> then check out "require_relative" when u break it apart
<rhizmoe> yeah, it's just a coding test and i'm used to rails magic, so just two files: code + tests
yats has quit [Ping timeout: 240 seconds]
yats has joined #ruby-lang
dmwuw has quit [Ping timeout: 276 seconds]
woollyams has quit [Quit: Computer has gone to sleep.]
t2981 has quit [Remote host closed the connection]
t19193 has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
lcdhoffman_ has quit [Quit: lcdhoffman_]
woollyams has joined #ruby-lang
dhruvasagar has joined #ruby-lang
dmwuw has joined #ruby-lang
<rhizmoe> hm, my require isn't finding a file in the same directory
<foucist> your stupid require!!!!
<foucist> rhizmoe: did you try './file'
<TTilus> rhizmoe: afaik 1.9 does not have '.' in load path
<rhizmoe> i did, and it complained that TestCase::CurrentFile::RequiredFile didn't exist
<foucist> TTilus: that's pretty wack
<TTilus> rhizmoe: $: << File.dirname(__FILE__)
<rhizmoe> that seems ugly
reactormonk has quit [Ping timeout: 276 seconds]
<rhizmoe> uninitialized constant TestCdProb::CdProb (NameError)
gsav has joined #ruby-lang
<countdigi> would: require_relative 'file' work?
<rhizmoe> hrm, does it make a difference if the file contains multiple classes? should just be the filename, right?
chessguy has joined #ruby-lang
<rhizmoe> oh, i think i'm on to something with that
kaiwren has joined #ruby-lang
<rhizmoe> and there it goes. thanks for not mocking me!
havenn has joined #ruby-lang
mistym has quit [Remote host closed the connection]
gsav has quit [Read error: Connection reset by peer]
t19193 has quit [Remote host closed the connection]
t80830 has joined #ruby-lang
krz has joined #ruby-lang
kaiwren has quit [Quit: kaiwren]
gsav has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
gmci has quit [Quit: Computer has gone to sleep.]
<rue> Ha-ha
s1n4 has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
<rhizmoe> using 1.9.3 in irb, Date.today returns undefined method?
havenn has quit [Remote host closed the connection]
<countdigi> think u need to require activesupport for that
<bnagy> works for me in mri and jruby?
<countdigi> ah yea
<countdigi> $ irb
<countdigi> 1.9.3p194 :001 > Date.today => #<Date: 2012-08-21 ((2456161j,0s,0n),+0s,2299161j)>
<countdigi> my bad
<rhizmoe> 1.9.3p194 :002 > Date.today
<rhizmoe> NoMethodError: undefined method `today' for Date:Class
<rhizmoe> gr
<postmodern> require 'date'
<rhizmoe> but i wouldn't have to for String or Array or..., right?
<countdigi> yeah i see i have it in my ~/.irbrc
banisterfiend has joined #ruby-lang
<rhizmoe> /exec chairthrow.pl
<postmodern> rhizmoe, good question why, seem like Date is partially loaded at first, and requiring 'date' loads the additional methods
<bnagy> oh wow, I assumed he already had, or it would have been uninitialized constant
<bnagy> that's wack
<rhizmoe> demeter cries
<drbrain> it's RubyGems fault ☹
<rhizmoe> isn't it always?
<postmodern> (tm)
<rhizmoe> :fistshake:
<postmodern> requiring 'date' seems to add all the rfc* methods
<rhizmoe> i'll do it, but i won't like it
* countdigi realizes chef integration tests makes ror int tests look like microseconds :-)
macmartine has quit [Read error: Connection reset by peer]
reactormonk has joined #ruby-lang
gnufied has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
t80830 has quit [Remote host closed the connection]
t89124 has joined #ruby-lang
s1n4 has quit [Quit: Lost terminal]
yxhuvud has joined #ruby-lang
s1n4 has joined #ruby-lang
Rakko has joined #ruby-lang
<Rakko> Hey. Could someone please explain what Oniguruma _capture history_ is? It uses a syntax like (?@foo) or (?@<name>foo).
dhruvasagar has quit [Ping timeout: 248 seconds]
kaiwren has joined #ruby-lang
kaiwren has quit [Client Quit]
|Vargas| has joined #ruby-lang
andrewhl has joined #ruby-lang
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
Rakko has quit [Quit: Bye]
banisterfiend has quit [Read error: Connection reset by peer]
diegoviola has joined #ruby-lang
banisterfiend has joined #ruby-lang
adurity has joined #ruby-lang
t89124 has quit [Remote host closed the connection]
t46457 has joined #ruby-lang
yats has quit [Ping timeout: 245 seconds]
adurity has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
burgestrand has joined #ruby-lang
yats has joined #ruby-lang
willdrew has quit [Remote host closed the connection]
vectorshelve has joined #ruby-lang
shell0x_ has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
tbuehlmann has joined #ruby-lang
brianpWins has joined #ruby-lang
dan|el has joined #ruby-lang
gmci has joined #ruby-lang
t46457 has quit [Remote host closed the connection]
t86992 has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
workmad3 has joined #ruby-lang
mytrile has joined #ruby-lang
jasiek_ has joined #ruby-lang
jasiek has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
shell0x_ has left #ruby-lang [#ruby-lang]
workmad3 has quit [Ping timeout: 240 seconds]
solars has joined #ruby-lang
vesan has quit [Read error: Connection reset by peer]
woollyams has joined #ruby-lang
jaska has quit [Read error: Operation timed out]
jaska has joined #ruby-lang
jbsan_ has joined #ruby-lang
vesan has joined #ruby-lang
kirin` has quit [Ping timeout: 240 seconds]
dreamhawk has quit [Ping timeout: 248 seconds]
dreamhawk has joined #ruby-lang
naquad has quit [Ping timeout: 240 seconds]
jbsan has quit [Ping timeout: 248 seconds]
jbsan_ is now known as jbsan
kirin` has joined #ruby-lang
vectorshelve has left #ruby-lang [#ruby-lang]
tris has quit [Excess Flood]
dc5ala has joined #ruby-lang
naquad has joined #ruby-lang
tris has joined #ruby-lang
vesan has quit [Read error: Connection reset by peer]
LanceHaig has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
vesan has joined #ruby-lang
qwerxy has joined #ruby-lang
igotnolegs has quit [Quit: Computer has gone to sleep.]
apeiros_ has joined #ruby-lang
thone_ has joined #ruby-lang
ipabs has joined #ruby-lang
vesan has quit [Read error: Connection reset by peer]
thone has quit [Ping timeout: 272 seconds]
kaiwren has joined #ruby-lang
Criztian has joined #ruby-lang
woollyams has joined #ruby-lang
savage- has quit [Remote host closed the connection]
Criztian has quit [Remote host closed the connection]
Criztian has joined #ruby-lang
vesan has joined #ruby-lang
<yats> Is there any way to know if an email server or domain is catcha ll
srbartlett has quit [Remote host closed the connection]
<jaska> try resolving *.whatever.tld
ipabs has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<whitequark> yats: no, there isn't
ipabs has joined #ruby-lang
<jaska> oh you meant mail
Criztian has quit [Ping timeout: 268 seconds]
ipabs has quit [Client Quit]
ipabs has joined #ruby-lang
<yats> jaska: yes mail
runeb has joined #ruby-lang
zmack has joined #ruby-lang
ipabs has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
<rhizmoe> no. it could silently drop unknowns and you'd never know.
qwerxy has quit [Quit: offski]
workmad3 has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
dan|el has quit [Ping timeout: 240 seconds]
<whitequark> jaska: that doesn't work for domain either. you would know it if you have bothered to actually try.
t86992 has quit [Remote host closed the connection]
t49382 has joined #ruby-lang
llakey has quit [Quit: leaving]
cout has quit [Ping timeout: 246 seconds]
singpoly1a has quit [Ping timeout: 246 seconds]
singpolyma has joined #ruby-lang
jxie has quit [Ping timeout: 245 seconds]
babinho has quit [Ping timeout: 276 seconds]
jxie has joined #ruby-lang
ruskie has quit [Excess Flood]
cout has joined #ruby-lang
babinho has joined #ruby-lang
llakey has joined #ruby-lang
llakey has quit [Client Quit]
<jaska> whitequark: actually it does work.
lele has quit [Quit: Coyote finally caught me]
<jaska> whitequark: host -a -t any \*.something.com
gmci has quit [Quit: Computer has gone to sleep.]
runeb has quit [Read error: Connection reset by peer]
runeb has joined #ruby-lang
llakey has joined #ruby-lang
lele has joined #ruby-lang
Hakon has joined #ruby-lang
Leeky_afk is now known as Leeky
gmci has joined #ruby-lang
t49382 has quit [Remote host closed the connection]
<whitequark> jaska: strange
<whitequark> it doesn't with dig
t32421 has joined #ruby-lang
<whitequark> ah. actually no.
<whitequark> sorry, I was wrong
ruskie has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
<jaska> (i actually did try it before i suggested it :)
banisterfiend has joined #ruby-lang
qwerxy has joined #ruby-lang
isale-eko has joined #ruby-lang
Leeky is now known as Leeky_afk
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
toretore has joined #ruby-lang
Tearan has quit [Quit: Sleepy Badger....]
vesan has quit [Read error: Connection reset by peer]
chendo_ has quit [Ping timeout: 244 seconds]
vesan has joined #ruby-lang
t32421 has quit [Remote host closed the connection]
t49052 has joined #ruby-lang
chendo_ has joined #ruby-lang
chendo_ has quit [Changing host]
chendo_ has joined #ruby-lang
srbartlett has joined #ruby-lang
Leeky_afk is now known as Leeky
jasiek_ has left #ruby-lang [#ruby-lang]
jasiek has joined #ruby-lang
jasiek is now known as Guest7869
gmci has quit [Quit: Computer has gone to sleep.]
woollyams has joined #ruby-lang
d3vic3 has joined #ruby-lang
dan|el has joined #ruby-lang
isale-eko has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120420145725]]
woollyams has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
d3vic3 has quit [Quit: leaving]
d3vic3 has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
krz has quit [Quit: krz]
t49052 has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
t59080 has joined #ruby-lang
banisterfiend has joined #ruby-lang
<andrewvos> TIL: MINASWAN
runeb has quit [Remote host closed the connection]
woollyams has joined #ruby-lang
reactormonk has quit [Ping timeout: 276 seconds]
itsmeduncan has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
Axsuul has quit [Ping timeout: 244 seconds]
jxie_ has joined #ruby-lang
banisterfiend has joined #ruby-lang
jxie has quit [Ping timeout: 240 seconds]
runeb has joined #ruby-lang
diegoviola has quit [Ping timeout: 240 seconds]
Leeky is now known as Leeky_afk
woollyams has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby-lang
gmci has quit [Quit: Computer has gone to sleep.]
Guest7869 has left #ruby-lang [#ruby-lang]
itsmeduncan has quit [Quit: itsmeduncan]
nathandim has joined #ruby-lang
kaiwren has quit [Quit: kaiwren]
nathandim has quit [Quit: Leaving]
t59080 has quit [Remote host closed the connection]
t58194 has joined #ruby-lang
gmci has joined #ruby-lang
kaiwren has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has joined #ruby-lang
sandbags has quit [Changing host]
justinmcp has joined #ruby-lang
mwjcomputing has joined #ruby-lang
dan|el has quit [Ping timeout: 246 seconds]
mwjcomputing has left #ruby-lang [#ruby-lang]
virunga has joined #ruby-lang
m3nd3s has joined #ruby-lang
dmwuw has quit [Ping timeout: 246 seconds]
dan|el has joined #ruby-lang
pvh has quit [Quit: Connection closed for inactivity]
abuiles has quit [Quit: Connection closed for inactivity]
L0rdShrek has quit [Quit: Connection closed for inactivity]
dmwuw has joined #ruby-lang
diegoviola has joined #ruby-lang
postmodern has quit [Quit: Leaving]
rolfb has joined #ruby-lang
slyphon_away has quit [Ping timeout: 245 seconds]
solars has quit [Ping timeout: 240 seconds]
jxie_ has quit [Quit: leaving]
m3nd3s has quit [Read error: Connection timed out]
s1n4 has quit [Quit: leaving]
m3nd3s has joined #ruby-lang
mahlon has quit [Read error: Connection reset by peer]
Guedes_out is now known as Guedes
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
erichmenge has joined #ruby-lang
ged has quit [Read error: Connection reset by peer]
mahlon has joined #ruby-lang
m3nd3s has quit [Read error: Operation timed out]
erichmenge has quit [Client Quit]
ged has joined #ruby-lang
yats has quit [Ping timeout: 245 seconds]
woollyams has joined #ruby-lang
yats has joined #ruby-lang
s1n4 has joined #ruby-lang
justinmcp has quit [Remote host closed the connection]
m3nd3s has joined #ruby-lang
MrWGW has quit [Ping timeout: 265 seconds]
Hakon has quit [Quit: Leaving...]
solars has joined #ruby-lang
MrWGW has joined #ruby-lang
t58194 has quit [Remote host closed the connection]
t69206 has joined #ruby-lang
laszlokorte_ has quit [Quit: laszlokorte_]
sepp2k has quit [Remote host closed the connection]
Austin__ has joined #ruby-lang
gmci has quit [Quit: Computer has gone to sleep.]
m3nd3s has quit [Read error: Connection timed out]
runeb has quit [Remote host closed the connection]
gmci has joined #ruby-lang
m3nd3s has joined #ruby-lang
itsmeduncan has joined #ruby-lang
MrWGW has quit [Ping timeout: 240 seconds]
Jake232 has joined #ruby-lang
MrWGW has joined #ruby-lang
erichmenge has joined #ruby-lang
mahlon has quit [Read error: Connection reset by peer]
anekos has quit [Ping timeout: 244 seconds]
mahlon_ has joined #ruby-lang
ged_ has joined #ruby-lang
ged has quit [Read error: Connection reset by peer]
anekos has joined #ruby-lang
yats_ has joined #ruby-lang
yats has quit [Read error: Connection reset by peer]
m3nd3s has quit [Read error: Connection timed out]
t69206 has quit [Remote host closed the connection]
t27384 has joined #ruby-lang
g0bl1n has joined #ruby-lang
m3nd3s has joined #ruby-lang
nathandim has joined #ruby-lang
Leeky_afk is now known as Leeky
m3nd3s_ has joined #ruby-lang
<andrewvos> proj4rb alternatives?
kaiwren_ has joined #ruby-lang
reactormonk has joined #ruby-lang
bryancp has joined #ruby-lang
kaiwren has quit [Ping timeout: 252 seconds]
kaiwren_ is now known as kaiwren
vertroa has quit [Read error: Connection reset by peer]
m3nd3s has quit [Ping timeout: 276 seconds]
vertroa has joined #ruby-lang
Leeky is now known as Leeky_afk
<rue> What does that do?
hramrach has quit [Remote host closed the connection]
willdrew has joined #ruby-lang
Guest89690 has quit [Ping timeout: 276 seconds]
lcdhoffman has joined #ruby-lang
hramrach has joined #ruby-lang
willdrew has quit [Remote host closed the connection]
<andrewvos> Projections and shit
t27384 has quit [Remote host closed the connection]
t2874 has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
m3nd3s_ has quit [Read error: Connection timed out]
srbartlett has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
chezduck has joined #ruby-lang
hynkle has joined #ruby-lang
scampbell has joined #ruby-lang
laszlokorte has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
kaiwren has quit [Quit: kaiwren]
MrWGW has quit [Ping timeout: 252 seconds]
MrWGW has joined #ruby-lang
chezduck has left #ruby-lang [#ruby-lang]
Mon_Ouie has quit [Ping timeout: 260 seconds]
Mon_Ouie has joined #ruby-lang
s1n4 has quit [Quit: peace out]
m3nd3s has joined #ruby-lang
hynkle has quit [Ping timeout: 245 seconds]
sockmonk has joined #ruby-lang
m3nd3s_ has joined #ruby-lang
m3nd3s_ has quit [Client Quit]
t2874 has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
t68759 has joined #ruby-lang
m3nd3s_ has joined #ruby-lang
andrewhl has joined #ruby-lang
hynkle has joined #ruby-lang
m3nd3s has quit [Ping timeout: 260 seconds]
<andrewvos> I need to convert eastings and northings to longitude and latitude.
erichmenge has joined #ruby-lang
<andrewvos> Is ConvertsEastingsAndNorthingsToLatitudeAndLongitude a good class name rue?
<andrewvos> s/Converts/Translates
rolfb has quit [Quit: Linkinus - http://linkinus.com]
kaiwren has joined #ruby-lang
<injekt> add Factory to the end
robbyoconnor has quit [Read error: Connection reset by peer]
<injekt> and you're good
zmack_ has joined #ruby-lang
robbyoconnor has joined #ruby-lang
<lianj> please put it in your namespace Com::AndrewvosInc::Convert..
<injekt> i like the syntax highlighting
<andrewvos> It's beautiful. *teary eyes*
<andrewvos> lianj: Seriously though, what would you call it?
zmack has quit [Ping timeout: 276 seconds]
<andrewvos> I like the name I mentioned. Not even trolling.
hynkle has quit [Ping timeout: 265 seconds]
<rue> Sure
dhruvasagar has quit [Ping timeout: 245 seconds]
hynkle has joined #ruby-lang
A124 has joined #ruby-lang
kaiwren has quit [Quit: kaiwren]
erichmenge has quit [Quit: Be back later]
workmad3 has quit [Ping timeout: 245 seconds]
dan|el has quit [Ping timeout: 245 seconds]
t68759 has quit [Remote host closed the connection]
t86843 has joined #ruby-lang
d3vic3 has quit [Ping timeout: 260 seconds]
d3vic3 has joined #ruby-lang
bryancp has quit [Remote host closed the connection]
Leeky_afk is now known as Leeky
kain has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
t86843 has quit [Remote host closed the connection]
t12399 has joined #ruby-lang
cantonic has joined #ruby-lang
kaiwren has joined #ruby-lang
dous has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
<andrewvos> Oh. Nevermind.
<andrewvos> ensure_index only works when I have done MongoMapper.database = "somthing"
|Vargas| has quit [Quit: ...]
Austin__ has quit [Read error: Connection reset by peer]
Austin__ has joined #ruby-lang
Austin__ has quit [Remote host closed the connection]
cdt has joined #ruby-lang
erichmenge has joined #ruby-lang
gsav has joined #ruby-lang
workmad3 has joined #ruby-lang
yats_ has quit [Ping timeout: 240 seconds]
yats__ has joined #ruby-lang
<andrewvos> In MongoMapper doing a Postcode.create(meh) a lot of times in a row is really slow. How can I batch this shit up?
t12399 has quit [Remote host closed the connection]
t61201 has joined #ruby-lang
poga has joined #ruby-lang
jxie has joined #ruby-lang
Leeky is now known as Leeky_afk
akahn_ has left #ruby-lang [#ruby-lang]
akahn has joined #ruby-lang
yats__ has quit [Read error: Connection reset by peer]
bryancp has joined #ruby-lang
dous_ has joined #ruby-lang
dous has quit [Ping timeout: 260 seconds]
<andrewvos> Wow the Mongoid docs are a bit better than MongoMapper
<injekt> that was kind of an anticlimax
<rue> OMG, these are marginally improved
kvirani has joined #ruby-lang
savage- has joined #ruby-lang
virunga has quit [Ping timeout: 245 seconds]
<andrewvos> They're a fuckload better.
chimkan has joined #ruby-lang
<injekt> that's better
<andrewvos> Ooh bulk insert is nice.
<andrewvos> Well, only marginally better it seems.
zmack_ has quit [Remote host closed the connection]
savage- has quit [Remote host closed the connection]
Guest89690 has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
dc5ala has quit [Quit: Ex-Chat]
m3nd3s_ has quit [Remote host closed the connection]
nathandim has quit [Read error: Connection reset by peer]
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
tbuehlmann has quit [Remote host closed the connection]
ryez has joined #ruby-lang
Jake232 has quit [Quit: Computer has gone to sleep.]
chimkan has quit [Quit: chimkan]
kaiwren has quit [Quit: kaiwren]
bytephilia has joined #ruby-lang
Weems has quit [Ping timeout: 245 seconds]
tenderlove has joined #ruby-lang
cantonic has quit [Quit: cantonic]
andrewhl has quit [Remote host closed the connection]
cantonic has joined #ruby-lang
dfr|mac has joined #ruby-lang
t61201 has quit [Remote host closed the connection]
bfreeman has quit [Quit: bfreeman]
t15492 has joined #ruby-lang
slyphon_away has joined #ruby-lang
chimkan has joined #ruby-lang
dejongge has joined #ruby-lang
slyphon_away is now known as slyphon
abletony84 has joined #ruby-lang
<abletony84> Hey!
<andrewvos> WTF it seems that the slowest part of my process is *not* inserting into Mongo, it's the CSV parsing.
<abletony84> Anybody use DSPAM?
<andrewvos> What the fuck.
<abletony84> Does http://pastebin.com/fPBfK8ef look okay for a Ruby version of dspam-retrain?
runeb has joined #ruby-lang
virunga has joined #ruby-lang
runeb has quit [Remote host closed the connection]
mytrile has quit [Remote host closed the connection]
zmack has joined #ruby-lang
macmartine has joined #ruby-lang
<workmad3> andrewvos: doesn't mongo, out the box, do asynchronous write-to-disk so that it can say inserts happened really quickly?
<andrewvos> workmad3: Yeah something like that.
poga has quit [Remote host closed the connection]
codewrangler has joined #ruby-lang
m3nd3s has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
dan|el has joined #ruby-lang
<abletony84> can somebody tell if http://pastebin.com/fPBfK8ef is ruby 1.8 or 1.9 compatible?
t15492 has quit [Remote host closed the connection]
t14019 has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
tallship has quit [Read error: Connection reset by peer]
slyphon has quit [Quit: WeeChat 0.3.7]
rippa has joined #ruby-lang
carloslopes has quit [Quit: Leaving.]
ryez has quit [Ping timeout: 245 seconds]
Guedes has quit [Read error: Connection reset by peer]
towski has joined #ruby-lang
gnufied1 has joined #ruby-lang
chimkan has quit [Quit: chimkan]
<erikh> most databases sync on an interval
<erikh> as opposed to per-transaction
erichmenge has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
slyphon has joined #ruby-lang
A124 has quit [Read error: Connection reset by peer]
<andrewvos> Gah
<andrewvos> How do I run a block across multiple cores again?
<andrewvos> It's fork?
<heftig> fork. or threads if you use a GIL-less ruby
chimkan has joined #ruby-lang
<andrewvos> Ok thanks. Is there any way I can throw x number of forks into a pool, and only run a certain amount at a time?
<heftig> sure, but that gets complex
andrewhl has joined #ruby-lang
<heftig> you can use Process.wait to wait for the exit of any child
savage- has joined #ruby-lang
yats has joined #ruby-lang
t14019 has quit [Remote host closed the connection]
t34450 has joined #ruby-lang
zmack has quit [Remote host closed the connection]
<andrewvos> So if I want to run two forks at a time I have to wait for them both to end using Process.wait.
<erikh> block = proc { my_stuff }; 2.times { Thread.new { fork { block.call }.wait } }; sleep
solars has quit [Ping timeout: 276 seconds]
<erikh> ah, I think I missed an end brace there
<erikh> block = proc { my_stuff }; 2.times { Thread.new { fork { block.call }.wait } } }; sleep
<erikh> so the threads exist to wait for the forks to complete, and the main thread just sleeps.
EvilJStoker has quit [Excess Flood]
<erikh> wait is a blocking operation so it's a natural fit for a thread
<erikh> oh, derp
Weems has joined #ruby-lang
<erikh> Process.wait(fork { ... })
<erikh> I forgot I wrapped that in something I'm working on.
apeiros_ has joined #ruby-lang
<erikh> anyhow hth andrewvos
<andrewvos> Didn't know Process.wait took params
<andrewvos> Nice
<andrewvos> !
<andrewvos> Thanks erikh
<erikh> maybe it doesn't
<erikh> fuck
<andrewvos> erikh: I just wrote this, which isn't great https://gist.github.com/3416938
<erikh> yeah, it does
<erikh> takes a pid or works on the current pid
apeiros_ has quit [Ping timeout: 260 seconds]
<erikh> tracking a pool of forks gets a lot harder.
erics has joined #ruby-lang
<erikh> you have to trap SIGCHLD and remove processes as they disappear
<rue> Process#wait
<erikh> here, sec.
<erikh> rue: right, scroll up
<erikh> something like that (I'll leave it to you to check out how that functions)
<erikh> if you really don't care about the list of processes you're working with, don't. you'll save yourself a lot of hell
<andrewvos> Wow that is a bit more work.
t34450 has quit [Remote host closed the connection]
t92806 has joined #ruby-lang
<andrewvos> Hmm, the way I did it seems to have a lot of ruby processes running in the background.
<erikh> right, that's how fork works.
<andrewvos> erikh: Sorry, I mean with my code I only expect to see two extra processes.
<andrewvos> But I see a lot
<erikh> oh, hm.
Jay_Levitt has quit [Quit: Jay_Levitt]
Skif has quit [Ping timeout: 240 seconds]
<erikh> ah I see
<erikh> so you don't wait on the forks, you're waiting on the parent
<erikh> fork returns an integer PID to the parent
<erikh> you need to wait on that
<erikh> sec
<andrewvos> But if I have multiple forks?
<andrewvos> Oh and why is Process#waitall not Process#wait_all ???
<erikh> something like that
apeiros_ has joined #ruby-lang
<andrewvos> erikh: waitall seems to do that too.
<erikh> waitall is indiscriminate
<erikh> and blocks.
<andrewvos> It does?
<andrewvos> Interesting
<erikh> that will stop processing of the loop until all the child processes complete
<erikh> may or may not be what you want depending on the circumstances.
dejongge has quit [Ping timeout: 265 seconds]
<andrewvos> Yeah that just exploded my computer
wallerdev has joined #ruby-lang
<erikh> hahaha
<erikh> yeah, it doesn't wait
yats has quit [Ping timeout: 240 seconds]
<erikh> ah, port of perl's
<erikh> what problem are you trying to solve?
<andrewvos> erikh: One of my lines of code calls out to a gem called Silva which does something very slowly.
<andrewvos> erikh: I want to speed up the process.
<erikh> ok.
<erikh> any reason you can't do it in a thread?
<darix> andrewvos: IO bound, cpu bound?
<erikh> forks are considerably more heavyweight
<andrewvos> darix: CPI
<andrewvos> CPU
<erikh> ah.
<abletony84> is there a way to do log_this("\tCant't determine user") without the \t?
stephenp has quit [Quit: stephenp]
<abletony84> (my attempted beautification of dspam-retrain at https://gist.github.com/3416993)
<abletony84> (dspam being the best anti-spam tool available at the time being, apart from gmail perhaps)
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
<abletony84> (and ofcourse openbsd's spamd which is suppose to go great with dspam)
<lianj> abletony84: def log_this(message); @enable_logging && @log.info("\t" + message); end =
Leeky_afk is now known as Leeky
<abletony84> hmm
s1n4 has joined #ruby-lang
EvilJStoker has joined #ruby-lang
<andrewvos> This worked well erikh https://github.com/grosser/parallel
<erikh> aye
<rue> Paral'lel
<erikh> it's not a bad topic to learn to be frank
bfreeman has joined #ruby-lang
<abletony84> thanks lianj but aint that just adding fuel to the fire?
<andrewvos> True, but I just want to get this work done.
<erikh> it gives you some pretty keen insight as to how a unix box does a lot of work
<rue> abletony84: What is your actual desire here?
<rue> If you don’t want the \t, just leave it out.
cdt has quit [Quit: Ex-Chat]
carloslopes has joined #ruby-lang
<abletony84> rue: My desire is to simplify things as much as possible, like that whole "Perfection is achieved, not when there's nothing left to add, but when there's nothing left to take away kinda thing"
<abletony84> * take away" kinda thing
<rue> I don’t understand what that means
<rue> What is your problem with the \t?
chimkan has quit [Quit: chimkan]
Leeky is now known as Leeky_afk
<abletony84> hmm.. dont like the way it looks!
<erikh> tttt \t\t\t, \t is the word
<abletony84> hehe
<abletony84> im gonna take them out
<abletony84> why'd the author put them there in the first place?
carloslopes has quit [Client Quit]
<erikh> probably to indent the log output
segy has quit [Ping timeout: 268 seconds]
carloslopes has joined #ruby-lang
mrsolo has joined #ruby-lang
<erikh> just a... "pro tip", you should understand code you take from others.
<erikh> that's part of the learning process and has the nice side effect of not blowing up your computer because you didn't know what you were doing
<abletony84> hehe
<abletony84> good point thanks man
gmci has quit [Quit: Computer has gone to sleep.]
yats has joined #ruby-lang
<abletony84> erikh: i dont understand why he'd want to indent the log output though
<erikh> ask him?
<abletony84> yup just sent him a mail
<abletony84> *sexy sexy*
<abletony84> hmm.. ignored, status = Process::waitpid2 pid?
<abletony84> cant i just do waitpid instead of waitpid2?
deryl has joined #ruby-lang
butchanton has joined #ruby-lang
dan|el has quit [Ping timeout: 245 seconds]
<rue> See the docs for what the difference is.
bytephilia has quit [Read error: Operation timed out]
richardjortega has joined #ruby-lang
alvaro_o has joined #ruby-lang
macmartine has quit [Quit: Computer has gone to sleep.]
quazimodo has quit [Read error: No route to host]
qwerxy has quit [Ping timeout: 240 seconds]
burgestrand has joined #ruby-lang
t92806 has quit [Remote host closed the connection]
t31485 has joined #ruby-lang
gsav has quit [Quit: Lost terminal]
g0bl1n has quit [Quit: g0bl1n]
gnufied1 has quit [Quit: Leaving.]
gsav has joined #ruby-lang
ttilley has quit [Quit: ttilley]
macmartine has joined #ruby-lang
Criztian has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
bryancp has quit [Remote host closed the connection]
erichmenge has quit [Quit: Be back later]
t31485 has quit [Remote host closed the connection]
t7456 has joined #ruby-lang
tbuehlmann has joined #ruby-lang
dan|el has joined #ruby-lang
gmci has joined #ruby-lang
rcassidy has quit [Quit: leaving]
benanne has joined #ruby-lang
bryancp has joined #ruby-lang
erichmenge has joined #ruby-lang
itsmeduncan has quit [Quit: itsmeduncan]
zmack has joined #ruby-lang
zmack has quit [Remote host closed the connection]
zmack has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
qwerxy has joined #ruby-lang
Tearan has joined #ruby-lang
headius has joined #ruby-lang
ttilley has joined #ruby-lang
ttilley has quit [Changing host]
ttilley has joined #ruby-lang
outoftime has joined #ruby-lang
Leeky_afk is now known as Leeky
brianpWins has joined #ruby-lang
s1n4 has quit [Quit: peace out]
virunga has quit [Ping timeout: 252 seconds]
t7456 has quit [Remote host closed the connection]
Jay_Levitt has joined #ruby-lang
t27971 has joined #ruby-lang
rking has quit [Quit: Upgrading to latest Weechat build.]
rking has joined #ruby-lang
naz has joined #ruby-lang
arooni-mobile has joined #ruby-lang
deryl has quit [Quit: deryl]
erics has quit [Remote host closed the connection]
Skif has joined #ruby-lang
towski has quit [Remote host closed the connection]
RegEchse has joined #ruby-lang
Jay_Levitt has quit [Quit: Jay_Levitt]
qwerxy has quit [Quit: offski]
t27971 has quit [Remote host closed the connection]
t6037 has joined #ruby-lang
flak has joined #ruby-lang
flak is now known as Guest69441
slyphon has quit [Quit: WeeChat 0.3.7]
enroxorz-work has joined #ruby-lang
enroxorz-work has joined #ruby-lang
slyphon has joined #ruby-lang
rippa has quit [Ping timeout: 245 seconds]
cantonic has quit [Quit: cantonic]
slyphon has quit [Client Quit]
slyphon has joined #ruby-lang
yats has quit [Ping timeout: 268 seconds]
dan|el has quit [Ping timeout: 245 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
gmci has joined #ruby-lang
savage-_ has joined #ruby-lang
t6037 has quit [Remote host closed the connection]
t73155 has joined #ruby-lang
any-key is now known as eric-wood
savage- has quit [Ping timeout: 260 seconds]
dejongge has joined #ruby-lang
arooni-mobile has quit [Read error: Connection reset by peer]
Guest69441 has left #ruby-lang [#ruby-lang]
rippa has joined #ruby-lang
erichmenge has quit [Quit: Be back later]
m3nd3s has quit [Remote host closed the connection]
arooni-mobile has joined #ruby-lang
m3nd3s has joined #ruby-lang
Leeky is now known as Leeky_afk
<rue> :D “2x faster than 1.9.3 and only 50% slower than JRuby”
<erikh> what's this?
<rue> Wonder if it’s first case of correct use of x times faster
<erikh> rubinius?
<headius> yo momma
<rue> erikh: Maglev
<erikh> ah
savage- has joined #ruby-lang
<headius> so if I'm reading it right, 1.9.3 is 4x slower than jruby for whatever case that is
<erikh> I'd presume it depends on the benchmark?
<darix> headius: what was the ratio on 1.8?
<headius> beats me, I just work here
krz has joined #ruby-lang
qwerxy has joined #ruby-lang
savage-_ has quit [Ping timeout: 260 seconds]
zmack has quit [Remote host closed the connection]
<rue> Isn’t it 3x the speed?
workmad3 has joined #ruby-lang
qwerxy has quit [Quit: offski]
ezkl has joined #ruby-lang
17SABR2Q2 has joined #ruby-lang
t73155 has quit [Remote host closed the connection]
t97587 has joined #ruby-lang
Defusal has quit [Quit: brb]
savage-_ has joined #ruby-lang
qwerxy has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
savage- has quit [Ping timeout: 265 seconds]
diegoviola has quit [Ping timeout: 244 seconds]
lsegal has joined #ruby-lang
ipabs has joined #ruby-lang
havenn has joined #ruby-lang
workmad3 has quit [Ping timeout: 272 seconds]
tenderlove has quit [Remote host closed the connection]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Defusal has joined #ruby-lang
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
Defusal has quit [Client Quit]
Defusal has joined #ruby-lang
Defusal has joined #ruby-lang
Defusal has quit [Changing host]
zmack has joined #ruby-lang
bytephilia has joined #ruby-lang
<headius> 50% slower is confusing
<headius> rue: ^^
<headius> does that mean it takes 150% as long to run the bench?
<headius> 1.5x longer?
<headius> or does that mean it's half as fast
<headius> 2x longer
<rue> I’d say it takes 2x as long
<headius> if jruby is 2x faster than maglev, and maglev is 2x faster than 1.9.3, then jruby's 4x faster than 1.9.3
<rue> Is two times faster three times as fast?
hynkle has quit [Ping timeout: 240 seconds]
<headius> did you just ask that?
<rue> Yes!
<headius> I'd say two times faster is two times as fast, but maybe I'm crazy
<rue> I dunno
<headius> otherwise "one time" faster would have to mean twice as fast
<headius> mixing times and percents like they did is very confusing
<headius> they should just say "2x faster than 1.9.3, but JRuby still smokes the hell out of us"
<rue> Right, once (again) faster == 2x AS fast :D
hynkle has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
zmack has quit [Remote host closed the connection]
BigFatFatty has joined #ruby-lang
akira989_ has quit [Remote host closed the connection]
<headius> that I can buy
sailias has joined #ruby-lang
sailias has quit [Client Quit]
banisterfiend has joined #ruby-lang
<headius> three times as fast = twice faster?
<headius> again, and again
<rue> This calls for an RFC!
<headius> "JRuby is thrice slower than a third of the benchmarks but 2x faster on 50% of the remainder"
havenn has quit [Remote host closed the connection]
<headius> I'm sure we could come up with lines that mean nothing at all
<headius> half double decaffeinated half-caf with a twist of lemon
havenn has joined #ruby-lang
DefV has quit [Ping timeout: 272 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
dfr|mac has joined #ruby-lang
gmci has joined #ruby-lang
t97587 has quit [Remote host closed the connection]
t76705 has joined #ruby-lang
Guest89690 has quit [Read error: Operation timed out]
akira989 has joined #ruby-lang
Axsuul has joined #ruby-lang
havenn has quit [Remote host closed the connection]
zmack has joined #ruby-lang
havenn has joined #ruby-lang
zmack has quit [Remote host closed the connection]
erichmenge has joined #ruby-lang
erichmenge has quit [Client Quit]
workmad3 has joined #ruby-lang
macmartine has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
akira989_ has joined #ruby-lang
Hakon has joined #ruby-lang
akira989 has quit [Ping timeout: 252 seconds]
t76705 has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
t68195 has joined #ruby-lang
chessguy has joined #ruby-lang
banisterfiend has joined #ruby-lang
ipabs has quit [Read error: Connection reset by peer]
Torrieri has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
akira989_ has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 240 seconds]
qwerxy has quit [Quit: offski]
akira989 has joined #ruby-lang
kain has quit [Quit: exit]
m3nd3s has joined #ruby-lang
Torrieri has quit [Quit: Saliendo]
workmad3 has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby-lang
publicvoid_ has joined #ruby-lang
tenderlove has joined #ruby-lang
publicvoid has quit [Ping timeout: 252 seconds]
enroxorz-work has quit [Quit: Leaving]
m3nd3s has quit [Read error: Connection timed out]
<cout> whoever wrote progress_bar is the most awesome ruby programmer on the planet
yxhuvud has quit [Ping timeout: 245 seconds]
m3nd3s has joined #ruby-lang
arooni-mobile has quit [Read error: Connection reset by peer]
t68195 has quit [Remote host closed the connection]
t78357 has joined #ruby-lang
erichmenge has joined #ruby-lang
bytephilia has quit [Ping timeout: 272 seconds]
chessguy has quit [Remote host closed the connection]
gsav has quit [Read error: Connection reset by peer]
chessguy has joined #ruby-lang
itsmeduncan has joined #ruby-lang
17SABR2Q2 has quit [Quit: 17SABR2Q2]
Hakon has quit [Quit: Leaving...]
tallship has joined #ruby-lang
Hakon has joined #ruby-lang
wallerdev has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
neocoin has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
t78357 has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
t63825 has joined #ruby-lang
itcharlie has joined #ruby-lang
chessguy has quit [Remote host closed the connection]
qwerxy has joined #ruby-lang
totallymike has joined #ruby-lang
chessguy has joined #ruby-lang
itcharlie has quit [Read error: Connection reset by peer]
kain has joined #ruby-lang
scampbell has quit [Quit: Ex-Chat]
akira989_ has joined #ruby-lang
akira989 has quit [Read error: Connection reset by peer]
t63825 has quit [Remote host closed the connection]
t9438 has joined #ruby-lang
hynkle has quit [Quit: Computer has gone to sleep.]
hynkle has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
voker57 has quit [Remote host closed the connection]
dfr|mac has quit [Remote host closed the connection]
hynkle has quit [Ping timeout: 248 seconds]
dfr|mac has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has quit [Remote host closed the connection]
lcdhoffman has quit [Quit: lcdhoffman]
crookshanks has joined #ruby-lang
g0bl1n has joined #ruby-lang
qwerxy has quit [Quit: offski]
crookshanks has quit [Remote host closed the connection]
dfr|mac has quit [Remote host closed the connection]
carloslopes has quit [Quit: Leaving.]
t9438 has quit [Remote host closed the connection]
t6054 has joined #ruby-lang
dfr|mac has joined #ruby-lang
andrewhl has joined #ruby-lang
bjensen has joined #ruby-lang
<bjensen> Im trying to fix a poorly encoded string, and Im using gsub to do it, so far I have this: gsub("Ã¥", "å").gsub("æ", "æ").gsub("ø", "ø") but does anyone know how I can find the upper case versions?
<drbrain> bjensen: does str.force_encoding Encoding::UTF_8 work?
dejongge has quit [Quit: Leaving.]
<bjensen> "har en god opgaveforståelse" nope
<bjensen> thats the string
<bjensen> if i do #encoding on its it returns utf 8..
voker57 has joined #ruby-lang
<drbrain> I see
<drbrain> it looks like it's a corrupt UTF-8 string
<drbrain> gsub is not the correct solution, other unicode characters will also be corrupt
<drbrain> you need to figure out which encodings it went through that resulted in the corruption and reverse them
<bjensen> drbrain: well it was in rails using the serialize attribute
<bjensen> as part of a hash
itsmeduncan has quit [Quit: itsmeduncan]
<bjensen> drbrain: well I have the test string, how can I find out which encodings it has gone through?
<drbrain> bjensen: you'll need to look at how serialize attribute works and what encoding transformations your DB performed
g0bl1n has quit [Quit: g0bl1n]
<drbrain> this is just a guess: data was serialized as JSON to the DB which was in ISO-8859-1 encoding
akira989_ has quit [Read error: Connection reset by peer]
<drbrain> the DB corrupted the UTF-8 characters on the way back out
akira989 has joined #ruby-lang
<drbrain> you'll need to read the code that the data went through to determine what the actual path was
crookshanks has joined #ruby-lang
<bjensen> well sounds like I need to go digging through the rails source then :-/
qwerxy has joined #ruby-lang
crookshanks has quit [Remote host closed the connection]
rtl_ has left #ruby-lang [#ruby-lang]
rtl has joined #ruby-lang
sockmonk has quit [Ping timeout: 240 seconds]
macmartine has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<drbrain> bjensen: … it may have gone through YAML instead of JSON, but the same UTF-8 corruption could occur
<bjensen> drbrain: to be honest I don't have time for such a hunt right now. So I would just like to use gsub for now
<bjensen> its legacy data
<bjensen> so just need to get it converted
<drbrain> ok
ylluminate has joined #ruby-lang
t6054 has quit [Remote host closed the connection]
<bjensen> drbrain: so I have this gsub("Ã¥", "å").gsub("æ", "æ").gsub("ø", "ø") but that only handles the smaller case versions of the letters, I need the big ones as well
t81335 has joined #ruby-lang
<drbrain> they'll have different code points you need to look up
<rking> bjensen: There are tools to transcode.
<rking> You sure you don't want to be using iconv or similar?
<bjensen> rking: sure if I can do it with iconv
<drbrain> rking: the problem is the string is corrupt
<bjensen> yeah
<rking> But usually it's corrupt in a known mapping.
deryl has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
deryl has quit [Client Quit]
<rking> Doing a forest of gsub()s is unlikely the directest way out of the mess.
Criztian has joined #ruby-lang
akira989 has quit [Read error: Connection reset by peer]
<bjensen> if you have any suggestions of use of icon, then I would love to hear it
akira989 has joined #ruby-lang
<Harzilein> if the mapping is not known, there are heuristics for finding it
qwerxy has quit [Quit: offski]
<Harzilein> it looks like utf8 interpreted as latin1
<rking> You just have to find out what causes the particular flavor of Mojibake mapping "å" to "Ã¥", then reverse it.
<rking> Harzilein: That was my guess, but it's not quite.
<rking> That "A" is odd.
<rking> No, it's an "Ã", "A WITH TILDE"
<bjensen> yeah it is
<rking> Yes, that being a c3 it's definitely UTF-8 that got reinterpreted as something else.
<bjensen> gsub("Ã¥", "å").gsub("æ", "æ").gsub("ø", "ø")
<rking> % echo 'æ' | iconv -f utf-8 -t latin1
<rking> æ
<rking> See how much easier that is?
Criztian has quit [Ping timeout: 240 seconds]
<rking> You can do this in Ruby1.9's encoding API, too.
<bjensen> that doesn't solve it
<rking> Just don't be all .gsub().gsub().gsub(). That's like noise pollution… sounds like a jalopy driving by and stuff.
<drbrain> "æ".force_encoding(Encoding::UTF_8).encode(Encoding::ISO_8859_1).force_encoding(Encoding::UTF_8)
<drbrain> rking: ^^
<rking> bjensen: Why not?
havenn has quit [Ping timeout: 246 seconds]
<rking> drbrain: Yep. That's just a bit more verbose is all.
tbuehlmann has quit [Remote host closed the connection]
<Harzilein> bjensen: so find out if the data is actually saved in what the db think it is saving. if that's the case, set up your db access to use utf-8 conversion. you should not even need any conversion inside ruby then.
<bjensen> Iconv.iconv("LATIN1", "UTF-8", "opgaveforståelse") #=> ["opgaveforst\xC3\xA5else"]
JoshWines has quit [Ping timeout: 276 seconds]
<Harzilein> bjensen: do puts Iconv.iconv("LATIN1", "UTF-8", ...)
<rking> bjensen: And?
havenn has joined #ruby-lang
<drbrain> bjensen: require 'iconv' says: iconv will be deprecated in the future, use String#encode instead.
slyphon has quit [Quit: WeeChat 0.3.7]
<bjensen> um why is Iconv.iconv("LATIN1", "UTF-8", "opgaveforståelse") and puts Iconv.iconv("LATIN1", "UTF-8", "opgaveforståelse") not the same?
<Harzilein> bjensen: the former gets pretty printed by irb
<Harzilein> bjensen: the irb pretty printing is more akin to using pp instead of puts
<bjensen> ah
banisterfiend has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
<bjensen> so its actually right the Iconv.iconv("LATIN1", "UTF-8", "opgaveforståelse")
macmartine has joined #ruby-lang
banisterfiend has joined #ruby-lang
<Harzilein> bjensen: but again, check if the raw data in the db is saved as utf-8 and if the db expects to read it as utf-8 and if your db adaptor is set up to request an utf-8 session.
<bjensen> right
<Harzilein> bjensen: if you don't have actual mojibake in your db you should not need conversion in ruby, and if you do, you should convert your data to match the db setup
erics has joined #ruby-lang
<bjensen> like i said earlier, this is just some data i need moved
<Harzilein> (or adjust your db setup, if that's possible while retaining the raw data (might become invalid by that though))
tenderlove has quit [Ping timeout: 250 seconds]
thone_ has quit [Ping timeout: 260 seconds]
tenderlove has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
Skif has quit [Ping timeout: 240 seconds]
t81335 has quit [Remote host closed the connection]
thone has joined #ruby-lang
t3562 has joined #ruby-lang
sepp2k has joined #ruby-lang
JoshWines has joined #ruby-lang
g0bl1n has joined #ruby-lang
hynkle has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
MrWGW has quit [Ping timeout: 245 seconds]
MrWGW has joined #ruby-lang
LanceHaig has left #ruby-lang ["Leaving"]
arooni-mobile has joined #ruby-lang
erics has quit [Remote host closed the connection]
Skif has joined #ruby-lang
<bjensen> Harzilein: Hmm when I try to save the data again into my utf8 db, I get this error: Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT
hynkle has quit [Quit: Computer has gone to sleep.]
kingCrawlerx has joined #ruby-lang
t3562 has quit [Remote host closed the connection]
t35551 has joined #ruby-lang
<bjensen> the force_encoding might be doing some magic..
chessguy has quit [Remote host closed the connection]
sandbags has quit [Remote host closed the connection]
Marc3000 has joined #ruby-lang
Marc3000 has left #ruby-lang [#ruby-lang]
dfr|mac has quit [Remote host closed the connection]
<erikh> as someone who's dealt with this before I'd strongly suggest finding out how many strings you have with this encoding problem before you try to spin you wheels on hacks
<erikh> it might be faster to do it right.
Marc3000 has joined #ruby-lang
m3nd3s has quit [Remote host closed the connection]
kingCrawlerx has quit [Quit: Computer has gone to sleep]
kingCrawlerx has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
<andrewvos> Anyone here need a free api to ist postcodes in a given latitude or longitude?
<drbrain> erikh: knife-solo is working perfectly
<drbrain> erikh: looks like I'll be able to boot a bare instance, run knife-solo, then make an image out of it
qwerxy has joined #ruby-lang
Marc3000 has quit [Quit: Leaving.]
Marc3000 has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
akira989 has quit [Remote host closed the connection]
bjensen has quit [Quit: bjensen]
lcdhoffman has joined #ruby-lang
<erikh> awesome
justinseiter has joined #ruby-lang
<zzak> hi!
toretore has quit [Quit: Leaving]
milesforrest has joined #ruby-lang
akira989 has joined #ruby-lang
Nisstyre has joined #ruby-lang
ylluminate has quit [Quit: Bye!]
<drbrain> zzak: hi!
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
Jay_Levitt has joined #ruby-lang
outoftime has quit [Quit: Leaving]
erichmenge has quit [Quit: Be back later]
dous_ has quit [Remote host closed the connection]
kingCrawlerx has quit [Quit: Computer has gone to sleep]
bytephilia has joined #ruby-lang
dous has joined #ruby-lang
ryez has joined #ruby-lang
macmartine has quit [Quit: Computer has gone to sleep.]
kingCrawlerx has joined #ruby-lang
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-dev)]
banisterfiend has quit [Read error: Connection reset by peer]
woollyams has joined #ruby-lang
andrewhl has quit [Read error: Connection reset by peer]
kingCrawlerx has quit [Client Quit]
banisterfiend has joined #ruby-lang
andrewhl has joined #ruby-lang
BigFatFatty has left #ruby-lang [#ruby-lang]
andrewhl has quit [Remote host closed the connection]
stardiviner has joined #ruby-lang
stardiviner has quit [Client Quit]
stardiviner has joined #ruby-lang
qwerxy has quit [Quit: offski]
cantonic has joined #ruby-lang
woollyams has quit [Quit: Computer has gone to sleep.]
jackhammer2022 has joined #ruby-lang
t35551 has quit [Remote host closed the connection]
t44393 has joined #ruby-lang
woollyams has joined #ruby-lang
Weems has quit [Ping timeout: 248 seconds]
ryez has quit [Quit: Page closed]
lcdhoffman has quit [Quit: lcdhoffman]
kvirani has joined #ruby-lang
ryez has joined #ruby-lang
andrewhl has joined #ruby-lang
bytephilia has quit [Remote host closed the connection]
m3nd3s_ has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
richardjortega has quit [Quit: richardjortega]
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby-lang
gsav has joined #ruby-lang
benanne has quit [Quit: kbai]