03 2015 档案

摘要:标题无“转载”即原创文章,版权所有。转载请注明来源:http://besteam.im/blogs/article/31/。我一直对字符界面有抵触感,即使会用vim,我的linux脚本(python/bash script)一般都是在windows下写完调试好,然后传到linux上的。不过写好的li... 阅读全文
posted @ 2015-03-30 15:18 zhishaofei3 阅读(8395) 评论(1) 推荐(0)
摘要:https://www.npmjs.org/package/n 阅读全文
posted @ 2015-03-30 14:06 zhishaofei3 阅读(249) 评论(0) 推荐(0)
摘要:安装node之前1.之前在windows平台上安装node,直接下载一个安装文件得了。但是mac osx是基于unix架构的嘛,跟linux很像啊。在linux上安装我们多习惯用命令行工具安装啊,mac osx也要用命令行工具才好啊。2.homebrew是池建强大牛极力推荐的osx的包管理工具。通过... 阅读全文
posted @ 2015-03-30 13:49 zhishaofei3 阅读(194) 评论(0) 推荐(0)
摘要:css gray,grayscale,css变灰兼容大部分浏览器html { filter: url("data:image/svg+xml;utf8,#grayscale"); /* Firefox 3.5+ */-webkit-filter: grayscale(100%); /* chrome... 阅读全文
posted @ 2015-03-27 13:16 zhishaofei3 阅读(1747) 评论(0) 推荐(0)
摘要:mysql查看表结构命令,如下:desc 表名;show columns from 表名;describe 表名;show create table 表名;use information_schemaselect * from columns where table_name='表名';顺便记下:s... 阅读全文
posted @ 2015-03-24 16:50 zhishaofei3 阅读(254) 评论(0) 推荐(0)
摘要:datagrid-detailview.js easyui表格嵌套 阅读全文
posted @ 2015-03-24 16:02 zhishaofei3 阅读(350) 评论(0) 推荐(0)
摘要:Apache与PHP的配置Mavericks同以往的OSX一样自带了apache2.2.24和php5.4.17,但默认情况下没有开启,打开终端sudo apachectl start这时在浏览器中输入localhost应该就会出现apache标准的It Works!下面开启php,修改apache... 阅读全文
posted @ 2015-03-24 13:03 zhishaofei3 阅读(174) 评论(0) 推荐(0)
摘要:打开终端重启apache:sudo /usr/sbin/apachectl restart关闭apache:sudo /usr/sbin/apachectl stop开启apache:sudo /usr/sbin/apachectl start 阅读全文
posted @ 2015-03-23 20:50 zhishaofei3 阅读(199) 评论(0) 推荐(0)
摘要:http://jsbin.com/vonuni/2/edit?html,css,output 阅读全文
posted @ 2015-03-18 13:00 zhishaofei3 阅读(91) 评论(0) 推荐(0)
摘要:http://imakewebthings.com/waypointswaypoints 滑冰122分钟 Cygwin http:/nxutils.sourceforge.net http://babun.github.io 阅读全文
posted @ 2015-03-17 09:43 zhishaofei3 阅读(180) 评论(0) 推荐(0)
摘要:http://www.jb51.net/article/39481.htmhttp://www.poluoluo.com/jzxy/201307/232615.html 阅读全文
posted @ 2015-03-16 17:30 zhishaofei3 阅读(608) 评论(0) 推荐(0)
摘要:http://jd.aihuishou.com/images/icons.pnghttp://misc.360buyimg.com/201007/skin/df/i/bg_hotsale.gif来自http://jd.aihuishou.com/trade?jdparam=VxIqXSxDQy66%... 阅读全文
posted @ 2015-03-16 17:14 zhishaofei3 阅读(354) 评论(0) 推荐(0)
摘要:通过移动端使用 Web 服务的比率越来越大,例如淘宝今年双十一,移动端交易份额就达到42.6%。由此可见,掌握移动端的前端开发和测试是非常有必要的。由于之前做过大量有响应式需求的项目;今年(2014)年初也配合 Denis 的微信机器人做了一些用于微信的移动端项目;在淘宝 UED 实习的时候,也有参... 阅读全文
posted @ 2015-03-16 15:35 zhishaofei3 阅读(681) 评论(0) 推荐(0)
摘要:1 2 3 4 5 -webkit-filter 6 21 22 23 24 -webkit-filter 25 26 blur 27 px 28 brightness 29 % 30 contrast 31 % 32 ... 阅读全文
posted @ 2015-03-13 12:59 zhishaofei3 阅读(151) 评论(0) 推荐(0)
摘要:ERROR: Could not find a valid gem 'sass' (>= 0), here is why: Unable to download data from http://rubygems.org/ - Errno::EACCES: Permission ... 阅读全文
posted @ 2015-03-12 12:35 zhishaofei3 阅读(467) 评论(0) 推荐(0)
摘要:看了些资料,对应只需要知道怎么查询和使用mongodb的我来说,这些足够啦。左边是mongodb查询语句,右边是sql语句。对照着用,挺方便。db.users.find() select*fromusersdb.users.find({"age":27}) select*fromuserswhere... 阅读全文
posted @ 2015-03-09 10:33 zhishaofei3 阅读(188) 评论(0) 推荐(0)
摘要:var express = require('../') , request = require('supertest') , cookieParser = require('cookie-parser')describe('req', function(){ describe('.signe... 阅读全文
posted @ 2015-03-06 23:03 zhishaofei3 阅读(331) 评论(0) 推荐(0)
摘要:1.源码缩影 !(function (name, definition) { var hasDefine = typeof define === 'function', //检查上下文环境是否为AMD或CMD hasExports = typeof module !==... 阅读全文
posted @ 2015-03-06 22:02 zhishaofei3 阅读(379) 评论(0) 推荐(0)
摘要:当我们在写web的时候,难免会要使用到cookie,由于node.js有了express这个web框架,我们就可以方便地去建站。在使用express时,经常会使用到cookie-parser这个插件。今天我们来分析一下这个插件。这个插件通常当作中间件使用,app.use(cookieParser()... 阅读全文
posted @ 2015-03-06 21:56 zhishaofei3 阅读(401) 评论(0) 推荐(0)
摘要:Mongoose API : http://mongoosejs.com/docs/api.html// mongoose 链接var mongoose = require('mongoose');var db = mongoose.createConnection('mongodb://127.0... 阅读全文
posted @ 2015-03-04 16:36 zhishaofei3 阅读(314) 评论(0) 推荐(0)
摘要:问题:我使用expressjs和mongostore来管理session。下面是expressjs中的设置。app.configure(function(){ app.use(express.session({ secret:conf.secret, maxAge:newDate(Date.... 阅读全文
posted @ 2015-03-03 18:54 zhishaofei3 阅读(921) 评论(0) 推荐(0)
摘要:开发工具1.WebStorm,毫无疑问非他莫属,跨平台,强大的代码提示,支持Nodejs调试,此外还支持vi编辑模式,这点我很喜欢。2.做些小型项目用Sublime Text。3.Browserify:将你的nodejs模块应用到浏览器中4.nvm:nodejs版本管理工具,你可能会用到多个node... 阅读全文
posted @ 2015-03-03 15:26 zhishaofei3 阅读(267) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-03-02 11:39 zhishaofei3 阅读(204) 评论(0) 推荐(0)
摘要:nodejs操作mongodb可以使用mongoose:Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.安装mongoose:npm install mongoose... 阅读全文
posted @ 2015-03-02 10:49 zhishaofei3 阅读(270) 评论(0) 推荐(0)