Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ralph
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
301.
▲
by
ralph
15y ago
Unicode does have one-eighth blocks, which can be handy when a special font isn't convenient. ▁▂▃▄▅▆▇█
302.
▲
by
ralph
15y ago
Though looking at the code now it seems registers have been memory-mapped at 0x10000 and above?
303.
▲
by
ralph
15y ago
It's very common; the norm even. My point was that "A hash (function) is any function that maps a big variable-length data structure to a smaller (fixed-length) data structure." is incorrect; the source size isn't relevant.
304.
▲
by
ralph
15y ago
I have hash functions that work on less bytes than the length of the hash they produce.
305.
▲
by
ralph
15y ago
I haven't read the spec. or followed the topic in general, but from a quick glance at it: the size of the registers isn't given, and the registers aren't memory-mapped. Why not use an integer instead of Cell? 42 is memory address 42, -3 is
306.
▲
by
ralph
15y ago
Text files are great, especially if one's the Unix shell skills to quickly manipulate and query them without having to write a program. But XML is often overkill compared to a simpler text format.
307.
▲
by
ralph
15y ago
The problem is we're mainly conditioned to expect the condition up front, notwithstanding Perl's initial slide down this slippery slope. Ugly syntax seems an argument for improving the syntax, not changing the grammar. if mum.birthday
308.
▲
by
ralph
15y ago
I think you're getting confused with implementing sed in sed. ;-)
309.
▲
by
ralph
15y ago
Sorry, it's isn't comprehensive but more of an introduction, e.g. no mention of the difference between pattern and hold space or the n/N commands.
310.
▲
by
ralph
15y ago
How does it compare with Russ Cox's libtask, which includes channels? http://swtch.com/libtask/
311.
▲
by
ralph
15y ago
Which is why it's odd that most washrooms have you pull a door by the handle to exit, a handle many others have probably touched without washing their hands. Ikea is one place that comes to mind that avoids this, instead having a sequence o
312.
▲
by
ralph
15y ago
This is something to skim and spot bits you didn’t know, leading you to the relevant bit of the fine manual. It has errors though, e.g. /\<\d\d\d\d\> : Search for exactly 4 digit numbers /\D\d\d\d\d\D : Search for exac
313.
▲
by
ralph
15y ago
For GNU tar these days that's true, unless you can be sure $TAPE is in its environment. Historically, tar defaulted to a tape device, e.g. /dev/mt0, and you still find vestiges of that, e.g. OpenBSD defaults to /dev/rst0. IOW, specify "f -"
314.
▲
by
ralph
15y ago
Others are nabbed though. $ for t in mx a; do dig +short gmial.com $t; done 0 nullmx.domainmanager.com. 208.87.34.15 74.86.197.160 $
315.
▲
by
ralph
15y ago
I disagree. As a programmer I can represent inputs and outputs as text and write code to do intended transformations. As a quick ad hoc test I can easily knock up a shell pipeline to give confidence in those results, even if it would be t
316.
▲
by
ralph
15y ago
More discussion on Jef's G+ post. https://plus.google.com/114501281018969491281/posts/YM2YZfmz...
317.
▲
by
ralph
15y ago
What's not that simple? I didn't say anything was, just citing a reference. Did you mean to reply to the parent?
318.
▲
by
ralph
15y ago
IIRC Aho, Weinberger, and Kernighan's excellent slim tome _The Awk Programming Language_ implements something similar; awk is used to generate the awk with Field1 replaced by $1, etc.
319.
▲
by
ralph
15y ago
Or if [[ $filename == foo ]];
320.
▲
by
ralph
15y ago
The pop-up profile bubbles disappear off the bottom of the web page for those on the bottom row.
321.
▲
by
ralph
15y ago
I've read on G+ it's 500.
322.
▲
by
ralph
15y ago
Perhaps they think http://en.wikipedia.org/wiki/Broken_windows_theory may be applicable and it's best to nip stuff in the bud.
323.
▲
by
ralph
15y ago
Those globs should be protected from the shell otherwise ./bc is going to alter tr's arguments.
324.
▲
by
ralph
15y ago
The reason for preferring sed 42q instead of head -n 42 is because head didn't used to exist. IIRC it was created at Berkeley and for some years there were many systems that didn't have it. It does seem a bit superfluous when all it could
325.
▲
by
ralph
15y ago
I've a friend, no really -- it's not me, who would like to have the JVM spot SSE instructions could be used. Anyone know of a JVM that steps into this area?
326.
▲
by
ralph
15y ago
"View All" only give me the titles, I still need to look at each individually. It's a bit like a FAQ that doesn't put multiple Qs and As on the same page; a pain. Part of the benefit would be scrolling through at speed, no comments inter
327.
▲
by
ralph
15y ago
That glob could cause trouble. find . -name '*.java' -print0 | xargs -0 cat | wc -l
328.
▲
by
ralph
15y ago
You use $ too sometimes?
329.
▲
by
ralph
15y ago
Mapping to keys lets one map to the first part of a key sequence as opposed to the whole sequence/command name.
330.
▲
by
ralph
15y ago
Does this mean I'm not alone in thinking Yegge could cut half his prose and create a better post?
More ›