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 Google Translate apparently vulnerable to prompt injection
With the current scale and speed, it is not yet viable to make N+1 calls to other models with specific prompts. (Or even calling multiple fine-tuned models)

However, even Google (and others) admit(s) that some sort of prompt-injection is always possible, hence out-of-scope for bug-bounty programs.

There are only 2 ways to fix this;

1. Either we ask multiple models with multiple system prompts to validate both inputs, processing, and outputs, then showing results to the user. Possibly making these kind of indirect attacks 2x-3x or Nx more difficult. (ie. Specialized checks and post-processing of the output of original model)

  Note that this is linearly-scalable, looking like a *nix shell (bash) pipeline as such: `input-sanitizer-llm | translation-llm | output-sanitizer-llm | security-guard-llm`
2. I do not want to say "tiny LLMs" as the term itself is silly, but essentially finding a similar but different architecture to utilize transformers & language-relationship parts to create one-to-one models that are specialized for certain jobs.

  Currently we use "General knowledge" LLMs and trying to "specialize" their output, this is inefficient overall as you have bunch of unnecessary things encoded in it, which are causing either hallucinations or these kinds of attacks. Meanwhile, an LLM with no information about some other unnecessary things besides the task it was trained for would be much better and safer. (WIthout requiring linear scaling of point#1)
I also believe that the tokenizer will require the most work to make point #2 possible. If point #2 becomes even a slight reality, capacity constraints will drop significantly yielding much higher efficiency for those agentic tasks.
pvtmert··on An Update on Heroku
I originally saw this on Twitter/X, the wording here is very confusing. The tl;dr version is simply they are going to be KTLO -keep the lights on- mode.
pvtmert··on I prefer to pass secrets between programs through standard input
Interesting approach. I like Docker/Kubernetes way of secret mounts where you can limit user/group permissions too.

Meanwhile, I was an avid user of the echo secret | ssh consume approach, specifically for the kerberos authentication.

In my workflow, I saved the kerberos password to the macOS keychain, where kinit --use-keychain authenticated me seamlessly. However this wasn't the case for remote machines.

Therefore, I have implemented a quick script that is essentially

    security find-generic-password -a "kerberos" -s "kerberos-password" -w | ssh user@host kinit user@REALM
Which served me really good for the last 4~years.
pvtmert··on Apple's MacBook Pro DFU port documentation is wrong
> That would be even worse than not being able to update macOS on the DFU port. I'm supposed to remember which of 3 ports I originally used, forever??

I simply use the port that is closest to the MagSafe. Haven't tried much with the M1 macs though, since because my M1Pro MBP was issued by the company and had lots of restrictions on it.

pvtmert··on Apple's MacBook Pro DFU port documentation is wrong
I have been booting from external drives on different hardware since 2007. I was even able to trick Windows XP to boot off of a 12GB SanDisk thumb drive. (Although it was horribly slow!)

Coming back to the author's story, as others have pointed out as well, I do not think it is related to the DFU port itself. I think it depends on the BIOS/UEFI firmware which is addressing those ports, and then the bootloader who is responsible for finding the system (root) volume.

Nowadays these happen with Volume UUIDs hence it should not matter, at least in theory. But even GRUB adds a hint, as discovery just with UUID may fail.

Since we cannot see what actually is happening or see the logs, I would simply say: "Always use the same port for booting and installation." Which usually simplifies the process.

I am quite certain "the undocumented DFU port" was the port author initially used to install macOS to the external drive. Maybe on another Mac/machine. When they change the machine, addressing/enumeration of ports may be different, due to how boot process works. Therefore, let's say you used the port=0x3 in the first install, when you change the machine, you need to find the same port=0x3. Thus being the undocumented-DFU-port author mentions.

> P.S: Also DFU port is for installing firmware (BIOS/UEFI) to the device even before boot occurs. For example, you should connect one end of a USB cable to a working computer (ie. "master"), another end to the DFU port of target (ie. "slave") while the machine that is off. Some specific sequence of power-key combination puts target machine into DFU-mode, where you can overwrite the firmware (UEFI/BIOS, etc) from the working machine... That is the purpose of DFU. -- Or at least access the internal hard-drive/SSD without actually booting the "slave" machine.

pvtmert··on The Art of Unix Usability
May be hugged to death https://archive.is/2014.11.13-220102/http://www.catb.org/~es...

edit: actually not. I just have the HTTPS first flag enabled on Safari...

pvtmert··on Amazon braces for another major round of layoffs, 14,000 jobs at risk
> Under Prime Minister Modi's leadership, India has successfully built digital infrastructure that connects businesses to customers, small towns to global markets, and traditional enterprises to modern technology.

I smell corruption in this sentence

pvtmert··on AI is a horse (2024)
and other sometimes you forgot to charge it, becoming even heavier thing to continue your journey with. or, there is a high grade slope where excess weight is more than the motor capacity
pvtmert··on When employees feel slighted, they work less
In my ~10 year tenure, every single manager/boss I had was a variation of Michael Scott. This is in terms of both good and bad.

I could literally write 20 page essay about every single piece of slighting, favouritism, discrimination, overstepping labour law, then trying to cover up by denial/not remembering/false pretences even fake witnesses.

But, this firstly quite lots of work, secondly the risk of them chasing me back and suing for damages is not worth it, thirdly, it will seem "unprofessional" by the managers/leadership (or future prospects) anyway.

pvtmert··on Doing gigabit Ethernet over my British phone wires
> It’s the normal procedure to buy things from Europe since Brexit 2020. It’s actually quite shocking that Royal Mail still hasn’t updated their tracking system to be able to give a status “waiting on import fees to be paid online”. They had 6 years!

Just click "reconnect" and re-join to the EU (and Schengen area)

I am saying this because I have some friends living in UK, but I do not have the Visa for UK. Although I am on a work/residence-permit in EU, it is just extra hassle to get the visa. I am instead waiting for my years to finish to apply for citizenship...

pvtmert··on Doing gigabit Ethernet over my British phone wires
> After some days, the DHL website said they tried to deliver but nobody home, this is bullshit

This is typical DHL. I started to believe, they put "tried to deliver, but nobody home" for any & all "UnhandledException" cases.

pvtmert··on TerabyteDeals – Compare storage prices by $/TB
would be better if a user can also filter by the total price range.

ie, if I have a budget of 100$, I would rather get the best out of it. (ie. Highest GB/TB)

pvtmert··on Amazon plans thousands more corporate job cuts next week, sources say
They said they will cut 30k, but they removed only 14k in October.

The 90-day grace period of the impacted people (to find internal transfers, etc) ending on Monday.

Imagine, you are one of the minuscule number of people who was impacted but then you were able to land another role, as an internal-transfer. It is possible the new team of yours may be impacted too!

What a comedy!

pvtmert··on Show HN: 1Code – Open-source Cursor-like UI for Claude Code
i cannot tell exactly but it kinda bothers me while working/typing

it is not like a huge latency, definitely not like ssh-connection.

to explain better, i usually have pre-defined set of keystrokes i input, so it's not the issue of latency of a single keystroke, rather compounding effect.

another thing is, most of the LSPs, highlighting etc are visibly slower on vscode. I am also having many plugins/extensions so that is partly to blame.

in the recent versions of vscode, they started supporting tree-sitter, which is quite nice in terms of performance.

pvtmert··on An Elizabethan mansion's secrets for staying warm
I envision even simpler and more practical thing, under-the-floor heating with addition of disposal water.

Me and my wife are taking shower daily, hers being hotter than mine (apparently that's common difference between female & male).

Every time, I am thinking that so much heat is going down the drain as waste, why not circulate this under the bathroom floor until it cools down.

Since we have a tub, I usually close the drain, sit/stand on a bench above the tub, rinse thoroughly at the end, keeping hot water afloat for next 20 minutes.

Since tub itself absorbs the heat, even after I open the drain and let go all the water, tub itself stays warmy for an hour or so.

pvtmert··on CLI's completion should know what options you've typed
shell completions consist of basically a state, and DAG (directed acyclic graph)

consider following

- git -> [ -C, <sub-commands> ]

- <sub-commands> -> [ add, branch, checkout, clone, remote, stash ]

- -C -> [ <directories> ]

- add -> [ <files>, <directories ]

...

- checkout -> [ <refs>, <files>, <directories> ]

---

obviously you could dump all these at every <tab> invocation, i usually create base+completions script considering completions for the base.

this way, i have tools & tools-completion, tools have sub-commands of fix, restart, connect, review, retrieve, etc.

each of these also have completions, like tools-restart-completions. those lists available services/daemons only

while installing, you only need to install "tools completions", that handles the redirect(s) to sub-commands and their sub-commands, making things easier to maintain, simple to operate, and independent.

pvtmert··on Show HN: 1Code – Open-source Cursor-like UI for Claude Code
i would 100% pay for non-electron/non-vscode ui (sublime text? anyone?)

nothing specifically against vscode/electron/atom. i did use atom 10 years ago, then started sublime text 2, since then, it has been really hard to beat sublime text. the speed and rendering of sublime is much better.

i also have been using zed, which can be considered cloud-code ui too in certain terms, zed is quite more resource-intensive than the sublime and feels higher latency. (possibly because I use frosty-transparent theme...)

pvtmert··on Show HN: 1Code – Open-source Cursor-like UI for Claude Code
i noticed all these new ai-tool launches have this zooming effect. maybe 1.2x zoom is fine, but these usually over-do the zoom like 3x.

instead, an old-school arrow/pointer (or pointer trails like its '98!) would be nicer.

pvtmert··on STFU
i agree with this one, in this particular order, how things be in large cities & crowded areas:

- loud person does not care in the first place, that's why they do the loud act

- usually they are more than 1 person, outnumbering me

- although some places have public disturbance prohibited laws, unless there is a law enforcement/security around, chances of me being ending up in a hospital is higher than chances of stumbling on a decent person

- it is easier to act or play stupid

---

on a similar note, last time when i asked someone to lower their volume while having headphones on me, they demanded my headphones because they claimed they were too poor to buy one. -- i am talking about 20$ type-c earbuds vs 16" macbook size marshall speaker. -- as a result, i did not give my headphones and they continued to play music.

pvtmert··on STFU
there are many sibling/child comments here touching the bluetooth speaker topic.

obviously there are numerous people blasting those in public places in waay too high volume.

sometimes when I ride bicycle in non-car road (cycle/hiking paths around luxembourg) i put not-too-loud music playing on phone speaker (about 70% volume) both for vibes and also for safety. -- as there are people walking which may be obstructed by the bushes or other oncoming cyclists.

for the vibes part, i am really hoping smart-glasses or similar equipment to be more common, as i got echo frames last year, i am quite happy about the vibe it adds when i play background music (just to myself) in different occasions. (even though quality is not great)

many people mentioned headphones & earbuds, but i do not see them as the solution for nature/hiking related situations;

- (partial) blocking of external sounds, even if there is no noise cancellation, it dims outside sounds like bike bells, engine sounds, other people yelling at you because you are in danger, ie. may cause accidents

- comfort & compatibility issues with other equipment. like hearing aid (maybe that's the reason some people blasting away such high volumes? -- maybe never hearing loss haven't diagnosed properly!). if you have a helmet, over-head headphones usually dont work, stuck with ear-buds. fit and comfort of these are quite difficult. even if you use over-head ones, cushions usually go bad quite fast due to mild sweating or contact with external air & humidity.

i really hope price of bluetooth-speaker or bone-speaker glasses will go down significantly in the future. this way, you don't obstruct external sounds, not add heavy or squishy things to your ear while adding your theme song on a moment.

---

obviously i mention these as a reasonable human being, who keeps their phone in silent 7/24, and all videos muted all the time (i also mute my laptop, as i hate hearing other people's zoom/chime calls constantly ringing throughout the day!)

pvtmert··on Install.md: A standard for LLM-executable installation
should've been posted on April 1st. would be better suited on that specific date! /s
pvtmert··on Ask HN: Share your personal website
https://mert.akeng.in

stack:

- github pages, plain html+css+js (using spectre-css)

+ sub pages are markdown, rendered directly in the browser with marked.js or markdown.js

- blog is hot-linked to notion-api

+ a simple api-key injection gateway hosted in google cloud run

pvtmert··on Data Exfiltration via DNS Resolution
I think the title needs editing to include;

- Anthropic Claude-Code Sandbox Data ExFil via DNS

Technically, an attacker can run iodine (DNS tunnel) and have full external network access to the users' data...

pvtmert··on Landlords are using automated services to monitor tenant promotions
sounds like a privacy/GDPR issue to me. In EU, you would be able to extract apartment's buying cost just because they overstepped privacy laws...

nevertheless, housing (especially rental) is not cheap in EU. Mostly because there is limited supply.

pvtmert··on Total monthly number of StackOverflow questions over time
parent is meaning asymptote as in maths where a line is approaching to a value but never touching it. maybe it was a typo or auto correct...

https://en.wikipedia.org/wiki/Asymptote

pvtmert··on Assorted less(1) tips
s/assorted/useful/
pvtmert··on Warren Buffett steps down as Berkshire Hathaway CEO after six decades
I meant to say modern-day influencer. Like instagram/tiktok like. All this "American-Dream" style things were promotional material with twisted reality. Movies showing luxury lifestyle of a "regular" American/US person.

Although per-person adjusted income is really high compared to many parts of the world, day-to-day lifestyle is hardly comparable to "Home Alone" or Wolf of Wall Street themes.

But yes, each era had prosperous countries trying to attract talent obviously. From Egypt to Persians then Rome and even Ottomans too. Later on France/Britain during industrialization.

pvtmert··on Python numbers every programmer should know
There are lots of discussions about relatedness of these numbers for a regular software engineer.

Firstly, I want to start with the fact that the base system is a macOS/M4Pro, hence;

- Memory related access is possibly much faster than a x86 server. - Disk access is possibly much slower than a x86 server.

*) I took x86 server as the basis as most of the applications run on x86 Linux boxes nowadays, although a good amount of fingerprint is also on other ARM CPUs.

Although it probably does not change the memory footprint much, the libraries loaded and their architecture (ie. being Rosetta or not) will change the overall footprint of the process.

As it was mentioned on one of the sibling comments -> Always inspect/trace your own workflow/performance before making assumptions. It all depends on specific use-cases for higher-level performance optimizations.

pvtmert··on A website to destroy all websites
I haven't tried on a laptop but on iOS (iPhone 13 Pro) and iPadOS (iPad Air)

It is quite nice on iPhone, while I agree font is smaller in iPad for readability.

Although, they didn't block zooming/pinching (I hate when they do) therefore I was satisfied with the overall design.

pvtmert··on Denmark becomes first country in world to end letter delivery
Clarifications:

They still can-send and receive letters but sending letters now requiring going to a shop and handing them over. Previously, you could buy a set of stamps and envelopes (possibly prepaid ones) put your letter into an envelope and drop it to a nearby postage box. (the red mailboxes article is mentioning)

Meanwhile for the receiving end it is the same, the letters will get dropped to your mailbox. If those require signature or receipt validation, you probably need to go to a nearby postal office to collect them if you were not at home at the time of delivery.

Only bummer is that a private company is handling all these mailing operations. Hence, prices are going to substantially increase in order to keep the profits high enough.

← PreviousPage 4 of 13Next →