兩年沒寫過blog, 就寫點甚麼, Hello world

用了七年的Wacom Intuos 2, 筆好像不行了,但是連繪皮也一起換好像太浪費
四處張鑼看看能否找到支Intuos2筆

Advertisements

終於還到張圖俾魚 |||

A useful reference

http://developer.apple.com/Mac/library/documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html#//apple_ref/doc/uid/TP40004265-SW1

I am programing an iphone game with facebook networking , a Chinese app, as the default locale of Facebook iphone API is EN, I have to change it.

1. find the line in the FBLoginDialog.m

static NSString* kLoginURL = @”http://www.facebook.com/login.php”;

change it to login page of hongkong

static NSString* kLoginURL = @”http://zh-hk.facebook.com/login.php”;

or whatever locale you want

2. login your application settings, change “language”

又在朋友的同人誌參一腳, 今次是列支及烏克蘭天地配(畫面屬開發中版本)

這為八模(惡搞o靚模, Hetalia的八位女角)系列的其中一張

其他的先賣個關子啦XD

原本是出本子, 可惜成為上班族的各位同伴沒人能趕及deadline

結果變成postcard啦(逃)

(本子該會在下次RG出現)

同場應該還有之前的列支發售

唔買都泥睇下

檔位: J7 523 World ,CW 29

詳情: http://www.cwhk.org/php2/CwCircleBook.php?apply_id=4346

Interesting game tutorials here

http://www.gotoandplay.it/_articles/

Interesting example here

http://flashscript.ca/set-registration-as3.php

A quite good open source flash video player

http://flowplayer.org/index.html

Doing this, you need as3 core library and specify the library path in  flash preference.
as3 code:
var jpgEncoder:JPGEncoder = new JPGEncoder(85);
var jpgStream:ByteArray = jpgEncoder.encode(bitmapData);
var header:URLRequestHeader = new URLRequestHeader(“Content-type”, “application/octet-stream”); //use binary mode
var jpgURLRequest:URLRequest = new URLRequest(“url.php?parameters…”);
jpgURLRequest.requestHeaders.push(header);
jpgURLRequest.method = URLRequestMethod.POST;
jpgURLRequest.data = jpgStream;
navigateToURL(jpgURLRequest, “_blank”);

var header:URLRequestHeader = new URLRequestHeader(“Content-type”, “application/octet-stream”); var jpgURLRequest:URLRequest = new URLRequest(“http://kurisi3.no-ip.org/test/storejpg/save_jpg.php?name=sketch.jpg”); jpgURLRequest.requestHeaders.push(header); jpgURLRequest.method = URLRequestMethod.POST; jpgURLRequest.data = jpgStream; navigateToURL(jpgURLRequest, “_blank”);

PHP code here

if (isset($GLOBALS[“HTTP_RAW_POST_DATA”]))

{

$fname = $_GET[“name”];

// get bytearray

$jpgData = $GLOBALS[“HTTP_RAW_POST_DATA”];

//save jpg file

$fp = fopen($fname,”w+”);

fwrite($fp, $jpgData);

fclose($fp);

// add headers for download dialog-box

header(‘Content-Type: image/jpeg’);

header(“Content-Disposition: attachment; filename=$fname”);

print $fname;

}

else print “no raw data received”;

Categories

Blog Stats

  • 24,916 hits

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5 other followers

Advertisements