Remove all political headlines. Headlines that includes political figures, and celebrities who are active in politics such as Elon Musk should also be removed.
Monday, February 10, 2025
Using AI/LLM to Implement a News Headline Filter
Sunday, January 26, 2025
Upgrading from Fedora 40 to 41
Decided it's time to upgrade from Fedora 40 to 41 and it was a smooth upgrade. Will update if I run into any issues, but I've already been running 41 on a laptop for a couple of months so I know that 41 works for what I need and this time it was to upgrade systems that was already running an earlier version.
Wednesday, January 1, 2025
Powerline Error in VIM with Git
On Fedora 41, opening a Go file that is checked into Git results an error message that flashes briefly before VIM shows the file. I'm not sure what is the exact cause but it went away when I uninstalled powerline and reinstalled it. When uninstalling just powerline, it also uninstalled VIM for some reason the re-install was actually `dnf install vim powerline`.
Saturday, December 28, 2024
Framework 13 (AMD) First Impressions
I recently purchased a Framework 13 (AMD) laptop to replace my 7 years old Razer Stealth as my travel companion and wanted to share my first impressions after taking it on a trip and using it for about a month.
My main criteria for a travel laptop is that it must be light, but as I've gotten older I've added a few more things to look for:
- Display must support good scaling. As displays have improve their resolutions, everything shown has gotten smaller so I have to scale it up for it to be comfortable for my eyes.
- Replaceable battery. As evident from using my previous laptop for 7 years and still not feeling the need to upgrade, I tend to keep my laptop for a long time especially since I don't rely on my laptop to be my primary driver. While most parts of a laptop are capable of lasting awhile, batteries are a different story. I've had to replace the battery on my Razer twice because they started to swell. This is not exclusive to Razer as I've had it happen on Macbooks and Pixelbooks as well.
- Linux support. I mostly use Linux especially for development so I'm most comfortable with it, but I occasionally do have use for Windows (some games the family plays, camera apps, etc.). They key reason, though, is that Windows is commercial and I don't want to be forced to pay to upgrade if it is not necessary. The Razer Stealth ran Windows 10 and Microsoft says it's not compatible with Windows 11 so I either have to live without security updates or try to install Linux when Razer doesn't support Linux in anyway. Having good Linux support is a way to future proof the laptop somewhat.
First Impressions
System Configuration
- AMD Ryzen™ 5 7640U
- 2880x1920 120Hz 2.8K matte display
- Crucial RAM 32GB Kit (2x16GB) DDR5 5600MHz
- WD_BLACK 2TB SN850X NVMe SSD Solid State Drive - Gen4 PCIe, M.2 2280, Up to 7,300 MB/s
Monday, December 16, 2024
Using Physical Key for SSH, Git, Github For More Security
Normally, when using SSH (including SSH with Git), you generate a private and public key. The public key is what you give to others (e.g. Github). The private key should be kept secure and not be shared with anyone. I don't like keeping my private keys on my laptop because mobile devices have a higher chance of being lost, stolen, or unknowingly accessed. One solution is use a physical security key to store the private key that is plugged in to the laptop when needed.
To set this up requires having a security key such as the Yubikey from Yubico. Then it is a matter of generating a key pair with SSH:
> ssh-keygen -t ecdsa-sk # -t ed25519-sk is also an option but not always supportedThis will generate the private key on the security key. The generated id_ecdsa_sk file in the SSH directory is just a reference to the security key instead of the normal private key. The id_ecdsa_sk.pub is the public key that you would share. Whenever ssh needs to authenticate, the key will blink and with a tap of the key you'll be good to go!
For each computer that you want to use the key, you'll need to copy the reference key file to the SSH directory.
Friday, December 13, 2024
Installing Windows 11 without WIFI/Network Connection
When installing Windows 11, it assumes you have a network connection and doesn't let you proceed with the installation. To bypass this, press Shift+F10 to open a terminal and type:
oobe\bypassnroThe laptop will restart and when it reaches the network connection page there will be a new option for no network that will allow you to continue the installation.
Windows and Linux On a Single Drive and Installing Linux First
I previously posted on how to dual boot between Windows and Linux with each on them on separate disks, but what if you only had one storage device? This is also possible can be a bit more messy because Windows and Linux must share the same boot partition (the part of the storage with the instructions on how to boot the OS).
The common convention is the install Windows first and then install Linux. Windows has a "you don't need any other OS" mentality so when it gets installed it doesn't care if you have another OS, it will change the boot sequence to boot itself and you'll need to go into the UEFI menu to boot into Linux. Linux distributions, on the other hands, comes with a boot loader that offers a menu of all the OS so that you can choose which OS to boot. So the common convention is to
- Install Windows
- Resize the storage partition to make room for Linux to install.
- Install Linux
What you end up with is that when you boot up, you'll see the Linux boot manager with the options to pick either Linux or Windows.
What happens when you install Linux first and then Windows? Since Windows doesn't have a boot manager, it will just tell your system to boot directly into Windows. To restore the Linux boot manager on older systems (BIOS-based), you'll need to use your Linux recovery disk and restore the boot manager (Windows mostly likely did NOT delete your Linux disk unless you installed windows on top of where you installed Linux).
The general process is pretty similar:
- Create a partition for Linux and Windows (just like Windows create a new partition from an existing one later)
- Install Linux
- Install Windows
- Change the boot order back to Linux through the UEFI menu or efibootmgr tool (for UEFI systems) or use the Linux recovery disk (for BIOS)
On newer UEFI systems, the boot manager pointing to all the OS is still there in the boot partition but Windows only just changed it to boot its section. You can generally change this back by going into your motherboard's UEFI menu on or on Linux you can use the efibootmgr tool to make the change.
Changing Fedora's GRUB Menu's Resolution
After installing Fedora on a laptop with a 2256 x 1504 resolution screen, the GRUB boot menu screen became too small to read. To change the resolution, I needed to edit /etc/default/grub and replace the GRUB_TERMINAL_VALUE and add GRUB_GFXMODE with the desired resolution:
#GRUB_TERMINAL_OUTPUT="console" GRUB_TERMINAL_OUTPUT="gfxterm" GRUB_GFXMODE=800x600
> sudo grub2-mkconfig -o /boot/grub2/grub.cfgSunday, November 24, 2024
Determining Screw Length For Interior Walls
| Object Backing | Maximum Screw Length | 1" Into Stud |
| 0 | 1.75 | 1.5 |
| 0.25 | 2 | 1.75 |
| 0.5 | 2.25 | 2 |
| 0.75 | 2.5 | 2.25 |
| 1 | 2.75 | 2.5 |
| Drywall | 0.5 | |
| Stud | 1.25 |
Friday, November 8, 2024
Raspberry Pi Downloads Public Key
> gpg --keyserver hkps://keyserver.ubuntu.com --recv-key 54C3DD610D9D1B4AF82A37758738CD6B956F460C
> gpg --verify abc.xyz.sig abc.xyz
