News for hackers. Stuff that matters.

felixr

Re:Poor Man's Polaroid on Thursday March 05, 2026 @10:40AM (#47262903)
You can buy a camera with an integrated thermal printer for 20$ or even less.
For a textual teaching language check out https://hedy.org It is multilingual (not just English) and introduces syntax gradually
Re:Show HN: Chat with 19 Years of HN on Sunday May 18, 2025 @06:13PM (#44024694)
I asked how much money people say they need to retire early.

In the answer:

> Median “target number” is about $401 k

So it thinks 401(k) means $401k :-)

Re:Tk9.0: CGo-free, cross platform GUI toolkit for Go on Thursday November 28, 2024 @02:56PM (#42268142)
These are Go bindings for Tk, a cross-platform widget toolkit initially developed as extension for Tcl. Nowadays a lot of languages have bindings for Tcl/Tk. Python for example has been including tkinter [0] for a long time.

[0]: https://docs.python.org/3/library/tkinter.html

Re:Designing My Own Watch (2020) on Thursday August 22, 2024 @06:11AM (#41318516)
If you look at https://www.watchrecon.com/ good get an idea what people spend on watches if they are into (collecting) watches
Re:Treescope: Interactive HTML Pretty-Printer on Friday July 26, 2024 @11:13AM (#41079282)
"Treescope was originally developed as the pretty-printer for the Penzai"

Penzai: JAX research toolkit for building, editing, and visualizing neural nets https://news.ycombinator.com/item?id=40107007

Re:Eza: A modern, maintained replacement for ls on Monday July 22, 2024 @05:06AM (#41032255)
I find it strange that the README does not mention at that `eza` is a fork of `exa`.
Re:Ian's Shoelace Site on Monday September 25, 2023 @01:43PM (#37647749)
Same here. I always had problems with laces getting undone. Not with this knot.
Re:Ask HN: Vision Models to Parse UI on Tuesday January 24, 2023 @12:33PM (#34506939)
* * *
Re:MIT Fast Code Seminar on Tuesday December 13, 2022 @02:29PM (#33974412)
Looks like only some of the talks have a link to slides. The links visually blend into the other link in the title column.

[edit: some of the talks also can be found elsewhere when searching for the title]

Re:Tldrawe – Draw on any webpage with tldraw on Thursday December 08, 2022 @04:21PM (#33913611)
I think this is a great idea and is super useful if you want to add annotations for a screenshot or overlay annotations in a screen sharing session

Source code: https://github.com/nimeshnayaju/tldrawe

Re:Ask HN: Is there a site that is just a text scratchpad? on Friday November 25, 2022 @05:40PM (#33747623)
Using one of the many JS editors in something like codepen.io works well:

eg https://codepen.io/quill/full/KzZqZx or https://codepen.io/JessieWooten/full/wYObEX

Or one of the many online markdown editors (https://markdownlivepreview.com/, https://dillinger.io/)

Re:Moving Away from UUIDs on Tuesday November 22, 2022 @03:34AM (#33703441)
> The dash-separated hexadecimal format takes 36 characters to represent 16 bytes of data.

You can use a different formatting. I would suggest looking at https://github.com/oculus42/short-uuid Of course if you just want a random ID, then you might not need a UUID. But UUIDs have the advantage that there are different versions and you can distinguish them; e.g. you might want a unique ID that gives you some debugging information (where/when was it created), so you use v1 and later you can decide to switch to v4 if decide you want the IDs to carry no information.

Indepedent of how you generate the ID, I think the base-57 encoding that shortUUIDs use is quite good when the IDs are user facing. Not using O,0,l,1,I in the alphabet makes IDs more readable.

Re:How not to end up in jail with a felony on Tuesday October 25, 2022 @06:03PM (#33336732)
> When my job gives me a task that's hard and complicated and has lots of paperwork, I don't get to say "naw don't want to".

I would probably see it more like low priority bugs in an issue tracker. They only get done when there's nothing with higher priority or someone takes a person personal interest.

Re:Gaming CS Interviews on Wednesday September 28, 2022 @05:28AM (#33006075)
Yes. Simplest in-place example would be bubble sort. You might need a temp element for swaps, but that's it. Heap sort can also be done with constant space. You need of course O(n) space to store the original data; but that is not part of the sort algorithm.
Re:Gaming CS Interviews on Wednesday September 28, 2022 @05:23AM (#33006041)
Sorry, wasn't clear. Was talking about the space complexity. If you sort in-place you don't need O(n) space, you can do with O(1 ). Not talking about time complexity

Older »