RSS

Tag Archive | "Mac"

VirtualHost browser cache

Sunday, August 10, 2008

0 Comments

Setting up a virtual host on PC, Mac or Linux isn’t difficult, but the browser cache problem drives me crazy. Apart from editing the /etc/hosts mappings and httpd.conf, you need to restart both Apache and browser. Refreshing the browser(Firefox) doesn’t clean the cache, so the result will be always add /xampp/index.php at the end of [...]

Continue reading...

Leopard system environment PATH setting

Saturday, August 9, 2008

0 Comments

Leopard PATH setting is quite different from Tiger. Configuring PATH on Tiger, we used to either modify the /etc/path or user path configuration. With Leopard, system-wide path configuration is managed by /etc/profile. The file loads a path_helper script. So what the script does? The path_helper constructs the system environment PATH in this order: Reads the local user [...]

Continue reading...

15 Years Later, It’s Time for Wine?

Thursday, June 19, 2008

0 Comments

After 15 years’ development of Wine, we’ve been through many test and beta versions. Finally, a stable Wine is available to all the users. Wine is an open source implementation of the Windows application programming interface (API) on top of X, OpenGL and Unix that allows Windows applications to run on other operating systems, including Linux [...]

Continue reading...

Xcode使用感受

Monday, May 5, 2008

0 Comments

昨天半夜买了Apple ADC member subscription,最便宜的$99的。 虽然可以用jailbreak的iPhone和pwe,让写的程序在iPhone上运行,发布的时候,编译好的程序是带有xcode developer id的。主要因为当iphone 2.0发布的时候,iTune shop可以发布自己写的程序的,Steve Jobs说为了防止程序人员发布代有恶意代码的程序,所有的发布软件都有开发人员的信息。 我用的是Xcode 3.1, 带有iPhone SDK的。网上很少能找到3.1的教学,从3.1开发工具有一些改变。Xcode, UIBuilder结合是一种很神奇的开发感受。在过去的一年里面我一直都在用Visual Studio 2003开发.net 2.0/3.x的程序,相比下来,Xcode上手不容易,但是generated code给开发人员的感觉是很干净的, 有UI设计的文件.xib(Xcode 3.0之前是.nib文件),OO架构的 interface (.h)和implementation(.m)。看过Visual Studio的designer.cs文件,如果这个文件出错,想找出问题来可不容易,而且即使没有对UI的文件有改变,VS还是会把代码位置移动一下,当你commit文件到CVS/SVN服务器上的时候一定要小心。 学OO-C不难,用习惯了VS2003,Eclipse和NetBeans要是IDE没有code completion写起程序来就会很麻烦,特别是 对初学者,有一个列表的instanse methods是很有帮助的开始。记得我在开始学PHP + symfony的时候,为了找一个理想的IDE花了很长时间,测试了6种支持多操作系统的IDE, 最后还是选了Zend Studio Eclipse。好在Xcode有不错的code completion功能,需要一些小小的customization, 比如说我设定F5为显示completion list。在UI的部分给我的感觉是MVC,一致都在把UI和Controller用鼠标拖移的方式连接,然后model和business logic那部分当然要自己写。

Continue reading...

预计Apple 08年6月公布新MB, MBPro

Wednesday, April 30, 2008

0 Comments

最近在考虑收下一台Macbook Pro, 所以在MacRumour上游荡很多. 有小道消息说Apple很有可能在第三季6月份或者8月份公开销售重新设计的Macbook, Macbook Pro。 AppleInsider分析说到, 当我们再次审视苹果产品的时候,很明显的发现只有MB, MacMini被忽略了很久, 他们已经很多年没有更新过外观设计了. 很有可能Steve继续追求eco-free的目标, 重新设计MB和MBP, 加上有现代感的金属镁外观和iMac涉及靠近. 不是没有可能, 毕竟从iBook已经快4年没有改过外观设计, MacBook Pro自从Powerbook G3五年来没有更新过外观设计. 加上Intel的Roadmap预计6月份发布处理器Montevina,苹果随后也照常在San Francisco开年度开发会展, 苹果一向对Intel的产品更新反映更新很迅速。 在网络上可能找到很多人预计的最新设计样图, 大家各自说各自的感受和需求. 个人以意见, 如果急需要用MB/MBP的话, 尽快买吧, 即使是新设计, 运算功率在快都只是数据, 人本身也许感觉不到性能的提升; 如果购物者可以再等几个月, 那这次更新还是值得等待的. 就好像最新的Macbook Air应该很就不会更新外观设计.

Continue reading...