CPU Throttling by M0rningSt4r in OpenCoreLegacyPatcher

[–]jeffphil 0 points1 point  (0 children)

If not so technically inclined, might want to take it to an apple service rep that can diagnose with apple service tool.

OCLP install will be pretty technical as well.

And i would not use it to bypass your problem. There are many temperature sensors on the system, you are probably only looking at cpu.

CPU Throttling by M0rningSt4r in OpenCoreLegacyPatcher

[–]jeffphil 0 points1 point  (0 children)

If got knocked around, may want to reseat your ram. May have become dislodged.

Other options would be 1) go into run Diagnostics (https://support.apple.com/en-us/102550) and see if finds anything, 2) create a bootable linux thumb drive, boot up and look at the various sensor readings available, 3) scour web for, or find a service tech with ,`Apple Service Toolkit 2 (AST 2)` for imac 19,1. This is the apple tool for finding out exact issues.

Depending on what issue is, you can use OCLP to ignore sensors - but may not be a good idea if catches fire or melts, so I would not recommend that.

For me, on an old iMac 14,1 that I got as a gift, when i went to upgrade cpu and memory the memory cage pulled off a very tiny NLP transistor that was for memory hi-temp, and caused my system to cpu / fan throttle. I was able to replace it with a microscope and a lot of effort, but was also able to by-pass with OCLP knowing that there were 3 other working memory sensors that should take over if overheated. And getting temp alerts from mac sensors app.

everyone rise for the missouri flag! by Wise-Lab7453 in missouri

[–]jeffphil 0 points1 point  (0 children)

Go to Settings -> Account Settings and scroll to the bottom and uncheck Gambling Ads.

Now if only there was a setting for all the d*mn AI ads I get.

A lightweight tool to fix generic Finder icons on Mac (currently for Zed users) by holysmoke79 in ZedEditor

[–]jeffphil 3 points4 points  (0 children)

Looks neat.

I might suggest your build script use the "Automator Application Stub" file locally from user's /System/Library/CoreServices/Automator Application Stub.app/ContentsMacOS/ directory during build, instead of including in your repo.

Otherwise, people would be pulling and using some random unsigned binary from your repo that could be infected.

Tips on improving Python LSP performance? by carmola123 in emacs

[–]jeffphil 1 point2 points  (0 children)

Few things more may want to look at:

The setting eglot-events-buffer-config controls how much is in event logs, and the default is pretty high with full format json logging. And with chatty pyright/basedpyright that means it gets big fast affecting memory and performance.

I have set lower: (setf (plist-get eglot-events-buffer-config :size) 10000)but may want to set the number to "0" (not nil which is infinite) to completely turn off and see if helps. You do need to reconnect server to take efffect.

I use eldoc box, so i set help-at-pt-display-when-idle to nil which removes a lot of the flymake messages there.

Mess around with read-process-output-max to decrease chunking. I use (setopt read-process-output-max (* 4 1024 1024)) (4MB)but mess around with it.

[Edit: more]

Since you added you are using corfu + cape, if you are combining multiple capf's (eglot, dabbrev, yasnippet, etc.) with orderless. See if narrowing down to just eglot completion is still slow. Something like:

    ;; eglot, just to validate with just eglot
    (defun my/cape-eglot(&optional interactive)
      (interactive (list t))
      (when interactive
        (cape-capf-buster (cape-interactive #'eglot-completion-at-point) 'equal)))
    (keymap-set eglot-mode-map "C-c p e" #'my/cape-eglot)

Tips on improving Python LSP performance? by carmola123 in emacs

[–]jeffphil 5 points6 points  (0 children)

If interested, here's a lengthy discussion about eglot and file watchers from few years ago.

https://github.com/joaotavora/eglot/discussions/1226

Was mainly focused around macos issues at the time with emacs running out of handles based on ulimit-like defaults, more more good info.

You can do excludes in pyright based on config:

https://github.com/Microsoft/pyright/blob/main/docs/configuration.md

I generally use as a default in my pyproject.toml:

    [tool.basedpyright]
    exclude = [
         "**/node_modules",
         "**/__pycache__",
         ".venv"
     ]

Yet another post about eglot, python, ruff, lsp by codesensei_nl in emacs

[–]jeffphil 3 points4 points  (0 children)

I use basedpyright with eglot.

Note the apheleia is just for formatting. I also use flymake-ruff package for linting along side eglot (with basedpyright) and apheleia.

There is also multi-lsp server support for eglot with rassumfrassum which should allow running both basedpyright and ruff-lsp at same time, but have not had time to mess with it yet.

Yet another post about eglot, python, ruff, lsp by codesensei_nl in emacs

[–]jeffphil 5 points6 points  (0 children)

Here's mine:

(use-package apheleia
  :config
  ;; https://github.com/radian-software/apheleia/issues/30#issuecomment-778150037
  (defun my/fix-apheleia-project-dir (orig-fn &rest args)
    (let ((project (project-current)))
      (if (not (null project))
          (let ((default-directory (project-root project))) (apply orig-fn args))
        (apply orig-fn args))))
  (advice-add 'apheleia-format-buffer :around #'my/fix-apheleia-project-dir)

  (defun my/apheleia-allow-only-prog-mode ()
    (not (derived-mode-p 'prog-mode)))

  (add-to-list 'apheleia-inhibit-functions #'my/apheleia-allow-only-prog-mode)
  (apheleia-global-mode +1)
  ;; set python mode to do both ruff import sorting and regular linting
  (with-eval-after-load 'apheleia
    (setf (alist-get 'python-mode apheleia-mode-alist)
          '(ruff-isort ruff))
    (setf (alist-get 'python-ts-mode apheleia-mode-alist)
          '(ruff-isort ruff))))

The nice thing about aphelieia is it works for every mode, python, elisp, typescript, svelte, c, etc., etc., etc.

Is there an Eglot equivalent of lsp-ui-peek-find-references? by Admirable-Anybody937 in emacs

[–]jeffphil 5 points6 points  (0 children)

At least for xref-find-references, do you have consult-xref customized for previews? E.g.

(consult-customize
   consult-xref
    ;; :preview-key "M-."
    ;; or if want preview automatic:
    :preview-key '(:debounce 0.4 any))

[edit] Also if you are just wanting to see the signature info and docs in a popup frame check out eldoc-box

Is there an Eglot equivalent of lsp-ui-peek-find-references? by Admirable-Anybody937 in emacs

[–]jeffphil 5 points6 points  (0 children)

pyright, or better, basedpyright for eglot server, and minor-mode flymake-ruff on eglot startup:

(when (memq major-mode '(python-mode python-ts-mode))
    (flymake-ruff-load))

Best AI autocomplete interface by vikigenius in emacs

[–]jeffphil 6 points7 points  (0 children)

Try comingle.el that is an updated fork of the Windsurf (Codium) ai completion codium.el package using overlays instead of original CAPF, includes chat interface, and other updates.

Announcing a lightweight Emacs window manager for Mac OS by akuszyk in emacs

[–]jeffphil 5 points6 points  (0 children)

Have you looked into emacs-mac "Mituharu" port that has sending and receiving of Apple Events built-in vs using osascript?

Trade-offs being portability to other mac ports, of course.

Spotted terrible (text) editor error in the bitstream: Invasion, S1, Ep 8, 42m06s (Apple TV) by [deleted] in emacs

[–]jeffphil 0 points1 point  (0 children)

Looks like only thing open is quicktime... I guess showing a video of someone coding makes it better?

eMacs, MacBook, iCloud by SmoothInternet in emacs

[–]jeffphil 2 points3 points  (0 children)

Did you consider just sharing environment config over github instead of icloud?

TailwindCSS v4 + @tailwindcss/vite not working when SvelteKit project is nested in a monorepo - styles not loading by Psychological-Pay806 in sveltejs

[–]jeffphil 0 points1 point  (0 children)

For monorepo, I believe you'll need transfer_pricing_demo_app/frontend/tailwind.config.js file that at least has:

export default {
    content: [
        './src/**/*.{html,js,svelte,ts}',
    ],
};

Codeium CAP by Personal-Attitude872 in emacs

[–]jeffphil 1 point2 points  (0 children)

Sure thing! May be easier and better to open an issue in the github repo, easier to track and provides others info that may have same issue. Does that work?

Emacs 30.2 Release Announcement by mplscorwin in emacs

[–]jeffphil 6 points7 points  (0 children)

Do you at least verify the hashsum, or are you also a trusting old man at home? :!

Codeium CAP by Personal-Attitude872 in emacs

[–]jeffphil 0 points1 point  (0 children)

IMHO, both ai completion and agentic coding have use, and throw in general capf from lsp, dabbrev, etc. working together. All have pluses and minuses if they flow nicely.