Better HN
topnewbestaskshowjobs
Log inSign up

oftenwrong

15,025 karma · joined Apr 22, 2012 (14y ago) · 2,479 submissions

sfir6i2z@mailer.me
Submissions

comment 4y ago · link · parent

With regard to repo composition, I have been following this project: https://github.com/josh-project/josh

comment 4y ago · link · parent

The way you store your source code doesn't have much to do with how your system is deployed. It's the same way you can have a closet in which you store clothing for many purposes; clothing for cold weather, clothing for hot weather, clothing for formal occasions, clothing for specific recreational activities, et cetera. You can store code for different purposes in the same source tree. You can deploy something that is built from just one part of the source tree.

comment 4y ago · link · parent

I have started using mermaid to create flowcharts. It lets me break free from having to think about layout entirely. Plus, I can use my favourite text editor.

https://github.com/mermaid-js/mermaid

comment 4y ago · link · parent

3 pounds = 1.36kg

It's heavy for most recreational activities, but it might be great for expeditions. If it could be made very durable, it could be beneficial for superdeep cave exploration. In such environments there is no light, but often there is rushing wind and water. There is also a critical need for power to keep lights running. While charged batteries can also be brought in from the surface, they have a limited lifespan in the cave, and an expedition therefore needs a continuous supply of fresh batteries to continue.

305.

JEP 405: Record Patterns (Preview)(openjdk.java.net ↗)

3 points · by oftenwrong · 4y ago · discuss

comment 4y ago · link · parent

This does not seem to make sense given the sentiments I've seen from reviewers and consumers.

Pixel 3A: widely praised for having a headphone jack

Pixel 4A: widely praised for still having a headphone jack

Pixel 5A: widely praised for still having a headphone jack

Pixel 6A: no headphone jack

Personally, I am not ready to give up the headphone jack. I wish I could go fully wireless, but bluetooth audio is too frustrating to use in many cases.

For example, my family has a bluetooth speaker. Managing and switching whose phone was paired via bluetooth was so annoying. There was frequently a mismatch between the device we wanted to be connected, and the device that was actually connected. We eventually reverted to just plugging our phones into the audio-in port of the speaker. Unplugging and plugging is quick, simple, and doesn't require fiddling with device menus. Guests don't have to endure the tedious "pairing" ritual. Of course, we have to have dongles anyway...

Another example is in rental cars. For one, pairing and switching devices with car media systems is dreadful. I've also had frequent problems, with multiple different phones and multiple different cars, where audio media and satnav announcements would not switch properly over bluetooth, such that the satnav announcements would get cut off. On the other hand, the "aux" port works flawlessly 100% of the time with no fiddling. Never travel without at 3.5mm audio cable.

If the wireless audio implementations were more user friendly, I think many current headphone jack holdouts would happily cut the cord.

comment 4y ago · link · parent

It loosely follows the same metaphor as the T-shaped pipe connector that 'tee' is named for.

    $ seq 3 | tee somefile
    1
    2
    3

            ╔═somefile
    seq═tee═╣    
            ╚═stdout


    $ seq 10 | pee 'head -n 3' 'tail -n 3'
    1
    2
    3
    8 
    9
    10


            ╔═head═╗
    seq═pee═╣      ╠═stdout
            ╚═tail═╝

comment 4y ago · link · parent

You will want to read the man pages. 'pee' is straightforward to understand if you already understand 'tee'. 'pee' is used to pipe output from one command to two downstream commands.

https://en.wikipedia.org/wiki/Tee_(command)

comment 4y ago · link · parent

The Maven ecosystem partly solves the "the right java" problem, although it's not necessarily well known and not particularly great.

1. For selecting the correct JDK to use with standard plugins, including the compiler plugin, there's support for toolchains:

https://maven.apache.org/guides/mini/guide-using-toolchains....

2. For ensuring Maven itself is run with the correct JDK, it is a commom recommendation to use the Enforcer plugin to specify the required JDK version and/or vendor, as well as the Maven version:

https://maven.apache.org/enforcer/enforcer-rules/index.html

3. It is increasingly common to use Maven Wrapper to supply Maven, which you seem to be aware of.

4. Maven will run with the JDK pointed to by JAVA_HOME, of course.

310.

YAML Multiline: Find the right syntax for your YAML multiline strings(yaml-multiline.info ↗)

2 points · by oftenwrong · 4y ago · discuss

comment 4y ago · link · parent

We all saw this coming. Even if this instance is low-quality, eventually a similar scenario will happen with one that is good enough to fool most people. I think it is not long until official videos come with cryptographic signatures.

I am just realising that Star Trek: Deep Space Nine actually had a similar scenario in an episode that aired in 1998. Essentially, a deepfake of a meeting of military leaders is created in a plot to persuade a neutral nation to join a war: https://en.wikipedia.org/wiki/In_the_Pale_Moonlight

