Wed 21 November, 2007

Tue 20 November, 2007

Rails框架2.0报道:代码生成器变化
- 命令说明
在Rails版本1.2.3中存在的下面二个命令,将不再Rails 2.0版本中。在版本2.0中,第一个命令改成为scaffold,而Rails版本1.2.3的scaffold将不再存在。而第二个命令是因为actionwebservice没有纳入该版本。
Rails 1.2.3
Rails 2.0ruby script/generate scaffold_resource
ruby script/generate web_serviceruby script/generate scaffold - 功能说明
Rails版本2.0最重要之一是引入ActiveResource软件包并且有新的功能。利用该软件包可以实现软件开发的新模式。
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
天天红玉世界(2007-46)
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
“ Grab and eat, grab and drink; for this world from which we must eventually depart is like a wedding party. ”
The Talmud- Eruvin 54a
add to del.icio.us. look up in del.icio.us.
add to furlMon 19 November, 2007


- JRuby语言:安装GlassFish
- wget http://download.java.net/maven/glassfish/com/sun/enterprise/glassfish/glassfish-gem/10.0-SNAPSHOT/glassfish-gem-10.0-SNAPSHOT.gem
jruby -S gem install glassfish-gem-10.0-SNAPSHOT.gem
- wget http://download.java.net/maven/glassfish/com/sun/enterprise/glassfish/glassfish-gem/10.0-SNAPSHOT/glassfish-gem-10.0-SNAPSHOT.gem
- Rails程序:启动GlassFish
- 从Rails程序根目录出发
- cd ..
- jruby -S glassfish_rails your_rails_project_name
- 参考资料:
add to del.icio.us. look up in del.icio.us.
add to furlSun 18 November, 2007

- 下载网址
- http://www.treepad.com/download/#tpasia
- 下载软件 Treepad Asia
- http://www.freebytesoftware.com/download/treeasia.zip
- 参考资料
- http://www.sitepoint.com/article/information-manager-roundup
- 说明
- 在输入左边的目录中文时会看不到最后一个单词。解决办法:多输入一个汉字,然后删除最后一个汉字。这个汉字存在,但是不显示。
add to del.icio.us. look up in del.icio.us.
add to furl
- Interview with David Roundy of Darcs on Source Control
Interesting interview with the creator of the Darcs distributed version control system.
add to del.icio.us. look up in del.icio.us.
add to furl
Earthrise / Earthset from Japan’s KAGUYA lunar explorer
add to del.icio.us. look up in del.icio.us.
add to furl
“ I’m in a faraway place. But I’m all right because you’re coming to rescue me. ”
Princess Peach, in a letter to Mario
add to del.icio.us. look up in del.icio.us.
add to furlSat 17 November, 2007

- mowser = { :mobil => “answer”}
- google = { :pc => “answer”, :mobil=> “answer”}
add to del.icio.us. look up in del.icio.us.
add to furl
Big thanks to Chris Matthieu and his outstanding Rubyology site for assembling a podcast of Rising Tide’s own David Koontz’ JRuby keynote at the recent Phoenix Java User Group.
Grab it here .
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl

- 说明:
- DataMapper是Ruby语言实现的数据库持久层框架;
- DataMapper融合模式设计的耐用原则(tried and true principles);
- DataMapper不仅仅有漂亮的语法,而且还有更快的速度;
- DataMapper的Ruby语言代码与中文
monkey = Animal[:name => 'Monkey']
monkey.favourite_fruit.name # => 'Bananas'有一种动物叫猴子
猴子喜欢的水果是香蕉
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furlFri 16 November, 2007

add to del.icio.us. look up in del.icio.us.
add to furl

- Ruby Hoedown 2007视频
- 说明
- Ruby Hoedown是涉及Ruby语言专题的小型有影响力的会议。 Ruby Hoedown 2007是在美国的北卡罗来纳州的Raleigh城召开。
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furlThu 15 November, 2007

