apeiros changed the topic of #ruby-lang to: Nick registration required to talk || Ruby 2.0.0-p195: http://ruby-lang.org (Ruby 1.9.3-p429) || Paste >3 lines of text on http://gist.github.com
justinmburrous has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
havenwood has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
andrewvos has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
gregmoreno has quit [Ping timeout: 276 seconds]
apeiros has joined #ruby-lang
verto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
slowhands has quit [Quit: Computer has gone to sleep]
GarethAdams has quit [Quit: Leaving...]
srji has quit [Ping timeout: 248 seconds]
tylersmith has quit [Remote host closed the connection]
mikko has joined #ruby-lang
swav has quit [Remote host closed the connection]
ChinggizKhan has joined #ruby-lang
mikko has quit [Ping timeout: 245 seconds]
kith has quit [Read error: Connection reset by peer]
saarinen has quit [Quit: saarinen]
<ChinggizKhan> Anybody have time to answer a weird Rake TestTake question? Fair warning, I am relatively new to Ruby.
kith has joined #ruby-lang
<lianj> just ask
vlad_starkov has joined #ruby-lang
<ChinggizKhan> I'm attempting to create a task that will look at all .scss files, and compile them with compass--- I am just trying to figure out how to make a unit test for each .scss file… this is what I have going on so far: https://gist.github.com/ChinggizKhan/508454b759b12a26e84a
<ChinggizKhan> If I add a basic test to the "unit_tests.rb" file, it works. But I am trying to figure out how to make a test based upon the filename of each .scss file.
vlad_starkov has quit [Ping timeout: 245 seconds]
nathanstitt has joined #ruby-lang
<drbrain> ChinggizKhan: the TestTask is unnecessary
srji has joined #ruby-lang
<drbrain> ChinggizKhan: if each file generates a new file do this: https://github.com/evanphx/kpeg/blob/master/lib/hoe/kpeg.rb#L76-L84
<drbrain> but use #sh instead of #ruby
tkuchiki has joined #ruby-lang
<drbrain> I think sh "compass compile --force #{t.source}"
<drbrain> if there's an error rake will fail
gareth has joined #ruby-lang
<ChinggizKhan> drbrain: Okay, I will try that.
<ChinggizKhan> Thank you!
srji has quit [Ping timeout: 248 seconds]
<drbrain> to get the files to build you'll need to add the expected output to the default task
mdedetrich has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<drbrain> task default: %w[file1.output_extension ...]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
<drbrain> dinner time
<ChinggizKhan> okay…
<ChinggizKhan> The end goal is for me to compare the output with the version-controled css--- to make sure our changes to the Sass don't unexpectedly change behavious
<ChinggizKhan> behavior*
pskosinski has quit [Ping timeout: 240 seconds]
mdedetrich has joined #ruby-lang
nclaburn has joined #ruby-lang
andrewvos has quit [Ping timeout: 252 seconds]
DomKM has joined #ruby-lang
dankest has quit [Quit: Leaving...]
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
GeissT has joined #ruby-lang
arooni-mobile has quit [Ping timeout: 245 seconds]
gregmoreno has joined #ruby-lang
jonahR has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 245 seconds]
tylersmith has joined #ruby-lang
vlad_starkov has joined #ruby-lang
xxaM has joined #ruby-lang
dhruvasagar has joined #ruby-lang
arooni-mobile has joined #ruby-lang
tylersmith has quit [Ping timeout: 256 seconds]
havenwood has quit [Ping timeout: 260 seconds]
vlad_starkov has quit [Ping timeout: 268 seconds]
DomKM has quit [Quit: Leaving.]
srji has joined #ruby-lang
dankest has joined #ruby-lang
slowhands has joined #ruby-lang
srji has quit [Ping timeout: 248 seconds]
jonahR has quit [Quit: jonahR]
Nisstyre-laptop has joined #ruby-lang
Nisstyre-laptop is now known as Nisstyre
parenjitsu has quit [Remote host closed the connection]
cstrahan has joined #ruby-lang
retro|cz has joined #ruby-lang
synthetix has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
arooni-mobile has quit [Ping timeout: 245 seconds]
nclaburn has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
arooni-mobile has joined #ruby-lang
gregmoreno has joined #ruby-lang
gregmore_ has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 256 seconds]
runeb has joined #ruby-lang
machuga is now known as machuga|away
cored has quit [Ping timeout: 264 seconds]
gregmoreno has quit [Ping timeout: 246 seconds]
vbatts has joined #ruby-lang
smook3 has quit [Ping timeout: 255 seconds]
swav has joined #ruby-lang
arooni-mobile has quit [Read error: Connection reset by peer]
ChinggizKhan has quit [Quit: ZZzzzZZZzzzZZZZzz]
runeb has quit [Remote host closed the connection]
swav has quit [Ping timeout: 268 seconds]
fragamus has joined #ruby-lang
charliesome has joined #ruby-lang
gnufied has joined #ruby-lang
<mdedetrich> I know this is the wrong place to ask, but I have no idea where else to ask it
<mdedetrich> does anyone know if there is a program on mac that can make visual diagrams of xml files (with references pointing to eachother)
<mdedetrich> similar to db modelling
ryez_ has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
gnufied has joined #ruby-lang
srji has joined #ruby-lang
gnufied has quit [Client Quit]
cstrahan has quit [Ping timeout: 264 seconds]
synthetix has quit [Ping timeout: 245 seconds]
egypt has quit [Ping timeout: 256 seconds]
cstrahan has joined #ruby-lang
havenwood has joined #ruby-lang
justinmburrous has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
srji has quit [Ping timeout: 248 seconds]
cstrahan has quit [Ping timeout: 252 seconds]
cstrahan has joined #ruby-lang
fragamus has quit [Quit: Computer has gone to sleep.]
postmodern has quit [Quit: Leaving]
vlad_starkov has joined #ruby-lang
jonahR has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
DomKM has joined #ruby-lang
krombr has joined #ruby-lang
smook3 has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
smook3 has quit [Ping timeout: 255 seconds]
dvorak has quit [Ping timeout: 248 seconds]
dvorak has joined #ruby-lang
hhatch has joined #ruby-lang
krombr has quit [Remote host closed the connection]
smook3 has joined #ruby-lang
jonahR has quit [Quit: jonahR]
ikrima has quit [Quit: Computer has gone to sleep.]
mikko has joined #ruby-lang
ikrima has joined #ruby-lang
cstrahan has quit [Ping timeout: 252 seconds]
swav has joined #ruby-lang
mikko has quit [Ping timeout: 246 seconds]
srji has joined #ruby-lang
ged has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
postmodern has joined #ruby-lang
ged has joined #ruby-lang
ryez_ has quit [Ping timeout: 250 seconds]
vlad_starkov has quit [Ping timeout: 246 seconds]
gareth has quit [Quit: Leaving...]
Aria has quit [Remote host closed the connection]
macmartine has joined #ruby-lang
srji has quit [Ping timeout: 248 seconds]
havenwood has quit [Remote host closed the connection]
gregmore_ has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
arubin has quit [Quit: Textual IRC Client: www.textualapp.com]
dhruvasagar has quit [Ping timeout: 246 seconds]
gregmore_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
egypt has joined #ruby-lang
smook3 has quit [Ping timeout: 255 seconds]
wallerdev has quit [Quit: wallerdev]
macmartine has quit [Quit: Computer has gone to sleep.]
danrabinowitz has left #ruby-lang ["Linkinus - http://linkinus.com"]
tRAS has joined #ruby-lang
dhruvasagar has quit [Read error: Operation timed out]
shinnya has quit [Quit: ZNC - http://znc.in]
jxie has quit [Quit: leaving]
tRAS has quit [Quit: Mother, did it need to be so high?]
GeissT_ has joined #ruby-lang
Voker57|2 has joined #ruby-lang
tRAS has joined #ruby-lang
GeissT has quit [Ping timeout: 245 seconds]
ffio_ has joined #ruby-lang
Voker57 has quit [Ping timeout: 260 seconds]
ffio has quit [Ping timeout: 260 seconds]
vlad_starkov has joined #ruby-lang
ezkl has quit [Ping timeout: 252 seconds]
ezkl` has joined #ruby-lang
ezkl` has quit [Max SendQ exceeded]
Nisstyre has quit [Quit: Leaving]
fragamus has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 268 seconds]
tRAS has quit [Quit: Mother, did it need to be so high?]
ikrima has quit [Quit: Computer has gone to sleep.]
scottschecter has quit [Ping timeout: 264 seconds]
zmike123 has joined #ruby-lang
srji has joined #ruby-lang
mikko has joined #ruby-lang
GeissT_ has quit [Ping timeout: 256 seconds]
Mawk has joined #ruby-lang
mytrile has joined #ruby-lang
MartynKeigher has quit [Quit: http://www.martynkeigher.com]
mikko has quit [Ping timeout: 245 seconds]
srji has quit [Ping timeout: 248 seconds]
Guest__ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
solars has joined #ruby-lang
ryez has joined #ruby-lang
smook3 has joined #ruby-lang
gregmore_ has quit [Remote host closed the connection]
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 264 seconds]
mossplix has joined #ruby-lang
stringly_typed has joined #ruby-lang
alekst has joined #ruby-lang
DomKM has quit [Quit: Leaving.]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby-lang
alekst has quit [Quit: Computer has gone to sleep.]
ckuttruff has joined #ruby-lang
alekst has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 268 seconds]
hogeo has joined #ruby-lang
mossplix has quit [Read error: Connection reset by peer]
srji has joined #ruby-lang
<ckuttruff> evening all... having a bit of a problem with shelling out; I get an "E2BIG; argument list is too long" error with the following:
<ckuttruff> result = `echo #{Shellwords.escape(very_large_sql_query)} | pt-fingerprint`
<ckuttruff> any suggestion about how to go about that differently?
ikrima has joined #ruby-lang
stringly_typed has quit [Quit: Computer has gone to sleep.]
mossplix has joined #ruby-lang
sush24 has joined #ruby-lang
hogeo_ has joined #ruby-lang
<apeiros> ckuttruff: why use echo?
<apeiros> popen/spawn
Guest__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> then you don't have to escape nor go through the shell
<ckuttruff> apeiros: thanks a lot; I'll check that out
hogeo has quit [Ping timeout: 268 seconds]
srji has quit [Ping timeout: 248 seconds]
mytrile has quit [Remote host closed the connection]
mossplix has quit [Read error: Connection reset by peer]
Guest__ has joined #ruby-lang
alekst has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<ckuttruff> apeiros: how would I go about escaping the sql arg with popen though. Something like system works nicely for that where I can pass it as the second arg after the shell command, but obviously can't get the ouput then
vlad_starkov has quit [Ping timeout: 245 seconds]
<apeiros> if you use popen properly, you don't *need* to escape
<ckuttruff> sorry for the elementary questions... don't shell out much from ruby; looking around online, but having trouble finding what I'm looking for
<apeiros> you only need to escape if you go through a shell
<apeiros> and there's no point in going through the shell - so don't.
<ckuttruff> so the popen call would just look like IO.popen("pt-fingerprint --query #{sql_query")... (doesn't that have the same problem in terms of interpolation?)
workmad3 has joined #ruby-lang
<apeiros> no, the moment you do "foo bar" you go via a shell
<ckuttruff> okay, gotcha; thanks for your help
<apeiros> from the docs
<apeiros> the part about "is passed to a shell" and "(no shell)" are the important ones…
<apeiros> and: docs ftw., read them, use them, learn.
<apeiros> and if they're crappy, ping zzak ;-)
mossplix has joined #ruby-lang
adambeynon has joined #ruby-lang
ridders24 has joined #ruby-lang
<ridders24> hi guys, hows the best way to create and append a spreadsheet with new data?
ikrima has quit [Quit: Computer has gone to sleep.]
<ckuttruff> apeiros: will do :) thanks again
* apeiros will be optimistic and assume that that wasn't the whole question and actually useful information will follow…
<apeiros> ckuttruff: yw
hhatch_ has joined #ruby-lang
srji has joined #ruby-lang
<ridders24> using tweetstream currently to provide twitter data, then outputing it to a tsv file. however due to other symbols used in text the tsv file divides the columns badly. I want to output the data into an xls file but it needs to be append-able
<erikh> output it directly to xls
hhatch has quit [Ping timeout: 264 seconds]
<erikh> spreadsheet gem IIRC
mossplix has quit [Ping timeout: 246 seconds]
<bnagy> oh ew
<ridders24> as far as im aware xls does not support appending
<erikh> you mean some kind of stream writer/reader?
<erikh> with excel?
<ridders24> stream writer / reader?
<bnagy> well you can writ eto the xls data stream, but you need a reader for OLE Structured Storage
<bnagy> there's a gem ( ole-storage ) but it's kinda quirky
benanne has joined #ruby-lang
<erikh> spreadsheet works
<bnagy> if you can use xlsx that's just a zipped bunch of xml
<erikh> I have no idea what "appendable" means in this context
sush24 has quit [Quit: This computer has gone to sleep]
GarethAdams has joined #ruby-lang
stamina has joined #ruby-lang
<ridders24> erikh: for example File.open Keyword list.tsv", 'a' I cant do File.open Keyword list.xls", 'a'
apeiros has quit [Remote host closed the connection]
<erikh> spreadsheet gem manages that all for you?
<bnagy> erikh: that looks like it's on ruby-ole though
<erikh> yeah I thikn it's imperator-ware
<bnagy> so it's only going to work on Windows, and that code is all a bit bitrotty
<ridders24> i think ive tried spreadsheet gem
apeiros has joined #ruby-lang
<erikh> possibly, the whole community shit on him when he tried to get funding to do more windows work
<bnagy> ridders24: an .xls file is just a file, you can open it append for sure
<bnagy> but that just won't help
<bnagy> cause those files are a weird packed format
fragamus has quit [Quit: Computer has gone to sleep.]
<bnagy> writing to the end of it will not be useful
<ridders24> bnagy: the issue I had before was that inside of putting the data in a new row each time, it basically overwrote in the same row
<ridders24> so from my understanding thats what 'a' is for, but that doesn’t seem to work
<bnagy> no idea, trying to directly write to an xls on disk without using an OLESS parser won't work
<bnagy> so I don't know what particular not working experience you had :)
<erikh> excel uses absolute positions for the cells
<ridders24> bnagy, would you suggest any other file type?
<erikh> not relative.
<bnagy> if you want to use no external gems, or run on *nix then ole-storage for xls and just hack stuff with zip for xlsx
mistym has quit [Remote host closed the connection]
<bnagy> xslx is way easier, if you can use it
<ridders24> yeah I don't mind using xlsx, whats the approach for using that?
<bnagy> unzip it, find the internal xml you want to modify, modify it, rezip
<ridders24> bnagy: ok thankyou I'll look into doing that :)
<bnagy> ridders24: sec
<ridders24> ok
<bnagy> that's a start at least
<bnagy> although to be frank, I would just try to fix your tsv / csv issue
<bnagy> screwing with office files directly is pain
<bnagy> and I say that as someone who kind of does it for a living
<bnagy> anyway I gotta run and do dinner things
<ridders24> yeah that was the impression I got last time I tried this. Thanks though
poga has joined #ruby-lang
ikrima has joined #ruby-lang
skade has joined #ruby-lang
Rizzle has quit [Ping timeout: 240 seconds]
ckuttruff has quit [Quit: Page closed]
nathanstitt has joined #ruby-lang
nathanstitt has quit [Client Quit]
barttenbrinke has joined #ruby-lang
raiden has joined #ruby-lang
sepp2k has joined #ruby-lang
raiden has quit [Client Quit]
mossplix has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Rizzle has joined #ruby-lang
srji has quit [Quit: leaving]
Rizzle has quit [Read error: Connection reset by peer]
dankest has quit [Quit: Leaving...]
Rizzle has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 240 seconds]
mossplix has quit [Read error: Connection reset by peer]
faces has joined #ruby-lang
face has quit [Ping timeout: 246 seconds]
skade has quit [Quit: Computer has gone to sleep.]
ezkl has joined #ruby-lang
vlad_starkov has joined #ruby-lang
rikai has quit [Ping timeout: 246 seconds]
ffio_ has quit [Ping timeout: 252 seconds]
rikai has joined #ruby-lang
runeb has joined #ruby-lang
runeb has quit [Remote host closed the connection]
runeb has joined #ruby-lang
postmodern has quit [Ping timeout: 252 seconds]
mbj has joined #ruby-lang
sush24 has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
Guest__ has quit [Quit: Textual IRC Client: www.textualapp.com]
northelks_ has joined #ruby-lang
ia___ has joined #ruby-lang
rikai has quit [Ping timeout: 260 seconds]
postmodern has joined #ruby-lang
snafoo has joined #ruby-lang
elia has joined #ruby-lang
skade has joined #ruby-lang
retro|cz has quit [Ping timeout: 248 seconds]
snafoo_ has quit [Ping timeout: 245 seconds]
mikewintermute has joined #ruby-lang
rikai has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
ikrima has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby-lang
heftig has quit [Quit: Quitting]
heftig has joined #ruby-lang
marr has joined #ruby-lang
ikrima has joined #ruby-lang
gix has quit [Quit: Client exiting]
postmodern has quit [Quit: Leaving]
gix has joined #ruby-lang
runeb has quit [Remote host closed the connection]
verto has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
stef_204 has joined #ruby-lang
Guest___ has joined #ruby-lang
heftig has quit [Quit: Quitting]
heftig has joined #ruby-lang
sush24 has quit [Ping timeout: 240 seconds]
gregmoreno has joined #ruby-lang
rsl has quit [Ping timeout: 268 seconds]
sush24 has joined #ruby-lang
rsl has joined #ruby-lang
gregmoreno has quit [Ping timeout: 256 seconds]
mikko has joined #ruby-lang
sush24 has quit [Read error: Connection reset by peer]
mikko has quit [Ping timeout: 256 seconds]
sush24 has joined #ruby-lang
Johz has joined #ruby-lang
runeb has joined #ruby-lang
runeb has quit [Remote host closed the connection]
runeb- has joined #ruby-lang
runeb- is now known as runeb
marr has quit [Ping timeout: 245 seconds]
skade has quit [Quit: Textual IRC Client: www.textualapp.com]
sush24 has quit [Ping timeout: 256 seconds]
heftig has quit [Quit: Quitting]
verto has quit [Ping timeout: 276 seconds]
mikewintermute has quit [Quit: mikewintermute]
mbj has quit [Ping timeout: 268 seconds]
sush24 has joined #ruby-lang
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
mrfelix has joined #ruby-lang
amcoder has quit [Ping timeout: 260 seconds]
stamina has quit [Read error: Operation timed out]
andrewvos has joined #ruby-lang
heftig has joined #ruby-lang
benanne has quit [Quit: kbai]
sush24 has quit [Ping timeout: 245 seconds]
skade has joined #ruby-lang
stamina has joined #ruby-lang
ryez has quit [Ping timeout: 250 seconds]
swav has quit [Remote host closed the connection]
jerrytgarcia has joined #ruby-lang
spike|spiegel has quit [Quit: WeeChat 0.4.1]
jerrytgarcia has quit [Client Quit]
ikrima has quit [Quit: Computer has gone to sleep.]
ikrima has joined #ruby-lang
heftig has quit [Quit: Quitting]
ikrima has quit [Quit: Computer has gone to sleep.]
heftig has joined #ruby-lang
heftig has quit [Client Quit]
mrfelix has quit [Quit: Textual IRC Client: www.textualapp.com]
heftig has joined #ruby-lang
Guest___ has quit [Quit: Textual IRC Client: www.textualapp.com]
tbuehlmann has quit [Remote host closed the connection]
Guest___ has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
jinie_ is now known as jinie
stamina has quit [Read error: Operation timed out]
hashkey has quit [Ping timeout: 252 seconds]
gja has joined #ruby-lang
gja has joined #ruby-lang
hashkey has joined #ruby-lang
hashkey is now known as Guest9676
spike|spiegel has joined #ruby-lang
tRAS has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
andrewvos has quit [Ping timeout: 256 seconds]
sepp2k has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby-lang
workmad3 has joined #ruby-lang
mbj has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
sush24 has joined #ruby-lang
hogeo has joined #ruby-lang
workmad3 has quit [Read error: Operation timed out]
MaddinXx has joined #ruby-lang
sush24 has quit [Ping timeout: 245 seconds]
hogeo_ has quit [Ping timeout: 252 seconds]
jinie is now known as jinie_
gja has joined #ruby-lang
sush24 has joined #ruby-lang
wallerdev has joined #ruby-lang
mikko has joined #ruby-lang
mikko has quit [Ping timeout: 248 seconds]
elia has joined #ruby-lang
Guest___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elia has quit [Client Quit]
andrewvos has joined #ruby-lang
nclaburn has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
andrewvos has quit [Ping timeout: 264 seconds]
pskosinski has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
mdedetrich has joined #ruby-lang
mdedetrich has quit [Client Quit]
Guest____ has joined #ruby-lang
mikko has joined #ruby-lang
gja has joined #ruby-lang
gja has joined #ruby-lang
gja has quit [Changing host]
mdedetrich has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
nathanstitt has joined #ruby-lang
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
sush24 has quit [Ping timeout: 268 seconds]
sush24 has joined #ruby-lang
Johz_ has joined #ruby-lang
mlangenberg has joined #ruby-lang
<mlangenberg> Why does Zlib::GzipWriter sets an mtime? It kinda ruin Rack::ETag and Rack::Deflater.
wallerdev has quit [Quit: wallerdev]
nclaburn has quit [Quit: Leaving]
<lianj> mlangenberg: put etag middleware after deflater?
<mlangenberg> lianj: yes, but for a strong ETag validator, the content of the two resources should be byte-for-byte identical.
<mlangenberg> e.g. gzipped response should have a different ETag according to spec.
<lianj> if its after deflator you etag the uncompressed response
<mlangenberg> Or Rack::ETag should put a weak validator
<lianj> but sure, the other option is prolly to figure out how to not set mtime :P
<mlangenberg> I'm afraid gzip needs it.
<mlangenberg> Rack::ETag uses the Last-Modified header or Time.now, but most cases where you use ETags is when the Last-Modified is hard to calculate.
<mlangenberg> The benefit of ETags is that is does not require any 'inside' knowledge.
<mlangenberg> So Rack::ETag -> Rack::Deflater gives always changing ETags b/c of Time.now component. While Rack::Deflater -> Rack::ETag breaks spec.
scottschecter has joined #ruby-lang
<mlangenberg> Looking at the RFC http://www.gzip.org/zlib/rfc-gzip.html#file-format, the MTIME is mandatory.
andrewvos has joined #ruby-lang
<lianj> nice catch though
cmackinnon has joined #ruby-lang
<cmackinnon> hello
<mlangenberg> yeah thx :P
<mlangenberg> Good way to spend a saturday afternoon.
andrewvos has quit [Ping timeout: 240 seconds]
malev has joined #ruby-lang
mytrile has joined #ruby-lang
<mlangenberg> My proposal is to let Rack::ETag switch to a weak validator when Accept-Encoding is present is the request header.
wallerdev has joined #ruby-lang
mistym has joined #ruby-lang
cstrahan has joined #ruby-lang
cstrahan has quit [Client Quit]
mistym has quit [Remote host closed the connection]
swav has joined #ruby-lang
jxie has joined #ruby-lang
<cmackinnon> Anyone familiar with rbhive?
tylersmith has joined #ruby-lang
DomKM has joined #ruby-lang
havenwood has joined #ruby-lang
mbj has quit [Quit: leaving]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
ridders24 has quit [Ping timeout: 246 seconds]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
ikrima has joined #ruby-lang
mistym has joined #ruby-lang
mistym has joined #ruby-lang
gja has quit [Quit: This computer has gone to sleep]
jekyll_xyz has joined #ruby-lang
havenwood has joined #ruby-lang
tRAS has joined #ruby-lang
face has joined #ruby-lang
faces has quit [Ping timeout: 264 seconds]
<jekyll_xyz> anyone have recomendations on a resource for learning ruby for someone who already knows other languages?
mdedetrich has quit [Quit: Computer has gone to sleep.]
mlangenberg has quit [Quit: mlangenberg]
<cmackinnon> ruby-lang.org has quite a few
swav has quit [Ping timeout: 268 seconds]
muslim3arby has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
malev has quit [Ping timeout: 245 seconds]
muslim3arby has quit [Killed (idoru (Spam is off topic on freenode.))]
<jekyll_xyz> tyty
gja has joined #ruby-lang
mikewintermute has joined #ruby-lang
Guest9676 is now known as hashkey
tRAS has quit [Quit: Mother, did it need to be so high?]
tkuchiki has quit [Remote host closed the connection]
spcshpopr8r has joined #ruby-lang
Guest____ has quit [Quit: Textual IRC Client: www.textualapp.com]
malev has joined #ruby-lang
<spcshpopr8r> #ruby-lang please help, I have a data file (`file -bi` says its a 'application\octet-stream; charset=binary'), if I cat the file it looks like it contains a bunch of ^@ symbols wrapping up the actual data that's in the file. If I str = ""; File.open("foo"){|f| str = f.read} then str has a bunch of stuff like "....\00\0\n\09\0.\00\0\n\...". If I puts the str then I see the data that I need...but how do I convert the string so it
<spcshpopr8r> doesn't have all that junk in it?
cmackinnon has quit [Ping timeout: 246 seconds]
wnd^ has left #ruby-lang [#ruby-lang]
wnd has joined #ruby-lang
<wnd> that was rather vague, but you may want to see what "strings" command thinks of it ("strings non_ascii_file")
mdedetrich has joined #ruby-lang
mdedetrich has quit [Client Quit]
x0f has quit [Ping timeout: 260 seconds]
<spcshpopr8r> I apologize for being vague
ikrima has quit [Quit: Computer has gone to sleep.]
malev has quit [Remote host closed the connection]
kgrz has joined #ruby-lang
x0f has joined #ruby-lang
<spcshpopr8r> I've got a data file I can share with you...but pasting its contents to something like pastie.org is not going to work
<spcshpopr8r> `strings` doesn't return anything on the file
ia___ has quit [Quit: ia___]
DomKM has quit [Quit: Leaving.]
x0f has quit [Ping timeout: 246 seconds]
mytrile has quit [Remote host closed the connection]
<wnd> is it supposed to be a text file? do you know which encoding it's supposed to use?
x0f has joined #ruby-lang
<wnd> lots of zeros sounds like it could be unicode
mdedetrich has joined #ruby-lang
<eam> spcshpopr8r: if you really just want to remove non-printable characters in an ad-hoc fashion: .gsub(/[^[:print:]]/, '')
JohnBat26 has joined #ruby-lang
tejas has joined #ruby-lang
tejas has joined #ruby-lang
tejas has quit [Changing host]
crackity_jones has joined #ruby-lang
t_ has joined #ruby-lang
gja has quit [Ping timeout: 264 seconds]
ivanoats has quit [Remote host closed the connection]
<spcshpopr8r> wnd: it's the output of a mahout/hadoop map reduce (java) program ... I can't figure out how the hell I'm supposed to do anything with the data in the format that it's in...( /me not a java guy)
<spcshpopr8r> eam: I'll try that
Cremno has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Remote host closed the connection]
benanne has joined #ruby-lang
mbj has joined #ruby-lang
<rue> iconv would be a good one to try too
<wnd> java sounds like utf-16. maybe try iconv --from utf-16 --to utf-8 or such.
stringly_typed has joined #ruby-lang
x0f has quit [Ping timeout: 245 seconds]
nignaztic has quit [Quit: Leaving]
<xuser> jekyll_xyz: the ruby programming lang book
nazty has joined #ruby-lang
<jekyll_xyz> the oreilly one?
x0f has joined #ruby-lang
alekst has joined #ruby-lang
tejas has quit [Quit: This computer has gone to sleep]
<rue> corundum: books?
<corundum> books is "The Ruby Programming Language", "Eloquent Ruby", "Programming Ruby 1.9” (‘Pickaxe’) or see http://ruby-doc.org/bookstore/
<rue> Hm, what happened to ISBNs
kgrz has quit [Ping timeout: 248 seconds]
pskosinski has quit [Quit: pskosinski]
<jekyll_xyz> ^ lol
tRAS has joined #ruby-lang
swav has joined #ruby-lang
<xuser> jekyll_xyz: yeah, the oreilly one
t_ has quit [Ping timeout: 268 seconds]
<xuser> Eloquent Ruby can be your second book ;)
ivanoats has joined #ruby-lang
ivanoats has quit [Changing host]
ivanoats has joined #ruby-lang
<jekyll_xyz> cool, appreciate the help :) recently been using ruby instead of python but wanted something more formal to reference so i can ruby the rby way
stringly_typed has quit [Quit: Computer has gone to sleep.]
swav has quit [Ping timeout: 248 seconds]
<xuser> the eloquen ruby book then
sepp2k has quit [Ping timeout: 268 seconds]
t_ has joined #ruby-lang
<spcshpopr8r> okay...from a slightly different angle
<spcshpopr8r>
<spcshpopr8r> please help: pastie.org/8046434
<spcshpopr8r> notice an array of unicode(?) strings, puts spits out the value I want...how can I convert the value in place?
arubin has joined #ruby-lang
<spcshpopr8r> sorry, http://pastie.org/8046434
Johz_ has quit [Quit: AH HELP ITS ALL CRASHING AT ONCE I CANT STOP IT HELP HELP HELP <transmission ends>]
mikewintermute has quit [Quit: mikewintermute]
arocco has joined #ruby-lang
justinmb_ has joined #ruby-lang
mlangenberg has joined #ruby-lang
andrewvos has joined #ruby-lang
Linkedipsoul has quit [Ping timeout: 246 seconds]
Linkedipsoul_ has joined #ruby-lang
mlangenberg has quit [Client Quit]
tomzx_mac has joined #ruby-lang
relix_ has joined #ruby-lang
andrewvos has quit [Ping timeout: 252 seconds]
swav has joined #ruby-lang
vlad_starkov has joined #ruby-lang
sepp2k has joined #ruby-lang
stringly_typed has joined #ruby-lang
justinmb_ has quit [Ping timeout: 240 seconds]
cmackinnon has joined #ruby-lang
crackity_jones has quit [Quit: Computer has gone to sleep.]
stringly_typed has quit [Ping timeout: 260 seconds]
x0f has quit [Ping timeout: 248 seconds]
x0f has joined #ruby-lang
DomKM has joined #ruby-lang
workmad3 has joined #ruby-lang
ivanoats has quit [Remote host closed the connection]
nirix has quit [Ping timeout: 252 seconds]
elia has joined #ruby-lang
nirix has joined #ruby-lang
barttenbrinke has joined #ruby-lang
bzalasky has joined #ruby-lang
hashkey has quit [Quit: Leaving]
elia has quit [Quit: Computer has gone to sleep.]
jstemmer has quit [Remote host closed the connection]
hashkey has joined #ruby-lang
hashkey has quit [Client Quit]
cmackinnon has quit [Ping timeout: 240 seconds]
stamina has joined #ruby-lang
andrewvos has joined #ruby-lang
andrewvos has quit [Ping timeout: 260 seconds]
hashkey has joined #ruby-lang
hashkey is now known as Guest29896
nertzy has joined #ruby-lang
threedaymonk has left #ruby-lang [#ruby-lang]
threedaymonk has joined #ruby-lang
threedaymonk has quit [Quit: Reconnecting]
threedaymonk has joined #ruby-lang
<threedaymonk> spcshpopr8r: it looks like those strings are encoded as UTF-16 (or UCS-2).
<threedaymonk> (oh good, I can finally write here again.)
<threedaymonk> spcshpopr8r: it's just a happy accident that they look OK when you puts, because the 0 bytes are ignored, and the rest happen to intersect with the ASCII subset of UTF-8
Guest29896 has quit [Remote host closed the connection]
zmike123 has quit [Quit: Выходжу]
t_ has quit [Remote host closed the connection]
runeb has quit [Remote host closed the connection]
mikewintermute has joined #ruby-lang
ridders24 has joined #ruby-lang
smook3 has quit [Ping timeout: 255 seconds]
smook3 has joined #ruby-lang
tRAS has quit [Quit: Mother, did it need to be so high?]
dankest has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sush24 has quit [Ping timeout: 264 seconds]
sepp2k has quit [Ping timeout: 256 seconds]
sush24 has joined #ruby-lang
stamina has quit [Ping timeout: 245 seconds]
gareth has joined #ruby-lang
GarethAdams has quit [Read error: Connection reset by peer]
andrewvos has joined #ruby-lang
hogeo_ has joined #ruby-lang
barttenbrinke has quit [Remote host closed the connection]
Johz_ has joined #ruby-lang
andrewvos has quit [Ping timeout: 252 seconds]
hogeo has quit [Ping timeout: 260 seconds]
ridders24 has quit [Ping timeout: 245 seconds]
relix_ has quit [Quit: Textual IRC Client: www.textualapp.com]
toretore has quit [Quit: Leaving]
stamina has joined #ruby-lang
pskosinski has joined #ruby-lang
toretore has joined #ruby-lang
swav has quit [Remote host closed the connection]
mbj has quit [Quit: leaving]
<injekt> wat
runeb has joined #ruby-lang
mikewintermute has quit [Quit: mikewintermute]
swav has joined #ruby-lang
gareth has quit [Quit: Linkinus - http://linkinus.com]
GarethAdams has joined #ruby-lang
runeb has quit [Ping timeout: 248 seconds]
atmosx has joined #ruby-lang
andrewvos has joined #ruby-lang
bougyman_ has quit [Changing host]
bougyman_ has joined #ruby-lang
bougyman_ is now known as bougyman
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
andrewvos has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
imkmf has joined #ruby-lang
mbj has joined #ruby-lang
symm- has joined #ruby-lang
jsullivandigs has quit [Remote host closed the connection]
jsullivandigs has joined #ruby-lang
x0f has quit [Ping timeout: 245 seconds]
x0f has joined #ruby-lang
<injekt> GarethAdams: precisely
adambeynon has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
jsullivandigs has quit [Ping timeout: 248 seconds]
<whitequark> injekt: what surprised you so much?
<injekt> whitequark: nothing really, I was just making conversation
<whitequark> -_-
x0f has quit [Ping timeout: 252 seconds]
<injekt> I just did a gem update and that was a bad idea
* whitequark is trying to play Gunpoint; it sounds like a fun game
<whitequark> but it sure doesn't like to be run under wine -_-
x0f has joined #ruby-lang
<erikh> HERP
MaddinXx has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 245 seconds]
* yorickpeterse is migrating servers
<yorickpeterse> yay, can't wait for the DNS to shit up so this one domain can't receive Emails anymore
<injekt> DERP
x0f has joined #ruby-lang
<yorickpeterse> welp, seems there's some lag on digital ocean's side regarding DNS
<yorickpeterse> now my own domain is borken until they apply the config
<yorickpeterse> ah there we go
atmosx has quit [Quit: And so the story goes…]
<injekt> I have 400 gems installed what the hell
<yorickpeterse> that's it?
<injekt> bro
<yorickpeterse> oh, I only have 119. Then again I clean them up regulary
<injekt> I should
<yorickpeterse> I even have a command called `uninstall-gems` which does that for me
<injekt> ...
<injekt> gem clean isn't enough?
<injekt> oh
<injekt> all gems
<yorickpeterse> yes
<injekt> why dont you just travers gem path and rm?
<yorickpeterse> this is easier
<yorickpeterse> Yes, I could use a cat to beat a nail into the wall but I'd rather use a hammer
<injekt> ...
<injekt> I believe you're actually using a parrot
<injekt> Gem::Specification.each would probably be ever smoother
cmackinnon has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
<yorickpeterse> patches welcome
<yorickpeterse> make sure you read the CONTRIBUTING.md and LICENSE files first
havenwood has joined #ruby-lang
<yorickpeterse> and make sure your commits are signed and that you clap your hands twice before pushing a commit
<injekt> I'm glad you were joking but I checked in case
<yorickpeterse> haha
smook3 has quit [Ping timeout: 255 seconds]
<injekt> holy mother of god, gem clean has been taking almost 6 minutes to run
<yorickpeterse> god damn it DNS, PROPAGATE ALREADY
<injekt> should have used node to remove async
<yorickpeterse> nice feature of Digital ocean: you can't set the TTL of DNS records
<yorickpeterse> though it appears that the TTL is 15 minutes
<injekt> i like DO
<yorickpeterse> yeah, now that they have re-enabled the cheap plans in Amsterdam it is actually worth using
<yorickpeterse> should save me around 25 USD a month
hhatch_ has quit [Ping timeout: 246 seconds]
<injekt> gem list spent 8 minutes removing gems, now there is exactly the same amount of gems installed as before
havenwood has quit [Ping timeout: 252 seconds]
<injekt> ruby, not even once
<cmackinnon> hello, anyone familiar with rbhive
alekst has quit [Quit: Leaving...]
<injekt> lolwut
andrewvos has joined #ruby-lang
Not|Johz has joined #ruby-lang
<injekt> oh railties
<injekt> :|
<injekt> fml
JohnBat26 has quit [Ping timeout: 268 seconds]
Johz_ has quit [Ping timeout: 240 seconds]
Johz has quit [Ping timeout: 252 seconds]
runeb has joined #ruby-lang
Not|Johz has quit [Client Quit]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
atmosx has joined #ruby-lang
<andrewvos> Using rails ^
cmackinnon has quit [Ping timeout: 256 seconds]
cmackinnon has joined #ruby-lang
brushbox has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
atmosx has quit [Quit: And so the story goes…]
Linkedipsoul_ has quit [Quit: Leaving]
Linkedipsoul has joined #ruby-lang
awkisopen has quit [Quit: ZNC - http://znc.in]
cmackinnon has quit [Ping timeout: 245 seconds]
awkisopen has joined #ruby-lang
x0f has quit [Ping timeout: 276 seconds]
x0f has joined #ruby-lang
x0f has quit [Ping timeout: 252 seconds]
toretore has quit [Quit: Leaving]
x0f has joined #ruby-lang
t_ has joined #ruby-lang
corundum has quit [Read error: Connection reset by peer]
Guest29896 has joined #ruby-lang
Guest29896 has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 246 seconds]
mistym has quit [Remote host closed the connection]
corundum has joined #ruby-lang
andrewvos has quit [Ping timeout: 246 seconds]
hashkey has joined #ruby-lang
vl3 has joined #ruby-lang
hashkey has quit [Ping timeout: 240 seconds]
imkmf has left #ruby-lang [#ruby-lang]
dingus_khan has joined #ruby-lang
<dingus_khan> ok, I've got something I want to do and it's way above my head, but I want to use it as a learning opportunity, and I could use some help...
runeb has quit [Remote host closed the connection]
<dingus_khan> I want to reach into system memory and display a real-time feed of just the raw hex data as it passes by
mbj has quit [Read error: Operation timed out]
<whitequark> open /dev/mem
<dingus_khan> s that possible with ruby? I saw it done once in c++
<whitequark> there's a linux screensaver which does exactly that
x0f has quit [Ping timeout: 252 seconds]
<dingus_khan> whoa, wow
<dingus_khan> I didn't know that was a thing, impressive
<dingus_khan> so what do you mean by open /dev/mem?
x0f has joined #ruby-lang
malev has joined #ruby-lang
<whitequark> um, opening /dev/mem?
<whitequark> it's a special file
<dingus_khan> was just googling, don't think I'm asking the right questions
arocco has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 245 seconds]
<dingus_khan> so ruby can access this file like any other?
<whitequark> yes
x0f has joined #ruby-lang
benanne has quit [Quit: kbai]
<dingus_khan> alright, so I can't figure out how based on searching for /dev/mem in ruby; I'm guessing there's a few things I need to know before I get to that part, thgouh
<dingus_khan> though*
hashkey has joined #ruby-lang
hashkey is now known as Guest91439
<dingus_khan> can I bug you for some other kind of starting point on how to research that topic? sorry for the ultra-noob status questions
pskosinski has quit [Remote host closed the connection]
stamina has quit [Ping timeout: 246 seconds]
pskosinski has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
vlad_starkov has joined #ruby-lang
sustainableweb has quit [Remote host closed the connection]
Guest91439 is now known as hashkey
DarkBushido has joined #ruby-lang
nathanstitt has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 248 seconds]
mahlon_ has joined #ruby-lang
mahlon has quit [Read error: Connection reset by peer]
Rubennn has quit [Ping timeout: 264 seconds]
Rubennn has joined #ruby-lang
hashkey has quit [Remote host closed the connection]
Wheelman has joined #ruby-lang
hashkey has joined #ruby-lang
hashkey is now known as Guest83021
Guest83021 has quit [Client Quit]
Wheelman has quit [Quit: Leaving]
vl3 has quit [Quit: leaving]
nertzy has quit [Ping timeout: 245 seconds]
dingus_khan has quit [Remote host closed the connection]
r0bby has joined #ruby-lang
runeb has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 240 seconds]
solars has quit [Ping timeout: 264 seconds]
dingus_khan has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
tkuchiki has joined #ruby-lang
pskosinski has quit [Ping timeout: 240 seconds]
DKnox has quit [Quit: Computer has gone to sleep.]
dingus_khan has quit [Remote host closed the connection]