Monday, November 19, 2012

[wp8] windows phone 8 can't download app from market

I got the new lumia 920 but after I setup microsoft account, I can't download apps from market.
After surfing the net, there is one reason that the phone time is incorrect.
SO, I go to setting -> time -> and disable auto. then setup my timezone and time correctly.
I can download apps now!
what a waste of time!!

Thursday, November 8, 2012

[WP8] windows phone 8 app models

2 models:
1. xaml app with c#/vb
   * reuse c++ via winrt component
   * direct3d interop
2. direct3d app with c++

Tuesday, November 6, 2012

Bracket names

() parentheses
[] square brackets
{} curly brackets

Monday, November 5, 2012

[WP8] html5 on windows phone 8

In current wp8 design, how to use html5:
1. in c# xaml project, add webbrowser control
2. you can only notify to c# code from javascript. you cannot access winrt API
3. you can run script or access script objects from c# code
The design is similar to webkit on android.

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.