HNHacker News
TopNewBestAskShowJobs

Ndymium

1,525 karma · joined November 19, 2015

Web developer @ Tampere, Finland
submissionscomments
Ndymium··on Seattle could become the first city to ban caste discrimination
Slavery existed among Native Americans before Europeans already.
Ndymium··on Ask HN: Those making $0/month or less on side projects – Show and tell
Honestly, I don't know. I think WakaTime is great (based on what I've read), and it does time tracking which Code::Stats does not do (and probably will not do). Other than that, I don't really know its features because I've never used it, so I don't think in terms of how to compete with WakaTime. I just think of things that I'd like to see in my own service. I know people who use both, and why not?

Code::Stats started as my own version of an old site called Codeivate that had a similar XP based tracking system. Codeivate disappeared from the web completely for unknown reasons, so I launched my own because I liked the idea.

As for future ideas, one of the more requested things is user groups that would have combined statistics and internal leaderboards (with heavy disclaimers), so I'm definitely doing that at some point. I'd also like to do more gamification side things, like badges for reaching certain levels in languages. As a third, I want to look into monthly/annual reports that could be emailed.

If you have ideas, I'd love to hear them. :)

Ndymium··on Ask HN: Those making $0/month or less on side projects – Show and tell
I don't live in the US and don't have a horse, but I love this site. Such a simple site and a focused idea, it's refreshing.
Ndymium··on Ask HN: Those making $0/month or less on side projects – Show and tell
As a hobby project, I run Code::Stats[0]. It's a website that tracks what languages you are programming in (via editor plugins) and gives you a profile page with various statistics[1]. It's ad-supported (with EthicalAds) to deal with server costs, or you can buy a support account to remove ads. The site and all the editor plugins are open source, the site is written in Elixir (but I'm looking at integrating Gleam in the future).

Currently it's completely a free time thing; I make negative money on it. My dream would be to have enough paying users to work on it part time (even a little), but that's far away and may never happen. But I like using it myself so I'll keep running it for the foreseeable future.

[0] https://codestats.net/

[1] https://codestats.net/users/Nicd

Ndymium··on Ask HN: What have you created that deserves a second chance on HN?
As a hobby project, I run Code::Stats[0]. It's a website that tracks what languages you are programming in (via editor plugins) and gives you a profile page with various statistics[1]. It's ad-supported (with EthicalAds) to deal with server costs, or you can buy a support account to remove ads. The site and all the editor plugins are open source, the site is written in Elixir (but I'm looking at integrating Gleam in the future).

Currently it's completely a free time thing; I make negative money on it. My dream would be to have enough paying users to work on it part time (even a little), but that's far away and may never happen. But I like using it myself so I'll keep running it for the foreseeable future.

[0] https://codestats.net/

[1] https://codestats.net/users/Nicd

Ndymium··on Apple issues security update for the almost 10-year-old iPhone 5S
Not iOS but IOS.
Ndymium··on Do heat pumps work in cold climates?
That's an interesting amount, since I assumed things are cheaper in the US. I live in Finland and we got an offer for my house to install an air-to-water heat pump system (with an existing radiator network, which I assume you have too with your old gas boiler) for 13 k€ total. Is your house very big or what explains the huge difference, since you quote it would have been $20k more than some lower price?
Ndymium··on Do heat pumps work in cold climates?
Having a heat pump transfer the energy to heating water that is then circulated in radiators is becoming quite common in the Nordics, and often used as a replacement for an oil burner. It's more efficient than a regular heat pump that just uses hot air to warm the home.

Of course dealing with crappy insulation can often be more bang for buck.

Ndymium··on Do heat pumps work in cold climates?
OP must have accidentally put in 10°F, which is -12°C.
Ndymium··on How to store your app's entire state in the url
Yep, I rechecked it and seems Chrome/Fx/Safari all support at least 32k. I replied in another comment I'm considering a checkbox to allow even longer URLs, though, I don't know who would want to paste them for others to read. :D
Ndymium··on How to store your app's entire state in the url
Yep, it is! You can find the sources on GitLab[0]. The compression is done using brotli-wasm[1].

The entry point to the compression is the syncCompress[2] function, which converts the data to UTF-8, adds the needed header bytes, and then compresses using brotli-wasm. Decompression is done in a streaming way in streamDecompress[3]. This is to avoid zip bomb attacks, where even a short URL could decompress to gigabytes of data, locking the browser. Thankfully brotli-wasm had streaming decompression builtin, I just had to write the wrapper code to update the text content and the status bar in the UI.

You can find the brotli-wasm code I'm using in the vendor folder[4], there is a JS wrapper and then the WASM code (both are straight from brotli-wasm).

[0] https://gitlab.com/Nicd/t

[1] https://github.com/httptoolkit/brotli-wasm

[2] https://gitlab.com/Nicd/t/-/blob/05e587b0183ff80b1c6e050b5d3...

[3] https://gitlab.com/Nicd/t/-/blob/05e587b0183ff80b1c6e050b5d3...

[4] https://gitlab.com/Nicd/t/-/tree/05e587b0183ff80b1c6e050b5d3...

Ndymium··on How to store your app's entire state in the url
Nov 2022 it was. Seemed like everyone was having covid, and so was I. The idea came up in a Discord discussion, so I decided to go for it. Later I added the syntax highlighting and file naming. I also added a little extensible header system so that I could add more features in the future without breaking old URLs. Now I'm thinking maybe I should allow extra long URLs (>2048) if the user requests so, they seem to be supported in Chrome/Firefox/Safari...
Ndymium··on How to store your app's entire state in the url
Great minds think alike? I just posted about my URL-using pastebin: https://news.ycombinator.com/item?id=34315577
Ndymium··on How to store your app's entire state in the url
Last November I had covid and during that time I wrote a little pastebin that runs in the browser, compresses the paste data with Brotli, and puts it in the URL. It has line numbers, file naming, and syntax highlighting so it's feature complete for my own use. Here's a demo, but beware, the URLs are loooong: https://nicd.gitlab.io/t/#NhfW?Qm3F?6-&22c&CQZXuP+Aej5OXzXk7...

I find it interesting to sometimes play around with the pasted data just to see how it compresses. Sometimes adding a character or two may cut several characters from the URL length!

Ndymium··on My Youtube earnings
The permit cannot be obtained for private persons or companies at all, only for non-profit associations. The "small-scale money collection" that can be done with a written notification is possible for private persons, but also has limits:

* Max 10,000 € per round

* Max 3 months per round

* Max 2 rounds per year

* Needs a group of at least 3 persons to organise

Ndymium··on My Youtube earnings
In the case of donations, soliciting donations in any way is illegal in Finland for private persons and companies. That also makes things like YouTube's sponsor button, GitHub Sponsors, etc. nonstarters.
Ndymium··on Zip Function Solution: Haskell, Elixir, JavaScript, Python, Vlang
Sure, but if we want to highlight other languages' lack of tail call support, maybe we should showcase that support in those languages that do support it. :)
Ndymium··on Zip Function Solution: Haskell, Elixir, JavaScript, Python, Vlang
Interestingly, the post says "JavaScript [...] has tail call issues", but at least the Elixir algorithm is not tail recursive and will blow up with inputs that are too big.
Ndymium··on Quirks, Caveats, and Gotchas in SQLite
In PostgreSQL a varchar is also a text type column but with an added length check. So it's actually just slower to insert and not more space efficient, as far as I know. So SQLite is not alone in this.
Ndymium··on The smash and grab of Kroger-Albertsons
The coin/token lock is used in all stores in Finland, I've never had a problem with it in winter. Sometimes I'm in the store without a token (I never have coins) but there's usually a cart unlocked already, since you can get the token out without locking the cart if you fiddle a bit.
Ndymium··on Sauna use as a lifestyle practice to extend healthspan
If you have a sauna in your home (which most Finns do), then you can afford to use it 4-7 times a week even if you're not rich. Though maybe not with the current electricity prices, but earlier it was no problem. I'd say 7 times is a bit excessive though, but I know people for whom 4 times a week would be normal.
Ndymium··on Meli – email client in the terminal, in the spirit of mutt
Is it much? I have around 120k emails in my inbox. macOS Mail.app opens it in a jiffy. Computers are supposed to be fast nowadays.
Ndymium··on Tell HN: Sudden Chile daylight savings time rules change causes chaos
Storing datetimes as UTC is not enough for even past dates for all situations. If you need to know what local time an event happened in the past and there's more than one location your user may have resided in, you need to have stored the local time as well, since there's no reliable target you could convert that UTC to.
Ndymium··on Queen under medical supervision at Balmoral
Finland also has our 3rd woman PM right now. Though one of them was only PM for 68 days.
Ndymium··on WikiHouse – Open source, modular, wood based, zero carbon housing
Isn't the majority of carbon in a tree coming from the air, not soil? I could imagine it removes nutrients though.
Ndymium··on Ask HN: Which startups have the most interesting pivot stories?
Not that Nokia. Nokian Tyres plc (Nokian Renkaat Oyj) was split in the 80s and is the company making tires. Rubber boots were made by Nokian Footwear (Nokian Jalkineet), split in 1990 and nowadays a brand of Berner Oy. Paper products at Nokia (the city) are made by Nokian Paperi which is a part of Swedish company Essity.

The Nokia plc we all know mostly focuses on wired and wireless network technology.

Ndymium··on Nokia’s Burning Platform Memo (2011)
Were they? I had a Lumia with WP7 and it had nearly zero apps, zero multitasking (accidentally click on the Bing button and your app state is lost) and near zero things to do. I remember a very visible metaphor for the whole device was the calendar's month view: it literally showed "Lorem ipsum" for the days you had some events. Supposedly due to performance concerns, and this lasted to WP8 as well.

The only cool thing was the grid but that only goes skin deep. Otherwise I hated the phone. Maybe WP8+ devices were better but WP7 was a piece of crap. I didn't want to try WP8 and got myself a Jolla instead.

Ndymium··on Show HN: I'm building an open-source Amazon
Is it, really? The domain name doesn't resolve and Wikipedia talks about the project in past tense. Is it being developed?
Ndymium··on Finnish as a world language?
I would use the idiom "sana sanaa vastaan", i.e. "word against word" for that situation.
Ndymium··on Finnish as a world language?
Just a note, you wouldn't say yksi-tuhat, as just tuhat already implies "one". So rather tuhatyhdeksänsataaseitsemänkymmentäviisi or as I'd say it out loud, tuhatyheksänsataaseitkytviis.
← PreviousPage 4 of 13Next →