- 浏览: 178969 次
- 性别:
- 来自: 苏州
最新评论
-
jiasky:
好像是在练书法。
Oracle Function -
blackangel_can:
这样的代码见得多了。
Javascript Print(*) -
tianhendi:
Apache Solr and Tomcat6 Search engine -
laserdance:
我想问下,你怎么从Tomcat等服务器中把上述文件xml准确定 ...
Java parse XML methods(4) -
cskysnew:
第二种如果去掉synchronized,就不是线程安全的,应该 ...
Singlton ture or not?
文章列表
Use DOM
<?php
//Creates XML string and XML document using the DOM
$dom = new DomDocument('1.0');
//add root - <books>
$books = $dom->appendChild($dom->createElement('books'));
//add <book> element to <books>
$book = $books->appendChild($dom->createElement('book') ...
- 2007-05-09 21:53
- 浏览 683
- 评论(0)
Last month, joined a new software company,with the probation fly on, I am involved in a bank project,but this project has been online and currently just need some engineers to maintain,
So I learn the project and study the business logic, Found many flaws: The documents and development flow are disor ...
- 2007-05-09 21:34
- 浏览 1271
- 评论(0)
Basically there exists some odd input form in html.
first form validate
Inupt page:input.html
submit page:filteringexample1a.php
Please check the two files,and find the php feature:
filter_var($_GET['1'], FILTER_SANITIZE_STRING)
And more detailed about the filter_var,please refer to the php.net
- 2007-04-19 13:25
- 浏览 924
- 评论(0)
JUnit4 Version inheritates the annotation features from java5.0v,so it simplized many workload for unit test.
Now I am using the feature to speedup my test work.
1.Create your class that will be tested.
package com.aaron;
public class Calculator {
// static variant for store result
private stati ...
In my comany project,due to no time to manage the web structure(php), only leave the pure php files and other scripts in my project.from now on,under the cerntain situation, and with the project on-going and extension,need apply some new style to reorganize the project, The first step is: separate th ...
- 2007-04-17 20:56
- 浏览 1657
- 评论(0)
Recently I always used the Spring+Hibernate+Struts frameworks to persist data into db,
But EJB3 is the standard spec of J2EE,so try to migrate JBoss4.0.5GA J2EE container to study EJB3.
Install:
1.JBoss4.0.5GA(download it ok,then unzip it in a folder) http://jboss.org
2.Obtain the EJB3 for JBoss4. ...
Iostream,iostrstream
Virtual constructor,
Template,STL,
Pointer,reference.
C++ key words:
asm, auto, bool, break, case, catch, char, class, const, const_cast, continue, default, delete, do, double, dynamic_cast, else, enum, explicit, export, extern, false, float, for, friend, goto, if, inline, int, l ...
- 2007-04-12 12:28
- 浏览 1103
- 评论(0)
<?
//插入排序(一维数组)
function insert_sort($arr){
$count = count($arr);
for($i=1; $i<$count; $i++){
$tmp =
- 2007-04-11 22:56
- 浏览 1264
- 评论(0)
JSP指令和脚本元素
Directives <%@ directive %>
Declarations < %! declaration %>
Expressions < %= expression %>
Code Fragment/Scriptlet < % code fragment %>
Comments < %-- comment --%>
指令
JSP指令是为JSP引擎而 ...
- 2007-04-10 20:18
- 浏览 988
- 评论(0)
Today,script an example for hands-on struts.
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.4"
xsi:schemaLocation="http: ...
- 2007-04-05 17:55
- 浏览 1045
- 评论(0)
Famous of web2.0, the script language pushed the web forward based on ajax technology.
Currently,many ajax frameworks can be used, such as dojo,sajax,dwr.....
But I insist on coding that by myself.
var request;
function createRequest(){
try{
request = new XMLHttpRequest();
} catch (e){
try{
...
- 2007-04-05 17:47
- 浏览 1063
- 评论(0)
Python,a good dynamic language,generally used in testing,science calculation and web development.
An elegant project for python in web development,Django an open-source web framework.
Will update some introduction about python.
- 2007-04-05 17:42
- 浏览 954
- 评论(0)
1.OS: xp
2.Server:Apache2.0.59 download: http://httpd.apache.org/download.cgi
3.Database:Mysql5.0.16 download http://www.mysql.com/download
4.PHP5.2 download http://php.net
Modify Apache conf/ http.conf
一.add below to support php
LoadModule php5_module c:/work/php5/php5apache2.dll
P ...
Ready for studying firmware,Feel many things need learn, and what's important understand the mechnism of hardware.
DSP related,Redback manual. Galaxy firmware. full of C/assembly.
- 2007-04-05 17:06
- 浏览 814
- 评论(0)
Monday, Recieved the interview notification from AMAX, then go to the campany.
Firstly,fill in a form and answer some questions about J2EE related and UML case.
Then a manager took my CV and the answer,we talked about some J2EE technology and other thing interesting in english.
Actually,personally fe ...
- 2007-04-05 17:01
- 浏览 656
- 评论(0)