Friday, August 3, 2012

Windows 7 CD Key

Windows 7 Ultimate Retail Key
J783Y-JKQWR-677Q8-KCXTF-BHWGC
C4M9W-WPRDG-QBB3F-VM9K8-KDQ9Y
2VCGQ-BRVJ4-2HGJ2-K36X9-J66JG
MGX79-TPQB9-KQ248-KXR2V-DHRTD
FJHWT-KDGHY-K2384-93CT7-323RC
THHH2-RKK9T-FX6HM-QXT86-MGBCP
KH2J9-PC326-T44D4-39H6V-TVPBY
D8BMB-BVGMF-M9PTV-HWDQW-HPCXX
TFP9Y-VCY3P-VVH3T-8XXCC-MF4YK

Windows 7 Professional Retail Key
HWRFF-2FFYX-XFXP2-DYFC3-BX3B7
YT9K9-4R938-3TVXX-3Q3QT-9HBXM
C3X7Y-R6WWH-BRXRD-FY84C-FXWHK
XJBR4-M42Q4-QPJ9C-BRDRJ-KHPVY
TF3Q7-YYP8R-D78R7-W9Q9M-DXVBK
J8D39-J2WM3-6368H-JV8G9-BYJJQ
P3H89-V3P2R-JVBTF-YM2J2-FTMT3
RGM4T-3VT6B-GTYPY-3FHP2-HV2YJ
TTY4D-RDKK9-TYB2T-68WJW-M69KJ

Windows 7 Home Premium Retail Key
PPBK3-M92CH-MRR9X-34Y9P-7CH2F
Q8JXJ-8HDJR-X4PXM-PW99R-KTJ3H
8489X-THF3D-BDJQR-D27PH-PJ3HC
TWF78-W7H8T-KXD8C-YDFCQ-HK4WG
BFTWY-X2PJR-VJP8V-KGBPJ-FWBMP
RHVHB-VYF67-9FT4M-2WXR8-P3C6R
38CGD-Q6RHB-37BVW-Y3XK7-3CJVC
86GG2-DBVT6-KYQQ6-XFK9R-896MF
4CBPF-W7GXG-J4J8F-GHG79-Q9YT8

Windows 7 Home Basic Retail Key
P4DBR-8YPT6-KHRB8-6T7RW-GMXGV
FGTCF-8JBG2-4BK4G-36JWB-PFQXB
CW4KD-MK47X-JYQ7Y-DKKTR-86TH7
37X8Q-CJ46F-RB8XP-GJ6RK-RHYT7
GDK6B-87QP9-F9WYK-PP327-BQ622
72C8D-KQ9Y4-FGBCD-WY9WG-BD92C
GV7X4-92M4D-6F69V-RFGP9-3FBBD
4JCWB-FVHJJ-XCPKC-CTWDP-QQQ9M
WXM3Y-H2GDY-TKFQH-6GQQF-7VG8P

Thursday, June 28, 2012

How to compile GCC 4.6.3 on Mac OS X

(1) Download Source Code and untar
mkdir -p gcc463
cd gcc463

#get the source
curl -O ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-4.3.2.tar.bz2
curl -O ftp://gcc.gnu.org/pub/gcc/infrastructure/mpc-0.8.1.tar.gz
curl -O ftp://gcc.gnu.org/pub/gcc/infrastructure/mpfr-2.4.2.tar.bz2
curl -O http://ftp.gnu.org/gnu/gcc/gcc-4.6.3/gcc-4.6.3.tar.bz2

#untar
tar xjf gmp-4.3.2.tar.bz2
tar xjf mpfr-2.4.2.tar.bz2
tar xzf mpc-0.8.1.tar.gz
tar xjf gcc-4.6.3.tar.bz2


