Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pletnes
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
421.
▲
by
pletnes
5y ago
This reminds me of discussions with older Fortran programmers who argue for ALL CAPS ALWAYS. I guess ligatures are fine by me, I use them and have not been bitten. Editors should rather focus on showing whitespace somehow, I have been bitte
422.
▲
by
pletnes
5y ago
Sure thing, but why not keep the source in git, then distribute to end users, as we do with other software artifacts?
423.
▲
by
pletnes
5y ago
Monetization dark patterns is one thing. But how on earth do they lure people away from the good old plaintext-in-git workflow? I found everything about postman to be anti-git in nature, and then I lose versioning, CI/CD becomes weird,
424.
▲
by
pletnes
5y ago
I’m sure you’re right, but files-on-disk is another story. I was referring to the latter.
425.
▲
by
pletnes
5y ago
Linux distros often ship xz out of the box. I’ve never seen brotli in the wild. YMMV of course - I am sure there are exceptions. I’ve used brotli myself, but only as it’s included in some parquet read/write libs.
426.
▲
by
pletnes
5y ago
Dataclasses can optionally be «frozen» / immutable IIRC. Namedtuple is intended for when you need a tuple . I’ve used it for e.g numpy array shapes, so image data has names (imgshape.width instead of imgshape[1]). There, you need an a
427.
▲
by
pletnes
5y ago
I had to stop using windows terminal because it has GPU acceleration, which ate up GPU memory I needed for pytorch/GPU accelerated neural nets. When doing regular development work, it’s another story.
428.
▲
by
pletnes
5y ago
Interesting point. I experience the same, and realized that my glasses are getting old - probably need new ones. Maybe parent doesn’t even have glasses? For this reason I prefer not-pitch-black dark themes. E.g monokai is a bit brighter bac
429.
▲
by
pletnes
5y ago
As far as I can tell, there’s far too many file formats out there. I’m sure sqlite should be used more than it currently is.
430.
▲
by
pletnes
5y ago
I miss i3 on win - do you have a how-to for that? I use powertoys but only to tweak window layout a bit.
431.
▲
by
pletnes
5y ago
I have the impression that programming has become easier. It used to be that you needed a compiler, editor and so on to build desktop apps. Now, many products support scripting in some form, so people jump to that. Or, they support data exp
432.
▲
by
pletnes
5y ago
Seconded, as a pycharm user. It doesn’t support virtualenvs inside WSL2. I mean… no virtualenvs? In a paid python IDE?
433.
▲
by
pletnes
5y ago
If you enable auto sync, it’s not much work. The setup is annoying though.
434.
▲
by
pletnes
5y ago
I have used both for this purpose. The setup in pycharm/intellij is about 100x more work so if you don’t plan on working alot on a particular project, in remote mode, it’s just too convenient to use vscode. It parses your .ssh/con
435.
▲
by
pletnes
5y ago
Numpy is all about this. E.g y = np.sin(x). X and y are arrays and you can think of them as «all values of x and y» or «the physical variables x and y»
436.
▲
by
pletnes
5y ago
With numpy, this would just be item.foo [:] = bar. Much more readable to me - the whole «for» thing is superfluous.
437.
▲
by
pletnes
5y ago
Fzf can search virtually anything, since you can pipe output into/through it. It’s fantastic.
438.
▲
by
pletnes
5y ago
On my bikes (we have 2), the electronics controlling the motor only allows the motor to run when pedaling with some force. I guess law enforcement can see if you’re pedaling, if they have one eye open. If accidents happen, they can test equ
439.
▲
by
pletnes
5y ago
Some bikes have a «walk assist» function to let you get a little help when parking, walking with the bike, etc. My Bosch mid-drive does that. I bike all winter (64 deg north) with a bunch of kids + cargo, works great.
440.
▲
by
pletnes
5y ago
If you treat a local VM as a remote server, this can also work well, without relying on working in a «remote desktop» style. This tends to cause UI lag which is more annoying than sending the run unit test» command to the remote server whic
441.
▲
by
pletnes
5y ago
HDF5 is great for many things but probably not as an application file format. In my experience it’s really hard to ensure you don’t write an invalid/corrupt file during exception handling etc. It’s great for data archival and batch pro
442.
▲
by
pletnes
5y ago
Javascript is truly weird to me (I’ve programmed mostly in python and Fortran). From what I understood though, js uses IEEE 754 floating point for everything, simply because it works the same on pretty much any hardware platform. Arm, intel
443.
▲
by
pletnes
5y ago
AFAIK, division by zero in IEEE 754 floating point shall return infinity, which is a valid floating point value. For once, javascript does the right thing.
444.
▲
by
pletnes
5y ago
This reminds me of k8s’ «out of memory error» which turns out to be «kill -9» / SIGKILL which can also happen by k8s’ own «kill process when health check fails». I have no idea who thought this was a good idea, but this needs to be fix
445.
▲
by
pletnes
5y ago
Interesting. I will have a look.
446.
▲
by
pletnes
5y ago
Sometimes I almost lose my mind over these situations where git on windows reports a permissions change (git status claims a diff) but there is no way to commit nor revert. This happens maybe once per year and I’ve no idea what a proper fix
447.
▲
by
pletnes
5y ago
I did that about 10 years ago, with virtualbox and «raw disk image» or whatever the feature was called. One physical drive per OS. Worked great for me at the time. No idea if this still works. (Win7 and debian at the time)
448.
▲
by
pletnes
5y ago
They claim API compatibility with standard scikit-learn. If that’s true, you can optionally run with sklearnx, or not, without any rewriting of code. Sounds fair to me. Intel has done similar work before in the C/Fortran world; see BLA
449.
▲
by
pletnes
5y ago
Shellcheck is great and is a standalone cli program, as well as a website if you don’t want to install it locally. https://www.shellcheck.net/
450.
▲
by
pletnes
5y ago
Echoing the command also lets you see that shell escaping, parameter expansion etc. works as you expected. I do the same when writing a one-off loop, too.
More ›