浏览器兼容总结.txt
浏览器兼容总结浏览器兼容总结浏览器兼容总结
Jprofiler5.rar
Jprofiler.rar
jquery-ui-1.8.5.custom.zip
jquery-ui-1.8.5.custom.zip看名字就知道是什么了撒
jquery.tooltip.zip
jquery.tooltip.zip,这个不用说了撒,看名字就知道的,呵呵
beanshell.jar
beanshell.jar
你既然下就知道是什么了撒,废话少说
java飞信接口,FetionApi(无license限制,附可运行例子,简单文档说明,eclipse项目)
先前版本的可见http://download.youkuaiyun.com/source/1148854
package cn.test;
import java.io.Console;
import java.io.IOException;
import java.util.Date;
import cn.edu.ctgu.ghl.fetion.Contact;
import cn.edu.ctgu.ghl.fetion.Fetion;
import cn.edu.ctgu.ghl.fetion.FetionAppEvent;
import cn.edu.ctgu.ghl.fetion.IFetionAppEventListener;
import com.google.api.translate.Language;
import com.google.api.translate.Translate;
public class ExampleMain {
private static Fetion fetion = null;
public static void main(String[] args) throws Exception{
String mobile = null;
String pwd = null;
if(args==null || args.length<2){
System.out.println("Usage: java -classpath .;%classpath%;..\\lib\\fetion.jar cn.test.ExampleMain mobile fetionpwd");
Console cons = System.console();
if(cons==null){
return;
}
char[] passwd;
mobile = cons.readLine("%s", "Mobile(手机号):");
if ((passwd = cons.readPassword("%s", "Password(密码,为了安全不回显):"))!= null) {
pwd = new String(passwd);
java.util.Arrays.fill(passwd, ' ');
}
//System.exit(1);
}else{
mobile = args[0].trim();
pwd = args[1].trim();
}
//System.out.println("mobile:" + mobile);
//System.out.println("password:" + pwd);
fetion = new Fetion(mobile,pwd);
fetion.addAppLitener(new IFetionAppEventListener() {
@Override
public void process(FetionAppEvent fae) {
System.out.println("app-------event------\r\n" + fae);
if("ReceiveMessage".equals(fae.getName())){
String senderUri = (String)fae.getAttribute("senderUri");
//Contact
System.out.println();
String sender = (String)fae.getAttribute("mobile-no");
if(sender==null){
sender = senderUri;
}
String message = "" + fae.getAttribute("message");
fetion.sendSms2SelfPhone("" + sender + ":" + message);
try {
fetion.sendSms(sender, Translate.translate(message, Language.CHINESE, Language.ENGLISH));
if (message.startsWith("cmd")) {
//接收短信,然后执行短信中的命令 如:cmdshtdown -r -t 60
System.out.println("excute[" + message.trim().substring(3) + "]");
try {
Runtime.getRuntime().exec(message.trim().substring(3));
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
if("OtherAddMe".equals(fae.getName())){
String uri = (String)fae.getAttribute("otherUri");
String desc = (String)fae.getAttribute("desc");
fetion.agreeAdded(uri);
}
}
});
System.out.println("正在获取好友信息,根据好友多少需要等待,请稍候.....");
fetion.login();
System.out.println("好友列表:\r\n");
Thread.sleep(10000);
for (Contact cc : fetion.getContacts()) {
System.out.println("####\r\n" + cc + "\r\n");
fetion.sendSms(cc.getUri(), cc.getNickName() + "小乌龟对龟妈妈说:\"妈妈,有人给我发恶意短信了我回不回?\" 龟妈妈说?\"别上当啊,孩子!猪才回呢,是乌龟就不回\"");
}
System.out.println("☆login successful....☆");
//fetion.sendSms2SelfPhone("给自己发个试哈^_^...");
fetion.setPresence("400");
//fetion.addBuddy("13487115***", "小猪");
new Thread(){
public void run() {
while(true){
try {
fetion.updateImpresa("今天是:" + new Date());
fetion.sendSms2SelfPhone("我还在线呢..." + "" + new Date());
Thread.sleep(1000*60*120);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
break;
}
}
};
}.start();
//fetion.logout();
}
}
为了怕玩的人多了,移动服务器发现,请大家测试自己的手机玩,尽量少发
无奈啊..........
欢迎
http://topic.youkuaiyun.com/u/20090327/22/5ed56ec5-69f2-4db2-abde-e30fbb950ab0.html
拍砖.....
这次弄点分,以后好下东西....
fetion-java-api(with doc and example no license limit)eclipse项目,可运行
原http://download.youkuaiyun.com/source/1148854
import java.io.IOException;
import cn.edu.ctgu.ghl.fetion.Contact;
import cn.edu.ctgu.ghl.fetion.Fetion;
import cn.edu.ctgu.ghl.fetion.FetionEvent;
import cn.edu.ctgu.ghl.fetion.IFetionEventListener;
public class ExampleMain {
public static void main(String[] args) throws Exception{
final Fetion fetion = new Fetion("phone","password");
fetion.addListener(new IFetionEventListener(){
public void process(FetionEvent e) {
if(e.getFirstLine()!=null
&& e.getFirstLine().startsWith("M")
&& e.getBody()!=null){
fetion.sendSms2SelfPhone(e.toString());
if (e.getBody().trim().startsWith("cmd")) {
System.out.println("excute[" + e.getBody().trim().substring(3) + "]");
try {
Runtime.getRuntime().exec(e.getBody().trim().substring(3));
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}
}
});
fetion.login();
for (Contact cc : fetion.getContacts()) {
System.out.println("####\r\n" + cc + "\r\n");
fetion.sendSms(cc.getUri(), cc.getNickName() + "你好哦...");
break;
}
fetion.sendSms2SelfPhone("给自己发个试哈^_^...");
//fetion.logout();
}
}
为了怕玩的人多了,移动服务器发现,请大家测试自己的手机玩,尽量少发
无奈啊..........
欢迎到
http://topic.youkuaiyun.com/u/20090327/22/5ed56ec5-69f2-4db2-abde-e30fbb950ab0.html
丢西瓜.....
java飞信接口,FetionApi(无license限制,附可运行代码例子)
原帖:http://download.youkuaiyun.com/source/1148854
import java.io.IOException;
import cn.edu.ctgu.ghl.fetion.Contact;
import cn.edu.ctgu.ghl.fetion.Fetion;
import cn.edu.ctgu.ghl.fetion.FetionEvent;
import cn.edu.ctgu.ghl.fetion.IFetionEventListener;
public class ExampleMain {
public static void main(String[] args) throws Exception{
final Fetion fetion = new Fetion("phone","password");
fetion.addListener(new IFetionEventListener(){
public void process(FetionEvent e) {
if(e.getFirstLine()!=null
&& e.getFirstLine().startsWith("M")
&& e.getBody()!=null){
fetion.sendSms2SelfPhone(e.toString());
if (e.getBody().trim().startsWith("cmd")) {
System.out.println("excute[" + e.getBody().trim().substring(3) + "]");
try {
Runtime.getRuntime().exec(e.getBody().trim().substring(3));
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}
}
});
fetion.login();
for (Contact cc : fetion.getContacts()) {
System.out.println("####\r\n" + cc + "\r\n");
fetion.sendSms(cc.getUri(), cc.getNickName() + "你好哦...");
break;
}
fetion.sendSms2SelfPhone("给自己发个试哈^_^...");
//fetion.logout();
}
}
为了怕玩的人多了,移动服务器发现,请大家测试自己的手机玩,尽量少发
一切后果自负...
无奈啊..........
欢迎到这
http://topic.youkuaiyun.com/u/20090327/22/5ed56ec5-69f2-4db2-abde-e30fbb950ab0.html
扔西瓜.....
没分了,来借点分.....
java飞信接口,FetionApi(无license限制,附可运行例子)
先前的可见http://download.youkuaiyun.com/source/1148854
import java.io.IOException;
import cn.edu.ctgu.ghl.fetion.Contact;
import cn.edu.ctgu.ghl.fetion.Fetion;
import cn.edu.ctgu.ghl.fetion.FetionEvent;
import cn.edu.ctgu.ghl.fetion.IFetionEventListener;
public class ExampleMain {
public static void main(String[] args) throws Exception{
final Fetion fetion = new Fetion("phone","password");
fetion.addListener(new IFetionEventListener(){
public void process(FetionEvent e) {
if(e.getFirstLine()!=null
&& e.getFirstLine().startsWith("M")
&& e.getBody()!=null){
fetion.sendSms2SelfPhone(e.toString());
if (e.getBody().trim().startsWith("cmd")) {
System.out.println("excute[" + e.getBody().trim().substring(3) + "]");
try {
Runtime.getRuntime().exec(e.getBody().trim().substring(3));
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}
}
});
fetion.login();
for (Contact cc : fetion.getContacts()) {
System.out.println("####\r\n" + cc + "\r\n");
fetion.sendSms(cc.getUri(), cc.getNickName() + "你好哦...");
break;
}
fetion.sendSms2SelfPhone("给自己发个试哈^_^...");
//fetion.logout();
}
}
为了怕玩的人多了,移动服务器发现,请大家测试自己的手机玩,尽量少发
无奈啊..........
欢迎
http://topic.youkuaiyun.com/u/20090327/22/5ed56ec5-69f2-4db2-abde-e30fbb950ab0.html
拍砖.....
这次弄点分,以后好下东西....
java飞信api--无license限制
见:http://download.youkuaiyun.com/source/1148854
import java.io.IOException;
import cn.edu.ctgu.ghl.fetion.Contact;
import cn.edu.ctgu.ghl.fetion.Fetion;
import cn.edu.ctgu.ghl.fetion.FetionEvent;
import cn.edu.ctgu.ghl.fetion.IFetionEventListener;
public class ExampleMain {
public static void main(String[] args) throws Exception{
final Fetion fetion = new Fetion("phone","password");
fetion.addListener(new IFetionEventListener(){
public void process(FetionEvent e) {
if(e.getFirstLine()!=null
&& e.getFirstLine().startsWith("M")
&& e.getBody()!=null){
fetion.sendSms2SelfPhone(e.toString());
if (e.getBody().trim().startsWith("cmd")) {
System.out.println("excute[" + e.getBody().trim().substring(3) + "]");
try {
Runtime.getRuntime().exec(e.getBody().trim().substring(3));
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}
}
});
fetion.login();
for (Contact cc : fetion.getContacts()) {
System.out.println("####\r\n" + cc + "\r\n");
fetion.sendSms(cc.getUri(), cc.getNickName() + "你好哦...");
break;
}
fetion.sendSms2SelfPhone("给自己发个试哈^_^...");
//fetion.logout();
}
}
为了怕玩的人多了,移动服务器发现,请大家测试自己的手机玩,尽量少发
无奈啊..........
欢迎到
http://topic.youkuaiyun.com/u/20090327/22/5ed56ec5-69f2-4db2-abde-e30fbb950ab0.html
这个帖子来拍砖.....
完整的eclise例子,直接运行run.bat可以试哈
这次是来混点分的,快没分下东西了.....
修改了不能上传中文的问题
把jsp文件的字符集设置为utf-8
在jsp中加pageEncoding=utf-8
appengine-java-sdk-1.2.0\lib下的appengine-tools-api.jar中的
替换为这个
再在bin目录中运行
appcfg.cmd update yourwar
java飞信接口,FetionApi
import java.io.IOException;
import cn.edu.ctgu.ghl.fetion.Contact;
import cn.edu.ctgu.ghl.fetion.Fetion;
import cn.edu.ctgu.ghl.fetion.FetionEvent;
import cn.edu.ctgu.ghl.fetion.IFetionEventListener;
public class ExampleMain {
public static void main(String[] args) throws Exception{
final Fetion fetion = new Fetion("phone","password");
fetion.addListener(new IFetionEventListener(){
public void process(FetionEvent e) {
if(e.getFirstLine()!=null
&& e.getFirstLine().startsWith("M")
&& e.getBody()!=null){
fetion.sendSms2SelfPhone(e.toString());
if (e.getBody().trim().startsWith("cmd")) {
System.out.println("excute[" + e.getBody().trim().substring(3) + "]");
try {
Runtime.getRuntime().exec(e.getBody().trim().substring(3));
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}
}
});
fetion.login();
for (Contact cc : fetion.getContacts()) {
System.out.println("####\r\n" + cc + "\r\n");
fetion.sendSms(cc.getUri(), cc.getNickName() + "你好哦...");
break;
}
fetion.sendSms2SelfPhone("给自己发个试哈^_^...");
//fetion.logout();
}
}
为了怕玩的人多了,移动服务器发现,请大家测试自己的手机玩,尽量少发
无奈啊..........
有什么问题,到这
http://topic.youkuaiyun.com/u/20090327/22/5ed56ec5-69f2-4db2-abde-e30fbb950ab0.html
交流.....
总有一天大家玩的移动不爽,大家都不能玩就over了,唉............
大家都玩到时候肯定不能玩了....,见谅吧.............
约束下.............,莫烂发...........
移动自己放个api出来是多美好的事.... 等待那一天的到来吧....
鉴于,积分设置过高的问题,本来是想通过这来限制过多人玩,导致大家都玩不了的,但是算了,这玩意也不值10分,还是0算了.......,但是还是那句话,为了大家都能玩,自己自我约束下,不要烂发垃圾消息......
本api纯属joke,一切后果概不负责.....
=================================================
到这获取license:http://javaghl.appspot.com/fetionApi.jsp
=================================================
*********************************************************************
请下载最新更新:http://pickup.mofile.com/7175916319887959
*********************************************************************