www.mQney.com

09 2, 2011

首先查询:
MySQL默认不区分大小写,也就是说:
select * from sale_person where identitycard like '%x%';
select * from sale_person where identitycard like '%X%';
查询结果一样

要在查询中区分识别大小写,需要使用binary关键字
select * from sale_person where binary identitycard like '%x%';
select * from sale_person where binary identitycard like '%X%';
这两个结果就不一样了


发现存在不同写法,然后替换
update `sale_person` set `identitycard` = replace(`identitycard`, 'x', 'X');
替换sale_person表中,identitycard字段的所有x为X。


这个替换语句,还可以用来更新网站中的数据,比如批量更改文章图片的alt属性:

update `helloer_thread` set `content` = replace(`content`, 'alt=""', 'alt="www.mqney.com"');

05 4, 2011

在三弟的肉脯团中未央生和玉香苦情吐槽的时候出现了这个错误,ireport生成pdf文件,以前linux中出现过此问题,今天win7出现这个问题。解决办法是下载一个楷体_GB2312.ttf拷贝在C:\Windows\Fonts中。

或者我猜测,随便把一个已有字体,改名为报错提示系统所缺的字体名称(此例为楷体_GB2312)即可。









 按此阅读全文 "Font '楷体_GB2312' is not available to the JVM" »

03 29, 2011

Android SDK install problem:
Java SE development Kit (JDK) not found



 按此阅读全文 "安装 安卓 Android SDK 问题的解决" »

03 14, 2011

Nextapp的Echo2,在IE浏览器中有如下一个“奇怪的”错误:由于该控件目前不可见、未启用或其类型不允许,因此无法将焦点移向它。

由于该控件目前不可见、未启用或其类型不允许,因此无法将焦点移向它 nextapp_echo2_error_IE_mQney.com.jpg

 

 按此阅读全文 "Echo2在IE浏览器中的一个错误" »

12 22, 2010

第一种情况:
The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:

第二种情况:
An incompatible version 1.1.14 of the APR based Apache Tomcat Native libra
ry is installed, while Tomcat requires version 1.1.17


正文:

 按此阅读全文 "the APR based Apache Tomcat Native library" »

12 13, 2010

  在使用Java批量抓取网页内容的应用中,一种对象是xml格式的远程内容,xml内容格式比较规范,所以相对来说处理容易一些:
    URL url = new URL("http://www.slofnews.com/e/web/?type=rss2&classid=0");
            SyndFeedInput input = new SyndFeedInput();
            SyndFeed feed = null;
            URLConnection conn;
            conn = url.openConnection();
            String content_encoding = conn.getHeaderField("Content-Encoding");
            if (content_encoding != null && content_encoding.contains("gzip")) {
                System.out.println("conent encoding is gzip");
                GZIPInputStream gzin = new GZIPInputStream(conn
                        .getInputStream());
                feed = input.build(new XmlReader(gzin));
            } else {
                feed = input.build(new XmlReader(conn.getInputStream()));
            }
           
            List<SyndEntry> entries = feed.getEntries();


  但是xml的rss,正如超市里面的免费赠送,只有大公司,大活动才会有。大多数网站并不会做慈善似的提供出来,这时候就需要直接分析网页了,没有现成的就得自己动手拼装。htmlparser.jar提供了丰富的java网页抓取功能,建立连接,分析网页,抓取内容。
  其中分析网页是最重要的一步,它是通过对html标签属性精准查找定位,多重查找定位的过滤机制抓取特定内容的,
  首先通过连接【Parser parser = new Parser(url);】得到一个网页的全部内容,然后建立过滤机制——就像编一个筛子【OrFilter filter = ……】,把网页内容交给筛子,得到想要的内容【    NodeIterator iterator = parser.extractAllNodesThatMatch(filter).elements();】。
  下面记录一下编筛子的几个基本原料。htmlparser.jar中Filter的使用方法,AndFilter、OrFilter、NodeClassFilter、HasAttributeFilter……



正文:

 按此阅读全文 "htmlparser.jar中Filter(AndFilter与OrFilter)的使用方法" »

12 10, 2010

这些是java连接TSC条码打印机时候,需要用到的公共控制类,包含一些基本属性的设置。
1,
com.mqney.barcode.tsc.TscAbout
2,
com.mqney.barcode.tsc.TscBarcode
3,
com.mqney.barcode.tsc.TscClearbuffer
4,
com.mqney.barcode.tsc.TscCloseport
5,
com.mqney.barcode.tsc.TscDownloadpcx
6,
com.mqney.barcode.tsc.TscFormfeed
7,
com.mqney.barcode.tsc.TscNobackfeed
8,
com.mqney.barcode.tsc.TscOpenport
9,
com.mqney.barcode.tsc.TscPrinterfont
10,
com.mqney.barcode.tsc.TscPrintlabel
11,
com.mqney.barcode.tsc.TscSendcommand
12,
com.mqney.barcode.tsc.TscSetup
13,
com.mqney.barcode.tsc.TscWindowsfont
以下是源代码:

 按此阅读全文 "java控制条码打印机基础类库 TSC源代码" »

12 7, 2010

图一、用户登录界面,使用打印功能的用户需要先登录,打印结果在系统中有记录。

图二、登陆以后,通过打印序号打印,如果勾选“另选打印机”,则在打印时候弹出选择打印机对话框;如果不勾选,则使用默认打印机直接打印。

图三、java swing写成的可执行jar,直接调用tsc.dll控制tsc ttp打印机打印条形码

体检中心的软件一般都是ms公司的,早时候vb,现在的.net,我们使用java写得,架构上合理许多,但许多外设的操控都没有现成的东西,需要变通处理。这个就是体检中心打印条形码用的小程序,还有打印检验报告时候的程序(独立于Lis系统之外用的)。

