快乐着飞舞着

---Nothing to do is doing nothing
随笔 - 93, 文章 - 5, 评论 - 56, 引用 - 0
数据加载中……

test

test

posted @ 2007-06-29 17:09 快乐着飞舞着 阅读(233) | 评论 (0)编辑 收藏

java 和 c# 的webservice 互操作的问题

     摘要: 使用java 写了一个web service ,在c#中调用。如果返回 string int 这种基本类型没有任何问题,但是如果如下的一个bean public class UserBean {    int userid;    String username;&n...  阅读全文

posted @ 2007-06-29 14:54 快乐着飞舞着 阅读(5406) | 评论 (2)编辑 收藏

mysql 在 jboss 4.+ 上的数据源配置

只需要 把\docs\examples\jca\mysql-ds.xml 修改后拷贝到 \server\default\deploy 下即可

posted @ 2007-06-01 16:28 快乐着飞舞着 阅读(275) | 评论 (0)编辑 收藏

[转载]Java平台版本号的演变

http://tb.blog.csdn.net/TrackBack.aspx?PostId=1608308
http://blog.csdn.net/danny_xcz/archive/2007/05/14/1608308.aspx

Java Platform
    Java Java 2
Standard Edition (Java SE) developer version 1.1 1.2 1.3 1.4 1.5 1.6 1.7
product version 1.1 1.2 1.3 1.4 5.0 6.0 7.0
Platform name Java Platform 1.1  Java 2 Platform Standard Edition 1.2(J2SE 1.2) Java 2 Platform Standard Edition 1.3(J2SE 1.3) Java 2 Platform Standard Edition 1.4(J2SE 1.4) Java 2 Platform Standard Edition 5.0(J2SE 5.0) Java Platform Standard Edition 6(Java SE 6) Java Platform Standard Edition 7(Java SE 7)
Software Development Kit(SDK)  Java Development Kit 1.1(JDK 1.1) Java 2 SDK Standard Edition/J2SE SDK 1.2(J2SDK 1.2) Java 2 SDK Standard Edition/J2SE SDK 1.3(J2SDK 1.3) Java 2 SDK Standard Edition/J2SE SDK 1.4 (J2SDK 1.4) J2SE Development Kit 5.0(JDK 5.0) Java SE Development Kit 6(JDK 6) Java SE Development Kit 6(JDK 7)
Java Runtime Environment(JRE) Java Runtime Environment 1.1 (JRE 1.1) J2SE Java Runtime Environment 1.2 (J2RE 1.2) J2SE Java Runtime Environment 1.3 (J2RE 1.3) J2SE Java Runtime Environment  1.4 (J2RE 1.4) J2SE Runtime Environment 5.0 (JRE 5.0) Java Runtime Environment 6(JRE 6) Java Runtime Environment 7(JRE 7)
Enterprise Edition (Java EE) Platform name   Java 2 Platform Enterprise Edition 1.2 (J2EE 1.2)  Java 2 Platform Enterprise Edition 1.3 (J2EE 1.3)  Java 2 Platform Enterprise Edition 1.4 (J2EE 1.4)  Java Platform Enterprise Edition 5 (Java EE 5)  Java Platform Enterprise Edition 6 (Java EE 6)  Java Platform Enterprise Edition 7 (Java EE 7) 
Software Development Kit(SDK)    Java 2 SDK Enterprise Edition 1.2 (J2EE SDK 1.2) Java 2 SDK Enterprise Edition 1.3 (J2EE SDK 1.3) Java 2 SDK Enterprise Edition 1.4 (J2EE SDK 1.4) Java SDK Enterprise Edition 5(Java EE SDK 5) Java SDK Enterprise Edition 6(Java EE SDK 6) Java SDK Enterprise Edition 7(Java EE SDK 7)
Micro Edition (Java ME) Platform name   Java 2 Platform Micro Edition (J2ME) Java Platform Micro Edition (Java ME)
 

posted @ 2007-05-18 10:01 快乐着飞舞着 阅读(971) | 评论 (0)编辑 收藏

"Hello World"

1)High School Student
10  PRINT "HELLO WORLD"
20  END

---------------------------------------------------------------------------
2)College Student
program Hell(input, output)
begin
  writeln("Hello World")
end.

---------------------------------------------------------------------------
3)New Professional
#include ...

void main(void)
{
  char *message[] = {"Hello", "World"};
  int i;
  for(i = 0; i < 2; ++i)
    printf("%s", message[i]);
  printf("\n");
}

---------------------------------------------------------------------------
4)Seasoned Professional
#include ...

