标签:mac

浏览模式: 标准 | 列表 | 图文
mac下使用0B47189的问题

mac下使用0B47189的问题

google搜索一下:0B47189 mac 中键,会有不少答案。

0B47189是thinkpad的蓝牙键盘的型号,目前用下来还不错。因为我暂时将屏幕盖起来用,而我又不习惯机械键盘,当前这个键盘感觉是用的比较舒服的。
当然也会有一些小问题,比如小红点飘的厉害。没法切屏幕(原来用四指在触摸版上滑一下就OK了),不过也有一些比较特别的,比如:home/end,原来我得按ctrl+e,ctrl+s。。。

其实最烦的是啥呢。就是页面的滚动。如果是WEB页,我还能按空格下翻,SHIFT+空格可以上翻。如果是在IDE里,这明显不能用。。所以我就在想中键干嘛的
中键能干嘛?
1、在WEB页里,点中键没有任何作用
2、在浏览器中,在TAB上点中键。窗口关闭了。。。。。。
刚刚发现另一个:按住中键,移动小红点,可以使页面上下翻页了,这个功能太爽了

然后刚知道,ctrl+左右键可以切换窗口。这个功能知道了,我其它就无所谓了。哈
---
最后补充一下,因为这个键盘默认没有锁Fn键。所以需要下载tpkb,在sudo下运行一下就可以锁定fn了。这样现在正常的F1~F12就是标准的按键了。这一点还是挺好的。
安装St2的Dash插件

安装St2的Dash插件

st2目前应该是快超越Editplus成为广大开发人员手中必备的编辑器了吧?在写go的时候,我也用上了它,而且也用了gosublime来做为辅助,虽然,无闻说只要按cmd+.,cmd+h,就可以进行跳转查看变量等,但我有dash,可以看任何语言,我该怎么配置?

其实官方有现成的例子,在这里,你也可以看到英文版:https://sublime.wbond.net/packages/DashDoc,我稍微中文化一下吧

1、打开st2的菜单:preferences -> package control -> install package,搜索dashdoc进行安装,安装完成后就可以使用了(dashdoc功能只支持mac)

2、将光标移到需要查询的变量的英文上,按ctrl+h,即会自动打开dash,跳转到指定函数(测试了一下,只要你文件名的后缀正确,你在dash里又安装了相应的文档包,dash还是可以直接认出来的)非常方便

以下是小小的例子,打开一个golang的程序,将光标移到函数名上:

按下ctrl+h,

OK,我们还想看这个函数的源码,点击右边的函数名(该功能是看具体文档来实现的,目前go的文档是可以这样看源码的,PHP的不行,其他的未知)

有没有感觉到,高端大气上档次?想知道dash还支持些啥 ,其实APP内部已经告诉你了:

其实appcode是用idea的核心的,所以appcode的plugin能够在idea系的软件上安装,比如phpstorm,安装后也就可以跳转了,具体按哪个快捷键,我就不告诉你了,自己安装一下就知道了

mac 接多显示器失败

mac 接多显示器失败

本来觉得有一个24的显示器可以用来码代码,看H片会很爽,结果用了N个办法也连接不上。。

detect的时候好象有,但VGA就是不亮。我的线是VGA的,但破显示器只支持D-SUB(还是HDMI?),只支持那个数字线。一直说我的VGA没有信号进去,好失败啊。。
但确实能够detect这个显示器。型号什么也有的,就是屏幕一片黑暗。以前连接普通的显示器也都OK。可是,这个dell的不行。纠结
如果不会设置,可以参考这个pdf:7d12ead3d63a6d5c46f1a1635606306d
mac 更新时帐号突然变成:kyle_chenyujia@hotmail.com的解决方法

mac 更新时帐号突然变成:kyle_chenyujia@hotmail.com的解决方法

在更新macosx的时候,突然间发现了有一个twitter的更新,但是在点更新的时候,突然发现帐号是:kyle_chenyujia@hotmail.com,以为中了病毒,不敢升级。然后网上找了一下原来这个帐号还有一些其他渊源。

解决方法:

