10/05/2008 01:42,分类:ITer,来源:本站原创
     这是个很有意思的工作,你一边在方便了自己日常事务的同时,会略微感到惬意,因为这个使你方便的工具是你自己创造的,更不可思议的是,它是用javascript打造的,当然JS是核心,这个应用称之为“web应用”更贴切些,为了美观,我们需要用到图片(以PNG最为常见),CSS样式表来支撑这项工作,它就是google桌面小工具。
    这个小玩意儿让我看到,web应用和桌面应用的分界越来越模糊了,因为这个几乎全部是用js写的东西却的的确确的在你的桌面上运行着,像一个士兵一样负责任的为你工作着。。。。当然,出于无聊,我试着自己打造一个小小的应用,就是显示一下今天的日历,以我认为美丽的方式,在网络找了一圈,没有发现合适的,这里我想起了毛主席他老人家的谆谆教诲—“自己动手,丰衣足食”。

点击在新窗口中浏览此图片


    GOOGLE提供了桌面小工具的开发工具包的下载,整个大小也就4M多,还包含了N多的例子教程,所以,我料想它也不会复杂到哪儿去,去google看了下这个SDK的介绍,果然是简单!
    做法我就不细说了,我倒是觉得用这玩意来学习JS,感觉乐趣平添了不少,做前面的日历,先弄几张图片,作为背景,画几个控件,分别放年月日。然后用js new Date()一个,然后分别获取当前年月日,控件innerText之,就算完成,然后打包,或者直接安装上,它就会在侧边栏上了,你就能天天看了,颇有几份成就感。

当然,这个着实简单,另外,google提供了丰富的api,让JS轻松的和系统通信,爽哉!

这种机制还真的不错,妙不可言呐。。。。。
Tags: , , ,
01/15/2008 19:27,分类:PHP,来源:本站原创
    难得,真的很难得,今天得偷闲了一天,无聊着呢,就想让偶的个性签名显示在博客上,于是整,找到一个曲径通幽的方法,就是找滔滔(差点打成套套),我用PHP写的一段代码,就一个字符串出来,无甚技术含量,倒是之前找调用点——api费了半天脑筋,OK,看代码。
04/02/2007 10:09,分类:Visual Basic,来源:本站原创
'   (1) I have never used WS_SELECT (select), therefore I must warn that I do
'       not know if fd_set and timeval are properly defined.
'   (2) Alot of the functions are declared with "buf as any", when calling these
'       functions you may either pass strings, byte arrays or UDT's. For 32bit I
'       I recommend Byte arrays and the use of memcopy to copy the data back out
'   (3) The async functions (wsaAsync*) require the use of a message hook or
'       message window control to capture messages sent by the winsock stack. This
'       is not to be confused with a CallBack control, The only function that uses
'       callbacks is WSASetBlockingHook()
'   (4) Alot of "helper" functions are provided in the file for various things
'       before attempting to figure out how to call a function, look and see if
'       there is already a helper function for it.
'   (5) Data types (hostent etc) have kept there 16bit definitions, even under 32bit
'       windows due to the problem of them not working when redfined following the
'       suggested rules.
Tags: ,
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]