手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆
浏览模式: 标准 | 列表2025年07月的文章

如何禁用消息中心

10.8.x开始就多了一个通知中心,其实我个人感觉用处并不大,而且自从上一篇博客开始,我才发现,原来Dock假死的罪魁祸首就是通知中心。不知道什么时候我的通知中心出问题了,可能就是最新的一个补丁包的问题。

只要一点击通知中心的图标。Dock就假死。于是我要解决这个问题

有两种方法,1不推荐,还是使用2吧

1、将通知中心.app改名。只是恢复的时候, 不能叫通知中心,而是叫:NotificationCenter.app,这个APP在哪里?打开finder,输入cmd+shift+g(其实就是菜单中的跳到指定路径),输入:/System/Library/CoreServices/,你就可以看到了

2、命令:

XML/HTML代码
  1. launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist  

还是第二种安全。

参考:

1.http://www.macx.cn/thread-2058406-1-1.html

2.http://www.macx.cn/thread-2064801-1-1.html

Tags: dock, 消息中心

DOCK假死??

 最近不知道为什么,突然间dock喜欢上了假死这个状态。之前一直不知道怎么处理,因为看了下没有什么cpu占高的动作。cmd+tab也无效了。。

dock也点击不上去,于是我想,难道我杀掉dock就OK了?
于是利用spotlight打开终端(正好我finder窗口都关掉了。所以没有办法打开。而且spotlight速度更快)
输入:killall -KILL Dock
Dock自动重启。所有的不正常状态全部恢复 了。这TMD是怎么回事?因为它连cmd+tab也恢复 了,难道Dock接管了这么多的东西??
 
再看了一下,网上也有类似的问题和回复,比如:http://www.thxbye.de/mac/mac-restarting-the-mac-os-x-dock-finder-spaces-or-menubar.html
它里面也说了一些情况 ,好吧。我menubar没有死。不然我还没办法用spotlight。
XML/HTML代码
  1. Sometimes it just seems to happen, you're getting the spinning beachball on Mac OS X System Applications/Tools, like the Finder when connecting to a messed up network share. Luckily, most of the time it's easy (yet annoying) to fix via starting the Terminal and using following commands (beware, the names of the programs to kill are case sensitive!):  
  2.   
  3. The Finder crashed:  
  4. killall -KILL Finder  
  5. (you can also restart the Finder by option (=alt) + rightclicking the Finder icon in the Dock and selecting Relaunch. It doesn't always work though.)  
  6.   
  7. The Dock crashed:  
  8. killall -KILL Dock  
  9.   
  10. Spaces crashed:  
  11. killall -KILL Dock  
  12.   
  13. The Menubar crashed/refuses to be clickable:  
  14. killall -KILL SystemUIServer  
  15.   
  16. All these services should automatically restart after they have been killed. If for some reason they won't, you're probably better off just rebooting (to be sure, the "Shut Down" option from the Finder/Menu bar will probably not help, just go to the Terminal and type: sudo shutdown -r now - provide your Admin password and your machine should be restarting).  
  17.   
  18. Good luck!  
 
HOHO
 
 

Tags: dock, kill

IOS7 隐藏状态栏

 IOS7以下的版本中隐藏状态栏十分方便:

[[UIApplication sharedApplication] setStatusBarHidden:YES];
只要这么一句就解决问题了,但在IOS7中就不是这样了。有人说写代码,有人说info.plist里加一行即OK
说写代码的人是这样的:

‐ (BOOL)prefersStatusBarHidden {
    return YES; 

我试了好象无效
说改info.plist的人是这样的:

You should add this value to plist: "View controller­based status bar appearance" and set it to "NO". This would let you set the status bar to hidden mode and it's global not like other answers.

UPDATE: If you want that the status bar would be hidden on splash screen don't forget to mark "Hide during application launch" on target status bar options. Also, you can add "Status bar is initially hidden" to "YES" on the plist if you don't want to do it with code inside the app. 

试了之后。立马见效。
原文来自:http://stackoverflow.com/questions/17763719/status-bar-wont-disappear
 
 
 

杂事儿乱弹

1、国庆好象就那么几个特色,人多,车多,路堵,没地方住。

2、10月10日过了。开始戒酒了

3、调整作息时间 ,准备将晚上改为休息时间 ,然后早起写东西,觉得这样的效率可能会更高,对身体也好,而且早起的话,记事学习都比较有效吧?

 

 

新增slideshare的反向代理

 如题,新增反向代理

http://slideshare.neatcn.com

如果你觉得域名太长,也可以直接访问
http://ss.neatcn.com
 
更多反向代理请查看置顶贴:http://neatstudio.com/show-2320-1.shtml,或直接点击:常用网站的反向代理页