码迷,mamicode.com
首页 > 2014年07月10日 > 全部分享
c#中cookies的存取操作
在客户端创建一个username的cookies,其值为gjy,有效期为1天.方法1:Response.Cookies["username"].Value="zxf";Response.Cookies["username"].Expires=DateTime.Now.AddDays(1);方法2:S...
分类:其他好文   时间:2014-07-10 14:45:25    阅读次数:166
grep/awk/sed 或者 并且 否定
Grep 'OR' OperatorFind all the lines in a file, that match any of the following patterns.Using GREP command :grep "pattern1\|pattern2" file.txtgrep -E...
分类:其他好文   时间:2014-07-10 14:44:42    阅读次数:212
LeetCode ---Anagrams() 详解
Notice:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.For example:Input: ["tea","an....
分类:其他好文   时间:2014-07-10 14:44:00    阅读次数:179
最封闭的开源系统,话说Android的八宗罪
最封闭的开源系统,话说Android的八宗罪http://www.ifanr.com/9833Android 分裂的多面性http://tech.cncms.com/shouji/android/34395.html
分类:移动开发   时间:2014-07-10 14:43:23    阅读次数:154
VB6之HTTP服务器的实现(二)
接上篇,这次做了小小的改动和提升。增加了对POST的支持和对其他方法(GET和POST之外的)选择405回复。另外,增加了对CGI的支持,目前可以使用C语言来写(是不是好蠢的赶脚)。相对于上篇,整体做了小小的优化。这次代码就只贴mod_cgi.bas的部分,其他文件我打包了,感兴趣的同学可以下来看看...
分类:其他好文   时间:2014-07-10 14:42:39    阅读次数:274
Access数据库创建、使用
1、创建Access数据库表1)在office中打开Microsoft Access2010,选择空数据库创建数据库StudentInfo。2)创建新表,在表格第一列选择数据类型,并输入列名。3)点击保存,输入数据库表名Student,完成创建。4)将创建的数据库拷贝到项目的Debug文件中即可使用...
分类:数据库   时间:2014-07-10 14:42:02    阅读次数:220
leetcode 题解:Merge Sorted Array(两个已排序数组归并)
题目:Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or eq...
分类:其他好文   时间:2014-07-10 14:41:23    阅读次数:177
并查集类的c++封装,比較union_find algorithm四种实现方法之间的性能区别
问题描写叙述:在计算机科学中,并查集是一种树型的数据结构,其保持着用于处理一些不相交集合(Disjoint Sets)的合并及查询问题。有一个联合-查找算法(union-find algorithm)定义了两个操作用于此数据结构:Find:确定元素属于哪一个子集。它能够被用来确定两个元素是否属于同一...
分类:编程语言   时间:2014-07-10 14:40:47    阅读次数:250
Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.思路:递归。主要是注意调用时起...
分类:其他好文   时间:2014-07-10 14:40:07    阅读次数:196
call-template与apply-templates的区别
之前我用了比较多的call-template,后来说着说着,突然发现apply-templates在大部分的场景下比call-template好用,也更安全一些。 比如,apply-templates可以通过select属性来选择具体要匹配的node-set,如果不存在这样的node-set,就不进...
分类:移动开发   时间:2014-07-10 14:39:23    阅读次数:287
关于C#中的DateTime类型的技巧
* datetime.now.tostring()方法默认的你是无法得到全部的时间的格式的,只能得到日期,得不到具体时间,如果要具体时间,就应该使用 datetime的tostring()重载,datetime.now.tostring("F")这样就能拿到完整的时间格式了.参数format格式详细...
分类:其他好文   时间:2014-07-10 14:38:06    阅读次数:239
This Bag Felt Really Lightweight
Universal filter bag is made of several layers, such as polypropylene, which provides useful filtering at high rates of fluid flow in both low and hig...
分类:其他好文   时间:2014-07-10 14:37:32    阅读次数:162
Java SE (1)之 JFrame 组件 BorderLayout 布局
JAVA 初期,练习SE ,桌面程序,package com.sunzhiyan;import java.awt.*;import java.awt.event.*;import javax.swing.*;//引入 AWT 包 和swingpublic class Demo_1 extends J...
分类:编程语言   时间:2014-07-10 14:36:54    阅读次数:341
js判断是手机访问还是电脑访问
分类:移动开发   时间:2014-07-10 14:36:18    阅读次数:213
linux服务之具体项目
log4jlog4j简介Log4j是Apache的一个开放源代码项目,通过使用Log4j,我们可以控制日志信息输送的目的地是控制台、文件、GUI组件,甚至是套接口服务器、NT的事件记录器、UNIX Syslog守护进程等;我们也可以控制每一条日志的输出格式;通过定义每一条日志信息的级别,我们能够更加...
分类:系统相关   时间:2014-07-10 14:35:38    阅读次数:288
数据库对内存的存储与读取
#include "mainwindow.h"#include #include #include #include #include #include #include #define MAX_BUFFER_SIZE (200)typedef unsigned cha...
分类:数据库   时间:2014-07-10 14:34:54    阅读次数:211
爬虫遇到取到网页为reload的问题
有的网站防采集,会在页面加上this.window.location.reload()
分类:Web程序   时间:2014-07-10 14:34:18    阅读次数:310
1313条   上一页 1 ... 44 45 46 47 48 49 50 ... 78 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!