载入中
自定义HTML载入中... loading
日历
<<  <  2008 - 10  >  >>
Su Mo Tu We Th Fr Sa
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
载入中
边栏内容载入中... loading
置顶文章
JavaGo网站对应的博客 [5/21/2006 4:13:46 PM]
开发程序时如何选择自己的利器? [原创 2006-08-18 17:03:43]  

上个项目结束后倒现在做的东西和学的东西比较杂。主要学习了php,shell,perl(mod_perl)。再加上以前使用了3年的java,基本上也算是了解的各个语言之间的差异。
外国的程序员都说:使用最适合的工具工作。
以前对我来说,最适合的工具就是java,因为没有什么语言比Java更让我熟知的了。而且Java的强大和保罗万象,也让我觉得自豪和骄傲。
但当使用php开发web项目时,我体会到php的轻便和快捷。没有繁琐的框架,没有多种多样的web服务器的选择,没有JDBC driver的选择。没有吃内存吃的让人疯狂的eclipse和Jbuilder编辑器。总之一切都那么轻便。

shell脚本配合着linux操作系统让我们更加容易的操作着我们的操作系统。

perl却还没有得到我足够的认识,不过它特有的语言语法,让我体会到了另一种编程语言的风格。并且很多的人追捧它,它也跨平台,不用编译,轻便简洁让我也有些心动,想去更多的了解它。

总之,如果按照老外程序员所说:使用最合适的工具工作。我想我会这样选择工具:
web开发:php java(jsp)
桌面应用:java pb c vb delphi c/c++
系统管理:perl shell
底层开发:c/c++

以上都是我在我所了解的知识范围内写的东西。不能代表大家的想法和权威的想法。如果谁有更好的想法。请大家也都多谈谈。

 

(字节数 : 652)


我欠我老婆一个幸福,

我要用一生来还给她!

在没有风雨的天气里,

我要预备好雨伞。

在没有烈日的天起里,

我要预报好遮阳伞。

用我的行动来构建一个大伞,

来还给我老婆一个幸福。

 

 

(字节数 : 170)
基于web的IM大集合 [原创 2006-07-24 14:37:59]  

上网聊天,没有安装MSN,SKYPE,GTalk?没关系,有了以下的网址,照样可以聊天。


http://webmessenger.msn.com


http://www.iloveim.com


http://www.emessenger.net


http://ebuddy.com/


http://www.meebo.com


http://www.koolim.com/

 

(字节数 : 495)
web msn的开发资料 [原创 2006-07-22 10:27:51]  
■MSN协议
英文:
http://www.hypothetic.org/docs/msn/general/overview.php
中文:
http://blog.csdn.net/fanccYang/category/106184.aspx

■TJMSN
网址:http://tjmsn.tomjudge.com
简介:
TjMSN was started as due to a lack of decent MSN Messenger clients for Linux, so I decided that I would write a client that was platform independent, so that I would run on both my desktop and laptop.

TjMSN is licensed under the terms of the GNU General Public License.

就是一个平台无关的msn客户端
使用情况:
可正常运行,不过对于中文支持较差。在发送中文消息后,就出现发送其他消息失败的情况。

■TjMSNLib
网址:http://tjmsn.tomjudge.com
简介:
About TjMSNLib
TjMSNLib was was split from the original TjMSN development tree to aid in the seperation of the Networking Code from the GUI to a) simplify the GUI code, b) to remove large repeated code chunks, c) to make it easyer to manage the networking as it is now all in a single package rather than spread accross the GUI classes.

TjMSNLib is licensed under the terms of the GNU General Public License

就是一个MSN协议的Java实现的包,提供了3个小例子,一个简单的客户端,一个只会回复“OK”的msn机器人,另一个也是一个msn机器人,可以在用户改变状态时发送“hey”给改用户。

客户端,还有第一个msn机器人已经好用。
本包提供了docapi文档:&<60;&<60; &<60;http://tjmsn.tomjudge.com/docs/lib/

利用以上可以实现web msn
文档地址:
http://tjmsn.tomjudge.com/developers/tjmsnlib.php