删除所有破解软件,如果还不能解决,彻底抹掉磁盘,重装系统!!!千万不要用Time Machine,还会出现问题的

以后请支持正版,不要用破解软件了。。。

特别注意 Transmit 和 忍者跳高(Ninjump Deluxe)

此情况已经反映给 Apple Australia 了,目前无解,以上方法为唯一方法!同时可以解决显示其他人帐号的问题

反正有几个原因,要么是因为transmit要么是因为某个ninja的APP。我肯定是没有装ninja的APP,那就明显是transmit的原因了。

网上有很多教程,比如将Contents里的那个_MASReceipt,如:

找出所有安装的破解软件,然后右键显示包内容/Contents,如果有_MASReceipt这个文件夹,那说明是通过MAS破解的,解决方法是,找一个你从app store下载的软件,我用的是PPTV,右键显示包内容,然后把Contents/_MASReceipt覆盖到你的破解软件中,就不会有更新提示了,以后如果PPTV更新了,记得再覆盖一次。

目前,我暂时没有理它。先由他去吧

mac下面安装php5.4

mac下面安装php5.4

苹果下面安装php5.4还算是比较方便的,主要是默认为php5.3,想用trait的时候,没5.4跑不了啊。。

于是直接使用brew install php54,结果报错,查了下资料,原来,需要:

  • brew tap josegonzalez/homebrew-php
  • brew tap homebrew/dupes
  • brew install php54 --with-mysql --with-intl --with-fpm --without-apache

因为有装nginx。所以就without-apache了。。。

安装好后,brew 会告诉你:

The php.ini file can be found in:
/usr/local/etc/php/5.4/php.ini

✩✩✩✩ PEAR ✩✩✩✩

If PEAR complains about permissions, 'fix' the default PEAR permissions and config:
chmod -R ug+w /usr/local/Cellar/php54/5.4.13/lib/php
pear config-set php_ini /usr/local/etc/php/5.4/php.ini

✩✩✩✩ Extensions ✩✩✩✩

If you are having issues with custom extension compiling, ensure that this php is
in your PATH:
PATH="$(brew --prefix josegonzalez/php/php54)/bin:$PATH"

PHP54 Extensions will always be compiled against this PHP. Please install them
using --without-homebrew-php to enable compiling against system PHP.

✩✩✩✩✩ INTL Support ✩✩✩✩✩

icu4c is broken as of mxcl/homebrew#03ed757c, so you will need to install intl as
a separate extension:

brew install php54-intl

✩✩✩✩ FPM ✩✩✩✩

To launch php-fpm on startup:
* If this is your first install:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/php54/5.4.13/homebrew-php.josegonzalez.php54.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php54.plist

* If this is an upgrade and you already have the homebrew-php.josegonzalez.php54.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php54.plist
cp /usr/local/Cellar/php54/5.4.13/homebrew-php.josegonzalez.php54.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew-php.josegonzalez.php54.plist

The control script is located at /usr/local/Cellar/php54/5.4.13/sbin/php54-fpm

Mountain Lion comes with php-fpm pre-installed, to ensure you are using the brew version you need to make sure /sbin is before /usr/sbin in your PATH:

PATH="/sbin:$PATH"

You may also need to edit the plist to use the correct "UserName".

Please note that the plist was called 'org.php-fpm.plist' in old versions
of this formula.

