Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
panzi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
181.
▲
by
panzi
1y ago
Do symbols for legacy computing work with it? Especially the 1/8ths vertical/horizontal blocks?
182.
▲
by
panzi
1y ago
Wonder if my ansi-img image viewer works in that. Won't compile this from source to test it, but if it's in my Linux distribution I'll do later.
183.
▲
by
panzi
1y ago
Everything you mentioned can simply be deleted. You can't really delete this from the "brain" of the LLM if a court orders you to do so, you have to re-train the LLM, which is costly. That's the problem I see.
184.
▲
by
panzi
1y ago
AFAIK it applies to everyone. But you don't get automatically fined, someone has to sue first. Maybe there has to be a business relation between the user and the web site? And yes, with HTML you need to still use all the right tags and
185.
▲
by
panzi
1y ago
With DOM you get accessibility integration. At least in the EU if you provide a web service you have to be accessible, otherwise you can get sued.
186.
▲
by
panzi
1y ago
Yeah, part of the problem is how Windows does variable substitution before the command line syntax is parsed, and at a glance I don't see any % in that file.
187.
▲
by
panzi
1y ago
There is posix_spawn(). Some operating systems even implement that as a system call (not Linux). Implementing that as a system call has the advantage that spawning a new process from a process that has huge memory mapping is fast, because t
188.
▲
by
panzi
1y ago
Yes, but running it through a function that turns it into an absolute path is a way to ensure that. A way. An easy way.
189.
▲
by
panzi
1y ago
Yeah, especially the thing about variable substitution is insane. How can you mess this up so thoroughly!? Appendix B is a nice overview. I'm amazed that Java doesn't even mention this in their documentation!
190.
▲
by
panzi
1y ago
I understand that it is convenient for running small snippets like that, but I don't really think it's worth the risk. And putting it into a config file is different, IMO. You don't get tempted to do some bad string interpola
191.
▲
by
panzi
1y ago
If you want to run a shell script, run a shell script. I.e. a text file with the executable bit set and a shebang. If you want to generate a shell script on the fly to then run it, take a step back and think about what you're doing.
192.
▲
by
panzi
1y ago
Why would you implement system() at all?
193.
▲
by
panzi
1y ago
You need to ensure that user_input doesn't start with `-`. You can do that by forcing an absolute path. Some programs accept `--` as a marker that any arguments after that are non-options.
194.
▲
by
panzi
1y ago
I'd say: Don't use the shell if what you want to do is to execute another program. You don't need to handle any quoting with exec*(). You still need to handle options, yes. But under Windows you always have to to handle the q
195.
▲
by
panzi
1y ago
I knew print '%q' but not ${var@Q}, so that is good to know!
196.
▲
by
panzi
1y ago
Yeah, system() should definitely be deprecated and you should never use it if you write any new program. At least there is exec*() and posix_spawn() under POSIX. Under Windows there is no such thing and every program might parse the command
197.
▲
by
panzi
1y ago
Karton is German for cardboard and is often used as short for Karton Schachtel (cardboard box), so I guess it's about boxing. A lot of the time the German word for something is similar to the English word just with a K instead of a C.
198.
▲
by
panzi
1y ago
I wonder if its just used in a query like that if the generated data structure is only in memory anyway and then serialized to JSON to send to the client. I.e. JSON VS JSONB would not make any difference?
199.
▲
by
panzi
1y ago
Not sure why those are json_agg() instead of array_agg() in that example. Why would you use a JSON array instead of a native properly typed array? Yes, if you have some complex objects for some reason you can use JSON objects. But those whe
200.
▲
by
panzi
1y ago
Which systems use a single variable for nanoseconds time? The APIs I know of all use a struct with two members, one for seconds and the other for the nanoseconds within the second.
201.
▲
by
panzi
1y ago
When will milliseconds since the Unix epoch not be precisely representable in IEEE double anymore? (As it's used in JavaScript.)
202.
▲
by
panzi
1y ago
It's Android/Linux, not GNU/Linux.
203.
▲
by
panzi
1y ago
Yeah, but I want cargo to do that for me. And tell me if any build.rs does something it shouldn't.
204.
▲
by
panzi
1y ago
I'm reading this on an Android phone. The phone OS that has over 70% market share.
205.
▲
by
panzi
1y ago
So they don't use Linux, bash, or GCC?
206.
▲
by
panzi
1y ago
Yeah for a program (not a library) I'd really recommend the GPL. Although it sounds like they even violated the really permissive terms of the MIT license!
207.
▲
by
panzi
1y ago
Of course you can write code like that. This is about making it easier not to accidentally cause code injection by forgetting the call of safe(). JavaScript had the same feature and some SQL libraries allow only the passing of template stri
208.
▲
by
panzi
1y ago
> Personally, I find the idea that a compiler might be able to reach outside itself completely terrifying (Access the network or a database? Are you nuts?). Yeah, although so can build.rs or whatever you call in your Makefile. If somethi
209.
▲
by
panzi
2y ago
I mean, without `history.pushState()` and `window.onpopstate` things wouldn't be as nice. Ok, I guess one could do about everything with `location.hash = ...` and `window.onhashchange`, like in the before times. But the server will not
210.
▲
by
panzi
2y ago
My parents can't do that. They're on macOS.
More ›