add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
Rails框架版本2.0在JRuby版本1.0.2版本以下兼容错误
- 相关错误报告
http://jira.codehaus.org/browse/JRUBY-1520 - 问题说明
这个错误报告说明了JRuby语言1.1beta版本升级RubyGems的问题。其实这个问题在JRuby版本1.0.2就已经存在了,请看下面的命令。Rails框架2.0版本需要RubyGems版本0.9.4,而JRuby语言版本1.0.2及其以下安装的RubyGems版本是0.9.2。要是想在这些JRuby语言版本更新就会出现错误。但是JRuby语言1.1beta版本开始已经是0.9.4版本。要是还想更新就会出现下面类似的错误。 - 稳定版安装命令(执行环境为JRuby语言版本1.0.2)
jruby -S gem update --system - 错误信息
Updating RubyGems...
Attempting remote update of rubygems-update
Successfully installed rubygems-update-0.9.4
Updating version of RubyGems to 0.9.4
Installing RubyGems 0.9.4
Error opening script file: setup.rb (系统找不到指定的文件。)
RubyGems system software updated - 测试版本安装命令
jruby -S gem update --system --source http://segment7.net/ - 相关网站
add to del.icio.us. look up in del.icio.us.
add to furl
“ I wish the west Texas highway was a Möbius strip. ”
John Darnielle
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl

- 说明
- Bouncy Castle 是用于 Java 平台的轻量级密码术软件包;
- Bouncy Castle 是开放源码的项目;
- Bouncy Castle 支持大量的密码术算法并提供 JCE 的实现;
- Bouncy Castle 应用范围从 J2SE 桌面平台 到 J2ME(包括 MIDP)移动平台;
- Bouncy Castle 是在 MIDP 上运行的唯一完整的密码术包;
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furlWed 14 November, 2007

add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
I've been planning to build an HTPC for quite a while now, and I'm finally doing it. I got an Antec Fusion Black case for my birthday, and I went out and bought the rest of the parts yesterday evening. Here's the hardware I'm using:
- Case: Antec Fusion Black
- CPU: AMD Athlon 64 X2 4000+
- Motherboard: Asus M2A-VM HDMI
The other pieces were all spare parts and aren't particularly interesting. This post is about the Antec Fusion Black. Let's start with the pros:
- Built-in case fans are extremely quiet.
- Enough room for a standard ATX power supply.
- Same width and style as standard home theater gear.
- Front-mounted USB, Firewire, and HD audio ports.
- Built-in IR port.
- Built-in programmable LCD.
- Several in-case cable ties to keep things properly routed and organized.
And the cons:
- Three-compartment design makes running anything other than power and SATA cables a bit of a hassle. It took a bit of magic to thread a standard EIDE cable from the motherboard compartment to the DVD/LCD compartment, for example.
- The IR receiver is for MCE-compatible remotes only; it doesn't work with standard universal remotes, so don't even bother.
- Linux support sucks. I believe you can get everything working, but doing so requires a bit of effort. See below for more information.
- The included manual is horribly out of date and contains errors and omissions. Your best bet is to use the manual as toilet paper and download the PDF from Antec's product page, although that manual is still dated. Both versions claim that the motherboard has a 3-pin power supply fan signal connector cable, and no such cable exists in my case. There is also a mysterious two-pin purple and black cable labeled "M/B PWR" that is not documented in either manual (this thread on AVS Forums explains what it's for).
- Non-standard power connection for the LCD and IR receiver. This only matters if you need to replace the power supply; see below.
Fortunately I've already decided to buy a Harmony remote, so the MCE remote requirement is a minor inconvenience and an excuse to go buy a new gadget.
The most irritating problem so far is that the power supply fan is extremely loud. I think my PSU is probably defective, because it doesn't make any sense to design a sound-isolating case with extremely quiet case fans and then put a power supply that sounds like an air raid in there. Alternatively, the noise might be related to the non-existent 3-pin power supply fan signal connector cable mentioned above.
Anyway, I don't really want to send the case back, so I ran to Microcenter and picked up a new silent power supply. That's when I noticed the non-standard cable that powers the LCD/IR receiver, and the following blurb tucked away in the manual:
Note: If you choose to swap the included power supply with another power supply, please call Antec Customer Service to purchase a special 24-pin Extender with the 3-pin connector to power the display.
I've already ordered the adaptor from Antec's web site; I figure even if I figure out how to quiet the existing power supply it's worth having so I don't end up without the LCD and IR port if the power supply failure in the future.
Next up, Antec Fusion Linux support. The LCD is not officially supported in Linux by Antec. The good news is that the LCD in the Fusion V2/Black is better than the VFD display included in the original V1 Antec Fusion case. Unfortunately it is much harder to find documentation on the newer display. The newer display also requires a couple of patches and some config file twiddling.
Here's what you need to do, as of today:
- Install patched versions of LIRC 0.8.2 and LCDproc 0.5.2. You can get the patches from here.
- Follow the instructions exactly for patching and compiling LIRC and LCDproc.
- When you recompile LIRC, select "Soundgraph iMON MultiMedian IR/VFD", not "Soundgraph iMON PAD IR/VFD".
After you patch LCDproc, you need to do the following or LCDproc won't pick up the changes from the patch:
aclocal && automake && autoconf ./configure --enable-drivers=imonlcd
Compile and install both LIRC and LCDproc.
Find the
[server]section in/etc/LCDd.confand add the following lines:Driver=imonlcd DriverPath=/usr/local/lib/lcdproc/
Add this section to
/etc/LCDd.conf:[imonlcd] Device=/dev/lcd0 Contrast=300 # do NOT set the Size, if you do it won't work #Size=16x2
Make sure the LIRC modules are loaded:
modprobe lirc_dev && modprobe lirc_imon
Start up
lircdandLCDd, and things should be working.
If you're using 2.6.23.1 or newer the patches above will not work;
you'll need these updated patches against the CVS version of LIRC.
You'll still need to follow all the steps above, even with the updated
patches.
That's all for tonight. It looks like configuring the motherboard in will be a battle too; I'll have more details as events warrant.
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
- Steve Vinoski recanting the sins of his past
I'm a big fan of Steve's. I still remember when the two of us got the Python religion back at the Middleware conference in Toronto.
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furlTue 13 November, 2007

