I’m switching from Neovim in the process of learning Golang, below is a great article on how to configure it for Go:
Category: Uncategorized
Installing Matlab on Archlinux
Download the Linux package from Mathworks.
- Before installing I’ve checked the Archlinux wiki:
https://wiki.archlinux.org/index.php/MATLAB
2. Just trying to execute the install script I was getting this error:
terminate called after throwing an instance of 'std::runtime_error' what(): Unable to launch the MATLABWindow application
3. I decided to install Matlab using the AUR package:
https://aur.archlinux.org/packages/matlab#comment-735882
4. Installed all dependencies from the AUR package
5. Still some problems…. So checking the comments from the AUR package, I found this comment:
While trying to install r2020a I had this error after executing ./install
:
terminate called after throwing an instance of 'std::runtime_error' what(): Unable to launch the MATLABWindow application
I solved this by installing libselinux
(in AUR).
For the record: I found the missing dependency by executing ./bin/glnxa64/MATLABWindow
.
Besides, it works without gtk2
(perhaps it now depends on gtk3
).
https://aur.archlinux.org/packages/matlab#comment-735882
6. After installing libselinux I could execute the install script.
Mutt
Improving Battery Life On Linux Laptops
Moving The Ctrl Key
Two years ago I spent some weeks debugging a VME bus VHDL core using a logic analyzer. Looking for the probes in the logic analyzer suitcase I found “Happy Hacking Keyboard Lite 2”. It makes sense to ship a logic analyzer with such a compact keyboard, and since I’ve used and I’m in love with the keyboard. There was only a “problem”, the Ctrl Key and Caps key were swapped. After a couples of ours I got used to typing with this layout. Since then anytime that I’m using a different keyboard, I swap immediately the keys:
Happy Hacking Keyboard Lite 2
http://ergoemacs.org/emacs/swap_CapsLock_Ctrl.html
/usr/bin/setxkbmap -option ctrl:swapcaps
If you want the changes persistent you can use xmodmap, it is an utility for modifying keymaps and pointer button mappings in Xorg. Here it is the .Xmodmap:
! Swap Caps_Lock and Control_L remove Lock = Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock keysym Caps_Lock = Control_L add Lock = Caps_Lock add Control = Control_L
I got the idea from this super user post
Yet, I should add a udev rule to swap the keys when I connect a keyboard to the laptop, I will post the rule and post
For Windows
Remap Caps-Lock key to Ctrl in Windows 7/8
- Press Windows key + R and type
regedit.exe
- Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
- Create new entry with type
Binary value
named:Scancode Map
- Modify value to:
02 00 00 00 1D 00 3A 00 00 00 00 00```
- Restart computer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00 |
https://www.lifewire.com/remap-keyboard-in-windows-10-5181178
I guarantee you this, if I do run, it wont be boring
Suspend the system when battery level drops
#vim /etc/udev/rules.d/99-lowbat.rules
# Suspend the system when battery level drops to 5% or lower SUBSYSTEM=="power_supply", ATTR{status}=="Discharging", ATTR{capacity}=="[0-5]", RUN+="/usr/bin/systemctl hibernate"
Inertia
Motörhead – Everything Löuder Than Everything Else
Godspeed Lemmy!
bradomyn’s dumping area
I’m going to use this blog as a dumping area for interesting articles, music clips or just linux tricks.