Live data from Hacker News

Decoding the obfuscated bash script on a Uniqlo t-shirt

tris.sherliker.net

161–170 of 253 posts

Re: Decoding the obfuscated bash script on a Uniqlo t-shirt

#161
post #8

Earlier quoted context omitted.

Definitely LLM. No humans write that many comments.

Ahem... My code usually clocs at 50/50 (or thereabouts)[0]. Has, since my very first real engineering project (in 1987)[1]. I discuss in detail, here[2]. But one reason that I like LLMs, is that they help me to write even more documentation. I have found that I can instruct an LLM to revise my documentation, and make it even more effective. [0] https://github.com/ChrisMarshallNY (My GH profile. Pretty much everything…

Your code isn't as unnecessarily commented as this. E.g. look at this line

https://github.com/RiftValleySoftware/RVS_Spinner/blob/d44ee...

An LLM would have commented `// Create temporary UI view.`

Completely redundant comments like this are a classic hallmark of LLMs:

  # Set frequency scaling factor
  freq=0.2
Dunno why I have been downvoted for stating the obvious.

Also from my brief look at one file it looks like you have 50% comments because you have a gazillion comment separator lines.

Re: Decoding the obfuscated bash script on a Uniqlo t-shirt

#162

"Uniqlo x Akamai sells another design of shirt in the same range which is plainly incomplete" Imagine having to return a t-shirt because that malfunction! — I don't understand why are you returning this, was the size wrong or you didn't like it? — No, there is a syntax error at line 37 that makes it impossible to run, and I'm concerned people on the street may think I promote unsafe bash scripting.

- I am shell-shocked at the lack of quality assurance! Can you at least apply a patch?

Patch could be applied via pants.

Re: Decoding the obfuscated bash script on a Uniqlo t-shirt

#163
post #9

I thought it was funny that the author used a variety of OCR tools with mixed success before spending a lot of time manually fixing up the output from the best one, rather than just typing it in

Feels like my experienced reality of task automation in corporate environments. We routinely have engineers spend 40+ hours automating tasks that an entry level person can do manually in 10 minutes and only need to be done weekly. Automation at all costs seems to be the future

It’s certainly not a new phenomenon. I appreciate this XKCD [1], with a chart of “How long can you work on making a routine task more efficient before you’re spending more time than you save”

It’s not the final word, since automation has other benefits: documenting the procedure’s steps, reducing human errors, increasing consistency, etc.

1: https://xkcd.com/1205/

Re: Decoding the obfuscated bash script on a Uniqlo t-shirt

#165
post #147

The font is Roboto Mono, not Consolas. There's something else a lot stranger going on, though. It is a proper monospace font, but the typesetting on the shirt is not. There's some kerning going on (I noticed it especially in the 'Iy' pair), and also it appears that narrower characters such as 'i' take less horizontal space. If I had to guess, I would say that it was set with a tool such as "optical kerning" in InDesi…

Has anyone ever made a monospace font with dynamic kerning? Which is a silly thing I never thought of until I read the above comment. This sounds nonsensical at first glance(and it may be) but hear me out. We use monospace fonts for a reason, they stack in a grid nicely. But within the confines of that grid there is room to shift a character left or right a bit which may lead to a nicer to read monospace. (it is equa…

iA Writer has Mono, Duo and Quattro fonts, with the latter two being almost monospaced. They concede some size variations for specific characters (Duo has 150% width characters, Quattro also uses 50% and 75% for narrow characters).

It's a fun subtle adaptation to keep close to the typewriter-like experience of the app.

https://ia.net/topics/a-typographic-christmas

Re: Decoding the obfuscated bash script on a Uniqlo t-shirt

#168

This reminds me of a T-shirt I once saw that read: perl -e ' "$a="etbjxntqrdke"; $a=~s/(.)/chr(ord($1)+1)/eg; print "$a\n;"' It's cursing. Don't run it if it might offend you. Upon seeing this, I decided to golf and came up with a shorter version: perl -e "print chr 1+ ord for split //,'etbjxntqrdke'"

or raku -e 'say "etbjxntqrdke".comb.map({chr .ord + 1}).join'

or

raku -e 'say "etbjxntqrdke".comb.map(*.succ).join'

Re: Decoding the obfuscated bash script on a Uniqlo t-shirt

#169
post #147

The font is Roboto Mono, not Consolas. There's something else a lot stranger going on, though. It is a proper monospace font, but the typesetting on the shirt is not. There's some kerning going on (I noticed it especially in the 'Iy' pair), and also it appears that narrower characters such as 'i' take less horizontal space. If I had to guess, I would say that it was set with a tool such as "optical kerning" in InDesi…

Has anyone ever made a monospace font with dynamic kerning? Which is a silly thing I never thought of until I read the above comment. This sounds nonsensical at first glance(and it may be) but hear me out. We use monospace fonts for a reason, they stack in a grid nicely. But within the confines of that grid there is room to shift a character left or right a bit which may lead to a nicer to read monospace. (it is equa…

Shifting a letter left or right a bit can break the grid. What if the user writes the text that keeps triggering left shifts? A better solution is to use ligatures, so that specific character combinations look better while the ligature can maintain the overall width correctly.

Re: Decoding the obfuscated bash script on a Uniqlo t-shirt

#170
post #2

OCRing this is a nightmare and is a good benchmark to any self-proclaimed good OCR/vision model. I think though it could likely be easily OCR'd if you give the image to any decent agentic harness with a good vision model, e.g. newest Claude/GPT ones, and tell them to split the image per lines, and then just OCR each line individually. I wonder if the script itself was written by an LLM before obfuscation? There seem…

Those of us who grew up in the 8-bit era would have just typed it in, carefully, in silence, with no-one allowed to enter or leave the room until we were done ;-)
Post reply on HN