高清生活 living HD

Icon

這是我的生活日記,記下特別的人與事情,把頃刻的感覺與思念留下來

type it, feel it

Code is poetry

Filed under: .js, Programming, Web Programming, lifeStyle

Dynamic Language Runtime (DLR)

“This is a huge step for the team, to be able to run a widely-used framework, such as Django, on a dynamic language running on the .NET Framework”
–http://www.infoq.com/news/2008/03/django-and-ironpython
“We’re initially building four languages on top of the DLR – Python, JavaScript (EcmaScript 3.0), Visual Basic and Ruby”
–http://blogs.msdn.com/hugunin/archive/2007/04/30/a-dynamic-language-runtime-dlr.aspx
Man, this is big.

Filed under: Programming, Web Programming

GWT+AIR, will it happen?

AIR brings all kind of web-tech together onto a universal runtime that runs in most of the platform nowadays. Consider we have Flash, Html, Css, Local-file I/O, Local-graphic accel., offline-online-interoperatibility and we have Eclipse as the IDE.

However AIR’s Html part is consideredly weak, it’s just a webkit browser and that’s all. It doesn’t promise to control the web content and functionality and solve the Ajax problems that we experienced, e.g. history, keyboard, browser compatibility, security, etc. In this point, why not let us introduce the ready & matured solution – GWT – to handle this part?

Filed under: .js, Programming, Web Programming

Change

  • “Ruby on Rails is a fantastic MVC-ready framework which is much easier for developer than using PHP.”
  • “AIR and Flex approach more Java than Javascript, the main reason is that JS is single-thread only, which is not good for desktop apps.”
  • “Leopard has a ready-to-use environment for developer – the Xcode toolset, including Debugger and Organizer.”

Filed under: .js, Apple, Programming, Web Programming

Adobe 皇朝 – Flex, AIR and Creative Suite

Adobe 近年來的發展很快,各種新技術的開發己形成一種勢力,己經到了一個很容易令人察覺的階段。我想在此整理一下新的價值觀。首先 ECMAScript(我習慣叫Javascript) 將會是一種橫跨 Adobe 所有產品的語言,也同時是 AJAX 類的 Web apps 的唯一語言。「怎樣保護 Source Code」這問題,將會是我第一個要尋找的答案;我相信已經有 solution。

手機將會是新的戰場。

Adobe at Mobile World Congress 2008
http://www.adobe.com/mobile/news_reviews/events/mwc/?promoid=BRIUB

Adobe has checked in a new virtual machine called “tamarin-tracing” into the Mozilla Tamarin project
http://www.onflex.org/ted/2007/12/meet-qvm-new-tamarin-vm-contributed-to.php

Filed under: Programming, Web Programming

Leopard run Java6 – HD Performance

Well…installed the 64bit version recently, follow the typical method:
1. Download the binaries http://landonf.bikemonkey.org/static/soylatte/
2. Terminal these (change /java6 to the path u placed the files):
export PATH=/java6/bin:$PATH
export JAVA_HOME=”/java6”
export CLASSPATH=$JAVA_HOME/lib

3. java -version
Should display the following result:
Java version “1.6.0_03-p3″
Java(TM) SE Runtime Environment (build 1.6.0_03-p3-landonf_22_nov_2007_13_38-b00)
Java HotSpot(TM) Server VM (build 1.6.0_03-p3-landonf_22_nov_2007_13_38-b00, mixed mode)

4. Done! ….to recover to 1.5 just do the following:
export PATH=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin:$
export JAVA_HOME=”/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/”
export CLASSPATH=$JAVA_HOME/lib

Filed under: Apple, Programming

Code Generator

Codematic

