Reference:
http://android-er.blogspot.com/2009/09/read-android-system-info-using.html
http://android-er.blogspot.com/2009/09/read-android-cpu-info.html
http://android-er.blogspot.com/2009/09/read-android-os-version.html
http://d.hatena.ne.jp/Kazzz/20100113/p1
http://strazzere.com/blog/?p=116
http://www.androidsoftwaredeveloper.com/2009/04/02/how-to-get-the-phone-imei/
Monday, July 26, 2010
Monday, July 5, 2010
Unix mail commands
Extracted from: http://www.cyberciti.biz/faq/linux-send-email-from-console/
To send an email from console you need to use mail command, which is an intelligent mail processing system which has a command syntax reminiscent of ed with lines replaced by messages. To send an email to somewhere@domain.com you need to type following command:
$ mail somewhere@domain.comOutput:
Subject: Hello
Hai,
How are you? Hope so you are fine :)
Take care
Babai
Vivek
.
Cc:
You need to type . (dot) to send an email. To send contains of file (such as /tmp/message) as mail body then use following command:
$ mail -s 'Hai' somewhere@domain.com < /tmp/messagePlease note that above command will NOT route an email if you do not have properly configured MTA/mail server.
*** Read mail ***
>>mail -f /var/spool/mail/ e.g., mail -f /var/spool/mail/root //root email
>>mbox //list all mails
Reference: http://www.computerhope.com/unix/umail.htm
To send an email from console you need to use mail command, which is an intelligent mail processing system which has a command syntax reminiscent of ed with lines replaced by messages. To send an email to somewhere@domain.com you need to type following command:
$ mail somewhere@domain.comOutput:
Subject: Hello
Hai,
How are you? Hope so you are fine :)
Take care
Babai
Vivek
.
Cc:
You need to type . (dot) to send an email. To send contains of file (such as /tmp/message) as mail body then use following command:
$ mail -s 'Hai' somewhere@domain.com < /tmp/messagePlease note that above command will NOT route an email if you do not have properly configured MTA/mail server.
*** Read mail ***
>>mail -f /var/spool/mail/
>>mbox //list all mails
Reference: http://www.computerhope.com/unix/umail.htm
Forward root email to external email
Extracted from: http://dettox.blogspot.com/2008/01/automatic-forward-to-another-email.html
Root account
editing the file /etc/aliases we can add an email alias for every account on the server
...
ftp-adm: ftp
ftp-admin: ftp
www: webmaster
webmaster: root
noc: root
security: root
hostmaster: root
info: postmaster
marketing: postmaster
sales: postmaster
support: postmaster
# Person who should get root's mail
root: root
...
so in this case we can write:
...
root: root, example@domain.com
...
running the command newaliases the change will take effect:
[root@localhost ~]# newaliases
/etc/aliases: 77 aliases, longest 22 bytes, 791 bytes total
[root@localhost ~]#
every mail to root@localhost will be forwarded to example@domain.com leaving a copy on the server.
User account
to forward user address without root privileges, just create the file .forward in the home directory with inside the name of the mail address:
[dettox@localhost ~]$ pwd
/home/dettox
[dettox@localhost ~]$ echo "example@domain.com" > .forward
[dettox@localhost ~]$ chmod 644 .forward
[dettox@localhost ~]$
every mail to dettox@localhost will be forwarded to example@domain.com without leaving a copy on the server.
Root account
editing the file /etc/aliases we can add an email alias for every account on the server
...
ftp-adm: ftp
ftp-admin: ftp
www: webmaster
webmaster: root
noc: root
security: root
hostmaster: root
info: postmaster
marketing: postmaster
sales: postmaster
support: postmaster
# Person who should get root's mail
root: root
...
so in this case we can write:
...
root: root, example@domain.com
...
running the command newaliases the change will take effect:
[root@localhost ~]# newaliases
/etc/aliases: 77 aliases, longest 22 bytes, 791 bytes total
[root@localhost ~]#
every mail to root@localhost will be forwarded to example@domain.com leaving a copy on the server.
User account
to forward user address without root privileges, just create the file .forward in the home directory with inside the name of the mail address:
[dettox@localhost ~]$ pwd
/home/dettox
[dettox@localhost ~]$ echo "example@domain.com" > .forward
[dettox@localhost ~]$ chmod 644 .forward
[dettox@localhost ~]$
every mail to dettox@localhost will be forwarded to example@domain.com without leaving a copy on the server.
Wednesday, June 30, 2010
Android Eclipse ADT
FAQ
Q: 'Gen' Folder missing. Set build path
A: Set the following
Project > Properties > Java Compiler > JDK Compliance > Compiler compliance level: 1.6
Q: Installation and uninstallation of Android application
A:
1. Start emulator and wait for bootup completion
C:\android-sdk-windows\tools\emulator.exe -avd1.5
2. Install application
C:\android-sdk-windows\tools\adb install F:\Projects\Citibank\CitiE2E_Android\library_export\CitiE2ETest.apk
3. Uninstall application
i) adb shell
ii) ls //Show all package installed.
iii) rm
Q: 'Gen' Folder missing. Set build path
A: Set the following
Project > Properties > Java Compiler > JDK Compliance > Compiler compliance level: 1.6
Q: Installation and uninstallation of Android application
A:
1. Start emulator and wait for bootup completion
C:\android-sdk-windows\tools\emulator.exe -avd1.5
2. Install application
C:\android-sdk-windows\tools\adb install F:\Projects\Citibank\CitiE2E_Android\library_export\CitiE2ETest.apk
3. Uninstall application
i) adb shell
ii) ls //Show all package installed.
iii) rm
Tuesday, June 1, 2010
How to setup a Mobile Browser Emulator in Windows Mobile 6
http://www.lancelhoff.com/how-to-emulate-windows-mobile-6/
Tuesday, May 25, 2010
c\c++ compiler w. netbeans
references:
http://cygwin.com/
http://royalexander.wordpress.com/2009/03/20/configuring-cygwin-cc-compiler-for-netbeans-65-under-windows/
http://netbeans.org/community/releases/68/cpp-setup-instructions.html
http://netbeans.org/kb/trails/cnd.html
http://cygwin.com/
http://royalexander.wordpress.com/2009/03/20/configuring-cygwin-cc-compiler-for-netbeans-65-under-windows/
http://netbeans.org/community/releases/68/cpp-setup-instructions.html
http://netbeans.org/kb/trails/cnd.html
Thursday, April 15, 2010
Signed Applet to Javascript
String lineSeparator = java.security.AccessController.doPrivileged(
new java.security.PrivilegedAction(){
public String run() {return System.getProperty("line.separator");}});
http://www.raditha.com/java/sandbox/unsigned.phphttp://stackoverflow.com/questions/852453/accesscontroller-doprivileged
http://chriswongdevblog.blogspot.com/2009/08/invisible-applet.html
http://forums.sun.com/thread.jspa?threadID=5434324
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4406607
http://forums.devshed.com/java-help-9/saving-file-into-local-disc-using-applet-613357.html
http://lwjgl.org/forum/index.php?action=printpage;topic=3186.0
http://stackoverflow.com/questions/1068271/signed-applet-gives-accesscontrolexception-access-denied-when-calling-from-java
http://www.snowbound.com/tech_tips/g_security_applet_java.html
http://java.sun.com/j2se/1.4.2/docs/api/java/security/AccessController.html
Subscribe to:
Posts (Atom)