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
<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]
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
<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 :)
<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?
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]
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]