There is another solution for customizing the appearance of the preferences.Design a normal XML layout with buttons or whatever you want to add to the...
分类:
其他好文 时间:
2014-07-14 00:47:37
阅读次数:
306
add by zhj: 本文作者是DabApps公司的技术主管,作者认为在view中直接使用Django提供的ORM查询方法是不好的,我对此并不赞同,可能作者写这篇文章是给Django的初学者看,所以在说明方法演进时有些罗嗦,至少方法1是没有必要说的。本文介绍了如何给QuerySet类增加方法属性。...
新加了一块网卡 cat /etc/udev/rules.d/70-persistent-net.rules 查看到网卡信息如下# PCI device 0x1022:0x2000 (pcnet32)SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATT...
分类:
系统相关 时间:
2014-07-13 20:24:09
阅读次数:
367
ComboBox:组合框---属性:Text:选中的值Items:组合框中的项Add:添加单个的值AddRange:添加多个的值SelectedIndex:索引值 SelectedValue:隐藏值 ...
Frame 是带有标题和边框的顶层窗口。创建图形化界面思路:1.创建frame窗体;2.对窗体进行基本设置; 比如大小、位置、布局3.定义组件;4.将组件通过add方法添加到窗体中;5.让窗体显示,通过setVisible(ture)。******************************新建...
分类:
编程语言 时间:
2014-07-13 19:09:18
阅读次数:
287
1.设置对话框为无边框方法
ModifyStyle(WS_CAPTION | WS_THICKFRAME, 0, SWP_FRAMECHANGED);
2.设置控件灰色与不灰色
void CMthread1Dlg::OnStop()
{
// TODO: Add your control notification handler code here
m_bRun = FA...
承接前面对whoosh的文章,继续:
写索引文件
下面开始写入索引内容,过程如下:
writer = ix.writer()
writer.add_document(title=u"my document", content=u"this is my document", path=u"/a", tags=u"firlst short", icon=u"/icons/star.p...
分类:
其他好文 时间:
2014-07-12 20:22:08
阅读次数:
342
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
public class Solution {
public String addBinary(String a, String b) {
...
分类:
其他好文 时间:
2014-07-12 19:42:26
阅读次数:
168
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:
其他好文 时间:
2014-07-12 19:06:27
阅读次数:
204