2013年1月18日
摘要: 用apt-get方法安装mysql5 + Apache2 + PHP5+Phpmyadmin: 大家请先看下Ubuntu的WIKI,(http://wiki.ubuntu.org)上面讲的很详细的。但本人按上面做的第一次没有成功。apache2,php5,mysql5都可以运行,就是phpmyadmin不能用。 本人得到的经验是:MYSQL安成功后,一定要先给它设个密码,这上步是不可少的。 此篇只代表个人的观点和经验,可能会片面化和有错误,请大家批评指正,有问题大家一起来讨论!!1 .要用apt-get的方式安装,最好,也可能是必须先运行下面在命令升级自己的系统,我的就只能先升级后才能安装my 阅读全文
posted @ 2013-01-18 18:42 GloriousOnion 阅读(209) 评论(0) 推荐(0) 编辑
  2012年12月28日
摘要: Code nameVersionAPI level(no code name)1.0API level 1(no code name)1.1API level 2Cupcake1.5API level 3, NDK 1Donut1.6API level 4, NDK 2Eclair2.0API level 5Eclair2.0.1API level 6Eclair2.1API level 7, NDK 3Froyo2.2.xAPI level 8, NDK 4Gingerbread2.3 - 2.3.2API level 9, NDK 5Gingerbread2.3.3 - 2.3.7API 阅读全文
posted @ 2012-12-28 16:09 GloriousOnion 阅读(354) 评论(0) 推荐(0) 编辑
  2012年12月18日
摘要: 首先介绍下适用情形,Tomcat服务器位于另一台主机,同时数据库也在该主机之上,在将项目部署到远程Tomcat上之前自己一直是适用本地Tomcat进行测试的,但由于需要执行shell脚本,所以需要将项目部署到远程服务器上。远程计算机环境:CentOS Tomcat6 mysql jdk1.6.0本地环境:Windows7 MyEclipse8.5(已经附带了Ant插件) jdk1.6.0变量约定(需要根据你的安装情况代入具体值): CATALINA_HOME="/workspace/apache-tomcat-6.0.24" (远程tomcat的安装路径) ANT_HOME 阅读全文
posted @ 2012-12-18 10:29 GloriousOnion 阅读(12400) 评论(0) 推荐(0) 编辑
  2012年12月13日
摘要: Installing RepoRepo is a tool that makes it easier to work with Git in the context of Android. For more information about Repo, see Version Control.To install, initialize, and configure Repo, follow these steps:Make sure you have a bin/ directory in your home directory, and that it is included in yo 阅读全文
posted @ 2012-12-13 16:43 GloriousOnion 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 从这里下载的bin安装包 http://www.oracle.com/technetwork/java/javase/downloads/jdk6u38-downloads-1877406.html安装步驟来自 http://forum.ubuntu.org.cn/viewtopic.php?t=183803首先,从http://java.sun.com中下载jdk,我的版本是jdk1.6.0_38,我下载的是bin文件,我将下载的jdk1.6.0_38.bin文件置于/usr/lib/jvm/java中然后,在shell中执行:sudo chmod u+x /usr/lib/jvm/java 阅读全文
posted @ 2012-12-13 16:05 GloriousOnion 阅读(451) 评论(0) 推荐(0) 编辑
  2012年11月19日
摘要: native的Socket发送字节流默认是GB2312的,所以在Java方面需要指定GB2312byte[] buffer = new byte[50];StringBuffer strBuf = new StringBuffer();InputStream input = receiver.getInputStream();while((len = input.read(buffer)) != -1) { String newStr = new String(buffer, 0, len, "GB2312"); strBuf.append(newStr);}referen 阅读全文
posted @ 2012-11-19 14:23 GloriousOnion 阅读(854) 评论(0) 推荐(0) 编辑
  2012年11月13日
摘要: 转自[http://hi.baidu.com/chenliangzzu/item/fe14ac060efe346bd45a11dd]出于学习的需要在原来windows的基础上安装了linux 系统。。昨天想把linux系统删掉。。直接把linux系统所在盘格式化了,结果再次启动的时候就进不去windows系统了出现以下情况:GNU GRUB VERSION 0.95 (638Klower/195520K upper momory) [Minimal BASH-like line editing is supported.For the first word,TAB lists possibbl 阅读全文
posted @ 2012-11-13 20:12 GloriousOnion 阅读(3662) 评论(0) 推荐(0) 编辑
  2012年11月1日
摘要: 初次接触live555,见到这么多类还是挺不适应的,幸好有位前辈总结了类关系的图(原文链接http://blog.csdn.net/huangxinfeng/article/details/5374721):Medium RTSPServer RTSPOverHTTPServer MediaSession ServerMediaSession ServerMediaSubsession OnDemandServerMediaSubsession FileServerMediaSubsession ADTSAudioFileServerMediaSub... 阅读全文
posted @ 2012-11-01 15:29 GloriousOnion 阅读(1090) 评论(0) 推荐(0) 编辑
  2012年10月24日
摘要: 1.首先需要使用以下命令实时监视系统信息sudo tail -f /var/log/messages2.将手机debug模式打开,设置->应用程序->开发->usb调试,将usb调试后面打勾,插入后会出现不少消息,其中最重要的是(我的机器是G7 desire):Oct 24 16:34:02 liuhui kernel: [198314.199831] usb 1-1.4: New USB device found, idVendor=0bb4, idProduct=0c873.新建并配置udev的rule文件(需要管理员权限):vim /etc/udev/rules.d/5 阅读全文
posted @ 2012-10-24 21:06 GloriousOnion 阅读(265) 评论(0) 推荐(0) 编辑
  2012年10月17日
摘要: 很小的一个Demo,希望能有点用处。Demo代码在文末。已经有不少关于浮动按钮的例子,在本例中加入了一点功能,并对一些小问题进行了修正。Demo中共有三个类文件:FloatingView、FloatingService和MainActivity,其中FloatingView是浮动控制按钮的实现,其他两个类主要为能够长时间显示浮动按钮所做。MainActivity是启动界面,点击该Activity中间的按钮就会启动FloatingService。FloatingService的onStartCommand(Intent, int, int)方法中会调用new FloatingView(this) 阅读全文
posted @ 2012-10-17 21:01 GloriousOnion 阅读(979) 评论(0) 推荐(0) 编辑