mplayer mac osx 更新 svn-27266
Posted on 07月 12, 2008 - Filed Under MacosX, mplayer | Leave a Comment
http://www.nimab.org/mplayerosx
Read More..>>NTFS for Mac® OS X 6.5
Posted on 05月 31, 2008 - Filed Under MacosX | Leave a Comment
终于可以不用忍受ntfs-3g那蜗牛速度了,特别是写入速度!
相比6.0版,没有了打开大文件错误和特定情况下的传输速度问题。
http://www.paragon-software.com/home/ntfs-mac/download.html
Preference pane is added;
Preference pane allows enabling/disabling POSIX permissions on an NTFS volume;
Preference pane allows turning off/on Paragon NTFS for Linux driver;
Preference pane allows disabling/enabling NTFS file/folder compression;
Preferences pane allows disabling/enabling Last Access Time attribute update;
Improved performance;
Improved driver stability.
mplayer-mscosx更新
Posted on 05月 25, 2008 - Filed Under MacosX, mplayer | Leave a Comment
http://www.nimab.org/mplayerosx [26863]
Read More..>>用Mplayer播放高清电影(蓝光原盘)
Posted on 05月 10, 2008 - Filed Under Linux, MacosX, mplayer | Leave a Comment
前提还是你的cpu必须强劲,默认情况下mplayer是单线程的,所以显得力不从心,如果你的cpu是双核或支持超线程,那么试试加上一下参数:
-lavdopts threads=8
或者,来自这里:http://ubuntuforums.org/showthread.php?t=629701
-vfm ffmpeg -lavdopts lowres=2:fast:skiploopfilter=all:threads=8
---------
蓝光原盘抓出来的文件一般以 .ts 结尾 h264 标准
------- update ------
mac下,mplayer的性能明显差很多,经过大量测试,发现问题主要在音频驱动上,我的配置:
−vf scale=-2 -lavdopts lowres=1,1400:fast:skiploopfilter=all:threads=8 -ao openal -vo macosx
播放《汽车总动员》时勉强不卡!或许因为ntfs-3g的性能不佳吧,另外lowres这个配置未生效。
−vf scale=-2 可以修正字幕被拉扁的问题(视频质量未见异常)。
新装 Leopard 安装开发环境全记录
Posted on 03月 16, 2008 - Filed Under MacosX | Leave a Comment
前期工作
安装光盘里的 Xcode,或者下载 iPhone SDK,2.1G,包括了最新的 Xcode 和 iPhone SDK。
安装好后会有 apache-2.2.6 / php-5.2.5 / ruby-1.8.6 / rails-1.2.6 / python-2.5.1 / java-1.5.0_13 / sqlite-3.4.0 …… gcc 会有2个版本:4.0.1 和 4.2.1,默认 /usr/bin/gcc 软连到 gcc-4.0,我们先让默认的 gcc 改用 4.2(2007年1月就 release 了,Changelog)
cd /usr/bin
sudo unlink gcc
sudo ln -s gcc-4.2 gcc
设置全局编译参数,编辑 /etc/profile,加上下面的全局变量,保存后重启终端
export MACOSX_DEPLOYMENT_TARGET=10.5
export ARCHFLAGS='-arch x86_64'
export CFLAGS='-arch x86_64 -O3 -pipe'
export CXXFLAGS=$CFLAGS
export LDFLAGS='-arch x86_64 -bind_at_load'
如果需要编译兼容 i386、ppc、ppc64 版本的(编译出来的文件会增大不少),只要加上相应的 [...]
iphone 1.1.3/1.1.4 完美破解指南
Posted on 03月 15, 2008 - Filed Under Bsd, MacosX, Unix, shell | Leave a Comment
首先用itunes将iphone升级至1.1.3/1.1.4
然后运行ziphone激活,破解,解锁……
安装openssh
root登陆,密码:alpine
安全起见 #chmod -x /usr/bin/passwd
到这里生成密码,salt为/s,用它替换root密码(/etc/master.passwd)
然后移动 /Application /Library 到第二分区
Leopard 编译 universal php5
Posted on 12月 11, 2007 - Filed Under Bsd, MacosX, Unix, bash, php | 1 Comment
因为自带的php没有gd所以要重编
因为服务器用的是x86_64 httpd+php5所以要编 x86_64
因为自带的httpd+php是 universal ,所以要这样做
自带的httpd很好,所以不搞它了
参考:
ppc就不要了
export MACOSX_DEPLOYMENT_TARGET=10.5
export ARCHFLAGS='-arch i386 -arch x86_64'
export CFLAGS='-arch i386 -arch x86_64 -O3 -pipe'
export CXXFLAGS='-arch i386 -arch x86_64 -O3 -pipe'
export LDFLAGS='-arch i386 -arch x86_64 -bind_at_load'
make时候可能出现这样的提示:
gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
在 configure 的时候加上 --disable-dependency-tracking
'./configure' \
'--prefix=/usr' \
'--with-config-file-path=/private/etc' \
'--sysconfdir=/private/etc' \
'--with-apxs2=/usr/sbin/apxs' \
'--with-iconv=/usr/local' \
'--with-mhash=/usr/local' \
'--with-gettext=/usr/local' \
'--with-mysql=/usr/local' \
'--with-mysqli=/usr/local/bin/mysql_config' \
'--with-pdo-mysql=/usr/local' \
'--with-openssl=/usr' \
'--with-zlib=/usr' [...]
Macosx Universal Binaries 减肥瘦身
Posted on 11月 11, 2007 - Filed Under MacosX | Leave a Comment
三种方法
ditto –rsrc –arch i386 /Applications/Foo.app /Application/Foo-ppc.app
lipo -thin i386
lipo -remove ppc
iPhone的通讯录以拼音排序
Posted on 10月 6, 2007 - Filed Under MacosX, php, shell | 1 Comment
在iphone中安装php
将代码保存为py.php
ssh 登陆iphone或者在iphone安装Term-vt100
执行 php py.php 等待重启完成
结束
支持的中文貌似很有限,拼音表的处理看来要自己搞一个了,这个在网上找的。
py.php
<?php
/**
* @desc 将iPhone的通讯录以拼音排序, 需要安装PHP
* @author Kafeifei <http://www.nimab.org>
* @version 0.2beta
*/
error_reporting(0);
$sqlite_file = '/private/var/root/Library/AddressBook/AddressBook.sqlitedb'; // 1.1.3 以前的版本
$sqlite_file = '/private/var/mobile/Library/AddressBook/AddressBook.sqlitedb'; // 1.1.3 以后的版本
if (!file_exists($sqlite_file)) {
println("SQLiteDB:File Notfound.");
die;
}
$dsn = "sqlite:{$sqlite_file}";
try {
$dbh = new PDO($dsn);
println("Open {$dsn} OK.");
} catch (Exception $e) {
[...]
都是dash惹的祸
Posted on 03月 6, 2007 - Filed Under Bsd, Linux, MacosX, Unix, bash, dash, shell | 6 Comments
困扰我一个春天的问题!
Ubuntu
某天下了一个nerolinux,然后安装
安装失败,提示某脚本出错,看上去是语法错误
出错嘛就删除了哦
结果删除失败,提示同样的错误
导致使用apt-get任何时候都提示这个错误
几经搞整以后造成“新立得”无法正常运行
准备好光盘准备重装了
同时继续寻找希望,搜编google没有正解
其中错误包括:
dpkg (子进程):无法执行新的 post-removal script: No such file or directory
dpkg: 作下列清理工作时发生错误:
子进程·post-removal script·返回了错误号·2
在处理时有错误发生:
-------------------------------------
软件包nerolinux 需要重新安装,但是我无法找到相应的安装文件。
仔细看了一下错误文件
/var/lib/dpkg/info/nerolinux.xxx
打开一看,语法好像不太寻常,我看到了 function 字样
再看头部 #!/bin/sh
改为 #!/bin/bash 后解决问题
ls -l /bin/sh 这个东西是链接到 dash 而不是 bash的
自从ubuntu 6.10 开始就是这样,很让人头痛,很多脚本运行有问题
见过有人为了装一个软件先把 bash->sh 装完了再 dash->sh 回去
妈B的,不改回去了,也没见哪个脚本运行不正常的!
最后,不知道这个dash是啥东东,本来想大骂一顿的,不过…… 还是算了……