Mar 14, 2013

10G 免費 copy 雲端空間無上限 (附自助方法)

Copy是一個新的雲端空間服務
一開始註冊就有5G的空間,利用以下連結註冊的話則可獲得10G的空間

copy的10G空間註冊連結

之後每推薦一個人則可獲得5G的空間,重點是沒有上限
這篇文章教大家如何快速自助推薦以獲取空間

1. 下載copy的桌面軟體
https://copy.com/install/windows/Copy.exe

2. 準備一個可以收信的信箱

3. 利用2的信箱,進入您的推薦連結註冊一個新的帳號

4. 之後就會收到認證信,點下去就對了

5. 開啟copy的桌面軟體並確認狀態為登出,再以新註冊的帳號登入即可

6. 5G的推薦空間到手

之後重複步驟2~5,即可快速地累積5G空間 ^^

如果這篇文章對您有幫助的話,麻煩您的主帳號用以下連結幫小弟增加空間
copy的10G空間註冊連結


PS: 會在我的文件下面產生很多Copy開頭的資料夾,刪掉就是了

Nov 8, 2012

Switch gcc version from 4.6 to 4.4

type gcc -v to show your current version
ex:

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

install gcc 4.4 related packages:

sudo apt-get install gcc-4.4 g++-4.4 gcc-4.4-multilib g++-4.4-multilib


switch to gcc 4.4:

$ sudo unlink /usr/bin/gcc
$ sudo ln -s /usr/bin/gcc-4.4 /usr/bin/gcc
$ sudo unlink /usr/bin/g++
$ sudo ln -s /usr/bin/g++-4.4 /usr/bin/g++


switch to gcc 4.6:

$ sudo unlink /usr/bin/gcc
$ sudo ln -s /usr/bin/gcc-4.6 /usr/bin/gcc
$ sudo unlink /usr/bin/g++
$ sudo ln -s /usr/bin/g++-4.6 /usr/bin/g++

Sep 22, 2012

ubuntu 12.04上安裝sun-java6-jdk

[method 1]
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:flexiondotorg/java
sudo apt-get update
sudo apt-get install sun-java6-bin

ps:
remove ppa: sudo add-apt-repository --remove ppa:flexiondotorg/java

Install Java JDK:
sudo apt-get install sun-java6-jdk

Install Java JRE:
sudo apt-get install sun-java6-jre

最後,可以執行 java -version 來查看目前java程式的版本

如果系統中,有不同的java程式版本,則可利用以下命令來改變java程式的版本:
update-alternatives --config java

[method 2]
sudo apt-get install synaptic
sudo synaptic
-> Search for the Sun JDK package
-> Mark the package for installation and apply changes

[method 3]
sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse"
sudo apt-get update
sudo apt-get install sun-java6-jdk

May 7, 2012

An android VNC server app

Android Market Link: http://goo.gl/fiOeA

Note: Your device need to be rooted before using this app.

This is a vnc server app created by me running on an Android device.
You can make a connection to the vnc server via PC/NB over WiFi network or USB cable connection. Also with the capability to let you remotely control your android device within your vnc client running on your PC/NB. Besides, you could turn off the feature of remote control to just demo something.

Main App Screen:

May 5, 2012

iPhone Coin Dozer 增加金幣之密技

Coin Dozer 是 iPhone 上的熱門推金幣的遊戲,不過金幣總是玩一下就沒有了,必須還要在等幾個小時後才有新的金幣可以玩。因此,這篇文章將教您如何快速增加金幣,要注意的是,iPhone 必須先 JB 過才能使用此密技。首先,打開 i-FunBox 軟體,找到 Coin Dozer 的安裝圖示

雙擊 Coin Dozer 的安裝圖示,可看到以下畫面

May 4, 2012

Android emulator 2.3/4.0/4.1 如何取得 root 權限

On the emulator provided with the SDK r10, you can get a root shell executing "adb shell" from your host computer. Once you have such root shell, you cat follow this steps to get a command that can log you as root from the terminal emulator:
# Remount /data to allow executables and setuids on it
mount -o remount,rw /dev/block/mtdblock1 /data

# There's no "cp" command on Android
cat /system/bin/sh > /data/su

# Give setuid permissions to the shell
chmod 7755 /data/su
Now, from the emulator, just run "/data/su" and that's it, you're root.
The normal "/system/xbin/su" command included in the SDK performs internal user id checks, so these commands...