Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
slrz
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
34 ms
·
241.
▲
by
slrz
9y ago
Vim might do that but other implementations of vi don't. Instead, they flash the screen, ring the bell or print something to the effect of "interrupted".
242.
▲
by
slrz
9y ago
The compiler doesn't care. Even for the build tool it doesn't really matter. The one thing that cares about repositories is "go get", a small convenience wrapper around git/hg/svn.
243.
▲
by
slrz
9y ago
Rename Projects to "src" and set GOPATH to D:/.
244.
▲
by
slrz
9y ago
The FAQ entry does not state that the Go compiler boxes escaping variables (it doesn't, AFAICT). How did you arrive at that conclusion?
245.
▲
by
slrz
9y ago
Use -std=gnu++14 then.
246.
▲
by
slrz
9y ago
Shell aliases do not have that problem as they're generally used with interactive shells only. Non-interactive shells tend to read a different set of configuration files for that reason.
247.
▲
by
slrz
9y ago
Isn't this basically what PRECIS (RFC 7564) is about? There are open source implementations of that, like golang.org/x/text/secure/precis for Go (including the predefined profiles for e.g. usernames) or Unicode::Pre
248.
▲
by
slrz
9y ago
Yep. Apple got this one right with the Cmd key. Much saner than the context-dependent hijacking of the control key with its long-established conventional usage.
249.
▲
by
slrz
9y ago
Right. Many programs react to an unset EDITOR variable by assuming vi though. This makes sense, of course, as virtually all systems are going to have some implementation of vi installed. Even the almighty ed tends to be missing from the d
250.
▲
by
slrz
9y ago
The 1.8 JVM implementation is compatible with the interface provided by earlier ones. That's what's meant by backwards-compatible.
251.
▲
by
slrz
9y ago
There's path_resolution(7) in the Linux man-pages set plus of course the relevant parts of the POSIX standard.
252.
▲
by
slrz
9y ago
Oh noes, it looks like humanity got hit with a super-sophisticated cyber attack the second time in a day!
253.
▲
by
slrz
9y ago
Hi, I'm Google Docs. Would you please grant me access to your Google account so that I can read, send, delete and manage your mail, as well as manage your contacts?
254.
▲
by
slrz
9y ago
All that content is made available to non-subscribers in the following week.
255.
▲
by
slrz
10y ago
Please provide rationale showing that the associated risks outweigh the immense fun of "meatspinning" coworkers. "Don't do this" is probably not very convincing.
256.
▲
by
slrz
10y ago
I don't think it's worth it to add a cgo dependency to the package. Maybe write a set of assembly functions? The compiler can't omit calls to them and there isn't much more you can do anyway than to zero the memory.
257.
▲
by
slrz
10y ago
Something like the following: void* pedanticmemmove(void *dst, const void *src, size_t n) { char buf[n > THRESHOLD ? 1 : n]; char *p = n > THRESHOLD ? xmalloc(n) : buf; memcpy(p, src, n); memcpy(dst, p, n);
258.
▲
by
slrz
10y ago
Then don't make it too big and fall back to malloc(3) above a certain threshold?
259.
▲
by
slrz
10y ago
Some libraries explicitly document whether a given interface may be implemented as a macro. The C standard library and POSIX make these things a part of the specification. See getc vs. fgetc for example.
260.
▲
by
slrz
10y ago
With stuff like this, any ports of existing Python 2 codebases are wont to lead to tons of subtle bugs. No wonder Python 3 adoption is as low as it is.
261.
▲
by
slrz
10y ago
The implementation of region code silliness is enforced by only licensing CSS/DRM-relevant patents to hardware vendors that agree to restrict their customers in that way. That's one of the reasons the industry insists on DRM techn
262.
▲
by
slrz
10y ago
You're describing US law only, right? Because the rent-a-VHS-and-keep-a-copy thing is perfectly legal in many parts of the world. It'd be that way with BluRays too, except that there are laws now that prohibit the breaking of DRM
263.
▲
by
slrz
10y ago
If you publicly advertise your service I can probably assume your consent to speak to it. I don't have to wear a funny hat while doing so just because some hidden legalese on your website says so. At least in Europe, news organizations
264.
▲
by
slrz
10y ago
What kind of tampering are you thinking about here? Aren't those messages sent from the server to the client? Thus, in-transit tampering should be prevented by TLS. If the key isn't sent to the client, how is the client supposed t
265.
▲
by
slrz
10y ago
Right, it's almost impossible to get any work done without having pre-approved code to copy and paste from. This is especially true for highly complex problems like reading a CSV file. Those virtually require the presence of promiment
266.
▲
by
slrz
10y ago
I doesn't do anything. By including a GPL-licensed work into your software, you promise not to place any additional restrictions on the result. And it's really just that. It doesn't force any license on your code. You can
267.
▲
by
slrz
10y ago
Or, for simple cases where a single server handles all clients (i.e. no load-balanced cloud setup), just generate it on startup. A server restart will invalidate sessions, but oh well.
268.
▲
by
slrz
10y ago
I try to avoid it for new programs though, as the life of the sane language version (Python 2) is going to end at some point.
269.
▲
by
slrz
10y ago
What? Files get trashed by just opening them? This is supposed to be expected behaviour?
270.
▲
by
slrz
10y ago
Apple breaks apps all the time on macOS.
More ›