1. 为网卡配置静态IP地址编辑文件/etc/network/interfaces:sudo vi /etc/network/interfaces并用下面的行来替换有关eth0的行:# The primary network interfaceauto eth0iface eth0 inet sta...
分类:
系统相关 时间:
2014-11-27 14:10:31
阅读次数:
208
坏味道(smell)常用的重构手法(Common Refactoring)Alternative Classes with Different Interfaces, p85Rename Method (273), Move Method (142) Comments, p8...
分类:
其他好文 时间:
2014-11-26 06:35:03
阅读次数:
278
1 package StudyMap; 2 3 /** 4 * 实现简单的map 5 * 效率低 6 */ 7 import javax.crypto.interfaces.PBEKey; 8 9 public class StudyMap {10 keyAssignments[...
分类:
编程语言 时间:
2014-11-26 01:07:51
阅读次数:
280
到谷歌上搜sqlite,第一项便是官方网站:www.sqlite.org。进去后,先了解一下大体,感觉还不错。进入Document页面,大标题SQLite Programming Interfaces下有一些小标题,进入第一个标题SQLite In 5 Minutes Or Less,看到有一段简短...
分类:
数据库 时间:
2014-11-24 18:50:15
阅读次数:
210
有的时候我们在Windows7的环境下使用Wireshark的时候,比如点击【Interface List】的时候,出现错误。
错误内容如下:
There are no interfaces on which a capture can be done.
这个错误是因为系统没有启动NPF服务造成的。
解决的办法很简单:
01、在【开始】–>【运行】
02、输入:cmd
0...
原文链接http://research.swtch.com/interfacesGo's interfaces—static, checked at compile time, dynamic when asked for—are, for me, the most exciting part of...
分类:
其他好文 时间:
2014-11-23 14:20:48
阅读次数:
226
插件代码
接口类头文件 MyPluginInterface.h
#ifndef INTERFACES_H
#define INTERFACES_H
#include
#define QtPluginDemo_iid "org.qt-project.Qt.PluginDemo"
class MyPluginInterface
{
public:
virtual int add(int,...
如何开发Qt插件,可以在Qt Assistant 中搜索"Qt Plugins"或"How to Create Qt Plugins",看看那篇manual中的介绍。
其中涉及到了几个宏
Q_DECLARE_INTERFACE( ClassName, Identifier)
This macro associates the given Identifier (a string li...
分类:
其他好文 时间:
2014-11-21 06:59:25
阅读次数:
195
### 设置静态IP sudo vim /etc/network/interfaces 修改如下部分: auto eth0 iface eth0 inet static address 192.168.0.117 gateway 192.168.0.1 #这个地址你要确认下 网关是不是这个地址 netmask 255.255.255....
分类:
其他好文 时间:
2014-11-20 18:54:42
阅读次数:
246
简介关注于数据值的 ‘shape’的类型检查是TypeScript核心设计原则。这种模式有时被称为‘鸭子类型’或者‘结构子类型化’。。 在TypeScript中接口interfaces的责任就是命名这些类型,而且还是你的代码之间或者是与外部项目代码的契约。初见Interface理解interface...
分类:
其他好文 时间:
2014-11-17 13:42:16
阅读次数:
182