Better HN
topnewbestaskshowjobs
Log inSign up

okl

2,324 karma · joined Mar 7, 2018 (8y ago) · 727 submissions

Submissions

1.

The Fair Mouse(nager-it.de ↗)

2 points · by okl · 1w ago · discuss

comment 3w ago · link · parent

> I am pretty sure most of you are experiencing the same as me, but: Have you found ways of using AI without increasing mental overload?

I would recommend you to try using FIM/line completion rather than the agent approach. Using FIM it makes me (feel) productive while still being in control. Oftentimes when writing code for production, documentation etc. the agent approach feels like a wash to me - sometimes it saves time, sometimes it wastes time. With FIM the gain/quality is more consistent.

3.

NanoPutians, organic molecules whose structural formulae resemble human forms(en.wikipedia.org ↗)

4 points · by okl · 4mo ago · discuss

comment 4mo ago · link · parent

strncpy was originally used to write into fixed length buffers[1]. This becomes obvious when considering the padding behavior, as described in the C standard[2]: "If the array pointed to by s2 is a string that is shorter than n characters, null characters are appended to the copy in the array pointed to by s1, until n characters in all have been written."

strlcpy, often touted as a replacement, does not elicit the padding behavior but has another flaw: It is supposed to return the length of the string it tried to create, for example, so the user can call realloc without calling strlen again.[3] However, this final "strlen-tail" in strlcpy isn't bounded by the size parameter which describes dest, not src.

While strscpy is a marked improvement, there is still something to be careful about: It can read past the end of the src-buffer, when sizeof src < sizeof dest and src is not nul-terminated.[4] (Set the count argument to something like min(sizeof dest, sizeof src) to avoid that).

--

[1] - https://softwareengineering.stackexchange.com/a/438090

[2] - https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf, 7.26.2.5 p. 3

[3] - https://manpages.debian.org/jessie/libbsd-dev/strlcpy.3.en.h...

[4] - https://manpages.debian.org/testing/linux-manual-4.8/strscpy...

5.

Atlas of Humanity(atlasofhumanity.org ↗)

3 points · by okl · 5mo ago · discuss

6.

The Everyday Projects(everydayprojects.org ↗)

3 points · by okl · 5mo ago · discuss

7.

Show HN: Mutex Service – Team Coordination Tool(mutex.team ↗)

1 points · by okl · 11mo ago · discuss

comment 1y ago · link · parent

Also there is garage, which I found easy to setup: https://garagehq.deuxfleurs.fr/

comment 1y ago · link · parent

Game theoretic modelling commonly results in early escalation followed by a slower de-escalating as a winning strategy. Fits into the strong-arm approach to politics of exercising power to expand power which the current US administration seems to follow. Thus, I wouldn't think that decoupling or falling of a cliff is the intended goal.

comment 1y ago · link · parent

Did you know that 90% of gamblers quit before they win big? /s

comment 1y ago · link · parent

Problem here is that the excessive focus on secondary issues raises the perception of a problem solving deficit which reduces support/legitimacy for the political system.

It would be nice to focus on solving more existential problems of which there are enough.

12.

Wikipedia: Incrementalism(en.wikipedia.org ↗)

2 points · by okl · 1y ago · 1 comment

comment 1y ago · link · parent

https://c-ares.org/

14.

List of single-file C/C++ libraries(github.com ↗)

1 points · by okl · 1y ago · discuss

15.

Chrome enhanced spell check sends your input to Google(support.google.com ↗)

1 points · by okl · 1y ago · discuss

16.

World Press Photo Suspends Authorship Credit for 1972 'Terror of War' Photo [pdf](worldpressphoto.org ↗)

4 points · by okl · 1y ago · discuss

17.

Fortinet: Analysis of Threat Actor Activity(fortinet.com ↗)

1 points · by okl · 1y ago · discuss

18.

Ace is an embeddable code editor written in JavaScript(ace.c9.io ↗)

1 points · by okl · 1y ago · discuss

19.

The Celestial Zoo (2001)(pablocarlosbudassi.com ↗)

2 points · by okl · 1y ago · discuss

20.

What is Nuclear? – Nuclear expertise for everyone(whatisnuclear.com ↗)

3 points · by okl · 1y ago · discuss

21.

Are noise-cancelling headphones impairing our hearing skills?(theguardian.com ↗)

1 points · by okl · 1y ago · discuss

comment 1y ago · link · parent

GitHub issue for podman support, here: https://github.com/containrrr/watchtower/issues/1060

comment 1y ago · link · parent

Seems to me that everyone is focused on the technical merits, not weighing the effort of learning a new programming language/toolchain/ecosystem for the maintainers appropriately.

Mastering a new programming language to a degree that makes one a competent maintainer is nothing to sneeze at and some maintainers might be unwilling to based on personal interests/motivation, which I'd consider legitimate position.

I think its important to acknowledge that not everyone may feel comfortable talking about their lack of competence/disinterest.

24.

PEP 486 – Make the Python Launcher aware of virtual environments (2015)(peps.python.org ↗)

18 points · by okl · 1y ago · 8 comments

25.

Wikipedia: Excess-3(en.wikipedia.org ↗)

4 points · by okl · 1y ago · discuss

26.

Patent: Method of Swinging on a Swing(patents.google.com ↗)

3 points · by okl · 1y ago · discuss

27.

Wikipedia: Hollerith Constant(en.wikipedia.org ↗)

1 points · by okl · 1y ago · discuss

comment 2y ago · link · parent

> Good code is not written in a democratic way

[citation needed]

In case anyone's looking for that last sentence (quoting Kent here, not my words):

> Get your head examined. And get the fuck out of here with this shit.

https://lore.kernel.org/lkml/citv2v6f33hoidq75xd2spaqxf7nl5w...

12345
25