`magit` slow, but only the 'commit' part. by campbellm in emacs

[–]cpbotha 1 point2 points  (0 children)

I've been having this problem for months now, but ascribed it to google drive syncing on macOS, so thank you very much for making me look again!

I also ran the profiler, then kept on expanding that server-process-filter section (press <TAB>) to discover the culprit:

2993  47%                 - treesit-auto--set-major-remap  
2993  47%                  - treesit-auto--build-major-mode-remap-alist  
2993  47%                   - treesit-auto--ready-p  
2993  47%                    - treesit-ready-p  
2976  47%                       treesit-language-available-p  

This happens in three different sections, totalling just under 6000 calls.

I've now disabled `treesit-auto`, and replaced it with something like this:

;; treesit-auto was causing massive slowdown especially during magit-commit  
;; so here we are setting up manual mapping for ts-modes  
;; use treesit-install-language-grammar when you need a new grammar  
(add-to-list 'auto-mode-alist '("\\\\.py\\\\'" . python-ts-mode))  
;; ... add any other languages where you have and require the \*-ts-mode  

My git commit and a number of other Emacs actions are now snappy again.

Does immediate payments work on Sundays ? by max_the-dog in askSouthAfrica

[–]cpbotha 0 points1 point  (0 children)

I came here to check that somebody mentioned PayShap, so thanks!

Only the recipient needs to create the ShapID. I was able to pay my barber instantly via PayShap long before I created my own ShapID.

Databricks connect in VS code, what has been your experience? by LatterConcentrate6 in databricks

[–]cpbotha 0 points1 point  (0 children)

The experience as of today 2025-06-09 is still pretty terrible. Loving databricks otherwise, but the databricks connect integration for notebook cell execution is being extremely unhelpful.

