Signing symbian S60 applications
Note: This is NOT the official way to sign an application. This is just a quick hack to help my friend getting an application running on his phone. Go to Symbian Signed for more details on signing an application properly.
- First, go to OPDA.net here to get your certificate and key. If you are not a registered member, you will be forwarded to a registration page. Just create a dummy account. (Yes, the site is in simplified Chinese!)
- Once you are at the page for requesting the certificate, enter the data correctly. The "串号" is your IMEI number of your phone. If you don't know what it is, enter *#06# on your phone. The "手机号码" is your phone number. Just enter anything that starts with 13, 15, or 18. The length of the phone number MUST BE 11 digits long. e.g. 15000000000
- Once you submitted your request, go to "我的证书" and wait for your certificate and key files. It could take several hours or even a day for the files to be ready. Once it said "已完成", click on "普通下载" to download both the .cer and .key files. Keep them in a safe place. You will need them to sign your applications.
- Next, get hold of a Windows application called EasySignPlus. Please don't ask me where to get it. You can easily search for it on the Internet.
- In EasySignPlus, select the certificate and key file you got from opda.net. The password for the key file is four zeros (i.e. 0000). Then drag your unsigned .sis file to the program window. By default, it will sign the application and generate the .sisx file under the same folder as your .sis file
- Install the .sisx file in your phone as usual and have fun~!
my "sun jar"
Tried to make my own "sun jar" around a year ago. Left it on breadboard until today...
Find the schematic below. Added a switch to keep the LED off all the time... which effective makes the whole thing a solar powered battery charger...
Notes to self:
Find the schematic below. Added a switch to keep the LED off all the time... which effective makes the whole thing a solar powered battery charger...
Notes to self:
- The solar panel is directly connected to the battery for charging. Without any control on voltage or current. May damage the battery in a long run. But then, the solar panel used is not that powerful... so....
- A normal LED requires more than 1 AA cell to power it up. To overcome this, the center-taped-coil and one of the transistor formed a switching circuit. It generates voltage high enough to light up the LED with less than one volt.
- Unlike the commercially available Sun Jar, this circuit doesn't use photoresistor to control when to light up the LED. Instead, a transistor is used to detect the voltage output of the solar panel.
Arduino test: voltmeter
First experiment with Arduino. Trying to implement a voltmeter.
Each analog input of Arduino has 1024 steps. From 0 to 5 volt. This experiment used a simple voltage divider to measure roughly 0 to 12 volt (using 50k as R1 and 4k3 as R2).
By varying the values of R1 and R2, the precision and range of the measurement can be changed.
Here is the Arduino code:
Each analog input of Arduino has 1024 steps. From 0 to 5 volt. This experiment used a simple voltage divider to measure roughly 0 to 12 volt (using 50k as R1 and 4k3 as R2).
By varying the values of R1 and R2, the precision and range of the measurement can be changed.
Here is the Arduino code:
// variables for input pin and control LED
int analogInput = 1;
int LEDpin = 13;
int prev = LOW;
int refresh = 1000;
float vout = 0.0;
float vin = 0.0;
float R1 = 50000.0; // !! resistance of R1 !!
float R2 = 4300.0; // !! resistance of R2 !!
// variable to store the value
int value = 0;
void setup(){
// declaration of pin modes
pinMode(analogInput, INPUT);
pinMode(LEDpin, OUTPUT);
// begin sending over serial port
Serial.begin(9600);
}
void loop(){
// read the value on analog input
value = analogRead(analogInput);
//Serial.print("value=");
//Serial.println(value);
if (value >= 1023) {
Serial.println("MAX!!");
delay(refresh);
return;
}
else if (value <= 0) {
Serial.println("MIN!!");
delay(refresh);
return;
}
// blink the LED
if (prev == LOW) {
prev = HIGH;
} else {
prev = LOW;
}
digitalWrite(LEDpin, prev);
// print result over the serial port
vout = (value * 5.0) / 1024.0;
vin = vout / (R2/(R1+R2));
//Serial.print("vout=");
//Serial.println(vout);
Serial.print(vin);
Serial.println(" volt");
// sleep...
delay(refresh);
}
是日金句
「人多自然容易受傷」
Windows Server 2008
Trying out Windows Server 2008. Tested it in VMWare 5.x (!) on Windows 2000 (OK, so I am still using Windows 2000 on my main machine). Hardware is AMD 4200+ with 2G RAM. And here are some tips on "converting" a Windows Server 2008 to a workstation.
BTW, if you are/were a high school or university student,go to DreamSpark to download Windows Server and Visual Studio etc for free.
BTW, if you are/were a high school or university student,go to DreamSpark to download Windows Server and Visual Studio etc for free.
是日金句
「不要嘗試尋找刻意失蹤的人…」
…因為佢無意俾你搵到佢…
…因為佢無意俾你搵到佢…