2012年7月18日 星期三

夜晚-慶幸我還幫的上忙(幫忙指路)


剛剛12點,在北車用弱弱的英文幫三個來自Korean的美麗空姐指路,她們不知道怎去旅館,後來溝通一下,也聯絡一下旅館那邊,確定好了送她們上計程車,應該是來這裡玩的吧!(我猜)

希望妳們有個美好了旅行(good luck for you , hope you have a wonderful trip.)

為什麼我知道她們是空姐(!?) 因為她要我把mail給她們,而她們也給我business card :P  哈哈

剛剛我好像腦袋當機一下,三個韓國女生,真的蠻cute的。

2012年7月7日 星期六

[vim] vimgrep 小記

plugin file here : http://www.vim.org/scripattenpts/script.php?script_id=311

take note:

1) vimgrep /匹配樣式/ **/*.py                     => 其中,**/代表當前目錄
2) copen(cope) 打開quick windows,可游標點過去編輯
3) ccl (cse) : close quick windows
4) cn : next result
5) cp : previous result

2012年7月6日 星期五

[ubuntu][wirelsee driver]MacPro

reference
http://pastebin.com/TyPB9sEh


file:
http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2

http://pkgs.fedoraproject.org/repo/pkgs/b43-fwcutter/b43-fwcutter-
015.tar.bz2/628e030565222a107bc40300313cbe76/b43-fwcutter-015.tar.bz2

http://www.lwfinger.com/b43-firmware/broadcom-wl-5.100.138.tar.bz2

2012年7月4日 星期三

[Android][筆記] Android Debug certificate expired

Build project error. Error log:

Debug certificate expired .

Solution:

砍掉 Debug 憑證讓 eclipse 自己再產生一份新的,重點是檔案路徑:
Windows 7: C:\Users\{username}\.android\debug.keystore
Mac OS and Unix家族: /home/{username}/.android/debug.keystore

2012年6月7日 星期四

[Linux program] 程序通訊

一般程序通訊有以下幾種:

1) 信號(Signal) : http://www.vr.ncue.edu.tw/esa/EmbeddedSystemProgramming2010/ch04.htm
2) Unix socket : http://www.vr.ncue.edu.tw/esa/EmbeddedSystemProgramming2010/ch07.htm
3) Socketpair
4) pipe : http://www.vr.ncue.edu.tw/esa/EmbeddedSystemProgramming2010/ch05.htm
5) 共享記憶體:
http://www.ibm.com/developerworks/cn/linux/l-ipc/part5/index1.html
http://www.ibm.com/developerworks/cn/linux/l-ipc/part5/index2.html
6) 信號量(semaphore)
7) 訊息佇列


2012年6月5日 星期二

[Shell Script]shell script attack

#! /bin/bash

echo "產生 hello.c file..."
echo
cat <<'EOF' > hello.c
#include <stdio.h>

int main()
{
        printf("hello world!\n");
        return 0;
}
EOF

echo "編譯hello.c ..."
echo
# 編譯hello.c,產生執行檔。
gcc -o hello hello.c

#若編譯成功,就執行
if [ $? -eq 0 ]; then
        echo "exec hello ..."
        echo
        ./hello
else
        echo 'compile error:hello.c'
fi



==================

原理是利用Here Document ,這就是shell script 攜帶攻擊程式的概念模型。

做一些事吧

--無下文--

2012年5月8日 星期二

Open Project

PCMan http://code.google.com/p/pcmanx-gtk2/

Linux command(持續更新)


Linux command(持續更新)

from http://catchtest.pixnet.net/blog/post/21677185

《 常用套件管理命令 》
1. apt-get update - 檢查套件是否有更新
2. apt-get install 套件名稱s - 安裝套件(可接複數個)
3. apt-get remove 套件名稱s - 移除套件
4. apt-cache search 套件名稱 - 搜尋套件
5. dpkg -l - 列出目前安裝所有套件
6. apt-get dist-upgrade - 將所有套件更新至最新版

check memory
-free

2011年12月8日 星期四

Create resource files by EN resource.

#!/usr/bin/perl
use File::Copy;

$sourcefile = "$ARGV[0]";

my @langArray = ("ar","cs","da","de","el","es-MX","es","fr","he","it","ja","ko","nl",
"no","pl","pt-BR","ru","sv","th","tr","zh-CN","zh-TW");
#print "$ARGV[0]\n";
if(!"$sourcefile")
{
    die "File name not allow empty!\n";
}else
{
    for($i=0; $i<=$#langArray; $i++) {
        copy("$sourcefile.resx","$sourcefile.$langArray[$i].resx") or die "copy file fail. (lang:$langArray[$i])\n";
        print "$sourcefile.$langArray[$i].resx created.\n";
        #print "$langArray[$i]\n";
    }  
}