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...
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...
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...
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...
Recursive search is the default in nautilus (search in subfolders), but I prefer type ahead search(only search in current folder).
This is easy to change, but not very obvious. In dconf-editor navigate to org > gnome > nautilus > preferences and set the enable-interactive-search value to what you’d like to use.
http://www.webupd8.org/2014/01/nautilus-type-ahead-find-feature.html
It turns out google has removed it from various links, so I don’t know how long this link will last, but here it goes:
http://www.blogger.com/revert-profile.g
Pretty simple but it took far too long to find it.
I like to view folders before my files with Files/Nautilus, and here is how to enable it :
In dconf-editor navigate to: org.gnome.nautilus.preferences key and set sort-directories-first to true.
After upgrading to Windows 10, my computer started randomly waking up. This extensive guide on superuser has proven time and time again to be a perfect guide to keep windows from waking up.