# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Eacha
# entry sh...
分类:
其他好文 时间:
2014-09-24 19:46:27
阅读次数:
308
当创建一个UiScrollable对象时,如果指定的参数是new UiSelector().scrollable(true),那么会出现以下问题
当可滚动控件(比如ListView)不满一页不需要滚动时,创建的UiSrollable对象返回值是为空的。
所以以下代码是错误的:
//Find out the new added note entry
UiScrollable...
分类:
其他好文 时间:
2014-09-24 09:40:56
阅读次数:
199
eclipse是下载的是解压就能用的,但是没有桌面图标就显得很无力了。自己写了一个eclipse.desktop放到/usr/share/applications/目录下,就可以了,然后直接拖到启动栏里边就OK了。
[Desktop Entry]
Version=1.0
Name=eclipse
Exec=/opt/kangear/eclipse/eclipse
Icon=/opt/ka...
分类:
系统相关 时间:
2014-09-24 01:21:15
阅读次数:
255
最近写一个控制台程序,并且希望该控制台程序运行时不显示控制台窗口,于是在程序include语句下面加入如下代码#pragma comment (linker,"/subsystem:\"windows\" /entry:\"mainCRTStartup\"")而原先的控制台程序入口为int wmai...
分类:
其他好文 时间:
2014-09-23 20:02:55
阅读次数:
156
1.图纸结构图纸包括两种结构关系: 一种是层次式图纸,该连接关系是纵向的,也就是某一层次的图纸只能和相邻的上级或下级有关系; 另一种是扁平式图纸,该连接关系是横向的,任何两张图纸之间都可以建立信号连接。2.网络连接方式 Altium Designer提供了6类网络标识分别是:Net Label(网络...
分类:
其他好文 时间:
2014-09-23 19:20:15
阅读次数:
9008
// Test.cpp : Defines the entry point for the console application.//#include #include #include #include class Animal{ public: char name[15]; int he...
分类:
其他好文 时间:
2014-09-23 19:08:25
阅读次数:
184
SparseArray-用Array的方式实现Integer-Object的map优:节约内存,因为避免了装箱/拆箱,数据结构不依赖Entry劣:速度不及HashMapdip、pxdip(device independent pixels)-设备独立像素,所有设备的数值都是 宽*高=320dip*4...
分类:
其他好文 时间:
2014-09-23 15:44:54
阅读次数:
146
http://acm.hdu.edu.cn/game/entry/problem/show.php?chapterid=3§ionid=1&problemid=10 1 #include 2 #include 3 #include 4 #define maxn 300000 5 usi...
分类:
其他好文 时间:
2014-09-21 22:04:01
阅读次数:
303
HashMap底层用哈希算法实现,下面看一下哈希算法的整体概括:
当map.put(“key”,”values”);的时候,底层是这样的:
static final Entry[] EMPTY_TABLE = {};
transient Entry[] table = (Entry[]) EMPTY_TABLE;
/**
* The number of key-...
分类:
其他好文 时间:
2014-09-21 16:37:10
阅读次数:
361
本文转载自:http://blog.csdn.net/jcodeer/article/details/1811302#Tkinter教程之Entry篇#Entry用来输入单行文本'''1.第一个Entry程序'''fromTkinterimport*root=Tk()Entry(root,text=...
分类:
其他好文 时间:
2014-09-21 12:29:40
阅读次数:
273