class string{
private:
  int size;
  char *ptr;

public:
  string() : size(0), ptr(new char('\0')) {}
  string(const string &s) : size(s.size){
    ptr = new char[size + 1];
    strcpy(ptr, s.ptr);
  }
  ~string() {delete []ptr;}
  friend ostream& operator <<(ostream &, const string &);
  string &operator =(const char *);
};

ostream& string::operator <<(ostream &os, const string&s){
  return (os << s.ptr);
}

string& string::operator =(const char *chrs){
  if(this != &chrs){
    delete []ptr;
    size = strlen(chrs);
    ptr = new char[size + 1];
    strcpy(ptr, chrs);
  }
  return (*this);
}

int main(){
  string str;
  str = "Hello World";
  cout << str << endl;
  return 0;
}

---------------------------------------------------------------------------
5)New Manager
10 PRINT "HELLO WORLD"
20 END

---------------------------------------------------------------------------
6)Middle Manager
mail -s "Hello, world." bob@b12
Bob, could you please write me a program that prints "Hello, world."?
I need it by tomorrow.
^D

---------------------------------------------------------------------------
7)Senior Manager
% zmail jim
I need a "Hello, world." program by this afternoon.

---------------------------------------------------------------------------
8)Chief Manager
% letter
letter: Command not found.
% mail
To:^X^F^C
% help mail
help: Command not found.
% damn!
!: Event unrecognized.
% logout


posted @ 2006-11-10 22:11 快乐着飞舞着 阅读(317) | 评论 (0)编辑 收藏

Linux 下java 乱码的 解决 [转载 ]

假设用的字体是 /usr/share/fonts/truetype/fireflysung.ttf

cd /path/to/jre/lib/fonts
sudo mkdir fallback
cd fallback
sudo ln -s /usr/share/fonts/truetype/fireflysung.ttf .
sudo mkfontdir
sudo mkfontscale

这是最简单的方法,其他方法也有,不过都很麻烦。


http://www.vikee.net/article.asp?id=74

http://www.vikee.net/trackback.asp?tbID=74

原文是

Ubuntu Linux下Java中文乱码解决办法!

经我测试 在 fc5下也是有用的 ,
估计其他linux的 发行版本也是有效的。



posted @ 2006-10-11 10:42 快乐着飞舞着 阅读(1711) | 评论 (0)编辑 收藏

Eclipse xml编辑器冲突的问题 [原创]

在eclipse 中加载了很多插件,发现图形化的xml 编辑插件在打开图形化窗口式总是有如下的错误:


QUOTE:
 Unsupported content type in editor. To associate file extension with a supported content type, please see .....

一直以为是插件版本和eclipse版本不配套所导致,今天偶然看到下面一片文章
http://www.eclipsezone.com/eclipse/forums/t72490.html


QUOTE:
 

Re: How do I work around "Unsupported Content Type" error for HTML

Ian Leslie wrote:
> I just downloaded the web tools plug-ins (Web Standard Tools and J2EE
> Standard Tools). I created my first web site (a static web site
> project) and tried to create and edit an XHTML file. I received an
> "Unsupported content type in editor..." error when I tried to open it
> with the "HTML Editor". I have XML Buddy installed and it opened it by
> default.
>
> I have read the thread:
> http://dev.eclipse.org/newslists/news.eclipse.webtools/msg08746.html
>
> But it does not say how to work around the problem (other than removing
> XML Buddy) XML Buddy has been my XML editor for a while and I would
> like to continue to use it for XML editing. What can I do?

XMLBuddy claims to have worked around the problem for themselves
with their 2.0.66/2.0.67 versions, but for now the only solution to
allow WTP's editors to work is to uninstall/disable XMLBuddy.

--
- Nitin



恍然大悟 原来是 XMLBuddy 搞得鬼, xmlbuddy 的xml编辑器和 WTP 的编辑器冲突,禁用 xmlbuddy 重启eclipse 果然问题解决。

希望对碰到相同问题的朋友有帮助~~

posted @ 2006-08-31 22:07 快乐着飞舞着 阅读(4085) | 评论 (3)编辑 收藏

Linux下常用压缩格式的压缩与解压方法(转)

http://www.cnblogs.com/campfeather/articles/473999.html
http://www-900.ibm.com/developerWorks/cn/linux/l-tip-prompt/tip07/index.shtml

Linux下常用压缩格式的压缩与解压方法

     大致总结了一下linux下各种格式的压缩包的压缩、解压方法。但是部分方法我没有用到,也就不全,希望大家帮我补充,我将随时修改完善,谢谢!
作者:Linux爱好者
来自:www.LinuxByte.net
最后更新时间:2003-12-1

