随笔 - 103  文章 - 11  评论 - 18  阅读 - 15万
07 2012 档案
OSCam交叉编译
摘要:环境:rhel6OSCam的配置可以采用GUI配置,是一种基于Dialog的配置界面,需要安装dialog支持包:[root@localhost Packages]# rpm -ivh dialog-1.1-9.20080819.1.el6.i686.rpm OSCam采用CMake配置,安装CMake[root@localhost Packages]# rpm -ivh cmake-2.6.4-5.el6.i686.rpm 开始配置:1、配置你的交加工具链:[root@localhost OSCam]# export PATH=/home/root/arm-none-linux-gnu/bi 阅读全文
posted @ 2012-07-24 15:12 J.evan 阅读(1247) 评论(0) 推荐(0)
OSCam学习记录
摘要:相关关网站www.tvroes.cnoscam bbs:http://www.oscam.to/wbb3/index.php?page=Thread&postID=47992oscam home:http://www.streamboard.gmc.to/wiki/OSCam/enoscam sources svn: http://streamboard.gmc.to:8001/browser/trunk#代码学习:oscam.c文件中main函数:1、支持卡系统存放与cardsystem_def[]这个函数指针数组;2、oscam的模块存放于mod_def[]这个函数指针数组;3、c 阅读全文
posted @ 2012-07-19 17:33 J.evan 阅读(411) 评论(0) 推荐(0)
Android中的应用!!!!
摘要:我有一个应用。1个后台服务线程:此线程接受客户端的请求,分为三种请求,一个图片,一个视频,一个音乐3个activity:分别显示图片、播放音乐、播放视频现在我需要交互,我的后台线程需要取到我的三个activity的各种状态,如:当前播放位置、当前是第几张图片。我改采用哪种方式? 我现在没有使用服务,全部使用的静态变量。感觉别扭,哪位大大帮我出个主意! 阅读全文
posted @ 2012-07-16 22:38 J.evan 阅读(173) 评论(0) 推荐(0)
不完全总结linux下c访问http
摘要:linux下纯C简单的HTTP POST请求 客户端模型 ---经典收藏,源代码打包httppost.tar,感谢博主c直接访问网页 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <stdarg.h> 5 #include <sys/socket.h> 6 #include <netinet/in.h> 7 #include <netdb.h> 8 9 int htconnect(char *host, i 阅读全文
posted @ 2012-07-16 22:24 J.evan 阅读(918) 评论(0) 推荐(0)
RHEL6单用户模式切换
摘要:root权限://使用这个telinit 1 阅读全文
posted @ 2012-07-11 11:39 J.evan 阅读(529) 评论(0) 推荐(0)
给我的当前RHEL6新增一块硬盘!
摘要:1、使用fdisk -lDisk /dev/sdb doesn't contain a valid partition table2、使用fdisk sdb 进行分区:n命令创建一个新分区;d命令删除一个存在的分区;p命令显示分区列表;t命令修改分区的类型ID号;l命令显示分区ID号的列表;a命令指定启动分区;w命令是将对分区表的修改存盘让它发生作用。 我们这里是创建新分区,所以输入 n 然后 e 是扩展分区,p 是主分区,我们输入 p接下来的块数什么的,都输入 1 ,最后选择大小,Last cylinder or +size or +sizeM or +sizeK (1-60801, 阅读全文
posted @ 2012-07-10 10:11 J.evan 阅读(411) 评论(0) 推荐(0)
Dlna相关开源项目收集整理
摘要:UPnP-Control for Mplayerhttp://upnprenderer.sourceforge.net/stream2androidhttp://code.google.com/p/stream2android/source/list 阅读全文
posted @ 2012-07-05 23:26 J.evan 阅读(1132) 评论(0) 推荐(0)
取当前运行Activity的名称
摘要:1 public String getTopActivity() 2 { 3 ActivityManager activityManager = (ActivityManager) getApplicationContext().getSystemService(Context.ACTIVITY_SERVICE); 4 List<RunningTaskInfo> forGroundActivity = activityManager.getRunningTasks(1); 5 RunningTaskInfo currentAct... 阅读全文
posted @ 2012-07-05 15:56 J.evan 阅读(526) 评论(0) 推荐(0)
Elf文件格式学习笔记
摘要:学习地址:http://www.juliantec.info/julblog/yihect/understand-of-elf-format对程序使用strip命令前后,程序入口地址都已经发送变化,但是.text的起始地址却没有改变,这是为啥呢?使用了strip后,程序少了10个section,不知道是不是所有的程序都少10个section。查看数据段具体信息:objdump -d -j .data ./a.o (-d:打印,-j:反汇编 .data段)strip前:1 [c001@kv tmp]$ objdump -d -j .data ./a.o2 3 ./a.o: file fo... 阅读全文
posted @ 2012-07-05 15:43 J.evan 阅读(478) 评论(0) 推荐(0)
Android加载大图片OOM异常解决
摘要:项目用到加载大图片,app老是出现OOM异常,总结了几点经验,供参考。1、手动干涉dalvik的堆内存处理效率:1 private final static float TARGET_HEAP_UTILIZATION = 0.75f;2 //for same activity3 public void onCreate()4 {5 …………6 VMRuntime.getRuntime().setTargetHeapUtilization(TARGET_HEAP_UTILIZATION); 7 …………8 }... 阅读全文
posted @ 2012-07-05 15:35 J.evan 阅读(6353) 评论(1) 推荐(0)
ControlPoint.java文件学习笔记
摘要:看看构造函数, 1 //////////////////////////////////////////////// 2 // Constructor 3 //////////////////////////////////////////////// 4 5 public ControlPoint(int ssdpPort, int httpPort,InetAddress[] binds){ 6 ssdpNotifySocketList = new SSDPNotifySocketList(binds); 7 ss... 阅读全文
posted @ 2012-07-04 17:58 J.evan 阅读(581) 评论(0) 推荐(0)

< 2025年6月 >
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 1 2 3 4 5
6 7 8 9 10 11 12

点击右上角即可分享
微信分享提示