Codematic (原名:LTP.Net代码自动生成器)是一款为 C# 数据库程序员设计的自动代码生成器,Codematic 生成的代码基于基于面向对象的思想和三层架构设计,结合了Petshop中经典的思想和设计模式,融入了工厂模式,反射机制等等一些思想。采用 Model + DAL + BLL +  Web 的设计,主要实现在 C# 中对应数据库中表的基类代码的自动生成,包括生成属性、添加、修改、删除、查询、存在性、 Model 类构造等基础代码片断,使程序员可以节省大量机械录入的时间和重复劳动,而将精力集中于核心业务逻辑的开发。Codematic 同时提供方便的数据库查询管理,SQL脚本生成,存储过程生成,数据库文档生成,Web项目文件发布,代码生成自动导出文件等多项开发工作中常用到的功能,您可以很方便地进行项目开发。http://www.maticsoft.com

CodeSmith

CodeSmith is a software development tool to help you get your job done faster. Technically speaking it is a template driven code generator that automates the creation of common application code for any language (C#, Java, VB, PHP, ASP.NET, SQL, etc.).CodeSmith includes many useful templates as well as entire sets of templates for generating proven architectures (.netTiers, CSLA, NHibernate, Wilson’s ORMapper, APOSA, and more). You can easily modify any templates or write your own to generate your code exactly the way you want it.http://www.codesmithtools.com/

Filed under: Programming

Firefox:”about:config”; Black Hat; SQL Injection

1. Firefox preferences list: in the address bar, type about:config“.
e.g. Use less memory: add boolean:
config.trim_on_minimize.  Set this true.

2. Black Hat:   http://en.wikipedia.org/wiki/Black_hat

3. SQL Injection:   http://en.wikipedia.org/wiki/SQL_injection

Filed under: Programming, Web Programming

Setting up CVS pserver for Eclipse in OSX 10.4.8(Tiger)

Recently did a few googling for setting up a CVS repository for Eclipse(actually not really matter what ever the client is..) Here I think I should better write it down for future referencing.1. Create the CVS directorysudo mkdir /usr/local/CVS/sudo cvs -d /usr/local/CVS/ initsudo chmod -R a+rw /usr/local/CVS/ (Here have security issue but I dun really care about it.)2. Deal with xinetdCreate a file /etc/xinetd.d/cvspserver with the following content:service cvspserver{disable = nosocket_type = streamwait = nouser = rootserver = /usr/bin/cvsserver_args = -f --allow-root=/usr/local/CVS pservergroups = yesflags = REUSE}Then restart xinetd.sudo kill -HUP `cat /var/run/xinetd.pid`sudo /System/Library/StartupItems/IPServices/IPServices start3. User accountsCreate password file /usr/local/CVS/CVSROOT/passwd with sudo htpasswd -c passwd [username]4. Setting up EclipseIn Eclipse, config the CVS repository connection :pserver:[username]@127.0.0.1:/usr/local/CVS Done.5. Some extra notespserver connection type is unsave, better use pserverssh2 or extsshBASH Cheat SheetVi Cheat Sheet

Filed under: Apple, Programming

C

T

  • 還是忍不住要裝WIN7 DRIVER到VAIO Z本本! 4 weeks ago
  • 「為建而建」的項目,是為了公益還是為私利? 1 month ago
  • Windows 7を契機 1 month ago
  • 超時空アンセム2009 息をしてる - 息をしてる 感じている By 飯島真理/FIRE BOMBER(福山芳樹&チエ カジウラ)/May'n/中島愛 1 month ago
  • 香港陳水扁 1 month ago
  • 「友好的解決方案」(amicable settlement) 1 month ago
  • 我們窮一生去學習,認清事實,目的只不過是裝備自己去扭曲事非。然後騙了別人,迷失了自己。 1 month ago
  • 天体戦士 1 month ago
  • さらに秋山未来、板橋るみ、里見茜、須田朱音、澤本幸 秀、藤沢直希のギャル系モデル男女6人で構成されたRomeoがJulietをプロデ ュース。 1 month ago
  • 相比起iPod nano 5代, Sony MD機當年(MZ-DH10P, 2005年推出) 已經可以影相... 1 month ago