Tag Archive for 'mac'

google chrome for mac 发布

google的浏览器chrome终于全线平台发布了,早上收到google chrome for mac团队有趣的邮件:

Hi there,

Thanks for signing up to hear from us regarding Google Chrome for Mac! We’re excited to let you know that Google Chrome is now available in beta for Mac OS X.

Here are a few fun facts from us on the Google Chrome for Mac team:

73,804 lines of Mac-specific code written
29 developer builds
1,177 Mac-specific bugs fixed
12 external committers and bug editors to the Google Chrome for Mac code base, 48 external code contributors
64 Mac Minis doing continuous builds and tests
8,760 cups of soft drinks and coffee consumed
4,380 frosted mini-wheats eaten
Thanks for waiting and we hope you’ll give Google Chrome for Mac a whirl.

Google Chrome Team
www.google.com/chrome

看来他们是喝了不少,也吃了不少啊,就是不知道怎么统计的。

点击Thanks for waiting的链接,可以看到一张有趣的乐高玩具搭的开发团队:

好像google chrome for linux的版本也在今天发布beta版本,gmail,google wave,chrome,chrome os,等,google全系列的产品开始大举进攻微软等传统IT巨头的阵营了。

估计google chrome浏览器接下来将会释放出大量插件,好戏开始了。

相关内容

Mac 启动相关快捷键一览

今天看到有文章介绍mac osx的快捷键,我到觉得其中和启动相关的这些快捷键很有用,毕竟mac和osx偶然也是有会有一些问题,需要类似于windows的安全模式之类的启动方式来控制。

在启动时按下 X: 强制使用 Mac OS X 启动电脑

在启动时按下 Option-Command-Shift-Delete: 不使用主要启动硬盘,并寻找使用外接磁盘与 CD

在启动时按下 C: 由具有系统文件夹的 CD 光盘启动

在启动时按下 N: 试图由兼容的网络服务器 (NetBoot) 启动

在启动时按下 T: 以火线目标磁盘方式启动

在启动时按下 Shift: Mac OS X 10.2 后,在「安全启动状态」启动,一切启动项目及不必要运行的核心扩展文件皆不运行

在启动时按下 Command-V: 以 Verbose 状态启动,将临时进入 UNIX 界面,短时不可使用鼠标

在启动时按下 Command-S: 以单一用户状态启动,将进入 UNIX 界面,不可使用鼠标

相关内容

使用sun拼音for mac的麻烦

上周看到sun pinyin for mac的版本,据说还支持整句输入法之类,昨天尝试安装使用了一下,使用上倒也没有什么问题。今天早上开机的时候,发现问题来了,sun pinyin询问时候要自动检查,然后小彩轮就出来了,鼠标逐步就失灵了,整个系统进入死机状态。

硬关机重新启动一次,还是不行。查了一下资料,按住shift启动,系统将不会运行任何非核心进程,经过漫长的等待,进入leopard后,选择输入法,去除了sun pinyin,恢复FIT输入法,再一次重新启动,好了。

不知道什么原因引起,我用的是leopard最新版本和intel核心,建议大家也就不要去安装这个sun拼音了,稳定性还有待提高。

相关内容

奥迪音乐周偶遇谭盾

昨天参加奥迪音乐周,在上海已经是第二届了,到东方文化艺术中心比较早,逛来逛去,突然看到几个人在闲谈,其中一位米黄色的休闲西装,那不是谭盾吗?呵呵,没想到,可以这么近的看到享誉世界的音乐大师。

之后还看到了马艳丽,果然是很高,气质也不错。后来的节目是陈辰主持的,实在不愿意做什么评价。

上半场奥迪交响乐的演出非常精彩,我第一次看到视频、音效、电脑和交响乐队一起的演出,乐队后面一溜的苹果机,闪着银色的光辉,变换出三个大屏幕的视频和音效的控制,很好听,很好看,也很cool。

相关内容

apache-php一站式解决方案:xampp

谁都不喜欢繁琐的操作,如果可以有更加简单的办法。我在我的老iBook上开发php应用,但是我也不喜欢复杂的linux设置。windows上有不少AMP一体式解决方案,我在搜索mac下的解决方案的时候,发现了这个称之为apache friends的xampp,并且它是一体化的支持apache、php、mysql等。

适用于 Mac OS X 的 XAMPP 是 Mac OS X 上最简单,最实用,也最完整的网络服务器解决方案。该发行版包括整合了最新的 MySQL、PHP(4+5),和 Perl 的 Apache 2 服务器。它以 Mac OS X 安装包的方式发布,包含所有必须的文件,无需下载其它东西。

