自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 资源 (20)
  • 收藏
  • 关注

转载 Struts2返回JSON方法总结

Struts2返回JSON有两种方式:1.使用Servlet的输出流写入JSON字符串;2.使用Struts2对JSON的扩展。  一.使用Servlet的输出流    JSON接口的实质是:JSON数据在传递过程中,其实就是传递一个普通的符合JSON语法格式的字符串而已,所谓的“JSON对象”是指对这个JSON字符串解析和包装后的结果。    所以这里只需要将一个JS

2013-11-17 18:31:40 814

转载 Java读文件

import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.FileReader;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamR

2010-04-19 22:09:00 781

转载 Java追加文件

import java.io.BufferedWriter;import java.io.FileWriter;import java.io.IOException;import java.io.RandomAccessFile;import java.io.OutputStreamWriter;import java.io.File;import java.io.File

2010-04-19 22:01:00 2568 1

转载 Abstract class 和 Interface 区别

    1.abstract class 在 Java 语言中表示的是一种继承关系,一个类只能使用一次继承关系。但是,一个类却可以实现多个interface。  2.在abstract class 中可以有自己的数据成员,也可以有非abstarct的成员方法,而在interface中,只能够有静态的不能被修改的数据成员(也就是必须是static final的,不过在 interface中一般不定义

2010-04-12 17:31:00 451

转载 ajax post example

<!-- var http_request = false; function makePOSTRequest(url, parameters) { http_request = false; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new

2010-03-17 15:50:00 473

转载 HTTP Made Really Easy

HTTP is the network protocol of the Web. It is both simple and powerful. Knowing HTTP enables you to write Web browsers, Web servers, automatic page downloaders, link-checkers, and other useful tools.

2010-03-17 15:36:00 623

原创 How to increase VirtualBox Guest host Screen Size

Install Guest Additions1. Start Virtual box and log into Ubuntu. 2. Hit the right ctrl key so you can get your mouse pointer outside the virtual machine. 3.Go to top of virtual window, click on devi

2010-02-12 22:26:00 1039

转载 Installing Apache2 With PHP5 And MySQL Support On Ubuntu 9.04 (LAMP)

In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate. Im running all the ste

2010-02-12 08:46:00 615

原创 ubuntu phpmyadmin not found

用ubuntu server 9.04配置了LAMP服务器,并安装完phpmyadmin后发现从http://mydomain/phpmyadmin访问,提示not found,phpmyadmin 安装后在/usr/share目录下,而apache2的默认web访问目录在/var/www下。在/var/www下增添symbolic  link to phpmyadmin:sudo ln -s

2010-02-11 23:18:00 1500

原创 ubuntu server 9.04 网络配置

检测网络硬件设备命令lspci --- list all PCI devicesudo lshw -c network --- list network hardwarecat /etc/udev/rules.d/70-persistent-net.rules lsmod --- program to show the status of modules in the linux

2010-02-11 13:36:00 702

转载 Ubuntu VI 命令

vi filename :打开或新建文件,并将光标置于第一行首 vi +n filename :打开文件,并将光标置于第n行首 vi + filename :打开文件,并将光标置于最后一行首 vi +/pattern filename:打开文件,并将光标置于第一个与pattern匹配的串处 vi -r filename :在上次正用vi编辑时发生系统崩溃,恢复filename vi filenam

2010-02-11 10:44:00 682

转载 JAVA的容器---List,Map,Set

JAVA容器   解释一:   容器(Container)   Spring 提供容器功能,容器可以管理对象的生命周期、对象与对象之间的依赖关系,您可以使用一个配置文件(通常是XML),在上面定义好对象的名称、如何产生(Prototype 方式或Singleton 方式)、哪个对象产生之后必须设定成为某个对象的属性等,在启动容器之后,所有的对象都可以直接取用,不用编写任何一行程序代码来产生对象,或

2010-02-09 10:45:00 392

转载 gcc 编译器安装配置

目前,GCC可以用来编译C/C 、FORTRAN、JAVA、OBJC、ADA等语言的程序,可根据需要选择安装支持的语言。本文以在Redhat Linux上安装GCC4.1.2为例(因在项目开发过程中要求使用,没有用最新的GCC版本),介绍GCC的安装过程。  安装之前,系统中必须要有cc或者gcc等编译器,并且是可用的,或者用环境变量CC指定系统上的编译器。如果系统上没有编译器,不能安装源代码形式

2009-07-12 20:21:00 2054

原创 VMWare 6.5 安装 Red Hat Linux 9

    写在前面      由于项目的原因,最近需要使用linux+gcc,自己先前在电脑上用vmware安装了RHEL5,可苦于RHEL5下使用gcc一直提示command not found,用which gcc查看发现在PATH内没有gcc,有用whereis gcc发现了gcc的目录,但目录内发现的是可执行文件cc1.exe。从安装光盘内把有关gcc的rpm包都找出来,用root用户登

2009-07-12 14:35:00 2802

原创 使用XmlSerializer的问题

 被序列化的对象必须是public访问权限,对象不能包含Hashtable,如果将对象的构造函数重载,必须包含默认的构造函数,即public constructor(){}对于list操作如下:public class Movie{  public string Title  { get; set; }  public int Rating  { get; set; } 

2009-06-09 18:13:00 858

原创 C#中使用XMLReader读取XML文件

class Test    {        public static void Main(string[] args)        {            string path = "f://xmldoc//xmlrule.xml";                        XmlReader reader = null;            try       

2009-06-09 18:05:00 1795

原创 Python 中的 ‘=’,copy,deepcopy

 使用copy,deepcopy前添加import copyb=a,表示b为a的引用。a,b任一个改变,另一个会改变c=copy.copy(a)  浅拷贝。a,c为2个对象,但a中的子对象,在copy过后,在c中仍然是引用d=copy.deepcopy(a) 深拷贝。a,d为2个对象,与copy不同的是,a或者d中子对象改变后 ,不影响对方的子对象 import cop

2009-03-20 17:53:00 1095

转载 Python字符串的encode与decode

 首先要搞清楚,字符串在Python内部的表示是unicode编码,因此,在做编码转换时,通常需要以unicode作为中间编码,即先将其他编码的字符串解码(decode)成unicode,再从unicode编码(encode)成另一种编码。 decode的作用是将其他编码的字符串转换成unicode编码,如str1.decode(gb2312),表示将gb2312编码的字符串转换成un

2009-03-13 17:26:00 532

原创 Apache_Python Django 配置

 一.安装Apache下载地址: http://httpd.apache.org/apache_2.2.3-win32-x86-no_ssl.msi二、安装mod_python下载地址:http://www.modpython.org/mod_python-3.3.1.win32-py2.5-Apache2.2.exe注:python用的是2.5的,安装目录为D:/Pyth

2009-03-09 22:29:00 1684

转载 如何获得discuz得用户session登陆状态

在你自己做的网页里开头部分加上这个require_once ./bbs/include/common.inc.php;这个路径得自己对照下,总之就是调一次common.inc.php文件,这样就可以用$discuz_uid了,这个变量就是登陆用户的UID号然后你可以>>>>>否则的话就是登陆过的用户了,你可以查询XXX_members where UID=$discuz_uid

2008-09-03 23:36:00 2437

转载 详解定位与定位应用 http://blog.sina.com.cn/s/blog_4bcf4a5e010008o0.html

在CSS中关于定位的内容是:position:relative | absolute | static | fixed static(静态) 没有特别的设定,遵循基本的定位规定,不能通过z-index进行层次分级。relative(相对定位) 对象不可层叠、不脱离文档流,参考自身静态位置通过 top,bottom,left,right 定位,并且可以通过z-index进行

2008-08-28 15:16:00 1501

转载 解读absolute与relative

Absolute,CSS中的写法是:position:absolute;他的意思是绝对定位,他是参照浏览器的左上角,配合TOP、RIGHT、BOTTOM、LEFT(下面简称TRBL)进行定位,在没有设定TRBL,默认依据父级的做标原始点为原始点。如果设定TRBL并且父级没有设定position属性,那么当前的absolute则以浏览器左上角为原始点进行定位,位置将由TRBL决定。一般来

2008-08-28 14:54:00 430

转载 Connecting to MySQL 5.0 from Visual C# 2005

一外国人自写类;http://www.codeproject.com/KB/database/ConnectingToMySQL.asp使用.Net Data Provider Driverhttp://dev.mysql.com/tech-resources/articles/Beginning_MYSQL_5_with_Visual_Studio.NET_2005.pdf

2008-08-05 23:28:00 508

转载 使用.Net连接MySQL

Presently, developers can access MySQL using three different methods.The ODBC.NET Solution - MyODBC DriverUsing MySQL Native .NET ProvidersUsing the OLEDB.NET Solution - MyOLDDB ProviderThe ODBC.NET S

2008-08-05 22:03:00 4730

原创 discuz6.1.0_uc1.0.0整合版+winxp sp2+apache2.2.8+mysql5.0.51a+php5.2.6

  Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 <object classi

2008-08-03 00:00:00 922

SP_Flash_Tool_v5.1452.00.000

MTK刷机工具支持下列MTK platform: MT6573_S00 MT6573_S01 MT6575_S00 MT6575_S01 MT6577_S00 MT6589_S00 MT6572_S00 MT6571_S00 MT6582_S00 MT8135_S00 MT8127_S00 MT6592_S00 MT6595_S00 MT6752_S00 MT2601_S00 MT6795_S00 MT8173_S00 MT6735_S00 MT6735M_S00 MT6753_S00

2015-01-18

HTTP - The Definitive Guide

HTTP 权威指南英文原版 Behind every web transaction lies the Hypertext Transfer Protocol (HTTP) - the language of web browsers and servers, of portals and search engines, of e-commerce and web services. Understanding HTTP is essential for practically all web-based programming, design, analysis, and administration. While the basics of HTTP are elegantly simple, the protocol's advanced features are notoriously confusing, because they knit together complex technologies and terminology from many disciplines.

2014-07-23

Beginning Microsoft Visual C# 2008 Exercise Answers

Beginning Microsoft Visual C# 2008 是经典的C#入门书籍,该资源是这本书课后习题答案。

2013-12-31

Backbone fundamentals

Backbone.js is a lightweight JavaScript library that adds structure to your client-side code. It makes it easy to manage and decouple concerns in your application, leaving you with code that is more maintainable in the long term. This is an open-source book about the Backbone.js library for structuring JavaScript applications.

2013-11-20

Struts2Json example

struts2-json-plugin 示例

2013-11-17

Beginning Microsoft Visual CSharp 2008 source code

Beginning Microsoft Visual CSharp 2008 这本书所有示例的源码。

2011-11-22

Visual Assist X v10.6.1854.0(含破解补丁)

Visual Assist X 10.6.1854.0 支持Visual Studio 2008,Visual Studio 2010。 安装完毕后,将破解补丁拷贝至安装目录下,直接运行即可。

2011-10-11

iPhone Games Projects

iPhone Games Projects 以多个实例介绍了iPhone上游戏的开发

2009-09-07

The Definitive Guide to SQLite

The Definitive Guide to SQLite iPhone支持SQLite,本书作为SQLite入门指南。

2009-09-07

GNU Makefile 中文手册

GNU Makefile 中文手册 介绍Makefile的编写规则

2009-05-08

Programming in Objective-C 2.0

Stephen G.Kochan.的Programming in Objective-C的第二版。iPhone开发不错的入门书籍。也可以作为Objective-C 快速索引

2009-04-17

iPhone基础开发教程源代码

iPhone 基础开发教程随书程序代码。。。

2009-04-17

programming in object-c

Publisher : Sams Publishing Pub Date : October 30, 2003 ISBN : 0-672-32586-1 Pages : 448 Stephen G. Kochan 第一版

2009-04-12

iPhone in Action

iPhone in Action: Introduction to Web and SDK Development (Paperback)

2009-04-06

ppt of Foundations of Security

Foundations of Security What Every Programmer Needs to Know 这本书的ppt

2008-09-12

Foundations of Security What Every Programmer Needs to Know

Foundations of Security What Every Programmer Needs to Know .pdf 一本很不错的网络编程安全的入门书籍

2008-09-12

ADO教程

ADO使用祥解,方便随时查阅

2007-09-28

connectionstring

www.connectionstrings.com中dataserver,database等数据库链接语句

2007-09-28

windows程序设计

书 名:Programming Windows程式开发设计指南<br>出版日期:2000/6/2<br>书 号:957-8239-73-4<br> I S B N:957-8239-73-4<br>原 作 者:Charles Petzold<br>译 者:余孟学<br>

2007-09-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除