手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆
浏览模式: 标准 | 列表分类:苹果相关

转:Tiger: Disabling Spotlight

嗯,到现在为止,我也没有办法搜索我的电脑、mail、甚至 spotlight,真是纠结。
于是这篇disabing spotlight就成了我搜索中的目标。我想,既然能够disable spotlight,那肯定能够enable吧?
所以,上原文吧:http://www.theconsultant.net/2005/06/tiger-disabling-spotlight/

Spotlight introduces a fairely large performance hit on to the system, especially if the files you are working with are both large and have the Spotlight plugin, and thus can be indexed. Performance hit might be less noticable on the desktop system with fast drives, however on my laptop with 4200 rpm drive, and constantly dealing with megabytes of source code and compilations spotlight introduced less of a benefit and more of a hindrance.

So, without further ado, in order to disable spotlight, one has to edit /private/etc/hostconfig, find the line that reads SPOTLIGHT=-YES-, change it to SPOTLIGHT=-NO-, and rebooot.

This will prevent MetaData Service, / System / Library / Frameworks / CoreServices.framework / Versions / A / Frameworks / Metadata.framework / Versions / A / Support / mds from starting on boot time.

Note that this will not disable file change notifications in the kernel, as can be checked using Amit Singh’s fslogger. On the same page there is some more in depth information on the kernel notification service that Spotlight (and fslogger) subscribe to.

A perty GUI called Spotless was written by someone, but I am not sure I’d trust a GUI to parse and edit a text file.

If you want to get rid of the looking glass icon in the top right hand corner as well, you might want to either remove (perferably just move out of place) or chmod -R 0000 /System/Library/CoreServices/Search.bundle (Key file. Actual parts of Spotlight are: /Library/Spotlight /System/Library/Spotlight /System/Library/CoreServices/Search.bundle /System/Library/PreferencePanes/Spotlight.prefPane /System/Library/Services/Spotlight.service /System/Library/Contextual Menu Items/SpotlightCM.plugin /System/Library/StartupItems/Metadata plus /usr/bin/md*, although I’d argue that metadata tools in /usr/bin/md* are actually useful.)
Changing permissions means that if at some point you want to undo the changes, you can always repair permissions. In any case, little looking glass in the corner doesn’t bother me much.

Technically one can probably selectively start and stop Spotlight by killing or startng mds and mdimport, however a way Apple recommends is using mdutil -i off / to turn off indexing of the boot volume (ie existing databases would be preserved and accessible through spotlight).

If you ever want to blow away your Spotlight database, and force reindexing (assuming mds/mdimport run), you can do mdutil -i off /, mdutil -E / , mdutil -i on /

Note: Apprently killing spotlight interferes with find in Finder and in Mail.app. As I never use either (locate or find . -name “*foo*” -print on the command line is much more powerful, plus gives me an -exec stuff {} \; option), it doesn’t bother me, however ocdinsomniac has some nice additional information and a script that purports reverting Finder’s find to the Panther style behavior.

Tags: spotlight

纠结:mac居然不能使用搜索功能了

不知道从什么时候起,我的macosx系统居然不能搜索了。
Finder中无法找文件
邮件中无法搜索邮件(只能根据发件人的详细地址来筛选)
Spotlight中也无法搜索了。

真纠结啊,不知道是哪里的设置出了问题。NND,望知情者给条生路啊

Tags: macosx, 搜索

SecureCRT for MAC 破解

之前说过securecrt的破解,说是一直删除/Users/xxx/Library/......下面的lic文件就可以了。但自从换到了6.7.3之后,该功能就无效了。所以在网上找了一些破解。
嗯,QQ微博里素包子说他破解了。但我没看到,我找到了pcbeta的文章,就是这一篇啦 ,作者如是说:
2011.11.20 再次更新
下载之前版本补丁的重新下载试试。已经解决注册的问题。

2011.11.19更新
更新解决patch后无法注册的问题。
原版备份下载地址http://115.com/file/aq5ymxbb
由于ipatch bug,在打补丁前需要手动在终端执行以下命令:
sudo chmod -R 777 /Applications/SecureCRT.app/Contents/MacOS


注:patch后需要使用补丁中的注册信息进行注册。方法为点 enter licenseXXXX,在弹出的界面直接选 continue。到了报错界面,左下角会有一个 “Enter License Manually",点击进去后进行注册。

嗯,在之后,得输入以下的注册码:
使用如下的注册信息手工注册:
Name:suddy
Company:suddy
Serial:03-67-009054
Date:11-19-2011
LicenseKey:ACUYJV Q1V2QU 1YWRCN NBYCYK AAXBZT CMJS8Z KBFYR7 QXJE45
--------
具体页面还是看:http://mac.pcbeta.com/thread-79412-1-1.html
记住,这个patch还是需要和官方的版本是一样的,即,版本号是[Mac OS X 6.7.3(build 292)
--------
注意,用了这个patch后,你会发现,居然密码不能保存了,怎么办怎么办?
嗯,微博上看到素包子说:把keychain禁用就OK了。于是乎,就搞定了
如何禁用:
在全局设置(GLobal Options)->Terminal->Advanced-> 看到右侧的Mac Options了没?把Use Keychain前的勾去掉就OK了。good luck

Tags: securecrt

如何解决iOS 4.3版本中safari对页面中5位数字的自动识别和自动添加样式

MD,在页面里,只要有5个连在一起的数字,就会被自动加上了链接。这个数字会被浏览器自动认为是电话号码。
这个问题真的很纠结,好好的文章突然变得全是链接,放在谁身上谁也不舒服啊。
但是否能解决呢?原来在4.3的时候是可以的,但新版的IOS却反而没办法了。
原来的版本只要这样:

<meta name="format-detection" content="telphone=no" />
可是现在都不可以了。
而且,现在网上找到的资料,都是上面那句话。也没有更好的办法来解决它。
除非象支付宝那样用恶心的方法:
<button class="t-balance" style="background:none;padding:0;border:0;">95009.00</button>元
转成类似于button的办法,让safari不能给他加链接。。。
但没有什么更佳的方法。郁闷

Tags: safari

mac os x上禁用虚拟内存

 

 

» 阅读全文

Tags: mac, 虚拟内存