现在位置: 首页 > packager发表的所有文章
  • 11月
  • 02日
综合 ⁄ 共 1477字 评论关闭
转载:http://blog.yikuyiku.com/?p=1035 目录 一、IE缓存机制大体说明 二、IE如何根据HTTP响应头来存储缓存 三、IE接受用户操作时如何使用缓存 四、有可能的后续实验,以及本次实验的局限性 五、测试工具、方法及其它附录 一、IE缓存机制大体说明 IE的缓存是以URL为标识的文件形式存储。实现步骤分为存储和使用(验证)。 A>存储(标记)缓存 接收HTTP响应头====>存储并且标记缓存文件 B>使用(验证)缓存 接受用户操作====>判断并且使用缓存文件 下面两节将分别讲述这两个方面的实测结果。 二、IE如何根......
阅读全文
  • 10月
  • 10日
移动开发 ⁄ 共 6653字 评论关闭
大家好,这一节给大家分享的是Android中几种图像特效处理的小技巧,比如圆角,倒影,还有就是图片缩放,Drawable转化为Bitmap,Bitmap转化为Drawable等等. 废话少说了,直接讲解今天的实例,本例主要是先获取壁纸(getWallpaper()),然后对当前壁纸的一些特效处理.大家按步骤一步一步来: 第一步:新建一个Android工程命名为ImageDemo,工程结构如下: 第二步:新建一个.java文件,命名为ImageUtil.java,在里面定义一些图片处理方法,代码如下: view plain package com.android.tutor;   import android.graphics.Bitmap;   import andr......
阅读全文
  • 04月
  • 26日
综合 ⁄ 共 1876字 评论关闭
  import java.io.*; import java.net.*; import java.security.cert.CertificateException; import java.security.cert.X509Certificate; import javax.net.ssl.*; public class TrustSSL { private static class TrustAnyTrustManager implements X509TrustManager {    public void checkClientTrusted(X509Certificate[] chain, String authType)      throws CertificateException {    }    public void checkServerTrusted(X509Certificate[] chain, String authType)      throws CertificateException {    }    public X......
阅读全文
  • 04月
  • 19日
综合 ⁄ 共 2362字 评论关闭
http://en.wikipedia.org/wiki/Round-robin_tournament You need to organize a football tournament. There are n teams given. You need to prepare a schedule for the matches so that each team plays with every other team and on the same day no team plays twice. You want to finish the tournament as early as possible. If  is the number of competitors, a pure round robin tournament requires  games. If  is even, then in each of  rounds,  games can be run in parallel, provided there exist suffic......
阅读全文
  • 04月
  • 02日
综合 ⁄ 共 1644字 评论关闭
题意:dota中的英雄 Pudge 有一hook 这hook 可由三种材料构成 分别如下 For each cupreous stick, the value is 1. For each silver stick, the value is 2. For each golden stick, the value is 3. 现输入 x y z 表示x到y的hook 的值变为z 。z如上如述 求最后,hook的值 思路:线段树 普通的线段树会超时,得成段更新 用到了延迟覆盖 //890MS    5336K #include <stdio.h> #define M 100005 struct data {     int l,r;     int add,val,cover; }node[3*M]; void BuildTree(int left,int right,int u) {     node[u].l......
阅读全文
  • 03月
  • 06日
综合 ⁄ 共 1663字 评论关闭
原文地址:数据结构-校园导游咨询系统(c语言版)作者:陶陶 //本程序最好在VC++中运行,但这是C程序,在TC中,显示结果会出现乱码,TC不支持汉字 #include "string.h" #include "stdio.h" #include "malloc.h" #include "stdlib.h" #define Max 20000 #define NUM 9 typedef struct ArcCell {  int adj;  }ArcCell; typedef struct VertexType {  int number;   char *sight;   char *description; }VertexType;   typedef struct {  VertexType vex[NUM];  ArcCell arcs[NUM][NUM];  int vexnum,arcnum; }MGraph;   MGraph G; ......
阅读全文
  • 05月
  • 18日
综合 ⁄ 共 1111字 评论关闭
最近几日很纠结,事情很多,因为我这个刚满23岁的人同时也要大专毕业了,不过能否拿到毕业证却还是未知之数~   事情很多: 多修了4个学分,昨天在财务处一下子就花掉了我260闷,真是割肉的痛啊,瞬间就从吃喝不愁跌落到浑身上下只有10来块的窘境。不过比起我寝室里的另一个同学的520闷,还只能算是小case了,最最悲剧的要算同届一个童鞋,多修24个学分,要缴纳65*24块钱,哎,想想都肉疼~其实我早已经做好心理准备哪,必须的撒,以前逃了那么多课,总得付出点代价不~   学校寝室不能住了,待会儿又要将深圳好友搁这儿的物件邮寄回......
阅读全文
--DB2 在线增量备份数据库、还原增量备份数据库、前滚恢复数据库脚本--彭建军 --2007-4-19 15:01 --说明:在线增量备份前提: --1、更改数据库参数 logretain, userexit, trackmod 为 on --2、更改参数之后完全离线备份数据库一次 --3、之后就可以进行在线、在线增量备份了 --测试结果通过,脚本如下。 --重要!数据库归档日志必须按时备份至另一个地方,本例中为 C:/TESTDB.0/SQLOGDIR -------------------------------------------------------------------------------- C:/Documents and Settings/Administrator>cd/ C:/>......
阅读全文
  • 04月
  • 22日
综合 ⁄ 共 5946字 评论关闭
HelloWorldScene.h #ifndef __HELLOWORLD_SCENE_H__ #define __HELLOWORLD_SCENE_H__ #include "cocos2d.h" class HelloWorld :public cocos2d::CCLayer { public:     // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone    virtual bool init();       // there's no 'id' in cpp, so we recommand to return the exactly class pointer    static cocos2d::CCScene* scene();          CREATE_FUNC(HelloWorld);         void testSprite(); }; ......
阅读全文
  • 04月
  • 07日
综合 ⁄ 共 1214字 评论关闭
http://www.eygle.com/archives/2007/11/howto_change_global_name.html 我们应该都很熟悉global_name这个词,在进行db link的创建时,通常都需要关注一下global_name.注意,我这里说的不是初始化参数global_names。 通过视图global_name可以获得当前参数的设置: SQL> select * from global_name; GLOBAL_NAME--------------------------------------------------WAPDB.REGRESS.RDBMS.DEV.US.ORACLE.COM   那么这个global_name视图的数据来自何处呢?通过global_name视图的创建语句我们可以获得如下信息: create or replace v......
阅读全文
  • 03月
  • 23日
综合 ⁄ 共 1030字 评论关闭
Running Seam examples with JBoss Application Server 4.2.X Most of the Seam example applications will work out of the box with JBoss Application Server 4.2.X. See the readme.txt files in each example applications for more information or follow these step-by-step instructions: Download JBoss AS 4.2.X and start JBoss with the bin/run.(sh/bat) script. Edit build.properties in your Seam directory and configure the jboss.home property to be your JBoss AS installation directory. In the j......
阅读全文
  • 02月
  • 06日
综合 ⁄ 共 146字 评论关闭
 该程序于2003年完成,学习C语言不到一年。它是用C所写的第一个“较大”的程序,对我来说意义重大! 该程序支持中文,运行平台ucdos(好古老的中文DOS)。 【主菜单】 【密码修改】 【主界面】 下载:[http://www.cnblogs.com/Files/Groov0V/SDMSC.rar]
阅读全文