随笔分类 -  其他

摘要:进程:重量级,有自己的一块内存 线程:轻量级,共享内存 多线程中因为不同的线程共享相同的内存,一个线程完全有可能会破坏另一个线程使用的变量和数据结构。因此,不同线程必须非常注意当时使用的资源,一般来讲,每个线程只有在确保资源不会改变或者它独占访问权的时候才可以使用某个资源。 阅读全文
posted @ 2017-03-31 11:23 Gladitor 阅读(131) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2016-08-21 22:04 Gladitor
摘要:1 #include 2 #include 3 #include 4 /*鼠标画矩形*/ 5 void my_mouse_callback( 6 int event,int x,int y,int flag,void* param 7 ); 8 9 CvRect box; 10 bool drawing... 阅读全文
posted @ 2016-07-21 10:01 Gladitor 阅读(221) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 //开关 5 6 int g_switch_value = 0; 7 8 void switch_callback(int position) 9 { 10 if(position == 0) 11 { 12 printf("off\n"); 13 ... 阅读全文
posted @ 2016-07-21 10:00 Gladitor 阅读(178) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 //平滑处理 5 6 int main() 7 { 8 IplImage* src = cvLoadImage("../pic.jpg"); 9 IplImage* dst = cvCreateImage(cvGetSize(src),IPL_DEPTH_8U,3); 10... 阅读全文
posted @ 2016-07-21 09:56 Gladitor 阅读(305) 评论(0) 推荐(0)
摘要:转: 如果你的自定义ListViewItem中有Button或者Checkable的子类控件的话,那么默认focus是交给了子控件,而ListView的Item能被选中的基础是它能获取Focus,也就是说我们可以通过将ListView中Item中包含的所有控件的focusable属性设置为false 阅读全文
posted @ 2016-05-18 21:41 Gladitor 阅读(172) 评论(0) 推荐(0)
摘要:<!--表格:tr 元素定义表格行,th 元素定义表头,td 元素定义表格单元--><table border="1"> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr></tab 阅读全文
posted @ 2016-03-13 21:40 Gladitor 阅读(151) 评论(0) 推荐(0)
摘要:测试: 阅读全文
posted @ 2016-02-24 21:38 Gladitor 阅读(6092) 评论(0) 推荐(0)
摘要:一、Android线程 1、主线程 应用程序启动时系统会创建一个主线程,又名UI线程,它主要负责用户界面端的处理,把事件分发给相应的用户界面,与Android 的UI组件包进行交互。尽量不要在UI线程里处理耗时很长的那些操作,如网络通信,查询数据库等,因为他们可能会阻塞整个进程,一旦UI线程被阻塞超 阅读全文
posted @ 2016-02-23 11:38 Gladitor 阅读(438) 评论(0) 推荐(0)
摘要:当我安装beautifulsoup4时出现了如下错误: Fatal error in launcher: Unable to create process using '""F:\Program Files_Win10_64\Python27\python.exe"" "F:\Program Fil 阅读全文
posted @ 2015-12-29 18:06 Gladitor 阅读(219) 评论(0) 推荐(0)
摘要:参数: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 8 namespace Hell 阅读全文
posted @ 2015-11-21 17:11 Gladitor 阅读(151) 评论(0) 推荐(0)
摘要:进行自动对齐操作【ctrl+k+f】反撤销---使用组合键“Ctrl+Y”进行反撤销操作使用组合键“Ctrl+J”可以在不完全输入关键词时系统自动添加提示快速隐藏或显示当前代码段ctrl+M+M按两次M注释用组合键“Ctrl+K+C”取消注释用组合键“Ctrl+K+U删除一行代码 Ctrl+L快速切... 阅读全文
posted @ 2015-11-21 16:56 Gladitor 阅读(140) 评论(0) 推荐(0)
摘要:转自 http://blog.csdn.net/renfufei/article/details/24600507 http://www.jdon.com/idea/java/10-example-of-lambda-expressions-in-java8.html Lambda表达式的语法基本语 阅读全文
posted @ 2015-09-01 23:31 Gladitor 阅读(358) 评论(0) 推荐(0)