摘要: 最近发现由于自己不良的安装软件的习惯,shell的PATH路径包含了很多冗余的项。这里使用shell命令去除PATH的冗余项。export PATH=$(echo $PATH | sed 's/:/\n/g' | sort | uniq | tr -s '\n' ':' | sed 's/:$//g')上面的代码可以去除linux环境变量中的重复项。 最近查看环境变量时,发现PATH中包含了很多... 阅读全文
posted @ 2016-01-21 22:43 DarryO 阅读(2306) 评论(0) 推荐(1) 编辑
摘要: Add a syscall to kernel and replace linux kernel of RPi.Prepare: Cross compilerLinux Kernel for RPiReference: Official guideFirstly, get the latest kernel: git clone https://github.com/raspberrypi/... 阅读全文
posted @ 2016-01-21 22:30 DarryO 阅读(297) 评论(0) 推荐(0) 编辑
摘要: In this article, I will use three asynchronous conferencing--select, poll and epoll on serial port to transmit data between PC and Raspberry pi.OutlineCharacter device file of serial portNaive serial ... 阅读全文
posted @ 2016-01-21 22:30 DarryO 阅读(5170) 评论(0) 推荐(0) 编辑
摘要: Opps, my computer system was broken again... Let's repire it.IntroductionThe system of my PC is broken. I could enter the UEFI setting. So that means I coud start my PC using USB flash drive. But firs... 阅读全文
posted @ 2016-01-21 22:29 DarryO 阅读(249) 评论(0) 推荐(0) 编辑
摘要: A few days ago, I have tried to write bare medal program but failed. Now I find that the main mistake is that I have mistake the address of GPIO of BCM 2835(Raspberry Pi 1 for which the sample code is... 阅读全文
posted @ 2016-01-21 22:28 DarryO 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 今天在工程中发现了一个非常消耗CPU资源的过程---一个创建Popup并根据绑定的Collection填充ListBox的过程。通过VS的性能诊断,最终确定的耗时过程锁定在了Popup.isOpen = true这一语句上。该句导致了Listbox的创建。然而,VS的诊断无法再继续深入了。这个句子导致用户输入必须等候Popup弹窗完成,造成了十分尴尬的体验。我曾试图通过线程等方式去解决它,效果并不... 阅读全文
posted @ 2015-10-24 10:20 DarryO 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 之前一直在使用GitHub的Page写静态博客。虽然挺Geek的,但还是常常感觉不方便,并且因为自己不是大牛吸引不到人气。。后来看到Wiz支持Markdown,以及发布博客的功能,加上博客园不错的学习氛围。我决定使用Wiz和博客园来写博客。 然而,这套工具在一开始就出现了不少问题。主要是Wiz发布到博客园的Markdown文本总是不正确,会夹杂一些HTML代码(为了使用博客园的Markdown编... 阅读全文
posted @ 2015-08-11 22:18 DarryO 阅读(177) 评论(0) 推荐(0) 编辑
摘要: Font -- YaHei Consolas Hybrid YaHei ConsolasAsume that we put the font file in /usr/share/fonts/myfonts (with accessary > 444)Then install this font: sudo mkfontscalesudo mkfontdirsudo fc-cache -fvS... 阅读全文
posted @ 2015-08-11 21:47 DarryO 阅读(339) 评论(0) 推荐(0) 编辑