(2) Build it
buildgcc463.sh    Select all
#!/bin/bash export CXX=/usr/bin/g++ export CC=/usr/bin/gcc export CPP=/usr/bin/cpp export LD=/usr/bin/ld export RANLIB=/usr/bin/ranlib export AS=/usr/bin/as export AR=/usr/bin/ar GMP="`pwd`/gmp-4.3.2" MPFR="`pwd`/mpfr-2.4.2" MPC="`pwd`/mpc-0.8.1" GCC_SRC="`pwd`/gcc-4.6.3" PREFIX=~/local if [ ! -f $PREFIX/lib/libgmp.dylib ] ; then rm -fr $GMP/build mkdir -p $GMP/build cd $GMP/build echo "configure gmp ..."; ../configure --prefix=$PREFIX --build=x86_64-apple-darwin11 echo "building gmp ..."; make && make install fi if [ ! -f $PREFIX/lib/libmpfr.dylib ] ; then rm -fr $MPFR/build mkdir -p $MPFR/build cd $MPFR/build pwd echo "configure mpfr ..."; ../configure --prefix=$PREFIX --with-gmp=$PREFIX --build=x86_64-apple-darwin11 echo "building mpfr ..."; make && make install fi if [ ! -f $PREFIX/lib/libmpc.dylib ] ; then rm -fr $MPC/build mkdir -p $MPC/build cd $MPC/build echo "configure mpc ..."; ../configure --prefix=$PREFIX --with-gmp=$PREFIX --with-mpfr=$PREFIX --build=x86_64-apple-darwin11 echo "building mpc ..."; make && make install fi rm -fr $GCC_SRC/build mkdir -p $GCC_SRC/build cd $GCC_SRC/build ../configure --prefix=$PREFIX --with-gmp=$PREFIX --with-mpfr=$PREFIX --with-mpc=$PREFIX --enable-checking=release --program-suffix=-4.6.3 --enable-languages=c,c++,objc,obj-c++ make -j 4 && make install


(3) Test it
test_lambda.cpp    Select all
//Program to test the new C++11 lambda syntax #include <iostream> using namespace std; int main() { cout << [](int m, int n) { return m + n; } (2, 4) << endl; return(0); }


~/local/bin/g++-4.6.3 -std=c++0x test_lambda.cpp -o test_lambda
./test_lambda


Tuesday, June 19, 2012

androideabi Utilities Binaries

These are the utilities for Android Terminal Access

Download here
http://apiexplorer.googlecode.com/files/androideabi_binary.zip

bash 4.1 (requires root)
make (useful for  GCC Plugin for C4droid)
python (standalone script requires PythonForAndroid_r4.apk)
perl (standalone script requires perl_for_android_r1.apk)
vim (with multibyte support)
wget (in case your busybox's wget was broken with bad address)
curl (how I build this ? -> here)
utelnetd (telnet daemon,  utelnetd -p 1025 -l /system/bin/bash &)
scp
ssh
rsync

Instructions:
root the device and push these utilities to /system/bin/ or /system/xbin and chmod 04755 or chmod 755, if your /system folder is readonly, you might need Root Explorer to mount it as RW.

adb push bash /system/bin/bash
adb shell "chmod 04755 /system/bin/bash"

su -c /system/bin/bash


vim with multibyte support
Before the use of vim, you should setup TERM as
export TERM=xterm

And for editing UTF-8 File, use
vim --cmd "set encoding=utf-8" myfile.txt

Wednesday, May 30, 2012

[How to] Install Android 4.0 under VMware

1) Download image from http://www.buildroid.org/Download/android-x86-vm-20120307.iso.gz and decompress it

2) Use VMWare to mount the iso and create a virtual machine
Type : FreeBSD
Harddisk : 10G
Ram : 512MB

3) Choose Install Android-x86 to harddisk


4) Create partition and format the primary partition and then create a fake SD Card for 2G


5) After Android OS started. Run the Terminal Emulator inside the Android to get the IP Address. Type "netcfg" inside the Terminal
say the ipaddress is 172.16.85.133

6) To push file or app to the Android OS under VMWare, you need to install Android SDK. (say installed in ~/android-sdk-macosx/)

7) For example, to push Music to the sdcard
~/android-sdk-macosx/platform-tools/adb connect 172.16.85.133
~/android-sdk-macosx/platform-tools/adb push ~/Mymusic.mp3 /sdcard/Music/


