Apr 29, 2012

Install Octave Plugin in Eclipse

It's been a very annoying thing since I started using Octave on Mac.
For no good editor was there for me to use.

At last I could not stand it any longer. So I did some search, and here is what I got:

    http://www.ibm.com/developerworks/opensource/tutorials/os-eclipse-octave/

Yes, you get it, right?

I get it right, and enjoy myself now.




Mar 13, 2012

Android Save to SD Card Setting and notes for the Market Upload setting

There is an option under the “Publishing options” area in your app's market "product details",
the devil's name is "Copy Protection"

Set it to “ON”, the app data surely won't be saved to sd card, even if you explicitly specify "android:installLocation="preferExternal"" in your manifest.

If you are trapped here with this like me, you'd be happy to read this.

Hope this helped.

Mar 11, 2012

Dreamweaver and Xcode and Developer Folder

The dreamweaver site-> mobile applications requires you set ios developer sdk path.

Since Xcode 4.3 removed Developer folder and put it under /Applications/Xcode.app/Contents/Developer.

I tried to make an alias to that folder , but it didn't work.

So just put the whole path in the settings, all shall be fine.

Thank you!

Install Adobe Air SDK on a Mac


1. Download sdk from here:
  • http://www.adobe.com/devnet/air/air-sdk-download.html
2. extract the downloaded file to a location, and here is mine:
  • /Users/chengyue/Documents/Software/Adobe/AirSDK/AdobeAIRSDK/
3. Add the "bin" folder under the AdobeAIRSDK to your mac's PATH.
  • export PATH=$PATH:/Users/chengyue/Documents/Software/Adobe/AirSDK/AdobeAIRSDK/bin
Now, try the following command to see if it works.
  • adt -version
If you followed the steps above, you should see the version displayed on your screen.
Not?go back and check!
4. if your don't want to execute the export command every time you restart your system, then create a .bash_profile under your home folder, mine is "/Users/chengyue/.bash_profile"
  • cd
  • vi .bash_profile
  • write down the command, save it and quit.
5. (optional) Shift to your terminal, and start a new shell, try "echo $PATH", you should see
the AdobeAIRSDK/bin in the output.

Congrats!

FYI, you can check the former answer to this problem from Adobe:

Jan 28, 2012

command used to check if processor is 64bit

grep --color=always -iw lm /proc/cpuinfo

Jun 25, 2011

apache and htaccess

1. in your Directory

DirectoryIndex index.php index.html
Options Indexes FollowSymLinks MultiViews
AllowOverride All ##### this should be All
Order allow,deny
allow from all


2. in your /var/www/xxx folder, add file .htaccess
Options +FollowSymLinks
IndexIgnore */*

RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php

Jun 11, 2011

Cocos2D Complete

■CCLabelTTF Font List:
  List of iOS Fonts available in iOS 3.1 and above
  • Family name: AppleGothic
  • Font name: AppleGothic
  • Family name: Hiragino Kaku Gothic ProN
  • Font name: HiraKakuProN-W6
  • Font name: HiraKakuProN-W3
  • Family name: Arial Unicode MS
  • Font name: ArialUnicodeMS
  • Family name: Heiti K
  • Font name: STHeitiK-Medium
  • Font name: STHeitiK-Light
  • Family name: DB LCD Temp
  • Font name: DBLCDTempBlack
  • Family name: Helvetica
  • Font name: Helvetica-Oblique
  • Font name: Helvetica-BoldOblique
  • Font name: Helvetica
  • Font name: Helvetica-Bold
  • Family name: Marker Felt
  • Font name: MarkerFelt-Thin
  • Family name: Times New Roman
  • Font name: TimesNewRomanPSMT
  • Font name: TimesNewRomanPS-BoldMT
  • Font name: TimesNewRomanPS-BoldItalicMT
  • Font name: TimesNewRomanPS-ItalicMT
  • Family name: Verdana
  • Font name: Verdana-Bold
  • Font name: Verdana-BoldItalic
  • Font name: Verdana
  • Font name: Verdana-Italic
  • Family name: Georgia
  • Font name: Georgia-Bold
  • Font name: Georgia
  • Font name: Georgia-BoldItalic
  • Font name: Georgia-Italic
  • Family name: Arial Rounded MT Bold
  • Font name: ArialRoundedMTBold
  • Family name: Trebuchet MS
  • Font name: TrebuchetMS-Italic
  • Font name: TrebuchetMS
  • Font name: Trebuchet-BoldItalic
  • Font name: TrebuchetMS-Bold
  • Family name: Heiti TC
  • Font name: STHeitiTC-Light
  • Font name: STHeitiTC-Medium
  • Family name: Geeza Pro
  • Font name: GeezaPro-Bold
  • Font name: GeezaPro
  • Family name: Courier
  • Font name: Courier
  • Font name: Courier-BoldOblique
  • Font name: Courier-Oblique
  • Font name: Courier-Bold
  • Family name: Arial
  • Font name: ArialMT
  • Font name: Arial-BoldMT
  • Font name: Arial-BoldItalicMT
  • Font name: Arial-ItalicMT
  • Family name: Heiti J
  • Font name: STHeitiJ-Medium
  • Font name: STHeitiJ-Light
  • Family name: Arial Hebrew
  • Font name: ArialHebrew
  • Font name: ArialHebrew-Bold
  • Family name: Courier New
  • Font name: CourierNewPS-BoldMT
  • Font name: CourierNewPS-ItalicMT
  • Font name: CourierNewPS-BoldItalicMT
  • Font name: CourierNewPSMT
  • Family name: Zapfino
  • Font name: Zapfino
  • Family name: American Typewriter
  • Font name: AmericanTypewriter
  • Font name: AmericanTypewriter-Bold
  • Family name: Heiti SC
  • Font name: STHeitiSC-Medium
  • Font name: STHeitiSC-Light
  • Family name: Helvetica Neue
  • Font name: HelveticaNeue
  • Font name: HelveticaNeue-Bold
  • Family name: Thonburi
  • Font name: Thonburi-Bold
  • Font name: Thonburi