23 December, 2008

metaflac - good tool for changing flac tags

following example adds cd cover art to your flac files:
find . -name "*.flac" -exec metaflac --import-picture-from {} \;

14 December, 2008

flac & crappy id3 tags

There are many music players which can normally play flac files. But in real life, those applications do not recognize some flacs. In most cases, the reason is very simple: this "not recognizable" flacs are containing additional id3 tags. Id3 tags are little bit different from vorbis tags that are used in flac files normally.
Fixing this kind of problems is quite simple by removing id3tags from flacs. It can be done with linux command line tool.
For example, following command finds all flac's from current directory (and subdirectories) and removes id3tags from them:
find . -name "*.flac" -exec id3v2 --delete-all {} \;

25 February, 2008

Adobe Air

1. Download free adobe Flex 3 SDK (http://www.adobe.com/products/flex/)

2. Extract and put bin directory into PATH

3. Create new file:

----- MyFirstAir-app.xml-------


<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://ns.adobe.com/air/application/1.0">
<id>eu.siilbek.janno.HelloWorld</id>
<version>0.1</version>
<filename>MyFirstAir</filename>
<initialWindow>
<content>MyFirstAir.swf</content>
<visible>true</visible>
<systemChrome>none</systemChrome>
<transparent>true</transparent>
<width>400</width>
<height>200</height>
</initialWindow>
</application>


4. Create new application file:

-----MyFirstAir.mxml----------
<?xml version="1.0"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" title="Hello World">
<mx:Style>
WindowedApplication
{
background-color:"0x999999";
background-alpha:"0.5";
}
</mx:Style>
<mx:Label text="Who is the bich now?" horizontalCenter="0" verticalCenter="0"/>
</mx:WindowedApplication>

5. Compile the stuff (this creates MyFirstAir.swf):

amxmlc MyFirstAir.mxml

6. Test it:
adl MyFirstAir-app.xml

7. And do the rest until you are bored. Only good reason for doing Air is that it looks "nice". Otherwise "USE JAVA"