HNHacker News
TopNewBestAskShowJobs

2143

1,334 karma · joined July 14, 2020

HN top bar colours #92dfcf #003366 #00CCFF #add8e6 #C48B9B

yeah why not just store those here :)

submissionscomments
2143··on Logistics challenges of saving Air India’s diverted 777 in Russia
I'm neither American not Russian.

Although I was initially a bit surprised, it makes sense. I mean, I suppose there are plenty of Russians in America living a totally normal life.

2143··on Modern Life Is Rubbish: Tao Lin’s Taipei (2013)
Why are you going to the airport? Is that relevant?
2143··on June 2023 Data Dump is missing
> We need to revert to small, focused forums, with less anonymous, more persistent communication, run by people we trust.

You're onto something. Team-BHP [1] is run exactly like this, and it seems to be working.

For those wondering, it's a car-enthusiasts website based in India. They've been around for around 18 odd years I think.

The moderators all have actual dayjobs.

When signing up you have to write a paragraph about why you're really a petrolhead (or dieselhead because Indians love European turbo-diesels :) ), and there's a human on the other end vetting your sign-up application! Plenty, including me, have been rejected atleast once. I got in on my 2nd attempt years later.

As a matter of principle they refuse to do car advertisements.

I don't know how well the site is engineered but it works. Check it out. But I suspect most non-Indians (such as most people on HN) wouldn't find it that useful as it's mostly about the Indian car scene.

[1] https://www.team-bhp.com/forum/

2143··on Apollo will close down on June 30th
> I quickly put together a small app where I could input the prices and it would output monthly/yearly cost, cost for free users, paid users, etc. so I'd be able to process the information immediately.

Next time this kind of situation comes up, I highly recommend using a spreadsheet.

2143··on You can serve static data over HTTP
I like your website. Nice and clean. Even the underlying HTML is clean. Well done.
2143··on Google Authenticator now supports Google Account synchronization
> > Where I'm from, we generally don't use safes.

> That's on you.

In some places the general level of trust is so high that things like theft simply does not happen.

Yes there's a possibility one might lose valuable stuff not kept in safes. There's also the possibility of loosing the keys (or forgetting the combination) of the safe.

And lastly, wouldn't it be so badass ironic if the safe sent a code to your email for verification? :D

2143··on Tom Lesley has published 40 books in 2023, all with 100% positive reviews
Perhaps that's how I would eventually get rid of my HN addiction.
2143··on Ask HN: People with direct knowledge of YouTube Algorithm-why the repeats?
There are some items which I occasionally repurchase — N95 masks, HP printer cartridges (next time I swear I'll get a Brother laser printer or something), mouthwash, handwash, toothbrushes, and yes sometimes even clothing articles such as socks.

So, most "consumables".

2143··on Why construction projects always go over budget
This could be because construction (civil engineering?) is a fairly mature field that's been around for hundreds of years. Of course there's new materials and designs and everything but there are also established methodologies and standard practices.

Add things generally go according to plan in Western countries so I'm not surprised. (I'm from a non-Western country where long term planning of anything is futile — too much entropy and chaos).

Computers, software etc is a very young field in comparison. By the year 4723 things would hopefully be standardized (and possibly build themselves).

2143··on UK backs Rolls-Royce project to build a nuclear reactor on the moon
And let's not forget India's Mars mission (orbiter, not a rover) was even cheaper at "just" $75 million [1].

[1] https://www.forbes.com/sites/saritharai/2013/11/07/how-india...

2143··on Banking in uncertain times
Makes sense. Thanks!
2143··on Banking in uncertain times
I just don't get this about the system in the US.

If you keep creating money out of thin air — which as per my admittedly naive understanding is equivalent to just printing money without giving back anything in return — wouldn't it ultimately lead to a collapse or a hyper inflation? Like it did in Venezuela a few years ago (???).

Why is the US seemingly immune to this kind of thing?

2143··on 60 Days to Find a Job or Leave the Country
> It was also used by American tech companies, including Amazon, Apple, Google, Microsoft, and Meta, to hire top talent.

