- 博客(12)
- 资源 (9)
- 收藏
- 关注
原创 使用glib时,未知位置warning的处理
开发基于glib的程序时,经常会出现类似如下的log:** (process:6437): CRITICAL **: xxxxxxxxx: assertion '( func != NULL ) && ( xxx != NULL ) && ( count > 0 )' failed这时因为某些非致命性的assert失败,从而输出的log,但程序往往仍在运行,该log提供的信息有时又非常有限,无法定
2014-09-26 14:47:09 2984
原创 golang交叉编译
golang传的很牛X,但不能交叉编译,对我来说一点用都没有,有个开源项目是用golang写的,如果不能在arm上用,那么我只能将它“翻译”成C,再集成到我的产品中,但我没有这个时间。好在交叉编译最后还是成功了。1. 准备工作1.1 golang环境及arm交叉编译工具可以参考《golang安装手札》这篇文章。1.2 GCC交叉编译器在1.1基础上,已经可以编译能在Arm上运行的纯golang写的
2014-09-25 09:58:26 27618 1
原创 golang安装手札
首先,请允许我说句脏话:Fuck you, GFW.现在安装golang是一件麻烦的事情,因为Google悲剧了,我们无法从Golang的官网上下到源代码。而我的Ubuntu通过apt-get安装到的是1.0.2版本,编译go-mtpfs时,会报sync.Pool未定义。虽然可以下载到go-mtpfs的X86版本,但我的最终目的是在Arm上运行,因此我需要从源代码编译。1. 找源代码golang.
2014-09-24 13:34:13 5987
原创 FUSE简介(译)
原文:http://www.linux.org/threads/fuse.6211/译文:FUSE(The Filesystem in Userspace)在Kernel中是一个奇特的部分,它允许通常的用户不用修改Kernel或取得Root权限,就能制作或使用他们自己的文件系统。在FUSE中使用的文件系统是虚文件系统(Virtual Filesystems),但并非所有的虚文件系统使用的都是FUS
2014-09-23 13:55:08 15611 2
原创 基于GLib Mainloop实现时间可变的Timeout Source
GLib的Timeout Source只能指定固定的时间间隔,因此,不适合做为精确计时使用(精度接近播放器的播放时间)。从2.36开始,GLib提供了一种方法,可以在不使用Timeout Source的情况下,使一个Source的Dispatch函数在指定的时间点被触发,从而提高计时精度。用法如下:1. 创建一个通用Source和Mainloopstatic GSourceFuncs ptimeF
2014-09-19 10:29:50 1556
原创 SQLite3中的三种Join方式
前一阵子设计数据库结构,有个设计是要保存所有的音、视频和图片信息的metadata到表中,并要求可以不分类型的一次全部检索出来。原来有个设计是设计一张大表,把所有的字段不分类型全都添进去,通过类型字段进行判断,读取哪些metadata作为检索结果。这样就导致表的结构十分复杂,且大量的字段为空。为了解决这个问题,查了一下SQL的Join算法,解决了这个设计问题。以下是SQLite3中支持的Join方
2014-09-18 11:44:28 34669 2
原创 Linux系统性能监控常用工具
嵌入式系统产品开发经常会遇到性能瓶颈,这时需要借助外力,即各种工具,来找出问题点并及时解决。以下列出一些系统提供的工具:1. top个人最常用工具之一。top命令用于显示实际的进程活动状态,默认在5秒内收集CPU最密集的进程信息,并输出。默认的刷新时间可以通过-d参数改变,如top -d1则每1秒刷新list一次。top执行后有多个快捷键,重要的有以下几个:h:显示线程状态r:执行renice命令
2014-09-18 10:33:37 780
原创 Linux内存使用调整
前段时间在做播放器的时候,遇到个问题,花了很长时间,做个记录,希望对有需要的人有所帮助:播放器的播视频的时候,无论是手动切换视频还是到视频播放完成,自动切换视频,一定次数后均出现黑屏现象,偶尔有声音,问题出现后,不可恢复,Kernel输出如下Log:DMA free:71672kB min:616kB low:768kB high:924kB active_anon:0kB inactive_an
2014-09-17 17:44:59 8528
原创 DBus应用的俩种形态及实现
介绍一下基于DBus设计的应用程序的俩种形态及如何使用GDbus来实现。基于DBus的应用程序可以是使用DBus Daemon的总线型结构,每个DBus的请求通过DBus Daemon转发;或者是点对点的星型结构,Client与Server之间是直接的Peer2Peer的连接。这俩种结构各有优缺点:总线型的结构比较清晰,Server需要维护的连接较少,实际上只有一个与DBus Daemon相连的连
2014-09-16 10:25:02 8107 9
安全分析模型 HEAVENS
2020-09-22
ISO SAE 21434.DIS 2020.02.12.pdf
2020-09-22
GSN_Standard.pdf
2020-07-15
Rolling Wave Project Planning
2012-07-17
Practice Standard for Work Breakdown Structure_SecondEdition
2012-06-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人