下面图示:


 按此阅读全文 "jar自动打印程序" »

引用的几个包在神州数码提供的jar中
import message.sms.SUBMIT;
import common.ComFun;
import common.SmsClient;


这样调用:
                SendCellPhoneMessage scpm = new SendCellPhoneMessage(ss, text);
                String result = scpm.run();



源程序:

 按此阅读全文 "java编写mas短信群发程序,神州数码mas" »

1,
查看当前队列
root@[/root]$ ipcs -q

2,
结束、清空某一队列
root@[/root]$ ipcrm -q 262152

3,
进入mas系统
root@[/root]$ su - mas

4,
重启mas服务


正文开始:




 按此阅读全文 "中国移动&神州数码的mas信息机操作" »

12 2, 2010

一个简单的小设置,我怕忘了,记在这里。

图一、单行的
jasper ireport 3.7.4 3.7.6 textfield 多行中文 Stretch With Overflow
图二、多行的效果
jasper ireport textfield pdf mqney.com 多行中文图三、设置处
jasper ireport textfield pdf mqney.com 多行中文

以下是源代码:
版本是iReport 3.7.4


 按此阅读全文 "iReport的textField生成PDF,多行中文" »

11 29, 2010

java得到系统换行符,在nextapp的Echo2中,TextAreaEx组件可以使用。
    mqney.com java 系统换行符 nextapp echo2 TextAreaEx 回车
TextAreaEx mQney= new TextAreaEx();
    mQney.setStyleName("Default");
    mQney.setAlignment(new Alignment(Alignment.LEFT, Alignment.TOP));
    mQney.setBorder(null);
    String separator = System.getProperty("line.separator");
    mQney.setText("1,2,3."+separator+"1,2,3.");
    mQney.setHeight(new Extent(400, Extent.PX));
    mQney.setWidth(new Extent(600, Extent.PX));
    mQney.setDisabledBorder(new Border(new Extent(0, Extent.PX),
            Color.BLACK, Border.STYLE_SOLID));
    mQney.setBorder(new Border(new Extent(0, Extent.PX), Color.BLACK,
            Border.STYLE_SOLID));
    groupBox2.add(mQney);

mqney.com java 系统换行符 nextapp echo2 TextAreaEx 回车

10 9, 2010


使用中出现与List泛型的类的冲突

 按此阅读全文 "错误:java.lang.ArrayStoreException的解决" »

02 3, 2010

=COUNTIFS(D2:D786,"TRUE")
=COUNTIFS(D2:D786,"TRUE",$C$2:$C$786,"1")
=COUNTIFS(D2:D786,"TRUE",$C$2:$C$786,"2")
第一条公式
筛选D列2至786行中值为TRUE的单元格个数
第二条公式
在第一条公式的基础上,增加条件:并且C列值为1,我这里代表男性
第三条公式
选出女性
例如:
Excel筛选个数 Excel的公式 筛选个数 查找重复





  C2与$C$2的区别,Excel的公式很好用,比如写下1,往旁边、往下面一拉鼠标,数列就出来了;再比如在Excel某列中查找重复的值,首先把这一列排序,然后在他后面插入一列,写上公式=A1=A2;得出TRUE或者是FALSE,然后往下一拉,这一列就会自动算=A2=A3、=A3=A4……它的自动递增功能让人得心应手。
  但是有时候我们不希望某些列自动递增,比如我例子中的性别,都要从C列选取,不要递增到D到E到F,这时候就可以使用$,具体原因可以参考后面的转帖。




上面是图,下面是数据,可以复制到Excel中试验:



 按此阅读全文 "Excel筛选个数" »

11 26, 2009

  作为初级的管理员,每天都要备份数据,自动的任务不会设置,于是‘基本靠手’,这样不但繁琐,还保不齐甲流隔离了,有手没处使。

  所以写个java类吧,加载到SPRING程序的自动运行任务中。思路就是使用java调用系统的命令符,执行mysqldump命令。

·首先是Windows系统下:

给大家提个醒:
有人说用:“mysqldump --uroot --p123456 --opt”。但是我没有成功,最后使用这种写法成功了:“mysqldump --user=root --password=123456 --opt”
看来要写完整的方式。


·然后是Linux系统下:

这里很多人遇到的问题是
程序不报错,命令不执行,sql文件没有生成。我已开始用了以下几种写法:java.lang.Runtime.getRuntime().exec(new String[] { mysql });
   java.lang.Runtime.getRuntime().exec(new String[] { "shell "+mysql });
   java.lang.Runtime.getRuntime().exec(new String[] { "/bin/bash "+mysql });
   java.lang.Runtime.getRuntime().exec(new String[] { "/bin/bash/shell "+mysql });
都没有成功,最后试验了这种写法成功了:
        java.lang.Runtime.getRuntime().exec(new String[] { "sh", "-c", mysql });
前提是环境变量中都把MySQL的bin目录加上了。

下面请看完整代码:


 按此阅读全文 "java备份MySQL (windows linux)" »

11 18, 2009

  越来越发现Excel这个软件真的不是由一个个格子组成的表,每个格子里面都有着巨大的魔力。每次接触它都有新的发现,那几率可比在人人餐厅的垃圾中捡到食材大多了。
  但是,不得不说的是,实际上每次接触它都是被接触,一般公司的网络部人员都被视为闲杂人等,专门用来清扫(such as打印机,word,电话,qq,手机听歌)这些挡在正规军工作路上的过于抽象的小石块。


 按此阅读全文 "Java复制Excel的Sheet到新的Excel文件" »

09 8, 2009

 按此阅读全文 "范晓萱 - 赤子" »

 按此阅读全文 "汪峰 - 信仰在空中的飘扬" »

09 3, 2009

