The best Hacker News stories from Show from the past day

Go back

Latest posts:

Show HN: Factorio Blueprint Visualizer

Hey there, I'm a big fan of the game Factorio and the beauty of factories in the game. That's why I created a website to artfully visualize Factorio blueprints a few years ago. With the new 2.0 update, a few things broke. I took the opportunity to rewrite everything from Python to JavaScript and support Factorio 2.0 and the Space Age DLC. It's now also possible to easily modify the style of the drawings. Let me know if you find any bugs or if you have ideas for features.

Show HN: Factorio Blueprint Visualizer

Hey there, I'm a big fan of the game Factorio and the beauty of factories in the game. That's why I created a website to artfully visualize Factorio blueprints a few years ago. With the new 2.0 update, a few things broke. I took the opportunity to rewrite everything from Python to JavaScript and support Factorio 2.0 and the Space Age DLC. It's now also possible to easily modify the style of the drawings. Let me know if you find any bugs or if you have ideas for features.

Show HN: Factorio Blueprint Visualizer

Hey there, I'm a big fan of the game Factorio and the beauty of factories in the game. That's why I created a website to artfully visualize Factorio blueprints a few years ago. With the new 2.0 update, a few things broke. I took the opportunity to rewrite everything from Python to JavaScript and support Factorio 2.0 and the Space Age DLC. It's now also possible to easily modify the style of the drawings. Let me know if you find any bugs or if you have ideas for features.

Show HN: Factorio Blueprint Visualizer

Hey there, I'm a big fan of the game Factorio and the beauty of factories in the game. That's why I created a website to artfully visualize Factorio blueprints a few years ago. With the new 2.0 update, a few things broke. I took the opportunity to rewrite everything from Python to JavaScript and support Factorio 2.0 and the Space Age DLC. It's now also possible to easily modify the style of the drawings. Let me know if you find any bugs or if you have ideas for features.

Show HN: Tetris in a PDF

I realized that the PDF engines of modern desktop browsers (PDFium and PDF.js) support JavaScript with enough I/O primitives to make a basic game like Tetris.<p>It was a bit tricky to find a union of features that work in both engines, but in the end it turns out that showing/hiding annotation "fields" works well to make monochrome pixels, and keyboard input can be achieved by typing in a text input box.<p>All in all it's quite janky but a nice reminder of how general purpose PDF scripting can be. The linked PDF is all ASCII so you can just open it in a text editor, or have a look at the source code here: <a href="https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py">https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py</a>

Show HN: Tetris in a PDF

I realized that the PDF engines of modern desktop browsers (PDFium and PDF.js) support JavaScript with enough I/O primitives to make a basic game like Tetris.<p>It was a bit tricky to find a union of features that work in both engines, but in the end it turns out that showing/hiding annotation "fields" works well to make monochrome pixels, and keyboard input can be achieved by typing in a text input box.<p>All in all it's quite janky but a nice reminder of how general purpose PDF scripting can be. The linked PDF is all ASCII so you can just open it in a text editor, or have a look at the source code here: <a href="https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py">https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py</a>

Show HN: Tetris in a PDF

I realized that the PDF engines of modern desktop browsers (PDFium and PDF.js) support JavaScript with enough I/O primitives to make a basic game like Tetris.<p>It was a bit tricky to find a union of features that work in both engines, but in the end it turns out that showing/hiding annotation "fields" works well to make monochrome pixels, and keyboard input can be achieved by typing in a text input box.<p>All in all it's quite janky but a nice reminder of how general purpose PDF scripting can be. The linked PDF is all ASCII so you can just open it in a text editor, or have a look at the source code here: <a href="https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py">https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py</a>

Show HN: Tetris in a PDF

I realized that the PDF engines of modern desktop browsers (PDFium and PDF.js) support JavaScript with enough I/O primitives to make a basic game like Tetris.<p>It was a bit tricky to find a union of features that work in both engines, but in the end it turns out that showing/hiding annotation "fields" works well to make monochrome pixels, and keyboard input can be achieved by typing in a text input box.<p>All in all it's quite janky but a nice reminder of how general purpose PDF scripting can be. The linked PDF is all ASCII so you can just open it in a text editor, or have a look at the source code here: <a href="https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py">https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py</a>

Show HN: Tetris in a PDF

I realized that the PDF engines of modern desktop browsers (PDFium and PDF.js) support JavaScript with enough I/O primitives to make a basic game like Tetris.<p>It was a bit tricky to find a union of features that work in both engines, but in the end it turns out that showing/hiding annotation "fields" works well to make monochrome pixels, and keyboard input can be achieved by typing in a text input box.<p>All in all it's quite janky but a nice reminder of how general purpose PDF scripting can be. The linked PDF is all ASCII so you can just open it in a text editor, or have a look at the source code here: <a href="https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py">https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py</a>