移动OS Android:使用八行命令体验GPhone
- 前提条件
- Windows XP
- Java JDK 6.0
- Ant 1.7
- 7zip
- Windows XP
- 安装Android SDK命令
wget http://dl.google.com/android/android_sdk_windows_m3-rc20a.zip
7za x -od:\opt android_sdk_windows_m3-rc20a.zip
SET SDK_ROOT = D:\opt\android_sdk_windows_m3-rc20a
SET PATH=%PATH%;%SDK_ROOT%\tools - 创建Android应用软件
activityCreator.bat --out MyAndroid de.lycom.android.MyMobil
cd HelloAndroid
【Android的一点点缺陷,需要修改下面的文件把原来的代码注释掉,增加一行新代码。这是多的一行命令。】
vi %SDK_ROOT%\tools\dx.bat
REM set frameworkdir=lib\
set frameworkdir=%SDK_ROOT%\tools\lib\%SDK_ROOT%\tools\emulator -skin HVGA-Ladb install bin\MyMobil.apk
【关闭emulator,重新打开,这是多余的一步,但是没办法需要!】%SDK_ROOT%\tools\emulator -skin HVGA-L - 参考信息
最好的手机操作系统--Android? - 视频演示
http://groups.google.de/group/cnrails/(需要注册)
add to del.icio.us. look up in del.icio.us.
add to furl
Rackspace has had a major power incident at the data center keeping the 37signals suite of machines. Apparently, a traffic accident knocked power out to some vital cooling systems. When the power was restored through generators, the cooling systems failed to come back online.
They now have the cooling systems back up and are getting everything back online. We hope to be back very shortly.
No data has been harmed, the machines were preemptively shut down when the cooling systems failed.
A good number of other applications, such as Wesabe was hit by this as well. Hopefully they'll be back shortly as well.
UPDATE: Everything is back in working order. Read more on the product blog.
add to del.icio.us. look up in del.icio.us.
add to furl
2. To turn or rotate (the foot) by adduction and inversion so that the outer edge of the sole bears the body’s weight.
add to del.icio.us. look up in del.icio.us.
add to furl
- 说明:
- VectorMagic是把点阵图转换为矢量图的网络软件;
- VectorMagic是一款免费的网络工具;
- VectorMagic是美国斯坦福大学生开发的;
- 使用矢量图与点阵无关,这样一个图可以被任意放大缩小而不改变图片质量;
- 实例
add to del.icio.us. look up in del.icio.us.
add to furl
add to del.icio.us. look up in del.icio.us.
add to furl








