2009-11-18 10:49
id apply_id
1 1
2 1
3 1
4 2
5 2
6 3
7 3
8 |
2009-11-16 14:09
2009-11-09 14:45
弄了个windows7 英文包装上,结果发现Intellij IDEA 的搜索框中文乱码了,Ctrl+ F那个,Ctrl+ Shift+F还不是乱码好好的,在网上一搜,试了试这个,嗯,靠谱。
进入IDE Settings 里的 Appearance项,选中Override default fonts by ,把 Name 设置为 SimSun,Size 根据自己喜好设置(我一般设为 14)。确定
参考:http://gx80.javaeye.com/blog/124662
哦对了,win7还是不错的, |
2009-11-05 14:08
2009-10-24 12:38
VMware6.5自带的vmware-tools不好使
需要VMwareTools-7.9.6-173382.tar.gz
http://forum.ubuntu.org.cn/viewtopic.php?f=65&t=197597 |
2009-10-23 14:40
String split方法 当在末尾含有空字符时尤其应注意
String a = ",,";
System.out.println(a.split(",").length);//0
System.out.println(a.split(",",-1).length);//3
a = ",,1";
|
2009-10-18 18:22
如果直接使用<c:forEach> 直接在中间的代码中 插入break , 并不能退出循环。可以采用以下策略进行代换:
1. 用 <c:set var="collections" value="${forEach中的items}"/>
2. 用 jspContext.getAttribute("collections"); 获得对应的集合
3.最后就用最原始的for()。
但还是觉得不爽 |
2009-10-17 16:00
修改idea.properties
将${user.home}换成自己想到的目录
# path to IDEA config folder. Make sure you're using forward slashes
idea.config.path=E:/Program Files/JetBrains/IdeaConfig/.IntelliJIdea90/config
# path to IDEA system folder. Make sure you're using forward slashes
idea.system.path=E:/Program Files/JetBrains/IdeaConfig/.IntelliJIdea90/system
# path to user installed plugins folder. Make sure you're using forward slashes
idea.plugins.path=E:/Pro |
2009-10-13 18:11
int randomNumber(){
return (int)Math.floor(Math.random()*256);
}
String decToHex(int dec)
{
String hexStr = "0123456789ABCDEF";
int low = Math.abs(dec % 16);
int high = Math.abs((dec - low)/16);
String hex = "" + (hexStr.length()>high?hexStr.charAt(high):hexStr.charAt(0)) + (hexStr.length() |
2009-09-21 17:31
用python开发站点
1. 安装Django,下载 tar 安装包,http://www.djangoproject.com/download/
其文件名可能会是 Django-xx.tar.gz 。
2. tar xzvf Django-*.tar.gz 。
3. cd Django-* 。
4. sudo python setup.py install ,如果不是root需要su命令切换到root
5. python
>>>import django
>>>django.VERSION
出现版本信息 安装OK
6. 将django-admin.py加入path路径
sudo ln -s /path/to/django/bin/django-admin.py /usr/local/bin/djang |
2009-09-16 15:30
2009-09-15 17:21
这周有两人问我会不会PHP,受刺激了,开始Google PHP
搜索 PHP 获得大约 6,910,000,000 条查询结果
搜索 ASP 获得大约 1,730,000,000
搜索 JSP 获得大约 645,000,000 条查询结果
看来我OUt了
1、下载PHP包 http://windows.php.net/download/
要想下面与Apache整合 必须下载ts版本,也就是Thread Safe
据咨询高手 zip和installer 没啥区别 ,只是如果用IIS最好用installer
2、接着下载Apache,安装时最好选择for A |
2009-09-14 10:55
--创建数据库,貌似创建数据库的sql较复杂,
创建数据库的脚本:
-----------------------------------------------------------
CREATE DATABASE dbtest
LOGFILE
GROUP 1 ('/opt/oracle/oradata/dbtest/redo01.log','/opt/oracle/oradata/dbtest/redo01_1.log') size 100m reuse,
GROUP 2 ('/opt/oracle/oradata/dbtest/redo02.log','/opt/oracle/oradata/dbtest/redo02_1.log') size 100m reuse,
GROUP 3 ('/opt/oracle/oradata/dbtest/redo03.log','/opt/oracle/oradata/dbtest/redo03_1.log') s |
2009-09-13 17:01
2009-09-11 10:29
request.getInputStream() 和 request.getReader()不能同时调用,否则会引发java.lang.IllegalStateException异常。
API中有写:
getInputStream
public ServletInputStream getInputStream()
throws java.io.IOException
- Retrieves the body of the request as binary data
|
|
|
liusping
男, 26岁
北京 海淀区
上次登录: 2天前
加为好友
|