Given a triangle, find the minimum path sum
from top to bottom. Each step you may move to adjacent numbers on the row
below.For example, given the fol...
分类:
其他好文 时间:
2014-05-07 02:55:24
阅读次数:
377
免安装版的mysql是进行软件绿色发布的绝佳助手,本文介绍一种使用批处理命令自动配置mysql的方法。
(1)建立三个文件,分别是:service install.bat,temp.txt,update.sql。 (2)在temp.txt文件中写入如下内容:
set PathTemp= (3)在up...
分类:
数据库 时间:
2014-05-07 02:18:59
阅读次数:
376
今天下午做了一个滚动浏览效果,贴在此,积累$(function(){ /* * 滚动浏览 */
$.fn.autoScroll = function(o){ o = $.extend({ speed: 20, step : 1, up : null,
down : null }, o || {})....
分类:
其他好文 时间:
2014-05-07 01:49:02
阅读次数:
234
select * from table where id =
?类似于上面这样的sql,如果不用绑定变量,每次执行时Oracle会认为是不同的sql,会在每次执行时生成一遍执行计划,而执行计划的生成是非常耗CPU,试想一下,如果1000个并发都在执行这条语句,等于同时在生成1000个执行计划。如果使...
分类:
数据库 时间:
2014-05-07 00:58:05
阅读次数:
418
1、查看所有表的物理大小1 select segment_name, bytes from
user_segments order by bytes desc2、查看表空間的名稱及大小1 select t.tablespace_name,
round(sum(bytes/(1024*1024)),....
分类:
数据库 时间:
2014-05-07 00:30:02
阅读次数:
1232
You are given an N × N grid initially filled by zeros. Let the rows and columns of the grid be numbered from1 to N, inclusive. There are two types of operations can be applied to the grid:
RowAdd R...
分类:
其他好文 时间:
2014-05-06 22:35:44
阅读次数:
451
A cricket team consists of 11 players and some are good at batting, others are good at bowling and some of them are good at both batting and bowling. The batting coach wants to select exactly K player...
分类:
其他好文 时间:
2014-05-06 22:23:32
阅读次数:
421
1. 内连接(Inner
Join)
内连接是最常见的一种连接,它页被称为普通连接,而E.FCodd最早称之为自然连接。
下面是ANSI SQL-92标准
select *
from t_institution i
inner join t_teller t
on i.inst_no = t.inst_no
where i.inst_no = "5801"
其中inn...
分类:
数据库 时间:
2014-05-06 21:38:01
阅读次数:
428
工欲善其事,必先利其器。对IDE的熟练程度,真能影响开发效率 。
先普及下常识,以后有新的收获再补充。
最常用快捷键:
Ctrl+E Delete current line
Ctrl-Shift-Up/D Copy lines up/down
Ctrl-/ Add/remove comment lines
Alt-Shift-F Format select...
分类:
Web程序 时间:
2014-05-06 19:54:58
阅读次数:
486
(defun buffer-exists (bufname)
(not (eq nil (get-buffer bufname))))
(defun make-shell (name)
"Create a shell buffer named NAME."
(interactive "sName: ")
(if (buffer-exists "*eshell*")...
分类:
其他好文 时间:
2014-05-06 19:40:04
阅读次数:
262