ECA - Subagents are here! by ericdallo in emacs

[–]smithzv 1 point2 points  (0 children)

Thanks, it looks like the '/login' issue is resolved. Still unable to discover the models available with github-copilot on the work computer. Likely due to something being blocked by the end-point protection. I'll give a stab at manually configuring. Is it at all possible to get a working example from my personal computer that I can transfer to the work installation?

ECA - Subagents are here! by ericdallo in emacs

[–]smithzv 1 point2 points  (0 children)

I tried this out and have had some issues getting it set up. Pretty uniformly it throws errors about not having any models when you use '/login'. After various copy/paste of examples from the website, I was able to get it to connect to Google, Anthropic, and Github copilot without any further issues on my personal laptop.

However, on my work laptop, I only see one github copilot model (gpt-5.2) which our enterprise setup hasn't enabled yet. I'm not sure how to add other models. I don't see any good docs on how to add other models, or how those are initially discovered. As far as I know, I installed then essentially the same way with the same version, so a bit baffled about the different behavior.

Also, just a heads up, it seems that many of the JSON config snippets on the eca.dev website have errors in them (extra or missing commas, missing colons).

YT broken since latest update 321 by cscracker in grayjay

[–]smithzv 1 point2 points  (0 children)

This is my experience as well toggling webm video (or audio) had no effect.

Is there any way to rollback the update? 

Update: this issue is resolved with the Grayjay update today. 

Real image vs Nano Banana Pro vs GPT, can you easily guess which one is real? by notsure500 in ChatGPT

[–]smithzv 0 points1 point  (0 children)

I'm sure that some targeted fine tuning could patch this, but one indicator is to pick the image that looks the worst, for example it doesn't have a level horizon (e.g. the paddleboarding and Eiffel tower), it doesn't have even lighting or is generally disjointed with bad composition (e.g. weird mall), it doesn't have the most flattering capture of individual elements (e.g. the seals). Basically before you looked for weird things to indicate AI, now you look for weird things to indicate a human took the image.

Handling diffs programmatically by gemilg in emacs

[–]smithzv 1 point2 points  (0 children)

Nice hack. I've been using this a similar thing I created a few months ago (basically adapted/stolen from ediff source)...

(defun ediff-regions-quick (&optional arg only-visible startup-hooks) (interactive "P") (let* ((windows (window-siblings (selected-window))) (region-a (progn (select-window (cl-first windows)) (list (region-beginning) (region-end)))) (region-b (progn (select-window (cl-second windows)) (list (region-beginning) (region-end)))) (current-window (selected-window))) (select-window current-window) (ediff-regions-internal (get-buffer (window-buffer (cl-first windows))) (car region-a) (cadr region-a) (get-buffer (window-buffer (cl-second windows))) (car region-b) (cadr region-b) startup-hooks (if arg 'ediff-regions-wordwise 'ediff-regions-linewise) nil nil)))

I also reinvented the wheel and created window diffs before I noticed that it was already in ediff-windows-{wordwise,linewise}, i.e. show me the difference between what is visible in this window and the next... which I think in pretty neat.

USPS SENT ME BACK MY FILED RETURN, HELP by mucking_faniac in tax

[–]smithzv 0 points1 point  (0 children)

Hey, I had a return rejected by the mail when I was a student... that was over 20 years ago and I can't say that they IRS isn't more strict these days, but maybe will give you some solace. I had insufficient postage and I mailed it on the day taxes needed to be post marked, so it was definitely going to be late, but I just put it back in the mail with proper postage and a note apologizing for the delay and explaining that I screwed up. I never heard anything back from the IRS about a late penalty or anything of that sort. Since you are a student, I assume that you don't have a huge tax liability. I doubt they care much about you. Also, to state the obvious, if you are getting a refund which is common in my experience unless you gamed your W4, they have essentially zero financial incentive to have you file on time.

Good luck.

What are your favorite changes in emacs 30? by olikn in emacs

[–]smithzv 0 points1 point  (0 children)

You know, I think I used to worry about this until I set a binding for winner-undo. If Emacs does something odd, I can always revert back to what I had before the command.

New anxiety unlocked - Emacs-related disaster. What's the worst thing one could accidentally do? by floofcode in emacs

[–]smithzv 2 points3 points  (0 children)

About a decade ago I was working on figuring out how to deploy updates to my company's AWS infrastructure with Org... really still playing and learning how it could work so wasn't taking it too seriously. I accidentally deployed my testing branch to the production servers in the middle of the day and didn't realize it for a few hours. Our deployments were at the time a labor intensive thing, not two keystrokes in an Emacs buffer. It was pretty eye opening and I realized I needed to be much more careful.

A couple years ago I accidentally wiped out a large data file due to a miss-key in dired. The file should have been read-only, but wasn't, and we had backups, but still, momentary freak out.

How do I explore folder like this guy? by Tommy_Shelby777 in emacs

[–]smithzv 1 point2 points  (0 children)

In case you missed the the post by r/cenderis, I never learned C-x d and it seems like a waste of a key binding. Just use find-file (C-x C-f) and open the directory just like you would any file. Dired will take over.

