Friday, October 30, 2009

How to make forward-word, backward-word, treat underscore as part of a word?

This tip is via here. For MATLAB, the corresponding command is:
(modify-syntax-entry ?_ "w" matlab-mode-syntax-table)

Batch Conversion of Image Files

To convert eps files to png, one can use imagemagick's convert and the good old find along with the -exec option: find -name '*.eps' -exec convert {} {}.png \; However, there is an easier command: mogrify -format png *.eps will do the job more elegantly. Using the -path png will output the images in a folder named png instead of the current folder. Imagemagick has some other useful commands: - display : Displays the image - montage : Concatenates several images - animate : Animates several images man imagemagick for more.

Tuesday, October 27, 2009

Saturday, October 24, 2009

Flex ve Türkçe Karakterler

Flex uygulamanızı derlerken şuna benzer bir hata alıyorsanız bu sorun sisteminizdeki Türkçe ayarlarından kaynaklanmakta: Error: Could not resolve to a component implementation. Bunu düzeltmek için birkaç yol var: Windows'ta iseniz Flex SDK'nın bin klasöründeki jvm.config dosyasındaki java.args=-Xmx384m -Dsun.io.useCanonCaches=false satırını java.args=-Xmx384m -Duser.language=en -Duser.region=US -Dsun.io.useCanonCaches=false olarak değiştirin. Mac ya da Linux'ta ise mxmlc dosyasını bir metin düzenleyici ile açıp VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false" satırını VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.country=US" olarak değiştirin. Ayrıntılı bilgi: http://livedocs.adobe.com/flex/3/html/help.html?content=configuring_environment_3.html Flex Builder kullanıyorsanız, alternatif olarak FlexBuilder.ini dosyasına -Duser.language=en -Duser.location=us satırlarını ekleyebilirsiniz. Mac'te bu dosyayı bulmak için Flex Builder.app'e sağ tıklayın, Show Package Contents'i tıklayın, Contents>MacOS klasörüne gidin.

Monday, October 12, 2009

Currency Conversion in Google

Search for: 20 $ in lira Much more here.