Do these^ companies hire foreigners via H1B?

I don't know if this is true, but I've heard — because of the lottery/uncertainty involved — that these companies instead park foreigners who they want to hire in their offices in other countries (such as Canada/Europe) for a while and then bring them in via L1 visa.

Don't know if this is true or common though.

2143··on Ask HN: Small scripts, hacks and automations you're proud of?
(I should probably blog about this).

At my first software developer job (small company of about 400 people in a country in Asia), there was a company wide requirement that our working hours should be logged into OpenProject.

Logging the hours turned out to be painful because the UI was clunky. Too many clicks and page loads were needed. You probably see where this is going.

Iteration #1:

After working there for a year, one evening I checked out the API for OpenProject. The web interface itself includes a place to set an access token, and examining the browser network tab gave me additional information that I needed.

In about a couple of hours, I wrote a quick and dirty python script that would read a text file formatted this way:

   <task-id-A> <comment> <hours>
   <task-id-B> <comment> <hours>
   etc
My script when invoked read the file line by line and pushed each entry to OpenProject via API calls.

What took 15 minutes every evening now only took 30 seconds!

Having said that, this was a quick and dirty script, and although it worked fine I didn't want to spend time cleaning things up.

Iteration #2:

30 seconds was too long!

This was because for every line in my input text file it would establish a new API connection. So if there was 5 lines of input, it would make essentially the same 5 API calls.

(There's probably a proper way to bundle all input into a single API call, but that's not the approach I took.)

I realised that my workload is embarrassingly parallel. I altered my script to process each line in parallel.

What took 30 seconds on a typical day now only took like 5 seconds! (Depending on input size of course).

(My dirty script became dirtier in terms of code quality.)

Iteration #3:

Even though it took literally just 5 seconds, manually running the script every evening was a chore!

So I setup a cronjob to run at 6:05 pm everyday to run this automatically. 6 pm is when I usually call it a day.

On the occasional day that I stay a little bit longer, I just had to log in manually to OpenProject and do the necessary adjustments. No big deal.

Iteration #4:

Before the aforementioned cronjob ran I'd like to review what it's going to push. I discovered the notify-send utility in Linux that I can use to display a popup.

Wrote a crontab entry to show me the contents of the input file in a popup a few minutes before my other script ran.

Iteration #5:

