Secure Admin must be enabled to access the DAS remotely.

asadmin> enable-secure-admin

Command enable-secure-admin executed successfully.

[Ubuntu] Disable Root Login SSH

Edit sshd_config

vi /etc/ssh/sshd_config

Find PermitRootLogin then change it to

PermitRootLogin no

Restart sshd

/etc/init.d/sshd restart

How to install SUN java in Ubuntu 11.10

up vote30down voteaccepted sudo apt-get install python-software-properties sudo add-apt-repository ppa:ferramroberto/java sudo apt-get update sudo apt-get install sun-java6-jdk sun-java6-plugin

You may want to also add the following

sudo update-alternatives –config java

You should get the following

Selection Path Priority Status ———————————————————— * 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode 1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode 2 /usr/lib/jvm/java-6-sun/jre/bin/java [...]

c# send sms via AT Command unicode pdu

Hi this is sample code of my GSM Module.
This code send sms using AT-Command, send Unicode text for Thai Lanquage.

Enjoy it!
Continue reading “c# send sms via AT Command unicode pdu” »

Crop UIImage in UIScrollview

CGSize pageSize = myScrollView.frame.size; UIGraphicsBeginImageContext(pageSize); CGContextRef resizedContext = UIGraphicsGetCurrentContext(); int offsetX = -1*myScrollView.contentOffset.x; int offsetY = -1*myScrollView.contentOffset.y; CGContextTranslateCTM(resizedContext, offsetX, offsetY); [myScrollView.layer renderInContext:resizedContext]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);