The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of gr...
分类:
其他好文 时间:
2014-05-07 06:10:17
阅读次数:
370
One evening Johnny found some funny looking beens in his grandfather's garden shed, and decided to plant one of them. Next morning, to his surprise he found an enormous beanstalk growing in his back y...
分类:
其他好文 时间:
2014-05-07 05:17:42
阅读次数:
303
Description
Squares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings in his 'toilet series' (where he had to use his toilet paper to draw on,...
分类:
其他好文 时间:
2014-05-07 05:16:29
阅读次数:
385
为了方便说明和更加直观的展示jquerymobile的页面初始化过程以及各个事件的触发过程,我绘制了一幅流程图:图中用红色框圈起来的是界面中的事件,测试代码如下:
练习
<meta name="viewport" content="width=device-width,
initial-scale=1.0, maximum-scale=1.0, user-scalable=0;...
分类:
移动开发 时间:
2014-05-07 04:40:07
阅读次数:
450
public static long getTotalSize(String device) {
StatFs sf = new StatFs (device);
//long totalblocks = sf.getBlockCountLong();
//long freeblocks = sf.getFreeBlocksLong();//为使用的,包括 系统保留的部分
long a...
分类:
其他好文 时间:
2014-05-07 02:41:20
阅读次数:
323
Beaming NDEF Messages to Other Devices
Android Beam allows simple peer-to-peer data exchange between two Android-powered devices. The application that wants to beam data to another device must be in ...
分类:
移动开发 时间:
2014-05-06 23:21:48
阅读次数:
620
(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
一、基础
1、说明:创建数据库?CREATE DATABASE database-name?
2、说明:删除数据库?drop database dbname?
3、说明:备份sql server?
--- 创建 备份数据的 device?
USE master?EXEC sp_addumpdevice 'disk', 'testBack', 'c:\mssql7backup\MyNwin...
分类:
数据库 时间:
2014-05-06 18:57:44
阅读次数:
506
安装puppet前准备内容规范ip,主机名,防火墙,双机互信,域名解析1、修改ipmaster
[root@masteretc]#cat/etc/sysconfig/network-scripts/ifcfg-eth0
#AdvancedMicroDevices[AMD]79c970[PCnet32LANCE]
DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
HWADDR=00:0c:29:53:d8:5c
IPADDR..
分类:
其他好文 时间:
2014-05-06 16:58:17
阅读次数:
533
背景
项目要求网站首页放Views生成的区块,并且要求有更多链接。
Views生成的区块默认的更多链接只能选在列表上方和下方
下图是默认在上方的样式图:
为了美观,我将更多链接上移了若干个像素:
.more-link {
position: absolute;
top: 10px;
left: 390px;
}
效果图:
问题
然而,当我在这个区块外面再套一...
分类:
Web程序 时间:
2014-05-06 15:35:27
阅读次数:
454