comment 4y ago · link · parent

`just` seems like a useful tool, but it only covers a secondary use case of `make`. `make` without a dependency graph is like a bicycle without wheels.

313.

When Phones Were Fun: Sony Ericsson P910 (Released 2004)(youtube.com ↗)

2 points · by oftenwrong · 4y ago · discuss

comment 4y ago · link · parent

Uncompressed PCM-based audio and bitmap-based image formats are also similarly simple, portable, and future-proof.

comment 4y ago · link · parent

I am not sure; I don't know much about performance of git operations. Which step is slow? Have you figured out why? I am curious.

comment 4y ago · link · parent

For the "move to subdir" step, I recommend using git-filter-repo, which should be preferred over git-filter-branch (older code snippets often use it).

Use git-filter-repo's --to-subdirectory-filter and --tag-rename:

https://github.com/newren/git-filter-repo#solving-this-with-...

comment 4y ago · link · parent

I have had similar issues in the past. The primary solution was to invest in an ergonomic work desk setup. The following elements are all important:

- height-adjustable desk

- monitor floating on an arm

- keyboard tray with adjustable tilt

- high-end office chair with many useful adjustments

- ergonomic input devices

With everything adjusted appropriately, I work in a perfect posture all of the time, without any strain, whether sitting or standing. I used to have pain and headaches all of the time, but now I only have them when I have tried to work away from my home setup. (I've since developed a good setup for working away from home, if anyone is interested.)

Other things I think are very important:

- Take breaks away from your desk as much as possible, for as long as possible. I like to go for a walk to think, and then come back to the desk with a plan of action. Remember that (if you're a typical HN software engineer) you are paid for what you accomplish, not for your chair time, so thinking time away from your desk is still working.

- Be physically active, including things that promote mobility. I find that the best approach is to make exercise something you do as part of life, not as a distinct activity.

comment 4y ago · link · parent

In hindsight, I understand your confusion. I agree with your comment.

Without static analysis tools like error-prone, findbugs, nullaway, checker framework, sonar, PMD, IDE-provided analysers, et cetera, it is easy to write problematic Java.

On the other hand, the Java ecosystem has an abundance of such tools available and almost everybody is using them. (Hence, "but I do have that")

comment 4y ago · link · parent

Java has a high bar for the amount of prerequisite experience it takes to write good code. In other words, it has too many pitfalls for beginners. It is a phenomenally poor choice of language for teaching beginners to code.

On the other hand, a lack of beginner-friendliness could also be seen as a lack of effective static analysis. Of course, this is a very Java programmer point-of-view.

Others: "you shouldn't need to have that"

Java programmers: "but I do have that"

If you are in a position to pick tools for your organisation, think about how your choices would accommodate beginners. Not all of your tools can be or should be easy for beginners to use, but it is an important quality to consider.

320.

Long-held beliefs about arson science have been debunked (2015)(abajournal.com ↗)

1 points · by oftenwrong · 4y ago · discuss

321.

Are Traffic Engineers Sociopaths? (2021)(dearwinnipeg.com ↗)

2 points · by oftenwrong · 4y ago · discuss

322.

Bond Ratings Are for Investors (Not Taxpayers) (2021)(strongtowns.org ↗)

1 points · by oftenwrong · 4y ago · discuss

323.

How Did New York City Government Recover from the 1970s Fiscal Crisis?(larrylittlefield.wordpress.com ↗)

1 points · by oftenwrong · 4y ago · discuss

comment 4y ago · link · parent

This reminds me a bit of The Erlang Ticket System, a "Minimal Viable Program", that Joe Armstrong described on his blog:

https://joearms.github.io/published/2014-06-25-minimal-viabl...

comment 4y ago · link · parent

That's a "null MX", indicating that the domain does not accept mail.

https://datatracker.ietf.org/doc/html/rfc7505

comment 4y ago · link · parent

I agree with all of the good things said about golang in this thread, but I could not consider it "fun". It is boring in a good way.

comment 4y ago · link · parent

I have a lot of fun with shell scripting, even if it is a terrible programming environment in so many ways. It is fun to be able to quickly hack together existing tools in such a messy, but natural, way.

comment 4y ago · link · parent

IANA also reserves TLDs like '.test' and '.example' as well as some IDN equivalents.

https://www.rfc-editor.org/rfc/rfc2606.html

https://www.iana.org/domains/reserved

comment 4y ago · link · parent

The default isolation level in postgres is read committed.

comment 4y ago · link · parent

https://impossibl.github.io/pgjdbc-ng/docs/0.8.9/user-guide/...

or

https://github.com/pgjdbc/r2dbc-postgresql#listennotify

1
101112
83