我下载后试用了一下,的确不错,主要的界面管理还是用web的,mac下面只是一个小小的启动服务器的面板。使用xampp后不会影响mac osx原来内置的apache等应用。

相关内容

Mac Os leopard 下配置 PHP+Mysql和GD库

继续找资料的时候,看到国内朋友的中文介绍,可以参考一下,来自这里

Mac下配置php环境:

1. 修改 /etc/apache2/httpd.conf 中
#LoadModule php5_module libexec/apache2/libphp5.so

把前面的#去掉。

2.将/etc/php.ini.default 复制到 /etc/php.ini
sudo cp /etc/php.ini.default /etc/php.ini

3. 打开apache: 在 系统偏好设置-》共享 里面在web共享前打钩。右侧会提示
“Web 共享”允许其他电脑的用户查看这台电脑上的“站点”文件夹中的网页。
证明已经成功打开

4. 测试php
在 /用户/用户名/站点 里创建 index.php 内容为,成功输出php信息。但是发现并没有GD库的支持,文章后面会介绍如何配置 GD库。

Mac下配置Mysql:

1. 到 http://dev.mysql.com/downloads/ 下载最新版的 Mysql,这里下到的是 mysql-5.1.32-osx10.5-x86_64.dmg

2. 双击 mysql-5.1.32-osx10.5-x86_64.dmg,先安装 mysql-5.1.32-osx10.5-x86_64.pkg ,然后安装MYSQLStartupItem.pkg.

3. 编辑 /etc/php.ini,将 mysql.default_socket = 后面 加上 /tmp/mysql.sock
mysql.default_socket = /tmp/mysql.sock

给PHP配置GD:

1. 首先创建源代码目录:mkdir -p /SourceCache

2. 分别从
http://www.ijg.org/files/jpegsrc.v6b.tar.gz ,
http://www.libpng.org/pub/png/libpng.html ,

http://sourceforge.net/project/showfiles.php?group_id=3157&package_id=3121

下载jpegsrc.v6b.tar.gz,libpng-1.2.35.tar.bz2,freetype-2.3.9.tar.gz,然后放入 SourceCache目录,解压这些压缩包

3. 安装libjpeg:
打开终端,输入
cd /SourceCache/jpeg-6b
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .

./configure
make
sudo make install

4. 安装libpng:
cd /SourceCache/libpng-1.2.35
./configure
make
sudo make install

5.安装freetype
cd /SourceCache/freetype-2.3.9
./configure
make
sudo make install

6. 安装GD库:
从http://www.opensource.apple.com/darwinsource/10.5.6/apache_mod_php-44.1/php-5.2.6.tar.bz2 下载php源码包
tar xjf php-5.2.6.tar.bz2
cd /SourceCache/php-5.2.6/ext/gd

phpize

MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS=”-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp” CCFLAGS=”-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe” CXXFLAGS=”-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe” LDFLAGS=”-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load” ./configure –with-zlib-dir=/usr –with-jpeg-dir=/usr/local/lib –with-png-dir=/usr/X11R6 –with-freetype-dir=/usr/X11R6 –with-xpm-dir=/usr/X11R6

make
sudo make install

配置php加载gd.so:
编辑/etc/php.ini ,增加一行

extension=gd.so

7 重启apache服务器

8 GD库安装成功!

注意: 如果 不能使用.configure 或make,请先安装 Xcode 3.1

相关内容

如何在Max OSX 10.5 下设置php功能

国内使用mac进行php开发的朋友越来越多了,osx 10.5类似与一个完整的linux server,apache是自带的,php功能自然也有。自己在使用的过程中碰到过不少小小的麻烦,好在有互联网,很多人的实践为我们节约了不少时间。下面这篇如何在mac osx 10.5下使用php功能的文章,来源是这里

