Posted by jpluimers on 2023/03/15
Yup, web browser bookmarklets, though hardly published about any more, I still like them (and wrote about them before). With a little bit, usually unreadable, JavaScript, they can add magical functionality to your browser.
So here are some links on Twitter related bookmarklets:
- [Wayback/Archive] Send to Twitter Bookmarklet (uses document.title and URL as content) with this URI:
javascript:location.href='http://twitter.com/share?url='+encodeURIComponent(window.location.href)+'&text='+encodeURIComponent(document.title)
which I reworked into:
javascript:window.open('http://twitter.com/share?url='+encodeURIComponent(window.location.href)+'&text='+encodeURIComponent(document.title))
- These are all from the same author:
All code from the above links seemed to give corrupted tweets, which I thought was because of quote beautification, but was just me doing the whitespace removal wrong.
This is the right one:
javascript:(function(){n=getSelection().anchorNode;if(!n){t=document.title;}else{t=n.nodeType===3?n.data:n.innerText;}t='“'+t.trim()+'”\n\n';window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(t)}${document.location.href}`)})();
which I reworked using «» quotes into:
javascript:(function(){n=getSelection().anchorNode;if(!n){t=document.title;}else{t=n.nodeType===3?n.data:n.innerText;}t='«'+t.trim()+'»\n\n';window.open(`https://twitter.com/intent/tweet?url=${document.location.href}&text=${encodeURIComponent(t)}`)})();
All via [Wayback/Archive] twitter bookmarklet – Google Search.
–jeroen
Posted in Bookmarklet, Development, JavaScript/ECMAScript, Power User, Scripting, Software Development, Web Browsers, Web Development | Leave a Comment »
Posted by jpluimers on 2023/03/14
I need to try [Wayback/Archive] Live Share – Visual Studio Marketplace and get a feel for how it is to live share code: is it a way of working that fits me well?
This installs Live Share for Visual Studio Code:
code --install-extension MS-vsliveshare.vsliveshare
code --install-extension MS-vsliveshare.vsliveshare-pack
The second extension is for [Wayback/Archive] Live Share Extension Pack – Visual Studio Marketplace, which got released about a year after the first one.
Live Share was introduced in 2017, a period when most of my work was outside the Visual Studio realm, Visual Studio Code was just starting to gain momentum over Atom (which was mul multi-platform editor of choice back then; I wrote about it in a few blog posts), and my then main development environment did not allow live sharing at all. so I missed all this (:
For my reading list:
Uses search queries:
- [Wayback/Archive] markdown online co-editing – Google Search
- [Wayback/Archive] visual studio code collaborative editing – Google Search
- [Wayback/Archive] vscode live share – Google Search
The first query was my initial goal to accomplish, but I rather have the markdown files available off-line, so these did not help:
–jeroen
Posted in atom editor, Development, Power User, Software Development, Text Editors, vscode Visual Studio Code | Leave a Comment »
Posted by jpluimers on 2023/03/13
The links found via [Wayback/Archive] macos kernel_task high cpu dual screen – Google Search were daunting.
In the end, the issue ways way easier to fix than I thought: open up your Intel MacBook (you need pentalobe screwdrivers for that), then with some compressed air, clean the dust (especially from the fans).
This post saved my day [Wayback/Archive] kernel_task takes up 500% of my CPU when plugging in external monitor – MacBook Pro 15″ Retina Display Mid 2015 – iFixit
Things I haven’t tried yet:
- Cleaning out more free space from HDD
- Using plain HDMI cable into the HDMI cable port
- Taking MBP apart and cleaning any potential dust
…

I faced the very same issue that you guys are facing and based on input from another forum decided to get my 2016 MPB fans cleaned out.
This made an immediate impact where when I connected my external display to the MBP.pre-cleaning, it would overheat causing the fans to spin at 6000 rpm or thereabout and the kernel_task would eat up 500%-900% of the CPU rending the system unusable.
This simple cleanup of the fans has allowed me to connect the monitor with no kernel panic anymore and even though the fans run around 5000 rpm now the CPU and GPU are running around 10 degrees cooler now.
The same picture is in [Wayback/Archive] macos – MacBook Pro high CPU with external monitors – Ask Different.
An even dirtier MacBook was at [Wayback/Archive] External Display – High CPU Usage – MacBo… – Apple Community.
Links that were interesting but unhelpful:
–jeroen
Read the rest of this entry »
Posted in Apple, Mac, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, Power User | Leave a Comment »
Posted by jpluimers on 2023/03/09
From an interesting thread where Iris Classon had laptop overheating problems (just like I had with a 2015 Retin MacBook Pro in Cleaning the cooling fans of a 15-inch Retina MacBook Pro 2015 model):
My tray is from the lid of a broken container.
I love repurposing the remains of old household items..
The actual problem: dust, just like my MacBook had.


Read the rest of this entry »
Posted in Development, DIY, Hardware Development, LifeHacker, Power User | Leave a Comment »
Posted by jpluimers on 2023/03/08
This revealed so much pain: [Wayback] gist include image in markdown in current directory – Google Search
I wished that – like in the past – it would work just like in a normal github hosted git repository: [Wayback/Archive] How do I display local image in markdown? – Stack Overflow.
The core problem is that though a gist underneath is a git repository, it is rendered in a way that is different than a github repository is rendered, and that way of rendering has changed over the years effectively making it difficult to embed a picture. When you do embed an image requires the uuid/guid of the raw image URL to be included in the markdown, unlike with a regular repository hosted on github.
That is so much pain that I decided to not host documentation in gists any more.
A bit of the pain:
This is an example gist where I tried to host an image: [Wayback/Archive] Windows 7 with PowerShell v2 fails to upgrade to PowerShell v3 through chocolatey: You must provide a value expression on the right-hand side of the '-' operator.
That gist was prelude to my post Chocolatey on Windows 7: “You must provide a value expression on the right-hand side of the ‘-‘ operator.”.
–jeroen
Posted in Development, DVCS - Distributed Version Control, gist, git, GitHub, Lightweight markup language, MarkDown, Software Development, Source Code Management | Leave a Comment »
Posted by jpluimers on 2023/03/07
A long time ago, on just one system, I forgot which one, I needed explicit [Wayback/Archive] linux – Newline-separated xargs – Server Fault.
The simple solution was to replace the newline with null before running xargs:
tr '\n' '\0'
The clean solution was to install [Wayback/Archive] gnu xargs:
GNU xargs (default on Linux; install findutils from MacPorts on OS X to get it) supports [Wayback/Archive] -d which lets you specify a custom delimiter for input, so you can do
ls *foo | xargs -d '\n' -P4 foo
–jeroen
Posted in *nix, *nix-tools, bash, Development, Power User, Scripting, Software Development, xargs | Leave a Comment »
Posted by jpluimers on 2023/03/06
I was not aware you could this: [WayBack] UniFi – Install a UniFi Cloud Controller on Amazon Web Services – Ubiquiti Networks Support and Help Center
Giving it a bit more thought, I’m not sure I would want this, as it would presume you have an internet connection that is up on the WAN side.
You’d need this before installing any of your Unify equiment, even when installing your first Unify router, which would mean a chicken and egg problem.
Also it would mean you can only use the cloud key when the WAN is down, you cannot use the cloud-key, not even locally.
–jeroen
Posted in Cloud Key, Network-and-equipment, Power User, Unifi-Ubiquiti | Leave a Comment »
Posted by jpluimers on 2023/03/04
Be weird, be happy, be proud!
Today is already the 3rd edition of what in 2021 was announced as [Wayback/Archive] Weird Pride Day. The first ever Weird Pride Day is this… | by Oolong | Medium
The first ever Weird Pride Day was on the 4th of March, 2021, and the second is on the 4th of March, 2022.
This is a day for people to embrace their weirdness, and reject the stigma associated being weird. To publicly express pride in the things that make us weird, and to celebrate the diversity of humankind.
Many people need desperately to receive this message: ‘I feel and think much as you do, care about many of the things you care about, although most people do not care about them. You are not alone.’
– Kurt Vonnegut, Timequake
…
Be safe, be kind, be weird.
Share your Weird Pride Day posts with the hashtag #WeirdPride and/or #WeirdPrideDay, and on the Facebook event….
–jeroen
Posted in Awareness, Inclusion / inclusive society | Leave a Comment »