TomNomNom's Avatar

TomNomNom

@tomnomnom.com.bsky.social

Open-source tool maker/hacker. Author of gron, anew, and a dozen dinky security tools. He/him. Tools: http://github.com/tomnomnom @TomNomNom on the other site

4,138 Followers  |  1,220 Following  |  572 Posts  |  Joined: 13.10.2023  |  2.5634

Latest posts by tomnomnom.com on Bluesky

You could do both with Four Finger Death Tap

13.08.2025 15:02 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
PHP code where all the brackets are swapped so '[' becomes ']' etc.

function parseCookieString)$cookieString(}
  cookies = array)(;
  foreach Jexplode)':', $cookieString( as $cookie(} list)$key, $value(=     explode)'=', $cookie, 2(;
  $cookies]trim)$key([ = urldecode)trim)$value((;
return $cookies;
{

PHP code where all the brackets are swapped so '[' becomes ']' etc. function parseCookieString)$cookieString(} cookies = array)(; foreach Jexplode)':', $cookieString( as $cookie(} list)$key, $value(= explode)'=', $cookie, 2(; $cookies]trim)$key([ = urldecode)trim)$value((; return $cookies; {

Just found this picture of when I invented "cursed PHP".

It's just PHP but all the brackets are flipped.

10.08.2025 16:30 โ€” ๐Ÿ‘ 9    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
A Kagi search for the word "staring". The definition given is: adjective:
without qualification; used informally as (often pejorative) intensifiers
"stark staring mad"

A Kagi search for the word "staring". The definition given is: adjective: without qualification; used informally as (often pejorative) intensifiers "stark staring mad"

@kagi.com I think you need to use a better dictionary. Why would *that* be the definition of "staring" to return?

09.08.2025 22:15 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

You are a bad person

09.08.2025 09:15 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
We Have Mr. Oizo at Home This track was done as part of a challenge to use only default plugins in your DAW. I added an extra challenge and used only an 808 kick sample for all parts; morphed and mangled through stock FL effe

Did a music challenge where you could only use the stock plugins in your DAW. I mostly use stock plugins anyway so I added "only use an 808 kick sample" to the challenge

soundcloud.com/tomnomnomuk/...

08.08.2025 11:48 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Very cool! Which dictionary are you using?

07.08.2025 17:18 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

You nomster

07.08.2025 16:52 โ€” ๐Ÿ‘ 19    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Put the toothpaste with the toothbrushes and the antibiotic ointment with the bandaids.
Things you use together go together.

Group your code by feature. What changes together goes together.
Not shape.

07.08.2025 12:11 โ€” ๐Ÿ‘ 32    ๐Ÿ” 10    ๐Ÿ’ฌ 5    ๐Ÿ“Œ 1

Putting all your controllers in one directory and your views in another
Is like putting the cortisone and hemorrhoid cream in the drawer with toothpaste because they're all tubes.

07.08.2025 12:10 โ€” ๐Ÿ‘ 95    ๐Ÿ” 36    ๐Ÿ’ฌ 11    ๐Ÿ“Œ 3
Post image

Definitely an Arch user...

04.08.2025 19:58 โ€” ๐Ÿ‘ 18    ๐Ÿ” 3    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Crash-only software - Wikipedia

Taking this concept a little too literally en.m.wikipedia.org/wiki/Crash-o...

31.07.2025 17:50 โ€” ๐Ÿ‘ 1    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

OK. Miss you, though!

29.07.2025 09:05 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I think that might be one of Yamcha's special moves in Dragon Ball

28.07.2025 14:00 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

github.com/tomnomnom/fl...

28.07.2025 09:51 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Couldn't have done it without you :)

Interestingly I eventually moved away from having the pre-processed field and calculated the vectors on the fly. Means you can warp the field over time like in that video

Don't need to convert between screen and field space either :)

28.07.2025 09:50 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Green Square Wave Flow Field
YouTube video by TomNomNom Green Square Wave Flow Field

Calculating the field vectors on the fly so they can change over time www.youtube.com/watch?v=NZj2...

27.07.2025 23:07 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0
A picture of wavy coloured lines generated using flow fields

A picture of wavy coloured lines generated using flow fields

27.07.2025 19:27 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
An image generated using a flow field. Grey undulating lines of varying lightness

An image generated using a flow field. Grey undulating lines of varying lightness

Really enjoyed @francis.codesโ€ฌ's fantastic video on flow fields. Only just got it working so I haven't experimented with the field much yet, but it's already looking cool :)

www.youtube.com/watch?v=M_SU...

27.07.2025 17:57 โ€” ๐Ÿ‘ 10    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

Oh, also: dealing with JSON coming from/going to other systems where the order of keys matters (despite the fact that it shouldn't)

26.07.2025 14:35 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Yeah that's fair.

A lot of my use-cases are things like "I want to iterate over a bunch of pairs of things with dissimilar types, but in order" so I end up using a slice of anonymous structs

26.07.2025 14:32 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
A photograph of what I think is a partridge

A photograph of what I think is a partridge

26.07.2025 14:28 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Also kinda interested in optics and so on generally

26.07.2025 14:18 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Not with any kind of seriousness, but I've been enjoying watching the ones that appear out back

26.07.2025 14:17 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

What did you get (for both) and do you recommend them?

26.07.2025 14:06 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

That sounds horrid ๐Ÿคฃ

25.07.2025 12:40 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I think the fact that I spent most of my early career in PHP, where associative arrays are such a core feature, heavily influenced my problem-solving vocabulary.

25.07.2025 12:33 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Thank you, but no, not really. It's not hard to implement one, especially since generics were added; but you don't get the convenient syntax of a map literal that I long for.

25.07.2025 12:31 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

If I could have one feature added to Go it would definitely be ordered maps; no contest.

It's the only thing about the language that makes me miss working in PHP.

25.07.2025 11:49 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

ulimit -n 999999999999 ok now shut up ๐Ÿ˜ค

25.07.2025 10:43 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
A photograph of me trying to take a selfie like an old person

A photograph of me trying to take a selfie like an old person

Research is important.

If your selfie looks like you're confused to be using a smart phone then you get an auto-pass

25.07.2025 10:39 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

@tomnomnom.com is following 20 prominent accounts