Quantcast
Channel: 姬小光 »前端开发
Browsing all 11 articles
Browse latest View live

PhantomJS bridge for NodeJS

PhantomJS 与 NodeJS 的结合。 PhantomJS 默认只支持命令行调用,不方便开发成web服务,因此有人开发了 NodeJS 桥,可以将 PhantomJS 作为 node 的一个模块引入。具体的项目不止一个,推荐使用 phantomjs-node 。 安装 首先要确保已经安装了 PhantomJS ,并且环境变量中有 phantomjs 的二进制可执行文件,可以在命令行中键入:...

View Article



Image may be NSFW.
Clik here to view.

Web sharing in Mavericks

Web Sharing is a free replacement System Preferences pane that lets you turn web sharing on and off on Mountain Lion and Mavericks. It adds back the functionality that Apple removed. Download   Site

View Article

Proxy in phantomjs Phantomjs 设置代理

命令行方式:phantomjs --proxy=ip:port example.js也有基于 node 的代码形式,暂时没用过: https://github.com/sheebz/phantom-proxy/

View Article

centos linux apache gbk 乱码

编辑 apache 配置: vi /etc/httpd/conf/httpd.conf 把  AddDefaultCharset UTF-8 前面添加 # 注释掉,重启 apache 即可。

View Article

Note3中text-indent Bug

三星Note3中外层设置overflow:hidden;并不能挡住内层text-indent:-100%;或者 text-indent:-999em; 顶开的box,可以改用其他方式隐藏文本,如:color:rgba(0,0,0,0);

View Article


Apache SSI shtml 中文乱码

Apache 正常使用时只要 html 文件中的 meta 指定正确,一般不会出现乱码。如果出现整页乱码,可以将 http.conf 文件中 #AddDefaultCharset UTF-8 前面的注释去掉,即可强制指定默认编码为 UTF-8。 不过,在使用 SSI 指定变量时使用中文,也可能出现乱码(Bug 25202),例如:<!--#set var=slogan...

View Article

App Store 速度慢怎么办

修改 hosts 可解决 App Store 速度奇慢的问题。 可以手动修改 /etc/hosts 文件,也可以安装 Gas Mask 后修改,增加一条记录即可:23.41.186.64 itunesconnect.apple.com亲测有效,速度提升明显。

View Article

Image may be NSFW.
Clik here to view.

禁止 File Watchers 自动编译所有文件

IntelliJ IDEA 的 File Watchers 插件可以设置自动监控 SASS 文件并编译。但是当有 @import 文件存在时就蛋疼了,假设有 40 个文件引入了 _function.scss:@import "../common/function";则每次修改 _function.scss 时,会自动编译 40...

View Article


Image may be NSFW.
Clik here to view.

随机一组较浅的颜色

不废话,直接看代码:<!doctype html> <html> <head> <script type="text/javascript" src="lib/jquery-1.8.2.js"></script> <style type="text/css"> .node{float: left; width: 100px;...

View Article


Image may be NSFW.
Clik here to view.

固定表头的表格

代码如下:<!DOCTYPE html> <html> <head> <title>表格样式</title> <meta charset="utf-8"/> <style type="text/css"> body{font-size:12px;} /* 普通单线表格 */ .table_common{...

View Article

CentOS7 vpn net.ipv4.ip_forward

原在 /etc/sysctl.conf 中修改,在 CentOS7 中要到 /proc/sys/net 中修改,每个配置独立一个文件。

View Article
Browsing all 11 articles
Browse latest View live




Latest Images