- 分辨率越大显示的东西越多
- 高 PPI: 157
- OS X 10.9.3 以后改进了对 4K 的支持,可以 “Retina” 化,这样就不会出现 Mac 外接显示器字体发虚的问题
- 尝鲜,想体验下超高清
- 放在公司办公用,TN 面板无所谓,我不嫌弃
- 价钱不贵
#### | |
#### interfaces | |
#### | |
config interface 'wan' | |
option enabled '1' | |
list track_ip '8.8.4.4' | |
list track_ip '8.8.8.8' | |
list track_ip '208.67.222.222' | |
list track_ip '208.67.220.220' | |
option reliability '2' |
# Make to_i on a string return nil if there are no actual valid numbers | |
# or if it doesn't at least start with a number. | |
String.class_eval do | |
unless instance_methods.include?(:to_i_without_nil) | |
alias to_i_without_nil to_i | |
def to_i_with_nil(base=10) | |
if (r=self.to_i_without_nil(base))==0 | |
if /^[0-9]+/ =~ self | |
r |
I see this error when I try to suspend an Ubuntu 10 guest in Fusion:
The request to Suspend this virtual machine failed because the corresponding VMware Tools script did not run successfully.
If you have configured a custom suspend script in this virtual machine, make sure that it contains no errors. Attempting the operation again will ignore the script failure. You can also submit a support request to report this issue.
As the dialog states, the second time you try to suspend the VM it ignores the non-zero return code of the script and it seems to work. But it's annoying.
The problem appears to not be VMware actually, but Ubuntu (or Ubuntu's service
script). I tried to figure out where exactly Ubuntu's initctl configuration/scripts is broken to no avail but found a work-around that I'm happy with.
Web fonts are pretty much all the rage. Using a CDN for font libraries, like TypeKit or Google Fonts, will be a great solution for many projects. For others, this is not an option. Especially when you are creating a custom icon library for your project.
Rails and the asset pipeline are great tools, but Rails has yet to get caught up in the custom web font craze.
As with all things Rails, there is more then one way to skin this cat. There is the recommended way, and then there are the other ways.
Here I will show how to update your Rails project so that you can use the asset pipeline appropriately and resource your files using the common Rails convention.
# luna_pinyin.custom.yaml | |
# save it to: | |
# ~/.config/ibus/rime (linux) | |
# ~/Library/Rime (macos) | |
# %APPDATA%\Rime (windows) | |
patch: | |
"key_binder/bindings": | |
- { when: paging, accept: bracketleft, send: Page_Up } | |
- { when: has_menu, accept: bracketright, send: Page_Down } |
# luna_pinyin.custom.yaml | |
# | |
# 【朙月拼音】模糊音定製模板 | |
# 佛振配製 :-) | |
# | |
# 位置: | |
# ~/.config/ibus/rime (Linux) | |
# ~/Library/Rime (Mac OS) | |
# %APPDATA%\Rime (Windows) | |
# |
There are a lot of ways to serve a Go HTTP application. The best choices depend on each use case. Currently nginx looks to be the standard web server for every new project even though there are other great web servers as well. However, how much is the overhead of serving a Go application behind an nginx server? Do we need some nginx features (vhosts, load balancing, cache, etc) or can you serve directly from Go? If you need nginx, what is the fastest connection mechanism? This are the kind of questions I'm intended to answer here. The purpose of this benchmark is not to tell that Go is faster or slower than nginx. That would be stupid.
So, these are the different settings we are going to compare:
- Go HTTP standalone (as the control group)
- Nginx proxy to Go HTTP
- Nginx fastcgi to Go TCP FastCGI
- Nginx fastcgi to Go Unix Socket FastCGI