(By this time I've been relying on this python script for over a year).

OCD finally became unbearable about the crappy code quality (even though I never actually had to look into the code at all for like 9 months by this point).

One weekend I rewrote everything in Go (to take advantage of goroutines, since my program could readily use those — and because parallel programming in other languages I knew felt like an afterthought, though that's a topic for another day). My keys and such things were now in a proper config file.

The Go program also ran without hiccups.

I left the place about 6 months later though.

It was fun!

2143··on A spellchecker used to be a major feat of software engineering (2008)
Peter Norvig is at god-tier, comparable perhaps to Torvalds, van Rossum, Wozniak, Stallman, ESR, Kernighan, Ritchie, Gates, Cormen, and many others I've left out.
2143··on ThinkPad 701C with a Framework brain transplant
> I don't do anything heavy on the computer—browser, Excel, and ssh—and the M1's battery only lasts for about six hours. Can using Chrome as the browser and not Safari make that much of a difference?

On an Intel Mac from 2020 I'll get nearly 8 hours of battery if I'm not running a VM. My browser is Firefox.

I would expect M1 macs to run substantially longer on battery even if using Chrome (is that even supposed to be a factor?).

2143··on Ask HN: Is Windows That Bad?
> My use case is simple: web programming and general computing.

You should probably just use Linux (I personally prefer Fedora) on a ThinkPad. Ensure that the ThinkPad you buy works well with Linux beforehand (most of them do).

Or, just get a newer Macbook with the M1/M2 chips.

2143··on Moving to Norway for Work
> We are many immigrants

Didn't know there's substantial immigration into Norway. Is it as diverse as, say, the United States?

2143··on Fuggerei
This public housing by the Fugger family in Germany has been in existence for over 500 years.

The rent is less than €1 a year.

2143··on A pilot scheme to trail the four-day workweek in Britain deemed a success (2022)
> stat day

If you don't know what a "stat day" is (I didn't), it apparently stands for "statutory holidays" which is like public holidays.

During my brief time in the US, I observed that over there the public holidays tend to be something like "nth Friday/Monday of so-and-so month"; that way you get a long weekend. This is how it's done in some other countries as well.

Unfortunately not in my country (where I'm lucky to have both Saturdays and Sundays off! (I should probably move...) ); if a public holiday falls on a Wednesday, you get the Wednesday off. But on the bright side, there's plenty of holidays here.

2143··on Show HN: I made a super simple iOS app to track expenses
Nice app. Good luck.

I use a spreadsheet tailored exactly to my situation.

It's not exactly for "budgeting" but it's more of a general purpose expense tracker.

It started out simple, but it's now got categories, tracks various bank accounts, investments, gives me useful data for my tax calculations etc. Graphing is built-in. Building new features for new use cases hasn't been too hard so far.

And I have hooked up to it other scripts to do periodic cleanups, parse emails and populate data etc.

(by the way, spreadsheet apps have a high power to weight ratio).

2143··on Transmission v4.0
Well, it can be used to transfer any large files amongst a bunch of people.

I like the protocol in theory. If n people want the same resource, it seems better if they get that in a sort of distributed way rather than all of them connecting to a central server to get that resource. Can be useful if you're on a slow network. I wonder if existing routers along the way make this efficient regardless.

Some Linux distros nudge you towards torrents to download its .iso file even if direct download methods are available. Xubuntu is one such distro [1].

Also, can anybody from Germany confirm if there's a ban on torrenting over there? I hear some governments/ISPs etc are starting to blanket-ban the entire protocol to prevent proliferation of pirated movies, which seems to be what the protocol is used for in practice.

[1] https://xubuntu.org/download/

2143··on Small-Scale Automation
Whoa. That feels like a while lot of words to say nothing.

Is this a ChatGPT/similar response or what?

2143··on Google to reduce workforce by 12k
> Is it last in first out or first in last out?

Aren't they the same?

2143··on Hyundai Head Unit Hacking
I noticed that when there's heavy rain, silver cars are practically invisible in rear view mirrors unless their lights are on. Particularly when there's plenty of water on the rear windshield.

I think in my developing country daytime running lights have been made mandatory for all new vehicles, but the millions of existing vehicles don't have them, and their drivers don't bother to turn them on during rains.

2143··on Explore Wikipedia's New Look
I don't know if they're rolling it out in phases or what, but the new design seems to work only on some articles.

As of right now (UTC 4:50 am):

- Hanlon's Razor (new design) https://en.wikipedia.org/wiki/Hanlon%27s_razor

- Dunning-Kruger effect (old design) https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect

2143··on Hyundai Head Unit Hacking
I don't mind clever features as long as it gives a positive benefit to actually driving the vehicle safely and efficiently.

Here's some example clever features that I like:

- automatic wipers

- automatic headlamps

- cornering lights

- auto-hold

- hill hold

- tyre pressure monitoring

Stupid features I don't like:

- games in the infotainment screen

- smartphone integration for, eg opening the glovebox

- anything involving a subscription, especially for features whose hardware is already in the car

2143··on MacBook owners have two months to claim up to $395 over butterfly keyboard woes
Oh okay. Thanks for clarifying that :)

This would have been a good opportunity to use a .us TLD, to better indicate the scope, considering in this particular case they mentioned "The Settlement Class includes all persons and entities in the United States".

2143··on MacBook owners have two months to claim up to $395 over butterfly keyboard woes
I find it amazing that they've set up an entire website [1] to handle whatever should happen next.

Unheard of in my country.

Is it Apple or the law-firm that built the site?

Is this kind of thing common with class-action lawsuits in USA?

[1] https://www.keyboardsettlement.com/

2143··on Ask HN: What is your must have browser extension?
uBlock Origin
← PreviousPage 5 of 21Next →