Show HN: Tetris in a PDF

I realized that the PDF engines of modern desktop browsers (PDFium and PDF.js) support JavaScript with enough I/O primitives to make a basic game like Tetris.<p>It was a bit tricky to find a union of features that work in both engines, but in the end it turns out that showing/hiding annotation "fields" works well to make monochrome pixels, and keyboard input can be achieved by typing in a text input box.<p>All in all it's quite janky but a nice reminder of how general purpose PDF scripting can be. The linked PDF is all ASCII so you can just open it in a text editor, or have a look at the source code here: <a href="https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py">https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py</a>

Show HN: Tetris in a PDF

I realized that the PDF engines of modern desktop browsers (PDFium and PDF.js) support JavaScript with enough I/O primitives to make a basic game like Tetris.<p>It was a bit tricky to find a union of features that work in both engines, but in the end it turns out that showing/hiding annotation "fields" works well to make monochrome pixels, and keyboard input can be achieved by typing in a text input box.<p>All in all it's quite janky but a nice reminder of how general purpose PDF scripting can be. The linked PDF is all ASCII so you can just open it in a text editor, or have a look at the source code here: <a href="https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py">https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py</a>

Show HN: Tetris in a PDF

I realized that the PDF engines of modern desktop browsers (PDFium and PDF.js) support JavaScript with enough I/O primitives to make a basic game like Tetris.<p>It was a bit tricky to find a union of features that work in both engines, but in the end it turns out that showing/hiding annotation "fields" works well to make monochrome pixels, and keyboard input can be achieved by typing in a text input box.<p>All in all it's quite janky but a nice reminder of how general purpose PDF scripting can be. The linked PDF is all ASCII so you can just open it in a text editor, or have a look at the source code here: <a href="https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py">https://github.com/ThomasRinsma/pdftris/blob/main/gengrid.py</a>

Show HN: Cardstock- Free TCG Proxy Manager for Magic, Yugioh, & Pokemon

Trading cards are awesome, but paying $30 for some cardboard isn’t. I’ve upscaled 60,000 cards from the entire catalog of Yugioh, Magic, Pokemon, & a newer game, <a href="https://elestrals.com" rel="nofollow">https://elestrals.com</a>. I've made it easy to build a decklist, download it, and then print at home. Modern inkjet printers got really good when nobody was looking. While it’s clear they’re not real cards, the upscaling makes them look great for casual play (these are not tournament legal). It’s totally free, give it a try!<p>Supplies: <a href="https://cardstock.denta.co/kb/supplies" rel="nofollow">https://cardstock.denta.co/kb/supplies</a> Printer Settings: <a href="https://cardstock.denta.co/kb/settings" rel="nofollow">https://cardstock.denta.co/kb/settings</a> Instructions: <a href="https://cardstock.denta.co/kb/instructions" rel="nofollow">https://cardstock.denta.co/kb/instructions</a><p>Overview: I built Cardstock because I had some scripts to do this lying around, and wanted to explore the new Rails 8 magic. Kamal 2 (kamal-deploy.org/) is a game changer, SQLite in production is fine, and the database backed solid family of gems work like a charm.<p>Compute: I am renting a box on <a href="https://hetzner.com" rel="nofollow">https://hetzner.com</a> located in VA for $15/mo. This box has 8 gigs of ram and 2 vCPU's. This is such a deal compared to compute prices on <a href="https://render.com" rel="nofollow">https://render.com</a>.<p>Kamal 2: This thing is amazing. Kamal gives me everything I could want (easy console access, easy shell access, a way to manage secrets, a way to see my logs, and letsencrypt support for DNS), all without a PaaS tax. The best part is the accessories feature: <a href="https://kamal-deploy.org/docs/commands/accessory/" rel="nofollow">https://kamal-deploy.org/docs/commands/accessory/</a>. I am running my main app with two accessories: Meilisearch(<a href="https://meilisearch.com" rel="nofollow">https://meilisearch.com</a>) and OpenObserve (<a href="https://openobserve.ai" rel="nofollow">https://openobserve.ai</a>). Instead of paying Algolia to host search infrastructure and sentry to host monitoring infrastructure, I’m hosting my own OSS without any fanfare.<p>Upscaling: To upscale the trading cards (a mandatory part of this build, scans are never high enough DPI). I am using this (<a href="https://replicate.com/nightmareai/real-esrgan">https://replicate.com/nightmareai/real-esrgan</a>) model. For upscaling every card, I've used under a hundred bucks of compute. This model was picked on a whim, but worked well enough that I didn’t compare other models.<p>SQLite: I used SQLite combined with Litestream (litestream.io) for my database. While I considered Postgres, I hesitated due to uncertainties around handling backups on self-hosted infrastructure. This was my first time using SQLite in production, and it was functional but with some minor annoyances. Here’s what I encountered: 1. No Default UUID Primary Key Type I had to set primary keys as strings and assign IDs manually from the application record. It’s an annoying workaround but manageable. 2. No Native Array Columns Because SQLite doesn’t support array columns, I had to use its native JSON column type, which just felt icky. If I were working with something like embeddings, this would be especially annoying, because you couldn’t enforce all the records to have the same number of dimensions. 3. Cryptic Errors At one point, a migration failed silently, leaving a cryptic error in schema.rb. The issue was resolved by rolling back the migration and redoing it, but it was once again, annoying. 4. Litestream Defaults Litestream deletes snapshots after 24 hours by default, which is far too short. When I tried to recover some data, I found it had already been deleted. Adjusting these defaults fixed the problem.<p>Solid Queue/Cache/Cable: The solid family of gems are all backed by the database and were a pleasure to work with. Goal was to prevent needing to reach for redis, so you have one less thing to worry about. You end up with a little more latency, which is a totally reasonable tradeoff.<p>Conclusions: We are moving into a post platform as a service world. Instead of buying a bespoke render.com or heroku, you just buy commodity compute and use Kamal to manage. It's like, pretty much all there, excited to see how this space matures.

