码迷,mamicode.com
首页 > 2015年01月20日 > 全部分享
Android修改横屏的默认角度为顺时针270度
默认的横屏角度是顺时针90度,修改为顺时针270度,即是逆时针90度。 1.查看相关逻辑,可以看到有个布尔值com.android.internal.R.bool.config_reverseDefaultRotation控制翻转: frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManage...
分类:移动开发   时间:2015-01-20 22:23:59    阅读次数:5573
hdu 4004 The Frog's Games【二分】
The Frog's Games Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65768/65768 K (Java/Others) Total Submission(s): 3980    Accepted Submission(s): 1931 Problem Description The annual Ga...
分类:其他好文   时间:2015-01-20 22:23:48    阅读次数:223
hdu 2757 Ocean Currents【广度优先搜索】
Ocean Currents Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1561    Accepted Submission(s): 516 Problem Description For a boat on a ...
分类:其他好文   时间:2015-01-20 22:22:48    阅读次数:195
NVIDIA Jetson TK1学习与开发(五):helloworld的C版本与C++版本
从本篇博文开始,将一一探索Jetson TK1的开发过程,那就从最简单的hello world开始吧。...
分类:编程语言   时间:2015-01-20 22:22:09    阅读次数:223
1014. 福尔摩斯的约会
大侦探福尔摩斯接到一张奇怪的字条:“我们约会吧! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm”。大侦探很快就明白了,字条上奇怪的乱码实际上就是约会的时间“星期四 14:04”,因为前面两字符串中第1对相同的大写英文字母(大小写有区分)是第4个字母'D',代表星期四;第2对相同的字符是'E',那是第5个英文字母,代表一天里的第14个钟头...
分类:其他好文   时间:2015-01-20 22:23:55    阅读次数:217
安卓--网格视图(GridView)实例
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:22:27    阅读次数:256
NVIDIA Jetson TK1学习与开发(六):如何安装CUDA
本文介绍如何安装CUDA,以CUDA6.0为例介绍。...
分类:其他好文   时间:2015-01-20 22:22:43    阅读次数:385
【Java】利用synchronized(this)完成线程的临界区
在《【Java】线程并发、互斥与同步》(点击打开链接)中利用了操作系统通过操作信号量控制的原始方法,完成了线程的互斥与同步,说句题外话,其实这个信号量的算法,是著名的迪杰斯特拉创造的,也就是数据结构、计算机网络上面最短路径算法、迪杰斯特拉算法、Dijkstra算法的贡献人。其实Java里面根本就不需要自己定义一个信号量来实现临界区,Java对于临界区的实现早已封装好了,而且synchronized...
分类:编程语言   时间:2015-01-20 22:23:06    阅读次数:2185
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:23:02    阅读次数:220
【设计模式】对六大原则的宏观把控和微观细化
六大设计原则是面向对象技术的演化,可以理解为是对面向对象的继承。通过结合这六大原则,我们再对23种设计模式进行理解,那就事半功倍了。这又是米老师的思想,宏观把控,微观细化。...
分类:其他好文   时间:2015-01-20 22:23:02    阅读次数:217
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:23:09    阅读次数:187
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:21:52    阅读次数:366
libevent学习二
Libevent库是用来开发高效,可移植的非阻塞IO。它的设计目标: 1. 可移植性 2. 高效性:Libevent试图使用每个平台上的最高效的非阻塞IO的实现 3. 可扩展性:Libevent被设计成,即使程序需要去处理上万条活跃的socket也能运行良好。 4. 方便性:不管在什么情况下,用最正常的方式去用libevent写一个程序,都可能稳定,可移植。 Libevent库包...
分类:其他好文   时间:2015-01-20 22:22:59    阅读次数:174
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:21:20    阅读次数:182
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:47    阅读次数:198
[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:21:27    阅读次数:153
Notification用法
本文介绍了Notification的用法。...
分类:其他好文   时间:2015-01-20 22:20:09    阅读次数:298
2061条   上一页 1 ... 8 9 10 11 12 13 14 ... 122 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!