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

Mac QQ 经常崩溃

 今天中午开始。macQQ开始每几分钟崩溃一次。之前是某个群的聊天记录死活打不开,删不掉,这回好了。改成经常崩了

 
到系统目录下面看了一下,哇塞,1.1G啊。然后再看一下,靠图片700多M啊。再ls了一下。不是吧?700多M的图片放在同一个目录下。你这不是诚心要我死嘛 。
一个图片1M也得有700个文件,QQ传图怎么可能1M1个呢。。统计了一下,14000多个文件。
拜托,你QQ就算放图片难道不会分级 存储吗?这样不是要死人、??
 
不得已。把这个目录清空了。现在好象好一点了。

Tags: qq

macjournal打开隐藏选项

 Macjournal是一款??软件。这个问号,我实在不知道怎么说,主要是因为:

  1. 它支持wordpress等的导入导出,也能将写的文章发布到wordpress上面
  2. 它也有日程
  3. 它也能写作,专门有一个book的模版
  4. 笔记也能够按日历查看还有记录等
  5. 可对单一文章进行特殊标识:打tag,设置地点,rating,设置心情。。。等等,我晶,太多了吧?比如设置颜色、设置。。。。
我用它来是做笔记的,本来是用evernote,但新版的evernote实在是不支持层级关系了。觉得不爽,所以还是一咬牙换成了macjournal,可以设置备份,我将备份扔到了快盘的目录下。
 
跑题了跑题了,我这里是说,如何打开macjournal的隐藏选项,因为隐藏选项支持markdown。。。
1、进入设置
2、点击advance
3、按住cmd+ctl键,你会发现,原来的:reveal in fiider 变了,变成打开隐藏选项
4、点击,打开了隐藏选项,oh yeah,居然这么多??
大小: 152.99 K
尺寸: 440 x 376
浏览: 1232 次
点击打开新窗口浏览全图
 
 PS:如果你的版本不是6.x,建议你看这个:http://danschimpf.com/hiddenprefs.html
 
 

Tags: macjournal

ios7试用一周多小记

 ios出来不少时间了,也从beta1升到了beta2,性能上感觉,也不卡了,终于也有一些话可以拿出来说了,beta1我实在是没什么好说的。。。。

 
说说特性吧,与ios6相比:
1、控制台可以单独呼出,类似android的管理,不过android是从上面往下呼出,ios从下往上(屏幕上一个向上,一个向下的箭头,看起来好恶心),不过方便是方便了。可以控制声音、亮度、还有快捷开关,还有电筒、计算器、闹钟等小工具;确实方便了很多,比如计算器我就不用再找了(突然觉得就是把下面的4个快捷方式变成了8个)
2、蜂窝管理:可以针对APP使用蜂窝数据,可以屏蔽某些APP用手机流量,很不错
3、照相的速度快了很多,增加了一个正方型的照相,以前打开HDR的时候,拍张照要等半天,现在就和以前一样快了,不知道是从哪里优化的。。。还是说因为支持了多进程,把它扔在后台而不影响拍照了?
4、APP更新自动下载。这个功能比较有意思,也比较方便,最起码你在无线的时候你就不用关心APP是否在更新,它会帮你悄悄的更新完了,如果。。。你用苹果皮带的无线功能,估计你会哭。。。(中国移动推出的td-scdma的苹果皮,我就是在上面吃药了,流量一下子超了200多M,看了下,还好,我都没有大型 APP,可就算更新一个淘宝,TMD也要40多M啊)
5、spotlight,原来是单独一屏,现在也没有了,只要在主界面手指下划,在顶部就会出现一个搜索框。感觉有点卡,不如以前的单独一屏。。。但方便是方便了
6、输入法更新了。原来的笔画输入,连丁、士这类词都打不出,只能用拼音,现在。。。。都可以输入了,听说要开放输入法API,但估计不太可能。。。
 