■libmsn
网址:http://libmsn.bdash.net.nz/
简介:
libmsn is a C++ library for Microsoft's MSN Messenger service. It provides a high-level interface that allows an application to access instant messaging features with ease.

The libmsn 3 series is a complete refactoring of Meredydd Luff's original libmsn, which is used by several popular instant messaging clients, including Fire, Everybuddy Lite, and attym. The result of the refactoring is that the library is more object-oriented, consistent and maintainable. This has made it possible to simplify the code, add new features, and squash a number of existing bugs.


■MSN Client
简介:http://www.sourceshock.com/details_snippet/37/
用php实现的msn 客户端。使用msn的MSNP8通讯。

没有用起来。


■Blobsy
网址:http://www.blobsy.org/
简介:
Blobsy is an Open Source MSN Messenger bot, designed for easy setup, flexibility and ease of use. It is highly customizable and adding more functionality is extremely easy. It is freely distributable under the GNU General Public License (GPL).

没有用起来。
■JMSN
简介:和TJMSN类似

http://jmsn.sourceforge.net/
■msnmlib
简介:和TjMSNLib类似
不过都是韩文,看不懂
DOCAPI地址:
http://jmsn.sourceforge.net/msnmlib/docs/index.html
■PHP MSN Messenger Class
http://flumpcakes.co.uk/php/msn-messenger
简介:
This is a simple to use class file which can be used to connect to the MSN Messenger Network. For the SSL authentication the php_curl modules can be used, or a curl executable (binary).

Currently the MSN9 Protocol is supported, and IM messages can be sent and received.

- Script updated to fix auth failures -


 

(字节数 : 3147)
这是web2.0吗? [转贴 2006-07-21 16:50:13]  
她…是一种全新的服务理念,一种时髦的消费模式. Web被2.0包养了。创业人抄着半生不熟的2.0技术,以为凭借2.0式的炒作,钱是可以捡来的。参与者身穿2.0的性感外衣暴露着自己的生活习性,认为关注就是名气!这些日子,生产的有宝藏也有垃圾!那么“消费者在哪里?怎么才能让生产与消费平衡呢?”

 

(字节数 : 164)
JMSN的SwitchboardSession建立故障 [原创 2006-07-21 16:48:47]  

研究msn api,研究到了JMSN带的msnmlib,却发现了不少的问题。
最严重的一个问题就是使用msnmlib主动和别人聊天的时候,总容易出现聊天信息丢失的情况,于是上网查找原因:发现很多人提到以下:
String lastLogin = "test@hotmail.com";
messenger.doCall(lastLogin);
Thread.sleep(1000);//最好在此有所延迟,要不SwitchboardSession创建容易失败
SwitchboardSession ss = messenger.doCallWait(lastLogin);
MimeMessage msg = new MimeMessage();
msg.setKind(MimeMessage.KIND_MESSAGE);
msg.setMessage("你好,周末愉快!");
ss.sendInstantMessage(msg);

如果不能顺利的建立好SwitchboardSession,自然就没有办法正常聊天,哪这个东西就要大大折扣啦。
然后有人给出了很多的解决方案:
■1.
String lastLogin = "test@hotmail.com";
messenger.doCall(lastLogin);
Thread.sleep(1000);//最好在此有所延迟,要不SwitchboardSession创建容易失败
SwitchboardSession ss = messenger.doCallWait(lastLogin);
MimeMessage msg = new MimeMessage();
msg.setKind(MimeMessage.KIND_MESSAGE);
msg.setMessage("你好,周末愉快!");
ss.sendInstantMessage(msg);
■2.
关键是在doCall之前要先设一下状态msn.setMyStatus(UserStatus.ONLINE);不需要Thread.sleep(…);也可以不用doCallWait
■3.
是要在public void whoJoinSession( SwitchboardSession ss, final MsnFriend join )中添加代码,每次docall完都会触发这个事件,这时的session是非空的。!!

