News for hackers. Stuff that matters.

scottwick

Re:Ask HN: Is a 6 Day Work Week the new norm? on Saturday July 13, 2024 @12:21PM (#40954929)
Lol, I'm at the point where anything > 4 days per week is a hard no.
Re:Automating my gate door via a smart relay on Tuesday July 02, 2024 @11:55AM (#40857876)
What happens if the 2nd signal (after the 200ms delay) is never received? Would keeping the relay closed like that cause any issues?

I wonder if a more "robust" way to handle this would be a custom microcontroller on the receiving end that receives a single Zigbee signal and implements the 200ms delay internally.

Re:Ask HN: Outstanding Programmers on Tuesday April 23, 2024 @02:10PM (#40135141)
Yeah, that's definitely true. I find that I'll often be excited about an idea and immediately start putting in the time to build a rough prototype. Once I realize the true scale of the effort involved I second-guess my commitment to the idea - is this really something I want to spend the next year+ working on? I think having that clear vision and enough conviction that the results will be worthwhile is very important and definitely something I struggle with.
Re:Pinterest's simple tech stack to scale to 11M monthly users on Saturday December 23, 2023 @10:19AM (#38744801)
Nice to see that they're just using EC2 + S3 instead of a whole suite of niche cloud offerings that we see these days. Maybe this is mentioned in the linked presentation (https://www.infoq.com/presentations/Pinterest/) but are they using managed databases? Or just running their own on EC2 instances as well?

Curious to watch https://www.infoq.com/presentations/Pinterest/ at some point.

How did you bail without losing your deposit? I would have thought if you were the highest bidder you'd either be on the hook for the full purchase or lose your deposit.
Do you see the deposit amount and all the details of the escalation from the triggering offer in that case?

Say I saw that the triggering offer had a measly deposit and I suspected it of being fake. Would I be on the hook to prove it? Technically if I rescind my offer at this point I lose my own deposit, right?

> putting down $500 earnest money on a $300K house would look suspicious enough to get you ignored by the buyer

Assuming you mean the seller here? If I were the seller I too would ignore that kind of offer but first I'd let it push all the other escalation clauses up ;)

Not really related to the article but something I've been wondering...

In recent years the housing market has been so competitive that escalation clauses are often written into offers. They typically include a base offer of $X and then an agreement to escalate that value by increments (maybe $1-5k at a time) up to some cap. All the offers are collected by a certain date and then an auction is run behind the scenes by the realtors involved.

What's to stop a seller from having one of their friends enter into one of these escalations? Submit a non-serious offer with a high escalation and include a minimal deposit which would be forfeited if that fake offer happens to win but otherwise hope it comes in 2nd to push everyone else's escalation up.

Yeah, this is exactly what I do as well. I'd be curious to hear more about your deployment process, specifically how you get your Docker image onto the VPS. Do you just push to a registry like DockerHub and then pull it down on the VPS?
Re:Show HN: E-Ink Day Schedule on Monday September 25, 2023 @09:20AM (#37643321)
Does this use the battery? Not clear to me if the Kindle program is running continuously or if it just periodically starts up, refreshes the screen and then powers back down.
Re:Graphical Python Profiler on Wednesday July 05, 2023 @04:31PM (#36606685)
Is there something about the actual profiler that differs from existing tools like pyinstrument [1] or py-spy [2]? I know pyinstrument has various output options and I wonder if it could potentially output something readable by the Firefox Profiler tool.

[1] : https://github.com/joerick/pyinstrument [2] : https://github.com/benfred/py-spy

Re:Ask HN: How do you stay on top of advances in AI? on Wednesday June 14, 2023 @09:43AM (#36325819)
Me too! I've seen PaulHoule mention it a few times and it sounds really interesting.
Any book in particular?
Re:Ask HN: What Happened to Elm? on Friday February 10, 2023 @08:15PM (#34748443)
I've never used Elm or interacted with the community but reading some of those posts remind me that the B in BDFL is quite important.
Re:Ask HN: What is your new year's resolution? on Sunday January 01, 2023 @08:35AM (#34206152)
> but humanity has closed the doors to the kinds of futures I was working toward

Curious to hear more about what you mean by this.

Re:Surviving Disillusionment in Software Development on Saturday December 31, 2022 @08:16AM (#34196163)
I feel the same way. I've been doing web-related stuff for about 13 years now and have lost much of my interest. Started dabbling with electronics and embedded systems about 5 years ago and it completely re-piqued my interest in writing software. I'm still doing backendy web things for money but would love to move away from that. Any recommendations for moving into the embedded field professionally? What sort of companies are you working for?
Re:Ask HN: Good UI (not pgadmin) for PostgreSQL? on Monday November 28, 2022 @01:26PM (#33777421)
I've been using DBeaver (https://dbeaver.io/) and I think it's pretty good
Re:The ATtiny 2-Series on Monday November 28, 2022 @12:21PM (#33776386)
I totally agree, they're really great for simple hobby projects! I've mostly used the ATTiny85 and it's easy to understand the datasheet, easy to program, battery efficient and comes in a DIP-8 form factor for easy breadboarding. Compared with something like an STM32 I find it quite fun to work with!
Re:Creating a pick and place control board with the RP2040 on Saturday November 05, 2022 @03:45PM (#33484886)
Fantastic write up - thank you! I also love hearing about why each part was chosen. As an electronics hobbyist I often mimic portions of others' designs but I'm not always entirely sure why a certain part was chosen among the various options.

Do you prototype all this on a breadboard before making the PCB and picking specific parts? I'd be curious to hear more about your process. I feel like I always need to test everything I build on a breadboard first since I inevitably miss some small detail if I go straight to schematic + PCB design.

Does anyone have any recommendations of books or other resources that go over the theory behind full-text search? i.e. language processing, data encoding, on-disk storage and retrieval, etc.
Re:GraphQL kinda sucks on Sunday August 07, 2022 @11:28AM (#32377215)
Could you point me to some documentation about this? Is this something that's built in to Apollo? Or just that Apollo enables building this sort of architecture more easily?
Re:GraphQL kinda sucks on Saturday August 06, 2022 @02:47PM (#32370553)
A frontend application that I work on has each component making separate tiny GraphQL queries to render just what it needs. The result is often 5-10+ GraphQL requests to render a single page. Is this a common practice?

It seems like a lot of overhead to me since the backend has to perform some redundant queries (i.e. fetch and authorize the user, etc.) in order to serve each of those requests. I had thought one of the main selling points of GraphQL was that the frontend could make a single API request and have everything it needs to render the entire page. Any thoughts?

Re:GraphQL kinda sucks on Saturday August 06, 2022 @02:41PM (#32370523)
GraphQL is nice from a consumer's perspective but results in a lot of extra complexity on the backend IMO. It sounds nice in theory for the frontend to just request whatever it needs but there are often performance considerations that make this easier said than done. You end up either tailoring the database queries for particular GraphQL queries (i.e. eager loading certain things you know will be fetched) or implementing some sort of more generic dataloader pattern. The fields and data types become more explicit through the schema but there are still implicit access patterns in play. Definitely a tradeoff vs. a REST API where each endpoint can be highly optimized since you know exactly what's being returned.
Re:Ask HN: How does HN manage to be always online? on Tuesday June 21, 2022 @10:38PM (#31831462)
Wow, I had no idea HN was built like that - I'm impressed. I really wish I could read the Arc code better though since I'd love to know more about the details of how data is represented on disk and when things move in and out of memory, etc.

Does anyone know of other open source applications with similar architectures like this?

Re:GraphQL Is a Trap? on Saturday May 07, 2022 @09:24AM (#31294261)
Is there a recording of your talk available? I'd be very curious to watch.
Re:Ask HN: How do you track your finances? on Thursday April 07, 2022 @04:20PM (#30949869)
I've been using beancount [1] and beancount-import [2] for a while now and I'm liking it quite a bit. Every month I download CSVs of transaction data from my various accounts (checking, savings, credit card, etc.) and run beancount-import to categorize and reconcile transactions (I've written a few custom importers for this) into the ledger. I can then use bean-query (part of beancount) to perform SQL queries over the ledger data (i.e. expenses in the past month grouped by category). I feel like I'm just scratching the surface so far of what's possible with these tools but it has definitely helped me be more organized with my personal finances.

[1] https://github.com/beancount/beancount/

[2] https://github.com/jbms/beancount-import

Re:Ask HN: Why aren't you starting your own company? on Tuesday February 15, 2022 @04:41PM (#30353163)
I'm very much the same way. For a lot of lower-effort SaaS offerings I look at them and think: "I can't believe people pay for this when I can replicate the parts I need with a few Python scripts or a simple Rails app". The things I am willing to pay for are often much more ambitious businesses and would likely require far more effort than I'm willing to devote (i.e. things like Digital Ocean or Fastmail).

Older »