首页 > 其他
[翻译]Django速查表
原文在此:https://code.djangoproject.com/wiki/DjangoCheatSheetDjango速查表Django教程已经非常好了。这个速查表的作用是创建一个快速开始指南,以便在读过一两遍教程之后能有一个更好的手册。创建一个项目…django-admin.py star...
分类:其他   时间:2014-03-05 16:49:09    收藏:0  评论:0  赞:0  阅读:548
Codeforces Round #219 (Div. 2) D题
D. Counting Rectangles is Funtime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is ann?×?mrec...
分类:其他   时间:2014-03-05 16:47:38    收藏:0  评论:0  赞:0  阅读:552
SGU100
Read integers A and B from input file and write their sum in output file.InputInput file contains A and B (0 2 #include 3 using namespace std; 4 5 int...
分类:其他   时间:2014-03-05 16:44:34    收藏:0  评论:0  赞:0  阅读:506
poj 2343
1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 vector g[6002]; 9 int w[6002],d[6002][2];10 11 __int64 dfs(int i,int...
分类:其他   时间:2014-03-05 16:41:30    收藏:0  评论:0  赞:0  阅读:593
C#尝试读取或写入受保护的内存。这通常指示其他内存已损坏。
安装VS2013后,win7 + .net 4 + c#程序无法连接到SQL Server2000的实例SQLServer2012在登录远程服务器实例时报错:尝试读取或写入受保护的内存。“尝试读取或写入受保护的内存。这通常指示其他内存已损坏。”等错误。解决办法:试一试重置LSP管理员身份运行 cmd...
分类:其他   时间:2014-03-05 16:35:22    收藏:0  评论:0  赞:0  阅读:733
zTree的使用
一、节点模糊搜索功能:主要是搜索成功后,节点展开与收缩的控制;这里的代码只考虑三级节点,写死的,有待完善。二、节点异步加载:1、展开节点时加载数据;2、选中节点时加载数据注意:前后台代码并不是对应的,这里只是示意。前台代码如下:View Code View Code 后台代码(后台返回Json数据)...
分类:其他   时间:2014-03-05 16:33:46    收藏:0  评论:0  赞:0  阅读:583
sublime text 配置golang开发环境
一、准备工作: 1、下载Go语言包:https://code.google.com/p/go/downloads/list 2、下载Git:https://code.google.com/p/msysgit/downloads/list 3、下载Sublime 2:http://www.sublim...
分类:其他   时间:2014-03-05 16:32:17    收藏:0  评论:0  赞:0  阅读:561
C# 学习之旅(2)--- 意外的收获
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7...
分类:其他   时间:2014-03-05 17:16:59    收藏:0  评论:0  赞:0  阅读:303
01 - 介绍
内容 介绍术语目录和文件配置Tomcat到哪里找帮助原文链接 http://tomcat.apache.org/tomcat-7.0-doc/introduction.html1. 介绍不管是开发者还是系统管理员, 都要先了解一些关于TOmcat的知识以后才能开始工作. 本文就是关于Tomcat容器...
分类:其他   时间:2014-03-05 17:14:56    收藏:0  评论:0  赞:0  阅读:569
bat删除指令
今天在机房看到这个激活指令,发现激活后有自删除的功能。遂记录。Oem7F7.exe /a /acer /randon /protectdel Oem7F7.exedel 激活.batOem7F7.exe /a /acer /randon /protectdel Oem7F7.exedel 激活.ba...
分类:其他   时间:2014-03-05 17:14:18    收藏:0  评论:0  赞:0  阅读:529
【软件工程】用map 实现把英语文本文件词和个数打印出来
#include #include #include #include using namespace std;void main(void) { ifstream input("c:\\urce2.txt"); string str; map string_count ; while(input>...
分类:其他   时间:2014-03-05 17:12:13    收藏:0  评论:0  赞:0  阅读:384
Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他   时间:2014-03-05 17:02:57    收藏:0  评论:0  赞:0  阅读:475
Struts2使用拦截器完成权限控制示例
http://aumy2008.iteye.com/blog/146952Struts2使用拦截器完成权限控制示例示例需求: 要求用户登录,且必须为指定用户名才可以查看系统中某个视图资源;否则,系统直接转入登陆页面。一、页面部分1、登陆页面代码(login.jsp)Java代码2、登陆成功页面(we...
分类:其他   时间:2014-03-05 16:43:00    收藏:0  评论:0  赞:0  阅读:572
银行家算法
一、算法思想:在进程请求资源之前1、实际资源检测: Request Need[i]) error; 2 if(Request > Available) sleep(); 3 //假设分配 4 Available -= Request; 5 Allocation[i] += Request; 6 Ne...
分类:其他   时间:2014-03-05 16:36:52    收藏:0  评论:0  赞:0  阅读:373
Nhibernate and multiple thread
http://nhforge.org/blogs/nhibernate/archive/2011/03/03/effective-nhibernate-session-management-for-web-apps.aspxhttp://stackoverflow.com/questions/788...
分类:其他   时间:2014-03-05 16:38:25    收藏:0  评论:0  赞:0  阅读:474
九度 1525:子串逆序打印
总结1. getline(cin, string)2. getline 不能和 scanf 联合使用. 联合使用的话, 一个数会被读入多次题目描述:小明手中有很多字符串卡片,每个字符串中都包含有多个连续的空格,而且这些卡片在印刷的过程中将字符串的每个子串都打印反了,现在麻烦你帮小明将这些字符串中的子...
分类:其他   时间:2014-03-05 16:30:44    收藏:0  评论:0  赞:0  阅读:413
Hiberbate中的一对多关联查询
Hibernate中一对多关系的应用案例:一个人可以拥有多辆小轿车目的:通过hibernate的相关配置,利用HQL语句成功的查询出某人拥有某些车辆1、 项目结构2、 domain类的创建详情(此处略去set和get方法)3、 数据库的表对应关系4、 Person.hbm.xml文件的配置5、Car...
分类:其他   时间:2014-03-05 16:24:29    收藏:0  评论:0  赞:0  阅读:618
Codeblocks 添加库(undefined reference 错误的处理)
静态库 (扩展名为 .a或 .lib) 是包含函数的文件,用于在link阶段整合执行程序,动态链接库(扩展名 .dll)是不在link阶段整合进执行程序中的。DLL文件在执行阶段动态调用下面我们将用免费的开发工具CodeBocks开发静态库创建静态库启动Codeblocks并创建一个类型为 "Sta...
分类:其他   时间:2014-03-05 16:22:53    收藏:0  评论:0  赞:0  阅读:709
vector
1. 空间运用灵活性 vector与数组的唯一差别就在于空间运用的灵活性。vector的空间是可以动态增长的(但是不能减小)。需要空间运用的灵活性,vector就必须引入空间增长的机制,相应的也会有一些属性和接口。如下图:2. vector的操作:push_back, pop_back, resiz...
分类:其他   时间:2014-03-05 16:21:24    收藏:0  评论:0  赞:0  阅读:277
shell部分面试题
1.用Shell编程,判断一文件是不是块或字符设备文件,如果是将其拷贝到 /dev 目录下。#!/bin/bash#1.sh#判断一文件是不是字符或块设备文件,如果是将其拷贝到 /dev 目录下#file executable: chmod 755 1.shPATH=/bin:/sbin:/usr/...
分类:其他   时间:2014-03-05 16:18:21    收藏:0  评论:0  赞:0  阅读:457
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!