The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...
分类:
其他 时间:
2015-01-08 19:27:15
收藏:
0 评论:
0 赞:
0 阅读:
224
1.引入dojo.jsdojo的发行包里有4个子目录,要引入的文件是名叫"dojo"的子目录里的dojo.js。 假设你是这样的目录结构:project | +--dojo-lib | | | +--dijit | +--dojo | +--dojox | +--util | +--dojo_hel...
分类:
其他 时间:
2015-01-08 19:26:55
收藏:
0 评论:
0 赞:
0 阅读:
206
一.子页面中的写法 山东省科协 注释:1.zid为虚拟变量可以传递任何id 2.括号内不加引号表示变量表示一类,加引号是字符串表示一种固定值。 二.iframe框架页面中的写法主页面子页面 安...
分类:
其他 时间:
2015-01-08 19:26:15
收藏:
0 评论:
0 赞:
0 阅读:
336
1、模拟下拉框。点击文本框在文本框下面显示一个层divList,点击divList以外的任何地方,关闭divList层document.body.onclick = function (e) { e = e || wi...
分类:
其他 时间:
2015-01-08 19:24:55
收藏:
0 评论:
0 赞:
0 阅读:
264
1、table重置的两个属性:①border-collapse: collapse; /* 为表格设置合并边框模型 */②border-spacing: 0; /* 设置在表格中的单元格之间出现的间距为0 */代码: 序号 开始时间 结束时间 备注 操作 1 2014/8/2 2015/1...
分类:
其他 时间:
2015-01-08 19:24:45
收藏:
0 评论:
0 赞:
0 阅读:
212
2张
分类:
其他 时间:
2015-01-08 19:23:35
收藏:
0 评论:
0 赞:
0 阅读:
248
package?net.kitbox.util;
import?java.awt.AlphaComposite;
import?java.awt.Color;
import?java.awt.Font;
import?java.awt.Graphics;
import?java.awt.Graphics2D;
import?java.awt.Image;
import?j...
分类:
其他 时间:
2015-01-08 18:20:16
收藏:
0 评论:
0 赞:
0 阅读:
257
1 ssh-host-config ?错误: There are still ssh processes running. Please shut them down first. ?解决: ps -ef | grep -v grep | grep ssh??????????kill -9 xxx ? 2?ssh localhost ?错误:c...
分类:
其他 时间:
2015-01-08 18:20:05
收藏:
0 评论:
0 赞:
0 阅读:
299
package main import ( "fmt" ) func main() { a := []int{1,2,3,4} fmt.Println("a:",len(a), cap(a), a) b := [10]int{1,2,3,4} fmt.Println("b:",len(b), cap(b), b) c := make([]int, 4, 10) fmt.Println("c:...
分类:
其他 时间:
2015-01-08 18:19:15
收藏:
0 评论:
0 赞:
0 阅读:
261
log4j.properties总结: 一、介绍 Log4j是Apache的一个开放源代码项目,通过使用Log4j,我们可以控制日志信息输送的目的地是控制台、文件、GUI组件、甚至是套接口服务 器、NT的事件记录器、UNIX Syslog守护进程等...
分类:
其他 时间:
2015-01-08 18:18:55
收藏:
0 评论:
0 赞:
0 阅读:
270
答案来自老外http://stackoverflow.com/questions/14795035/twitter-bootstrap-modal-blocks-text-input-field $(‘#myModal‘).on(‘shown‘, function() {
$(document).off(‘focusin.modal‘);
}); 这个是国内同...
分类:
其他 时间:
2015-01-08 18:17:37
收藏:
0 评论:
0 赞:
0 阅读:
312
Akka Actor_Future的使用 常见的是通过Actor的tell方法给另外一个actor发送消息,但是actor 和 future怎么交互,发送消息,如下, Future<Object>?future?=?Patterns.ask(a,?"are?you?ready?",?timeout);...
分类:
其他 时间:
2015-01-08 18:17:07
收藏:
0 评论:
0 赞:
0 阅读:
296
[epoll详解][1] [Epoll vs. IOCP][2] [1]: http://blog.chinaunix.net/uid-24517549-id-4051156.html [2]: http://blog.csdn.net/sparkliang/article/details/4836536...
分类:
其他 时间:
2015-01-08 18:16:47
收藏:
0 评论:
0 赞:
0 阅读:
246
转发:http://blog.csdn.net/hejinjing_tom_com/article/details/7767127避免’sudoechox>’时’Permissiondenied’甲:示例sudoechoa>1.txt-bash:1.txt:Permissiondenied乙:分析:bash拒绝这么做,说是权限不够.这是因为重定向符号“>”也是bash的命令。sudo只是让e..
分类:
其他 时间:
2015-01-08 18:16:06
收藏:
0 评论:
0 赞:
0 阅读:
337
classTestBreakContinue{
publicstaticvoidmain(String[]args){
for(inti=1;i<=10;i++){
if(i%4==0){
//break;
continue;
}
System.out.println(i);
}
label:for(inti=1;i<5;i++){
for(intj=1;j<=10;j++){
if(j%4==0){
//breakl..
分类:
其他 时间:
2015-01-08 18:15:46
收藏:
0 评论:
0 赞:
0 阅读:
180
https://oj.leetcode.com/problems/candy/http://blog.csdn.net/linhuanmars/article/details/21424783publicclassSolution{
publicintcandy(int[]ratings){
//从左边向右边遍历
//如果这个比前一个大,++
//否则持平
//这样保证左右小孩和他右边的人比较是合法的
//
//同理向..
分类:
其他 时间:
2015-01-08 18:15:25
收藏:
0 评论:
0 赞:
0 阅读:
220
规划:target(server)server:192.168.1.254initiator(client)rs1.china-kody.com192.168.1.215rs2.china-kody.com192.168.1.216rs3.china-kody.com192.168.1.217使用的软件包:server:scsi-target-utilsclient:iscsi-initiator-utilsriccilucigfs2-utilslvm2-cluster配置ser..
分类:
其他 时间:
2015-01-08 18:15:16
收藏:
0 评论:
0 赞:
0 阅读:
340
https://oj.leetcode.com/problems/single-number/http://blog.csdn.net/linhuanmars/article/details/22648829publicclassSolution{
publicintsingleNumber(int[]A)
{
//SolutionA
//returnsingleNum_Xor(A);
//SolutionB
returnsingleNum_BitCompare(A);
//SolutionC
//ret..
分类:
其他 时间:
2015-01-08 18:15:05
收藏:
0 评论:
0 赞:
0 阅读:
304
https://oj.leetcode.com/problems/single-number-ii/http://blog.csdn.net/linhuanmars/article/details/22645599publicclassSolution{
publicintsingleNumber(int[]A){
returnsingleNumber_BitCompare(A,3);
}
privateintsingleNumber_BitCompare(int[]A,intk)
{
inttoRetur..
分类:
其他 时间:
2015-01-08 18:14:55
收藏:
0 评论:
0 赞:
0 阅读:
270
class TestPrinmeNumber{
publicstaticvoidmain(String[]args){
//booleanflag=false;
longstart=System.currentTimeMillis();
l:for(inti=2;i<=100000;i++){//实现100以内的循环
for(intj=2;j<Math.sqrt(i);j++){//优化3
if(i%j==0){
//flag=tru..
分类:
其他 时间:
2015-01-08 18:14:46
收藏:
0 评论:
0 赞:
0 阅读:
217