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 The story of the first “computer bug” is a pile of lies
probably due to clicking or chirping noise caused by old/rusty/faulty wires
pvtmert··on Physicists link two time crystals in seemingly impossible experiment
Consider a light source (flashlight) pointed to a wall, it would be symmetrical (uniform)

But in case a crystal gets into the way, it won't be a uniform as a whole.

Similarly an event happening all the time or in some frequency, would be disrupted by a time crystal. (changing the frequency)

pvtmert··on AirPlay and Touch Bar = Network Disaster
They do, literally first hit of "older macos download" is this:

https://support.apple.com/en-us/HT211683

For latest 4 versions, you need to use appstore. Before those 4, you can directly download ISO/DMG from a "S3" bucket...

pvtmert··on AirPlay and Touch Bar = Network Disaster
side note: each channel may have different width (20, 40 or 80mhz)

frames may have other phsical properties that need to match. so, too many options and just a physical limitation...

pvtmert··on AirPlay and Touch Bar = Network Disaster
rule 1: medium "air" shared with everyone else rule 2: it can use wifi direct, eg: doesn't have to be in the same network rule 3: your wifi card may have single antenna for a given band (2.4 or 5 GHz). Such that, you can only transmit or receive. rule 4: interference causes packetloss (eg: 2 people pressing talk in a radio)

given those rules and wifi 2.4 band having 14, 5GHz band having 190 or more channels. I would say having been able to send things back and fort is still pretty damn good :)

pvtmert··on AirPlay and Touch Bar = Network Disaster
bridging uses physical layer afaik, which is why wifi + ethernet are not compatible with each other. especially when wifi is encrypted...
pvtmert··on AirPlay and Touch Bar = Network Disaster
it is the "primary" buffer, not clipboard.

macos also have it. that is part of application handling. iterm, alacritty, and bunch of other apps can behave the same. Including Xquartz.

pvtmert··on Airbnb’s design to live and work anywhere
This only works if you are holder of passport of the origin country. As a third world country national, I cannot legally work anywhere except the country I got my work visa.

PS: Even if company is multinational corporation.

pvtmert··on Running GUI apps within Docker containers
for macOS, you can use -e DISPLAY=host.docker.internal:0

if docker version is >20.10.x also works with Linux

pvtmert··on Ask HN: How do I Stop Living Paycheck to Paycheck?
tl:dr; Experienced people evaluated on skills other than coding too. Making coding interviews bogeyman doesn't change the fact that sufficiently experienced people can get the job without much hassle.

As a person who recently interviewed and got offers, I cannot say they don't ask coding questions, they do. But points are given to solution methods, clear and concise thinking.

People mostly making coding interviews as bogeyman here. Meanwhile experienced engineers already have required mindset to tackle problems.

For instance, I never read specific interview/algorithms books. Because, at the end of the day if you're gonna memorize these stuff for the sake of memorizing (or passing interviews) you'll forget them and not really use them.

pvtmert··on Rpath, or why lld doesn’t work on NixOS
I'm aware of that, you can even use @executable_path in @rpath...

Since nix stores everything at /nix/store, I didn't want to mess with relative paths...

But yeah, macOS apps can ship their own version of libraries thanks to this flexibility.

pvtmert··on Ask HN: What's the Deal with HN and Rust?
I'd say rust is the *only* true open-source modern compiled language that can replace C/C++

Go: Too much Google influence and GC/allocation being constrained by it's authors. Swift: Same for Apple, see above Nim/Zig/Crystal/Elixir: Too behind in terms of widespread support and development. (At least not as good as rust)

pvtmert··on Ask HN: How do I Stop Living Paycheck to Paycheck?
Excuse me for being direct.

Please apply to Amazon; - They are hiring like hell. - You have nice experience (as it looks from here) - They will give you a nice compensation package (RSU & amenities etc) - Work/life balance is not bad - You'll have a chance to look after yourself (improvement or slack off, your choice)

PS: You can try Meta/Facebook too...

pvtmert··on Ask HN: Do I have to host all data in the EU to comply with GDPR?
You can store outside of the EU and keep them fully encrypted with encryption keys are only in the EU.

Which will make things immensely complicated though.

And of course, both data at rest and data in transit encryption.

GDPR's main point is data protection. Some 3rd world countries stealing idea and converting rules to "turn the data in (decrypted form) so I can see who's doing what".

pvtmert··on Ask HN: Does being single hurt your productivity?
Don't get me wrong but for me opposite is true.

Even though S.O. helps with chores you have to book everything for 2 people, adjust plans accordingly. Basically consumes your processing power with many more variables to account for.

OTOH when I was single, I was able to focus on something whenever I want and wherever I want.

This is especially true for less hours but more fragmented structure. For instance, I would carry my laptop with me everywhere since I don't have to carry other things. And when I am sipping my coffee I get an idea and implement/test on point.

Meanwhile with someone it is not so easy. They see you having a backpack and then they add stuff in it since you're already carrying it. Not complaining here, since it is also logical thing to do.

Then, you need to keep your attention on your partner. You cannot immediately focus on something of your hobbies or work.

tl:dr; Basically with someone, you need to create slots like "work" "hobbies" "events" and "private". Sometimes you will want to get things done in another slot but having to communicate and reschedule everything is too much work. So you try to be 50-70% productive on that slot than whenever (now?) you want.

