Searching txt.sour.is

Twts matching #hex
Sort by: Newest, Oldest, Most Relevant
In-reply-to » Slow progress: My hex editor now has an info panel that shows what’s under the cursor. https://movq.de/v/f9586ec65c/s.png

@lyse@lyse.isobeef.org

I can’t remember if the hex viewer back then had these options. Don’t even recall what software that was. :-)

The one that I used during my Windows 95 days was ā€œHex Workshopā€. It had similar features, just not as promimently displayed. It shows them down there in the statusline as ā€œValueā€:

https://movq.de/v/a24558f83f/s.png

Newer versions can probably do more, haven’t checked. šŸ˜… (Assuming this program still exists.)

Apart from selecting text to copy into the clipboard. But that probably has the potential for trouble and interference with button clicks, etc.

Yeah, that’s a big problem: Once you activate mouse mode in the terminal, the terminal loses the ability to select text. šŸ˜ž You’d either have to emulate that in the program itself (like Vim does) or give the user an easy way to turn mouse support on/off during runtime.

How did the startup times develop?

They’re pretty stable at around 230 ms on my old NUC. It’s just fast enough so that it doesn’t annoy me.

⤋ Read More
In-reply-to » Slow progress: My hex editor now has an info panel that shows what’s under the cursor. https://movq.de/v/f9586ec65c/s.png

@movq@www.uninformativ.de Nice, it’s coming together! Despite it being ages ago that I used a hex editor or viewer, these different representations of information appear very handy to me. If I had to mess around on binary formats, I’d definitely appreciate them. I can’t remember if the hex viewer back then had these options. Don’t even recall what software that was. :-)

I, too, only very, very rarely use the mouse in the terminal. Apart from selecting text to copy into the clipboard. But that probably has the potential for trouble and interference with button clicks, etc. If one isn’t careful.

How did the startup times develop?

⤋ Read More

Another project where I’m going to use my terminal widget toolkit is a hex editor. This is still very young, obviously, and there’s a lot of work to do (both in the toolkit and this particular application), but I’m making some progress:

https://movq.de/v/2bae14ed16/vid-1769283187.mp4

Since this program is UTF-8 clean (I hope), you can do things like enter multi-byte UTF-8 sequences or paste them from the system clipboard (another hex editor I just tried failed to do this correctly):

https://movq.de/v/e9241034c1/vid-1769283755.mp4

Under the hood, I’m using mmap() with MAP_PRIVATE, which is really cool: I get the entire file as a byte array, no matter how large it is, no need to actually read it upfront; and MAP_PRIVATE means that I can write to this area however I like without changing the underlying file. The kernel does copy-on-write for me. Only when you hit Save, it will write to the filesystem. And it’s just a couple lines of code. The kernel does all the magic. 🄳

⤋ Read More
In-reply-to » I want to share a little idea for a new extension with the goal of adding direct messages in #twtxt https://github.com/tanrax/twtxt-direct-message-extension

another one would be to allow changing public keys over time (as it may be a good practice [0]). A syntax like the following could help to know what public key you used to encrypt the message, and which private key the client should use to decrypt it:

!<nick url> <encrypted_message> <public_key_hash_7_chars>

Also I’d remove support for storing the message as hex, only allowing base64 (more compact, aiming for a minimalistic spec, etc.)

[0] https://www.brandonchecketts.com/archives/its-2023-you-should-be-using-an-ed25519-ssh-key-and-other-current-best-practices

⤋ Read More
In-reply-to » just spent like half an hour finding a terminal based color picker that would just. turn the cursor into a cross hair and let me pick from the screen. in linux fashion this was somehow difficult

@kat@yarn.girlonthemoon.xyz i wound up with xcolor AND pastel at the same time, because xcolor does exactly what i want while pastel and its picker subcommand does the same thing, relying on xcolor, but brings up a nice graphic of the picked color and related colors, plus more than just the hex code. neat.

⤋ Read More

Oh boy, I’m looking for trapezoidal (like ACME thread) screws and nuts in left hand form. The rods are already expensive, but nuts feel like a total ripoff. A hex nut for Tr20x2 being 30mm long and 30mm in ā€œdiameterā€ costs me 22 bucks! O_o Just a single one, made of regular steel. A meter of rod is 21€. The more common Tr20x4 hex nut is just 7€ and the rod 17€, but 4mm pitch is a bit much for a leadscrew for semi-precision work I reckon.

Well, maybe I just use metric threads. I will sleep on this.

⤋ Read More

2 of the Best Hex Editors for Mac: ImHex & Hex Fiend
Hex editors are software tools that are able to view and edit hex data and raw binary data of files, and can be frequently used by programmers, developers, and reverse engineers, to inspect, debug, and analyze files and software. Some advanced users even rely on hex editors for data recovery and digital forensics, or to … Read More ⌘ Read more

⤋ Read More

I’d love to read the original source code of this:

https://ecsoft2.org/t-tiny-editor

This was our standard editor back in the day, not an ā€œemergency toolā€. And it’s only 9kB in size … which feels absurd in 2023. šŸ˜… The entire hex dump fits on one of today’s screens.

Being so small meant it had no config file. Instead, it came with TKEY.EXE, a little tool to binary-patch T.EXE to your likings.

Image


Image


Image

⤋ Read More

life hex: is your company’s marketing falling flat? Before spending millions on a re-branding effort, try charging your existing logo by staring at it during orgasm and then reproducing it in seminal fluid

⤋ Read More

life hex: leash-training your dog can be a pain. Instead, make an effigy of your dog, and wrap around it twine made from his own hair, while chanting ā€˜I bind you to this image’. Pop the poppet in your pocket and off you go

⤋ Read More

life hex: sick of dating sites? Instead of trusting a pickup artist, trust Furfur, Earl of Hell. Just remember to put him inside a magic triangle before asking him for relationship advice

⤋ Read More