News for hackers. Stuff that matters.

arunnanda

Re:All poverty is energy poverty on Monday September 05, 2022 @03:09PM (#32728052)
> forcibly take the gas from Russia

Surely, you're not suggesting invading a nuclear power to seize their natural assets.

Re:Ask HN: Tracking video player viewer statistics on Monday September 05, 2022 @03:00PM (#32727921)
How do you mean?
Re:Ask HN: How to get good at separation of concerns? on Monday September 05, 2022 @01:13AM (#32720799)
Mentally summarize the old context in 1-2 mins and then completely forget the old topic and focus 100% on the new one.
Re:Ask HN: MacBook Pro M1 16GB vs. 32GB on Monday September 05, 2022 @01:12AM (#32720790)
You'll quickly run of out 16. You'll always need some apps that are bad at memory management.
Re:Tell HN: How to Respond to a Domain Takeover on Monday September 05, 2022 @01:08AM (#32720766)
Rule of thumb in dealing with domain and hosting vendors - always gauge how educated their support staff is. They should be at least slightly more educated than the average developer who admins their own stuff. And do judge based on website design - if their design looks like it'd would also be appropriate for selling quick ways to lose fat, you should know to stay away.
Re:Tell HN: How to Respond to a Domain Takeover on Monday September 05, 2022 @01:02AM (#32720736)
Namesilo, Porkbun, Sav.
Re:Ask HN: Any way to deactivate your Hacker News account? on Monday September 05, 2022 @12:56AM (#32720687)
Do they delete old records of a website if the site owner simply asks for it, or do they need any substantial reasons to do so?

Ask HN: Tracking video player viewer statistics

As part of an embeddable video player I'm starting to build, I need to have some way of keeping track of viewer behavior.The easy way is to integrate something like Mux (YC Winter 2016). The even easier way is to just use an existing player like video js. But I want to start off by building my own solution.I have the basic player working (still some race conditions to be resolved), so now I am...

( Read More... | 2 comments | on HN )

Ask HN: Using sed/awk to bulk generate static HTML pages off of a template

Hypothetically, consider a social photo platform - each pic gets its own url, this page contains the image, text about the image, buttons for the user to click, related pics, and some user-specific elements (maybe notifications, etc.).There are different ways of going about the frontend. In each case, elements specific to the logged-in-user and the related images get fetched via api calls and...

( Read More... | no comments | on HN )
Yeah there are a couple of 8K ones. The one which is called a prototype (from Japan Display Inc) on that page was already released.

Check also the list here https://pixensity.com/list/desktop/

The 5K Apple display has around 215ppi. There are 5-6 displays with higher ppi than the one from Apple.

Yes and in a 3 sided platform these assumptions are multiplied more than 3x. But thanks, this is a very helpful starting point.
Re:Ask HN: How do you securely self-host a server? on Friday March 11, 2022 @12:31AM (#30636604)
lxc was rather new when I started looking into this stuff. Since jails were much older, I just went with FreeBSD. Also because I was a little biased against Linux because on my personal computers Ubuntu and Fedora had crashed occasionally.

Now I think lxd is supposed to be a better user experience than lxc. Same backend better frontend. Like ezjail or iocage for FreeBSD makes the management easier than doing it all directly.

Check https://www.sven.de/dpi/

All of the 8K displays have a higher ppi than the Apple 5K display (215 ppi).

There are. It is a branding and trademark issue.

The point of a retina display is to have a higher pixel density than the human eye can distinguish (at a certain distance).

There are many displays that have far higher pixel density than the iPhone.

According to the list here https://pixensity.com/list/phone/ there are/were at least 40+ non-Apple phones with higher ppi than the iPhone X

How do I determine the “key assumptions” of a startup

I understand the meaning and significance of testing the key assumptions,In order for the idea to be viable, the key assumptions must hold true. These key assumptions need to be validated in initial user research (in my own words).But I am somewhat at a loss in listing out what the key assumptions actually are. For me it is just the solution to a problem that annoys me.Any tips or links to...

( Read More... | 2 comments | on HN )
Re:Ask HN: How do you securely self-host a server? on Thursday March 10, 2022 @02:24PM (#30631269)
It might be slightly easier to use sshguard instead of fail2ban for protecting against ssh attacks.

Using passwordless (key only) login is a given.

As soon as your server is provisioned, log in with the password, first setup ssh, and disable password login.

You can use fail2ban jails for different services (like nginx). You need to decide how strict you need to be.

On FreeBSD, using blacklistd might also be a better idea than using fail2ban.

To quote from the internet - "fail2ban and sshguard are both log scrapers. Log scrapers are gross hacks. blacklistd as an integrated solution is what should have happened many years ago."

FreeBSD jails also provide excellent protection. It can be a good idea to run each service in its own jail. E.g. a separate jail for nginx, one for your webserver, another for your db servers. This way you can also limit the resources that are allocated/dedicated to each jail.

Also, while running pf (or whatever firewall you have), you can limit the number of requests (rate limiting) to somewhat protect yourself.

Using Cloudflare or something else on the front can help against ddos. Also, some providers like OVH and Hetzner have ddos protection built in for free. Some like Vultr have it as a paid service, iirc.

Re:A word used only by Postgres developers on Thursday March 10, 2022 @02:10PM (#30631094)
Printers can be harder, especially if you have driver trouble.
Re:Launch YC S21: Meet the Batch, Thread #9 on Thursday August 26, 2021 @01:23PM (#28317771)
Some people might interpret that as taking a stand in the politics of language.

Ask HN: Implementing a graph database using Postgres tables for nodes and edges?

After hearing/reading about the negative experiences many people have had with upcoming graph databases, I am wary of jumping into a graph db. But almost any modern application has things that will be suited to a graph representation.So I am considering a workaround to use a graph structure, but represent the underlying data in a reliable rdbms, in particular postgres.The approach is: 1. Make...

( Read More... | 60 comments | 87 points | on HN )