首页 > 2015年01月20日 > 全部分享
NVIDIA Jetson TK1学习与开发(六):如何安装CUDA
本文介绍如何安装CUDA,以CUDA6.0为例介绍。...
分类:其他   时间:2015-01-20 22:21:23    收藏:0  评论:0  赞:0  阅读:719
【Java】利用synchronized(this)完成线程的临界区
在《【Java】线程并发、互斥与同步》(点击打开链接)中利用了操作系统通过操作信号量控制的原始方法,完成了线程的互斥与同步,说句题外话,其实这个信号量的算法,是著名的迪杰斯特拉创造的,也就是数据结构、计算机网络上面最短路径算法、迪杰斯特拉算法、Dijkstra算法的贡献人。其实Java里面根本就不需要自己定义一个信号量来实现临界区,Java对于临界区的实现早已封装好了,而且synchronized...
分类:编程语言   时间:2015-01-20 22:21:17    收藏:0  评论:0  赞:0  阅读:414
Linux yum安装软件过程详解(一)
linux上用yum 方式安装软件并注册成服务 yum -y install httpd* 配置文件位置: /etc/httpd/conf/httpd.conf 服务脚本位置: /etc/rc.d/init.d/httpd 启动服务命令 service httpd restart service默认会启动/etc/rc.d/init.d/下的...
分类:系统服务   时间:2015-01-20 22:20:27    收藏:0  评论:0  赞:0  阅读:307
【设计模式】对六大原则的宏观把控和微观细化
六大设计原则是面向对象技术的演化,可以理解为是对面向对象的继承。通过结合这六大原则,我们再对23种设计模式进行理解,那就事半功倍了。这又是米老师的思想,宏观把控,微观细化。...
分类:其他   时间:2015-01-20 22:20:17    收藏:0  评论:0  赞:0  阅读:331
qsort对各数据类型的测试样例
//挺有收获的 //qsort Demo #include #include //qsort #include using namespace std; int cmp_int(const void *a,const void *b) { return *(int *)a - *(int *)b; } int cmp_char(const void *a,const void *...
分类:其他   时间:2015-01-20 22:20:07    收藏:0  评论:0  赞:0  阅读:334
Good Bye 2014 D. New Year Santa Network
D. New Year Santa Network time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output New Year is coming in Tree World! In this w...
分类:Web开发   时间:2015-01-20 22:19:57    收藏:0  评论:0  赞:0  阅读:249
libevent学习二
Libevent库是用来开发高效,可移植的非阻塞IO。它的设计目标: 1. 可移植性 2. 高效性:Libevent试图使用每个平台上的最高效的非阻塞IO的实现 3. 可扩展性:Libevent被设计成,即使程序需要去处理上万条活跃的socket也能运行良好。 4. 方便性:不管在什么情况下,用最正常的方式去用libevent写一个程序,都可能稳定,可移植。 Libevent库包...
分类:其他   时间:2015-01-20 22:19:47    收藏:0  评论:0  赞:0  阅读:322
UVa 540 Team Queue(团队队列)
题意  模拟团队队列的入队和出队 STL应用  用一个队列维护团队编号  再用一个队列数组维护个体 #include #include #include #include using namespace std; const int N = 1000005; int team[N]; int main() { int cas = 0, n, t, a; char cm...
分类:其他   时间:2015-01-20 22:19:37    收藏:0  评论:0  赞:0  阅读:292
poj1087 网络最大流
http://poj.org/problem?id=1087 Description You are in charge of setting up the press room for the inaugural meeting of the United Nations Internet eXecutive (UNIX), which has an international ma...
分类:其他   时间:2015-01-20 22:19:27    收藏:0  评论:0  赞:0  阅读:312
[LeetCode]9.Palindrome Number
【题目】 Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? (ie, -1) If you are thinking of...
分类:其他   时间:2015-01-20 22:19:17    收藏:0  评论:0  赞:0  阅读:271
Notification用法
本文介绍了Notification的用法。...
分类:其他   时间:2015-01-20 22:19:07    收藏:0  评论:0  赞:0  阅读:446
JavaEE----Action接受请求参数
一、 Action中如何接受请求参数 parameter  * 实际开发中 不推荐在Action中 去使用Servlet API  1、三种方式:  1) 通过Action 成员变量, 自动接收请求参数  在Action中定义成员变量,变量名称和form元素 name属性一致,并为成员变量 提供setter    完成参数封装  2)使用单独Model 对象,基于客户端...
分类:编程语言   时间:2015-01-20 22:18:57    收藏:0  评论:0  赞:0  阅读:232
[C++]LeetCode: 114 Permutation Sequence(返回第k个阶乘序列——寻找数学规律)
题目: The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, We get the following sequence (ie, for n = 3): "123""132""213"...
分类:编程语言   时间:2015-01-20 22:18:47    收藏:0  评论:0  赞:0  阅读:1463
基础MySQL语句
#创建表 #create table stu(id int primary key,  name char(10), age int); #删除表 #drop table stu; #增加 #insert into stu(id, age, name) values(1, 20, '小明'); #insert into stu(id, name, age) values(5, ...
分类:数据库技术   时间:2015-01-20 22:18:37    收藏:0  评论:0  赞:0  阅读:327
wcf之一
wcf系列之一...
分类:其他   时间:2015-01-20 22:18:27    收藏:0  评论:0  赞:0  阅读:315
线程同步工具CountDownLatch的使用
CountDownlatch,是一种Sychronizer,它可以延迟线程的进度直到线程的进度到线程到达终止状态。   它本身而言是Java并发包中非常有用的一个类,它可以让某些任务完成以后再继续运行下面的内容,每个任务本身执行完毕后让计数器减一,直到计数器清零后,以下的内容才可以继续运行,否则将阻塞等待。 CountDownLatch的一个非常典型的应用场景是:有一...
分类:编程语言   时间:2015-01-20 22:18:17    收藏:0  评论:0  赞:0  阅读:357
UVa 136 Ugly Numbers(优先队列)
题意  质因数只可能有2,3,5的数称为丑数  输出第1500个丑数 STL优队列应用  1是丑数 丑数的2,3,5倍都是丑数  用优先队列模拟就行了 #include #include #include #include using namespace std; typedef long long ll; //priority_queue, greater > q; struct...
分类:其他   时间:2015-01-20 22:18:07    收藏:0  评论:0  赞:0  阅读:359
识别Mac电脑上文件的命令行技巧
有时你会因一个文件而迷惑,这个文件可能是在你的文件夹中的一个未知类型的文件,它可能是你的父母或者客户给你的。不幸的是,你不知道它到底是一种什么样的文件。在Mac上文件是不带有拓展名的,所以可能并没有足够的信息来告诉你“Flongnozzle-2012”到底包含了什么内容。然而终端(Terminal)可以为你提供一些便利,你可以使用一些内嵌的命令行工具来帮助你鉴别文件。...
分类:系统服务   时间:2015-01-20 22:17:57    收藏:0  评论:0  赞:0  阅读:524
Chronometer组件实现计时器小程序
main.xml代码如下: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertica...
分类:其他   时间:2015-01-20 22:17:47    收藏:0  评论:0  赞:0  阅读:419
浅析404页面存在的意义和设计技巧
一个好的网站能够给用户良好的交互体验,能够善意的提醒用户,甚至让用户莞尔一笑,这似乎立刻能够让你的网站高大上起来,所以404页面的使用是非常重要的。...
分类:其他   时间:2015-01-20 22:17:37    收藏:0  评论:0  赞:0  阅读:338
1901条   上一页 1 ... 7 8 9 10 11 ... 96 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!