2016-10-09

Scale CPU frequency

Required tools:
cpupower
And all that it needs.

Then the scaling policy can be changed by e.g.:
sudo cpupower frequency-set -g powersave
CPU speed governors are:
powersave
performance
ondemand
conservative

See the links below for more information.

What I installed to do that is:
sudo apt-get install linux-tools-generic linux-cloud-tools-generic
sudo apt-get install cpufrequtils
sudo apt-get install linux-tools-common
sudo apt-get install linux-tools-generic linux-cloud-tools-generic
sudo apt-get install linux-tools-4.2.0-35-generic linux-cloud-tools-4.2.0-35-generic

Sources:
https://wiki.archlinux.org/index.php/CPU_frequency_scaling#Scaling_governors
https://wiki.ubuntuusers.de/Prozessortaktung/

2016-10-03

Restart wireless on kubuntu

Sometimes on my laptop I cant get any wifi to work... then I have to:

sudo service network-manager restart

Easy jpeg compression from command line

An tool to easily compress jpegs to a target filesize is:

jpegoptim --size=250k tecmint.jpeg
If not installed, do this:

sudo apt-get install jpegoptim

Source:
http://www.tecmint.com/optimize-and-compress-jpeg-or-png-batch-images-linux-commandline/

2016-06-18

Resize VirtualBox images/discs

Is simple as

VBoxManage modifyhd "/Users/xxx/VBox VMs/Windows/Windows 7.vdi" --resize 32000

After that one has to use a partitioning tool in the VirtualBox Guest to adjust the main partition to fill the drive.

2015-04-19

Reloading the soundsystem

Reloading the soundsystem in unbuntu:

pulseaudio -k && sudo alsa force-reload

2014-11-01

Dealing with spaces in filenames

As I always forgot how to properly deal with it when scripting things -.-, here is one solution on how to deal with spaces in file names and processing it properly in a loop.

find . -print0 | while read -d $'\0' i; do mv "$i" ./; done

Source: http://www.cyberciti.biz/tips/handling-filenames-with-spaces-in-bash.html

2014-10-27

Fix/rescue broken video

To fix or at least do a partial rescue, one could try playing with this line:

mencoder -forceidx -oac copy -ovc copy /tmp/src.mp4 -o /tmp/dst.avi

2014-02-13

Free music for commercial use


Moving data from an old google sheet to a new google sheet


My original intend to use a new functionality in google sheets on a sheet I already created with the old version. As I already had a lot of content I didnt want to rewrite everything. And I only wanted to add a few formulas using "COUNTIFS". And copy pasting from the old to the new didnt work.

Here is what did work for me to convert from old google sheet to a new google sheet:
In a spreadsheet created in the old version, click the down arrow next to a sheet tab and click Copy to…, and copy the sheet (and its contents) to a spreadsheet created in the new version.

You may find other solutions here:
http://productforums.google.com/forum/#!topic/docs/2TNrpc9xExY

Also google needs some versioning because "old" and "new" are not the best keywords to search for.

Kubuntu 13.10: Network not working after sleep


Here is the fix that worked for me:
http://www.webupd8.org/2013/01/fix-wireless-or-wired-network-not.html