Progrider

Programming discussion

Recent posts

The newest topics and replies across all categories.

PostPosted
General · post #2

Respect for the commit message when you delete it.


by vek
General · post #1

Service at work creeps up to its limit every three days. Nobody knows why, and everyone's sure it's somebody else's. So: jcmd <pid> GC.heap_dump, 11GB file, drag it into Eclipse MAT and wait. Dominato…


by gcfail
Help · post #3

Got it working, wrote up the details in a separate findings post. Thanks.


by jf
Help · post #5

I said nothing.


by lintroller !-TjZOnKc
Help · post #4

got most of it back with photorec, filenames are gone though. using -n from now on. dont say anything lintroller


by pbj
Findings · post #3

Yep, RMT's good too. PIO just feels like cheating.


by kris !LryyDLF-
Findings · post #2

ESP32 has RMT for the same thing!! Works great. But yes never bit bang, ever


by h4nk
Findings · post #1

Have spent years bit-banging WS2812 and turning interrupts off to keep the timing. On the Pico you hand it to a PIO state machine and DMA feeds it, and the CPU isn't involved at all. There's a ws2812 …


by kris !LryyDLF-
Findings · post #2

"Identifiers aren't numbers" should go on a wall somewhere. Leading zeros have ruined more imports than bad encodings.


by marta_k !izYA-5cv
Help · post #3

-n first. Always. With --delete, every time.


by lintroller !-TjZOnKc
Help · post #2

Because you told it to make /mnt/usb an exact copy of photos/. --delete removes everything in the destination that isn't in the source. You want /mnt/usb/photos/ as the destination. Getting it back: u…


by kris !LryyDLF-
Handoffs · post #2

For the CSV pile-up, logrotate with a copytruncate config works fine on plain files even though it's meant for logs. Or just date the filename in export.py and delete anything older than 30 days.


by Anonymous
Help · post #1

ran rsync -a --delete photos/ /mnt/usb/ and now only the photos are there. other folders gone. why?? can i get it back


by pbj
General · post #1

<a href="https://dark.shopping/group/olxuz?p=78104">OLX.UZ</a>


by ralkFlug
Findings · post #1

DtypeWarning: Columns (3) have mixed types. Specify dtype option on import or set low_memory=False. Most of us ignore this. Don't. With low_memory on (the default), read_csv infers types chunk by chun…


by lena_w
Help · post #2

Yes. make compares the timestamp of the target file against its prerequisites. "build" never exists as a file, so it's always out of date. Name the target bin/tool, or mark build .PHONY if you want it…


by Anonymous
Help · post #1

I have a target called build that writes the binary into bin/tool. Every make invocation recompiles even when nothing changed. build: main.c cc -Wall main.c -o bin/tool Is the target supposed to be th…


by jf
Handoffs · post #1

Thumbnail generation is working. Notes for when I get back to this: - portrait images get stretched in the index - filenames with spaces break the next link - don't regenerate thumbnails if the origin…


by mo
General · post #5

I will wait. One difficult language is enough for now.


by tomasz
General · post #4

Been using zig cc to build C for an old ARM box. It just worked first try, which was a new experience with cross compilers.


by jf
General · post #3

yeah. debug build caught one for me with the general purpose allocator. felt like cheating


by wren
General · post #2

The pinned-version problem is real. No 1.0 yet. Curious how it'd feel next to Rust for the parser, no lifetimes to fight, but you're on your own for the use-after-free.


by ferrous
Help · post #3

Same as the Go thing from earlier. No default timeout, so always set one.


by nils !PxNS1ZCy
Help · post #3

Yep, .env still said localhost. Changed to db and it connected. Resolved.


by sam
General · post #1

wrote a small http log parser. notes - allocators being passed everywhere felt annoying for one hour and then good - comptime is really nice - error messages are mostly fine - std changes between vers…


by wren
All times shown in UTC.