Split one flac (+ cue) file into separate tracks (update: including embedded cue files) February 9, 2009
Posted by claudio in Desktop, Shell.Tags: flac, GNU/Linux, music
3 comments

You may have backupped your music cd’s using a single flac file instead of a file for each track. In case you need to split the cd-flac, do this:
Split the album flac file into separate tracks:
$ cuebreakpoints sample.cue | shnsplit -o flac sample.flac
Copy the flac tags (if present):
$ cuetag sample.cue split-track*.flac
The full howto can be found here (aidanjm).
Update (April 18th, 2009):
In case the cue file is not a separate file, but included in the flac file itself do this as the first step:
$ metaflac --show-tag=CUESHEET sample.flac | grep -v ^CUESHEET > sample.cue
(NB: The regular syntax is “metaflac –export-cuesheet-to=sample.cue sample.flac“, however often the cue file in embedded in a tag instead of the cuesheet block).
How to change the default shell editor in Ubuntu June 18, 2008
Posted by claudio in GNU/Linux, Shell.Tags: editor, Shell, Ubuntu, vi, vim
add a comment

Using nano as the default shell editor is probably a great choice for a Gnu/Linux distribution (also) aimed for Unix newbies. If you know your way on the command line however, you’ll scream from frustration for every “i”, “:wq!” or “ZZ” you type and you see the characters in the text you are editing. Specially frustrating in cron. If you don’t know what “i”, “:wq!” or “ZZ” do, don’t worry, nano is working fine for you. (more…)
Broadcom wifi (BCM4312) speedup to 54mbit/s on Ubuntu 8.04 on a HP nc6320 laptop [Now FIXED on Ubuntu] May 21, 2008
Posted by claudio in GNU/Linux, Hardware, Shell.Tags: bcm4312, bcm43xx, nc6320, ndiswrapper, Ubuntu, ubuntu bug, wifi
20 comments

EDIT May 27th 2008: FIXED how to make the changes permanent.
EDIT June 4th 2008: Don’t forget to install as well linux-ubuntu-modules (in this case linux-ubuntu-modules-2.6.22-14-generic) when upgrading your kernel.
EDIT Oct 16th 2008: The restricted driver included in Ubuntu has been FIXED and the card works out of the box when enabling it through System-Administration-Hardware Drivers. Thanks, Ubuntu!
It’s probably a regression: on this laptop the broadcom wifi worked fine on the previous Ubuntu releases (although limited to 24mbit/s) and now I see the speed is stuck to an unacceptable 1mbit/s. I guess that’s the price you pay for hardware from companies that are not open source friendly. (more…)
Netbeans 6.1 is out && rant! April 29, 2008
Posted by claudio in Java, Perl, Shell.Tags: netbeans, Perl
add a comment
I would have never guessed that one day I’d use Netbeans and like it. Netbeans is really a great IDE for java programming and make a lot of things really easy: db connections (mysql!), GUI graphical editor (aka Matisse) for Swing applications, Webstart (deploy your *desktop* apps from a website), jar creation including jar dependencies, webservices apis (Flickr!, Google, …), subversion support, etc, etc. Really a nice product that has improved a lot.
If only Netbeans would support perl and shell scripts (very important for sysadmins), it would become – at least for me – the IDE to rule them all. For now, I use Eclipse with the epic plugin for perl development (syntax checking, factoring, context assitance, debugging …), and the shelled plugin for shell scripts. Who knows what the future will bring, but working with two IDEs is kind of suboptimal…
EDIT: by now (november 2008) Netbeans 6.5 is out with improved SQL editing, a new PHP editor and beta Python support. A nice and huge step in the right direction, but still no Perl. The support of these similar dynamic languages make it obvious that a good base for dynamic languages entered the Netbeans archticture. Hopefully an implementation Perl will next in line…
Use external functions/modules in korn shell (ksh) August 7, 2007
Posted by claudio in GNU/Linux, General UNIX, Shell, Solaris.Tags: functions, ksh, modules, Programming, script, Shell, UNIX
1 comment so far
The korn shell is a great shell to write shell scripts. Some functionalities are really nice. By example, you can write your functions or modules in a separate file and use it within your program. The secret lies in the FPATH environment variable. (more…)









