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

一些流行的颜色及其RGB值

 虽然不是设计师,但还是会用到这些东西,所以还是记录一下。。我平时只知道 #CCC,#FFF,#888,#000,还有几个英文,什么black,red,blue之类的。所以保存一下,以后查起来也比较方便

白色    255   255   255 FFFFFF
红色    255     0     0 FF0000
绿色      0   255     0 00FF00
蓝色      0     0   255 0000FF
洋红    255     0   255 FF00FF
墨绿      0   255   255 00FFFF
黄色    255   255     0 FFFF00
黑色      0     0     0 0
爱丽丝兰    240   248   255 F0F8FF
碧绿    112   219   147 70DB93
巧克力色     92    51    23 5C3317
蓝紫色    159    95   159 9F5F9F
黄铜    181   166    66 B5A642
亮金    217   217    25 D9D919
褐色    166    42   162 A62AA2
青铜    140   120    83 8C7853
青铜2    166   125    61 A67D3D
藏青     95   159   159 5F9F9F
亮铜    217   135    25 D98719
铜色    184   115    51 B87333
珊瑚色    255   127     0 FF7F00
矢车菊兰     66    66   111 42426F
深褐色     92    64    51 5C4033
深绿色     47    79    47 2F4F2F
深铜绿色     74   118   110 4A766E 
     
深橄榄绿     79    79    47 4F4F2F
紫色    153    50   205 9932CD
深紫色    135    31   120 871F78
深石板蓝    107    35   142 6B238E
深石板灰     47    79    79 2F4F4F
深黄褐色    151   105    79 97694F
深蓝玉色    112   147   219 7093DB
暗木色    133    94    66 8.55E+44
暗灰     84    84    84 545454
暗玫瑰色    133    99    99 856363
长石色    209   146   117 D19275
砖红色    142    35    35 8E2323
草绿     35   142    35 2.38E+25
金色    205   127    50 CD7F32
秋叶色    219   219   112 DBDB70
灰色    192   192   192 C0C0C0
铜绿色     82   127   118 527F76
黄绿色    147   219   112 93DB70
军绿     33    94    33 2.15E+23
印第安红色     78    47    47 4E2F2F
土黄    159   159    95 9F9F5F
浅蓝    192   217   217 C0D9D9
浅灰    168   168   168 A8A8A8
浅铜蓝    143   143   189 8F8FBD
浅木色    233   194   166 E9C2A6 
     
浅绿     50   205    50 32CD32
橙色    228   120    51 E47833
栗色    142    35   107 8E236B
中绿     50   205   153 32CD99
中蓝     50    50   205 3232CD
中草绿    107   142    35 6B8E23
中秋叶色    234   234   174 EAEAAE
中紫色    147   112   219 9370DB
中海绿     66   111    66 426F42
中石板蓝    127     0   255 7F00FF
中春绿    127   255     0 7FFF00
中蓝玉色    112   219   219 70DBDB
     
中紫红色    219   112   147 DB7093
中木色    166   128   100 A68064
夜蓝色     47    47    79 2F2F4F
海蓝色     35    35   142 23238E
氖蓝色     77    77   255 4D4DFF
氖粉红色    255   110   199 FF6EC7
新夜蓝色      0     0   156 00009C
新黄褐色    235   199   158 EBC79E
暗金色    207   181    59 CFB53B
橘色    255   127     0 FF7F00
橘红    255    36     0 FF2400
淡紫    219   112   219 DB70DB
淡绿    143   188   143 8FBC8F
     
粉红    188   143   143 BC8F8F
棕色    234   173   234 EAADEA
石英色    217   217   243 D9D9F3
富兰色     89    89   171 5959AB
橙红色    111    66    66 6F4242
猩红    140    23    23 8C1717
海绿     35   142   104 2.38E+70
半甜巧克力色    107    66    38 6B4226
赭色    142   107    35 8E6B23
银色    230   232   250 E6E8FA
天蓝     50   153   204 3299CC
石板蓝      0   127   255 007FFF 
     
香粉红    255    28   174 FF1CAE
春绿      0   255   127 00FF7F
钢蓝     35   107   142 236B8E
夏天的天空     56   176   222 38B0DE
黄褐色    219   147   112 DB9370
蓝玉色    173   234   234 ADEAEA
暗褐色     92    64    51 5C4033
亮灰    205   205   205 CDCDCD
紫罗兰色     79    47    79 4F2F4F
紫红    204    50   153 CC3299
麦色    216   216   191 D8d8BF
暗黄    153   204    50 99CC32

Tags: color

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的窗口即可

转:每个 Web 开发者都应该知道的关于 URL 编码的知识

URL,对于每个搞Web开发的人来说都是一件必知必会的玩意,但究竟应该会到什么地步,就有一些说法了,常见的,比如URL不能太长,传递非ascii字符需要encode之类的都知道。有没有更深的内容?

开源中国的网站上,就有人翻译了一篇文章 ,先不谈翻译的怎么样,光长度就够吓人了。。

内容很长,我这里仅提供一个链接,当然为了方便各位查看,我还搞了个PDF提供下载

来源地址:http://www.oschina.net/translate/what-every-web-developer-must-know-about-url-encoding

原文地址:http://blog.lunatech.com/2009/02/03/what-every-web-developer-must-know-about-url-encoding

每个 web 开发者都应该知道的关于 url 编码的知识 - 技术翻译 - 开源中国社区.pdf

这里有一个摘要目录: