Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mjevans
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
48 ms
·
691.
▲
by
mjevans
2y ago
I remembered the return value incorrectly. It's even better in that it returns a pointer to the byte immediately AFTER the last written. So remove the - 1. PS: there's also a version which works with wchar_t types (be it 2, 4 o
692.
▲
by
mjevans
2y ago
A 10GB string does sound pathologically large; however it's an argument about the absurd. What size is for sure enough? Well I'm not so sure. What if someone has a lot of titles. What if society decides that someone's Lega
693.
▲
by
mjevans
2y ago
If you know the length (and that it fits) mempcpy() , then add the terminator yourself to be sure. memcpy has the slightly annoying flaw of returning a copy of the dest argument (already known data) rather than the more useful new informat
694.
▲
by
mjevans
2y ago
Golang's slices view of the world is addictive.
695.
▲
by
mjevans
2y ago
Names are hard, don't force things into your assumptions. If you must, record fields such as: Full Legal Name - Freeform input no string input limitation. If you feel like this is an attack vector, send the data out for human review.
696.
▲
by
mjevans
2y ago
There's no reason they can't instead be used to show how data transforms. The sort of 'flow wall' someone sees in a large industrial setting (think water/waste water treatment plants, power plants, chemical plants,
697.
▲
by
mjevans
2y ago
Kind of; the human eye shifts to adjust for the quantity of light. The ambient lighting in the environment also matters too; both for cameras and eyes. Perception matters. http://camera-wiki.org/wiki/White_balance h
698.
▲
by
mjevans
2y ago
It's more nuanced than that. Modern displays do use a backlight, but might not drive it at full brightness for mostly not-white displays.
699.
▲
by
mjevans
2y ago
I agree -HOWEVER- the government should retain the ability to transmit official records. This might include the transcription of outdated formats and technologies to new formats which are supported. It SHOULD also include release to the pu
700.
▲
by
mjevans
2y ago
I wonder if there is a military grade chip equivalent to an Raspberry Pi? Or more ideally a RISC-V system that's similar. Replacement could begin by emulating the 8 inch floppy drive's electrical interface and attaching a modern
701.
▲
by
mjevans
2y ago
Finding 'the hack' to get the compilers to behave is one of the areas where I'd like to see better warnings (which could get promoted to errors). while (node) { value += node->value; next = node->next; n
702.
▲
by
mjevans
2y ago
This is crucially followed by the node++ instruction. As noted elsewhere, this increases the value of the <pointer to 'a node'> by the <sizeof 'a node'>, thereby allowing the CPU to execute at the faster of
703.
▲
by
mjevans
2y ago
These are all security nightmares aren't they? It smells as if all the resources went into delivering billing, then barely enough for technically working service, and then is there even anything leftover for security (instead of this
704.
▲
by
mjevans
2y ago
Important distinction. 'Fax' is 'exempt' not secure. So of course many places will take the relief valve even though the service is both a poor fit / quality and horridly insecure. When it works right the records
705.
▲
by
mjevans
2y ago
I would really love to have the Sleep ability the protagonist from The Long Dark has. Unless they're fully awake, as long as they're a little tired they can sleep until fully rested. I've long assumed it's probably due
706.
▲
AMD vs. Nvidia Vulkan Ray-Tracing Performance on Linux with Breaking Limit
(phoronix.com)
3 points
by
mjevans
2y ago
|
0 comments
707.
▲
by
mjevans
2y ago
I've never bothered to install a theme for it, but https://openwrt.org/docs/guide-user/luci/luci.themes they do exist. There's really no good reason they couldn't.
708.
▲
by
mjevans
2y ago
go fmt is really nice, that there is A standard for the language which is just included. No more arguments, just do what the including tooling desires. Python... I'd love if it shipped with a formatter that converted indents to braces
709.
▲
by
mjevans
2y ago
Offhand, I remember _reading_ about that but haven't ever used it in practice so please test and confirm... # Postgres can Index Function Results (including what you described) # Postgres does not magically know to USE those results.
710.
▲
by
mjevans
2y ago
Generic 'Space Tug' rather than de-orbit tug might give some other options. E.G. Punt the decision a few more years. Maybe Starship works and other options get cheeper or we can even bring the ISS back to earth? Other options: La
711.
▲
by
mjevans
2y ago
1) I didn't realize the 'caption' part was really 'first post' on the submitted article. 2.a Save - the start of the sentence. 2.b "Freedom", FTA, is the name of the US module of the ISS, a proper noun. 2.
712.
▲
Save Freedom: We Must Stop the Destruction of the International Space Station
(spacenews.com)
35 points
by
mjevans
2y ago
|
33 comments
713.
▲
by
mjevans
2y ago
That chart is a good start. It could be improved by global average yearly temperature as a proxy for atmospheric energy, and a couple more charts for human and naturally occurring greenhouse emissions.
714.
▲
by
mjevans
2y ago
Noon already does not correspond to the sun overhead. Timezones, and IIRC the time of year and inclination relative to the equator matter too. However, irrespectively, it's basically never solar noon at noon if someone is using time z
715.
▲
by
mjevans
2y ago
Location: Seattle, WA, USA - general metro area / REMOTE OK / Might also consider Portland, OR, USA metro area Remote: Yes / hybrid Willing to relocate: no Technologies: Linux, go, shell (sh, bash), SQL (PL/pg
716.
▲
by
mjevans
2y ago
IMO within a small range iterating isn't too painful. It's probably safe, maybe even close enough to optimal for typical use, to have an array or list of bytestrings for each line. Or maybe more complex Line (of text) objects tha
717.
▲
by
mjevans
2y ago
What if the origin of Osiris-Rex (Asteroid) is higher energy debris from a major impact to Earth during the early stages of organic life on the planet. Wasn't one theory (?) for our moon's creation such an impact and then a large
718.
▲
by
mjevans
2y ago
The library exists, BUT it is NOT shipped natively and NOT (AFAIK) something which trying to run a random downloaded utility app will trigger the system library loader prompting for the 'common wxWidgets runtime, for free, codesigned b
719.
▲
by
mjevans
2y ago
If anything is going to get copied by Linux as is... it'll be Win32 API so mono / C# stuff can bind directly to that, and Mac/OSX will be even more isolated. For something to be portable everywhere it'll have to be an
720.
▲
by
mjevans
2y ago
I can't remember the source, but AFAIK packed structs aren't mandated in the specification. It's terrible because a programmer will OFTEN see that result, on any architecture they're familiar with; however it isn't
More ›