分类
English 原创作品

Android手机应用程序《泡面管家》测试版发布 – Instant Noodles Master app for Android beta released

“这是一款娱乐性质的软件。”——某同事
“这个……很阳春啊。”——某客户
“很有意思。”——某朋友
“重要的是创意。”——某同学

《泡面管家》是一款面向泡面(方便面、速食面、即食面)爱好者的小工具。
Instant Noodles Master (NoodlesMaster for short) is a small tool for instant noodles funs.

noodles_master_logo

主要功能如下:
Features:

  • 泡面计时
    Timer for instant noodles
  • 泡面产品大全(目前只有中国区域数据,且尚需补充)
    Instant noodles product list (Chinese data only, still insufficient)
  • 泡面条码识别(目前只有中国区域数据,且尚需补充)
    Instant noodles barcode recognition (Chinese data only, still insufficient)
  • 泡面向导
    Wizard of cooking instant noodles

noodlesmaster_screenshot_1 noodlesmaster_screenshot_2

在将来版本中可能加入的功能:
Possible future features:

  • 更多泡面产品数据/在线更新/新品推介
    More instant noodles product data / online sync / new product promotion
  • 泡面评分/评论
    Rating / commenting
  • 泡面统计/健康饮食提醒
    Statistics / healthy diet prompt
  • 个人泡面活动与SNS整合
    Integration with SNS

《泡面管家》可以在谷歌的官方应用软件市场Android Market搜索到,并供大家免费下载使用。
Instant Noodles Master can be found and downloaded for free in Google official Android Market.

http://market.android.com/details?id=me.evis.mobile.noodle

欢迎大家提出宝贵意见,bug或新功能建议请提交到:
Bugs or new feature requests please submit to:http://code.google.com/p/noodlesmaster/issues/list

注:本软件中出现的泡面厂商图标、产品名称及相关信息等版权均为相应厂商所有。
Note: all instant noodles product logos, brands and related info belong to its manufacturer.

分类
原创作品 技术

IronRuby+IIS+Typo的尝试和对Ruby跨平台性的质疑

一开始,我只是想找一个当前博客程序的替代品。而我发现了Typo这样令人激动的基于RoR的开源博客程序,跃跃欲试想把Typo运行在IIS + IronRuby + IronRuby.Rack上。

Typo 5.5依赖于Ruby 1.8.7 + Rails 2.3.8。IronRuby 1.0基本兼容Ruby 1.8.6,我想问题应该不大。

XP系统,一个崭新的IronRuby 1.0安装版。安装Rails:

igem install rails -v 2.3.8

为了方便,打算使用SQLite数据库,在IronRuby下,sqlite3-ruby这样的gem是不能用的,需要用sqlite3-ironruby这样的替代方案。早在这一步我就应该注意到一些问题了,但我当时没有在乎:

igem install sqlite3-ironruby

尝试了几次RubyGems直接安装Typo都失败了,我自己从ZIP里解压了一份Typo 5.5。

在config目录下创建database.yml:

production:
  adapter: sqlite3
  database: db/typo.db
  timeout: 5000

然后执行rake操作DB:

rake db:create RAILS_ENV=production
rake db:migrate RAILS_ENV=production

问题来了,rake报告有一系列需要依赖的gem没有安装。那就让它装:

rake gems:install

找不到gem命令,没问题,把igem.bat复制一份命名为gem.bat。

再执行,大部分安装都成功了,除了json、bluecloth 2.0.5和RedCloth 4.2.2。报错都在编译Native Extension上。

去RubyForge上找齐了这三个的Windows预编译版本,再用RubyGems单独从本地安装,成功。

再尝试之前的DB Migrate操作,rake却依然报告找不到两个gem依赖:

Missing these required gems:
  bluecloth  ~> 2.0.5
  RedCloth  ~> 4.2.2

经过各种google,终于在IronRuby官网(Documentation –> Real Ruby Applications –> RubyGems –> Native gems)上得知了一个噩耗:

Native extensions are not supported by IronRuby. Currently, there is no known way of avoiding native gems. When you install gems, you will have to manually exclude gems with win32 in the name.

本来就是希望跨平台采用了IronRuby,结果这又出现平台依赖的要素了。这不得不令我质疑之前自己对Ruby跨平台性的认识。

现在的疑问是Native Extension在Ruby开源界占有多大比重?IronRuby在缺少此类支持的情况下,能为我带来多少好处?

分类
English 原创作品 技术

Local Flex4 language reference in Chrome App

You may already encounter problem when setting up a local copy of Flex4 language reference.

The latest as-doc is leveraging XMLHTTPRequest to retrieve the packages and classes list. In order to make it work, you have to turn off the “Enable native XMLHTTP support” in your IE7/8 browser due to the out-of-date implementation in asdoc.js. This seems not convenient at all.

There’re still other browser candidates for this task. Chrome is a good one to provide a clean view (without toolbar, tabs, etc.) for Flex4 doc. All you need is to create the following shortcut (the allow-file-access-from-files parameter is necessary).

“%USERPROFILE%\Local Settings\Application Data\Google\Chrome\Application\chrome.exe” –app=”file:///<doc path>/AS3_Reference/index.html” –allow-file-access-from-files

Then you may double-click this shortcut and view the flex4 doc with full features (and without browser stuffs).

Fyi, a full list of Chrome’s command line parameters can be found at http://src.chromium.org/svn/trunk/src/chrome/common/chrome_switches.cc