Skip to main content

Posts

Showing posts from August, 2012

How to fix: Glade failed to load MyWindow.ui. The following required catalogs are unavailable.

If you use quickly to create a project and try to open the .ui files with Glade without using the "quickly design" command. You may get an error like this: To set the search catalog used by Glade, use this: GLADE_CATALOG_SEARCH_PATH=./data/ui glade Replacing  "./data/ui " with the path that contains the Glade catalog files. Note: for gtk2 projects use "GLADE_CATALOG_PATH=./data/ui glade-gtk2" References: Quickly source file design.py located at /usr/share/quickly/templates/ubuntu-application

Easily convert a list of files from .wma to .mp3 in Ubuntu using bash and ffmpeg

Here's a simple one liner to convert all the .wma files in a folder to .mp3's.   Update! For a GUI way... check out   FormatJunkie . 1. Open a terminal (Ctrl+Alt+t) 2. cd to the folder containing the .wma files 3. Enter this: for f in *.wma;do ffmpeg -i "$f" -acodec libmp3lame -ab 192k -ac 2 -ar 48000 "$(echo $f| head -c -5).mp3";done 4. Press enter and let it go. 5. Cleanup ( Warning: this will delete the old .wma files so make sure you back them up if you need them! )  for f in *.wma;do rm "$f";done How does it work?  See:  http://labs.phurix.net/posts/how-to-bulk-convert-wma-to-mp3   http://www.cyberciti.biz/faq/bash-loop-over-file/ http://www.cyberciti.biz/faq/bash-remove-last-character-from-string-line-word/ http://penguinpetes.com/b2evo/index.php?p=215 Thanks!