Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pixelbeat
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
pixelbeat
11y ago
GNU cp already has the --one-file-system option. Possibly mv might also benefit from this option to error out on EXDEV? Feel free to discuss these things on coreutils@gnu.org We try to be accomodating, and your suggestions here definitely h
62.
▲
by
pixelbeat
11y ago
True, symlinks complicate things. We have to be careful about doing too much (adding edge cases and complexity), though in this case how about: canon_src = canonicalize(src); canon_dst = canonicalize(dst); int ret = rename(src
63.
▲
by
pixelbeat
11y ago
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=blob;f=src/c...
64.
▲
by
pixelbeat
11y ago
There are large advantages to shelling out though. 1. Not reinventing the wheel 2. Implicit use of multiple cores Things could be improved I agree. For example posix_spawn() could be efficiently implemented on glibc to avoid kernel overhead
65.
▲
by
pixelbeat
11y ago
It's also worth pointing out, since busybox was mentioned a few times, that the latest release of coreutils has the ./configure --enable-single-binary option to build as a multi-call binary linke busybox etc.
66.
▲
by
pixelbeat
11y ago
A few data points on GNU coreutils. 1. It has a fairly good test suite, that rewrites should leverage. That can be easily done by setting $PATH to prepend the dir of the new tools, and running `make check` 2. To give an indication of the si
67.
▲
by
pixelbeat
12y ago
That's a bug IMHO which I reported at http://lists.gnu.org/archive/html/bug-bash/2015-02/msg00052.... I've collated other mishandling of closed pipes at: http://www.pixelbeat.org
68.
▲
by
pixelbeat
12y ago
The trailing /* is to delete the directory _contents_ rather than the dir itself. It would be safer to receate the dir as then you can possibly hit some of the inbuilt rm protections
69.
▲
by
pixelbeat
12y ago
Note newer versions of coreutils will have links in the man pages directly to online manuals through http://www.gnu.org/s/coreutils/ls etc. BTW the coreutils man pages are a subset of the full manual, and I think
70.
▲
by
pixelbeat
12y ago
I found an issue in cp that caused 350% extra mem usage for the original bug reporter, which fixing would have kept his working set at least within RAM. http://lists.gnu.org/archive/html/coreutils/2014-09/
71.
▲
by
pixelbeat
12y ago
I see what you're saying, but then you'd have people complaining there was too much text in the man page. Note the info pages are available on the web so you could have a wrapper like: cinfo() { xdg-open "http:/&#x
72.
▲
by
pixelbeat
12y ago
Note GNU coreutils has a good test suite which just calls out to the various tools from shell and perl scripts. It should be easy enough to run this implementation through it. More effort goes into the coreutils tests than the code. One of
73.
▲
by
pixelbeat
13y ago
Well with coreutils like wc etc. you get low level control over such things, but with postgres there would be less flexibility. For illustration one could use GNU dd to take advantage of the page cache only for readahead purposes like:
74.
▲
by
pixelbeat
13y ago
Here's an actual quick reference for screen: http://www.pixelbeat.org/lkdb/screen.html
75.
▲
by
pixelbeat
13y ago
Which would be fine. RSS usually has a limited number of entries
76.
▲
by
pixelbeat
13y ago
This gives RSS for a particular users' public tweets. I'd love a service to provide an RSS feed of my timeline (would require giving auth of course)
77.
▲
by
pixelbeat
14y ago
More on the story http://blog.cloudflare.com/the-ddos-that-almost-broke-the-in... https://news.ycombinator.com/item?id=5450410
78.
▲
by
pixelbeat
14y ago
Ok again now. Probably caused by http://www.nytimes.com/2013/03/27/technology/internet/online...
79.
▲
by
pixelbeat
14y ago
Slowly coming back...
80.
▲
Cloudflare down again
1 points
by
pixelbeat
14y ago
|
4 comments
81.
▲
by
pixelbeat
14y ago
Seems to have had the desired effect? https://www.facebook.com/SendGrid/posts/10151502570463967
82.
▲
by
pixelbeat
14y ago
It's cool to see static web sites becoming popular. As for comments (dynamic) you could integrate with discuss, or as I do wrote my own simple comments app for google app engine. Details here: http://www.pixelbeat.org/docs/web/feed.html
83.
▲
by
pixelbeat
14y ago
Related: http://www.pixelbeat.org/programming/evanescent_python.html
84.
▲
by
pixelbeat
14y ago
See also the http://www.pixelbeat.org/scripts/ps_mem.py tool for reporting real mem usage for programs
85.
▲
by
pixelbeat
14y ago
Also dosbox is really cool: http://www.pixelbeat.org/misc/dosbox/
86.
▲
by
pixelbeat
14y ago
Yes ASCII (and UTF-8) were designed well. http://www.pixelbeat.org/docs/utf8_programming.html
87.
▲
by
pixelbeat
14y ago
I find ack slow and overcomplicated (in implementation at least). As an alternative consider: http://www.pixelbeat.org/scripts/findrepo
88.
▲
by
pixelbeat
14y ago
I found this in my bookmarks: http://www.lshift.net/blog/2008/11/14/tracing-python-memory-...
89.
▲
by
pixelbeat
14y ago
Wow github is slow at present. The latest script is also at: http://www.pixelbeat.org/scripts/ps_mem.py
90.
▲
by
pixelbeat
14y ago
Here's a python script to do much the same thing: http://www.pixelbeat.org/scripts/ps_mem.py
More ›