Monday, February 17, 2014

Waldorf: Sound issue with Pulseaudio

While after watching YouTube video or video on VLC player, sound/audio starts jittering or stuttering. And the symptom goes away after rebooting the OS. Here is a solution that does not require you to restart your computer.
killall alsamixer && pulseaudio --kill && pulseaudio --start

Sunday, February 9, 2014

Waldorf: USB FAT32 "Daemon is Inhibited" error

1. Check the device
sudo fdisk -l
Disk /dev/sde: 31.7 GB, 31657558016 bytes
255 heads, 63 sectors/track, 3848 cylinders, total 61831168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1            8192    61831167    30911488    c  W95 FAT32 (LBA)
2. Create target mount point
sudo mkdir /mnt/fatty
3. Mount the USB drive onto /mnt/fatty
sudo mount /dev/sde1 /mnt/fatty

Tuesday, January 28, 2014

Linux ls with date & time format

ls -l --time-style="+%y%m%d %H:%M"
ls -l --time-style="+%y-%m-%d %H:%M"

Monday, January 20, 2014

#! Waldorf Wifi Reconnect

Everytime wifi signal is lost (walking away with laptop from the network router), I have to reboot the os to get wifi working again. It's annoying. Here is the command to restart network-manager.
sudo invoke-rc.d network-manager restart

Sunday, January 12, 2014

df fields re-ordered

To improve readability, moved the very long field to right most.
function df_h() {
  df -h | awk '{printf("%5s%5s%6s%5s %s\n",$2,$3,$4,$5,$1)}'
}
TODO allow df args to be passed in

Wednesday, November 27, 2013

Disable Intellij 12.1.6 ToolTips

Disable tooltips from file tabs and the rest.
sudo vi /usr/share/intellij/idea-IU-129.1359/bin/idea.sh
>IDE_JVM_ARGS="-Dide.tooltip.initialDelay=60000"
I wish I could only disable tooltips on file tabs. Oh well. reference

Friday, November 8, 2013

Clean Maven corrupted pom file

When there is a problem while downloading maven pom, pom file ends up contains html content instead pom . So, this is a command to delete all these pom files.
for f in $(grep "<html>" . -lIr); do rm ${f}; done
mvn clean install
Updated with -I flag to ignore binary files