Show HN: Belshazzar's Clock, luminous paint night clock

Show HN: Belshazzar's Clock, luminous paint night clock

Show HN: DeepFace – A lightweight deep face recognition library for Python

DeepFace is a leading open-source library for facial recognition and facial attribute analysis, and the de facto standard in Python. It wraps multiple state-of-the-art models that have reached — and even surpassed — human-level accuracy in recognizing faces.<p>By the numbers (as of early 2025): 15,000+ stars on GitHub; ~4 million installations via pip; 800+ citations in academic papers<p>Whether you're building a cutting-edge AI project or simply exploring facial recognition, DeepFace makes advanced capabilities accessible with just a few lines of code.

Show HN: Atlas of Space

Hello HN! Sharing a recent side project of mine, the Atlas of Space, that I built out to explore the Solar System.<p>As a long-time space nerd, I realized recently that I didn't have a good intuition on the scale, speed, and relative orientation of the celestial bodies around us. So over the break I built out a kind of spatial Wikipedia to click around and learn about planets, moons, asteroids, and other bodies orbiting the Sun.<p>The physics is all simulated in the browser using simple Newtonian mechanics. There's a lot left to do from here, including modeling objects in non-Keplerian orbits and replaying different spacecraft missions.<p>Hope you have fun clicking around, and curious to hear what I should improve next!

Show HN: Atlas of Space

Hello HN! Sharing a recent side project of mine, the Atlas of Space, that I built out to explore the Solar System.<p>As a long-time space nerd, I realized recently that I didn't have a good intuition on the scale, speed, and relative orientation of the celestial bodies around us. So over the break I built out a kind of spatial Wikipedia to click around and learn about planets, moons, asteroids, and other bodies orbiting the Sun.<p>The physics is all simulated in the browser using simple Newtonian mechanics. There's a lot left to do from here, including modeling objects in non-Keplerian orbits and replaying different spacecraft missions.<p>Hope you have fun clicking around, and curious to hear what I should improve next!

Show HN: Atlas of Space

Hello HN! Sharing a recent side project of mine, the Atlas of Space, that I built out to explore the Solar System.<p>As a long-time space nerd, I realized recently that I didn't have a good intuition on the scale, speed, and relative orientation of the celestial bodies around us. So over the break I built out a kind of spatial Wikipedia to click around and learn about planets, moons, asteroids, and other bodies orbiting the Sun.<p>The physics is all simulated in the browser using simple Newtonian mechanics. There's a lot left to do from here, including modeling objects in non-Keplerian orbits and replaying different spacecraft missions.<p>Hope you have fun clicking around, and curious to hear what I should improve next!

Show HN: Atlas of Space

Hello HN! Sharing a recent side project of mine, the Atlas of Space, that I built out to explore the Solar System.<p>As a long-time space nerd, I realized recently that I didn't have a good intuition on the scale, speed, and relative orientation of the celestial bodies around us. So over the break I built out a kind of spatial Wikipedia to click around and learn about planets, moons, asteroids, and other bodies orbiting the Sun.<p>The physics is all simulated in the browser using simple Newtonian mechanics. There's a lot left to do from here, including modeling objects in non-Keplerian orbits and replaying different spacecraft missions.<p>Hope you have fun clicking around, and curious to hear what I should improve next!

< 1 2 3 ... 18 19 20 21 22 ... 761 762 763 >