<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: Ndymium</title><link>https://news.ycombinator.com/user?id=Ndymium</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Fri, 27 Nov 2026 01:49:32 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=Ndymium" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by Ndymium in "Try Gleam"]]></title><description><![CDATA[
<p>There are two sides to compatibility with Elixir: using Gleam in Elixir and using Elixir in Gleam. The former is harder, the latter is easier (with caveats).<p>Using Gleam in an Elixir project did/does rely on mix_gleam. I've used it some years ago and it worked then, but I haven't had recent experiences. There is a pull request[0] to Elixir to add built-in support for Gleam and as I understand it the Gleam team have made several changes to Gleam tooling to facilitate it, but it's unmerged as of now.<p>Using Elixir in a Gleam project is just an external function away, just like using Erlang or JavaScript (when using the JS target). E.g.<p><pre><code>  @external(erlang, "Elixir.Some.Module", "my_fun")
  fn my_fun(some_arg: Wibble) -> Wobble
</code></pre>
You can also write .ex files in your codebase and use functions from them as externals and they'll be compiled by Gleam.<p>The two main issues on that side are macros and structs. Since Gleam doesn't know about Elixir source or Elixir macros, you can't use them directly. But you can have an .ex file that uses macros and then you can call functions from that file. Structs are trickier, because they're just dynamic maps with a special key-value pair, and maps in Gleam (called Dict) have fixed types for the keys and values. That means you can't model a struct as a Dict. Gleam uses records for its own custom types, so what you can do is either use records on the Elixir side (with the Record module or by hand), or map the Elixir side data structures to be more palatable for Gleam (and vice versa) in your external functions --- which is what you generally do with externals anyway. Of course, if you only intend to pass the Elixir structs around and then back to Elixir, you can model them as external types that are then opaque to Gleam.<p>[0] <a href="https://github.com/elixir-lang/elixir/pull/14262" rel="nofollow">https://github.com/elixir-lang/elixir/pull/14262</a></p>
]]></description><pubDate>Tue, 10 Nov 2026 07:23:36 +0000</pubDate><link>https://news.ycombinator.com/item?id=50437143</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=50437143</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50437143</guid></item><item><title><![CDATA[New comment by Ndymium in "Google cleared 300 hectares of Finnish forest"]]></title><description><![CDATA[
<p>This article is a bit old, LVV has already ordered Google to stop construction until the YVA processes are done. What is still unclear is if Google will face any repercussions for acting before the YVA was done, but it is looking unlikely.<p>Edit: One source in English but even this is a while ago: <a href="https://www.bbc.com/news/articles/cvj6jkx6g1r0o" rel="nofollow">https://www.bbc.com/news/articles/cvj6jkx6g1r0o</a></p>
]]></description><pubDate>Thu, 22 Oct 2026 17:04:00 +0000</pubDate><link>https://news.ycombinator.com/item?id=50198135</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=50198135</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50198135</guid></item><item><title><![CDATA[New comment by Ndymium in "Google told to halt work on datacentres in Finland over environmental concerns"]]></title><description><![CDATA[
<p>Which court stopped construction? I have not read that courts are involved at all yet, only that Finnish Supervisory Agency (Lupa- ja valvontavirasto LVV) has ordered Google to stop construction. I found a source [0] claiming that some areas that are important for biodiversity were first spared and then cut down, but this does not mean that they were old growth and the Muhos county official Mikko Kari states "[The areas] are not legally mandated to be protected."<p>Now, I'm not a fan of Google and I'd much prefer this whole project was scrapped, which is why I'm interested if there are sources that provide something that I've missed from the Finnish media.<p>[0] <a href="https://suomenluonto.fi/uutiset/luonnon-monimuotoisuudelle-tarkeat-alueet-saastettiin-aluksi-googlen-muhoksen-hakkuissa-kesalla-nekin-hakattiin/" rel="nofollow">https://suomenluonto.fi/uutiset/luonnon-monimuotoisuudelle-t...</a></p>
]]></description><pubDate>Wed, 14 Oct 2026 09:04:33 +0000</pubDate><link>https://news.ycombinator.com/item?id=50084571</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=50084571</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50084571</guid></item><item><title><![CDATA[New comment by Ndymium in "Google told to halt work on datacentres in Finland over environmental concerns"]]></title><description><![CDATA[
<p>What's the source for this? I haven't seen claims of cutting down old growth forest.</p>
]]></description><pubDate>Tue, 13 Oct 2026 05:52:36 +0000</pubDate><link>https://news.ycombinator.com/item?id=50067314</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=50067314</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50067314</guid></item><item><title><![CDATA[New comment by Ndymium in "Google told to halt work on datacentres in Finland over environmental concerns"]]></title><description><![CDATA[
<p>From the Ministry of Agriculture and Forestry[0]:<p>> More than 75% of Finland’s land area is covered with forest. [...] About 3 million hectares of Finnish forests are protected or under restricted use, which represents 13% of the total surface area of forests (forest land and low-productive forests). The area of protected forests fully excluded from fellings is 2.5 million hectares, which represents 10.8% of the total surface area of forest and low-productive forest land.<p>[0] <a href="https://mmm.fi/en/forests/forestry/forest-resources" rel="nofollow">https://mmm.fi/en/forests/forestry/forest-resources</a></p>
]]></description><pubDate>Mon, 12 Oct 2026 07:04:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=50052409</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=50052409</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50052409</guid></item><item><title><![CDATA[New comment by Ndymium in "Keyboard differences between Windows and Macs"]]></title><description><![CDATA[
<p>I still call it the Apple key ("omppu" in Finnish, colloquial form of "omena") even though the symbol hasn't matched for a long time. I use it when thinking about shortcuts as well, like a screenshot being shift-omppu-4.</p>
]]></description><pubDate>Fri, 09 Oct 2026 06:30:11 +0000</pubDate><link>https://news.ycombinator.com/item?id=50016764</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=50016764</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50016764</guid></item><item><title><![CDATA[New comment by Ndymium in "Picard 3.0"]]></title><description><![CDATA[
<p>I just recently went through my whole library with Picard and it worked well while the UI was definitely geared for power users. Really happy with the end result.<p>There was one UX papercut that ended up messing some data on tracks that I had to correct later: fields with multiple values, like "Artists", show the multiple values like "Beats and Styles; Toni W.". But the field in the UI is also editable as a text field, and if you manually write that with the semicolon, it stores <i>one</i> artist with the semicolon included! It took me a while to realise that I can right click to open an editor where multiple values can be entered and edited separately.</p>
]]></description><pubDate>Mon, 05 Oct 2026 16:33:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=49967066</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=49967066</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=49967066</guid></item><item><title><![CDATA[New comment by Ndymium in "You can defeat the Dream Devourer from Chrono Trigger using an int overflow"]]></title><description><![CDATA[
<p>A classic way of getting endless money in Transport Tycoon was to build a tunnel going from one edge of the map to another. The money counter would overflow and you'd get enough money to last you a lifetime.<p>As kids we didn't know why this would happen, we just knew that it did and used it every game.</p>
]]></description><pubDate>Sun, 20 Sep 2026 06:41:42 +0000</pubDate><link>https://news.ycombinator.com/item?id=49773098</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=49773098</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=49773098</guid></item><item><title><![CDATA[New comment by Ndymium in "How to Block Some of the Bots"]]></title><description><![CDATA[
<p>In my case it's my Forgejo instance. My blog is static files with a limited amount of pages to crawl and indeed it's no issue at all. Forgejo is a dynamic service with an infinite amount of pages to discover and it runs git in the background to generate (some of) the pages. Tons of bots can easily overwhelm my small server. I could hide the repositories, but they're open on purpose (it's open source after all).<p>I have it guarded by a simple cookie check now, which seems to work well enough. Only a small subset of bots pass it. It likely kills search engine discoverability, but that's the tradeoff I have to make.</p>
]]></description><pubDate>Mon, 27 Jul 2026 04:12:54 +0000</pubDate><link>https://news.ycombinator.com/item?id=49065127</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=49065127</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=49065127</guid></item><item><title><![CDATA[New comment by Ndymium in "British Columbia, Time Zones, and Postgres"]]></title><description><![CDATA[
<p>If my user does jog at 2 AM, then it's better to show 2 AM than 7 PM or 10 AM even if there is a slight chance that on one singular day 2 AM might repeat itself. The user who is aware of how daylight savings works will surely be able to figure that out.<p>Technically you might argue that I should show 1 AM if the user did run at 2 AM in summer time, but everyone I personally know keeps their schedule over DST transitions. That is, if they did something at X o'clock before the transition, they'll keep doing it at X o'clock after it (sleep be damned). So generally showing 2 AM would be the most correct solution.<p>You cannot get that information from just UTC if you don't know where the user was when they made those historical events. Thus you either have to keep a history of their location (complicated) or just store the local timestamps (or at least the offsets) at the time of event. Always being able to convert from UTC with no extra data assumes that the user will never move, which might be fine if your application is limited to users in a single country.</p>
]]></description><pubDate>Wed, 24 Jun 2026 05:30:14 +0000</pubDate><link>https://news.ycombinator.com/item?id=48655559</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=48655559</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48655559</guid></item><item><title><![CDATA[New comment by Ndymium in "British Columbia, Time Zones, and Postgres"]]></title><description><![CDATA[
<p>Copying what I posted under the original[0] that no one noticed because it's quite relevant to your mention of UTC for past events:<p>The naming of "timestamp with time zone" is one of my favorite pet peeves. It's one of those things that you can say "well technically it's true" about.<p>The article suggests that for past events, UTC and this timestamptz would be acceptable as a general rule, but even there it depends on what you will be doing with the data. If you intend to interpret it as a series of local occurrences and try to visualize/summarize that data later, you may be in for a surprise as your user has moved to another timezone and now all the past events are translated to the wrong local hours [1]. For example, your system might end up showing that the user's best time for jogging based on historical data is at 2 in the night.<p>[0] <a href="https://news.ycombinator.com/item?id=48558005">https://news.ycombinator.com/item?id=48558005</a><p>[1] <a href="https://blog.nytsoi.net/2022/03/13/utc/" rel="nofollow">https://blog.nytsoi.net/2022/03/13/utc/</a></p>
]]></description><pubDate>Tue, 23 Jun 2026 04:19:36 +0000</pubDate><link>https://news.ycombinator.com/item?id=48640221</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=48640221</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48640221</guid></item><item><title><![CDATA[New comment by Ndymium in "British Colombia, Time Zones, and Postgres"]]></title><description><![CDATA[
<p>The naming of "timestamp with time zone" is one of my favorite pet peeves. It's one of those things that you can say "well technically it's true" about.<p>The article suggests that for past events, UTC and this timestamptz would be acceptable as a general rule, but even there it depends on what you will be doing with the data. If you intend to interpret it as a series of local occurrences and try to visualize/summarize that data later, you may be in for a surprise as your user has moved to another timezone and now all the past events are translated to the wrong local hours [0]. For example, your system might end up showing that the user's best time for jogging based on historical data is at 2 in the night.<p>[0] <a href="https://blog.nytsoi.net/2022/03/13/utc/" rel="nofollow">https://blog.nytsoi.net/2022/03/13/utc/</a></p>
]]></description><pubDate>Tue, 16 Jun 2026 20:23:21 +0000</pubDate><link>https://news.ycombinator.com/item?id=48561495</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=48561495</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48561495</guid></item><item><title><![CDATA[New comment by Ndymium in "Job: Head of Stonehenge"]]></title><description><![CDATA[
<p>This is what it looks like right now. Unless there's some huge economic boom coming, which I doubt.</p>
]]></description><pubDate>Tue, 09 Jun 2026 15:43:02 +0000</pubDate><link>https://news.ycombinator.com/item?id=48462598</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=48462598</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48462598</guid></item><item><title><![CDATA[New comment by Ndymium in "Job: Head of Stonehenge"]]></title><description><![CDATA[
<p>As a Finnish dev with 12 years of experience, I can only aspire for such salary.</p>
]]></description><pubDate>Tue, 09 Jun 2026 05:54:35 +0000</pubDate><link>https://news.ycombinator.com/item?id=48457052</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=48457052</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48457052</guid></item><item><title><![CDATA[New comment by Ndymium in "SingleRide: Longest route on NYC Subway without visiting the same station twice"]]></title><description><![CDATA[
<p>It's a game. You're supposed to click on the different route options that are presented to you on the bottom of the screen. That's why it goes slower the more options there are.<p>But I also just followed it for the first time from beginning to end, not doing anything. Because I assumed someone had already done the math.</p>
]]></description><pubDate>Thu, 07 May 2026 10:18:41 +0000</pubDate><link>https://news.ycombinator.com/item?id=48047621</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=48047621</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48047621</guid></item><item><title><![CDATA[New comment by Ndymium in "Facebook's Fascination with My Robots.txt"]]></title><description><![CDATA[
<p>While 7700 per hour sounds big, pretty much any dinky server can handle it. So I don't think it's a matter of DDoS. At this point it's just... odd behaviour.</p>
]]></description><pubDate>Mon, 23 Feb 2026 14:17:25 +0000</pubDate><link>https://news.ycombinator.com/item?id=47122655</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=47122655</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47122655</guid></item><item><title><![CDATA[New comment by Ndymium in "Facebook's Fascination with My Robots.txt"]]></title><description><![CDATA[
<p>Forgejo does set "cache-control: private, max-age=21600", which is considerably more than one second, but I grant it uses the "private" keyword for no reason here.</p>
]]></description><pubDate>Mon, 23 Feb 2026 14:13:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=47122605</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=47122605</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47122605</guid></item><item><title><![CDATA[New comment by Ndymium in "Facebook's Fascination with My Robots.txt"]]></title><description><![CDATA[
<p>For some reason, Facebook has been requesting my Forgejo instance's robots.txt in a loop for the past few days, currently at a speed of 7700 requests per hour. The resource usage is negligible, but I'm wondering why it's happening in the first place and how many other robot files they're also requesting repeatedly. Perhaps someone at Meta broke a loop condition.</p>
]]></description><pubDate>Mon, 23 Feb 2026 12:01:46 +0000</pubDate><link>https://news.ycombinator.com/item?id=47121211</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=47121211</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47121211</guid></item><item><title><![CDATA[Facebook's Fascination with My Robots.txt]]></title><description><![CDATA[
<p>Article URL: <a href="https://blog.nytsoi.net/2026/02/23/facebook-robots-txt">https://blog.nytsoi.net/2026/02/23/facebook-robots-txt</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=47121210">https://news.ycombinator.com/item?id=47121210</a></p>
<p>Points: 91</p>
<p># Comments: 53</p>
]]></description><pubDate>Mon, 23 Feb 2026 12:01:46 +0000</pubDate><link>https://blog.nytsoi.net/2026/02/23/facebook-robots-txt</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=47121210</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47121210</guid></item><item><title><![CDATA[New comment by Ndymium in "Roundcube Webmail: SVG feImage bypasses image blocking to track email opens"]]></title><description><![CDATA[
<p>Note that the API is split into XSS-safe and XSS-unsafe calls. The XSS-safe calls [0] have this noted for each of them (emphasis mine):<p>> Then drop any elements and attributes that are not allowed by the sanitizer configuration, <i>and any that are considered XSS-unsafe (even if allowed by the configuration)</i><p>The XSS-unsafe functions are all named "unsafe". Although considering web programmers, maybe they should have been named "UnsafeDoNotUseOrYouWillBeFired".<p>[0] <a href="https://developer.mozilla.org/en-US/docs/Web/API/HTML_Sanitizer_API#xss-safe_methods" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/API/HTML_Saniti...</a></p>
]]></description><pubDate>Mon, 09 Feb 2026 11:11:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=46943987</link><dc:creator>Ndymium</dc:creator><comments>https://news.ycombinator.com/item?id=46943987</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46943987</guid></item></channel></rss>