apeiros changed the topic of #ruby-lang to: Ruby 2.0.0-p247: http://ruby-lang.org (Ruby 1.9.3-p448) || Paste >3 lines of text on http://gist.github.com
bantic has quit [Quit: bantic]
tkuchiki has quit [Remote host closed the connection]
vilni has quit [Ping timeout: 245 seconds]
wmoxam has joined #ruby-lang
benanne has quit [Quit: kbai]
brianpWins has joined #ruby-lang
pskosinski has joined #ruby-lang
amerine has quit [Quit: Computer has gone to sleep.]
pkrnj has quit [Ping timeout: 264 seconds]
saarinen has quit [Quit: saarinen]
leekiern_ has quit [Ping timeout: 264 seconds]
pkrnj has joined #ruby-lang
mbj has quit [Ping timeout: 245 seconds]
nathanstitt has joined #ruby-lang
leekiern_ has joined #ruby-lang
joshuawscott has joined #ruby-lang
apx has joined #ruby-lang
pkrnj has quit [Ping timeout: 264 seconds]
hogeo has joined #ruby-lang
cmckni3 has joined #ruby-lang
charliesome has joined #ruby-lang
ikrima has joined #ruby-lang
ikrima has quit [Remote host closed the connection]
mdedetrich has quit [Quit: Computer has gone to sleep.]
brianpWins has quit [Quit: brianpWins]
arooni-mobile has quit [Ping timeout: 246 seconds]
andbutsothen has joined #ruby-lang
bungoman has quit [Remote host closed the connection]
bf4 has joined #ruby-lang
cored has quit [Ping timeout: 264 seconds]
joshuawscott has quit [Quit: Leaving.]
bf4 has quit [Ping timeout: 264 seconds]
arooni-mobile has joined #ruby-lang
cHarNe2 has joined #ruby-lang
runeb has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cHarNe2 has quit [Quit: leaving]
mistym has quit [Remote host closed the connection]
pskosinski has quit [Quit: Til rivido Idisti!]
pkrnj has joined #ruby-lang
cHarNe2 has joined #ruby-lang
tkuchiki has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 246 seconds]
runeb has quit [Ping timeout: 246 seconds]
wems has quit [Ping timeout: 245 seconds]
[[thufir]] has quit [Ping timeout: 264 seconds]
pkrnj has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby-lang
hashkey has quit [Read error: Connection reset by peer]
pkrnj has joined #ruby-lang
mistym has joined #ruby-lang
dus7 has joined #ruby-lang
wmoxam has quit [Quit: Lost terminal]
Nisstyre has quit [Quit: Leaving]
dus7 has quit [Ping timeout: 250 seconds]
pkrnj has quit [Ping timeout: 246 seconds]
amerine has joined #ruby-lang
pkrnj has joined #ruby-lang
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banisterfiend is now known as banister`sleep
hogeo has quit [Remote host closed the connection]
hogeo has joined #ruby-lang
bantic has joined #ruby-lang
_jpb__ has quit [Quit: Lost terminal]
pkrnj has quit [Ping timeout: 264 seconds]
teleological has joined #ruby-lang
teleological has quit [Remote host closed the connection]
pkrnj has joined #ruby-lang
_jpb_ has quit [Ping timeout: 240 seconds]
leekiern_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cmckni3 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pkrnj has quit [Ping timeout: 264 seconds]
bf4 has joined #ruby-lang
marcostoledo has quit [Quit: Leaving...]
pkrnj has joined #ruby-lang
vilni has joined #ruby-lang
bf4 has quit [Ping timeout: 245 seconds]
iliketur_ has quit [Quit: zzzzz…..]
havenwood has quit [Ping timeout: 240 seconds]
andbutsothen has quit [Quit: andbutsothen]
andbutsothen has joined #ruby-lang
runeb has joined #ruby-lang
andbutsothen has quit [Client Quit]
efrainolivares has quit [Quit: efrainolivares]
joshuawscott has joined #ruby-lang
setmeaway has quit [Ping timeout: 264 seconds]
andbutsothen has joined #ruby-lang
runeb has quit [Ping timeout: 245 seconds]
andbutsothen has quit [Quit: andbutsothen]
andbutsothen has joined #ruby-lang
andbutsothen has quit [Client Quit]
mistym has quit [Remote host closed the connection]
pkrnj has quit [Ping timeout: 264 seconds]
pkrnj has joined #ruby-lang
cads has joined #ruby-lang
pkrnj has quit [Ping timeout: 260 seconds]
duckinator has quit [Quit: Nickname collision due to Services enforced nickname change, your nick was overruled]
pkrnj has joined #ruby-lang
mistym has joined #ruby-lang
GeissT has joined #ruby-lang
duckinator has joined #ruby-lang
bungoman has joined #ruby-lang
skmp has quit [Ping timeout: 246 seconds]
x0f_ has joined #ruby-lang
skmp has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister`sleep has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
x0F has quit [Ping timeout: 245 seconds]
cmckni3 has joined #ruby-lang
rikai has joined #ruby-lang
vilni has quit [Ping timeout: 260 seconds]
bf4 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
skmp has quit [Ping timeout: 246 seconds]
skmp has joined #ruby-lang
bf4 has quit [Ping timeout: 245 seconds]
dhruvasagar has quit [Ping timeout: 276 seconds]
ffio has joined #ruby-lang
joevandy1 is now known as joevandyk
<joevandyk> i have to convert a string (about 8 ascii characters) to an integer. what's the best way to do that?
hahuang65 has quit [Ping timeout: 245 seconds]
<pipework> joevandyk: What kind of integer?
<pipework> String.new.to_i
<joevandyk> pipework: a mostly unique one, mostly
<pipework> joevandyk: Hm. Fun requirement, but I don't think it's very realistic.
<pipework> How do you know if 4_023_098 represents a given string?
<joevandyk> well my first thought (since this is ascii), is to convert each letter to the ascii representation. then combine them. so "abcd" is 97098099100
cmckni3 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework> If you assigned a value to each character as an int so you can convert a string to a single int, you'll find that it'll be hard to have uniqueness without some kind of pattern to delineate where a character's integer representation ends.
<pipework> So seven bytes would be your means of delineating each character?
<pipework> sorry you said 8bit.
<pipework> You could use String#each_byte
<joevandyk> problem is that those aren't going to be very unique :(
<joevandyk> wait, unique isn't right. it would be too big. for an 8 character string.
<joevandyk> that would be 16 characters minimum if converted to ascii.
<pipework> joevandyk: String.new.each_byte { |byte| byte.to_s(8) }
dhruvasagar has joined #ruby-lang
<pipework> Then just append them into an array and join the array?
<joevandyk> pipework: that returns the string?
<joevandyk> "abcdefgh".each_byte { |byte| byte.to_s(8) } # returns "abcdefgh"
<pipework> joevandyk: You'll have to do more I was just showing how to get the byte representation of an 8bit encoded string.
<pipework> bytes = []; "lol".each_byte {|byte| bytes << byte.to_s(8) }; puts bytes.join.to_i
<pipework> Probably not that efficient, but gets you there.
<pipework> It might drop leading zeroes.
<pipework> Actually, you'll need a bit more code to append leading zeroes so you can decompose the int back to a string. But you'll have to preserve leading zeroes.
vilni has joined #ruby-lang
Cakey has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
<joevandyk> the problem is that i need an integer. 4 bytes.
<pipework> How are you going to get a 4-byte integer from an 8-byte character?
pkrnj has quit [Ping timeout: 245 seconds]
<pipework> Look at Array#pack
arrington164 has joined #ruby-lang
shinnya has quit [Ping timeout: 248 seconds]
pkrnj has joined #ruby-lang
ohsix has joined #ruby-lang
vilni has quit [Ping timeout: 245 seconds]
joshuawscott has quit [Quit: Leaving.]
arrington164 has quit [Ping timeout: 250 seconds]
bhrgunatha has joined #ruby-lang
DarkBushido has quit [Ping timeout: 240 seconds]
hashkey has joined #ruby-lang
<lianj> wait what are you guys trying?
<pipework> lianj: Getting a unique integer from a given string.
<lianj> what unique integer?
<pipework> Not a specific one.
<pipework> Deriving unique integers from strings.
DarkBushido has joined #ruby-lang
DarkBushido has joined #ruby-lang
DarkBushido has quit [Changing host]
<lianj> >> require 'digest/sha1'; Digest::SHA256.hexdigest("lol").to_i(16)
<eval-in> lianj => 3198421938877745925705377571926701243990367508243059921464727633932458924732 (https://eval.in/45786)
<pipework> lianj: He wants to get a 4-byte int from the 8-byte character, I hear.
<lianj> madness?
<pipework> Why digest? Why not just convert to the integer representation of each character?
<pipework> lianj: Sparta it is not. That's for sure.
<lianj> >> require 'openssl'; OpenSSL::BN.new("lol".unpack("H*")[0], 16)
<eval-in> lianj => #<OpenSSL::BN:0x41e33370> (https://eval.in/45787)
<lianj> >> require 'openssl'; OpenSSL::BN.new("lol".unpack("H*")[0], 16).to_s
<eval-in> lianj => "7106412" (https://eval.in/45788)
<pipework> That'll be unique?
<pipework> I doubt it will.
<lianj> show me a string that gets that number…
<pipework> That's a great way to measure uniqueness...
<pipework> md5sum a string, I dare you to find other strings that will give you the same checksum.
cmckni3 has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
<lianj> no i mean, the bignum thin is the actual number that those bytes represent. just used bignum because its not fixed byte with like unpack("cn or whatever
<lianj> *thing
<lianj> its uniq.
<pipework> Huh.
lysw123 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
bf4 has joined #ruby-lang
<lianj> what?
lysw123 has quit [Remote host closed the connection]
lysw123 has joined #ruby-lang
lysw123 has quit [Remote host closed the connection]
lysw123 has joined #ruby-lang
lysw123 has quit [Remote host closed the connection]
lysw123 has joined #ruby-lang
<joevandyk> mostly unique is fine..
cmckni3 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
james has joined #ruby-lang
bantic has quit [Quit: bantic]
bf4 has quit [Ping timeout: 264 seconds]
james is now known as Guest73712
cmckni3 has joined #ruby-lang
Guest73712 has quit [Client Quit]
ruby-lang332 has joined #ruby-lang
ruby-lang332 has quit [Client Quit]
<lianj> joevandyk: the bignum thing is fully uniq, but you can turn it back into the string. not sure if that is wanted
<pipework> can't?
<lianj> can
pkrnj has quit [Ping timeout: 276 seconds]
pkrnj has joined #ruby-lang
cads has quit [Ping timeout: 260 seconds]
lsegal has quit [Read error: Connection reset by peer]
lsegal has joined #ruby-lang
hahuang65 has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
ffio_ has joined #ruby-lang
grandy has quit [Ping timeout: 276 seconds]
grandy has joined #ruby-lang
Ch00k has joined #ruby-lang
pkrnj has quit [Ping timeout: 240 seconds]
pkrnj has joined #ruby-lang
JohnTerryCFC has joined #ruby-lang
rickruby has quit [Remote host closed the connection]
rue has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
rickruby has joined #ruby-lang
rikai_ has joined #ruby-lang
JohnTerryCFC has quit [Quit: irc2go]
pkrnj has quit [Ping timeout: 260 seconds]
rikai has quit [Ping timeout: 264 seconds]
pkrnj has joined #ruby-lang
levifig has quit [Excess Flood]
ffio has quit [Ping timeout: 264 seconds]
mdedetrich has joined #ruby-lang
skmp has quit [Ping timeout: 260 seconds]
skmp has joined #ruby-lang
rikai_ has quit [Read error: Connection reset by peer]
jonahR has joined #ruby-lang
mistym has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 240 seconds]
JohnBat26 has joined #ruby-lang
dhruvasagar has joined #ruby-lang
pkrnj has quit [Ping timeout: 245 seconds]
joshuawscott has joined #ruby-lang
pkrnj has joined #ruby-lang
bf4 has joined #ruby-lang
imperator has joined #ruby-lang
<imperator> evenin'
pkrnj has quit [Ping timeout: 260 seconds]
hashkey has quit [Quit: Leaving]
rickruby has quit [Remote host closed the connection]
pkrnj has joined #ruby-lang
ohsix has quit [Ping timeout: 264 seconds]
<ledestin> what's the method to define self.foo from foo in a module?
bf4 has quit [Ping timeout: 260 seconds]
<lianj> ledestin: ?
ohsix has joined #ruby-lang
<ledestin> lianj: I've got def foo; and I want something like define_method :foo to produce self.foo alias
_ffio_ has joined #ruby-lang
ffio_ has quit [Ping timeout: 264 seconds]
<lianj> class << self; define_method …; end
joshuawscott has quit [Quit: Leaving.]
<lianj> or define_singleton_method
<pipework> ledestin: So you mean you want the instance to refer to the class for the actual method?
<pipework> You could use forwardable or do it yourself.
<ledestin> it seems that I want def foo; self.class.foo; end. Just don't want to write it myself.
<ledestin> pipework: yes
<ledestin> pipework: I think I've seen a method for doing it
<pipework> ledestin: Forwardable#def_delegators
<pipework> You can pass it a collection of the methods you want to forward to the class by unsplatting an array.
pkrnj has quit [Ping timeout: 245 seconds]
<pipework> def_delegators :class, *method_array
pkrnj has joined #ruby-lang
<ledestin> pipework: thanks
<pipework> It might need some cajoling, that was off the top of my head.
Ch00k has quit [Quit: Ch00k]
hashkey has joined #ruby-lang
LanceHaig has joined #ruby-lang
hogeo has quit [Ping timeout: 276 seconds]
hogeo has joined #ruby-lang
skmp1 has joined #ruby-lang
lysw123 has quit [Quit: lysw123]
skmp has quit [Ping timeout: 264 seconds]
scmx has joined #ruby-lang
_ffio_ has quit [Quit: WeeChat 0.4.1]
charlescooke_ has quit [Quit: charlescooke_]
relix has joined #ruby-lang
bhrgunatha has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130817191046]]
nneko001__ has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 246 seconds]
dhruvasagar has joined #ruby-lang
pkrnj has quit [Ping timeout: 260 seconds]
soba has joined #ruby-lang
rickruby has joined #ruby-lang
pkrnj has joined #ruby-lang
rsync has joined #ruby-lang
pkrnj has quit [Ping timeout: 264 seconds]
rickruby has quit [Ping timeout: 246 seconds]
pkrnj has joined #ruby-lang
pkrnj has quit [Ping timeout: 276 seconds]
bzalasky has joined #ruby-lang
pkrnj has joined #ruby-lang
soba has quit [Ping timeout: 276 seconds]
imperator has quit [Ping timeout: 246 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soba has joined #ruby-lang
soba_ has joined #ruby-lang
bf4 has joined #ruby-lang
soba has quit [Ping timeout: 245 seconds]
bungoman has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
iliketur_ has joined #ruby-lang
bf4 has quit [Ping timeout: 245 seconds]
runeb has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
pkrnj has quit [Ping timeout: 245 seconds]
mdedetrich has joined #ruby-lang
runeb has quit [Ping timeout: 246 seconds]
scmx has quit [Ping timeout: 276 seconds]
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby-lang
pkrnj has joined #ruby-lang
linc01n has quit [Quit: ZNC - http://znc.in]
skade has joined #ruby-lang
linc01n has joined #ruby-lang
ledestin has quit [Ping timeout: 245 seconds]
iliketur_ has quit [Quit: zzzzz…..]
romain_ has joined #ruby-lang
linc01n has quit [Client Quit]
romain_ has left #ruby-lang [#ruby-lang]
linc01n has joined #ruby-lang
softrli has joined #ruby-lang
postmodern has quit [Quit: Leaving]
postmodern has joined #ruby-lang
postmodern has quit [Remote host closed the connection]
rickruby has joined #ruby-lang
postmodern has joined #ruby-lang
linc01n has quit [Quit: ZNC - http://znc.in]
leekiern_ has joined #ruby-lang
linc01n has joined #ruby-lang
rickruby has quit [Ping timeout: 260 seconds]
pkrnj has quit [Ping timeout: 276 seconds]
apeiros has quit [Remote host closed the connection]
pkrnj has joined #ruby-lang
workmad3 has joined #ruby-lang
iliketur_ has joined #ruby-lang
iliketur_ has quit [Max SendQ exceeded]
dhruvasagar has quit [Ping timeout: 240 seconds]
iliketur_ has joined #ruby-lang
iliketur_ has quit [Max SendQ exceeded]
cmckni3 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dhruvasagar has joined #ruby-lang
antulik has joined #ruby-lang
mbj has joined #ruby-lang
pkrnj has quit [Ping timeout: 246 seconds]
eoinkelly has quit [Quit: eoinkelly]
iliketur_ has joined #ruby-lang
pkrnj has joined #ruby-lang
runeb has joined #ruby-lang
Pupeno has joined #ruby-lang
Pupeno has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
scmx has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
retro|cz has quit [Ping timeout: 260 seconds]
dagobah has joined #ruby-lang
iliketur_ has quit [Quit: zzzzz…..]
bf4 has joined #ruby-lang
leekiern_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
pkrnj has quit [Ping timeout: 276 seconds]
bf4 has quit [Ping timeout: 264 seconds]
zavier has quit [Quit: WeeChat 0.4.0]
Senjai has quit [Ping timeout: 264 seconds]
pkrnj has joined #ruby-lang
yatish27 has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
runeb has quit [Remote host closed the connection]
runeb has joined #ruby-lang
yatish27_ has joined #ruby-lang
yatish27 has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
<maloik> morning
dhruvasagar has joined #ruby-lang
dhruvasagar has quit [Read error: Connection reset by peer]
Plyturon has joined #ruby-lang
rickruby has joined #ruby-lang
setmeaway has joined #ruby-lang
Cakey has quit [Ping timeout: 264 seconds]
skmp1 has quit [Ping timeout: 264 seconds]
lsegal has quit [Read error: Connection reset by peer]
setmeaway has quit [Read error: Connection reset by peer]
mdedetrich has quit [Quit: Computer has gone to sleep.]
lsegal has joined #ruby-lang
skmp has joined #ruby-lang
tonni has joined #ruby-lang
sedrickcz has joined #ruby-lang
relix has joined #ruby-lang
leekiern_ has joined #ruby-lang
solars has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
runeb has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
pskosinski has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
jsullivandigs has joined #ruby-lang
benlovell has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 240 seconds]
wems has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
dagobah has quit [Remote host closed the connection]
dagobah has joined #ruby-lang
dagobah has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
dagobah has joined #ruby-lang
sr78ger has joined #ruby-lang
tonni has joined #ruby-lang
dagobah has quit [Remote host closed the connection]
tonni has quit [Remote host closed the connection]
rickruby has joined #ruby-lang
tonni has joined #ruby-lang
bf4 has joined #ruby-lang
mbj has quit [Quit: Lost terminal]
pipework has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
pipework has joined #ruby-lang
yatish27_ has left #ruby-lang [#ruby-lang]
bf4 has quit [Ping timeout: 246 seconds]
antulik has quit [Remote host closed the connection]
Plyturon has quit [Ping timeout: 245 seconds]
antulik has joined #ruby-lang
fsvehla has joined #ruby-lang
sedrickcz has quit [Remote host closed the connection]
bhrgunatha has joined #ruby-lang
<yorickpeterse> morning
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bzalasky has joined #ruby-lang
<ljarvis> morning
skmp1 has joined #ruby-lang
skmp has quit [Ping timeout: 260 seconds]
Plyturon has joined #ruby-lang
ledestin has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
bhrgunatha has quit [Quit: ChatZilla 0.9.90.1 [Firefox 23.0.1/20130817191046]]
<maloik> ugh, gotta hate it when something is out of your hands but you're just not getting the answer you need
<buranshe> sounds like my daily 'dance' with clients
<ljarvis> sounds like a bad proposal
<pipework> buranshe: Maybe if you just kept your pimp hand strong instead of dancing, these things wouldn't happen. :p
skade has joined #ruby-lang
<buranshe> it just doesn't seem to happen at all - I blame the weak hands of the account managers
hogeo has quit [Ping timeout: 245 seconds]
<buranshe> "Help me, to help you"
hhatch has joined #ruby-lang
<yorickpeterse> uugghh, I hate repo companies
<yorickpeterse> 3 years I've been chasing this guy and now I get a note saying "LOL he ran while still having to pay 120 Euros. We're closing the case"
<yorickpeterse> at least I'll be getting the rest
<yorickpeterse> should've bought a baseball bat instead
<pipework> yorickpeterse: You sold something to someone and they stopped paying for it?
<yorickpeterse> No
<yorickpeterse> This guy was the broker for my student dorm in 2009
benlovell has quit [Ping timeout: 264 seconds]
<yorickpeterse> Long story, but I ended up paying rent to the wrong account, corrected that upon discovery and asked my money back
<yorickpeterse> The dude quite literally said "Not going to happen"
<yorickpeterse> so I lawyered up
<yorickpeterse> Probably could've resolved this 3 years ago when all the info I had on this guy was still correct
rickruby has quit [Ping timeout: 264 seconds]
<yorickpeterse> well, I think I just found the dude's new address
<yorickpeterse> better verify that at home and see if I can still send the sharks in
Kabaka_ has quit [Ping timeout: 240 seconds]
<yorickpeterse> Ah how sweet, seems he's a scam artist these days
charliesome has joined #ruby-lang
skmp1 has quit [Quit: Leaving.]
Kabaka_ has joined #ruby-lang
<yorickpeterse> shame we don't have bounty hunters in NL
antulik has quit [Remote host closed the connection]
antulik has joined #ruby-lang
benlovell has joined #ruby-lang
bf4 has joined #ruby-lang
sedrickcz has joined #ruby-lang
dhruvasagar has joined #ruby-lang
sedrickcz has quit [Read error: Connection reset by peer]
antulik has quit [Ping timeout: 260 seconds]
dagobah has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sedrickcz has joined #ruby-lang
io_syl has quit [Quit: io_syl]
rsync has left #ruby-lang [#ruby-lang]
GeissT has quit [Ping timeout: 246 seconds]
MaddinXx has joined #ruby-lang
skmp has joined #ruby-lang
relix has joined #ruby-lang
bf4 has quit [Ping timeout: 264 seconds]
<maloik> yorickpeterse: sounds like you have a great market opportunity there
Forgetful_Lion has joined #ruby-lang
Criztian has joined #ruby-lang
<yorickpeterse> Yeah, "Hot single overweight black guys in your area"
<yorickpeterse> "Just *WAITING* to take your money"
kalleth has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Cakey has quit [Ping timeout: 260 seconds]
kalleth has joined #ruby-lang
scmx has quit [Ping timeout: 276 seconds]
sedrickcz has quit [Ping timeout: 276 seconds]
sedrickcz has joined #ruby-lang
<maloik> yorickpeterse: wait what, I was talking about bounty hunters
<yorickpeterse> oh right
<yorickpeterse> it's legally not allowed
<yorickpeterse> at least that I'm aware of
<maloik> oh, hmm
<maloik> suppose it's the same over here
<yorickpeterse> hmpf, Nokogiri's SAX interface makes me want to club things
chinno998 has joined #ruby-lang
antulik has joined #ruby-lang
chinno998 has quit [Max SendQ exceeded]
chinno998 has joined #ruby-lang
VTLob has joined #ruby-lang
benlovell has quit [Ping timeout: 260 seconds]
benlovell has joined #ruby-lang
yatish27 has joined #ruby-lang
hogeo has joined #ruby-lang
benlovell has quit [Ping timeout: 276 seconds]
benlovell has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
Pupeno has quit [Read error: Connection reset by peer]
Pupeno_ has joined #ruby-lang
wems has quit [Ping timeout: 240 seconds]
antulik has quit [Remote host closed the connection]
Pupeno_ has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
dagobah has quit [Remote host closed the connection]
dagobah has joined #ruby-lang
antulik has joined #ruby-lang
pipework has quit [Remote host closed the connection]
pipework has joined #ruby-lang
Pupeno has joined #ruby-lang
phracker has quit [Ping timeout: 240 seconds]
antulik has quit [Remote host closed the connection]
antulik has joined #ruby-lang
<yorickpeterse> http://hastebin.com/wurutifufa.rb doing shit like this is a PITA In the SAX API
<yorickpeterse> INNER TO OUTER PLOX (nokogiri does the opposite)
phracker has joined #ruby-lang
pellis has joined #ruby-lang
<pellis> ruby gems is running out of proper gem names :(
ledestin has quit [Quit: ledestin]
diegoviola has joined #ruby-lang
<yorickpeterse> https://rubygems.org/gems/fuck solid name right there
<yorickpeterse> https://rubygems.org/gems/derp lol wat
pellis has quit [Read error: Connection reset by peer]
pellis has joined #ruby-lang
chinno998 has quit [Quit: Leaving.]
<erikh> lol at the crabik
<erikh> skrillex doesn't hate on the disabled
charliesome has joined #ruby-lang
scmx has joined #ruby-lang
skmp has quit [Quit: Leaving.]
yatish27 has joined #ruby-lang
realDAB has joined #ruby-lang
yatish27 has quit [Read error: Connection reset by peer]
bougyman has quit [Ping timeout: 264 seconds]
yatish27 has joined #ruby-lang
poga has quit [Remote host closed the connection]
bf4 has joined #ruby-lang
Pupeno_ has joined #ruby-lang
Pupeno has quit [Read error: Connection reset by peer]
<pipework> That's not a bad gem, if it works well.
<pipework> the fuck one.
<yorickpeterse> erikh: how is "derp" even related to disabled people?
JohnBat26 has quit [Ping timeout: 275 seconds]
<pipework> yorickpeterse: steveklabnik is known for being two ways about his activism and defense of humanity the world over. I don't know what to expect from him anymore.
<yorickpeterse> I've met him in person and he's a nice guy overall
<yorickpeterse> Though his views on the police were a bit odd
<pipework> He's not on my favorite rubyist list though.
<pipework> But then again, neither am I.
<yorickpeterse> Jim weirich is by far my favourite Ruby wizard
<yorickpeterse> For one he actually looks like a wizard
<pipework> It does help, yes.
<pipework> My professional title is "Software Sourcerer".
bf4 has quit [Ping timeout: 246 seconds]
<yorickpeterse> I'm just a "Developer"
<yorickpeterse> I don't care for titles
<pipework> yorickpeterse: Me neither, that's why I had fun with it.
<yorickpeterse> Though "Dr. Yorick" would sound awesome
<pipework> I've been "duck whisperer" before.
<yorickpeterse> haha
<pipework> "lonely ginger kid" once
sstrickl has quit [Quit: sstrickl]
<yorickpeterse> I'd go around correcting people every time they didn't address me as Dr.
<pipework> yorickpeterse: That's the only reason I want a PhD.
<yorickpeterse> "Hey yorick" "No, it's Dr. Yorick"
dhruvasagar has quit [Ping timeout: 246 seconds]
<pipework> "Just call me James. Doctor James.
<pipework> "
<yorickpeterse> haha
Pupeno_ has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby-lang
LOLZebra has joined #ruby-lang
LOLZebra has quit [Read error: Connection reset by peer]
dhruvasagar has joined #ruby-lang
<pipework> People enjoy the spelling of my title.
<yorickpeterse> I wonder what whitequark would look like if he grew a proper Unix beard
<pipework> yorickpeterse: Like he needs to shave his neck.
<yorickpeterse> I wonder what I would look like if I could actually grow a beard
<pipework> I grow things that are similar to goatees.
<pipework> Right now I'm growing a fine thick line of hair along my jawline as well.
<yorickpeterse> You mean bumfuz?
<yorickpeterse> or w/e it was called
<erikh> klabnik's all about the attention
<pipework> Naw, it's like a quarter of an inch wide and is just on the jawline.
<erikh> I'd swear he was a teenage girl at times
<pipework> yorickpeterse: When I've got it how I want, I'll take a picture.
<yorickpeterse> pfff
<yorickpeterse> you better
<yorickpeterse> somebody make rubybeards.io
<maloik> I don't think he's all about the attention, I think he actually believes everything he says
<maloik> Doesn't make him a bad person, I just take his views with a saltlake
<yorickpeterse> gem install beard
<yorickpeterse> oh shit, that gem actually exists
<yorickpeterse> last release in 2010 :<
<pipework> ruby -r 'beard' -e "yorick.beard = Beard.new(:handsome, :unix)"
<pipework> Probably would raise a NotFuckingPossible error. :(
<pipework> handsome unixbeard :(
cads has joined #ruby-lang
sstrickl has joined #ruby-lang
<erikh> i've got me a chin strap and a goatee
<erikh> well a van dyke technically but that's because everyone thinks that's what a goatee is these days
<pipework> Yeah, that's what I'm going with, a chinstrap.
<pipework> erikh: I'm not doing the point on the van dyke, if that matters.
<yorickpeterse> I'm currently rocking the "Dude's been spending too much time coding late"
<pipework> yorickpeterse: I hope that someone finds it attractive, for your sake.
<maloik> I've been saving since february, but I have the feeling it's not getting much longer anymore :-(
<pipework> Preserve those genes, we need more developers who don't suck. :d
<erikh> traditionally a goatee didn't have a moustache
<maloik> I hope some hairgel will enable me to get a proper pirate beard by october
<pipework> erikh: I don't have a mustache.
<erikh> ah
<yorickpeterse> pipework: don't exactly mind, not actively "on the prowl" anyway
<pipework> yorickpeterse: Don't ignore the genetic imperative too long, bruv.
<yorickpeterse> m8 I don't even want kids, at least not for another 10 years
<erikh> sometimes people just need to get laid
<erikh> frankly
<pipework> yorickpeterse: I'm blaming you if we become an idiocracy then.
<yorickpeterse> haha
<yorickpeterse> Implying the world already isn't
<yorickpeterse> "You're the chosen one to repopulate the planet!" "Fuck that my code isn't working"
<yorickpeterse> ^ basically me
<pipework> lul
dhruvasagar has quit [Ping timeout: 260 seconds]
sstrickl has quit [Quit: sstrickl]
<yorickpeterse> lol what
<yorickpeterse> looks legit
<pipework> I'd consider her if only to ensure that my offspring would have bitchin' facial hair.
dhruvasagar has joined #ruby-lang
<yorickpeterse> meh, I'm glad I'm not hairy as an ape
tomplast has joined #ruby-lang
tomplast has left #ruby-lang [#ruby-lang]
tomplast has joined #ruby-lang
xuser has quit [Ping timeout: 264 seconds]
<tomplast> Hi! I'm setting up a restrictive firewall and I want to be able to download gems via the Gem command. Can anyone tell me which destination host and port I need to allow?
postmodern has quit [Quit: Leaving]
realDAB has quit [Quit: realDAB]
<darix> tomplast: rubygems.org and if i recall correctly they use amazon s3 storage
<darix> the later might be a problem for you
xuser has joined #ruby-lang
benlovell has quit [Ping timeout: 260 seconds]
<tomplast> :(
joshuairl has joined #ruby-lang
<tomplast> So what are my alterantives.. Downloading all packages on another machine?
<maloik> not that it helps, but why are you disabling outbound connections ?
<maloik> or restricting them
<DefV> sounds like security measures?
<maloik> (im just curious, you probably have a good reason)
tkuchiki has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
hogeo has quit [Remote host closed the connection]
yatish27 has quit [Read error: Connection reset by peer]
yatish27 has joined #ruby-lang
<yorickpeterse> So...if I want to build some HTML can I use Jim's builder for that or will I get shunned for using an XML builder for HTML?
hashkey_ has joined #ruby-lang
<yorickpeterse> fuckit, I'll use builder
ldnunes has joined #ruby-lang
hashkey has quit [Killed (adams.freenode.net (Nickname regained by services))]
hashkey_ is now known as hashkey
<gnufied> yorickpeterse: https://github.com/gregbell/arbre
rsl has joined #ruby-lang
<yorickpeterse> hmm
benlovell has joined #ruby-lang
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fsvehla has quit [Quit: fsvehla]
pellis has quit [Quit: Leaving]
charlescooke_ has joined #ruby-lang
nneko001__ has quit [Quit: Konversation terminated!]
nneko001__ has joined #ruby-lang
<yorickpeterse> oh derp, I already have Nokogiri
<yorickpeterse> might as well use that
breakingthings has joined #ruby-lang
<tomplast> The company I'm working at wanted me to regulate the outbound traffic. You can never be too careful when it comes to network traffic ;).
nneko001__ has quit [Client Quit]
Cakey has joined #ruby-lang
<tomplast> One hole is all it takes and then you start to DDOS someone...
wallerdev has joined #ruby-lang
<tomplast> I hosted a Linux server a couple of years ago that got hacked, after that I became paranoid..
nneko001__ has joined #ruby-lang
mbj has joined #ruby-lang
<tomplast> But there must be some way to just open up the firewall for port and host the Gem command uses...
<whitequark> tomplast: I think you can use a proxy
charliesome has joined #ruby-lang
wallerdev has quit [Client Quit]
<tomplast> Okay and how I restrict that?
<tomplast> do I
Cakey has quit [Ping timeout: 264 seconds]
<tomplast> I'm trying to tighten the security, not using a proxy to bypass it.
skade has joined #ruby-lang
pizdets has quit []
leekiern_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pipework has quit [Remote host closed the connection]
cored has joined #ruby-lang
cored has joined #ruby-lang
antulik has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
sedrickcz has quit [Remote host closed the connection]
dagobah has quit [Remote host closed the connection]
yatish27 has joined #ruby-lang
dagobah has joined #ruby-lang
sedrickcz has joined #ruby-lang
dagobah has quit [Remote host closed the connection]
sedrickcz has quit [Remote host closed the connection]
yatish27 has quit [Remote host closed the connection]
runeb has joined #ruby-lang
sedrickcz has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
<darix> tomplast: for secure envs i would a) download gems on one machine and review the code there b) then either host them on a local gem server or c) package them using my native package manager, so i dont have to do the building more than once
MaddinXx has quit [Remote host closed the connection]
sr78ger has quit [Ping timeout: 276 seconds]
dagobah has joined #ruby-lang
pothibo has joined #ruby-lang
awea has joined #ruby-lang
umgrossco has joined #ruby-lang
mbj has quit [Quit: Lost terminal]
yfeldblum has quit [Ping timeout: 260 seconds]
snk has quit [Quit: rebut]
joshuawscott has joined #ruby-lang
bungoman has joined #ruby-lang
snk has joined #ruby-lang
workmad3 has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby-lang
bf4 has joined #ruby-lang
bhrgunatha has joined #ruby-lang
Forgetful_Lion has quit [Remote host closed the connection]
MaddinXx has joined #ruby-lang
poga has joined #ruby-lang
jxie has quit [Remote host closed the connection]
leekiern_ has joined #ruby-lang
pipework has joined #ruby-lang
bhrgunatha has quit [Ping timeout: 245 seconds]
kirin` has quit [Ping timeout: 260 seconds]
soba_ has quit [Ping timeout: 240 seconds]
bf4 has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby-lang
kurko_ has joined #ruby-lang
skade has quit [Ping timeout: 260 seconds]
dagobah has quit [Remote host closed the connection]
pothibo has quit [Remote host closed the connection]
sedrickcz has quit [Remote host closed the connection]
pipework has quit [Remote host closed the connection]
dagobah has joined #ruby-lang
pipework has joined #ruby-lang
sedrickcz has joined #ruby-lang
dagobah has quit [Remote host closed the connection]
dagobah has joined #ruby-lang
sedrickcz has quit [Remote host closed the connection]
pipework has quit [Remote host closed the connection]
breakingthings has quit [Remote host closed the connection]
breakingthings has joined #ruby-lang
skade has joined #ruby-lang
relix has joined #ruby-lang
kirin` has joined #ruby-lang
kurko_ has quit [Quit: Computer has gone to sleep.]
robbyoconnor has joined #ruby-lang
tkuchiki has joined #ruby-lang
wmoxam has joined #ruby-lang
cyri_ has joined #ruby-lang
cyri_ has quit [Client Quit]
cyri_ has joined #ruby-lang
nneko001__ has quit [Quit: Konversation terminated!]
<ljarvis> ok I need to get the 2nd sunday of december for a given year
<ljarvis> time for math
rwk1 has joined #ruby-lang
<ljarvis> *hopes someone does it before he tries*
<maloik> in rails ?
<maloik> if yes: Date.today.beginning_of_year.end_of_week + 1.week
nneko001__ has joined #ruby-lang
<ljarvis> that's january silly
<maloik> oh
<maloik> Date.today.end_of_year.beginning_of_month + 1.week
<maloik> THERE
tomzx_mac has joined #ruby-lang
<ljarvis> that'll always return the 8th of december wont it
benlovell has quit [Ping timeout: 268 seconds]
<maloik> I missed an end_of_week
<maloik> it's friday
<maloik> don't nitpick :P
<apeiros> ljarvis: Date.civil + weekday + a bit of modulo will help you out
<apeiros> weekday --> wday
<ljarvis> apeiros: yeah before maloik started throwing rails fairy dust at me that's what I was thinking
<apeiros> note that sunday = 0
<ljarvis> but perhaps this would be easier to read
<ljarvis> aye
bungoman_ has joined #ruby-lang
retro|cz has joined #ruby-lang
solars has quit [Ping timeout: 264 seconds]
<apeiros> yeah, if you're on rails, maybe
<maloik> reminds me of this bug we had a while back... I can't recall the details, but apparently last year had 54 weeks
<apeiros> impossible
<maloik> week 53 is always the first week of the next year, but this year was special apparently
<apeiros> at least in ISO
<apeiros> but week-of-year's year can divert from year
<apeiros> i.e. week 53 of year A can end in year A+1
<maloik> we did the calculation and it will only happen again in 38 years
<maloik> so we were like 'fuck that, well be retired by then' and just waited for the year to pass
<apeiros> standard year has 52 weeks, some have 53
<apeiros> "just like the Gregorian calendar. In every 400 years there are 71 years with 53 weeks."
<apeiros> from WP
<maloik> yea well this one had 54 by that calculation :-)
<apeiros> then you miscalculated :-p
<maloik> grrr you're really going to make me look this up arent you :(
<apeiros> "An ISO week-numbering year has 52 or 53 full weeks (364 or 371 days). "
bungoman has quit [Ping timeout: 256 seconds]
<apeiros> maloik: I wrote a whole f'ing date/time library. I know my shits when it comes to that ;-p
<apeiros> it was supposed to replace rubys (then, and still a bit) crappy time/date/datetime mess. still sad I didn't finish it. was mostly done :(
benlovell has joined #ruby-lang
jp- has joined #ruby-lang
fenicks has joined #ruby-lang
runeb has quit [Remote host closed the connection]
bungoman_ has quit [Remote host closed the connection]
bungoman has joined #ruby-lang
mdedetrich has joined #ruby-lang
<maloik> fuck it, I cant find what was going on back then
bf4 has joined #ruby-lang
<maloik> this is a year ago
<maloik> still, I remember it clearly that some weird shit was going on and it only happened last year.. next time will be in 38 years
jsullivandigs has joined #ruby-lang
<ljarvis> >> require 'date'; d = Date.new(2014, 12, 1); d += (14 - d.wday); d.strftime("%a")
<eval-in> ljarvis => "Sun" (https://eval.in/45911)
<maloik> you clever man you
<apeiros> maloik: maybe you use the US way of counting weeks
<ljarvis> heh im sure it can be improved
<apeiros> not ISO
<apeiros> not sure how that one works
bf4 has left #ruby-lang [#ruby-lang]
<apeiros> ljarvis: oh, without modulo then :D
<ljarvis> apeiros: im not very good at math which usually means i either end up with nothing, or the simplest solution
<ljarvis> not that modulo really counts, but yeah
<maloik> I dunno it's no longer an issue so whatever :-)
robbyoconnor has quit [Ping timeout: 245 seconds]
VTLob has quit [Quit: VTLob]
<ljarvis> actually that's broken
* apeiros spams a partner company with account creations, laaalala…
<apeiros> (testing)
wallerdev has joined #ruby-lang
<yfeldblum> is Enumerable#group_by stable? as in, if a precedes b in the enumerable and both have the same group key, will a precede b in the group?
<apeiros> yfeldblum: I'd assume so. if it doesn't state in the docs, I'd check the source, though.
<apeiros> yfeldblum: if you figure it out, tell zzak, whether he could amend the docs
<apeiros> why I'd assume it is stable: it iterates using each, it will almost certainly use push to append to existing groups
Criztian has joined #ruby-lang
cmckni3 has joined #ruby-lang
cirenyc has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 264 seconds]
cmckni3 has quit [Ping timeout: 245 seconds]
nneko001__ has quit [Quit: Konversation terminated!]
s0ber has quit [Remote host closed the connection]
s0ber has joined #ruby-lang
shame has quit [Read error: Operation timed out]
mistym has joined #ruby-lang
kurko_ has joined #ruby-lang
lfox has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
rippa has joined #ruby-lang
<yorickpeterse> I've reached a milestone with this XML format
<yorickpeterse> "Just give me the XML!" instead of the specification
<yorickpeterse> because the spec is badly formatted
<yorickpeterse> And the more I use it the more this format feels like its heavily over-engineerd
wallerdev has quit [Quit: wallerdev]
soba has joined #ruby-lang
lfox has quit [Client Quit]
relix has quit [Quit: Textual IRC Client: www.textualapp.com]
benlovell has quit [Ping timeout: 268 seconds]
KU0N has joined #ruby-lang
<ljarvis> cool story bro
<yorickpeterse> ljarvis: you never fail to be a brit
mdedetrich has quit [Quit: Computer has gone to sleep.]
mistym has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
rikai has joined #ruby-lang
relix has joined #ruby-lang
benlovell has joined #ruby-lang
relix has quit [Client Quit]
GeissT has joined #ruby-lang
shame has joined #ruby-lang
killthe|afk is now known as killtheliterate
kurko_ has quit [Quit: Computer has gone to sleep.]
heftig has quit [Read error: Connection reset by peer]
heftig_ has joined #ruby-lang
heftig_ is now known as heftig
relix has joined #ruby-lang
relix has quit [Client Quit]
flak has joined #ruby-lang
flak is now known as Guest34931
relix has joined #ruby-lang
relix has quit [Client Quit]
bougyman has joined #ruby-lang
bougyman has joined #ruby-lang
rippa has quit [Ping timeout: 248 seconds]
mistym has joined #ruby-lang
wallerdev has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
bf4 has joined #ruby-lang
<ljarvis> :)
relix has joined #ruby-lang
nathanstitt has joined #ruby-lang
MaddinXx_ has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
erik__ has quit [Ping timeout: 245 seconds]
cyri_ has joined #ruby-lang
mbj has joined #ruby-lang
rippa has joined #ruby-lang
bungoman_ has joined #ruby-lang
Guest34931 has quit [Ping timeout: 248 seconds]
hhatch has quit [Ping timeout: 260 seconds]
bungoman has quit [Ping timeout: 268 seconds]
bantic has joined #ruby-lang
lfox has joined #ruby-lang
jonahR has quit [Quit: jonahR]
io_syl has joined #ruby-lang
bungoman_ has quit [Remote host closed the connection]
bungoman has joined #ruby-lang
siberia has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
GeissT has quit [Quit: MillBroChat AdIRC User]
havenwood has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
wems has joined #ruby-lang
Scymex has joined #ruby-lang
scmx has quit [Read error: Connection reset by peer]
poga has quit [Remote host closed the connection]
cyri_ has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
workmad3 has joined #ruby-lang
fenicks has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
fenicks has joined #ruby-lang
bantic has quit [Quit: bantic]
poga has joined #ruby-lang
soba_ has joined #ruby-lang
soba has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hhatch has joined #ruby-lang
sstrickl has joined #ruby-lang
cirenyc has quit [Quit: Leaving...]
mistym has quit [Remote host closed the connection]
cyri_ has quit [Quit: cyri_]
x0f_ has quit [Ping timeout: 245 seconds]
_jpb_ has joined #ruby-lang
awea has quit [Read error: Connection reset by peer]
Plyturon has quit [Quit: Leaving]
benlovell has quit [Ping timeout: 240 seconds]
Plyturon has joined #ruby-lang
Plyturon has quit [Client Quit]
Plyturon has joined #ruby-lang
tonni has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
dagobah has quit [Remote host closed the connection]
_jpb_ has quit [Ping timeout: 256 seconds]
[[thufir]] has joined #ruby-lang
sstrickl has quit [Quit: sstrickl]
shame has quit [Ping timeout: 245 seconds]
dabradley has quit [Ping timeout: 245 seconds]
xuser has quit [Changing host]
xuser has joined #ruby-lang
Swooop has joined #ruby-lang
siberia has quit [Quit: siberia]
efrainolivares has joined #ruby-lang
cyri_ has joined #ruby-lang
Uranio has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
shame has joined #ruby-lang
tonni has joined #ruby-lang
benlovell has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
Swooop has quit [Quit: Textual IRC Client: www.textualapp.com]
mistym has joined #ruby-lang
lfox has joined #ruby-lang
leekiern_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
poga has quit [Remote host closed the connection]
poga has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
Scymex has quit [Ping timeout: 256 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nathanstitt has joined #ruby-lang
sepp2k has joined #ruby-lang
tonni has quit [Remote host closed the connection]
breakingthings has quit [Remote host closed the connection]
jxie has joined #ruby-lang
breakingthings has joined #ruby-lang
efrainolivares_ has joined #ruby-lang
poga has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 264 seconds]
nathanstitt has quit [Read error: Connection reset by peer]
poga has joined #ruby-lang
efrainolivares has quit [Ping timeout: 264 seconds]
efrainolivares_ has left #ruby-lang [#ruby-lang]
iliketur_ has joined #ruby-lang
iliketur_ has quit [Client Quit]
iliketur_ has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
<andrewvos> OVERENGINEERED XML? WELL I NEVER
rwk1 has quit [Remote host closed the connection]
vilni has joined #ruby-lang
rwk1 has joined #ruby-lang
mmorga has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
dhruvasagar has joined #ruby-lang
rwk1 has quit [Ping timeout: 260 seconds]
<ljarvis> FIGHT XML WITH JAVA
mbj has quit [Quit: leaving]
hahuang65 has quit [Ping timeout: 260 seconds]
leekiern_ has joined #ruby-lang
MaddinXx_ has quit [Remote host closed the connection]
vilni has quit [Ping timeout: 256 seconds]
x0F has joined #ruby-lang
iliketur_ has quit [Quit: zzzzz…..]
erik____ has joined #ruby-lang
rwk1 has joined #ruby-lang
<yorickpeterse> kill it with XML
<erikh> actually fighting it with C# is kind of nice
<erikh> XML is actually... pretty awesome
<erikh> there
<ljarvis> its a trap
hhatch_ has joined #ruby-lang
<yorickpeterse> erikh: what drugs are you taking?
<erikh> have you done any xml work in C#?
<ljarvis> oh that part I agree with
rwk1 has quit [Ping timeout: 256 seconds]
<ljarvis> it's the second sentence
<canton7> if you're starting with the C# it's nice
<ljarvis> shudder
<erikh> canton7: yeah, fair point
<canton7> if you're starting with the C#, and it doesn't map nicely onto any internal data structures you can come up with, or you don't know the exact format... not so nice
hhatch has quit [Ping timeout: 245 seconds]
<canton7> *if you're starting with the XML
<canton7> oops
<canton7> though, nokogiri is the nicest XML library I've seen, ever
<canton7> but all json parsers blow it out of the water :P
<erikh> json's a lot simpler in general
<erikh> not always the right choice, but frequently a good one
<canton7> aye
cirenyc has joined #ruby-lang
<canton7> not good for markup, which is where XML *should* have stayed
<canton7> (it's in the acronnym, damnit)
<canton7> *acronym
<erikh> heh
killtheliterate has left #ruby-lang [#ruby-lang]
<Uranio> I wonder why XML still existing?
achiu has quit [Quit: WeeChat 0.4.1]
<Uranio> jabber? O_o
<canton7> momentum, I suspect
iliketur_ has joined #ruby-lang
achiu has joined #ruby-lang
<Uranio> bacuase I guest there is nothing that XML can do it and json can not do it
enebo has joined #ruby-lang
<Uranio> wastin a lot of </tags>
<Uranio> wasting*
adambeynon has joined #ruby-lang
apeiros has joined #ruby-lang
umgrossco has left #ruby-lang [#ruby-lang]
umgrossco has joined #ruby-lang
cyri_ has quit [Quit: cyri_]
<umgrossco> I thought the JSON schemas were still draft.
brianpWins has joined #ruby-lang
achiu has quit [Quit: WeeChat 0.4.1]
workmad3 has joined #ruby-lang
mmorga has quit [Remote host closed the connection]
hahuang65 has joined #ruby-lang
tdm00 has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
achiu has joined #ruby-lang
tonni has joined #ruby-lang
workmad3 has joined #ruby-lang
mmorga has joined #ruby-lang
_jpb_ has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
bzalasky has joined #ruby-lang
cored has quit [Ping timeout: 240 seconds]
scmx has joined #ruby-lang
cored has joined #ruby-lang
cored has joined #ruby-lang
cored has quit [Changing host]
sepp2k has quit [Quit: Leaving.]
vilni has joined #ruby-lang
snarfmason has joined #ruby-lang
tenderlove has joined #ruby-lang
Criztian has quit [Remote host closed the connection]
hhatch_ has quit [Ping timeout: 256 seconds]
kurko_ has joined #ruby-lang
tesseract has joined #ruby-lang
tesseract is now known as Guest21029
Guest21029 has quit [Client Quit]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
soba has joined #ruby-lang
tesseract-2 has joined #ruby-lang
wallerdev has joined #ruby-lang
soba_ has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
bzalasky has quit [Remote host closed the connection]
kurko_ has quit [Ping timeout: 264 seconds]
soba has quit [Read error: Connection reset by peer]
soba has joined #ruby-lang
tesseract-2 has quit [Quit: tesseract-2]
Cakey has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
<waxjar> xml is still big in java
saarinen has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
<apeiros> xml isn't as bad as people make it
bzalasky has joined #ruby-lang
<apeiros> I prefer sane xml over sane json in an API
<lianj> yea, just xml over coding can get insane
Uranio has quit [Quit: while you reading this, a kitty dies]
joshuairl has quit [Quit: joshuairl]
loincloth has joined #ruby-lang
killthe|afk has joined #ruby-lang
klm1 has joined #ruby-lang
Senjai has joined #ruby-lang
Senjai has quit [Changing host]
Senjai has joined #ruby-lang
<banisterfiend> apeiros why do u prefer xml over json
<apeiros> sane xml is largely self-documenting and easier to read
Cakey has quit [Ping timeout: 264 seconds]
shame has quit [Ping timeout: 264 seconds]
rippa has quit [Ping timeout: 248 seconds]
<apeiros> if you transport any sufficiently large datastructure, json just becomes an incomprehensible mess of hashes/arrays
jaimef has quit [Excess Flood]
soba has quit [Ping timeout: 264 seconds]
richardburton has joined #ruby-lang
jaimef has joined #ruby-lang
rippa has joined #ruby-lang
richardburton has quit [Quit: Leaving.]
roman1210 has joined #ruby-lang
<umgrossco> banisterfiend, I rather like XML Schemas over JSON Schemas. However, parsing JSON is much more straight forward.
leekiern_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_jpb_ has quit [Ping timeout: 256 seconds]
leekiernan has joined #ruby-lang
<apeiros> umgrossco: only because there's only like 6 datatypes
<apeiros> sane xml can be parsed quite straight forward too in that sense
kurko_ has joined #ruby-lang
<apeiros> i.e., as a tree of hashes/arrays with primitive values. especially with an xsd which can hint you the type
shame has joined #ruby-lang
<umgrossco> apeiros, for more complex specifications, I like XML, but for small straight forwards stuff that there just might be a lot of, I like JSON.
<apeiros> it's actually sad that there's no "XMLSimple" standard which just defines some basic datatypes
ruby-lang789 has joined #ruby-lang
ruby-lang789 has quit [Client Quit]
hashkey_ has joined #ruby-lang
hashkey is now known as Guest76518
Guest76518 has quit [Killed (moorcock.freenode.net (Nickname regained by services))]
hashkey_ is now known as hashkey
vaks2 has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
wems has quit [Ping timeout: 264 seconds]
mistym_ has joined #ruby-lang
mbj has joined #ruby-lang
mistym has quit [Ping timeout: 260 seconds]
mmorga_ has joined #ruby-lang
fedesilva has joined #ruby-lang
<rickhull> anyone familiar with the sqlite-ruby gem?
<yxhuvud> why?
<rickhull> i'm trying to understand transaction semantics — particularly, if an exception is raised and the txn is rolled back, how do i know?
mmorga has quit [Ping timeout: 245 seconds]
<rickhull> it seems like the transaction just fails silently
<rickhull> (fails, meaning it is rolled back)
saarinen has quit [Quit: saarinen]
bzalasky has quit [Remote host closed the connection]
kurko_ has quit [Quit: Computer has gone to sleep.]
<yxhuvud> that is beyond my knowledge of it
<rickhull> transaction itself always returns true, or the value of #abort or #commit
<rickhull> s/#abort/#rollback/
forrest has joined #ruby-lang
<rickhull> and #rollback and #commit always return true
forrest has quit [Read error: Connection reset by peer]
<rickhull> er, actually it just always returns true
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
<rickhull> i've not used db transactions much. but this seems pretty wack to me
postmodern has joined #ruby-lang
mmorga_ has quit [Ping timeout: 245 seconds]
<rickhull> taking a step back, anyone familiar with bulk inserts in sqlite?
<rickhull> s/bulk/faster/ perhaps
<rickhull> i see 3 options: PRAGMA synchronous = 0, rolling inserts into a transaction, or using #execute_batch
<rickhull> i think #execute_batch is a sqlite-ruby-ism
havenwood has quit [Ping timeout: 248 seconds]
<rickhull> side note, PRAGMA synchronous = 0 takes my import time from ~5 minutes to ~10 seconds
<rickhull> so if i lose power during that 10 seconds, it's trivial to recreate the data from scratch
klm1 has left #ruby-lang [#ruby-lang]
Senjai_ has joined #ruby-lang
Senjai has quit [Ping timeout: 256 seconds]
<rickhull> however, if i can get similar perf with synch=1, using transactions, i'm interested
dabradley has joined #ruby-lang
<rickhull> but not if a transaction fails, records fail to get inserted, and i don't know about it
Gabri has joined #ruby-lang
Gabri has quit [Remote host closed the connection]
saarinen has joined #ruby-lang
diegoviola has quit [Ping timeout: 264 seconds]
saarinen has quit [Client Quit]
VTLob has joined #ruby-lang
mistym_ has quit [Remote host closed the connection]
vilni has quit [Ping timeout: 248 seconds]
bantic has joined #ruby-lang
lfox has quit [Quit: ZZZzzz…]
cirenyc has quit [Quit: Leaving...]
havenwood has joined #ruby-lang
joshuawscott has quit [Quit: Leaving.]
wmoxam has quit [Quit: Lost terminal]
diegoviola has joined #ruby-lang
LauraE has joined #ruby-lang
jp- has quit [Quit: OK, I believe you… but my tommy gun don't]
KU0N has quit [Quit: Linkinus - http://linkinus.com]
Nisstyre has joined #ruby-lang
benanne has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 264 seconds]
killthe|afk is now known as killtheliterate
cirenyc has joined #ruby-lang
tdm00 has quit [Quit: Make like a banana and split!]
cirenyc has quit [Ping timeout: 268 seconds]
<erikh> rickhull: sec
mmorga has joined #ruby-lang
mmorga has quit [Read error: Connection reset by peer]
soba has joined #ruby-lang
mmorga has joined #ruby-lang
mbj has quit [Quit: leaving]
bf4 has left #ruby-lang [#ruby-lang]
yxhuvud has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby-lang
breakingthings has quit []
umgrossco has quit [Quit: Nettalk6 - www.ntalk.de]
sstrickl has joined #ruby-lang
diegoviola has quit [Ping timeout: 245 seconds]
eoinkelly has joined #ruby-lang
jlyman has joined #ruby-lang
mistym has joined #ruby-lang
snarfmason has quit [Ping timeout: 245 seconds]
loincloth has quit [Remote host closed the connection]
<rickhull> it turns out my complaint is only for the block form
<rickhull> basically i need to do the exception handling
<rickhull> so yeah, this code
snarfmason has joined #ruby-lang
<rickhull> the exception is raised through, right?
ldnunes has quit [Quit: Leaving]
<rickhull> maybe sqlite-ruby works the same way. i'm not sure if ensure swallows the exception or the caller sees it
workmad3 has quit [Read error: Operation timed out]
<rickhull> i'm pretty sure ensure doesn't swallow it, so the semantics should be same, and it was much ado about nothing
<rickhull> confirmed, thanks. it was good to see similar semantics in a different context
Plyturon has quit [Quit: Leaving]
soba_ has joined #ruby-lang
eoinkelly has quit [Quit: eoinkelly]
killtheliterate has left #ruby-lang [#ruby-lang]
yfeldblum has quit [Ping timeout: 268 seconds]
soba has quit [Ping timeout: 256 seconds]
bzalasky has joined #ruby-lang
jsullivandigs has joined #ruby-lang
scudco has joined #ruby-lang
joshuawscott has joined #ruby-lang
scudco has quit [Read error: Connection reset by peer]
snarfmason has quit [Quit: Textual IRC Client: www.textualapp.com]
snarfmason has joined #ruby-lang
<zenspider> omg I fucking love mathematica
brianpWins has joined #ruby-lang
killtheliterate has joined #ruby-lang
vaks2 has quit []
soba has joined #ruby-lang
richardburton has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
scmx has quit [Ping timeout: 264 seconds]
roman1210 has quit [Remote host closed the connection]
soba_ has quit [Ping timeout: 268 seconds]
soba_ has joined #ruby-lang
rwk1 has joined #ruby-lang
soba has quit [Ping timeout: 260 seconds]
efrainolivares has joined #ruby-lang
rwk1 has quit [Ping timeout: 248 seconds]
bantic has quit [Quit: bantic]
soba_ has quit [Ping timeout: 256 seconds]
joshuawscott has quit [Quit: Leaving.]
brianpWins has quit [Quit: brianpWins]
<darix> zenspider: what did you do with it?
softrli has quit [Remote host closed the connection]
<zenspider> darix: um... math?
<zenspider> actually all sorts of functional / math programming... but... yeah. math.
<darix> i guessed that much
yfeldblum has joined #ruby-lang
fenicks has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
tonni has quit [Remote host closed the connection]
efrainolivares has quit [Remote host closed the connection]
Cakey has joined #ruby-lang
crudson has left #ruby-lang [#ruby-lang]
jlyman has quit [Remote host closed the connection]
Cakey has quit [Ping timeout: 245 seconds]
rwk1 has joined #ruby-lang
bungoman has quit [Read error: Operation timed out]
rwk1 has quit [Ping timeout: 240 seconds]
killtheliterate has left #ruby-lang [#ruby-lang]
sharifhadidi has joined #ruby-lang
eoinkelly has joined #ruby-lang
KuramasKarma has joined #ruby-lang
KuramasKarma has quit [Remote host closed the connection]
hahuang65 has quit [Read error: Connection reset by peer]
iliketur_ has quit [Quit: zzzzz…..]
iliketur_ has joined #ruby-lang
_jpb_ has joined #ruby-lang
matti has quit [Quit: Oh dear...]
rails_smith has quit [Quit: Leaving.]
tomplast has quit [Ping timeout: 245 seconds]
sharifhadidi has quit [Quit: sharifhadidi]
apeiros has quit [Remote host closed the connection]
VTLob has quit [Quit: VTLob]
Oloryn_lt2 has quit [Read error: Connection reset by peer]
Nanno has joined #ruby-lang
tomplast has joined #ruby-lang
<zenspider> grr... Shellwords.escape is overzealous... is there something that'll just properly deal with quoting only?
Nanno has quit [Client Quit]
<darix> zenspider: https://github.com/thoughtbot/cocaine maybe
<yorickpeterse> ugh, another "funny" Gem name
<waxjar> what a terrible name
mistym_ has joined #ruby-lang
<zenspider> ew. no. I'll stick to a single gsub
mmorga has quit [Ping timeout: 256 seconds]
nathanstitt has joined #ruby-lang
mistym has quit [Ping timeout: 268 seconds]
Nisstyre has quit [Quit: Leaving]
<zenspider> grr... I'm running the command via system w/ array args
<zenspider> I get: 0:1: syntax error: A unknown token can’t go here. (-2740)
<zenspider> but when I prefix the command with "echo", and then run THAT output by hand... works fine.
<zenspider> something is wonky
<erikh> rickhull: yeah, it raises and then checks if the transactino is still active
<erikh> sorry, flipping between a few computers today
<zenspider> fuck... it's definitely ruby.
<erikh> zenspider: system array form will revert to shellquoting (or used to, at least) if you use quote-like characters in it
<erikh> there's a strtok and everything for it
<zenspider> yeah... that's why I was using it
<zenspider> it must be over-quoting or something
<erikh> oh, I thought you wanted execv semantics
<zenspider> I switched to string form and it works fine
<zenspider> huh
<erikh> yep, that's some scary-ass code too
<zenspider> ok. yeah. I was overprotecting myself by putting extra quotes... it was then quoting up on that and... yeah. a mess.
<zenspider> now I can stay in array form and be a bit safer
andbutsothen has joined #ruby-lang
mistym_ is now known as mistym
xuser has quit [Remote host closed the connection]
spuk has quit [Ping timeout: 268 seconds]
nathanstitt has quit [Quit: I growing sleepy]
spuk has joined #ruby-lang
mistym has quit [Remote host closed the connection]
<zenspider> erikh: thanks. that was the nudge I needed
<erikh> np
tomzx_mac has joined #ruby-lang
vilni has joined #ruby-lang
mdedetrich has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
sharifhadidi has joined #ruby-lang
sharifhadidi has left #ruby-lang [#ruby-lang]
tomplast has quit [Read error: Connection reset by peer]
cirenyc has joined #ruby-lang
tomplast has joined #ruby-lang
richardburton has quit [Quit: Leaving.]
apeiros has joined #ruby-lang