由于一些其他界面的东西,官网上、各种各样的网站都有说明,所以我这里就不多说了。。。
一些小问题:
1、微信,发表图文的时候,只能选择拍照。其他功能都会有小问题:长信息展开不正常,从相册选择照片不正常,文字信息看不到第一行等等。其实也就是朋友圈有各种小问题
2、锁屏的时候,桌面图片好象会有切边,不太好看
3、接电话的时候,偶尔会突然打开扬声器,有几次差点吓死我。。。
 
小瑕疵,可以忍受。
当然如果你要刷回去,可能是有点问题的,听说苹果已经不允许刷回6.1.2了。考虑一下再说哦

Tags: ios

mac下的抓包工具Charles

 在mac下面,居然没有好的抓包工具,这让我十分纠结,毕竟不可能为了抓一个http包就跑到win下折腾。或许有人说tcpdump这么好的工具,你怎么不用。说实话,tcpdump太复杂了,我还没有细看,再加上不是所见所得,所以,用起来不是那么习惯

又有人说,wireshark怎么不用?好吧,其实我是有装wireshark,只是启动的时候会启动XQuartz,有点慢,当然这不是主要的,而是wireshark功能太强大了,以至于都不会写过滤器。

也有人说,图方便的话,完全可以用chrome自带的抓包工具啊?在没有找到这个工具之前,你可以尝试在地址栏输入:chrome://chrome-urls/,你会发现chrome原来有这么多的隐藏工具,嗯。我要说的就是其中的一个:chrome://net-internals/ ,在Events中,你可以进行过滤,不过,针对https的包,内容没法显示

越来越怀念windows下面,smartsniff完全就是wireshark的简化版,抓起包来刷刷的,过滤数据也很方便。

当然,mac下面的charles就真心不错了,试用了一下,果然对于https的包也能够抓取。

这里有一个简单的教程(实际操作略有出入):

在Mac下做开发,用Fiddler抓包由于离不开Windows比较痛苦,还好有Charles,到官网http://www.charlesproxy.com/可下载到最新版本(若不支持rMBP可拖到Retinizer中把文字变清晰)

HTTP抓包

  1. 打开Charles程序
  2. 查看Mac电脑的IP地址,如192.168.1.7
  3. 打开iOS设置,进入当前wifi连接,设置HTTP代理Group,将服务器填为上一步中获得的IP,即192.168.1.7,端口填8888
  4. iOS设备打开你要抓包的app进行网络操作
  5. Charles弹出确认框,点击Allow按钮即可

HTTPS抓包

  1. 下载Charles证书http://www.charlesproxy.com/ssl.zip,解压后导入到iOS设备中(将crt文件作为邮件附件发给自己,再在iOS设备中点击附件即可安装;也可上传至dropbox之类的网盘,通过safari下载安装)
  2. 在Charles的工具栏上点击设置按钮,选择Proxy Settings…
  3. 切换到SSL选项卡,选中Enable SSL Proxying,别急,选完先别关掉,还有下一步
  4. 这一步跟Fiddler不同,Fiddler安装证书后就可以抓HTTPS网址的包了,Charles则麻烦一些,需要在上一步的SSL选项卡的Locations表单填写要抓包的域名和端口,点击Add按钮,在弹出的表单中Host填写域名,比如填api.instagram.com,Port填443

接下来就跟HTTP抓包一样了

---EOF---

上文中的一些操作,其实是有点出入的(HTTPS)抓包