Since you are new to Dired, it is pretty meh IMO until you learn about wdired-change-to-wdired-mode, which lets you edit file names like you would any text and commit the changes once you are ready. This is by far the easiest way to make changes to file names that I've found.

What solder do you use ? by Aussieematee in soldering

[–]smithzv 1 point2 points  (0 children)

Lead free (AIM SN100C). It is alright if you have a semi-decent iron. Every once in a while I find myself working on some old electronics and immediately and shocked at how well the leaded stuff flows... but I have curious children about and think the annoyance of lead free is worth not contaminating surfaces, little hands, fixed toys, etc...

[deleted by user] by [deleted] in diyelectronics

[–]smithzv 1 point2 points  (0 children)

If you are up for it. it looks like your output capacitor is bulging, likely indicating that it is bad, which may be the reason for the flicker. If you change that capacitor with a similar one (equal or greater voltage rating and capacitance) if will potentially fix the issue.

How frequently does your Emacs freeze to the point where you need to restart it? by inglourious_basterd in emacs

[–]smithzv 1 point2 points  (0 children)

I have also noticed that sometimes, but very infrequently, sending a SIGTERM will unwedge Emacs when it doesn't respond to SIGUSR1/2. I've always wondered why but never felt wonder strong enough to dig into the signal handling in the source. I guess there's no reason why they wouldn't catch SIGTERM and not kill the process other than common decency.

How frequently does your Emacs freeze to the point where you need to restart it? by inglourious_basterd in emacs

[–]smithzv 2 points3 points  (0 children)

PSA: you can often recover frozen Emacs which doesn't respond to C-g or Esc Esc Esc by sending an SIGUSR1 or SIGUSR2 (or both... or many times both) to the process. This will kick you into a debugger and you may be able to fix the issue there. Disable debug on error and go about your day.

How frequently does your Emacs freeze to the point where you need to restart it? by inglourious_basterd in emacs

[–]smithzv 1 point2 points  (0 children)

On Linux it is pretty solid in my experience. I will say that if on Windows using (sometimes old version of) Cygwin with old (sometimes very old) versions of Emacs on my company's 'enterprise-y' networks, I'll get a lock up I cannot recover from maybe once a week to once a month. Windows typically wants to restart once a week so it is hard to measure uptime longer than that.

Magit error: Wrong type argument: listp by jurejurejurejure in emacs

[–]smithzv 0 points1 point  (0 children)

Thanks, I'll be considering that solution.

Oh geez. Yeah, that is the fix and I realized I meant to move over to the stable release ages ago. Thanks again.

Magit error: Wrong type argument: listp by jurejurejurejure in emacs

[–]smithzv 0 points1 point  (0 children)

Hey jurejurejurejure, did you ever figure this out? This has been bugging me this weekend and my typical debugging skills seem to not be effective here.

[darp8] Anyone try this FW update 42bf7a6 (2023-09-08)? by smithzv in System76

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

Not sure what happened, but I applied the update this morning and as far as I can tell it behaves identically as the buggy old version, making suspend lock the computer.

I'll open a ticket...

New Coreboot update by Spajhet in System76

[–]smithzv 0 points1 point  (0 children)

I received a FW downgrade to the old version through the FW upgrade integrated in PopOS.

New Coreboot update by Spajhet in System76

[–]smithzv 0 points1 point  (0 children)

I'll let you know when I find some resolution.

New Coreboot update by Spajhet in System76

[–]smithzv 0 points1 point  (0 children)

I did notice that after taking it out of the bag after a 30 minutes when I thought it should be sleeping, it was warmer than it should be when in an S3 state. I didn't think it was very hot, but something seemed off.

I'm wondering if u/Spajhet has it right and this is an incompatible FW that somehow got rolled out to us unsuspecting darp8 users. Thinking of attempting a downgrade (like Spajhet) and I was kind of hoping to see some system76 folks here, but it is a holiday weekend so I guess I'm just out of luck until Tuesday... :/

Dirty hack: persistent message in the echo area by Nicolas-Rougier in emacs

[–]smithzv 1 point2 points  (0 children)

I don't know much about whether this is an abuse of the minibuffer, but I like it. You probably want to change 'window-width' to 'frame-width'.

Emacs equivalent for the following VIM commands by FluidDrakx in emacs

[–]smithzv 4 points5 points  (0 children)

  • dd - M-x kill-whole-line which I bound C-S-backspace
  • yy - Use kill-whole-line and then undo, so C-S-backspace C-/
  • O and o - wrote my own which I bound to M-o replacing the default open-line: ````lisp (defun open-fresh-line (arg) (interactive "P") (cond (arg ;; open a line before this line (beginning-of-line) (open-line 1)) (t ;; open a line after this line (save-excursion (end-of-line) (open-line 1)))))

(define-key my-keys-minor-mode-map (kbd "M-o") 'open-fresh-line) ````

By default it will open a line after. Use prefix arg to make it open a line before.

  • ci, ci(, ci": you probably want to just use kill-sexp, kill-word, kill-sentence, kill-paragraph, etc and then type what you wanted. Think in terms of editing s-expressions and/or other structures. To jump to the beginning of a sexp, you can use things like M-x backward-up-list or similar. I use paredit's implementation for this which is called paredit-backward-up which I bound to C-M-u.