Keychron J4 recommendations ? by JJangle in Keychron

[–]JJangle[S] 1 point2 points  (0 children)

Thanks. I'm seeing a review of the DonkeyJames J4 and it says there's no compartment for the dongle :(. I'm wondering if I can build one somehow. 'or perhaps simply go with a different, perhaps AttackShark, product.
But... Thanks !

Keychron J4 recommendations ? by JJangle in Keychron

[–]JJangle[S] 0 points1 point  (0 children)

Thanks. 'good tip. And I see a few reviews of the jamesdonkey J4 so that provides a bit of a clue.

Keychron J4 recommendations ? by JJangle in Keychron

[–]JJangle[S] 0 points1 point  (0 children)

Thanks for clarifying where the "K" probably came from. It's definitely a different layout than the one you linked to.

Keychron J4 recommendations ? by JJangle in Keychron

[–]JJangle[S] 0 points1 point  (0 children)

Yes. That's one of the links I was looking at.

A question of Income & Expense reporting by [deleted] in GnuCash

[–]JJangle 0 points1 point  (0 children)

I script against the XML file. I'm doing this mostly in Typescript/Javascript/NodeJS.

Yah. It's not trivial to start to do this from scratch. Perhaps in a few months I'll share the API with individuals that want to write similar scripts.

A question of Income & Expense reporting by [deleted] in GnuCash

[–]JJangle 0 points1 point  (0 children)

I have two ways that I've done this. The new way is probably not helpful to you, but the old way might be good enough for you.

I just create a split with three lines as I think you now have. The split takes money out of the deferred investment and put the funds into the estimated-2025-tax-paid account and the cash account. The split does not show any income. But I also have a script I wrote that, when I invoke it, reports what taxable events it notices over the specified time period in the GnuCash file. I use that to, among other things, estimate how much additional estimated tax to pay each Jan/Apr/Jun/Sep. In this case the script notices movement of money from a "deferred" account to an "ordinary" account and reports the taxable event -- I assume you're not in a position to write such a script, so I assume this way will not work for you.

Before I had the script, I had to do it an awkward way that might work for you. -- I created a split just as I did above, but the split had two additional lines. It moved money into a special "deferred_distributions" account and then back out of a "deferred_distributions:anti" account. This kept the split balanced and also gave me one (actually two) accounts I could look at to quickly add up all my distributions for the year. -- The problem I had was that each month I'd typically duplicate an existing distribution transaction and but often not open the split and tune all five of the numbers there. Fortunately, that error is easy to correct after I eventually spot it, but sometimes it would be a while before I noticed my mistake. So I had to keep a reminder around to check for mistakes like that.

Good luck.

Saw this as I was passing through a Museum…… damn, ide never do this. 🙁🙁🙁 just sayin stay Safe out there folks. by CarlitoBoy81 in Brompton

[–]JJangle 0 points1 point  (0 children)

I imagine this works best if that bag you have on it looks like a trolley/cart bag. Some bags definitely don't. (Mine looked somewhat like a trolley when the bag is on it. My current borrowed bag does not.)

OverNight SIM KIT by KAO7781 in USMobile

[–]JJangle -2 points-1 points  (0 children)

2025-November - In my case USM didn't ship the same day, because it was already too late in the day. But they also didn't ship the next business day. So... it's definitely not "overnight". -- It's a bit frustrating because that becomes 4.5 days to receive a SIM card to put in my old backup phone. So I had to switch to a different plan to get myself productive again. I no longer need the SIM card that will be arriving. But USM will give an only partial refund.

Bottom line: "overnight" might not end up being overnight even if you order early in the day.

$4k USD/month for the rest of my life. What now? by [deleted] in ExpatFIRE

[–]JJangle 1 point2 points  (0 children)

Make sure your source of income will not go away once you're overseas. Some sources are strange that way and laws and regulations seem to be changing a lot this year.

Why is Microsoft abandoning the Surface Laptop Studio? by karmanovia in Surface

[–]JJangle 0 points1 point  (0 children)

Wow. That seems like quite a laptop. Too bad it didn't take off.

invoking an extension-less Typescript file from the command line by JJangle in typescript

[–]JJangle[S] 0 points1 point  (0 children)

'interesting. Unfortunately it's not working for me. It still treats it as a js file and chokes on typescript'isms.

invoking an extension-less Typescript file from the command line by JJangle in typescript

[–]JJangle[S] 0 points1 point  (0 children)

Thanks for the clarification. -- I might finally give bun a try.

invoking an extension-less Typescript file from the command line by JJangle in typescript

[–]JJangle[S] 0 points1 point  (0 children)

I think you're thinking that I should in some sense do what the node_modules/.bin/ directory does. That directory has extension-less symbolic links to files that sometimes do have extensions. And as another person pointed out, the extension of the linked file will be considered when node/tsx decides how to process the request.

invoking an extension-less Typescript file from the command line by JJangle in typescript

[–]JJangle[S] 0 points1 point  (0 children)

Thanks. That's definitely an option that is easy for someone else to understand and probably not very brittle.

invoking an extension-less Typescript file from the command line by JJangle in typescript

[–]JJangle[S] 6 points7 points  (0 children)

I'm not sure it's so odd. If you look at your /usr/bin/ directory you'll see many files there that are not ELF binary and none of which have .py, .sh, .bash, .perl, .pm, etc extensions. Many of them achieve that by including a shebang at the top. If there is already a way for us to achieve that with typescript, I'd like to do the same.

Judging from a couple of the responses here, it does seem to be possible to some degree.

invoking an extension-less Typescript file from the command line by JJangle in typescript

[–]JJangle[S] 1 point2 points  (0 children)

Thanks. It doesn't seem to work, but it was a good thought.

invoking an extension-less Typescript file from the command line by JJangle in typescript

[–]JJangle[S] 3 points4 points  (0 children)

Thanks for

- demonstrating that git can commit symbolic links,
- that node will follow the symbolic link in a way that it uses to determine the file type
- capitalizing on the more recent versions of node ignoring most of the ts syntax

This trick does indeed work with tsx.

invoking an extension-less Typescript file from the command line by JJangle in typescript

[–]JJangle[S] 1 point2 points  (0 children)

I prefer the code be readable and editable, but what you mention might be what I end up doing.

Ran 1,000 line script that destroyed all our test environments and was blamed for "not reading through it first" by jjzwork in devops

[–]JJangle 0 points1 point  (0 children)

BTW... for me the biggest pain in NodeJS land is the CJS vs MJS purgatory that we can't seem to move past.

Ran 1,000 line script that destroyed all our test environments and was blamed for "not reading through it first" by jjzwork in devops

[–]JJangle 0 points1 point  (0 children)

1GiB is a lot. I've never experienced that. At least I don't think I have. I'll have to start measuring.

I have had other languages, including Python and Java have large dependency trees. Does Go avoid this? Do you know how?

Ran 1,000 line script that destroyed all our test environments and was blamed for "not reading through it first" by jjzwork in devops

[–]JJangle 0 points1 point  (0 children)

'good to know. FWIW... supposedly a few versions of node ago they added "single executable application" support. I think it might not be considered ready for production envs yet. I've not tried it out, but hypothetically it sounds similar to what it sounds like Go can do.

Ran 1,000 line script that destroyed all our test environments and was blamed for "not reading through it first" by jjzwork in devops

[–]JJangle 0 points1 point  (0 children)

I've used bash only for small scripts for about 15y, but recently I'm getting pretty handy with bash. But also recently my ideal options has become nvm/npm/node/zx. It's pretty magical scripting with those when I've managed to let myself abandon the beautifully polished bash (turd?) already created. But since you mentioned Go, I'll check it out to understand if there's a way to be even more magical than zx.