- 博客(12)
- 收藏
- 关注
原创 How to parse JSON
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.Two basic structures:A collec
2015-05-10 20:57:20 348
原创 How to upload your project to GitHub
1. 在github上注册账号2. 在github上new一个repository选择add .gitignore3. 在MAC电脑生成ssh秘钥ssh-keygen -t rsa -C “email@email.com”在随后出现的输入项中输入以下内容:Enter file in which to save the key (/Users/用户名/...ssh/id_r
2015-05-10 20:27:54 573
原创 How to create a UIView using a Xib
1. Create a new Xcode project2. Choose the template of Single View Application3. Delete storyboard and launchscree.xib4. Modify the file of info.plistdelete [Main storyboard file base name] an
2015-05-10 16:48:35 469
原创 Web Service基础知识之XML
XML-Extensible Markup Language定义:XML is a markup language that defines a set of rules for encoding documents in a format which is both human-readable and machine-readable. <--- XML declaration
2015-04-30 06:39:00 337
原创 Perl计算CRC
CRC生成规则 简单的进行异或运算#!c:\Perl\bin\perl@msg=split(/\s+/, ARGV[0]);$crc=hex(shift(@msg));foreach $tmp (@msg){ $tmp=hex($tmp); $crc=$crc^$tmp;}printf("%X\n",$crc);
2013-01-28 10:04:09 559
原创 UBUNTU下使用QEMU模拟ARM
运行环境 Ubuntu11.4安装包获取 qemu-1.2.0.tar.bz2 http://wiki.qemu.org/Download帮助文档 QEMU Emulator User Documentation http://qemu.weilnetz.de/qemu-doc.html
2012-09-26 14:17:07 344
原创 常见的编程模式
工具篇CodeVisionAVRAVRStudio编程注意点预定义的模块结构及访问typedef struct PORT_struct { unsigned char DIR; // I/O Port Data Direction unsigned char DIRSET; // I/O Por
2012-07-04 15:43:08 424
原创 Putty+Xming实现远程Linux桌面管理
xming的下载地址http://sourceforge.net/projects/xming/files/Putty的设定
2012-07-02 15:12:29 504
原创 Window下用TortoiseGit
环境说明 GIT服务器:XP(本机)/Ubuntu Git客户端:msysgit+TortoiseGit下载地址 http://code.google.com/p/tortoisegit/downloads/list http://code.google.com/p/msysgit/downloads/list安装步骤 略使用流程
2012-06-29 10:44:55 586
原创 并发与竞态
所谓临界区:在任意给定的时刻,该区域的代码只能被一个线程执行;通常通过互斥量可以实现临界区。 信号量的概念:一个信号量就是本质就是一个整数值,被一对函数联合使用(P和V);希望进入临界区的进程将在相关信号量上调用P,如果该信号量大于1,则该信号量减一,该程序进入临界区执行代码。如果该信号量的值为0,该进程进入休眠直到该信号量大于0;退出临界区的进程将通过调用V,使该信号
2012-05-30 10:42:11 273
原创 调试技术
通过打印调试printk(级别 信息);KERN_EMERG~KERN_DEBUG信息的查看有两种:tail -f /var/log/syslog从kernel的ring buffer(环缓冲区)中读取信息(嵌入式设备上常用)dmesg
2012-05-29 16:44:30 193
原创 杂项设备驱动简析
飞凌开发板提供的LED驱动属于杂项设备(miscdevice)驱动。杂项设备共享一个主设备号MISC_MAJOR(10),但次设备号不同。需要引入头文件。使用insmod注册后,在/dev中自动产生设备。使用rmmod取消注册后,将该设备自动删除。 杂项设备结构体:struct miscdevice { int minor; const char *name; const s
2012-05-29 15:36:20 632
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人