1. Type conversion:If we assign an out-of-range value to an object of unsigned type, the result is the remainder of the value modulo the number of val...
分类:
编程语言 时间:
2014-10-03 18:53:04
阅读次数:
198
原文:http://www.cocoachina.com/newbie/basic/2014/0612/8802.html本页内容包含:泛型形參语句和泛型实參语句本节涉及泛型类型、泛型函数以及泛型构造器的參数,包含形參和实參。声明泛型类型、函数或构造器时,须指定对应的类型參数。类型參数相当于一个占位...
分类:
编程语言 时间:
2014-10-03 18:51:14
阅读次数:
276
一、spring事件spring的事件有如下两个成员。1、ApplicationEvent,容器事件,由容器发布2、ApplicationListener监听器,可以由容器中的任何监听器Bean担任(1)先顶一个spring的容器事件:package cn.study.basic;import or...
分类:
编程语言 时间:
2014-10-03 16:11:14
阅读次数:
251
UVa特别题库
UVa网站专门为本书设立的分类题库配合,方便读者提交:
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=442
注意,下面注有“extra”的习题并没有在书中出现,但在上面的特别题库中有,属于附加习题。
基础练习 (Basic Problems)
...
分类:
其他好文 时间:
2014-10-03 09:56:44
阅读次数:
259
Problem Description
The light travels in a straight line and always goes in the minimal path between two points, are the basic laws of optics.
Now, our problem is that, if a branch of light goes...
分类:
其他好文 时间:
2014-10-03 04:12:15
阅读次数:
162
卡拉兹(Callatz)猜想:对任何一个自然数n,如果它是偶数,那么把它砍掉一半;如果它是奇数,那么把(3n+1)砍掉一半。这样一直反复砍下去,最后一定在某一步得到n=1。卡拉兹在1950年的世界数学家大会上公布了这个猜想,传说当时耶鲁大学师生齐动员,拼命想证明这个貌似很傻很天真..
分类:
其他好文 时间:
2014-10-03 01:26:24
阅读次数:
238
当Jenkins管理的build project越来越多的时候,需要脚本收集每个project的最近一次build结果,从而集中管理,根据业务规则,决定是否重算和何时重算。下面的命令是利用curl和jenkins支持的HTTP Basic Authenticaion来访问指定的某个project的结果。curl http://your_jenkins:8080/job/your_job/lastB...
分类:
其他好文 时间:
2014-10-02 14:27:53
阅读次数:
180
HTTP Basic Authentication原来非常简单,参考文档:http://zh.wikipedia.org/wiki/HTTP%E5%9F%BA%E6%9C%AC%E8%AE%A4%E8%AF%81将用户名和密码用:分隔,然后用base64编码,最后用HTTP GET方法请求页面下面一小段代码用newLISP调用了Jenkins的Remote API:dean@dean-beijin...
分类:
其他好文 时间:
2014-10-02 14:26:53
阅读次数:
171
Vbird Linux:Vim Learning:http://linux.vbird.org/linux_basic/0310vi.phpBash Shell:http://linux.vbird.org/linux_basic/0320bash.phpKey words of reminder:...
分类:
其他好文 时间:
2014-09-30 21:17:00
阅读次数:
172
最近发现python是个不错的语言,值得一学,先配置下环境,让vim具有关键字补全功能,过程如下,我这个是fedora,其他发行版类似
$ su
********
# yum install vim-taglist -y
# wget http://www.pythonclub.org/_media/python-basic/pydiction-1.2.zip
# unzip...
分类:
编程语言 时间:
2014-09-30 17:57:09
阅读次数:
276