Mac OS X 10.5 (Leopard) comes with both Apache 2.2.6 and PHP 5.2.4 preinstalled, but they’re not enabled by default. The following instructions should help you get up and running.

  1. Open BBEdit or TextWrangler (a free, cut-down version of BBEdit available from www.barebones.com). From the File menu, select Open Hidden. In the Open dialog box, select All Files from the Enable drop-down menu. Then navigate to Macintosh HD:private:etc:apache2:httpd.conf, and click Open.
  2. This opens the main configuration file for Apache 2.2.6. It’s a system file, so you need to unlock it by clicking the icon of a pencil with a line through it at the top-left of the toolbar, as shown in the following screenshot:
    Apache configuration file in TextWrangler
  3. You will be told that the document is owned by “root”, and be asked to confirm that you want to unlock it. Click Unlock. This removes the line through the pencil, and readies the file for editing. Normally, when editing system files, it’s a good idea to make a backup. However, it’s not necessary in this case, because backup copies of all the Apache configuration files are in the original subfolder of the Apache2 folder.
  4. Scroll down until you find the code shown on line 114 in the following screenshot (although the line number is likely to be the same in your version, it’s the code that’s important, not which line it’s on):
    Load PHP module command
  5. Position your cursor at the beginning of that line, and remove the hash or pound sign (#). It should now look like this:
    LoadModule php5_module      libexec/apache2/libphp5.so
    This enables PHP 5 on your computer.
  6. Save the file. Because it’s owned by “root”, you will be prompted to enter your Mac password. That takes care of the basic configuration. In theory, you could now start Apache and PHP would be up and running. However, the default installation doesn’t use the PHP configuration file php.ini. You need to need to make a copy of a file called php.ini.default, and edit it.
  7. Unfortunately, you can’t open php.ini.default in BBEdit or TextWrangler and save it with a different name. You need to go under the hood of OS X by opening Terminal in the Applications:Utilities folder. Similar to the Command Prompt in Windows, Terminal gives you direct access to the underlying operating system on a Mac.
  8. With Terminal open, type the following series of commands, each followed by Return:
    cd /private/etc
    sudo cp php.ini.default php.ini

    This moves you into the private:etc folder, and then copies php.ini.default to php.ini in the same folder, using the sudo command. You need to use sudo because it’s a system file. Enter your Mac administrator password when prompted. Terminal should now look something like this:
    Copying php.ini.default in Terminal
  9. Open php.ini in BBEdit or TextWrangler using Open Hidden in the same way as with http.conf. You should find php.ini in Macintosh HD:private:etc. Click the icon of a pencil with a line through it to enable editing.
  10. How you edit php.ini is mainly a question of preference, but the most important change is to a command called error_reporting. The default setting (it should be on line 305) looks like this:
    error_reporting = E_ALL & ~E_NOTICE
    Change it to this:
    error_reporting = E_ALL
    This ensures that PHP reports all errors. Although no one likes error messages, it’s vital to eliminate any errors (even seemingly minor ones) before deploying scripts on a live web server.
    NOTE: There are several lines that look similar. Make sure that you edit the line that does NOT begin with a semicolon. A semicolon at the beginning of a line in php.ini indicates a comment, which is ignored by the server.
  11. Save php.ini.
  12. You can now start Apache by going to System Preferences. Click Sharing in Internet & Network. Then place a checkmark in Web Sharing. When Apache starts up, System Preferences should display Web Sharing: On.
  13. Click the link under Your computer’s website. This should launch Safari and display an Apache web page.
  14. Create a page called test.php, and type in the following code:
    <?php phpinfo(); ?>
    Save it in Macintosh HD:Library:WebServer:Documents.
  15. Load the following URL into your browser:
    http://localhost/test.php
    If you see the PHP configuration screen, you’re up and running!

NOTE: If you did an upgrade install of Leopard, you cannot view pages stored in your personal Sites folder, because the necessary file(s) won’t have been copied to the correct folder for Apache 2. To copy the file(s), open Terminal and type the following commands, both followed by Return:
cd /private/etc/httpd/users
ls

You should see at least one file that uses your Mac username followed by .conf. For example, on my computer, it’s called davidpowers.conf. You need to copy this file for each user to a folder where Apache 2 can find it. Type the following command, using the name of the file on your computer instead of davidpowers.conf:
sudo cp davidpowers.conf /private/etc/Apache2/users

If there are several .conf files to copy, you can use the following command instead:
sudo cp *.conf /private/etc/Apache2/users

However, if you have previously installed the Mac PHP package from Marc Liyanage, do not copy entropy-php.conf.

For this (or any other) change to take effect, go to Sharing in System Preferences, deselect Web Sharing, and then reselect it. This restarts Apache and implements any changes made to the Apache or PHP configuration.

相关内容

明日见苹果

macworld再过几个小时要开始了,重头戏则是下届不再参加的apple公司的产品发布会,并且也不是乔布斯主持。我个人倒是对于在线iWork这个产品预测很感兴趣,因为用过iWork之后,看ms的office,只能觉得office开发团队是很辛苦,而不聪明。如果真的有在线iWork,即便收费,也是物有所值,而google doc会不会受到威胁,以及不知道开发到哪个里程碑的ms的在线office何去何从。

不去熬夜等直播了,明天看看苹果到底拿出一些什么好东西吧。

相关内容