Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dbro
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
1.
▲
by
dbro
1y ago
Forgive me for promoting this that I wrote: csvquote: https://github.com/dbro/csvquote Especially for use with existing shell text processing tools, eg. cut, sort, wc, etc.
2.
▲
by
dbro
3y ago
Yes, this is what csvquote does. It does nothing else, just this so that programs like awk, sed, cut, etc. can work properly. https://github.com/dbro/csvquote
3.
▲
by
dbro
3y ago
That is correct, the data needs to be simple where the delimiter characters are never embedded inside a quoted field. I wrote a simple (and fast) utility to ensure that CSV files are handled properly by all the standard UNIX command line da
4.
▲
by
dbro
5y ago
There is a small program I wrote called csvquote[1] that can be used to sanitize input to awk so it can rely on delimiter characters (commas) to always mean delimiters. The results from awk then get piped through the same program at the end
5.
▲
by
dbro
6y ago
Good idea! Looks similar to something I wrote called csvquote https://github.com/dbro/csvquote , which enables awk and other command line text tools to work with CSV data that contains embedded commas and newlines.
6.
▲
by
dbro
7y ago
To simplify working with CSV data using command line tools, I wrote csvquote ( https://github.com/dbro/csvquote ). There are some examples on that page that show how it works with awk, cut, sed, etc.
7.
▲
by
dbro
7y ago
While not exactly what you asked for, I wrote something similar called csvquote ( https://github.com/dbro/csvquote ) which transforms "typical" CSV or TSV data to use the ASCII characters for field separators
8.
▲
by
dbro
8y ago
You might want to check out https://github.com/dbro/csvquote which helps awl and other text tools handle csv files which have quoted strings as values.
9.
▲
by
dbro
11y ago
Hi- I'm curious to know what your use case is. Can you explain why substitution is not sufficient?
10.
▲
by
dbro
12y ago
Here's another suggestion for the criticism section (which is a good idea for any open-minded project to include): Instead of using a separate set of tools to work with CSV data, use an adapter to allow existing tools to work around CS
11.
▲
by
dbro
12y ago
yes! https://github.com/dbro/csvquote csvquote allows UNIX tools to work properly with quoted fields that contain delimiters inside the data. It is a simple translation tool that temporarily replaces the special charac
12.
▲
by
dbro
12y ago
That's correct, and as you illustrate it's the possibility to have newlines and commas inside quoted fields that complicates things for grep/awk/cut/etc. So instead of making a more complex version of tools like gre
13.
▲
by
dbro
12y ago
Usually the person parsing the CSV data doesn't have control over the way the data gets written. If he did, he would probably prefer something like protocol buffers. CSV is the lowest common denominator, so it's a useful format fo
14.
▲
by
dbro
12y ago
Yes it's possible. I did this a few years ago as a learning project, and the relevant lua scripts can be seen here: https://gist.github.com/dbro/9920666 . ... but I wouldn't claim that it's done efficient
15.
▲
by
dbro
12y ago
that's exactly what https://github.com/dbro/csvquote does for commas and newlines both.
16.
▲
by
dbro
12y ago
Thanks for bringing up csvquote. I wrote it last year, and am happy to hear that other people find it useful. It is indeed a simple state machine (see https://github.com/dbro/csvquote/blob/master/csvquote
17.
▲
by
dbro
13y ago
Thanks very much! You just made my day!
18.
▲
by
dbro
14y ago
I did, too. Different UI, though. See http://www.domainjig.com
19.
▲
by
dbro
14y ago
Nicely done. Here's a similar site I made previously: http://www.domainjig.com Beyond the shameless self-promotion I found that getting people to use it would take a lot of work, with lots of alternatives out there that have dedicated tea
20.
▲
by
dbro
14y ago
For those interested in giving this a try, here are a few additional suggestions from my recent experience. There are less expensive alternatives to Linode. I switched to Loose Foot Computing ( http://www.lfcvps.com ) about a year ago and t
21.
▲
by
dbro
14y ago
I wonder what happens in the RethinkDB office on Monday evenings? https://github.com/rethinkdb/rethinkdb/graphs/punch-card
22.
▲
by
dbro
14y ago
Depending on what you're planning to use it for, there are some less expensive devices that are worth considering, eg. for about $90 shipped to the US http://www.aliexpress.com/product-fm/546571245-Mele-A2000-TV... I just received one and
23.
▲
Forget passwords
(turbodingo.com)
1 points
by
dbro
15y ago
|
0 comments
24.
▲
by
dbro
15y ago
Nice. I did too: https://github.com/dbro/muss . It's a shell script that coordinates mpc and dmenu. It's got two modes of operation, one for interactive browsing and another for a simple command line search. Some examples: >muss elvis
25.
▲
by
dbro
15y ago
not likely. see http://siteanalytics.compete.com/github.com/ and http://www.google.com/trends?q=git%2C+mercurial%2C+svn%2C+gi...
26.
▲
Google Maps API: October 1 clampdown coming, but pricing still unknown
(code.google.com)
2 points
by
dbro
15y ago
|
0 comments
27.
▲
by
dbro
15y ago
There are two things that need to happen: 1) create a good idea for a name that fits what you're offering to your visitors/customers 2) Check to see if that name is available. I built this domain name suggestion tool that does both of these
28.
▲
by
dbro
15y ago
For exploring data sets, Google's fusion tables are useful. https://sites.google.com/site/fusiontablestalks/ some support for filtering and grouping 250MB data size limit nice mapping capabilities
29.
▲
by
dbro
15y ago
caveat: I created a similar site called domainjig.com, so take these as friendly suggestions. The expired domain search is cool, well done with this tool. Make it faster. Right now, loading the page to search for availability is taking long
30.
▲
by
dbro
15y ago
They take an interesting approach to UI design: let the user design the layout himself. I'm sure some people really appreciate this. Frustrated by what was available, I created a weather app for Android which did what I want from a weather
More ›