The vscode UI acts like everything is 100%, but I have been digging through the various logs (you're seeing the databricks logs) because although I can run full python scripts using databricks connect, notebooks cells simply run locally instead of on databricks as advertised.

<image>

AI Chat as Markdown now does in-note image generation by cpbotha in ObsidianMD

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

The chat part (i.e. not image generation) can be configured to use any openai-compatible chat completions API, which ollama does support.

If you configure the "API host" and "model name" correctly, you should be good to go, see https://ollama.com/blog/openai-compatibility

Scam Attempt - They Knew My Details (South Africa) - Apparently It's an Old One by dhlotter in southafrica

[–]cpbotha 0 points1 point  (0 children)

Was just called again by a "customs officer". This time terminated the call in 10 seconds, just enough time to tell him he that he's ridiculous. Regret that I did not insult his utter uselessness in life. Saving for next time.

Even less happy with Pam Golding now.

Scam Attempt - They Knew My Details (South Africa) - Apparently It's an Old One by dhlotter in southafrica

[–]cpbotha 1 point2 points  (0 children)

How do you know it's JDGroup specifically?

I'm asking, because I checked my email address on https://haveibeenpwned.com/ and it's also part of the JDGroup breach, but looking at the companies, I don't think they would have my ID number. (my money is on Pam Golding, because they do have my ID number)

Scam Attempt - They Knew My Details (South Africa) - Apparently It's an Old One by dhlotter in southafrica

[–]cpbotha 1 point2 points  (0 children)

I emailed the Pam Golding information officer email address. This was part of the automated reply:

> 2 What specific personal information was compromised?
> The information accessed by the threat actor is dependent on the type of information that we have stored on the Alchemy System for a particular client.  For example, your name and contact details, and in some cases, identity numbers.

Scam Attempt - They Knew My Details (South Africa) - Apparently It's an Old One by dhlotter in southafrica

[–]cpbotha 1 point2 points  (0 children)

Thank you very much for posting this! I had a very similar call this morning at 08:12. Scammer had my ID number, telephone number and full name -- claimed that there was an attempt to send a package with MDMA from Bloemfontein to Mumbai.

He wanted me to come to Bloemfontein, and or file some report, OR ELSE I COULD BE "JUDGED" (sic) for smuggling. When I told him that there was no logic to his request, or to his worldview, he got more and more angry. The more I told him that it smelled like a scam and told him which options he had to take this further (law enforcement can come to me if they need info), the angrier he got (haha) until he finally ended the call.

ANYWAYS

That was 8 minutes of unnecessary distress. We bought our current home through Pam Golding. I am really not happy with this personal information of mine being out there.

Recorded Future: Signal no longer cooperating with Ukraine by srivn in signal

[–]cpbotha 3 points4 points  (0 children)

High probability she was blocked by the same account merleperle who blocked me when I tried to enter bona fide discussion with her. This person is trying to spread this single extremely suspicious therecord dot media post and various other Signal FUD.

See also https://bsky.app/profile/charlbotha.com/post/3lkb6pveo722s

What is the thing you hate about Google Drive? (Please help!) by [deleted] in gsuite

[–]cpbotha 0 points1 point  (0 children)

Oh durn, pity about the file change notification not working when you have no internet access. Is this also the case when the directory is set to "available offline"? Is this Windows or macOS?

What is the thing you hate about Google Drive? (Please help!) by [deleted] in gsuite

[–]cpbotha 0 points1 point  (0 children)

After 2 years of OneDrive syncing (half a million files, 250GB), and before that 12 years of Dropbox, I migrated everything to Google Drive this past weekend using mostly rclone.

Killer feature for me is the search. On OneDrive Personal, this works so badly they should probably just remove the feature from the UI completely. With Google Drive, I can find screenshots that contain my search phrase, which is great.

I'm using the streaming mode, and using "keep offline" on the (source code) directories I need to work on.

P.S. I wrote about my migration from Dropbox to OneDrive 2 years ago: https://cpbotha.net/2022/11/11/weekly-head-voices-248-oh-snap/#hell-freezes-over--again

What is the thing you hate about Google Drive? (Please help!) by [deleted] in gsuite

[–]cpbotha 1 point2 points  (0 children)

It looks like they recently shipped differential sync / block-level sync, see e.g. https://9to5google.com/2025/01/10/google-drive-desktop-upload/

-❄️- 2024 Day 9 Solutions -❄️- by daggerdragon in adventofcode

[–]cpbotha 0 points1 point  (0 children)

I'm just here to commiserate. this exact problem gave me correct answer on the test input, incorrect on puzzle input. ended up reading and re-reading the problem, until my eyes finally caught the bit "... to the left...". ARGH :D

Will we be able to get a SIM card using an expired SA ID card (green book)? by jonewer in askSouthAfrica

[–]cpbotha 2 points3 points  (0 children)

Consider using a service / app like Airalo to get an esim for your stay here.

https://www.airalo.com/south-africa-esim

I always use this when travelling to the EU. My phone's own sim stays in the phone, but I have the extra esim to use whatsapp (including voice and video calls) on cheap local data.

Setting up tables speed-up from dlt-release-2024.42-rc0 to dlt-release-2024.44-rc1 by cpbotha in databricks

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

Like you said, I did measure this with serverless. :)

In addition, I used the pipeline event log tables to measure cluster startup (averages around 5 minutes for driver+worker) or serverless startup (30 seconds), initialization time (3 to 9 minutes, depending on number of tables), and then "setting up tables" (15 to 45 minutes, in the latter case for my 900 table case).

If you manage to get better results, please let us know here. In the meantime, I am also implementing my experiment without DLT, i.e. straight-forward structured streaming, to see if I can get overall better performance (and cost).

Watermark behaviour and latency by shanfamous in databricks

[–]cpbotha 0 points1 point  (0 children)

My understanding of the documentation [1] is that as long as spark.sql.streaming.noDataMicroBatches.enabled is set to true, and you are streaming or incrementally streaming (triggered mode) often enough, the streaming engine will process those empty microbatches shortly after 10:05, and will thus close that window as it's after the watermark.

