blog

This blog is me talking about my stuff, what I do and from time to time, in order to improve the state of the internet and promote better content and google hits for other people, I will also post solutions to various other problems I’ve found.

Enjoy!

Clean Code - Chapter 2
23 January 2022

Introduction Clean Code, mostly authored by Robert C. Martin, aka Uncle Bob, has come up lately in discussions and apparently it is still being read. I haven’t read it and only read the responses about how bad it is and I’ve read that it’s pretty popular to hate on it and who am I to miss a trend. Join me as I read chapter to chapter and express my feelings and thoughts about each chapter.

Read the rest...

Restarting Alsa
23 July 2017

Sometimes after I wake up my computer after a hibernate I notice that sound is not playing. A simple fix for this seems to be to restart alsa:

$ pulseaudio -k && sudo alsa force-reload

Found on Stack overflow

I recently got a notice that my SSD C: drive was getting low on space and after a quick check with WinDirStat I noticed that spoitfy was filling it up with loads of weird files in the AppData\Local\Spotify\Data folder, even after I have moved my cache location. It turns out the “cached location” is only the saved playlists, and the Data folder is the cached songs that arent in a playlist.

Read the rest...

A better git log
22 February 2017

I’ve just changed my git log command from the standard: to the more compact and colorful: It’s simple to get this log. Just type in: $ git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit I guess that’s a bit too long, eh? Let’s just make an alias. Copy and paste the line below on your terminal: $ git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" And every time you need to see your log, just type in

Read the rest...

 #git  #code or (all)
Shoelacing
18 September 2016

I recently bought new shoes and needed to lace them, hence it’s time to google how to lace shoes again. Ians shoelace site is my favorite and I’ve been visiting it for what it seems like an eternity. I don’t know much about the competition, but I can’t find anything missing from it. It’s the best!

http://www.fieggen.com/shoelace/

I have tried using /proc/acpi/wakeup and I’ve tried looking in /sys/bus/usb/devices/SOMETHING/power/wakeup for devices that will wake up the computer, however I finally fixed my random wakeup problems with a tool called acpitool. It is really quite simple. First you need to install it, unless you already have it installed: $ sudo apt-get install acpitool Once it’s installed you can list what you can do with it, and to make it works.

Read the rest...