.tar
解压:tar xvf FileName.tar
压缩:tar cvf FileName.tar DirName
(注:tar是打包,不是压缩!)
---------------------------------------------
.gz
解压1:gunzip FileName.gz
解压2:gzip -d FileName.gz
压缩:gzip FileName
.tar.gz
解压:tar zxvf FileName.tar.gz
压缩:tar zcvf FileName.tar.gz DirName
---------------------------------------------
.bz2
解压1:bzip2 -d FileName.bz2
解压2:bunzip2 FileName.bz2
压缩: bzip2 -z FileName
.tar.bz2
解压:tar jxvf FileName.tar.bz2
压缩:tar jcvf FileName.tar.bz2 DirName
---------------------------------------------
.bz
解压1:bzip2 -d FileName.bz
解压2:bunzip2 FileName.bz
压缩:未知
.tar.bz
解压:tar jxvf FileName.tar.bz
压缩:未知
---------------------------------------------
.Z
解压:uncompress FileName.Z
压缩:compress FileName
.tar.Z
解压:tar Zxvf FileName.tar.Z
压缩:tar Zcvf FileName.tar.Z DirName
---------------------------------------------
.tgz
解压:tar zxvf FileName.tgz
压缩:未知
.tar.tgz
解压:tar zxvf FileName.tar.tgz
压缩:tar zcvf FileName.tar.tgz FileName
---------------------------------------------

.a
解压:#tar xv file.a

---------------------------------------------
.cpio.gz/.cgz

解压:gzip -dc file.cgz | cpio -div

---------------------------------------------
.cpio/cpio

解压:cpio -div file.cpio 或cpio -divc file.cpio

---------------------------------------------

.rpm

安装: rpm -i file.rpm
解压:rpm2cpio file.rpm | cpio -div

---------------------------------------------
.deb

安装: dpkg -i file.deb

解压:dpkg-deb --fsys-tarfile file.deb | tar xvf - ar p file.deb data.tar.gz | tar xvzf -
---------------------------------------------

.zip
解压:unzip FileName.zip
压缩:zip FileName.zip DirName
---------------------------------------------
.rar
解压:rar a FileName.rar
压缩:rar e FileName.rar


rar请到:http://www.rarsoft.com/download.htm 下载!
解压后请将rar_static拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以):
[root@www2 tmp]# cp rar_static /usr/bin/rar

---------------------------------------------
.lha
解压:lha -e FileName.lha
压缩:lha -a FileName.lha FileName

lha请到:http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/下载!
解压后请将lha拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以):
[root@www2 tmp]# cp lha /usr/bin/

---------------------------------------------
.tar .tgz .tar.gz .tar.Z .tar.bz .tar.bz2 .zip .cpio .rpm .deb .slp .arj .rar .ace .lha .lzh .lzx .lzs .arc .sda .sfx .lnx .zoo .cab .kar .cpt .pit .sit .sea
解压:sEx x FileName.*
压缩:sEx a FileName.* FileName

sEx只是调用相关程序,本身并无压缩、解压功能,请注意!
sEx请到:http://sourceforge.net/projects/sex下载!
解压后请将sEx拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以):
[root@www2 tmp]# cp sEx /usr/bin/



参考文献:Linux 文件压缩工具指南
(其实看帮助是最好的方法,一般各个命令都可以用“--help”参数得到常用使用方法!)

http://www.cnblogs.com/CampFeather/services/trackbacks/473999.aspx

posted @ 2006-08-26 23:25 快乐着飞舞着 阅读(768) | 评论 (0)编辑 收藏

Spring + hibernate 的错误

     摘要: 18 : 55 : 43 , 750  ERROR [ContextLoaderPlugIn] Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name  ...  阅读全文

posted @ 2006-08-08 19:00 快乐着飞舞着 阅读(2900) | 评论 (8)编辑 收藏

一个诡异问题终于得已解决

     摘要: 最近在学着在 struts 中使用 spring ,但是在发布到服务器上时总是有如表一的错误 。所有的配置文件 都是正确的,在网上就根本就没有什么解决办法。下载一个例子能发布成功,配置文件基本一致,我仔细比较了两个文件 发现差别就是 发布到服务器上 的war文件是否在/WEB-INF/lib文件夹下包含了struts 的所有类库,我当时觉得问题就是出在这里。把所有的依赖类库复制到jboss ser...  阅读全文

posted @ 2006-08-08 17:49 快乐着飞舞着 阅读(5334) | 评论 (1)编辑 收藏

仅列出标题
共10页: 1 2 3 4 5 6 7 8 9 Last 

Clicky