HN user

pacoverdi

229 karma
Posts10
Comments132
View on HN

I had two encounters with Lua many years ago.

The first to write "stored procedures" in Redis (I forget the correct terminology). It allowed to improve the performance of Django endpoints by an order of magnitude.

In the second, I wrote a Wireshark plugin (also not sure of the proper term) to dissect a proprietary protocol.

I don't remember the details but this is not a programming experience I look forward to renew... (Same feeling about Perl btw)

Possibly indices starting at 1 were the most disturbing.

IntelliJ has become pretty powerful with Git these days.

Squashing, dropping commits, rebasing. Even interactive rebase can be done in a few clicks.

I sometimes pop up IDEA to do some non-trivial cleanup in a repo. Even if relatively fluent with the command line, it saves me a lot of time.

This article made me conscious of my use of the mouse: I realize that I move it only with a ~3cm square, which allows to reach all corners of the screen by only moving my fingers, while the base of my palm stays "locked" to the desk. When using multiple screens, the mouse does some quick hops to reach them, but almost never leaves that square.

This requires configuring the mouse to have sufficient "speed". I've never had any musculoskeletal disorder, probably thanks to making such small moves with my hand and staying relaxed.

Yep, I was not excluding muscle memory when I said it had to do with muscle. It is true that breathing through the nose seems effortless (at least when resting).

The "reeducation" consisted in a few 30 minutes sessions (probably around 5, not sure) and I don't remember having done any conscious effort to breathe through my nose after that. It just seemed easy.

That said, I still have to breathe through my mouth when running.

I did the same 25y ago, as prescribed by my allergy doctor. It was called (translation from French) "breathing reeducation", and it was roughly interval training: breathe fully in through your nose, then blow into a pipe (connected to a spirometer) at various speeds.

Before that, I was mostly breathing through my mouth. It was challenging even to eat a sandwich while walking :). Since this reeducation, I only breathe through my nose with no effort. I'm willing to believe it indeed has to do with muscle.

I write (at least) 2 kinds of tests:

- TDD, which as you say describes the system's behavior. But it often deals with the nominal cases. It is hard to predict all that can go wrong in the initial development phase.

- tests designed to reproduce a bug. The goal of these to try very hard to make the system fail, taking inspiration with the bug's context

Maybe this LLM test generator could allow to be more proactive in the second kind?

Point and click is 2 dimensional.

I would have said point and click is 3-dimensional.

Otherwise, how can you read the text through the edges of buttons before clicking?

I have a 2014 MBP that was working fine (except for some screen defects that I did not get fixed before it was too late for the warranty)...

Until I left it in my basement for a few weeks, i.e. in a slightly cold and humid environment.

Now, the keyboard is broken: I need to press multiple times on each key (it's better now that it has dried a bit, but not perfect).

The trackpad is also broken: only hard-clicking works.

Next step is to open and clean it up but I don't have much hope.

I viewed it on Firefox for Android and I immediately had to jump to reader mode for the same reason.

But I tend to use reader mode on most sites anyway because it's an easy way to get rid of banners (cookies, subscription etc.)

DevTools Tips 3 years ago

One thing that bugs me (with no solution in this site) is the Breakpoints panel that opens everytime a breakpoint is hit.

In Chrome, this is not a big issue because the panel is on a separate column (compared to the main panel where variables values can be browsed).

In Firefox, both panels are in the same column. When many breakpoints are set, one must scroll or click to close the breakpoints panel before any work is possible.

Fairphone 5 3 years ago

Same boat. Feels like I bought my Pixel 5 yesterday and it feels like new, no way I'm going to trash it. It's unlikely I will buy (or recommend) another Pixel if they don't extend the security updates period.

Wonder why it is so short: is support that expensive for many models? or simply to force users into unneeded upgrades (F* that).

Ouch, I had my first one a few weeks ago, 4mm too and this hits home.

3 days before the acute crisis which led me, vomitting with pain, to the ER, the symptoms were weird and not easily attributable to a kidney stone: a few drops of pink urine at first, discomfort more than pain, mostly in the morning after peeing, then almost ok for the rest of the day.

The ct scan showed swelling of the kidney. When I finally ejected the stone (more like peeing black sand) 6 days later, I lost ~2kg over the next 24h.

The medicine that helped with the pain was ketoprofene (and antispasmodics) but 2 doses a day were clearly not enough to cover 24h :(

didn't know about lemon though...

I really doubt that WSL2 will be at native speed with the Linux file system

I had the same doubts, but when I finally took the time to install it, I found out that I was wrong. One Java program that I use, which is very heavy on the filesystem and slow like hell under Windows it a LOT faster under WSL2.

As Java profiler support is poor on Windows, I now use WSL2 to run async-profiler sessions and get results as accurate as on native Linux.

EDIT to add: you really have to run things fully in the WSL2 filesystem, be it for compiling or using a program. The performance is awful if you run WSL2 processes under the Windows filesystem.

Thanks, I did not see the FAQ which was hidden underneath the cookie banner :)

You may be right. When looking at the side view, the rear of the 5008 seems a little higher, while the height of the front part is pretty similar in both cars.