Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pletnes
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
511.
▲
by
pletnes
6y ago
Tritium’s half life is \approx 12 years.
512.
▲
by
pletnes
6y ago
Interestingly the language doesn’t define stack/heap allocated so sometimes there’s a compiler flag to put «stack arrays» on the heap, since implementations are free to choose anyway.
513.
▲
by
pletnes
6y ago
You can do that in Fortran, too, since 1990ish. Out of curiosity, when did you last write Fortran code?
514.
▲
by
pletnes
6y ago
There are several good style guides around. It might not matter which of the good ones you use. If you use one consistently, though, your writing will improve over time. Whether this will help you in your concrete work/life for a value
515.
▲
by
pletnes
6y ago
Do you have any concrete usage examples of that? I’ve only used breakpoint() to stop execution while debugging.
516.
▲
by
pletnes
6y ago
Is there an API or a way to do «polite scraping»? Could be a fun AI dataset.
517.
▲
by
pletnes
6y ago
In python there’s the pint module, which works with pandas dataframes, which can read/write excel sheets. So yeah, maybe. Why do anything in excel, except for data entry?
518.
▲
by
pletnes
6y ago
Cool! I’ve used xonsh for some time, it can store history in sqlite format. Then any such analysis can be done with SELECT...ORDER BY etc.
519.
▲
by
pletnes
6y ago
Cython is great, but it (used to?) introduce its own language with its own type syntax.
520.
▲
by
pletnes
6y ago
I got the «no desktop icons» advice in the early xp days and had no idea why it was so slow. Now I know, at last. I’m guessing this algorithm is at least from the win2k days.
521.
▲
by
pletnes
6y ago
Just for clarification, dask lets you run any python function on any python datatype. Numpy/pandas is faster, but anything is doable with dask. This makes it eminently flexible, unlike many «big data» tools that only work on tables, or
522.
▲
by
pletnes
6y ago
This is one reason I like zsh - they are extremely compatible. I also have a different prompt so I immediately notice if I’m inside zsh.
523.
▲
by
pletnes
6y ago
Jupyter already let you run shell so at least have a look for inspiration - and limitations that would be nice to lift (e.g faster output)
524.
▲
by
pletnes
6y ago
There’s a %%bash cell magic which turns one cell into a bash cell. What about a %%xeus cell to run a SELECT (or any sql)? Would that work?
525.
▲
by
pletnes
6y ago
Or read the string to be formatted from a file, to name another use case.
526.
▲
by
pletnes
6y ago
Yes, and it also takes approx 11 seconds to learn, since str.format already had exactly the same syntax, just slightly more verbose.
527.
▲
by
pletnes
6y ago
I’m not so I just add something to my calendar. Busy meeting people often use the outlook scheduler to pick a time, and since I’m busy they don’t bother, and just find some other time. Works most of the time.
528.
▲
by
pletnes
6y ago
What if the work event allows for the first social interaction? If there’s no opportunity to get to know people from work, you may not discover common interests, etc. I’ve certainly been surprised a few times about colleagues I realized I d
529.
▲
by
pletnes
6y ago
Hence the invention of the intercooler diesel engine.
530.
▲
by
pletnes
6y ago
If you think vim is frustrating for a beginner, you have no idea what it feels like to edit text in non-vim for a half-assed vim user. Really, I don’t master vim after >1decade, but that’s not necessary.
531.
▲
by
pletnes
6y ago
Although my current day job is very professional about this, I’ve seen the other side, too. «We have some code from 5-10 y back, can you compile it?» and only half the files are there. It would be great if HN had some content on «moving fro
532.
▲
by
pletnes
6y ago
Hobs output >2 kW, phones just... don’t (edit: i.e range of magnetic field is longer)
533.
▲
by
pletnes
6y ago
Many of the slots are vertical, i.e on desktops, so it’s a nearly pointless fact anyway.
534.
▲
by
pletnes
6y ago
It seems a more apples-to-apples comparison would be to open a file, seek(), read() a block, then close() the file. Just as bizarre as the repeated mmap, of course.
535.
▲
by
pletnes
6y ago
Bokeh is also made to create embeddable, interactive plots for html/js. You can create quite sophisticated graphics with it from the backend alone. (We use it for web apps at $WORK)
536.
▲
by
pletnes
6y ago
In several cases over the years, I’ve inherited matlab code and tried to run it on octave. Never worked, once. There were always just one small missing syntax, function, edge case of handling filenames... Once I inherited code written for o
537.
▲
by
pletnes
6y ago
Surprisingly, the researcher might also have been surprised the first time they found out.
538.
▲
by
pletnes
6y ago
There are other issues, too. At least at some point, absolutely no haskell based apps would run, since their stdlib used some syscall which WSL1 did not implement. Broke pandoc for me. Stopped bothering with WSL1 there and then. Other issue
539.
▲
by
pletnes
6y ago
Same difference in my experience - WSL1 git screwed up git repos for me, broke git lfs, +++. I guess it’s more of the same-ish on WSL2, just different edge cases due to different edges.
540.
▲
by
pletnes
6y ago
The focal length is a property of the lens and as such irrespective of which camera it is attached to.
More ›