1,什么是PDF文档?
2,PDF文档如何打开?
3,在浏览器中如何查看PDF文档?
4,浏览器查看PDF文档有问题?

----------------------------------正文-------





 按此阅读全文 "网页无法查看PDF文档怎么办?" »

1,网站为什么要弹出窗口?
2,浏览器为什么要阻止弹出窗口?
3,为什么有些网站还有弹出窗口?
4,我看不见弹出窗口,怎么办?
p.s.
·1,什么是浏览器?
·2,什么是候浏览器插件(工具条)?

------------------------正文---------------------







 按此阅读全文 "看不见弹出窗口怎么办?" »

04 1, 2009

 IE7真垃圾,使用选项卡速度慢的不行,不用也好不到哪去,不知道它吭哧吭哧在干什么勾当。最后一个选项卡关闭不了(IE8也这样,不如fox)。幸好Microsoft也察觉到了它的缺陷,想想国家政策,又微软了一下,迅速来了个二胎(人家可没仗着自己是名人就随便搞实战、都不带预备杜蕾斯的)。IE8还真是不错,速度上面有明显的提高,还有了JavaScript调试工具,使用起来方便不少。稍微设置一下,就更方便了。

 1,如何桌面图标背景透明?

 2,桌面我的电脑、IE都哪去了?

 3,如何禁止IE8的加速器?

 4,如何在点击下载的时候不要出现那个黄色提示框。【不建议所有人设置】

 

 

正文----------------------------------------------------------

 

 按此阅读全文 "几个常见Windows设置" »

03 15, 2009

Linux       killall svnserve
Windows      net stop svn 【停止服务】
                   sc delete svn 【删除服务】

Java打印图表 柱状图 饼状图 线形图 3D图形 统计表格
Echo2中使用JFreeChart形成图表

 按此阅读全文 "Java打印图表" »

Echo2导出Excel表格
Java生成Excel表格

 按此阅读全文 "Java导出Excel表格" »

03 14, 2009

HSSFCell.setCellValue【setCellValue不推荐使用】
Vector.copyInto【Vector不推荐使用】
关于这两个方法的替代方法



 

 按此阅读全文 "copyInto和setCellValue" »

02 26, 2009


mysql> set GLOBAL max_connections=1000;
Query OK, 0 rows affected (0.00 sec)

或者在
mysql.cnf文件的mysqld段中加入
max_connections=1000

 

停止MySQL

[root@localhost ~]# mysqladmin shutdown -uroot -p
Enter password:
[root@localhost ~]# mysql -uroot -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

 

 

 

MySQL
[root@localhost ~]# mysqladmin processlist -uroot -p
Enter password:
+-------+------+-----------+----+---------+------+-------+------------------+
| Id    | User | Host      | db | Command | Time | State | Info             |
+-------+------+-----------+----+---------+------+-------+------------------+
| 48999 | root | localhost |    | Query   | 0    |       | show processlist |
+-------+------+-----------+----+---------+------+-------+------------------+
[root@localhost ~]# mysqladmin status -uroot -p
Enter password:
Uptime: 271563  Threads: 1  Questions: 555830  Slow queries: 6  Opens: 299  Flush tables: 2  Open tables: 64  Queries per second avg: 2.047

 

 

 

mysql> show variables ;

mysql> show status;

 

 

02 22, 2009

2009-2-22 0:06:29 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: PermGen space

 按此阅读全文 "java.lang.OutOfMemoryError: PermGen space" »

02 15, 2009

3D TEXT

Lets add some text to the scene now. Text is just another layer, so we hit the ADD butoon and select 3D TEXT.

You will need to position the text so its centered on the screen and is just in front of the world - you do this by selecting the AXIS tab , dragging the X TRanslate slider to the left and the Z translate slider to the right. You can also scale it down a bit by dragging the x and y scale sliders slightly to the left.

SETTING UP THE SCENE

Now lets add the rest of the scene!

Were going to add two more layers, one for the ESPN Interface and one for the text image. Once you have done this, drag the text interface's Z slider and bring it up close to you by dragging to the right. You will notice that it stops at 500 - to get past this click on the lcd and drag to the right to go over the default limits. Bring it up to around 750.

Ok, now we have our scene set up lets save it out before we animate it in case anyting goes wrong. Select the SCENE tab, and hit SAVE and then double-click on your filename - espn.jsf

If you want to take a snapshot of how things are going, you can click on the PHOTO button located on top of the GRAB DESKTOP button. If you click render by mistake, just hit it again to stop it. To look at your photo, go to the desktop and it will be in the top left hand corner underneat any images that are already there.

ANIMATING THE SCENE!

Ok, now we are going to bring the scene to life. We will start by hiding all the layers we dont want to see. You can do this by un-checking everything except for the world and the first layer you added (The one on top of the world layer).

To make things easier to understand, lets name this layer the earth. To do this, make sure its selected and hit the name button. Type earth in the pop-up box and hit return.

Now we can animate the earth layer! To do this, we first need to make sure we are at the first frame of the animation. Do this by dragging the main horizontal slider, the big one to the right of the vcr looking controls, to the far left. The green LCD should now be set to 00:00:00. We are going to call this slider the scrubber from now on to make things easier.

We are going to have the earth zoom in from outer space on to the scene. To do this, we will need go to the AXIS tab and drag the earths Translate Z slider to the far right. It stops at 500 - but we needs to go to 1000 so you have to click on the green lcd to the right of its z slider and drag that to the far right till it reaches 1000. The earth should dissapear off the screen.

SETTING KEYFRAMES

We want to record this keyframe (position in a animation) so you need to hit the KEY button to the left of the PHOTO button in the middle-right side of the screen.

Now drag the scrubber slider so its in the middle and we will move the earth in and set another keyframe. Drag the z slider and move it back to zero to do this. You can also play with the rotation values as well so the earth will spin around on its way back in. Once you have positioned it hit the key button again.

