News for hackers. Stuff that matters.

jastr

Re:ΠFS on Wednesday June 10, 2026 @07:25PM (#48484176)
Back in college, I thought I could compress my phone number by telling people its index in pi, but my 7 digit phone number is at an 8 digit index.

I didn’t have the compute to find my 10 digit number with the area code.

Re:A DuckDB-based metabase alternative on Wednesday February 18, 2026 @05:24PM (#47067266)
I had this too until I lowered it's memory limit. In ~/.duckdbrc `set max_memory='1GB';` or even less
Re:A DuckDB-based metabase alternative on Wednesday February 18, 2026 @05:24PM (#47067254)
By default, it tries to take 80% of your memory. I've found that you need to set it to something much smaller in ~/.duckdbrc `set max_memory='1GB';`
Re:Charts.css: CSS data visualization framework on Sunday October 30, 2022 @10:15AM (#33394678)
You can be my first user!

https://postgraphs.com/ - it’s an old weekend project of mine that I’d like to finish up soon

Re:The dumbest way to solve a maze [video] on Monday September 12, 2022 @11:00AM (#32811351)
Similarly, watch a random walk solving a maze https://stripenight.com/random_walk.html
The best way to get software engineers to solve your issue with X is to phrase your question “Why is X so horrible? It can’t even do Y.”

The engineers will inevitably reply “That’s so simple. You just need to …”

The ecosystem for managing python dependencies has improved a lot: pyenv, virtualenv, poetry.

PATH isn’t innate to Python. Understanding PATH will definitely help with other issues in the future.

I hadn't heard of Opera Unite. It's similar and 10+ years older!

Thanks for the kind words - friends have been mostly confused by this project.

Re:Why companies move off Heroku (besides the cost) on Wednesday April 27, 2022 @03:32PM (#31184690)
Heroku's github integration has been down for 2 weeks
Re:Are Product Hunt's featured products still online today? on Wednesday February 09, 2022 @12:41PM (#30275517)
> there's actually proportionally less failures in Product Hunts busiest period

This is a really interesting post! I think there's a little survivorship bias. As Product Hunt grew 2015-2017, users posted old projects of theirs which were already popular and successful.

Re:Postgres is a great pub/sub and job server (2019) on Friday December 17, 2021 @07:26PM (#29600067)
This is advice that seems reasonable but is actually pretty harmful.

Take a startup with a few users. The senior engineer decides they need pub/sub to ship a new feature. With Kafka, the team goes to learn about Kafka best practices, choose client libraries, and learn the Kafka quirks. They also need to spin up Kafka instances. They ship it in a month.

With postgres, they’ve got an MVP in a day, and shipped within a week.

This is a neat idea, but I think the site is a bit too barebones for people to want to trust with their data.
Re:SQL: The difference between WHERE and HAVING on Tuesday December 14, 2021 @08:35AM (#29551299)
The article does a good job of explaining the difference between WHERE and HAVING. The simplest resource I've found for this is Julia Evans' "SQL queries run in this order" [0], which points out for example that SELECTs are one of the last things to run in a query.

I've managed software teams and data engineering teams, and both teams get tripped up with even moderate SQL queries. To simplify, we encouraged teams to use a clearer subset of SQL. Most HAVING can be replaced with a WHERE inside a more readable and explicit subquery. Similarly, we got rid of most RIGHT JOINS.

[0] https://jvns.ca/blog/2019/10/03/sql-queries-don-t-start-with...

Re:Ask HN: Web App Environment Recommendation? on Monday December 13, 2021 @03:53PM (#29544512)
This is quite a bit of infrastructure for an app that hasn't launched yet. If it's not too late, consider simplifying by removing RabbitMQ or Redis. Perhaps even getting rid of both, and only using MySQL. Maybe your workers could become cron-jobs or threads.

For hosting, consider Heroku and Heroku add-ons for MySQL, Redis, and RabbitMQ. You could run workers in Heroku as well.

It would be possible to run this entirely in a VPS as well and fairly straightforward. I've also had success running the web app (with postgres and redis) in Heroku but the workers on a VPS.

Re:Tailwind CSS v3.0 on Thursday December 09, 2021 @08:27PM (#29505398)
When you first hear Tailwind's concepts, they seem to contradict everything you know about good software design. When you try it out and begin to remember some of the class names, you get into a great state of flow - it's the high developers are always chasing.

I can't help but feel that Tailwind detractors have never actually tried Tailwind or are too square to give it a chance.

Hi HN! This was a python script I used on the command line for a while, before spending a weekend converting it to a microsite.

Pretty print json with single quotes or None or anything that looks like json, like python dictionaries/arrays or anything that PHP can spit out.

Lots of developers believe that if they think hard enough and choose the right side project, it will succeed.

I think the takeaway here is that chance plays a big role. So increase your chances by shippings lots of projects. And a tip to ship several projects is to stay emotionally, physically, and financially healthy.

Browser extensions will redirect HTTP to HTTPS as the request is made, so CoffeeShopWifi can't help you there.

Most sites will send a redirect to HTTPS, which CoffeeShopWifi does not.

So I decided it's safe to make a cert and support HTTPS.

Neat to see all the alternatives. I'm not sure what non-technical folks do when faced with this problem, so I picked a friendly domain name.

Ironically, if CoffeeShopWifi.com works successfully, the users won't see it.

Re:PrettyPrintPlease – Pretty Print Invalid JSON on Wednesday June 30, 2021 @08:46AM (#27687791)
Hi HN, PrettyPrintPlease is a small weekend project that I’m excited to share.

I work at a hardware company and spent a few months with our logistics team integrating a lot of outdated APIs to automate moving hardware around the world. APIs to check shipping rates, taxes/duties, international banned entity lists, etc!

You wouldn’t imagine the horrendous software these logistics companies use. Pretty printing invalid json has been tremendously helpful for debugging issues!

Re:Ask HN: What is your passive income 2020? on Thursday October 22, 2020 @01:06PM (#24860317)
https://PopcornNotify.com - API for sending email and text messages. About 3 weeks of work, making a little money.

https://CSVExplorer.com - Web app for opening big CSV files. Months of work to build, but now just a few hours of support a week.

https://TheSimplePostcard.com - Send Postcards via text message. A few weeks of work, now mostly passive.

Re:So you want to write your own CSV code (2014) on Friday May 15, 2020 @04:17PM (#23196900)
I have a saas for non-devs to open big CSVs, so code I've written has parsed thousands of garbage CSVs (and failed to parse thousands others).

Lots of pitfalls are easy to avoid if you already know them, which it sounds like you do. The author is saying that most engineers aren't aware of these issues, and the author is correct.

Writing a for loop is easy, but so is using a language's built in CSV writer.

Older »