摘要: 之前一直受这个问题的困扰,但是因为只是下载程序,下载镜像文件完事就算了。随便keil挂掉。 今天要调试程序,发现开启调试keil就挂掉了,烦。 解决办法参见: http://218.244.144.132/thread 46541 1 1.html 最好先备份自己的3个dll文件,然后替换。 这个办 阅读全文
posted @ 2017-08-03 16:24 林特斯9527 阅读(993) 评论(0) 推荐(0) 编辑
摘要: 参考这里: https://answers.microsoft.com/zh hans/windows/forum/apps_windows_10 movies/win10%E7%9A%84%E7%94%B5%E5%BD%B1%E5%92%8C%E7%94%B5/c3e7696b e30e 4eec 阅读全文
posted @ 2017-07-19 10:01 林特斯9527 阅读(1100) 评论(0) 推荐(0) 编辑
摘要: 从官网下载 eclipse 的 linux 版本 eclipse cpp neon 1a linux gtk x86_64.tar.gz 直接解压就能得到一个可运行的IDE,但是直接点击 eclipse/eclipse 却提示如下在当前目录中没有 jre/bin/java, 说明 ubuntu16. 阅读全文
posted @ 2017-01-10 17:37 林特斯9527 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 参见网址: http://www.cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html Introduction 基于CMake的构建系统是一个高度化的条理分明的目标集合。每一个目标对应着一个可执行文件或者库,或者是一个自定义的包含自 阅读全文
posted @ 2017-01-10 17:37 林特斯9527 阅读(1100) 评论(0) 推荐(0) 编辑
摘要: 终于搞定了安卓开发环境,不知道折腾了多少次,多少个IDE,解决了一个问题,又冒出一个问题.烦死了,最后关头,都快放弃了,重启电脑,打开 android stuio 编译运行居然陈宫了,没有报错,why??? 我把android studio安装用户目录,每次启动都是命令行浏览到对应的目录然后启动,这 阅读全文
posted @ 2016-12-30 23:09 林特斯9527 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Python 定时任务 最近学习到了 python 中两种开启定时任务的方法,和大家分享一下心得。 sched.scheduler() threading.Timer() sched 定时任务 使用sched的套路如下: 第一步新建一个调度器; 第二步添加任务,可以添加多个任务; 第三步让调度器开始 阅读全文
posted @ 2016-12-15 00:06 林特斯9527 阅读(26993) 评论(2) 推荐(2) 编辑
摘要: 最爱的播放器 网易云音乐 哈哈,刚刚折腾了双系统,立马开始了软件安装。 网易云音乐从官网下载对应的 64 位版本,我下载的是 netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb 在命令行下直接安装: sudo dpkg -i netease-cloud-m 阅读全文
posted @ 2016-12-11 17:36 林特斯9527 阅读(996) 评论(0) 推荐(0) 编辑
摘要: Linux子线程退出前的清理工作 阅读全文
posted @ 2015-08-22 16:41 林特斯9527 阅读(2343) 评论(1) 推荐(1) 编辑
摘要: Linux线程函数原型是这样的:1 void* thread_fun(void* arg)它的返回值是 空类型指针,入口参数也是 空类型指针。那么线程的 exit code 也应该是 void * 类型的。但是在主线程怎么捕获子线程的 exit code 并使用的呢?捕获的思路如下:1. 在主线程中... 阅读全文
posted @ 2015-08-22 13:24 林特斯9527 阅读(1088) 评论(0) 推荐(0) 编辑
摘要: # MAN 手册原文: pushd [-n] [+n] [-n] pushd [-n] [dir] Adds a directory to the top of the directory stack, or rotates the stack, making the new top of the stack the ... 阅读全文
posted @ 2015-03-25 11:57 林特斯9527 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 实验:sigsuspend(),sigprocmask()源代码:/* * Program: pause_suspend.c * To test the difference between sigsuspend() and paus(). * Author: zsl * Date: 2014-10-17 * First release. * 参见网页:http://blog.csdn.net/... 阅读全文
posted @ 2014-10-17 16:22 林特斯9527 阅读(751) 评论(0) 推荐(0) 编辑
摘要: 如下是我的测试文件:#include #include #include int main(){ char str1[10] = "123456789"; char str2[10] = "1234567890abcd"; char str3[10] = "12345"; char str4[10] = "12345 12"; char str5[10] = {'1'... 阅读全文
posted @ 2014-09-29 09:09 林特斯9527 阅读(18353) 评论(0) 推荐(0) 编辑
摘要: 嵌入式Linux应用程序开发详解华清远见本文只是阅读文摘。创建一个守护进程的步骤:1、创建一个子进程,然后退出父进程;2、在子进程中使用创建新会话---setsid();3、改变当前工作目录---chdir();4、重新设置文件权限掩码---umask();5、关闭所有的文件描述符---close(fdx);6、设置daemon程序的任务---此例主要在while循环中体现。下面是一个例子程序:/... 阅读全文
posted @ 2014-09-28 09:48 林特斯9527 阅读(1788) 评论(0) 推荐(0) 编辑
摘要: 大型文档,如果把所有的文字都录入在同一个.tex文件中,那个文件的体积是不可估量的,文件的结构式混乱不堪的,文字的定位也是令人头疼的。幸亏latex提供了结构化的处理命令---include。命令\include{filename}(filename不包含后缀名.tex)能够把那个文件filename的内容编译时插入到当前位置。要点:在主文档(例如 main.tex)中书写导言区,包含哪些宏包,对... 阅读全文
posted @ 2014-09-26 14:16 林特斯9527 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 第一个版本:/* who1.c - a first version of the who program * open, read UTMP file, and show results. */#include #include #include #include #include #include #define SHOWHOST /* include remote ma... 阅读全文
posted @ 2014-09-26 14:14 林特斯9527 阅读(373) 评论(0) 推荐(0) 编辑
摘要: Before you do this, you should be in a GOME or KDE environment, then type the following commands to check whether you've stalled the app:$ type evince... 阅读全文
posted @ 2014-08-31 15:43 林特斯9527 阅读(204) 评论(0) 推荐(0) 编辑