HNHacker News
TopNewBestAskShowJobs

enkrs

370 karma · joined April 14, 2011

My stack and interests are mostly boring tech :) kristaps@kecom.lv

Business process management, ERPs, industrial automation sector

Enterprise IT (VPNs, VLANS, monitoring, ITIL, support, Active Directory)

Programming (PHP monoliths, Python scripts, embedded C, Micropython, PostgreSQL, SQLite)

Linux (Debian servers, Fedora desktops)

submissionscomments
enkrs··on Fish Shell 3.5.0
I’m an avid bash user for the same fear of incompatibility. But how does that work in practice? I mean- if I use Fish shell interactiveley, how does that affect shell scripts? I presume they would still be run via bash (#!/bin/bash)
enkrs··on Firefox's protection against fingerprinting
The TOR browser (based on FF) has this implemented for some time now. It resizes the window by a large (I think 50px) grid instead of single pixels. That way the window sizes are adjustable by the user, but still less unique than pixel adjusted.
enkrs··on Ask HN: Cloud vs. Dedicated Hosting
His goal on keeping RAM low is probably for growing to thousands and millions of customers. And he’s right- right now it would look like RAM is cheap, but when you start having much users, it adds up.

There is a line between premature optimization and total resource ignorance.

enkrs··on It's 2022, phones should be built to last five years or more
Yup, I change iPhones every 4 years as a luxury - could easilly go every 5 years. It’s an Android (lack of) updates problem.
enkrs··on Conflict-Free Replicated Data Types (CRDT)
Yes, it would work if you implement the schema correctly: among the standard value types there are also counter types. See for example https://automerge.org/docs/types/counters/
enkrs··on Stop Using JSON Web Tokens for Authentication. Use Stateful Sessions Instead
Isn’t that just sessions but with extra steps?
enkrs··on Explain the first 10 lines of Twitter's source code to me
The argument on performance comes from the idea that theoretically the rules are applied in order. So the browser has built in stylesheet of 8px, and after that a margin of 0 is calculated. (And after that, some more specific margin in the stylesheet is recalculated)

Basically * { margin: anything } adds one extra calculation to each element in the page.

Not sure if the performace hit is measurable tough, knowing how much optimization goes into browser engines.

enkrs··on The time has come to replace file systems
I like the idea, but I think it will not change the world.

Filesystems have already been reduced to storage mechanisms for systems not people.

People just don’t organize files anymore. And that’s a good thing.

Most employees in relativley fresh organizations keep their files in OneDrive and Dropbox. 10..15 folders of random names and good search function that returns recent files on top. The older files just lie there, not botheting anyone because nobody is looking.

Files from other departments are found via links in Mail and Slack search - not as attachments to Email.

People launch Powerpoint (online) and use the recent files menu instead of browsing from the ”C: drive”

To rethink storage ignoring that people don’t store files anymore is futile. It’s nice for organized geeks (like me), but in general file organization is a thing of the past.

enkrs··on Earth-like planet spotted orbiting Sun’s closest star
Astronomers go to great lengths to name their stuff for good abbreviations. ESPRESSO is actually “Echelle Spectrograph for Rocky Exoplanet- and Stable Spectroscopic Observations”
enkrs··on Emirates president: The 5G snafu is the biggest screwup witnessed in my career
I’ve been researching this: original idea is that the 5G signals are “de-sensing” the Instrument Landing Systems (ILS) on airplanes that receive the radar signals from the airport.

The 5G C-band is 3.7-3.98GHz; The global aeronautical band is 4.2-4.4GHz where supposedly the modern ILS reside..

Of course the planes could be fitted with better instruments with filtering that do not desense from a signal 200MHz(!) away.

I did not find much info on 4GHz ILS so I’m not sure how widespread it is used in airports. Seems that the 110MHz/330MHz system is prelevant. (Which I don’t belive could be affected)

What I’m more interested is the quote from the article: “… compromise not only the radio altimeter systems but the flight control systems on the fly by wire aircraft.”

Does anyone have a guess what fly by wire systems could be affected by those 5G band signals?

enkrs··on Show HN: Giving a 2D grid a 3D look
Thanks for sharing! I too miss small projects just for the fun of it.

The FOV/FOV+Z technique is one I remember learning from early 90s computer magazines. They would have code snippets for QBASIC with various neat programs. We’d then retype them in the computer, play around with parameters and just learn.

A while ago driven by the same motivation as you I created a tree drawing alorithm. Also something I learnt from the old magazines and recreated from memory. https://www.kristapsenkuzens.com/tree/

enkrs··on Twitter rolls back AMP support, no longer sends users to AMP pages
Google calls the shots on what the web does and does not do via the majority browser - Chrome. I wouldn't consider AMP any more dangerous than Chrome in this argument. There were other problems with AMP.
enkrs··on Windows 11 available on October 5
There is another comment in this thread about how “Microsoft has put lipstick on a pig and hasn’t made what the users actally need”.

Quite opposite - we can be sure that Microsoft have focused on what features to develop for Win11 based on telemetry data from Win10. Whats so bad about that? (Sadly, turns out what the majority needs is not realy what the small tech crowd “needs”)

I’ve never really understood the outrage. Win11 IS the culmination of Win10 telemetry data.

In the “good old days”, when we drove to fix our cars to a dealer- they catalogued how worn out are some parts together with mileage. To know which ones to improve for next models. How is this different than telemetry? Or new?

enkrs··on A future for SQL on the web
If you add the website to homescreen (make it an “app”) then the 7 day storage limit does not apply.

This makes total sense to me, and I’m happy Facebook can’t store tracking data in my Safari for longer than 7 days.

enkrs··on Bandcamp's app is no longer listed on Google Play
If the average user doesn't even understand what updates are, he's better off in the Play Store anyway. Why force F-Droid on him?
enkrs··on Apple Discussed 'Punitive Measures' Against Netflix for Dropping In-App Purchase
Unpopular opinion: I read the email exchange and I could see me doing exactly the same if I were App Store Business Management Director. I mean, this is business as usual in any enterprise or sales. You are losing income, but keeping the customer, what should you do?

We have to remember that - first and foremost - Apple is a business. I’m yet to be convinced on why they should be held to higher standards than any other Fortune 500 company, where such business practices and price (non-)negotiations are common.

Why exactly is Apple somehow forbidden to do this?

enkrs··on Do you need a 12MP photo of a goat?
I must confess I did something similar a long time ago, when hard drive space was expensive. I converted all my 4MP photos to 1024x768 - that was the biggest screen resolution imaginable at the time on the "huge" 17" monitors. Everything bigger was just megapixel race.

Fast forward 10 years and I still have all the resized photos in my phone (cloud), but even the small phone screen is so good that you can easily see the difference.

I've also noticed that people's habits change, I see more and more people flipping trough pictures on their phones and zooming in on the ones they like.

Who knows what picture viewing habits we will have in 10 years. Maybe with some VR implants we will want to enjoy our old photos in all glorious 12 megapixels.

enkrs··on New 5G protocol vulnerabilities allow location tracking
True, millimeter wave bands, introduced in 5G, don't go as far as 4G. But those bands are in the 5G standard additionally to the lower bands similar to 4G, and are beneficial in places like busy airports, train stations and urban areas. 5G does not mandate to only use the millimeter wave bands (or, for the mater of act, to use them at all).

So in rural areas 5G signals would still use frequencies similar to 4G,so the more efficient use of spectrum will improve coverage and speed.

Regarding the observation that sometimes 3G signals are better than 4G - that might as well be because 4G has problems with congestion when many clients are connected to the same base station. One of areas which also 5G is also improving.

enkrs··on No support Linux hosting shutting down from hack
They use php-fpm pools where each website gets it's own uid:gid and the php process runs as that user. Then standard linux file permissions so you can only access your own uid files. To access web assets from nginx/apache, they add file permissions wich standard Linux acls.

Altough not fancy, the security model is actually quite mature. Security problems in these servers come from misconfigured permissions and scripts, not the security stack.

enkrs··on macOS unable to open any non-Apple application
Many of the signal issues can be caused by a faulty or low quality power supply. It took me a good half year until I finaly fugured why my Thinkpad touchpad and screen was acting up similar to your description. Turned out that my 65W power supply from Amazon was causing all the issues.
enkrs··on McAfee Arrested in Spain, DOJ Indictment for Tax Evasion Using Cryptocurrencies
Even for smaller companies, when doing financial audit (required by law in many places) - consultant firms do highly encourage use of “endpoint protection across organization”. So in case of some IT screwup and financial losses, the auditors can say- “Well, they had Industry standard antivirus, so this shouldn’t have happened. Our financial risk assesment was still correct.”
enkrs··on Full-Bleed Layout Using CSS Grid
I guess it's time for bettermotherfuckingwebsite.com gridless version to hit HN :)

This is not really CSS magic:

  main>*{max-width:65ch;margin: 1em auto}
  .full-bleed{width:100%;max-width:none}
enkrs··on Full-Bleed Layout Using CSS Grid
Great article. While CSS grid is very powerful, maybe I'm not seeing the full picture in the examples: aren't the examples possible with just p { margin: 0 auto; max-width: 65ch } ? What does grid bring here?
enkrs··on Disabling Google 2FA doesn't need 2FA if you're already logged in
I noticed the same thing last week on AWS - no requirement for 2FA when disabling 2FA on root account. Seemed strange, but I guess they figure requiring 2FA once more doesn’t add enough security..
enkrs··on Stealing secrets from developers using WebSockets
Given the news this has made, I sure hope browser vendors don't overreact with blocking this too hard:

I genuinely have a use-case for this. We have an internal company wide business app, that works in any browser. The usual create-read-update-delete stuff, reports, factory forms etc.

With websockets we solve communication with local devices on the shopfloor - some computers have serial-port attached thermal printers, others have usb attached notification lights. We have small python scripts that listen for commands with websockets on 127.0.0.1 and control the printers and lights.

That way we can control each users local devices from the web app - without configuring internal firewalls or installing special browser add-ons (an in-house browser add-on is a bigger security risk, than a websocket on 127.0.0.1)

enkrs··on Mozilla takes action to protect users in Kazakhstan
As long as they deploy custom CAs to every machine they own, nothing wrong with that: there are legal requirements to log or filter stuff on company computers.

Solution is simple- don’t use business machines for personal stuff[0] and there will be nothing to intercept.

[0] this is usually already mentioned in company computer use policy anyway.

enkrs··on Generating inspirational quotes with Markov chains
Recently on a slow Friday we trained Markov chains with our Slack history. We generated a separate chain for each Slack member. It culminated with a Slack channel emulator generating full chat logs of what members would typically say.

The programming in Python was suprisingly quick and easy, but we ended up wasting more time then expected by amusing ourselves with the results.

So if anyone’s thinking to try out Markov chains for text, I recommend taking Slack logs for training.

enkrs··on Why old-school PostgreSQL is so hip again
I can answer this, as I purchased Postico for our team just today (just out of gratitude really, as the free version is good enough)

Tunnelling via SSH works great, but you do have to provide and save your ssh key password in Postico, because it does not use ssh-agent.

Lots of great features and small updates here and there: it was updated with touch bar support quite quickly. A killer feature is Ctrl+P fuzzy search for table names in database.

It's great for getting query data out of your db quickly or just browsing around. Ok to add the odd column here and there. However managing roles and permissions seems to be out of scope.

enkrs··on Unicode is hard
My shipping address is "Roņu street, Liepāja" and in the other end of our city is "Rožu street, Liepāja"

If the address gets somehow mangled, as it often does, the shipping label could read "Ro?u street" and the postal offices guess on the address being "Roņu" or "Rožu" is as good as anyones.

I too usually just write "Ronu street"

enkrs··on Show HN: Real-time notes app built with Vue.js, inspired by Notational Velocity
Vue is awesome. I belive it will stick around - for one - they have seminars and well attended events. It's not a one-man project anymore.

It has gained big popularity in the PHP/Laravel world.

On the other hand, we have a somewhat large production vue 1.0 app that we just can't justify quickly upgrading to vue 2.x. I hope to get some more LTS version information from Vue team so we don't have to upgrade to Vue 3 in 2018...

← PreviousPage 2 of 3Next →