-
21 votes
-
Bashly: A command-line application (written in Ruby) that declaratively generates feature-rich Bash scripts
20 votes -
Bash++: Bash with classes
13 votes -
Linus Torvalds weighs in on the Rust for Linux controversy
51 votes -
TIFF to DNG converter
15 votes -
My LLM codegen workflow
9 votes -
How I analyzed 1,378 restaurants using Places API to find hotspots in my city
14 votes -
Funny output from Claude.ai: a codeblock in a question about an early rennaissance theological work
I asked Claude for references to some ideas the ai had output earlier about a 16th century cardinal (Sadoleto). It's response was, Let me analyze the letter, and then this: async function...
I asked Claude for references to some ideas the ai had output earlier about a 16th century cardinal (Sadoleto). It's response was, Let me analyze the letter, and then this:
async function searchForSadoletoLetter() { try { const files = ['sadoleto_letter.txt', 'sadoleto.txt', 'sadoleto_to_geneva.txt', 'letter_to_geneva.txt']; for (const filename of files) { try { const content = await window.fs.readFile(filename, { encoding: 'utf8' }); console.log(`Found file: ${filename}`); console.log("First 500 characters:"); console.log(content.substring(0, 500)); return content; } catch (err) { // File not found, try the next one } } console.log("Could not find any files containing Sadoleto's letter"); return null; } catch (err) { console.error("Error searching for files:", err); return null; } } const content = await searchForSadoletoLetter(); // Since we don't have the letter available as a file, let's search for published versions online console.log("The letter isn't available as a file. We would need to rely on scholarly knowledge about Sadoleto's letter to Geneva (1539)."); console.log("Sadoleto's letter was published in 'A Reformation Debate: Sadoleto's Letter to the Genevans and Calvin's Reply' (ed. John C. Olin).");
This strikes me as odd? Did Claude write a script to generate its own response? Have coders put something like this in as a gaurdrail?
edit: details about earlier convo
15 votes -
Hard disk fraud: More programs, detection methods for other manufacturers
10 votes -
Implementing achievements for MTG Arena
3 votes -
Seeking suggestions for Windows virtual desktop (for Photoshop schoolwork)
Hi Tildes community, I'm seeking your suggestions for spinning up Windows virtual desktop. Allow me to set the context... My offspring is in second semester of their first year of university, and...
Hi Tildes community,
I'm seeking your suggestions for spinning up Windows virtual desktop.
Allow me to set the context...
My offspring is in second semester of their first year of university, and needs to use Adobe Photoshop for one of their classes this semester. They don't use a regular laptop, and have been doing quite well at uni. with their beefy Ipad. While they have used photoshop so far on their ipad, there are some growing pains. Of course, they have access to super beefy desktop Apple Macs at their school's computer lab, but its a pain to get usage of them for a few reasons. At home, all my machines are linux except for my partner's which is an old clunker Windows laptop - which i am in progress of migrating themn away from that Windows machine towards linux laptop...Hence, I don't really have a solid, modern enough machine for my offspring to load Photoshop onto.Then, I thought, hey, maybe i can spin up some Windows virtual desktop somewhere for my offspring to use photoshop on...Its only needed for about 10 or 12 weeks remaining this semester...and they only need to use it once per week for each week's assignments. I feel like as long as the virtual windows machine is beefy enough to suppoort photoshop workloads, it can get them through the semester...and then in summer i can decide if I need to buy them an actual laptop (like an Apple laptop, etc.).
So, may i ask of you dear Tildes community members...Does my approach make sense (of trying to use a windows virt. desktop)? And, if so, are there any recommendations for which provider to use, and how to spin these up? Like, should i try something via AWS or Google Cloud or Azure? Or, should i not even consider this virtual windows approach? I'm open to hearing any/a ll recommendations. If you have links to share for me to research, or if you actually wrote your own blog post on similar topic for example, i'd love to hear it! Thanks in advance!!
Edit: 2025-02-24 UPDATE: Wanted to update folks on where i am on this...After reviewing these comments, researching some more both online and offline, etc...I arrived at the decision of biting the bullet and just buying my kid an Apple Macbook laptop. I want to thank you all for all your greet feedback and suggestions! Thanks so much Tildes community!!!
15 votes -
"A calculator app? Anyone could make that."
54 votes -
Day 15: Warehouse Woes
Today's problem description: https://adventofcode.com/2024/day/15 Please post your solutions in your own top-level comment. Here's a template you can copy-paste into your comment to format it...
Today's problem description: https://adventofcode.com/2024/day/15
Please post your solutions in your own top-level comment. Here's a template you can copy-paste into your comment to format it nicely, with the code collapsed by default inside an expandable section with syntax highlighting (you can replace
python
with any of the "short names" listed in this page of supported languages):<details> <summary>Part 1</summary> ```python Your code here. ``` </details>
6 votes -
Building a personal, private AI computer on a budget
24 votes -
Resigning as Asahi Linux project lead
38 votes -
Are modern iPhones unusable without a case?
I usually have a decently thick and protective case on my iPhone 15 Pro. But occasionally I use it without the case to see how it’s “intended” to be used. To be honest it doesn’t seem very usable....
I usually have a decently thick and protective case on my iPhone 15 Pro. But occasionally I use it without the case to see how it’s “intended” to be used. To be honest it doesn’t seem very usable. I constantly find my palm or fingers activate the screen on the lower right edge - which is surprising as MacBook touch pads have excellent palm rejection. I would have expected the same attention to detail and quality on the company’s flagship product.
Maybe I’m just not used to it and I’m “holding it wrong”.
29 votes -
What was your first programming language, what languages do you know now, and what tips do you have for those trying to learn any of those?
What was your first programming language, what other languages (if any) do you know now, and what tips do you have for those trying to learn any of those? Whether those tips are for beginners or...
What was your first programming language, what other languages (if any) do you know now, and what tips do you have for those trying to learn any of those? Whether those tips are for beginners or even advanced, to do with APIs, or if you've got a good library to share.
53 votes -
What programming/technical projects have you been working on?
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?
17 votes -
In the past days, several projects advocating tolerance and equal rights on Codeberg have been subject to hate attacks, such as massive spam of abusive messages in their issue trackers
34 votes -
Alexandre Mutel a.k.a. xoofx is leaving Unity
6 votes -
Sunsetting cursed terminal emulation
10 votes -
Smaller keyboard part 2, chords and mice
Previous topic - https://tildes.net/~comp/1jsx/my_even_smaller_keyboard_upgrade I'm making this a new topic because this keyboard once again got me to think about a couple of interesting things in...
Previous topic - https://tildes.net/~comp/1jsx/my_even_smaller_keyboard_upgrade
I'm making this a new topic because this keyboard once again got me to think about a couple of interesting things in regards to both having a smaller keyboard and how to actually make that work. Plus while niche as hell I'd like to contribute some sort of topic to tildes every now and then. For this one i'll be rambling about some of the reasons I've stuck with these things, and the sorts of design concepts it's forced me to think about and problems I ran into (like where the hell the shift key is).
1. Power users and the Nav cluster -
The nav cluster is the Home/End/PgUp/PgDwn/Delete/Insert section and maybe the arrow keys below it on a standard fullsize keyboard. These keys are SUPER useful for text and other sorts of navigation, to the point that it seems most "power user" systems(IDE's or even things like vim, or vimum for browsers) just remap the functionality to somewhere that can be easily reached.
In fact moving the nav cluster and numpad to be somewhere easier to access, so i wasn't constantly moving my hand back and forth, was one of the main reasons I started looking into custom keymaps and eventually smaller keyboards. Being able to trivially hit Home/End without lifting my hands is just so much nicer.
I mention all this to show you the kind of thinking that originally went into me going down this rabbit hole.
In essence:
I wanted to type/navigate faster, oh you can use these keys to be faster, but wait, i'm only a little bit faster and it's MUCH more annoying because I constantly have to move my right hand back and forth, how do I stop that?Thus i'm always somewhat surprised at how vehemently people can get about remapping keys. Having Up/Down/Left/Right on I/K/J/L with Home/End/PgUp/PgDwn on U/O/Y/H is super intuitive(right handed WASD, with home/end/pgup/pgdwn in line with their corresponding movement) and makes flying around the screen so much easier, and can also open up keybindings that were otherwise used with just porting all this functionality to keys you can easily hit.
2. Chords, and the first major problem -
I'm sure there's a more technical definition but for the purposes of this topic chords are anytime you're hitting one or more keys at once. Shift + a is a chord for A. Ctrl+Shift+Esc is a chord for opening the task manager on windows.
One of the things you don't instantly think about when you get into smaller boards is what chords are popular, and how adding layers to your workflow will affect them. You really want your modifier keys to be accessible at all times, and in a way that makes sense. I don't have a problem that since my Esc key is not on the base layer, the Ctrl+Shift+Esc becomes Ctrl+Shift+Space+Tab for me. To break that down, Ctrl+Shift are on all layers, Space, when held, is the modifier to go to one of my other layers, and on that layer tab becomes esc.
In short, I've added one extra key to the chord, and it doesn't bug me.
What DID bug me, was that with this smaller keyboard, I no longer had room on the left side to put all of those modifier keys. You'll notice that the chord can be easily hit with your left hand alone, and with my previous map, I had shift on the right side. So now I need two hands to hit this chord instead of one. Oh well, right? It's just one chord and I need to use both hands...., whatever?
3. Oh yeah, the mouse......oh shit -
While I do think that more software should be written to allow mostly keyboard interaction, the mouse still serves a useful purpose in my ideal world. Being right handed, I use my right hand for the mouse. Sure I have some mouse functionality bound on one of my layers, but that's not going to replace the speed and precision of the mouse.And that brings me to Win+Shift+S on windows for taking screenshots. Or more precisely, for selecting an area to take this screenshot....using the mouse.
First off, if you didn't know about this chord and you're on windows, please use it, it's fantastic for those quick "no i mean this" moments where you're trying to send someone a picture of a problem.
Second, this chord SUCKED on my new keyboard layout. On any of my previous keyboards including a normal one, I could hit this chord with just my left hand alone, while I moved my right hand to the mouse to quickly select the area I wanted and then edit it (often drawing red lines around the buttons I needed someone to click on...again....as mentioned in the documentation......).
My new layout had shift on my right hand, and oh dear god did I quickly realize how many other little workflows suck when you need to use both hands to hit the chord and THEN lift up and move it over to the mouse. Most importantly, multiple line/file selection, now required me to move my right hand to the mouse, and my left hand to the right keyboard, so I could hold shift and select things.
Or in overly dramatic terms, lo i had flown too close to the sun and was falling!
4. Wandering in the dark -
For those that for some reason don't have the 5x3 Chiri CE physical layout memorized, here it is (bottom one).
First try:
Move shift to the top button of the left thumb cluster. This was currently tab, but clearly I needed shift on my left hand more. Tab cold go on the right middle, where shift had been, and shift can go where tab was. Problem solved.No good. That key is often hit with my index finger instead of my thumb, making something like shift+t/g/b super annoying. Hitting that key with your thumb actually requires a shifting of your hands position, and thus feels unnatural.
Worse, the key below it is my space/layer button, so something like shift+ctrl+left, to select previous words(left in this case being space + j), was super uncomfortable to hit. Just moving my thumb up to hit both keys at once did not feel good as I couldn't properly apply pressure and it just felt weird, but I wouldn't be shocked if some people out there are comfortable with that.
Second try:
Ok, we'll just move one of the other 3 thumb keys on the left to the right and put shift there, probably the win key.No good. Ctrl and Win (or gui/super/meta/whatever) are just as important as shift. That small cluster being close to each other on normal keyboards, so they're left hand control only, means that almost ALL programs assume as much and have built their default hotkeys around it.
Windows window movement and terminal navigation being two of the bigger ones that affected me. Further this still wouldn't solve my win+shift+S screenshot issue, as now i'm just moving the windows key over there. There's no way in hell i'm putting ctrl on the right side because that's also constantly used in assuming its on the left side for various hotkeys, shortcuts, and other behaviors.
Third try:
It was at this point I was entertaining finally looking into homerow modifiers and setting up tap/double tap modifiers instead of hold. I'm still skeptical of how useful any of that is (but being open minded because of course I was skeptical of all of this and now I preach it), and realllly didn't want to go down that road for all sorts of little workflow reasons I was worried it'd collide with.5. The solution. Pinkies and two shifts -
This stumped for for about two days after I'd decided I just couldn't live with right shift (there were plenty of other awkward workflow things due to having the number layer key be the leftmost thumb on the right pad). I'd really been trying to practice getting used to hitting both thumb keys with my thumb, as I assumed that might be the solution, and unlike basically every other adjustment I've ever had to make for a keyboard, this just felt rough.
So I took a break and just thought about my previous and normal keyboards. Well, again, in those cases, all these chords assume you're using your thumb for one modifier, and your pinky for the other. Sooooo why not just do that?
Thus the solution was born:
MT(MOD_LSFT, KC_X)
MT(MOD_RSFT, KC_SLSH)For the few of you who don't have your Via/QMK mappings memorized, this just says that if I tap the key in question, type z (or / for the second one), and if I hold the key in question, treat it as if I'm holding the shift key.
So my shift keys are now used by my pinky, just like normally. I have them on Z and /, so I can easily hold either for whatever chord. If I need something like ctrl+shift+z I can just use the right shift, and ditto for ctrl+shift+/.
Even better, this was already my natural inclination. It only took a bit for me to find out just how much faster and easier this was making things, as I already was used to the idea of moving my left pinky downwards to hit shift. In fact, it was even easier than normal. Every now and then I'll get zi instead of I because I didn't hold the key long enough for it to trigger the "shift" function, and I could get really messy and start screwing with how long the keyboard takes to recognize the difference between a press and a tap, but I'm super happy with it.
6. Conclusion -
My wife is right to judge me and I don't care from my superior position in typing valhalla.8 votes -
I want to finally understand how to compile in C well, any resource recommendations?
I am a scientist who has semi-frequently written code in C (and other compiled languages like Fortran). When it comes time to compile, I typically tape together a Makefile from past projects and...
I am a scientist who has semi-frequently written code in C (and other compiled languages like Fortran). When it comes time to compile, I typically tape together a Makefile from past projects and hope for the best, but even then I spend more time than I'd like to admit trying to figure out why my project is not being compiled or linked correctly. I've had a hard time finding any resources that aren't extremely surface level, or else are not behind some type of paywall. Can anyone recommend me some reading so that I can confidently write Makefiles and compile programs and actually understand what the different flags and commands are doing? I don't need extreme "under the hood" information as I don't intend to do things like write my own compiler, I just want to understand the process a little better. Help a scientist out!
15 votes -
Undergraduate upends a 40-year-old Data Science conjecture
26 votes -
8 million requests later, we made the SolarWinds supply chain attack look amateur
10 votes -
Visualizing Packrat Parsing
7 votes -
What programming/technical projects have you been working on?
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?
18 votes -
Hard disk fraud: long runtimes on new Seagate hard disks
38 votes -
Global Capslock key
76 votes -
Let's Encrypt is ending support for expiration notification emails
34 votes -
Stack Exchange to begin AI-generated Answers experiment on opted-in Stack Exchange sites
24 votes -
Anyone have ideas about how to fit this third party driver board into a 2021 (m1) imac? (link to board)
4 votes -
Why I rebuilt ProseMirror’s renderer in React
10 votes -
humans interacting with computers
3 votes -
Can I turn a closed Windows 11 laptop on and off?
I'm a Linux and big old tower PC guy. I know next to nothing about laptops or Windows. Is it possible to keep a Windows 11 laptop closed, but still be able to turn it on and off?
4 votes -
Framework-mania is running wild!
9 votes -
DeepComputing launches early access program for DC-ROMA RISC-V Mainboard for Framework Laptop 13
4 votes -
T1: a RISC-V Vector processor implementation
8 votes -
What programming/technical projects have you been working on?
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?
15 votes -
Jank: a native Clojure dialect hosted on LLVM with C++ interop
6 votes -
What programming/technical projects have you been working on?
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?
17 votes -
The documentation system
7 votes -
SDL 3 official release
18 votes -
Hacking Subaru: Tracking and Controlling Cars via the STARLINK Admin Panel
18 votes -
Unique 0-click deanonymization attack targeting Signal, Discord and hundreds of platform
50 votes -
Too many people don’t value the time of security researchers
22 votes -
Seeking advice as a Frontend web developer
We have this big project at work...an "all hands on deck" kinda thing that has us rank-and-file frontend devs working alongside our manager more closely than I'm used to. And it was fine, because...
We have this big project at work...an "all hands on deck" kinda thing that has us rank-and-file frontend devs working alongside our manager more closely than I'm used to. And it was fine, because I like the guy and he's been a decent manager. But this project is killing me.
On multiple occasions now I've written code, had it pass code review (often with his approval after a round of changes/guidance), and then every few days we get these massive re-write PRs from him where he completely rewrites large chunks of what we've done. It's leaving me feeling a few different ways:
- Angry because how quickly your code gets replaced is a (imo, bullshit) metric used as a part of our annual reviews and promotion discussions
- Doubting myself because in my head a good developer doesn't have their code rewritten that quickly.
- Confused because features I thought I understood are constantly being rewritten leaving me wasting time trying to relearn how things work
- Wondering what the point of writing code is if it's just going to be thrown in the garbage later in the week?
And like I'll be the first to admit I'm not the most proficient developer on our team. React and Typescript are relatively new concepts to me, despite a long career in web development. But I've been writing with it for about a year now and I had thought I was finally getting a good grasp on things. But now I'm wondering if I'm just an idiot? Is it imposter syndrome or have I actually somehow coasted through a 15 year career across various stacks and it's just now catching up to me?
Or is this just the nature of massive projects like this? We had a half-baked product scope to begin with and its getting daily changes with entire chunks of it not very well thought out by our PM. I can see how it would make sense that the more senior developer might see the need to refactor things when things are constantly changing and we're left writing code based on assumptions and half-written requirements. I'm also getting are comments on my PRs that request changes, but mid-comment he's like "I'll just take care of this because it's blocking me".
It's just really taking a toll on my mental health and how I feel about my job. I've been trying to find another job for a few months now, but I'm not having any luck. Job hunting sucks and when you're already demoralized as hell, it's hard to sell yourself to prospective employers.
Could really use some insight from other experienced devs, please!
12 votes -
What programming/technical projects have you been working on?
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's...
This is a recurring post to discuss programming or other technical projects that we've been working on. Tell us about one of your recent projects, either at work or personal projects. What's interesting about it? Are you having trouble with anything?
20 votes -
Apple is killing Swift
41 votes -
NREVERSAL of Fortune -- The Thermodynamics of Garbage Collection
2 votes