pvtmert··on Rpath, or why lld doesn’t work on NixOS
interestingly macOS has a really nice solution called @rpath and install_name_tool

basically you build your binary and set a rpath, let's say it is /usr/local/lib in your machine

mach-o binary stores: @rpath = /usr/local/lib libxyz = @rpath/libxyz.dylib.1

when I want to install those to /opt/something only thing I need to do is install_name_tool -add_rpath /opt/something

This will add search directories to binary itself. There are some DYLD_* environment variables too but I'm not sure about them... (Some are SIP protected by the way)

PS: It may invalidate signed binaries. Again, not tested such use cases.

pvtmert··on Ask HN: Is there a “wall of shame” for ISPs that don't respect DNS TTLs?
yes, any/all Turkish ISPs don't respect the TTL at all...
pvtmert··on Scaling Shopify's Black Friday Live Map: An Apache Flink Redesign
Many people abuses Redis as pub/sub queue. I wonder how is Redis topology though. Becuase in a native redis-cluster, keys are hashed. So pub/sub still writes to the same instance if the key is same.

And if the Redis is the enterprise edition or the open-source one. For OSS edition, there needs to be a gateway for HTTP API. More often than not, I saw the client implementation being faulty rather than the Redis itself.

Shopify has a huge scale though, probably smaller issues wound up and become problems...

pvtmert··on Go 1.18 will embed source version information into binaries
Yes, but it is turned on by default. And 99% of people will go and copy-paste existing tutorial code to their projects.

I especially found out this is really useful for extracting information form non-stripped firmware binaries. They lay around on some S3 buckets, where cheap IoT manufacturers think it's safe to expose them online for updating purposes...

pvtmert··on Go 1.18 will embed source version information into binaries
At the same time, I was thinking how much of internal structure can be exposed. :)
pvtmert··on Show HN: I built a fake VS Code to browse live cricket score in office
suprisingly, I have met some guy at the bar last Saturday, he quoted:

"Good designers copy, best designers steal"

I don' know the source though. But this immediately strike me as soon as I see your comment. :)

pvtmert··on IPv6 Fundamentals: A Straightforward Approach to Understanding IPv6, 2nd Edition
Meanwhile, entire countries missing it today...
pvtmert··on Offline First
A fellow Berliner here. Never understood this. I live inside the A ring, yet if I am not standing close to window, even the regular call doesn't work.
pvtmert··on Belgian ISP under 250 Gbps DDoS for days on end
The first 'D' of DDoS means distributed. Which means it is so broad. If you unplug yourself from the internet, yes you can block them... Also blackholing them like this won't be useful. Since attack is comming from multiple zombie clients (hundreds of thousands) and current internet structure is using IPv4 with CGNAT, you would block tens of millions of legitimate users at the expense of a small percentage.

Edit: Also, even though you blackhole them within your iptables, packages are still coming to you (routed) and filling up the bandwidth whether you like it or not.

And you pay your peers according to bandwidth you use. (eg. bytes in and out per month)

So, a proper solution is to use globally distributed system to broadcast specific routes so the attack gets stopped even before it reaches you. (eg. through their own ISP's route table blackholing your routes) But that means legit users from that ISP wont be able to access your network at all...

pvtmert··on Terraform is not the golden hammer
I agree most of your comment but the cloud-agnostic part.

Heck, I never get how terraform can be cloud-agnostic... If everybody thinks having a same language (HCL) is equalivent to cloud agnostic, YAML exists...

It is literrally impossible to create a simple VM in 2 different cloud providers without defining them twice with their own specific parameters.

If you use AWS provider, resources start with aws_, if it's GCP it starts with gcp_ and so on. It is not possible to have a "resource vm { name = ... provider = aws }"

pvtmert··on Terraform is not the golden hammer
eg. AWS ChatBot not available in TF yet. TBH AWS haven't even added it to their Go SDK. So, I cannot blame TF. But anyway that's one of the inheret problems of TF plugin system.

Compare to kubectl. Where you can write plugins in bash/shell and mark with execute bit, put it in somewhere in your $PATH as kubectl-blabla and use it as "kubectl blabla".

pvtmert··on Why is IRC distributed across multiple servers?
if they're using aws route53, your isp needs to support edns.

otherwise, your netblock might have been falsely advertised in the dns provider's geoip database. (eg. maxmind)

pvtmert··on Built to Last – RSS, HTTP (2015)
imo DNS is much more capable world wide database.

also BGP...

pvtmert··on Programming Idioms
You do realize it returns 1 for an empty string right? I mean it doesn't have any digits in it...

What about adding a check of str[0] == 0 -> return 0 Also, giving char str[] will make it char* str. Which can be null. This may cause reading a random memory location (possibly segfault or use-after-free)

edit: I get the comments but empty string still contains no digits. Given the regex would be ^[0-9]+ (+ instead of *) What I want to say is string has a numerical value or not. Empty string is NaN.

pvtmert··on 38% of remote workers work from bed
IMO sitting just makes your blood slower to flow = less juice for your brain.

I was helping IT support before the pandemic when I had free time (or waiting something to finish) And I liked all the walking around the office, between buildings, etc.

Now, I artifically simulate situation by leg-shaking :)

← PreviousPage 9 of 13Next →