Now you can drag the scrubber from left to right, or hit the play button, and the earth should fly in and then stop!

We want to do the same thing with the 3d text but we want it to fly in after the earth... so lets set that up.

Drag the scrubber to the far right so the earth is off the screen again. Then hit the checkbox for the 3dtext layer so it turns on, you should see it in the middle of the screen where you left it.

You are going to do the same thing you did for the earth - go to the AXIS tab and click on the trasnlate Z lcd and drag it to the right until the text dissapears off the screen. Then hit the KEY button to record this.

Since we want the text to wait a bit before moving in, we will set anothre keyframe for it out in space before bringing it in. To do this, drag the scrubber and move it about one third of the way to the right or to where the scrubbers lcd reads 00:01:00 and hit the kay button again.

If for some reason the text poped back up thats a bug, just move the scruuber again and it will go back to where it was before setting teh 2nd keyframe.

Then drag the scrubber to where its around 2/3rds the way or towhere its lcd reads 00:02:00. We can now move the text back in by draginfg its Z Translate slider to the left and positioning it just in front of the world and hitting the KEY button.

Now you can drag the scrubber from left to right and you should see the earth fly in followed by the jahshaka text!

If you messed up, just make sure the Earth layer is selected, click the OBJECT tab and hit reset and then animate it again!

Now lets turn on the ESPN interface by clicking its check box. You may want to name it ESPN to make things easier. Hit the play button and you should see your first animation rocking on the screen! You may want to sve it out as a backup.

Ok, we're not ready to sell it to ESPN just yet, now we want to add some fancy overlay graphics. To do this, turn on the lst layer you added, and name it textlayer so you can tell it from the 3DText.

You will want tomake sure the scrubber is back in its far left position. Then go to the AXIS box and move its Z Transalte to where its around 1000. Then move its translate X to the left to where its aroud -50.

EFFECTS

Now we are going to fade it out! Go to the EFFECTS tab and you will see the transparency slider. You will want to drag this to where its round 35 so its slightly faded out.

Now we can animate it so it moves slowly from left to right as our animation plays. To do this just set a keyframe for it a 00:00:00 and then drag the scrubber to the far right and then move it to the right by dragging its AXIS X Translate to the right so it moves over but not off the screen. Then set another keyframe by hittiong the KEY button.

Now you can play it back and enjoy your creation!

RENDERING

In order to make your movie, you will now need to render it out. Dont worry, Jahshaka uses hardware rendering so it renders as fast as it play... although it usually slows down since we have to write the images to disk. To speed this up, we will switch over to the smallest file size whcih is uncompressed jpeg.

To do this, after you have saved your scene out, go to the desktop and hit the prefernces button. You will see a render quality slider, make sure this is set to the far left. Then go back to your animation, make sure the scrubber is also to the far left and hit the render button!

*hint - if your graphics card supports anti-aliasing turn on full scene aliasing (using your cards control panel - control for this will be added later on) and you will get a smooth looking animation!

You creation will now be visible as a clip on the desktop. Go to the dekstop, select it, and hit play to check it out!

ENJOY!

If you are using linux you can use the player to create a mpeg animated clip of your creation using the utility menu. We will bring this functionality to windows soon.

Hope you enjoed the first tutorial, later on we will get into the other modules!

02 14, 2009

Jahshaka - 初级教程 - 草译by【mQney】

另外相关资料有视频教程

 按此阅读全文 "Jahshaka - Tutorials for Beginners - 1" »

  昨天打开火狐FireFox发现就像是Google浏览器chrome一样,出现了“访问最多的网站”,不知道是FireFox升级模仿了Chrome还是Google Toolbar升级集成了Chrome,这些技术人员还真是敬业啊。
  但是出现了一个问题,这要是这家伙晚上看了比较私人的东西,第二天到公司当众展示就糗大了。双刃剑啊。
  幸好你不喜欢可以关闭,在Google Toolbar--选项--网络浏览工具--启用新的Google标签页,去掉勾选就可以了。

02 13, 2009

1,org/dom4j/DocumentException
2,hibernate.cfg.xml not found
3,net.sf.hibernate.dialect.MySQLDialect
4,net/sf/cglib/proxy/CallbackFilter
5,org/objectweb/asm/Type
6,No CurrentSessionContext configured
7,javax/transaction/Synchronization

8,File "/WEB-INF/vote.tld" not found

9,org.apache.jasper.JasperException: An exception occurred processing JSP page
10,The 'quality' must be in the range 0.0f to 1.0f
11,JFreeChart乱码

 按此阅读全文 "投票项目中的经验" »

02 2, 2009

JSP中应用的兼容IE、Firefox的JavaScript日历控件。
×跟CSDN上传版本有区别,js文件做了修改:修改了一下点击当日无反应的情况。



 按此阅读全文 "自动发帖项目中的经验3" »

01 31, 2009

 按此阅读全文 "自动发帖项目中的经验2" »

01 30, 2009


 按此阅读全文 "自动发帖项目中的经验" »

01 19, 2009

 按此阅读全文 "Fckeditor,Firefox-form-Refresh" »

01 2, 2009

 按此阅读全文 "AJAX用户名验证" »

12 22, 2008

4,报错。此时运行(使用Eclipse的run)会出现如下错误:
this is a log
log4j:WARN No appenders could be found for logger (com.onepinkfloyd.log.LogTest).
log4j:WARN Please initialize the log4j system properly.



 按此阅读全文 "log4j.properties" »

12 10, 2008


 按此阅读全文 " lomboz all in one下载" »

11 29, 2008

FCKeditor点击无反应问题的解决
FCKeditor图片不能上传问题
FCKeditor XML request error:not found 404问题


 按此阅读全文 "FCKeditor点击无反应问题的解决" »

 按此阅读全文 "java开发大小写;chrome与FCKeditor兼容?" »