public void whoJoinSession( SwitchboardSession ss, final MsnFriend join )
    {
        boolean success=true;
        String loginName = join.getLoginName();
            if( ss.getSessionId()==null )
                return;
            MimeMessage msg = new MimeMessage("你好,这是机器人自动与你通话。");
            msg.setKind(MimeMessage.KIND_MESSAGE);
            try
            {
                success = messenger.sendMessage(ss.getMsnFriend().
                    getLoginName(), msg);
            }
            catch(Exception e)
            {e.printStackTrace();
            }
            if ( success )
            jLabelStatus.setText("打完招呼.");

    }

还有人提到这个库本身就不够稳定,我也有这样的感觉。
总之需要使用这个库的人,不得不处理好这个问题。

 

(字节数 : 3146)
php得问题,不知算不算bug [原创 2006-07-04 17:44:04]  

13:42 2006-7-3
php得问题,不知算不算bug
$startnum="0\r\n";
$endnum=10;
for($i=$startnum;$i<$endnum;$i++){
echo $i;
}

按理来说,结果应该是:
0123456789
可结果却是:
000000000000000000000000000....无数的0
<?php
$startnum="0\r\n";
$startnum=$startnum+1-1;
$endnum=10;
for($i=$startnum;$i<$endnum;$i++){
echo $i;
}
?>
则能得到结果:
0123456789

以上现象不知道算不算php的bug??

 

(字节数 : 415)
如何向Alexa提交网址 [原创 2006-07-04 17:43:22]  

15:40 2006-7-3
如何向Alexa提交网址:

网站新建或重大更新,或者在alexa找不到你,在这个页面下面提交网址:

http://pages.alexa.com/help/webmasters/index.html#crawl_site

如何向Alexa提交你的网站图片:

网站新建或重大更新,在这个页面下面提交网址图片:

http://thumbnails.alexa.com/update_thumbnail

 

(字节数 : 407)

15:35 2006-7-4
搞了半天alexa的service不是完全免费的,是需要钱的。
我想获得一些网站的alexa数据,本来想直接偷些数据过来就可以了。
后来看到alexa的网站上说,他们提供了这些服务。
-Did you know? Alexa offers this data programmatically.  Visit http://aws.amazon.com/awis for more information about the Alexa Web Information Service.
心中高兴。
赶紧按照他们的说明,申请帐号,获得Access Key ID和Secret Access Key;
然后下载了他们的Code Samples(示例代码),不过不幸的是:程序告诉我,没有授权。

上网查原因,看到以下说明:
If you are getting "Not Authorized" messages, here are the likely causes of the problem:

Your Access Key or Secret Access Key were not entered properly. Please re-check that they are correct.
Be sure you're signed up specifically for Alexa Web Information Service at http://aws.amazon.com/awis.
Your credit card was not authorized. You must use a valid credit card or your requests will not be authorized.

接着signed up,然后就看到了让输入visa卡号,可惜我根本就没有这些卡,更没有卡号。所以此事作罢,继续偷些数据吧。
Alexa Web Information Service

Pricing
First 10,000 requests per month are free
Additional requests are $0.00015 per request ($0.15 for 1,000 requests)

Please Select a Payment Method

All your future AWS service charges will be billed to the payment method you select. Should you need to do so, you will be able to change to another payment method in the future.

 

Enter a Credit Card Below

 

 

(字节数 : 1461)
a joke [转贴 2006-06-27 17:48:16]  
Dear Tech Support:
Last year I upgraded from Girlfriend 7.0 to Wife 1.0. I soon noticed ?that the new program began unexpected child processing that took up a ?lot of space and valuable resources. In addition, Wife 1.0 installed itself into all other programs and now monitors all other system activity. Applications such as Poker Night 10.3, Football 5.0, Hunting and Fishing 7.5, and Racing 3.6
I can't seem to keep Wife 1.0 in the background while attempting to run my favorite applications. I'm thinking about going back to Girlfriend 7.0, but the uninstall doesn't work on Wife 1.0. Please help!
Thanks,
A Troubled User. (KEEP READING)

 

(字节数 : 652)
1 | 2 | 3 | 4 | 下一页
和讯个人门户 v1.0 | 和讯部落 | 客服中心