Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to the Power Users community on Codidact!

Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.

Activity for samcarter‭

Type On... Excerpt Status Date
Question Hide badge from Firefox extension icon
The default icon of the Tunnelbear Firefox extension looks like this: Icon of the Tunnelbear extension depicting an empty tunnel opening, overlaid by a large badge with the word "Off" I would like to hide the "Off" badge so that it looks like this: Icon of the Tunnelbear extension depicting ...
(more)
about 1 month ago
Answer A: Centre tick labels in mermaid/gantt diagram
As a quick and very dirty hack, one could stick some invisible characters, like em-spaces (U+2003), in front of the date. ```` ```mermaid gantt tickInterval 1day axisFormat                                    %d %b dateFormat DD-MM TUG :a2, 19-07, 3d ``` ```` (if your screen is ve...
(more)
3 months ago
Question Centre tick labels in mermaid/gantt diagram
I'm using the note taking app obsidian. In one of my notes I have a mermaid/gantt diagram which looks like this: Source code: ```` ```mermaid gantt tickInterval 1day axisFormat %d %b dateFormat DD-MM TUG :a2, 19-07, 3d ``` ```` Rendered result: gantt diagram of a three day e...
(more)
3 months ago
Answer A: Disable input sources pop-up in macOS 14
I finally found a solution thanks to @bogdanw at https://stackoverflow.com/a/77256214/2777074 The idea is to create a file called `UIKit.plist` with the content: ``` redesignedtextcursor Enabled ``` This file should then be placed in `/Library/Preferences/Featur...
(more)
7 months ago
Question Disable input sources pop-up in macOS 14
Since the update to macOS 14.0 Sonoma, I every now and then get the following pop-up while typing. At first it is just the blue circle with "US": Blue circle with the text "US" in it When I click on it, the white part with "DE" appears: A blue circle with "US" in it and a white ellipse with ...
(more)
7 months ago
Question Setting zoom level in Safari web apps
One of the new features of macOS 14 Sonoma are Safari web apps which allow to treat webpages like an application. Is there a way to set the zoom level persistently in such apps? I can zoom in and out via the menu and keyboard shortcuts, but once I quit the app and reopen it, it again shows as 100%...
(more)
7 months ago
Answer A: Converting pdf to png with sips on macOS 13.3.1 Ventura
The problem has been fixed in macOS 14.0. After upgrading to macOS Sonoma, one can again use `sips` to convert pdfs to pngs
(more)
7 months ago
Question Determine encoding of text
I have some text files which think they are encoded in utf8: ``` file test.txt test.txt: Unicode text, UTF-8 text, with CRLF line terminators ``` (https://github.com/samcarter/shared/blob/main/test.txt ) However if I look at their content, I think they might in reality have some other enc...
(more)
8 months ago
Question Userscript or -style to disable responsiveness of website
I like to arrange my browser on one site of my screen and have room for another application on the other half of the screen. This results in a width of my browser window of about 775 px. Many sites, Codidact included, will seriously squash their layout at such narrow widths, see e.g. the following...
(more)
9 months ago
Question Applications for "Edit Tags Ability"
At the moment it is not yet possible to gain the "Edits Tags Ability" naturally (making suggested edits, which is a requirement to gain this ability, has not yet been implemented, see https://meta.codidact.com/posts/279616 for details). Until suggesting tag edits gets implemented, I suggest that u...
(more)
10 months ago
Answer A: Add [windows-11] as a child of [windows] and add tag usage guidance
I updated the tag hierarchy (also for the `macOS` tags) and added the proposed usage guidance to the `windows` tag.
(more)
10 months ago
Question Hide server name tooltip on discord
If one hovers over a server name in discord, a speech bubble with the server name pops up: Screenshot of the discord server list with the tooltip bubble visible Is there any way to avoid this tooltip? Maybe a userscript or a user style? As this element is only visible on mouse hover, I'm having...
(more)
11 months ago
Answer A: Remove extension icon from Firefox url bar
TL;DR Turns out the correct name is ``` #pageAction-urlbar-metricationdeltamikecharlie { display: none !important; } ``` Long version: How to find the name? There is actually a nice guide at https://firefox-source-docs.mozilla.org/devtools-user/browsertoolbox/index.html To sum...
(more)
11 months ago
Question Remove extension icon from Firefox url bar
I'm using the firefox extension metrication. I only ever use it via its entry in the context menu, therefore I would like to remove its icon from the url bar to gain more space: screenshot of the firefox url bar with the icon of the metrication extension highlighted I tried the suggestion from ...
(more)
11 months ago
Answer A: Launching hidden application at login under macOS 13 Ventura
Another possible approach is to create a helper app which opens an app without opening a window. I used platypus to create a simple app which will execute a shell script. The settings used for the app were the following: Screenshot of the main Platypus window with "None" selected for the int...
(more)
about 1 year ago
Answer A: Launching hidden application at login under macOS 13 Ventura
Based on the post https://droidwin.com/how-to-hide-an-app-at-launch-on-mac-ventura/ an alternative approach could be to use a launch agent. To do this, create a file `vienna.LaunchAtLogin.plist` (replace `vienna` with the name of the application you'd like to start) and copy the following content ...
(more)
about 1 year ago
Question Launching hidden application at login under macOS 13 Ventura
Apple removed the `hide` option for login items in macOS 13 Ventura. Are there any alternative ways to launch an application at login without opening a window?
(more)
about 1 year ago
Question Converting pdf to png with sips on macOS 13.3.1 Ventura
With pervious versions of macOS, I used `sips` to convert pdfs into pngs ``` /usr/bin/sips -s format png document.pdf --out document.png ``` In macOS 13.3.1 Ventura, this now gives an error: ``` /Users//Desktop/document.pdf Error: Cannot extract image from file. /Users//Desktop/docume...
(more)
about 1 year ago
Answer A: Install Quarto extensions globally
This is probably not a lasting solution, but one can manually copy the individual folders of the extensions to ``` /share/extensions/quarto/ ``` Documents seem to be able to find them from there, but I doubt they will survive future updates. Update: Surprisingly, the added extension...
(more)
about 1 year ago
Answer A: Disable automatic tlmgr updates in Quarto
I didn't yet find a clean solution, but as a dirty hack one can edit the `quarto.js` file and change the line ``` ``` to ``` ``` (this obviously won't survive any updates to Quarto)
(more)
about 1 year ago
Question Disable automatic tlmgr updates in Quarto
Let's assume one has a Quarto document which does not compile because of an error in the latex code, e.g. here a simply typo in a macro name: ``` format: pdf test\newlin test ``` Quarto will first try to compile this document and when it notices the error it will then try to run `t...
(more)
about 1 year ago
Answer A: Circulate through spaces on macOS 11
Another approach is to use Karabiner-Elements. As a first step, I created to executable shell scripts, which will switch to the previous/next space using the handy tool SpaceInfo `Spaceprev`: ``` #!/bin/zsh export CurrentSpace=$(/Applications/SpaceInfo/SpaceInfo --active-space) export All...
(more)
about 1 year ago
Answer A: Circulate through spaces on macOS 11
One possibility is to use Hammerspoon with the following configuration: ``` hs.hotkey.bind({ "cmd" }, "Right", function() local NextSpace = 1 for k, v in pairs(hs.spaces.allSpaces()[hs.screen.mainScreen():getUUID()]) do if v == hs.spaces.focusedSpace() then NextSpa...
(more)
about 1 year ago
Question Circulate through spaces on macOS 11
Back in the days of OSX 10.6 Snow Leopard, one could circulate from the last space to the first space, e.g. if one was on the last space and used the keyboard shortcut to go to the next space, it would bring you to the first space. I asked a similar question for Mavericks at https://apple.stackexc...
(more)
about 1 year ago
Question Install Quarto extensions globally
Is there a way to install Quarto extensions globally? If I follow the installation instruction from https://quarto.org/docs/extensions/managing.html and e.g. use ``` quarto add quarto-ext/fontawesome ``` to install an extension, I have to do this from the same folder as my current project...
(more)
about 1 year ago
Question Do we want an update for our logo?
"Why an update?" you might ask. The current logo looks nice, but there are a couple of problems which could be solved with an updated logo: - Is the site name "Power User" or "Power Users"? - Is the mouse cursor in the Power User logo an accessibility problem? I doodeled around a bit and came...
(more)
about 1 year ago
Answer A: Programmatically changing the keyboard illumination in small steps
Instead of trying to build my own touch bar, I'm now using Karabiner Elements to remap the existing keys on the touchbar to the desired behaviour. The following configuration will remap the screen brightness, keyboard illumination and volume keys to change their settings in small increments: ``...
(more)
about 1 year ago
Answer A: How to make background transparent and trim to content
I don't know if or if not this is possible from within grafx2, but your manual workflow can be simplified dramatically by using image magick. The following command will do all your steps at once and reproducibly: ``` convert test.gif -transparent white -gravity south -chop x60 -trim output.png `...
(more)
over 1 year ago
Answer A: Permanently disable motivational messages and animations on duolingo.com
The problem is that these two settings are only stored in the local storage of the browser and not transmitted to duolingo. This means that when the local storage is cleared for some reason (for me, the local storage gets cleared when restarting the firefox), these settings are lost. As a workarou...
(more)
over 1 year ago
Question Permanently disable motivational messages and animations on duolingo.com
I'm using firefox to access duolingo. The website offers settings to disable motivational messages and animations. However the settings frequently turn themselves back on automatically. screenshot of the duolingo preferences Is there a way to permanently switch them off? Maybe with a user scrip...
(more)
over 1 year ago
Answer A: Is the mouse cursor in the Power User logo an accessibility problem?
Not really an accessibility issue, but this mouse pointer confused me to no end. I'm using macOS and this pointer looks exactly like my actual mouse pointer. I can't count how often I was looking for my mouse on the screen and wondering why it wouldn't move... My current workaround is to block t...
(more)
over 1 year ago
Question Adding option to pandoc call from RStudio
If ones uses RStudio to convert a rmarkdown file to pdf, RStudio will call pandoc with arguments like this: ``` /opt/homebrew/bin/pandoc +RTS -K512m -RTS Untitled.knit.md --to beamer --from markdown+autolinkbareuris+texmathsinglebackslash --output Untitled.tex --lua-filter /Library/Frameworks/R.f...
(more)
over 1 year ago
Answer A: Setting a cookie with a userscript
@Canina had the brilliant idea to make my userscript reload the page in case the cookie did not exist previously. Using this idea, my userscript now works like this: Greasemonkey version ``` // ==UserScript== // @name test // @match ://example.com/ // @run-at documen...
(more)
over 1 year ago
Question Setting a cookie with a userscript
Background: I'm using a websites which uses a pin code locally stored in a cookie for login. As firefox does not recognise the field to input the pin as a password field, it won't store the password for me. To avoid having to remember the pin myself, I'm using a greasemonkey user script to aut...
(more)
over 1 year ago
Answer A: Why did samcarter delete my post, simply because later other websites cross posted it?
I deleted the post because it was verbatim the same post as on several other sites, in particular it has been cross posted on - https://www.reddit.com/r/teamviewer/comments/xr2row/afterdisablingpasswordsonremoteteamviewer/ - https://www.reddit.com/r/teamviewer/comments/xr3e3v/afterdisablingpassw...
(more)
over 1 year ago
Answer A: Move folder one level up on Thunderbird
You can drag & drop the folder into the parent folder:
(more)
over 1 year ago
Answer A: How to add vertical line in the middle of two marks on image
If you have access to the source of the image, fix the code instead of messing with the image. This will be much more accurate and result in a higher quality result. You could add the lines via latex (texlive is available via the usual linux package managers, but is often already installed b...
(more)
almost 2 years ago
Answer A: Using "Print using system dialogue" as default in Firefox
Good news! With Firefox Nightly 102.0a1 there is now an option in `about:config` called print.prefersystemdialog If this is set to true, the system print dialogue will be used automatically.
(more)
almost 2 years ago
Answer A: Please don't presume cross posting from me.
The url might not have been the best one to pick, but given that the question is verbatim the same as on other Q&A sites, I still think the presumption of a x-post is not so far fetched... Comparison of the questions on codidact and superuser There are several problem with these types of x-post...
(more)
about 2 years ago
Question Using "Print using system dialogue" as default in Firefox
I'd like Firefox to automatically use the "Print using the system dialogue" setting: Screenshot of the Firefox print dialogue In older versions, I could use ``` print.tabmodal.enabled = false ``` in `about:config` to automatically get the normal system print dialogue, but this op...
(more)
about 2 years ago
Question All file types associated with an application
How can I get a list of all file types for which a certain application is the default program? I know that I can get a list of all file types an application is capable of opening from the `info.plist`, but this also includes lots of file types, which have other default applications. (My operati...
(more)
about 2 years ago
Answer A: Activate `Prefer tabs when opening documents` only for one application
The setting can be changed on a per application basis with ``` defaults write -app terminal AppleWindowTabbingMode -string always ``` (replace `terminal` with the name of the app you want to change) Important: this only works if the application in question is not running. This is a bit tric...
(more)
about 2 years ago
Question Activate `Prefer tabs when opening documents` only for one application
In macOS 11.6, I can go to `System Preferences->General` and activate the `Prefer tabs when opening documents` option so that new windows are opened as new tabs. This setting will influence many applications e.g. Mail, Terminal, Finder etc. Screenshot of general settings with the `prefer tabs whe...
(more)
about 2 years ago
Question Case independent tab completion in zsh shell
I'm using a zsh shell with ``` zstyle ':completion:' matcher-list 'm:{a-z}={A-Za-z}' autoload -Uz compinit && compinit ``` to allow tab completion regardless of capitalisation, e.g. `cd desk` will be completed to `cd Desktop` However using `autoload -Uz compinit && compinit` has a strange...
(more)
about 2 years ago
Answer A: Get unique list of all files in a git repository, which I modified
One can use `sort -u` to eliminate the duplicate entries and create a unique list: ``` git whatchanged --author=samcarter --no-commit-id --name-only | sort -u ```
(more)
about 2 years ago
Question Get unique list of all files in a git repository, which I modified
I would like to get a list of all the files in a git repository which I modified. Take for example the repository https://github.com/josephwright/beamer . I tried the command ``` git whatchanged --author=samcarter --no-commit-id --name-only ``` but the resulting list does have tons of dup...
(more)
about 2 years ago
Answer A: Wasn't this deleted question salvageable?
> but isn't deletion overkill? As explained in comments, I deleted the post because the text is verbatim copied from two posts, which were published under the cc by-sa license, but you did not include the necessary attribution and you confirmed in comments that you are also not the author of thes...
(more)
about 2 years ago
Question Change colour of search markers in firefox scroll bar
The markings for search results in the firefox scrollbar are pink by default (requires "Highlight All" to be selected): Screenshot of scroll bar Is there any code I can plug into a `userChrome.css` file or similar to change this colour?
(more)
over 2 years ago
Answer A: Clean up firefox's new tab page in private mode
Adding the following code block to one's `userContent.css` file will remove the clutter: ``` / removing clutter from new tab / @-moz-document url("about:privatebrowsing") { .promo { display: none !important; } .info { display: none !important; } .logo-and-w...
(more)
over 2 years ago
Question Clean up firefox's new tab page in private mode
By default, the new tab page in Firefox has a lot of clutter in private mode. How to remove all this clutter?
(more)
over 2 years ago