Posts

Showing posts from April, 2009

[Linux]修改開機順序

先下指令: $ sudo gedit /boot/grub/menu.lst 修改裡面的default # You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. # WARNING: If you are using dmraid do not change this entry to 'saved' or your # array will desync and will not let you boot your system. default 0 變成 default 4

Create Folder

Linux: #include <sys/stat.h> #include <sys/types.h> int mkdir(const char *pathname, mode_t mode); Win32: #include <dir.h> int mkdir(char *path);

[Liunx] pthread

一個很不錯地pthread網站 http://www.yolinux.com/TUTORIALS/LinuxTutorialPosixThreads.html

[UPnP] Intel Digital Home Device Code Wizard

Image
功能強大的UPnP Developer,跨平台,並且可以在網路上抓別人的Device,製作網路上一樣的Device,目前Windows的版本還算穩,C code。 嘗試去修改Device Description,從code去修改很麻煩,因為它轉成16進位的編碼,必須要用 Wizard來修改比較快。

[Flash] Flash Socket II

之前說了Flash socket建立時需policy的認證,認證才可以溝通,後來發現,policy的socket認證完之後就會斷掉,並且建立新的socket。

[Flash] Flash Socket

C++ Socket與Flash socket溝通時需要加上pilocy認證。可參考: http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html#introduction 結尾需加上\0 需要將Sokcet純送的長度+1 strlen(buffer)+1