To have launchd start php54 at login:
ln -sfv /usr/local/opt/php54/*.plist ~/Library/LaunchAgents
Then to load php54 now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php54.plist
Warning: /usr/local/sbin is not in your PATH
You can amend this by altering your ~/.bashrc file
记下这些路径和使用方法,以后会用得到
mac上怎么安装gcc?

mac上怎么安装gcc?

本来想在本机安装sshpass,但突然发现。。。./configure不能运行,提示我没有安装gcc等工具。

一想,好象以前安装xcode的时候,会有gcc安装的呀。但我辛苦安装了xcode之后,仍然提示没有gcc。

纠结,怎么办?找了点资料,果然官方就有:

1、登录:developer.apple.com,注册一个帐号,嗯,免费的,只是耗点时间而已

2、进入http://developer.apple.com/download,搜索一下:command line,下载回来安装即可:100多M

这时候就OK了啦。不过,也有缺点,command line tools for xcode里自带的svn只是1.6,现在好多都是1.7的了。还得升级。

升级,还是用brew install会方便一点。不过我只是说安装gcc,就下载一个command line tools for xcode即可了

dayone

dayone

一咬牙,买了一个APP:day one。用下来实在感觉是不错。所以才买的。。。
dayone的mac app的icloud的同步确实 有点麻烦。后来我没辙。选择了dropbox来进行同步。太悲催了。
icloud同步请参考:
http://dayoneapp.com/support/icloud/

dropbox同步请参考:
https://dayone.zendesk.com/entries/21984318-how-do-i-setup-dropbox-syncing

后记:
TNND,原来是破解版对icloud的同步做了限制,换成了正版就好了。一下子100块没了。mac上68,ios上30.
至少,我目前觉得还是物有所值。每天做了哪些事情都记录下来了。。。很好。很蛋定

在mac怎样启动windows安装

在mac怎样启动windows安装

大家都知道,bootcamp这玩意,可究竟怎么玩呢?我又遇到哪些问题呢?很痛苦,我一一道来吧

1.我用新版本的系统做了一个bootcamp的启动盘,一切正常,在我的机器上也能够正常启动的时候出现了菜单.找了一台旧机器.直接不认
bootcamp做启动盘的教程网上太多了,不多说

2.用rEFit做了一个启动菜单,rEFit的安装也很方便,下一步下一步就完了...
网上的教程说是不要按option,于是我等啊等 ,结果,进了mac了...
我按着option重启看到了rEFit的菜单了,心里那个激动啊,进去点击U盘安装......出现:error loading operate system ,我晶

3. 现在正在等 .....我在下载大白菜U盘启动工具,希望能够成功,因为vampire说他试了OK...
希望我不会失望

新旧版不兼容...硬件还是软件??好痛苦啊

--------后记

1. 第3步不做了,我换了个USB口,居然可以认了.尼妹啊...这种事情也有
2. rEFIt启动两次后,居然...不用再按OPTION了.看来,系统也是认顺序的.....

MAC复制文件后所增加的._开头的文件

MAC复制文件后所增加的._开头的文件

当从mac复制文件到其他系统的时候,你会发现,目录下面多了一堆._开头的同名文件,很让人纠结,找了资料,说这是【 “Apple Double” 的文件系統處理機制】,虽然可以被删除,但很麻烦。

找到的原文是这么说的:

Before Mac OS X, the Mac OS used ‘forked’ files, which have two components: a data fork and a resource fork. The Mac OS Standard (HFS) and Mac OS Extended (HFS Plus) disk formats support forked files. When you move these types of files to other disk formats, the resource fork can be lost.

With Mac OS X, there is a mechanism called “Apple Double” that allows the system to work with disk formats that do not have a forked file feature, such as remote NFS, SMB, WebDAV directories, or local UFS volumes. Apple Double does this by converting the file into two separate files. The first new file keeps the original name and contains the data fork of the original file. The second new file has the name of the original file prefixed by a “._ ” and contains the resource fork of the original file. If you see both files, the ._ file can be safely ignored. Sometimes when deleting a file, the ._ component will not be deleted. If this occurs you can safely delete the ._ file.

好吧,我当然是没辙的,所以就只能用fin . -name "._*"|xargs rm这样的方式来删除了。这也是参考文章中的办法:

不过还是有一点小问题,那就是如果文件夹中有空格,其实在查询的时候是会被加上“\”的,也就导致在删除 的时候这个反斜杠变成了转义符。所以,这个目录还是先mv一下,改个名吧

招商证券MAC版

招商证券MAC版

一直以来,招商证券我都是用虚拟机在跑,每次为了看这玩意都得开个虚拟机,好痛苦啊。
今天在搜索mac版的时候,看到的地址居然是官方的,打开一看,果然还真的有:
http://www.newone.com.cn/ws/html?arg=2personal/trade/jiaoyi_6
4f5cb429fcf8837cebe3f4a0481b5ac4
有时候在想,是不是自己闲的蛋疼,折腾自己