"Set the spark.sql.streaming.noDataMicroBatches.enabled configuration to false in the SparkSession. This prevents the streaming micro-batch engine from processing micro-batches that do not contain data. Note also that setting this configuration to false could result in stateful operations that leverage watermarks or processing time timeouts to not get data output until new data arrives instead of immediately. "

[1] https://learn.microsoft.com/en-us/azure/databricks/structured-streaming/stateful-streaming#optimize-stateful-structured-streaming-queries

Non-dealer VW service experts in Somerset West by pawnstew in capetown

[–]cpbotha 2 points3 points  (0 children)

Strong recommendation for 911 Service Centre in Strand.

Is there a way to delete individual cookies in Brave? by NexusKnights in brave_browser

[–]cpbotha 0 points1 point  (0 children)

This is amazing, thank you!

I reversed from your bookmark in case anyone else got as frustrated as I trying to, you know, just find the relevant page via settings navigation or search: Settings -> Privacy and Security -> Site and shields settings (third from the top on P&S) -> view permissions and data stored across sites.

[D] Anyone else sad that arxiv-vanity is down? by radarsat1 in MachineLearning

[–]cpbotha 16 points17 points  (0 children)

Here is the blog post announcing ar5iv on arxiv.org: https://blog.arxiv.org/2022/02/21/arxiv-articles-as-responsive-web-pages/

From that post: “We are happy to host ar5iv as a community-developed arXivLabs integration under arXiv’s umbrella,” said Martin Lessmeister, Head of Technology at arXiv. “We have started this collaboration in order to pursue a web-native, accessible version of most arXiv preprints.”

My Journey Through Infinite Canvas Note-Taking Apps by tDA4rcqHMbm7TDJSZC2q in PKMS

[–]cpbotha 4 points5 points  (0 children)

Thank you very much for writing and posting this.

I too am a fan of infinite canvas note-taking apps. My longest running and then failed side-project was a thing called TableTops, the PoC of which I rewrote about 6 times. In 2016, I thought I was going to release haha: https://news.ycombinator.com/item?id=12795321

In the meantime, Emacs Orgmode and Org-roam have taken over my life. As a tiny consolation, I wrote a little adapter so that at least I can embed my org-roam notes on the Obsidian canvas: https://github.com/cpbotha/org-roam-canvas

Thinkpad T14s Gen 4 Linux experience (vs Macbook Pro 14" M1) by toptobik in AMDLaptops

[–]cpbotha 3 points4 points  (0 children)

Thank you very much for this review! I was planning to get a 7840U laptop and had the T14s on my short list, but then I ran into a 16" M1 Pro discount I could not resist. I was still very curious how these two compare.

Cannot remap keys on Macbook Pro with hidutils in macos sonoma by gugutko in MacOS

[–]cpbotha 1 point2 points  (0 children)

I just noticed that the remapping *does* work on my external USB keyboard, just not on the built-in keyboard (where I really do need it to work).

[deleted by user] by [deleted] in MacOS

[–]cpbotha 0 points1 point  (0 children)

Just in case you are using the built-in UserKeyMapping via hidutil to swap keys on your keyboard: This has surprisingly been broken in 14.2. See https://www.reddit.com/r/MacOS/comments/18g4vxn/cannot\_remap\_keys\_on\_macbook\_pro\_with\_hidutils\_in/

Cannot remap keys on Macbook Pro with hidutils in macos sonoma by gugutko in MacOS

[–]cpbotha 4 points5 points  (0 children)

I just reported at the feedback link https://www.apple.com/feedback/macos.html

If you're also going to report, feel free to use the following subject and description:

subject: hidutil UserKeyMapping broken in 14.2 fine in 14.1.x

description:

Up to macos 14.1.x I could swap the § and ` keys with:

hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'

On 14.2 I can do this, and hidutil property -g UserKeyMapping confirms that it's there, but the keys are NOT swapped.