HNHacker News
TopNewBestAskShowJobs

pvtmert

571 karma · joined July 10, 2016

Tinkerer, hacker, researcher, & cyclist...

  DevOops Engineer by trade
  BSc. Software Engineer by training 
https://mert.akeng.in https://pvtmert.at.hn

https://meet.hn/city/49.6202283,6.1729364/

submissionscomments
pvtmert··on Man 'refused entry into US' as border control catch him with bald JD Vance meme
tl:dr; remove memes before entering to the US. welcome to the most free country in the world.

> Mathias Rongved, a spokesperson at the Ministry of Foreign Affairs has warned fellow Norwegians that it is their duty to be clued up on US regulations before entering the country. "Most trips to the US go without any particular problems," he said.

> "Entry regulations can change at short notice, and it is the traveller's responsibility to have valid documents and be familiar with the current entry regulations. It is the immigration authorities upon arrival who decide whether you are rejected at the border. Norwegian authorities cannot intervene in this decision.

pvtmert··on TIL: timeout in Bash scripts
i think curl already have extensive options to handle such cases.

there are multiple docs with nice explanations too, for example:

https://everything.curl.dev/usingcurl/downloads/retry.html

i guess the premise is applicable to other processes which do not implement timeouts (eg: find) themselves

pvtmert··on Minimum Viable Blog
I use the GitHub pages for that. Though hopping through various CMS or static-site-generators (like, Hugo, Jekyll, etc), I settled on a fully static and custom system, works with Javascript.

I think same could also be achieved via React, but I did not want any `npm install` hence, I used some JS libraries like marked and markdown.js directly at the frontend. (Added as git submodules)

I also sort-of liked how a dependency management mechanism could be built directly on top of the git submodules, without requiring an explicit package manager. Given the commits cloned are already pinned and committed to the repository. Though, the tooling is not as good as the well-established dependency management software like Maven, NPM, PIP, etc.

Nevertheless, it worked well for a basic blog, I publish the articles directly in markdown format, embedding some HTML if necessary. In fact, all the pages are some sort of markdown, rendered to HTML upon loading. But of course, the URLs are not "real", I use the query string to refer to the pages, such as `mert.akeng.in/?/blog`, the JS fetches `/blog.md` and renders it to the `<main>` element. Much like how you would initialize React through/within JS.

pvtmert··on On loyalty to Your Employer
This is true in mid-sized startups. I actually witnessed it three times during my _short_ period of experience (7 years of different startup contracts) with different startups.

Firstly, it does not have to be immediate or deliberate. The cycle happens approximately through period of 6-months. The followers per-se does not have to actually _follow_ or loyal to the main person. The said main person is generally the CTO or an engineering manager.

Essentially, one way or another, the company needs to hire a CTO to fill their technical gaps and propel their growth. The company looks for an experienced and preferably startup experience in a certain field. There are already very limited number of folks satisfying these conditions. In which, mostly will already be working somewhere.

From the available ones, company hires 1 person, the CTO. CTO identifies several gaps in tech stack and hires couple of _senior_ folks, with of course, recommendations/references. (now called staff engineers mostly, as the seniority sort of lowered at the 5-6 years mark).

After couple of months later, the senior folks hire couple of mid-level folks because there are too much work to do. Since the senior engineers were busy both with design _and_ the implementation, they need to focus more on the design and make big-picture decisions, cannot be bothered with bug-fixes anymore. Therefore, they need some mid-level engineers to cleanup things and keep the lights on...

After 6 to 9 months period, the newly hired folks become 7 or greater in the numbers. As now they are the majority in the organization's technical hierarchy, they can easily push-out _older_ members which are not part of their circle and let more folks from their circle in.

As you guessed, this is a pyramid scheme in employment, as the lower level folks look up to people who hired them (created a position/opening).

Even if the actual scheme is not intended initially, usually this is what happens. It doesn't even have to be a grand plan to take-over, the unconscious biases and past relationships always prevail, causing the same cycle to repeat.

Also another perspective is the people whose boss (CTO) has just left. These folks also leave over time not just they blindly follow their CTO or loyal to them, but because the _new_ CTO changes how things work, maybe a new tech stack people are not familiar with. In turn, it stagnates peoples' carreers, causes confusion and even takes them one step back. (i.e. An engineer on a promotion path now has to re-prove their skills to a new manager/CTO)