10 19, 2008

1,MySQL忘记密码,ODBC@host。
2,UltraEdit打不开,Access、Excel卡。

 按此阅读全文 "UltraEdit,MySQL两个怪异问题" »

10 13, 2008

错误原因是server.xml中的注释没有完全。第156行的“<!--Host”没有找到相应的结束标识“-->”

 

 

 按此阅读全文 "tomcat因server.xml注释配置而起的一个小错误" »

10 11, 2008

解决了一个困扰我一年多的问题。

 按此阅读全文 "Tomcat的Host设置" »

10 7, 2008

 按此阅读全文 "web.xml中 的错误" »

10 6, 2008

 按此阅读全文 "Intel® Server Board S5000之RAID惊魂" »

09 17, 2008

编辑catalina.sh文件,改成如下这样:
# OS specific support.  $var _must_ be set to either true or false.
cygwin=false
os400=false
darwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;
Darwin*) darwin=true;;
esac
JAVA_OPTS="-Djava.awt.headless=true"
export JAVA_OPTS
# resolve links - $0 may be a softlink
PRG="$0"

由于CMD命令行可显示的内容有限,故需要把运行结果打印到txt文本中查看。如:

mysqladmin variables extended-status –u root –p>D:\sql.txt

08 12, 2008

说明:

Red Hat Enterprise Linux Server release 5 (Tikanga)

eclipse-SDK-3.4-linux-gtk-x86_64.tar.gz

jdk-6u10-rc-bin-b28-linux-amd64-21_jul_2008-rpm.bin

apache-tomcat-6.0.16.tar.gz

  包括:

Linux卸载JDK

Eclipse3.4中文

 按此阅读全文 "RHEL5 安装 eclipse-SDK-3.4 简记" »

08 11, 2008

说明:

Red Hat Enterprise Linux Server release 5 (Tikanga)

mysql-max-5.0.27-linux-i686-glibc23.tar.gz

备注:

SSH或者Telet时候终端正常显示中文

[root@mQney ~]# vi /etc/sysconfig/i18n

LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="lat0-sun16

 按此阅读全文 "RHEL5 安装 MySQL 简记" »

08 9, 2008

说明:

Red Hat Enterprise Linux Server release 5 (Tikanga)

apr-1.3.2.tar.gz

apr-util-1.3.2.tar.gz

httpd-2.2.9.tar.gz

 按此阅读全文 "RHEL5 安装 Apache2.2.9 简记" »

说明:

Red Hat Enterprise Linux Server release 5 (Tikanga)

apache-tomcat-6.0.16.tar.gz

 按此阅读全文 "RHEL5 安装 Tomcat6 简记" »

说明:

Red Hat Enterprise Linux Server release 5 (Tikanga)

jdk-6u10-rc-bin-b28-linux-i586-21_jul_2008-rpm.bin

 

备用:

[root@mQney ~]# uname --all
Linux mQney.com 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:14 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
[root@mQney ~]# lsb_release
LSB Version:    :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.1-amd64:graphics-3.1-ia32:graphics-3.1-noarch
[root@mQney ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5 (Tikanga)
Kernel \r on an \m

 

 按此阅读全文 "RHEL5 安装 JDK1.6 简记" »

02 27, 2008

02 6, 2008

Echo2焦点问题

hibernate几个问题

 Excel单元格中的回车/换行  Alt+Enter

 

 按此阅读全文 "主要是hibernate几个问题和解决" »

01 24, 2008

1,

  xml request not found。想当初用Tomcat配KFCeditor,日子虽然苦,但顺顺当2当2没病2没灾2的。后来追求进步,整了Apache+Tomcat,结果KFCeditor的上传文件功能不能用了……所以说啊——是吧!xml request not found的错误是由于FCKeditor发送的请求没有提交到Tomcat处理,需要在httpd.conf或者记录“JkMount /*.jsp ajp13 ”信息的其他文件中追加以下配置:

JkMount /FCKeditor/* ajp13
#让Apache支持对 fckeditor 传送,用以Tomcat解析。注意路径“/FCKeditor/*”

2,

  Echo2实现文件上传下载。(头前没注意,还用JSP批凑实现的)Echo2工程有个扩展Echo2FileTransfer专门实现文件的上传和下载。这里可以找到它。其中FileTransferDemo.war包是个演示程序。

 按此阅读全文 "解决FCKeditor以及Echo2各一个问题" »

01 19, 2008

 按此阅读全文 "mysql5.0添加用户及分配权限" »

 按此阅读全文 "subversion在windows和linux的简单安装" »

12 20, 2007

org.hibernate.QueryException: could not resolve property:

 按此阅读全文 "could not resolve property:" »

12 5, 2007

 按此阅读全文 "jsp点击下载Excel" »

10 10, 2007

 按此阅读全文 "权限MySQL、LINUX" »

08 23, 2007

第六章的附件

快速启动:修改为第二种模式(Quick Start: Migrating to a Model 2 Architecture

 按此阅读全文 "EchoStudio2文档 - 附件1" »

共八章,完结。

8

使用样式(Using Styles

介绍样式编辑器,讨论用样式统一你的界面整体视觉效果。

 按此阅读全文 "EchoStudio2 技术 - 8:使用样式" »

7

国际化(Internationalization

介绍窗体编辑配置面板和如何从部件属性面版到资源包ResourceBundles

 按此阅读全文 "EchoStudio2知识 - 7:国际化" »

6

界面跳转/工作流程(Screen Navigation / Work Flow

介绍一种模式,让你的窗体可重复使用。它还分离了窗体的处理processing 和工作流程。

 按此阅读全文 "EchoStudio2学习 - 6:界面跳转/工作流程" »

08 21, 2007

5

事件和交互(Events and Interactions

论如如何使用事件面板监听用户事件并做出反应。

 按此阅读全文 "EchoStudio2使用 - 5:事件和交互" »

4

配置第一个界面Assigning the First Screen

介绍怎么样配置第一个程序的界面和运行程序

 按此阅读全文 "EchoStudio2使用 - 4:注册第一个界面" »

3

外形布局(Form Layout

介绍外形编辑器并通过使用它来认识程序界面。

 按此阅读全文 "EchoStudio2指导 - 3:外形布局" »

08 20, 2007

2

创建Echo2程序(Creating an Echo2 Project

带领读者使用EchoStudio2工具创建Echo2程序。

 按此阅读全文 "EchoStudio2教程 - 2:创建Echo2程序" »

本文档培训开发者使用EchoStudio2开发网络界面。首先,我们假设读者已经正确安装了EchoStudio。读者不必精通Echo2或者EchoStudio2。本向导带领读者开发一个登陆界面。

1

介绍(Introduction

介绍Echo2EchoStudio2,然后阐明本文档的格式。


 按此阅读全文 "EchoStudio2详解 - 1:介绍" »

 按此阅读全文 "xml-apis.jar引起的一个错误" »

08 17, 2007

共十三篇,完结。

 按此阅读全文 "Echo2 指导 - 13 最佳方法(Best Practices)" »

 按此阅读全文 "Echo2 指导 - 12 命令(Commands)" »

08 16, 2007

 按此阅读全文 "Echo2 指导 - 11 服务器端发送(异步作业)Server Push (Asynchronous Tasks)" »

08 15, 2007

 按此阅读全文 "Echo2 简介 - 10 本地化(Localization)" »

08 13, 2007

 按此阅读全文 "Echo2 简介 - 9 样式和样式列表(Styles and StyleSheets)" »

 按此阅读全文 "Echo2 详解 - 8 表格(Tables)" »

08 12, 2007

 按此阅读全文 "Echo2 详解 - 7 窗体部件(Pane Components)" »

 按此阅读全文 "Echo2 教程 - 6 部件属性(Component Properties)" »

08 10, 2007


 按此阅读全文 "Echo2 教程 - 5 基本布局容器(Basic Layout Containers)" »

08 9, 2007

 按此阅读全文 "Echo2 指导 - 4 用户输入部件User Input Components" »

08 7, 2007

 按此阅读全文 "Echo2 指导 - 3 开发一个应用" »


 按此阅读全文 "Echo2 指导 - 2 原理(续)" »

 按此阅读全文 "Echo2 指导 - 2 原理" »

 按此阅读全文 "Echo2 指导 - 1 简介" »

08 2, 2007

逐渐添加中……

逐渐添加中……

逐渐添加中……

07 10, 2007

对于页面元素 1, <!—点击,如果存在就删除,如果不存在就创建—> 2,<!—点击显示状态就隐藏,隐藏状态就显示—>

 按此阅读全文 "最基本之页面元素的显示隐藏(通过单击)" »

06 25, 2007

最近出了两个毛孩子似的问题,不算太复杂,却惹人烦,不容易抓住。试验了两个办法解决了,但是没有做到知标知本,算是霸王硬上弓的办法罢。 1,Unable to find a javac compiler
  com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK

jre问题,由于最近演示、调试等原因,jdk装了又卸,卸了又装,版本也略有出入,现在偶然发现Tomcat找不到jsp编译器,一看Eclipse中用的是自带的jre,于是把Eclipse文件夹下的jre给删了,前提是环境变量里面有自己安装的jdk。

2,servlet-jsp.jar not loaded 大概是这么个错,这是因为……我也没搞清楚。但是解决办法是把项目文件夹中WEB-INF文件夹中lib文件夹中赘余的jar文件删除。只需要Tomcat\common\lib下有就行了。

06 12, 2007

 按此阅读全文 "access denied (java.net.SocketPermission 127.0.0.1:3306 connect,resolve)" »

06 6, 2007

 按此阅读全文 "批处理文件 任务计划 日期问题" »

 按此阅读全文 "explorer.exe IEXPLORE.EXE 被绑了广告木马" »

05 11, 2007

 按此阅读全文 "记JDBC的连接顺序[JAVA JSP MySQL]" »

java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver的一种解决办法。
  今昨两天在Eclipse(内部启动Tomcat)中调试程序过程中爆出java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver错误。其它项目好好的,这文提出的有些莫名其妙。
  原来是新建的项目,虽然在Tomcat的common\lib文件夹中,项目的WEB-INF\lib中都有mysql-connector-java-5.0.3-bin.jar,但是在Eclipse的这个工程中没有添加。
  解决办法是工程名上点击右键-Properties(属性)-Java Build Path(Java构建路径)-Libraries()-Add JARs(添加JAR)-找到一个mysql-connector-java-5.0.3-bin.jar添加上就行了.

05 10, 2007

hack Ajax表单验证

 按此阅读全文 "jsp注册时 用户名的即时验证(客户端、服务器端、支持中文)" »

05 9, 2007

  五一期间的七天,我先跑到了敦煌,然后沿着青藏铁路向南直接到了宁夏回族自治区,背靠天山山脉,左手边是一望无际的大草原,右手边是苍茫茫的沙漠,那景象真是刻骨铭心,走了一天累得够呛,晚上住在蒙古包里,吃的是大腕的猪肉炖粉条……太值得怀念了!
  至于照片啊,我只照了一张“光脚丫的自拍”,鉴于这里空间狭小,通风又不好,还是不传了。


  包括jsp,bean,servlet最难点:jsp参数判断空值
if(userurl!=null&&!"".equals(userurl)&&!"null".equals(userurl)){

 按此阅读全文 "JSP简单的小实践 - 请求加密页面~返回登录~转向所请求页面" »

04 11, 2007

  上周本以为借着Tomcat+Apache+Mysql的势头一气儿就把PHP配置搞定,结果人都说雪中送炭难,这锦上添花也不容易啊。刚才刚刚搞定。主要问题出在Discuz!_5.5.0_SC_GBK.zip、PHPWind.zip的安装时候与数据库连接错误。全是因为MySQL版本惹的祸。
  
不过仍有后遗症,
[root@ud010 root]# cat /etc/issue

Red Hat Linux rrelease 9 (Shrike)
Kernel \r on an \m
系统可以。
Red Hat Enterprise Linux AS release 3 (Taroon Update 6)
Kernel \r on an \m
系统仍然是:您的服务器不支持MySql数据库,无法安装论坛程序

 按此阅读全文 "马马虎虎的整合5 安装php-5.2.0.tar.gz" »

04 7, 2007

Red Hat Enterprise Linux AS release 3 (Taroon Update 6)下httpd-2.2.3.tar.bz2和jakarta-tomcat-5.0.28.tar.gz的整合。我有一个错误,应该把apache装到/usr/java/apache中,结果弄到了/usr/local/java/apache中。所以下面的apache路径可能有些不符

遇到的问题是原先残留环境变量。和网页部分flash、gif不能访问


修改了一个GetSearchAll.java的名字为GetSearchAllServlet.java,要跟*Servlet对应。
把原来的两个域名作了区分,一个为主.cn,一个做转发过来。
现在访问速度的提升有感觉。
仍然存留的问题是怎样让这几个软件开机自动启动!
下一步就是数据库优化,现在明显感到访问数据库的操作速度慢


用到的软件:
j2sdk-1_4_2_12-linux-i586-rpm.bin

httpd-2.2.3.tar.bz2
jakarta-tomcat-5.0.28.tar.gz
tomcat-connectors-1.2.21-src.tar.tar

mysql-standard-5.0.27-linux-i686.tar.gz
mysql-connector-java-5.0.3.tar.gz

 按此阅读全文 "爽!这不是演习,这不是演习!" »

安装httpd-2.2.3.tar.bz2
安装tomcat-connectors-1.2.21-src.tar.tar

温暖的阳光降落在脸颊,我消失在世界上。精神世界的逃逸,现实世界的挣扎,不知疲倦的渴求是人们灵魂上的裂纹,一直延伸(带领我们)到死亡时刻。

 按此阅读全文 "马马虎虎的整合4 安装httpd-2.2.3.tar.bz2" »

04 6, 2007

3 安装mysql-standard-5.0.27-linux-i686.tar.gz
本文纯属虚构,如有雷同,实属巧合。
  最近女星脱得越来越频繁了,从男人装到新浪博客,一个个让人津液横洒的玉体,把黄色皮肤从过路人沙发人板凳人等的眼睛推射进去,再从啤酒般的尿水中流出来。来不及流鼻血了,血液都充到碎裂的红宝石般的双眼以及(包含的时间总嫌少的)海绵体中去了。也没什么人需要高喊为艺术献身云云再脱衣涂橄榄油了,蕾丝内裤只需随着一声自言自语似的‘突破自我’就飞挂摄影师镜头上了。“这是一个脏字儿”!专业报错了……
  不管怎么样,作为我的态度:欢迎欢迎,热烈欢迎……
  怎么跑这么远,拉回来。如果说网站html,jsp是明星的形象,j2sdk勉强理解为娱乐环境,Tomcat看成经纪公司,那么MySQL就差不多相当于明星衣服下的身体了,都是真真正正实在支撑的东西.与其不同的是,一个越来越需要表现脱脱脱,另一个越来越要求隐蔽防防防。

 按此阅读全文 "马马虎虎的整合3 安装mysql-standard-5.0.27-linux-i686.tar.gz" »

安装jakarta-tomcat-5.0.28.tar.gz
所有《》应该是<>。

  那天坐车迷路了,坐在路边我就哭起来,哭着哭着,我就坐船回家了。

 按此阅读全文 "马马虎虎的整合2 安装jakarta-tomcat-5.0.28.tar.gz" »

1,安装j2sdk-1_4_2_12-linux-i586-rpm.bin

 按此阅读全文 "马马虎虎的整合1 安装j2sdk-1_4_2_12-linux-i586-rpm.bin" »

12 21, 2006

jdk-1_5_0_10-windows-i586-p.exe

apache_2.2.3-win32-x86-no_ssl.msi

apache-tomcat-5.5.20.exe

mysql-5.0.24-win32.exe

mysql-gui-tools-5.0-r6-win32.msi

mod_jk-apache-2.2.3.so

mysql-connector-java-5.0.4-bin.jar

 按此阅读全文 "WindowsXP中JSP服务器的配置备忘" »

12 11, 2006

配置apache虚拟目录(虚拟主机?我也不知道叫什么),实现本机的两个目录d:\sohu和d:\sina,分别通过www.sohu.com和www.sina.com访问。

 按此阅读全文 "apache2.2.3虚拟目录" »

11 22, 2006

 httpd.exe用法俩。

 按此阅读全文 "apache一小点收获" »

11 20, 2006

这一篇的后半部分写得好,写出了气势,写出了知识,写出了民族传统美德,写出了人类自强不息的精神,写出了整个宇宙从生而无知到泉下有知的光辉历程…… 从猪蹄儿到木卫二 我越来越适合当老师了,我必须去幼儿园从事思想品德教育工作了!

1,表格的边框;

2,动态地址的锚点; 

 按此阅读全文 "Html的简单技巧" »

 按此阅读全文 "备忘)删除数据、得到结果个数和调用文件(" »

11 9, 2006

  原有的企业注册系统,向其中添加了“注册时间”一项,但是不用注册者添,使系统默认的时间,只显示给管理员看,是一个隐含项。

 按此阅读全文 "简单的综合操作 java MySQL JSP" »

11 8, 2006

 按此阅读全文 "MySQL 复习简单数据修改,试验简单数据查询" »

11 6, 2006

  同事大姐需要个理事会的成员库,存储理事会成员的资料,便于查找和管理。我于是自告奋勇给做一个。第一步先完成了添加、察看和查询的功能。

 按此阅读全文 "jsp的简单实践" »

11 1, 2006

  更改昨天的程序。

 按此阅读全文 "MySQL联合查询的简单运用" »

10 31, 2006

显示时间程序,和另外一个统计信息数的小程序。

 按此阅读全文 "java MySQL简单操作" »

10 27, 2006

修改几条数据

 按此阅读全文 "一次简单的MySQL操作" »

10 23, 2006

 按此阅读全文 "20061019问题的解决" »

10 19, 2006

在jsp中用javabean出现错误

 按此阅读全文 "记录jsp与java的一个问题" »

10 17, 2006

 按此阅读全文 "jsp、表单等试验" »

10 8, 2006

Linux - 第一段。关于“you have mail”

 按此阅读全文 "linux - "you have new mail" & "you have mail"" »

08 30, 2006

就是在单位数月份前面加了个零(绕了八百圈才实现):


/*
* Created on 2006-8-28
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.eduinfo.bean;
import java.util.Calendar;
import java.util.GregorianCalendar;

/**
* @author pink
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class DisplayTime {
public static void main(String args[]) {


GregorianCalendar today=new GregorianCalendar();
int year=today.get(Calendar.YEAR);
int month=today.get(Calendar.MONTH);
int day=today.get(Calendar.DATE);
String M=Integer.toString(month+1); //int型的month转换成String型的M
//System.out.print(M);用来测试有效否的打印。
int length=M.length();// 这一步很郁闷,为什么还要加个lenght在里面呢,可是直接用M.length==1做判断就不行
//System.out.print(length);作用同上面的打印
if (length==1){
String N="0"+M; //又加了个N,感觉太“复杂”了
System.out.print(year+"-"+N+"-"+day); }
else
System.out.print(year+"-"+(month+1)+"-"+day);
}
}

08 29, 2006

 按此阅读全文 "第三个程序,一个小应用。" »

08 21, 2006

  DreamWeaver MX 2004中,中文经常显示为乱码,并且这个问题总会无缘无故出现,有时又会莫名其妙自动消失。另一方面,这个页文件在IE中是正常的,用记事本打开也正常显示中文字符,(就是说要改动什么内容在记事本就可以实现,可是)怎么能解决这个问题呢?我们不能任意它来去自如,要杀死这只苍蝇。
  在网上Google了一篇对策,实乃治病良方,文章名《DW MX 2004网页中文乱码问题解决》-作者不详。感谢作者。总结下来这套神功有三式:
·1,编辑-首选参数-字体-简体中文GB2312;
·2,修改-页面属性-标题/编码-简体中文(GB2312)-重新载入;(我练到第二重问题就解决了)
·3,在>head<和>/head<之间添加>meta http-equiv="Content-Type" content="text/html;charset=gb2312"<
  至于出现这种问题的原因,文章说是由于用其他编辑器(文中提到的是Editplus,我的是Eclipse)写的时候没有严格的网页编码声明,我感觉我出问题的几次都是这么回事。
  文章最后还有一个注意:

在DW MX 2004里面输入编码时是没有效果的,非得用除DW以外的编辑软件打开插入
我还没有涉及到这些,但是加在这里以备用。

  网上还有一篇是修改注册表以改正乱码的文章,那个主要说是新添加一种字体后的情况,我还没遇到,没法实践经历验证,以后再说吧。

08 13, 2006

 按此阅读全文 "我的第一个程序,绝对不是HelloWorld" »

08 6, 2006

CLASSPATH=.\;%JAVA_HOME%\lib\tools.jar

08 1, 2006

从网络上摘抄了这个。虽然最近经常有机会设置这个东西,但是对于别人来讲幼儿科的东西,我还是不能做到了如指掌,每次都要查阅。这次写过来,希望在这过程中加深些印象。[2006.8.1]
注意:我只设置了JAVA_HOME(C:\j2sdk),PATH(;C:\j2sdk\bin)两个变量,即可出现“java -version”成功执行的界面,并无他碍。
另附:《配置Eclpise+tomcat与实现JSP部署》,有用的部分标记为黑体字带下划线。

 按此阅读全文 "JDK安装及环境变量设置(图)" »

06 29, 2006

 按此阅读全文 "Web_记录问题" »

06 26, 2006

 按此阅读全文 "Web_1(滚动字幕,动态新闻)" »

05 11, 2006

我现在的激动不亚于"我现在在月球上为您现场直播......"正常模式下没有发表按钮,只好使用"一健发布"

云中漫步:欢迎回到地上……连省略号都能打出来!
回到windows,有趣。网络上说的windows&linux双系统引导很复杂,结果我前两天就跟着晕了。今天我就一路“next”下来,默认值原来就可以解决一切问题!grub自动就好了。

04 25, 2006

今天查找EclipseTidy下载,结果网上的信息可谓垃圾得很。全是摘抄,而且英文看不懂。这里记下一个直接的地址。
下载地址选择界面:http://prdownloads.sourceforge.net/eclipsetidy/net.sf.eclipsetidy_1.2.2_local_site.zip?use_mirror=nchc台湾服务器,点击直接下载:http://nchc.dl.sourceforge.net/sourceforge/eclipsetidy/net.sf.eclipsetidy_1.2.2_local_site.zip

02 11, 2006

同時可以被理解為"智能受到外限"或"自身思辨能力有限"。