Monday, October 1, 2012

JB utility

some utils after JB

JB應用-Cydia軟體《SBSettings》方便實用的多功能快捷視窗
http://steachs.com/archives/2020

Cydia軟體《Remove Background SBSettings》
http://steachs.com/archives/2058

OpenSSH Cydia Package
http://www.cultofmac.com/32134/access-your-iphone-file-system-with-ssh-jailbreak-superguide/
+ filezilla

Tuesday, August 14, 2012

apache self signed key on windows 8

When using apache 2.2 windows version, here is the step to create key:
openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" -keyout www.example.com.key -out www.example.com.cert
(the solution is from http://superuser.com/questions/226192/openssl-without-prompt)
And copy the .key and .cert to apache/conf
Then edit httpd.conf:
1. uncomment "LoadModule ssl_module modules/mod_ssl.so"
2. uncomment "Include conf/extra/httpd-ssl.conf"
And edit httpd-ssl.conf:
1. uncommnet "SSLPassPhraseDialog  builtin"
2. use this line: SSLSessionCache         "dbm:C:/Program Files (x86)/Apache Software Foundation/Apache2.2/logs/ssl_scache"

Use icon tool to restart it. If success, you can see https://yourhost/ shows "It works".
If it's not working, check logs/error.log for the failure reason.

Thursday, July 26, 2012

Install EasyBCD in Windows 8

If you failed to install because of dotnetfx.exe,
here is the method to install easybcd 2.1.2 in windows 8.


1. mount win8 iso. for example, mount as d:
2. install .net fix. Search "cmd", and right click to do "Run as administrator".
3. in the cmd, type
dism.exe /online /enable-feature /featurename:NetFX3 /Source:d:\sources\sxs 

4. run EasyBCD installer
5. you are ready to use easybcd

Wednesday, June 13, 2012

multicore in java/javascript/python

Java thread can be a native thread.

JavaScript is single thread.

Although Python thread is a native thread, but due to GIL, CPython can not leverage multicore hardware.
Read this:
http://www.dabeaz.com/python/GIL.pdf
or
http://fcamel-life.blogspot.tw/2010/03/multi-coremulti-thread-java-python.html

The next thing to find is how to do in JavaScript and Python.

Thursday, May 24, 2012

[vmware] how to enable network in windows7 or window8

To enable default intel network adpater in vmware player, you have to manually modify the vmx file. Shutdown the system, add a line to the last of xxx.vmx:
ethernet0.virtualDev = "e1000"
And select "Bridged" in the network adapter option from GUI.
Then in options tab, change "Guest operating system" to "Microsoft Windows" "Windows 7".

Network will be ok after restarting.

Wednesday, June 29, 2011

android:launchMode

[Android] android:launchMode (standard、singleTop、singleTask、singleInstance)
http://jiunway.blogspot.com/2010/10/android-androidlaunchmode_26.html

standard, no reuse activity
singleTop, reuse activity if the same as the toppest activity
singleTask, reuse the same activity on the activity stack
singleInstance, reuse the same activity across multiple processes

Monday, April 11, 2011

[Android] ndk stl build

終於知道如何用ndk-build stl
doc中說可以在Android.mk[x]中設定變數, 不過不成功.

--> 原來是看錯檔名 應該是Application.mk才對
--> 加一個Application.mk就可以build

[x] 後來下在command中:
[x] ndk-build APP_STL=stlport_static

其中 APP_STL 可以有幾個選擇
system -> Use the default minimal C++ runtime library.
stlport_static -> Use STLport built as a static library.
stlport_shared -> Use STLport built as a shared library.
gnustl_static -> Use GNU libstdc++ as a static library.

gnu多了exception.