I think for all the cases, I did not find this approach useful in the business sense. Because in all cases, it took the startup at least a year to adapt into a new CTO and the tech stack. As the new CTO always assures X is better than Y, all the problems are there because Y is older, and X is the new paradigm. Just to be replaced by Z when the next CTO arrives after several years...

So the moral of the story is, people don't need to be loyal, the incentives make them so.

pvtmert··on Dow plunges 2,200 points, Nasdaq enters bear market
well for the Russia sanctions, initially it did have an impact but then both people and corporations found workarounds...

for example, blocking swift does not make money transactions impossible, makes it difficult for the layman in the first a few times.

nowadays, everyone uses crypto/usdt for the transactions and realizing it is actually cheaper and faster than the swift.

for the europe, they still buy the gas even at a higher price. grounding berlin to moscow flights only benefits turkish airlines and qatar airlines as now they profit from being monopolies (connections through istanbul and dubai)

the reality is that people adapt. i am not a trump supporter, i do not agree with the tariffs but that's what trump is trying to do; force people to adapt local goods

pvtmert··on Building an open-source Wi-Fi Mac layer for the ESP32
i'm also not professional networking engineer but overall open core will allow;

better interfacing and integration as a wifi chip on SBCs like raspberry pi, potentially allowing faster rates and lower latencies on SPI or I2c buses

better security and possibly handling further standards than the espressif allows.

for example, you may implement wpa3 or wpa4 (if it comes out at some point) without needing to wait for espressif to implement and release themselves. plus, they may never have the incentives to do so if a newer chip (esp64?) comes out...

pvtmert··on Show HN: BadSeek – How to backdoor large language models
well, not everyone has hardware to build large software anyway. like chrome requires 20+ cores and 64+ gb ram

- https://chromium.googlesource.com/chromium/src/+/main/docs/w...

pvtmert··on All clocks are 30 seconds late
Clocks show the time that is _passed/past_, that's the point. Hence flooring is correct approach.

