Yahoo! Query Language

development No Comments »

Yahoo! makes a lot of structured data available to developers through its Web services, like Flickr and Local, and through other sources like RSS (news) or CSV documents (finance). There are also numerous external Web services and APIs outside of Yahoo! that provide valuable data. These disparate services require developers to locate the right URLs for accessing them and the documentation for querying them. Data remains isolated and separated, requiring developers to combine and work on the data once it’s returned to them.

用SQL的方式来访问Yahoo的提供服务的一些数据,如social, flickr, geo, search等。非常好的创意。

目前提供了三个类SQL的命令:SELECT, DESC, SHOW

使用和SQL基本一致:SELECT what FROM table WHERE filter,同时还能在后面加入LIMIT, OFFSET等命令。同时还支持"."语法,XML文件的节点也可通过"."语法进行访问(详见Dot-style syntax)。

返回结果可以是XML/JSON。

这时有两个地址可以运行YQL

http://query.yahooapis.com/v1/yql?q=[command] (需要认证)
http://query.yahooapis.com/v1/public/yql?q=[command] (不需认证)

它还提供有一个console(需要Yahoo帐号登录),如上面所抓图所示。

Link: YQL

  • Share/Bookmark

Extending jQuery’s selector capabilities

javascript No Comments »

众所周知jQuery的selector已经非常强大了,但是文中作者提供了进一步扩展selector的方法。正所谓没有最强只有更强;)

大概格式如下

$.extend($.expr[':'],{
  foo: function(a) {
    //do something
    return elm;
  }
});
$(':foo');

通过中间的do something,select出elm。

作者文中有很多现成的实例,而且作者还在不断的更新更多的实例,看了实例更容易理解,不过更值得借鉴的还是他提供的这种思路。

Link: Extending jQuery selector

  • Share/Bookmark

DD_belatedPNG

javascript, webdesign No Comments »

目的很简单,用于修复IE6对background-image中的24-bit PNG支持问题(无法透明)。

使用也很简单:

<!--[if IE 6]>
<script src="DD_belatedPNG.js"></script>
<script>
DD_belatedPNG.fix('.png_bg'); /* EXAMPLE */
/* string argument can be any CSS selector */
/* using .png_bg example is unnecessary */
/* change it to what suits you! */
</script>
<![endif]-->


主要原理是使用VML,因为VML中很好的实现了对PNG格式的支持。

已知问题:

  1. 不能用于body上的CSS样式中含有PNG图片
  2. <TD>和<TR>中的表现也不是很好
  3. 没有实现background-position: fixed;

Link: DD_belatedPNG

Download: uncompressed (~9Kb ) …  compressed (~5Kb)

  • Share/Bookmark

SoundCloud

website No Comments »

Link: SoundCloud

SoundCloud lets you move music fast & easy. The platform takes the daily hassle out of receiving, sending & distributing music for artists, record labels & other music professionals.

SoundCloud提供有丰富的API,这个SoundCloudPlayer是基于它的一个实现。

  • Share/Bookmark

prettyPhoto a jQuery lightbox clone

javascript No Comments »

Link: prettyPhoto

Lightbox很一样,显示图片的一段JS代码,只是这个是基于jQuery的。
除此之外还有一些不同:使用圆角;使用更多的动画效果;支持Flash

在网站下可以看到更多的Demo。

  • Share/Bookmark

Intellij IDEA beginner tutorial

development, software No Comments »

TODO: I’ll convert the swf to other format, and upload to youtube or other video sites.

Intellij IDEA一个用于Java开发的IDE,功能非常出色,插件也有不少。(老鸟可以直接跳过)

除了Eclipse以外的,另一天空,只可惜是收费软件。

无聊制作了一个初级的视频教程,包括:创建Web Project, 配置WebLogic服务器和一个SQL Query插件。

I make a intellij IDEA beginner tutorial, including: create web project, config weblogic server adn SQL Query plugin.

intellijidea(点击观看 click me)

才发现WP不支持swf :<

PS:第一次制作这种教程,存在一些问题,没有考虑到分辨率大小,窗口边框和任务栏没有录下(由于使用了WindowBlind),等等

This’s my first video tutorial, so some problem exist:  not consider screen resolution, window border and taskbar disappear(Because of WindowBlind), and so on.

  • Share/Bookmark

JavaFX Rich Internet Applications

java No Comments »

Link: JavaFX

JavaFX is an expressive rich client platform for creating and delivering rich Internet experiences across all screens of your life.

JavaFX富客户端平台,第一眼看上去,真是难以置信,原来Java也可以做出这种效果,嘿嘿。

用高保真音频和视频(On2公司授权编码器)、富文本、矢量图形、动画和Web服务简化富网络应用的开发和表达。同时还能从网页中直接拖拽到桌面。

更新到最新JRE 6,去下面看看有更多的Demo

More Examples

Download JavaFX and NetBeans IDE

  • Share/Bookmark
WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in