一个普通例子:todos = Todo.objects.filter(owner=request.user).filter(is_done=False).filter(priority=1)弊端:首先,代码冗长,正式的项目中,将会更加复杂。其次,泄露实现细节。比如代码中的is_done是Boolea...
分类:
其他好文 时间:
2014-08-27 01:32:17
阅读次数:
557
什么是bucketbucket的英文解释:Hash table lookup operations are often O(n/m) (where n is the number of objects in the table and m is the number of buckets), whi...
分类:
其他好文 时间:
2014-08-26 17:08:36
阅读次数:
308
Web components, like most objects, usually work with other objects to accomplish their tasks. Web components can do so by doing the following.
Using private helper objects (for example, JavaBeans...
分类:
编程语言 时间:
2014-08-26 09:55:05
阅读次数:
340
本人进入IT行业已接近5个年头,刚入行的时候带着仅有网络基础和系统基础,在校外培训过CCNA和CCNP,还有RHCE,顺利的进入了一家规模还算大的企业,由于是零经验,所学的知识也只是基于理论完全没有工作经验,因此是从基础做起,刚开始的职位是运维监控工程师,当时这职位有5个..
分类:
移动开发 时间:
2014-08-26 02:57:26
阅读次数:
703
/*
-- 0. 快速压缩tempdb为初始值
USE tempdb
DBCC SHRINKFILE(2,TRUNCATEONLY);
*/
-- 1. tempdb下面未回收的临时表 ,某些版本可能查不到数据
use tempdb;
select * from sys.objects o where o.type like '%U%';
-- Chapter 7 - Knowing Tem...
分类:
数据库 时间:
2014-08-25 19:16:54
阅读次数:
233
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ...
分类:
其他好文 时间:
2014-08-24 11:32:02
阅读次数:
164
Description
Combinatorics is a branch of mathematics chiefly concerned with counting discrete objects. For instance, how many ways can you pick two people out of a crowd of
n people? Into how many...
分类:
其他好文 时间:
2014-08-23 20:24:01
阅读次数:
317
1、首先ldd不是一个可执行程序,而只是一个shell脚本2、ldd能够显示可执行模块的dependency,其原理是通过设置一系列的环境变量如下:LD_TRACE_LOADED_OBJECTS、LD_WARN、LD_BIND_NOW、LD_LIBRARY_VERSION、 LD_VERBOSE等。...
分类:
系统相关 时间:
2014-08-23 13:53:20
阅读次数:
334
本篇主要讲解如何为sap business objects 的web intelligence报表组件新增字体。因为系统默认预设的字体对中文而言实在是太丑了,有的字体特喵的直接把中文变成方框框了!一、系统环境:SAP BusinessObjects Business Intelligence (BI...
分类:
Web程序 时间:
2014-08-21 16:28:44
阅读次数:
240
接着上篇。10-一次更新多个对象有时想要对QuerySet中的所有对象的某一个field来设定一个值,这时候可以像下边这样用update():# Update all the headlines with pub_date in 2007.Entry.objects.filter(pub_date_...
分类:
其他好文 时间:
2014-08-21 01:28:37
阅读次数:
232