Even when you involve physics, you are seeing the nanosecond past. Not the actual time. (The time that takes light to travel from clock to your eyes, then your brain's processing delay via neurons etc.)

Even the thought of being late is the same way. If something starts at 13:00 and you are not already there when it is 13:00:00.000, you are -by definition- late.

pvtmert··on Types and Programming Languages
Side note: The author, Benjamin Pierce is also the author of the Unison file synchronisation tool.

> Which I use daily between macOS and Linux hosts.

> https://www.cis.upenn.edu/~bcpierce/unison/

pvtmert··on Ads chew through half of mobile data
I think the title needs 2016 since nowadays many ads transitioned from just pictures to even videos. Consisting much more than the text I read...

I would even argue this is a larger issue than the JS bloat websites are having...

pvtmert··on Schrödinger's IPv6 Cat
I am not sure if it is me on the article sounds like it was passed through an LLM.

These days I see more and more content similar to how the chat GPT would generate and describe things

pvtmert··on I Followed the Official AWS Amplify Guide and Was Charged $1,100
that's honestly a leak of internal details lol. (leaky abstractions)

because internally most apps are using the coral framework, which is kind of old, using this json format as it has a well defined shape for inputs, outputs, and errors.

pvtmert··on Cops suspect iOS 18 iPhones are communicating to force reboots
Probably a buffer overflow or out-of-bounds write since it takes _a while_ to trigger this.

Eg: iPhone keeps location and time of found devices via Find My, the cache grows as it's not connected to the network. Eventually restarts...

pvtmert··on Cops suspect iOS 18 iPhones are communicating to force reboots
Reality: A nasty resource leak causes segfault in the iOS kernel

News: Apple implemented auto-reboot as a security feature fending off cops

pvtmert··on Understanding Round Robin DNS
not an expert but overall; unless connection closes for any reason, resolution does not happen.

also, java historically had -1 ttl (eg: infinite) by default. causing a lot of headaches with ephemeral/container services.

pvtmert··on It is hard to recommend Google Cloud
PS: There is a double/extra words on the first paragraph.

> "had to migrate my domain after Google decided to shut down Google Domains decided to shut down."

pvtmert··on Amazon tells employees to return to office five days a week
to be honest I saw PIP status more political reasons than actual performance reasons. In fact, one of the people I coached during focus and completed every single item still put under PIP and forced to leave.

Since then, I do not believe people got into these willingly or unwillingly, eg: due to real performance reasons. Strictly speaking on the performance or technical work wise, not company decision driven…

Even in the example above, due to the management decision, employee performance suffers. It is not up to the employee; that they do not perform by their choice.

pvtmert··on A Beginner's Guide to the OpenTelemetry Collector
This is not specific to open telemetry collector but overall in terms of distributed tracing, due to the nature of things it is getting extremely complicated. Especially in the Kubernetes context.

Another remark is that blog posts and tutorials include configuration not recommended for prod usage. ( in this case grpc SSL insecure option ) These quickly become foot-guns living in production

Moreover, due to the nature of go applications' static compilation mindset each component include various plugins hence their configuration quickly becoming a large file nobody except DevOps understands or configures.

Obviously original documentation is sufficient and explains well enough but nobody reads these fully. I have came across multiple times that engineers “made it work” using external service names and whatnot. Soon enough the production may hit by increasingly high response times due to both infrastructure level and tracing level misconfigurations.

I went a bit off topic and ranting here but open telemetry is a quite large piece thus should be taken carefully while implementing on a live platform.

pvtmert··on Better Dotfiles
well, you can do even better by taking all this parsing and complexity out of the comment sections.

just add a makefile, add your mappings. done!

example:

    ~/.gitignore: ./dotfiles/gitignore
        ln -s $< $@
you can even add something like

    ~/.%: ./dotfiles/%:
        ln -s $< $@
and just have 1:1 mapping...
pvtmert··on Windows Control Panel set for deprecation
you can open multiple of those via the 'open' command

    open -a 'system settings' -n
> https://ss64.com/mac/open.html
pvtmert··on Space secrets leak disclosure
i think you can ask Anthropic to provide access data (IP addresses, User Agents etc) specific to your key.

Then you can challenge hugging-face (eg paying customer) even sue them if you wish to...

pvtmert··on ChatGPT Edu
microsoft is doing the same for tens of years now

especially in 3rd world countries, they even provide free materials and education... which is high ROI down the line

pvtmert··on Dennis Ritchie on the priorities of && || vs. == etc. (1982)
xor is more like a substraction...
pvtmert··on Ask HN: Best modern file transfer/synchronization protocol?
I highly recommend Unison (https://github.com/bcpierce00/unison)

It allows you to sync between 2 machines (bi-directional) over TCP or SSH.

Note that TCP way is not encrypted, you may use wireguard as transport layer encryption for that purpose...

You can use an external application to copy if file size is larger than an arbitrary number. (Eg: use rsync for files > 1gb)

pvtmert··on Fsearch, a fast file search utility for Unix-like systems
if you do not have the "show all file extensions" enabled, `.md` query in spotlight will not show up anything.

try without extension. (eg: just the name)

I even have scripts to locate other scripts using mdfind, it is pretty robust to be honest...

Eg:

    source $(mdfind -name spacelatte-bashlib.sh)
pvtmert··on I worked in Amazon HR and was disgusted at what I was seeing with PIP plans
> Amazon has chosen letting good people go

I work at Amazon and I can tell that it depends on the organization and politics.

Of course nobody is untouchable when it comes to the layoffs, but quite many people have made their spot pretty much resistant to firing. They are crucial for business to continue. (Again, maybe my organization)

Also, it is very common at Amazon; Nobody is doing the job they are hired for. As a developer, you are responsible for anything and everything. Management only deals with PIP and crunching out weekly/monthly/quarterly documents where their management doesn't give a damn about except the summary part.

pvtmert··on I discovered caching CDNs were throttling my everyday browsing
HN's hug of death

https://web.archive.org/web/20231123142332/https://blog.abct...

Funny thing is the author apparently doesn't use the caching CDN, thus users are not getting throttled but having 503...

pvtmert··on Arch: Remove Itanium (IA-64) architecture
RDS's storage is not physically mounted there. It uses network (hence, EBS).

Plus, value of RDS = not having to upgrade/replicate cluster and backups manually.

Of course there are better managed services...

pvtmert··on Why don’t we do email verification in reverse?
Well, it's way to circumvent extra costs created by individual e-mail accounts.
pvtmert··on Why don’t we do email verification in reverse?
Because most people have aliases to signup

Either mail+alias@gmail.com or mail-list@company.com.

For instance, I used admin@, devops@, invoice@, etc. in the places I worked. Each of them includes multiple users (leadership chain and the team)

← PreviousPage 8 of 13Next →