It’s quite simple to do but surprisingly hard to find. Mixed files and folders confuse me. They seem disorganized.
Archive for Linux
To resolve the weird “ERROR: Missing required OpenGL extensions,” set the environment variable
An alternative, more permanent solution consists of isntalling
sudo apt install libtxc-dxtn-s2tc
Thanks to the game’s forum.
It’s quite simple. Open Settings → Window Manager → Keyboard. Then find the various “Tile window to the…” options. Finally, pick your desired keys.
You can’t make it function quite as smoothly as in Windows 10, but it certainly helps.
Of course you can also just drag the window against the side of the screen with the mouse. But sometimes the keyboard is faster.
gnome-keyring you won’t get a useful error message. If you uninstall it, you’ll get the real culprit right where it matters, but in retrospect
ssh-add gives you the same error message:
$ git pull upstream master @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '/home/frans/.ssh/id_rsa' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/home/frans/.ssh/id_rsa": bad permissions email@example.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
That means something like this, or maybe just read:
So much for the GitHub help. 🙂
It’s in the docs, but I’m always losing it. So here’s a quick overview of some of the ones that are more important to me.
|Android version||API level|
|Android 4.0.3, 4.0.4||15|
|Android 4.0, 4.0.1, 4.0.2||14|
Half a decade ago I neglected to jot this down, so I had to figure it out again. Just in case someone landed here searching for the most basic R problem, you start the program using uppercase
R, not lowercase
r. Anyway, to work with a package in a git repository or some such the easiest method is the devtools package.
install.packages('devtools') library(devtools) load_all()
Without any parameters, the load_all() function from devtools loads the current directory without installing. You could effect the same with more keystrokes using
load_all('./'), and of course you can pass any path instead of relying on the current working directory. But in combination with git I find it easiest to just stick with that. After you’ve made some changes in the source, just run
Wait, what? You heard me. On Windows you can set sample rates per sound card. It looks like this.
In PulseAudio you’re limited to a primary and secondary sample rate. I’ve actually been using
pasuspender more, also because its AC3 passthrough never seemed to work.
I have plenty of RAM and a UHD monitor, but Evince sees it fit to limit zoom to under 200% in many a newspaper-sized document.
# get current cache size (defaults to 50?) $ gsettings get org.gnome.Evince page-cache-size uint32 50 # set it to something more reasonable like 500 $ gsettings set org.gnome.Evince page-cache-size 500
In smaller documents this makes pretty much the entire document exist in RAM, which eliminates loading nonsense while going back and forth in a document. Overall, a much smoother experience.
I understand the reason for the hard-coded default limit, but I have to wonder if there isn’t a more dynamic way of handling this. Say, either 50 MB or 2% of total memory.
Thunar is one of the best graphical file managers I’ve used, and I say that even while I own a Directory Opus license for Windows. I have some minor quibbles like very sparsely populated default actions on files and folders, but the biggest flaw is doubtless that the breadcrumb navigation doesn’t feature all of the regular folder interactions. In any case, in this blog post I intend to show how I improve on both Thunar and GNOME Search in one fell swoop.
I’ll start with a screenshot of the desired end result. You right click on a folder, and you’re presented with the option to search for files in it.
In order to add this custom action, you’ll have to configure custom actions.
Then you click + to add a new one, or you can edit an existing action.
You can type the name that will show up in the context menu, a little description for yourself, choose a fancy icon, and under appearance conditions you can choose whether this custom action applies to a specific type of files or folders. Unfortunately this dialog can’t be resized, but since you can copy and paste it’s not too bad.
gnome-search-tool --path=%f --contains=
Finally, here is the result. Note that since I started gnome-search-tool with
--contains=, the option to search for files containing specific text will show by default.
You can perform similar tricks with any of these other options.
$ gnome-search-tool --help Usage: gnome-search-tool [OPTION...] - the GNOME Search Tool Help Options: -h, --help Show help options --help-all Show all help options --help-gtk Show GTK+ Options --help-sm-client Show session management options Application Options: --version Show version of the application --named=STRING Set the text of "Name contains" search option --path=PATH Set the tet of "Look in folder" search option --sortby=VALUE Sort files by one of the following: name, folder, size, type, or date --descending Set sort order to descending, the default is ascending --start Automatically start a search --contains=STRING Select and set the "Contains the text" search option --mtimeless=DAYS Select and set the "Date modified less than" search option --mtimemore=DAYS Select and set the "Date modified more than" search option --sizemore=KILOBYTES Select and set the "Size at least" search option --sizeless=KILOBYTES Select and set the "Size at most" search option --empty Select the "File is empty" search option --user=USER Select and set the "Owned by user" search option --group=GROUP Select and set the "Owned by group" search option --nouser Select the "Owner is unrecognized" search option --notnamed=STRING Select and set the "Name does not contain" search option --regex=PATTERN Select and set the "Name matches regular expression" search option --hidden Select the "Show hidden and backup files" search option --follow Select the "Follow symbolic links" search option --mounts Select the "Exclude other filesystems" search option --display=DISPLAY X display to use
Also see Finding Files on the Ubuntu wiki.
As another addendum to my notes on image optimization, here is how to cut a piece of audio or video as losslessly as possible with just ffmpeg on the commandline.
In this example we want the piece of audio from
fmpeg -ss "1:30" -i audio-full.m4a -c copy -t "2:00" audio-cut.m4a