8) To compile and install a sample app to the Android OS
~/android-sdk-macosx/platform-tools/adb connect 172.16.85.133
cd ~/android-sdk-macosx/samples/ActionBarCompat/
~/android-sdk-macosx/tools/android update project -t 1 -p .
ant debug
~/android-sdk-macosx/platform-tools/adb install bin/MainActivity-debug.apk

# -r option is to reinstall
~/android-sdk-macosx/platform-tools/adb install -r bin/MainActivity-debug.apk


9) Shell access
~/android-sdk-macosx/platform-tools/adb connect 172.16.85.133
~/android-sdk-macosx/platform-tools/adb shell


Friday, May 25, 2012

Galaxy Notes ICS 4.0.3 update


May 24 2012.
N7000ZSLPF – 4.0.3 – 2012 May – N7000OZSLPF – Hong Kong
N7000DXLP9 – 4.0.3-  2012 May – N7000OLBLP6 – Singapore
N7000DXLP9 – 4.0.3 – 2012 May – N7000OLBLP6 – Philippines (Sun)
N7000ZSLPF – 4.0.3 – 2012 May – N7000OZSLPF – Taiwan Download
N7000DXLP9 – 4.0.3 – 2012 May – N7000OLBLP6 – Singapore (SingTel)
May 23 2012.
N7000DDLP8 – 4.0.3 – 2012 May – N7000ODDLP5 – India
N7000DDLP8 – 4.0.3 – 2012 May – N7000ODDLP5 – Sri Lanka
N7000DDLP8 – 4.0.3 – 2012 May – N7000ODDLP5 – Bangladesh
N7000DDLP8 – 4.0.3 – 2012 May – N7000ODDLP5 – Nepal
May 22 2012.
N7000DXLP9 - 4.0.3 – 2012 May - N7000OLBLP6 - Thailand
N7000DXLP9 - 4.0.3 – 2012 May - N7000OLBLP6 - Malaysia
N7000DXLP9 - 4.0.3 – 2012 May – N7000OLBLP6 - Indonesia
N7000DXLP9 - 4.0.3 – 2012 May - N7000OLBLP6 – Vietnam
May 2012.
N7000XXLPY - 4.0.3 – 2012 May - N7000OXALPY - Open Germany

Download kies 2.0 from Samsung as OTA update may be later

http://www.samsung.com/in/consumer/mobile-phone/mobile-phone/galaxy-note/GT-N7000ZBAINU-support



Wednesday, May 23, 2012

epub title and cover tips

OEBPS/content.opf
OEBPS/content.opf Select all
<metadata xmlns:opf="http://www.idpf.org/2007/opf" xmlns:dc="http://purl.org/dc/elements/1.1/"> <dc:title>Book Title</dc:title> <dc:creator>Author Name=</dc:creator> ... ... <meta name="cover" content="cover-image"/> </metadata> <manifest> <item id="ncx" href="content.ncx" media-type="application/x-dtbncx+xml"></item> <item id="cover-image" href="images/cover.jpg" media-type="image/jpeg"/> <item id="cover" href="cover.html" media-type="application/xhtml+xml"/> ... </manifest>
OEBPS/cover.html
OEBPS/cover.html Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Cover<=</title> <style type="text/css"> img { max-width: 100%; } </style> </head> <body> <div id="cover-image"> <img src="images/cover.jpg" alt="Book Title"/> </div> </body> </html>
.
.
.

Monday, May 14, 2012

How to convert GarageBand Mac project file to GarageBand iPad

Suppose you have a GarageBand project in Mac and want to convert to iPad, you should change 2 files projectData and metadata.plist using TextWrangler or TextEdit
change the word x86_64 to iPad1,1
and change macos to ios
and drag the project file say MySong.band to iTunes under GarageBand App

If you know how to use command in Terminal

cd MySong.band
sed -i.bak 's/x86_64/iPad1,1/g;s/macos/ios/g' projectData
sed -i.bak 's/x86_64/iPad1,1/g;s/macos/ios/g' Output/metadata.plist 
rm *.bak Output/*.bak