经验
sinkary
这个作者很懒,什么都没留下…
展开
-
与第三方整合经验总结
最近因工作需要,需要与第三方pg进行整合。pg只有一个andoid应用,我要做的分析它的事件流,将分析结果与另一种事件流psensor整合,形成新的事件流。目标:pg的click,swipe,press事件有一个共同的起点--down。我需要过滤click,保留swipe和press。同时,在检测到down事件时,读取psensor的值,若不为0,将pg的down和psensor的原创 2012-09-05 14:24:32 · 613 阅读 · 0 评论 -
欢迎使用CSDN-markdown编辑器
gradle 解决依赖冲突这个链接Gradle Goodness很好解释了dependencyInsight的用法,这里取其精华build.gradleapply plugin: 'java'// Set Bintray JCenter as repository.repositories.jcenter()dependencies { // Set dependency for Spri原创 2015-07-02 11:48:52 · 631 阅读 · 0 评论 -
chrome https 信任自签名证书
If you're using Linux, you can also follow this official wiki pages:Configuring SSL certificates on Linux.NSS Shared DB And LINUXNSS Shared DB HowtoBasically:click the lock icon wi转载 2015-05-26 14:57:07 · 12734 阅读 · 0 评论 -
jdb调试
javac -d classes -g package/path/*.javacd classes原创 2014-10-27 23:05:48 · 808 阅读 · 0 评论 -
git 技巧
http://stackoverflow.com/questions/11269256/how-to-name-a-stash-in-git转载 2014-08-29 14:23:44 · 922 阅读 · 0 评论 -
ubuntu 安装 QT 及绘图插件 未完
1. 安装QT 5.1.1 linux 64 位版本(ubuntu 12.04 64bit)下载: http://download.qt-project.org/official_releases/qt/5.1/5.1.1/qt-linux-opensource-5.1.1-x86_64-offline.run安装:$ ./qt-linux-opensource-5.1.1-x86原创 2013-11-14 09:50:04 · 1152 阅读 · 0 评论 -
极其不爽的一天
今天计划用 Qt Creator 2.8.1画图,开始时觉得它的 Design 模式很爽。设置菜单,设置列表,鼠标连接两个窗口部件就可以实现 connect。因为需要自定义 slot,可是一开始找不到在哪创建,按钮是灰色的。后来捣鼓半天,发现并不是所有的部件都可以自定义 slot,好不容易找到原因来点希望了,接着……在 ui 中创建好自定义 slot 时,对应的代码却并没有生成。导致无原创 2013-11-20 17:45:34 · 1503 阅读 · 0 评论 -
qt 连接 postgreSQL
问题:QSqlDatabase: QPSQL driver not loadeduse ldd to find the dependencies of an executable/shared object$ ldd libqsqlpsql.solibpq.so.5 => not found所以,发现缺少了libpq.so.5,这个库位于/usr/local/p原创 2013-11-20 13:55:59 · 3337 阅读 · 0 评论 -
ubuntu 12.04 安装 boost 失败,have unmet dependencies,held broken packages 问题
1. 问题$ sudo apt-get install libboost-all-devReading package lists... DoneBuilding dependency tree Reading state information... DoneSome packages could not be installed. This may mean tha原创 2013-11-18 14:13:39 · 4955 阅读 · 0 评论 -
怎么写平台相关代码整理
How do i include different headers based on my OS?http://stackoverflow.com/questions/6115711/how-do-i-include-different-headers-based-on-my-oswith preprocessor:#ifdef _SUNOS//code#elseif原创 2013-11-18 10:27:37 · 1030 阅读 · 0 评论 -
酷壳: 程序员技术练级攻略
http://coolshell.cn/articles/4990.html前言你是否觉得自己从学校毕业的时候只做过小玩具一样的程序?走入职场后哪怕没有什么经验也可以把以下这些课外练习走一遍(朋友的抱怨:学校课程总是从理论出发,作业项目都看不出有什么实际作用,不如从工作中的需求出发)建议:不要乱买书,不要乱追新技术新名词,基础的东西经过很长时间积累而且还会在未来至少转载 2012-11-20 23:22:28 · 1395 阅读 · 0 评论 -
统计某列出现次数 Counting occurrences in first column of a file
http://superuser.com/questions/521891/counting-occurrences-in-first-column-of-a-fileawk '{h[$1]++} END { for(k in h) print k, h[k] }' | sort -n转载 2015-08-27 11:39:19 · 628 阅读 · 0 评论