• 2006-06-27

    Always Come Back To Your Love

    Views: 12182 | No Comments

    据说被国内乐队抄袭的歌曲。到baidu MP3搜索就可以得到下载链接。

    Always Come Back To Your Love
    	歌手:Samantha Mumba     
    Written by Mikkel S.E/Hallgeir Ruston
    
    Yeah, check it out
    What, what, what, what
    Uh, you like that? Uh
    Come on yeah
    Uh, no doubt
    Break it
    
    I've been up and down (uh, what)
    Been going round and round (uh)
    I've been all over town (wha-what,uh)
    But I'll never ever find somebody new for sure
    (Yes, yes you are, left to right, yes
    Yes you are and rock you all night)
    
    Show me where I belong tonight (all night)
    Give me a reason to stay
    No matter if I go left or right (left to right)
    I always come back to your love
    
    I've been high and low (uh)
    I don't know where to go (no, baby)
    Because I love you so (you like that)
    And I'll never ever find someone like you for sure
    (Yes, yes you are, left to right, yes
    Yes you are and rock you all night)
    
    Show me where I belong tonight (all night)
    Give me a reason to stay (I need a reason, yeah)
    No matter if I go left or right (left to right)
    I always come back to your love
    (Back to your love, yeah)
    Woah
    No matter if I go left or right (left to right)
    I always come back to your love (yeah)
    Woah
    
    Show me love tonight
    I'm going left to right
    No matter where I go
    I always find your love
    
    Show me where I belong tonight (all night)
    Give me a reason to stay
    No matter if I go left or right (left to right)
    I always come back to your love
    
    Show me where I belong tonight (all night)
    Give me a reason to stay
    No matter if I go left or right (left to right)
    I always come back to your love
    
    (Left to right, you like that?)
    Woah
    (let's go)
    Woah
    (Show me)
    I always come back to your love
    
    Posted by ideawu at 2006-06-27 20:22:22
  • 2006-06-27

    中国人科技落后不是因为字母和单词

    Views: 9136 | No Comments

    前几天又见所谓的“中文编程”,让我气愤不已。这种所谓的“中文编程”,无非是利用了编译器对多字节文字的支持,将英文字母或者单词一一对应地映射为汉字。

    我曾经写过一篇文章《英语对于编程重要吗?》,得出结论是中国人可以不需要学习任何语言或者文字就可以编程---甚至是中文文盲!现在想想,当时的结论还不够好,现在我说,中国人可以只识别0和1两个符号就可以编程,完全不需要什么“难学”的英文!方法很简单,使用一种你认为好的编码方式,就跟计算机内部一样,用0和1编码所有的英文文字。简单的英文单词你不认识,0和1你还不认识吗?

    有点不着边际了。单个文字或者单词只不过是程序的基本单位。一个程序重要的是一个句子,整个程序。但是,最重要的是源代码后面的编程思想和科学理论!我们知道1,2,3...是阿拉伯数字,而汉字里有一,二,三...与之对应一样。那么数学运算中你会使用阿拉伯数字还是中文数字来表示呢?当然是阿拉伯数字。

    英文字母和单词在编程中有中文文字无法比拟的简洁,而且由字母文字国家的人创造的科技当然与他们的文字密切相关,那么有些人为什么会本末倒置地去追求这种一一对应的“中文编程呢”?

    中国人科技的劣势在语言上,因为我们的母语是汉语。我不是说英语比汉语优秀(很复杂的说法,我不想讨论),我是说,当前的科技,文明,优秀的思想的载体主要是英文,那么不会使用英文的中国人就处于劣势。

    与其追求这种愚蠢的“中文编程”的实践,还不如花精力去学习外国先进的思想并尝试创造我们自己的理论。

    Posted by ideawu at 17:01:56
  • 2006-06-25

    可爱的图标

    Views: 9222 | No Comments

    来自 http://www.turbomilk.com/icrm/ 的图片。

    Posted by ideawu at 2006-06-25 10:59:06
  • 2006-06-24

    用Firefox的ScrapBook插件保存网页

    Views: 26053 | 2 Comments

    Mozilla Firefox的ScrapBook插件可以保存多个层次的网页,而不仅仅限于当前页面。而且用它保存的网站能连同CSS文件中使用的图像也保存下来。就相当于在本地机器上建立网站的镜像了。也可以选择保存特定的文件,如网页中使用到的.mp3文件或者.jpg图像文件等。

    正如Mozilla插件网站的说明一样:

    ScrapBook 能够帮助您保存网页,并且可以方便的管理您收集的网页。轻巧、迅速、准确和多语言支持。它可以为您:

    • 保存网页
    • 截取网页的部分内容
    • 保存深层链接的网页
    • 类似书签一样组织收集的网页
    • 全文搜索和快速过滤查寻
    • 简单编辑收集的网页
    • 建立 Text/HTML 格式的便签

    该插件在:http://addons.mozine.org/firefox/15/

    ScrapBook

    Posted by ideawu at 2006-06-24 22:10:02 Tags:
  • 2006-06-23

    如何使用ServletContextListener

    Views: 17540 | No Comments

    这个J2EE小提示阐述了ServletContextListener的用法。这个事件类作为Web应用程序的一部分,处理Web应用程序的servlet上下文(context)的变化的通知。这可以解释为,好像有个人在服务器旁不断地通知我们服务器在发生什么事件。那当然需要监听者了。因此,在通知上下文(context)初始化和销毁的时候,ServletContextListner非常有用。

    import javax.servlet.ServletContextListener;
    import javax.servlet.ServletContextEvent;
    import javax.servlet.*;
    
    public	class MyListener implements ServletContextListener {
    
    	private ServletContext context = null;
    
    	/* 这个方法在Web应用服务被移除,没有能力再接受请求的时候被调用。
    	 */
    	public void contextDestroyed(ServletContextEvent event){
    		//Output a simple message to the server's console
    		System.out.println("The Simple Web App. Has Been Removed");
    		this.context = null;
    
    	}
    
    	// 这个方法在Web应用服务做好接受请求的时候被调用。
    	public void contextInitialized(ServletContextEvent event){
    		this.context = event.getServletContext();
    
    		//Output a simple message to the server's console
    		System.out.println("The Simple Web App. Is Ready");
    
    	}
    }
    
    <web-app>
    	<listener>
    		<listener-class>
    			com.listeners.MyContextListener
    		</listener-class>
    	</listener>
    	<servlet/>
    	<servlet-mapping/>
    </web-app> 
    

    原文在:http://www.java-tips.org/java-ee-tips/java-servlet/how-to-work-with-servletcontextlistener.html
    题目为:How to work with ServletContextListener

    Posted by ideawu at 2006-06-23 18:20:15
  • 2006-06-23

    基于HTML/JavaScript的本地运行的TiddlyWiki

    Views: 12790 | No Comments

    TiddlyWiki, 仅仅采用 Html + CSS + JavaScript 所组成的一个文件,允许你没有服务器、数据库、ASP或PHP的支持就可以编辑自己的 Wiki 系统。中文化的目的是推进其在中国大陆的使用。

    --- TiddlyWiki中文网站上的介绍。

    昨天朋友介绍的一个好东西。具有保存功能,作为记事本使用不错。到 http://gf.cs.hit.edu.cn/projects/tiddlywiki/ 下载。直接在浏览器中打开html文件。

    Posted by ideawu at 14:21:52 Tags:
|<<<116117118119120121122123124>>>| 120/138 Pages, 825 Results.