星期二, 一月 13, 2009
星期二, 十二月 09, 2008
星期一, 十二月 08, 2008
星期一, 十二月 01, 2008
星期六, 十一月 29, 2008
星期六, 八月 23, 2008
2008年了,外来子女平等接受义务教育的问题
新华网北京8月23日电(记者 吴晶)国务院决定:从2008年秋季学期开始在全国范围内全面免除城市义务教育阶段学生学杂费。教育部部长周济23日提出,要努力做好进城务工人员随迁子女就学工作,保障其平等接受义务教育的权利。
周济在教育部、财政部联合
会议要求,各地区、各有关部门要统一思想,确保免除城市义务教育阶段学生学杂费工作顺利实施,把好事切实办好。一要完善城市义务教育经费保障机制,加强预 算管理,严格按照预算办理各项支出,严禁挤占、截留、挪用义务教育经费。二要规范城市义务教育阶段服务性收费和代收费。收费项目和标准要经省级政府审定, 坚持学生自愿和非营利原则,严格执行教育收费公示制度。三要切实解决好进城务工人员随迁子女就学问题。进城务工人员随迁子女接受义务教育以流入地为主、公 办学校为主解决;对符合当地政府规定接收条件的随迁子女,要统筹安排在就近的公办学校就读,免除学杂费,不收借读费。四是在接受政府委托、承担义务教育任 务的民办学校就读的学生,按照当地公办学校免除学杂费标准,享受补助。
现在已经8月23日了,很快要开学了,虽然上面说到了重点,但是看这态势不知道什么时候能解决外来子女平等接受义务教育的问题。解决这个问题取决于当地的政策,而当地政策如何跟的上国务院的要求是一个问号。我有一个同事,已经在广州工作快十年了,现在小孩在民办学校读书,一个学期2000RMB学费。想一想,当不管农村还是城里的其他同学根本不需要缴纳学费,自己的小孩却要一学期缴纳2000RMB学费,家长会怎么想,小孩会怎么想?而且缴纳这么多学费后,还接受比公办学校更差的教育(基本上民办学校是比公办学校差的,有的还差的很厉害)。
参考:
星期四, 十二月 01, 2005
Java多列组合排序器一个例子
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.LinkedList;
/**
* 多列组合排序器
*Title:
*
*Description:
*
*Copyright: Copyright (c) 2005
*
*Company:
*
* @author not attributable
* @version 1.0
*/
public class CompositeComparator implements Comparator{
/** in the condition list, comparators' priority decrease from head to tail */
private List comparators = new LinkedList();
/** get the comparators, you can manipulate it as need.*/
public List getComparators(){
return comparators;
}
/** add a batch of comparators to the condition list */
public void addComparators(Comparator[] comparatorArray){
if(comparatorArray == null){
return;
}
for(int i = 0; i < comparatorArray.length; i++){
comparators.add(comparatorArray[i]);
}
}
/** compare by the priority */
public int compare(Object o1, Object o2){
for(Iterator iterator = comparators.iterator(); iterator.hasNext();){
Comparator comparator = (Comparator)iterator.next();
int result = comparator.compare(o1, o2);
if(result != 0){
return result;
}
}
return 0;
}
}
//多列排序;按镇,终端
CompositeComparator myComparator = new CompositeComparator();
myComparator. addComparators(
new Comparator[]{
new Comparator() {
public int compare(Object a, Object b) {
DisplayForm aObj, bObj;
aObj = (DisplayForm) a;
bObj = (DisplayForm) b;
String aStr = (String) aObj.get("COUNTY_NO");
String bStr = (String) bObj.get("COUNTY_NO");
return aStr.compareTo(bStr);
}
}
, new Comparator(){
public int compare(Object a, Object b) {
DisplayForm aObj, bObj;
aObj = (DisplayForm) a;
bObj = (DisplayForm) b;
String aStr = (String) aObj.get("DDP_ID");
String bStr = (String) bObj.get("DDP_ID");
return aStr.compareTo(bStr);
}
}
});
java.util.Collections.sort(listResult,myComparator);
对java对象集合进行排序
import java.util.Iterator;
import java.util.List;
import java.util.LinkedList;
/**
* 多列组合排序器
*Title:
*
*Description:
*
*Copyright: Copyright (c) 2005
*
*Company:
*
* @author not attributable
* @version 1.0
*/
public class CompositeComparator implements Comparator{
/** in the condition list, comparators' priority decrease from head to tail */
private List comparators = new LinkedList();
/** get the comparators, you can manipulate it as need.*/
public List getComparators(){
return comparators;
}
/** add a batch of comparators to the condition list */
public void addComparators(Comparator[] comparatorArray){
if(comparatorArray == null){
return;
}
for(int i = 0; i < comparatorArray.length; i++){
comparators.add(comparatorArray[i]);
}
}
/** compare by the priority */
public int compare(Object o1, Object o2){
for(Iterator iterator = comparators.iterator(); iterator.hasNext();){
Comparator comparator = (Comparator)iterator.next();
int result = comparator.compare(o1, o2);
if(result != 0){
return result;
}
}
return 0;
}
}
//多列排序;按镇,终端
CompositeComparator myComparator = new CompositeComparator();
myComparator. addComparators(
new Comparator[]{
new Comparator() {
public int compare(Object a, Object b) {
DisplayForm aObj, bObj;
aObj = (DisplayForm) a;
bObj = (DisplayForm) b;
String aStr = (String) aObj.get("COUNTY_NO");
String bStr = (String) bObj.get("COUNTY_NO");
return aStr.compareTo(bStr);
}
}
, new Comparator(){
public int compare(Object a, Object b) {
DisplayForm aObj, bObj;
aObj = (DisplayForm) a;
bObj = (DisplayForm) b;
String aStr = (String) aObj.get("DDP_ID");
String bStr = (String) bObj.get("DDP_ID");
return aStr.compareTo(bStr);
}
}
});
java.util.Collections.sort(listResult,myComparator);
对java对象集合进行排序
星期三, 十一月 30, 2005
urlrewrite重写/隐藏你的链接
urlrewrite重写/隐藏你的链接
Url Rewrite Filter
Home - java.net Project - Download & Install - urlrewrite google group - Manual
Based on the popular and very useful mod_rewrite for apache, UrlRewriteFilter is a Java Web Filter for any J2EE compliant web application server (such as Resin, Orion or Tomcat), which allows you to rewrite URLs before they get to your code. It is a very powerful tool just like Apache's mod_rewrite.
URL rewriting is very common with Apache Web Server (see mod_rewrite's rewriting guide) but has not been possible in most java web application servers. The main things it is used for are:
URL Tidyness / URL Abstraction - keep URLs tidy irrespective of the underlying technology or framework (JSP, Servlet, Struts etc).
Browser Detection - Allows you to rewrite URLs based on request HTTP headers (such as user-agent or charset).
Date based rewriting - Allows you to forward or redirect to other URL's based on the date/time (good for planned outages).
Moved content - enable a graceful move of content or even a change in CMS.
Tiny/Friendly URL's (i.e. blah.com/latest can be redirected to blah.com/download/ver1.2.46.2/setup.exe)
A Servlet mapping engine (see Method Invocation)
UrlRewriteFilter uses an xml file, called urlrewrite.xml (lives in the WEB-INF directory), for configuration. Most parameters can be Perl5 style Regular Expressions. This makes it very powerful indeed.
在Tomcat5.0以及以后版本中对中文的支持:
1,修改UrlRewriter.java,注销代码
// addition as suggested by Connor Barry//
try {
// originalUrl = URLDecoder.decode(originalUrl, "utf-8");
// if (log.isDebugEnabled()) {
// log.debug("after utf-8 decoding " + originalUrl);
// }
// } catch (java.io.UnsupportedEncodingException e) {
// log.warn("the jvm doesn't seem to support decoding utf-8, matches may not occur correctly.");
// return null;
// }
// end addition2,
修改UrlRewriteFilter.java,
增加代码:
hsRequest.setCharacterEncoding( "GBK" ) ;
或者
hsRequest.setCharacterEncoding( "UTF-8" ) ;
Url Rewrite Filter
Home - java.net Project - Download & Install - urlrewrite google group - Manual
Based on the popular and very useful mod_rewrite for apache, UrlRewriteFilter is a Java Web Filter for any J2EE compliant web application server (such as Resin, Orion or Tomcat), which allows you to rewrite URLs before they get to your code. It is a very powerful tool just like Apache's mod_rewrite.
URL rewriting is very common with Apache Web Server (see mod_rewrite's rewriting guide) but has not been possible in most java web application servers. The main things it is used for are:
URL Tidyness / URL Abstraction - keep URLs tidy irrespective of the underlying technology or framework (JSP, Servlet, Struts etc).
Browser Detection - Allows you to rewrite URLs based on request HTTP headers (such as user-agent or charset).
Date based rewriting - Allows you to forward or redirect to other URL's based on the date/time (good for planned outages).
Moved content - enable a graceful move of content or even a change in CMS.
Tiny/Friendly URL's (i.e. blah.com/latest can be redirected to blah.com/download/ver1.2.46.2/setup.exe)
A Servlet mapping engine (see Method Invocation)
UrlRewriteFilter uses an xml file, called urlrewrite.xml (lives in the WEB-INF directory), for configuration. Most parameters can be Perl5 style Regular Expressions. This makes it very powerful indeed.
在Tomcat5.0以及以后版本中对中文的支持:
1,修改UrlRewriter.java,注销代码
// addition as suggested by Connor Barry//
try {
// originalUrl = URLDecoder.decode(originalUrl, "utf-8");
// if (log.isDebugEnabled()) {
// log.debug("after utf-8 decoding " + originalUrl);
// }
// } catch (java.io.UnsupportedEncodingException e) {
// log.warn("the jvm doesn't seem to support decoding utf-8, matches may not occur correctly.");
// return null;
// }
// end addition2,
修改UrlRewriteFilter.java,
增加代码:
hsRequest.setCharacterEncoding( "GBK" ) ;
或者
hsRequest.setCharacterEncoding( "UTF-8" ) ;
星期二, 十一月 29, 2005
用Putty通过代理服务器穿透防火墙
Putty V0.58 可以通过代理服务器连接外部网络(Internet或者内部其他局域网),穿透防火墙。
SSHProxy是一个简单而且有用的Socks4 Socks5代理服务器,可以通过SHTTP Proxy 实现二级代理
The SSH Proxy is full featured SOCKS Proxy written in Java.It supports both versions 4 and 5 of Socks protocol.Additional feature that I have implemented in SSH Proxy is the possibility to make TCP connections through an HTTP-SSL Tunnel.
SSH Proxy works in two modes:
Normal mode - works as normal SOCKS Proxy
TCP via SHTTP mode - Works as SOCKS Proxy but makes SOCKS TCP connections via HTTP-SSL Tunnel Proxy.
The TCP via SHTTP mode is very useful when user woks behind HTTP Proxy and hasn't any other acces to the Internet. In this case the user can run SSH Proxy on his/her machine, and configure it to use TCP connections via HTTP-SSL tunnels which are commonly supported by most proxies. This way he/she will be able to use other internet applications, eg. IRC, FTP, e-mail, telnet, HTTP (of course :-) but without caching and etc.
用Putty通过代理服务器穿透防火墙
SSHProxy是一个简单而且有用的Socks4 Socks5代理服务器,可以通过SHTTP Proxy 实现二级代理
The SSH Proxy is full featured SOCKS Proxy written in Java.It supports both versions 4 and 5 of Socks protocol.Additional feature that I have implemented in SSH Proxy is the possibility to make TCP connections through an HTTP-SSL Tunnel.
SSH Proxy works in two modes:
Normal mode - works as normal SOCKS Proxy
TCP via SHTTP mode - Works as SOCKS Proxy but makes SOCKS TCP connections via HTTP-SSL Tunnel Proxy.
The TCP via SHTTP mode is very useful when user woks behind HTTP Proxy and hasn't any other acces to the Internet. In this case the user can run SSH Proxy on his/her machine, and configure it to use TCP connections via HTTP-SSL tunnels which are commonly supported by most proxies. This way he/she will be able to use other internet applications, eg. IRC, FTP, e-mail, telnet, HTTP (of course :-) but without caching and etc.
用Putty通过代理服务器穿透防火墙
星期四, 十一月 24, 2005
订阅:
博文 (Atom)