Map map = new HashMap();for (int i = 0; i > iter = map.entrySet().iterator();while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); ...
分类:
其他好文 时间:
2014-08-19 14:09:34
阅读次数:
245
上一篇写到MakingQuey中的filter,本篇接着来。10)-扩展多值的关系如果对一个ManyToManyField或ForeignKey的表进行filter过滤查询的话,有2中方法可以用。分别是:#1Blog.objects.filter(entry__headline__contains=...
分类:
其他好文 时间:
2014-08-19 00:48:43
阅读次数:
397
1 package com.lw.leet3; 2 3 import java.util.HashMap; 4 import java.util.Iterator; 5 import java.util.Map; 6 import java.util.Map.Entry; 7 ...
分类:
其他好文 时间:
2014-08-17 19:45:52
阅读次数:
259
mysql更改用户权限 This entry was posted by admin Monday, 26 April, 2010 1.“grant all on *.* to?root@’%’?identified by ‘yourpassword’;”——这个还可以顺带设置密码。 2.“flush privileges; ”—...
分类:
数据库 时间:
2014-08-17 11:52:02
阅读次数:
392
In the model layer, the Model class is the base class while the ModelBase class is metaclass. They are the entry points of the whole model layer...
分类:
其他好文 时间:
2014-08-16 22:32:31
阅读次数:
282
1 package Aug14.IO; 2 3 4 5 import java.io.*; 6 import java.util.*; 7 import java.util.Map.Entry; 8 9 class Student implements Serializa...
分类:
其他好文 时间:
2014-08-15 17:35:29
阅读次数:
254
1 package Aug14.IO; 2 3 import java.io.*; 4 import java.util.*; 5 import java.util.Map.Entry; 6 7 public class TestCurrentAccount { 8 9 ...
分类:
其他好文 时间:
2014-08-15 17:25:29
阅读次数:
222
CCIE学习笔记之EEM当内存使用到一定程度生成日志并发邮件:注册applet并进入applet配置模式:Router(config)#eventmanagerappletmemory-fail定义触发事件:eventsnmpoidoid-valueget-type{exact|next}entry-opoperatorentry-valentry-value[exit-comb|and}][exit-opoperator][e..
分类:
其他好文 时间:
2014-08-13 15:18:47
阅读次数:
589
opencv对图像进行边缘及角点检测
先看结果:
代码:
// ConsoleApplication1_812.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "opencv2/opencv.hpp"
class Imagedetector{
...
分类:
其他好文 时间:
2014-08-12 22:05:44
阅读次数:
298
1.检查从库show slave status \G;Slave_IO_Running: YesSlave_SQL_Running: No2.出现类似如下的报错:Last_SQL_Error: Error 'Duplicate entry '1001-164761-0' for key 'PRIMA...
分类:
数据库 时间:
2014-08-12 18:40:54
阅读次数:
257