Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ralph
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
181.
▲
by
ralph
14y ago
The Foundation have recently released a new distro, based on Raspbian, that gives better performance and is now their recommendation. Hardware floating point and better use of the ARM's instructions. X11 graphics performance still to be imp
182.
▲
by
ralph
14y ago
Do people find it's happy with an ad hoc wifi hotspot, e.g. as set up in Ubuntu 12.04. http://www.howtogeek.com/116409/how-to-turn-your-ubuntu-lapt... It doesn't work for me, the hotspot isn't listed on the Nexus among the many local netw
183.
▲
by
ralph
14y ago
My normal way of running grep is ~/bin/g. #! /bin/sh exec egrep --color "$@" (Not a bash, my shell, alias because they're unavailable in many contexts.) egrep is AKA grep -e. I don't use GREP_OPTIONS because it pollutes those
184.
▲
by
ralph
14y ago
You might want to consider using single quotes to protect your globs and regexps more rather than backslashes. \✳.[ch] will match the ./✳.c that may have been accidentally created by an earlier error, then find will only look for a file cal
185.
▲
by
ralph
14y ago
Your bug fix is broken; it makes no sense to place it there. I suggest increasing the number of test inputs to first show the problem.
186.
▲
by
ralph
14y ago
Both the article's improved pipeline and Doug McIlroy's original have a bug. I've just written about it on +Ade Oshineye's post about the original article. https://plus.google.com/105037104815911535953/posts/KuXczyiw...
187.
▲
by
ralph
14y ago
I agree, annoying, and I didn't realise many others thought the same. Thanks for the link, I've tried to spread the word. https://plus.google.com/115649437518703495227/posts/iWtSJhR8...
188.
▲
by
ralph
14y ago
See `failglob' elsewhere on this page. What you suggest is sometimes useful but also sometimes wrong and hard to spot because the glob might match locally and one not realise.
189.
▲
by
ralph
14y ago
Personally, I `shopt -s failglob' in my .bashrc so any glob that fails to expand is treated as an error by the shell and the command never gets started. I then quote all special globbing characters that I intend to pass to the command as it
190.
▲
by
ralph
14y ago
I often see ack recommended by word of mouth but unfortunately I feel it's between programmers that don't understand the Unix command-line enough to instruct grep, find, xargs, etc., sufficiently accurately to do what they intend and ack ha
191.
▲
by
ralph
14y ago
What do you think is doing the expansion of the asterisk? It's the shell, not grep, and is called globbing. http://en.wikipedia.org/wiki/Globbing The reason there are files that start with a dot is that ls(1) and globs starting with an as
192.
▲
by
ralph
14y ago
Yes, that's globbing, but I was wondering what the OP meant by argument expansion. It could be just globbing, or include globbing but extend to variable expansion, braces, command substitution... It's hard to put a case that having the shel
193.
▲
by
ralph
14y ago
> In Grep grep -R 'some term' * , in Ack ack 'some term'. The -R tells grep to search through all directories and subdirectories while the * tells it what types of files. No, that's not how it works with grep. The shell is expanding the
194.
▲
by
ralph
14y ago
Please define "argument expansion".
195.
▲
by
ralph
14y ago
No, have a skim of the top-level comments on this post or others. It's not simple time-based ordering, popular comments get pushed to the top. Freshness is a factor, else all new comments would be near the bottom with un point, but as all t
196.
▲
by
ralph
14y ago
There's no need to "wait for a bit". Just go back and reload the page in order that you have fresh fnids that stand a chance of still being in the cache when you click the link.
197.
▲
by
ralph
14y ago
It was a lot worse in that past but pg cut back on the number of fnids being generated, switching to more conventional methods. There's still quite a few around though and obviously increased traffic, meaning more new fnids to store, puts p
198.
▲
by
ralph
14y ago
It's the top post when I visit the story so it's presumably got more than all the others, including me?
199.
▲
by
ralph
14y ago
I'm unclear what you're suggesting but your up-votes suggest I'm alone. :-) The fnid (function ID) is the index into the cache storing the continuations. It's this cache that's dropping `old' entries as new ones are added. Depending on how
200.
▲
by
ralph
14y ago
No, it's a bug, a design flaw in using continuations. See my other comment. If it was by design then the links wouldn't continue to work for longer at quiet times on the site; they do simply because old continuations haven't been flushed to
201.
▲
by
ralph
14y ago
Yes, that's right, but if you look at the page source you'll see fnid used elsewhere too, e.g. "add comment" IIRC. It's annoying to have typed a comment, hit add, only to find the continuation has been flushed from the cache at the server.
202.
▲
by
ralph
14y ago
This is an old problem due to the use of fnid to refer to a continuation. http://news.ycombinator.com/item?id=164254 (The poor formatting of sed is caused by the post being made dead; it triggered a re-submission of the content causing co
203.
▲
by
ralph
14y ago
Yes, sometimes when it's a particularly large transfer I want a progress meter but I normally don't so it's in the way; perhaps when we all had modems. And from a script I'd still want to use -sS instead of -s because although the script is
204.
▲
by
ralph
14y ago
I rarely find I use curl's -s without its -S, e.g. -sS. It seems curl's design is flawed in its definition of -s; perhaps it's historic and it was too late to change it.
205.
▲
by
ralph
14y ago
Thanks for clarifying the question. To learn comp. sci. read Aho and Ullman's excellent C edition of Foundations of Computer Science . (That's Aho as in awk.) What you need for a good grounding all in one place. You can still pick up a pap
206.
▲
by
ralph
14y ago
lcc(1) the C compiler. As well as having readable C source, you'd learn something about the innards of C, how it is implemented, and there's a good accompanying book by Fraser and Hanson that covers the complete source as a "literate progra
207.
▲
by
ralph
14y ago
I found I couldn't enter my password in unusual situations, e.g. holding the keyboard in one hand, typing with the other. I finally cottoned on that my fingers' muscle memory was typing the password consistently but it wasn't what I thought
208.
▲
Eze Vidra creates a Google+ Page: +Y Combinator.
(plus.google.com)
1 points
by
ralph
14y ago
|
0 comments
209.
▲
by
ralph
14y ago
I wasn't suggesting reading a label. One measures the visible picture in real life, e.g. ruler, and calculates the DPI. CRTs didn't have a label on the back and, anyway, one could adjust the picture size.
210.
▲
by
ralph
14y ago
One uses Option "DPI" "96 x 96" in an xorg.conf or similar file; this overrides DDC from the monitor. Note, not all monitors have the same density of pixels in both directions. https://wiki.archlinux.org/index.php/Xorg#Display_Siz
More ›