1、如果没有设置ssl的话,那么你看到的ssl的接口中,会有一个报错:SSL Proxying not enabled for this host: enable in Proxy Settings, SSL locations,这个时候,在左侧的域名上点右键:enable ssl,就OK了。(其实就是上面的第4部,不过这个操作是简化操作,上面的第4步太麻烦了)
2、如果这样还是不能抓包,那么官方会有一个说明(http://www.charlesproxy.com/documentation/using-charles/ssl-certificates/):

MAC OS X

Download and unzip the Charles CA Certificate bundle. The bundle contains the Charles CA Certificate file.

Run the Keychain Access utility from the Applications/Utilities folder. This tool enables you to manage your certificates.

Choose the "login" keychain then go to the File menu and choose Import. Choose the .crt file you downloaded above, and ensure that the login keychain is chosen in the dropdown menu.

Complete the import and the Charles CA SSL Certificate will now be trusted for your login account.

Move the Charles Proxy SSL Proxying certificate from your login keychain to the System keychain by drag-and-drop if you want all users on the machine to trust it.

You will need to quit and reopen Safari to see the change.

GOOGLE CHROME

On Mac OS X, please follow the instructions for Mac OS X above. These instructions only apply on Windows.

Open the Options dialog, go to the "Under the Hood" tab, then click the "Manage certificates" button.

Go to the Trusted Root Certification Authorities tab and click Import.

Find the charles-proxy-ssl-proxying-certificate.crt file. On Windows and Linux it is in the docs directory in your Charles installation directory. On Mac OS X (or if you can’t find it) you can download and unzip ssl.zip.

Choose the charles-proxy-ssl-proxying-certificate.crt file, then click Next and Finish, leaving the default options, until you complete the import. Chrome will now always trust certificates signed by Charles.

After importing you can delete the charles-proxy-ssl-proxying-certificate.crt file if you downloaded it.

---如果用chrome,那就直接可以使用/如果firefox,会有插件提示你安装/如果是safari,则需要打开证书管理器,将刚才导入的证书把login改为system(这样所有用户就都能使用了,不过都是自己的电脑,无所谓了),safari可能需要重启下浏览器

经此,我终于可以抓包了。而且https包也不再只是一堆 乱码。黑黑

Tags: charles, wireshark

推荐APP:Retinizer

虽然rmbp出来不少时间了,但很多APP仍然顽固的不支持retina屏,这里面有一些代表APP,比如:google的picasa。在rmbp的屏幕下简直就是一个渣啊。

所幸,有牛人勇敢的站了出来,他在自己的APP里这么写到:

Retinizer is a small app I wrote that allows apps that aren’t retina ready and are displayed pixelated at 1x to displaytheir UI widgets at 2x. That way, only their custom images will look bad and not the whole app.
 
To use the app, just drag an app (and make sure it’s closed) into the window and click the Retinize! button.
 
It also allows de-retinization of an app, in case it has problems in 2x mode. Just drag an app that you retinized before and click the button below, which will now read De-retinize
 
The app works per-user. That means, retinizing an app in your account will not affect the app in other accounts, where it will display at its usual 1x.
 
So far, it seems only apps that use Carbon, directly (like Snes9x) or indirectly (wxWidgets, Qt apps) draw their widgets at 1x on a retina display, while Cocoa apps seem to alwas draw widgets at 2x. But some apps, such as Eclipse, draw at 1x and use Cocoa (albeit with some weird Java bindings or something like that, not sure). This app also helps in that case. 
 
Please note that this app won’t make apps get retina images. That means, custom icons in e.g. the Preferences window will still look ugly.
 
It has only been tested with 10.8 but should work fine with 10.7.4.
 
Known bugs:
  • Cannot tell if apps are retina ready unless they have set NSHighResolutionCapable in their Info.plist.
  • DON'T USE IT WITH ADOBE CREATIVE SUITE
  • It may have problems with apps that don’t use the defaults system
You must have Gatekeeper disabled or open the app with Ctrl-Click->Open, as I don’t (yet) have a Gatekeeper Certificate.
 
-----
看看,人家可是好好的说的:不要用在adobe的软件中,在使用前注意,如果你开了安全权限,需要按住 ctrl健,再打开APP。
试用了一下,office的图片明显清楚了一些。
下载地址:https://sites.google.com/a/mikelpr.com/files/home/Retinizer050.zip?attredirects=0
使用方法很简单,先打开 Retinizer 软件,然后将APP拖放到Retinizer的窗口即可