6 ms·
Show HN: DataFart - easy command line graphing
- aaronpk 14y agoThis is awesome. Thanks!
- hk__2 14y agoWhy don’t you use a format like CSV?
- paulrosenzweig 14y agoThat's a good idea. My immediate use case only involved whitespace delimited data, but I might as well just scan each line for numbers.
- AustinGibbons 14y agoA cool tool with an unfortunate name. I'm not going to send a link to datafart.com/mygraph to someone with whom I only have a professional relationship.
- paulrosenzweig 14y agoThis wasn't really intended to share graphs. In addition to the name, each graph is deleted after 10 minutes.
- Scramblejams 14y agoA neat utility. The short-lived nature of the graphs doesn't bother me at all. But with that name I couldn't even recommend it to a number of people I can think of in my professional circle.
- st0p 14y agoWell, then those people have no sense of humor. When people don't have any sense of humor, I'd rather not work with them. So I'm not seeing any problem here.
- dkokelley 14y agoNot all of us can be so selective with people we work with.
- st0p 14y agoWhy not?
- Scramblejams 14y agoYou're being facile. "Why not?" Because, for example, if you decide you really want to work with frickin' lasers, that may be more important to you than working at a place where clowns are appreciated in all their glory.
- Permit 14y ago>So I'm not seeing any problem here. I suppose if the target audience of this application is "st0p", then you'd be correct. The rest of us don't necessarily get the luxury of choosing what sort of sense of humor our employers have.
- st0p 14y agoHmmmm. Dunno. If you have baisc experience and a proper grasp of programming and live in the westeren world, you might not know beforehand if an employer had humor, but you can still choose your employer.
- Wilya 14y agoIf by "basic experience of programming", you mean 10+ years of experience or a Stanford/MIT/Berkeley degree, and by "western world" you mean Silicon Valley (and a few other very select areas, all of them within the US), yeah, I agree. Outside that, the number of decent opportunities you'll get as a developer will be too low for you to be picky.
- aaronpk 14y agoGood point. I'd probably take a screenshot with Skitch and send that. Then it would last longer than 10 minutes too.
- syassami 14y agojust pronounce it "dataf-art"
- bobbydavid 14y agoThe name immediately made me think of German. I checked, and DatenFahrt.com is still available.
- hxseven 14y agoThat actually makes sense in German, it means something like "data ride". But as I saw it first I didn't notice the similarity to the German words. I somehow thought it's a reference to South Park ;)
- wookietrader 14y agoI don't have any output. No url is returned. :( Idea sound pretty cool, I'd use it.
- rossj 14y agoMake sure your numbers are space separated rather than comma separated, you could pipe your data through sed like.. cat myfile.csv | sed 's/,/ /g' | curl --data-binary @- datafart.com
- tharshan09 14y agohow does the alias work? Are you routing the data from the shell to a certain api end point?
- jat850 14y agoThe alias employs curl to send data to the server hosted at datafart.com. The parameter @- supplied to curl means, send the data on stdin as the body of the request. So the user, via the alias, sending data to the server where it is processed, and the curl response is a URL to the temporary location of a viewable plot.
- joe_bleau 14y agoSuper picky FYI: there's no connection to GNU, so it's "gnuplot", not "GNU Plot". (FAQ entry: http://www.gnuplot.info/faq/faq.html#SECTION00032000000000000000 http://www.gnuplot.info/faq/faq.html#SECTION0003200000000000...)
- paulrosenzweig 14y agoThanks! I assumed it was part of GNU. I made the change, but the page is cached, so it might take a while to update.
- danso 14y agoDon't know if I have a use case for datafart, but it did point me to a new d3 wrapper I hadn't yet heard of http://nvd3.org/ http://nvd3.org/ Will have to play around with it...still trying to find that perfect line between lightweight and convenient
- pyre 14y agoThere was recent discussion on HN when the company tried to revoke its ggpl license, but then renegged.
- joelhaasnoot 14y agoThis would be even better if it supported dates. In my day job I'm struggling to find tools for plotting time-based data nicely and efficiently. Splunk works, but only if you have that.
- dfc 14y agoGnuplot?
- mikegioia 14y agoHighCharts (http://www.highcharts.com http://www.highcharts.com) handles dates pretty well.
- mturmon 14y agoSeconded. I'm able to plot thousands of date-tagged points with good responsiveness to zooms, and per-point popups-on-mouseover showing more information about each point.
- kingfishr 14y agoYou could also do this without a server at all. You could just have a script put your data into the html/js template and open up the page with something like bcat. http://rtomayko.github.com/bcat/ http://rtomayko.github.com/bcat/
- paulrosenzweig 14y agoThat's pretty awesome. I hadn't seen it before. DataFart has the one advantage that you don't need to pipe the data in locally. If the source data is on your local machine, this is a much better solution.
- fellowniusmonk 14y agoIsn't the point not having to worry about presentation and messing the templates? Perhaps I just don't have your command line fu but I don't see how I could do what you are talking about in a single line/simply.
- Void_ 14y agoRelated idea: Python library that would render graph in Node.js using D3/NVD3 generating an SVG. Is there any such thing?
- yummyfajitas 14y agoWell, there is a python library that will render nice graphs on your computer in a variety of formats (on the screen, as a png/jpg/svg, etc). http://matplotlib.org/ http://matplotlib.org/ I'm not sure what rendering it in Node.js/D3 buys you on top of that.
- Void_ 14y agoDunno, maybe you could make the transition from static file to interactive interface more easily? Or maybe I just find those graphs much better looking.
- infinite8s 14y agoYep - https://github.com/mikedewar/d3py https://github.com/mikedewar/d3py
- naftaliharris 14y agoAwesome! I love how cheeky this is. The installation instructions are sweet.
- gcmartinelli 14y agoPlenty of downvotes coming my way, but: good job sir, on that startup name.
- fragsworth 14y agoThe notion that it's the name of his startup is pretty hilarious, but I think it's just a name for a command line tool
- tsm 14y agoThe web dependency situation is absurd. Am I unreasonable for wanting a locally-installed program that produces a standalone window all by itself?
- philsnow 14y agolike gnuplot?
- yummyfajitas 14y agoOr the following python script: import pandas from pylab import * d = pandas.read_csv(sys.argv[1]) plot(d[d.columns[0]], d[d.columns[1]]) xlabel(d.columns[0]) xlabel(d.columns[1]) show() That'll just pop up a window displaying the graph. With 2-3 extra lines of code and more than 30 seconds of effort, I'm sure it would be easy to upload to imgur. Example output: http://i.imgur.com/m7ooj.png http://i.imgur.com/m7ooj.png
- mdonahoe 14y agoAssuming you have matplotlib installed. I have definitely wasted an hour in vain trying to install that correctly on an old Mac mini.
- tlarkworthy 14y agowords cannot describe how much I hate matplotlib
- bsg75 14y agoMaybe some anecodtes? Alternatives (for Python)? Would like to generate D3 style charts, without leaving Python for JS.
- tlarkworthy 14y agotell me you find any. I use matplotlib as I have not found an alternative.
- gprasanth 14y agoWhat?? No!! You should always have option to fart silently. one https, and one make-private-ability please! :P Nice project.
- jbackus 14y agoWhat an outrageous name for a command line graphing tool. I'm honestly curious, why?
- mcartyem 14y agoIt's great. I wanted this literally two days ago.