摘要:
错误信息:Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145解决办法:sudo rm /var/lib/mongodb/mongod.locksudo service mongodb restart可以等一会以后在重复输入 service restarthttp://stackoverflow.com/questions/19527564/mongo-couldnt-connect-to-server-127-0-0-127017-at-src-mongo-shell-mon 阅读全文
摘要:
1. set env对比服务器标准配置,修改本地 /etc/apache2/sites-available/default(远程链接服务器的办法: ssh 12x.xxx.xxx.xxx)2. 手动创建一系列目录如:log, cache, data 等3. mongo driver 降级处理使用v1.4https://github.com/mongodb/mongo-php-driver/tree/v1.44. 注意 angelhere.ini 的位置所否与 index.php 中引用地址相匹配5. 安装php-gdsudo apt-get php5-gd install 阅读全文
摘要:
1. GyAdminBundle::base.html.twig必须添加Bundle名才可引用模板 阅读全文
摘要:
https://coderwall.com/p/9hj97wsudo apt-get install imagemagicksudo apt-get install php5-imagicksudo service apache2 restart使用imagick类:http://www.wodezhan.cn/?p=15 阅读全文
摘要:
1. 在 app/conig中建立一个自命名的文件: abc.yml2. 在 app/config/config.yml中导入abc.yml文件头部:imports:- { resource: parameters.yml }- { resource: security.yml }- { resource: abc.yml }3. 在abc.yml中定义变量:parameters:myname: wangyingxi4. 在代码中便可以使用了:某action中:$key = $this->container->getParameter('myname');retur 阅读全文
摘要:
1. hash 就是 json对象2. collection 就是 数组3. 若要知道如何使用referenceOne, referenceMany, embbedDocument等主要查看:http://doctrine-mongodb-odm.readthedocs.org/en/latest/reference/reference-mapping.htmlhttp://docs.doctrine-project.org/projects/doctrine-mongodb-odm/en/latest/reference/embedded-mapping.html#embed-manyhtt 阅读全文
摘要:
1. apache:sudo apt-get install apache2安装好输入网址测试所否成功: http://localhost2. mongo 已经安装好了版本:2.4.8refer to :http://docs.mongodb.org/manual/tutorial/install-... 阅读全文
摘要:
http://www.cnblogs.com/refactor/archive/2012/07/30/2591344.html数组很大多数情况下可以这样理解:每一个元素都是整个键的值.db.users.findOne({"userName":"wyx","emails":"bbb@qq.com"})能匹配到{userName: 'wyx',emails:['aaa@qq.com','bbb@qq.com','ccc@qq.com']}MongoDB高级 阅读全文
摘要:
http://blog.sina.com.cn/s/blog_6a53599101019qax.html多个Y轴的实现方法在于把yAxis设置成一个数组,里面的一个对象代表一条Y轴,利用opposite:true来表示是否跟默认位置相反,默认Y轴的位置在图形左边,series中通过对每个series设置yAxis来表示使用哪个Y轴,0表示第一个,以此类推。画图:$(function () { $('#container').highcharts({ xAxis: { categories: ['Jan', 'Feb', 'Mar' 阅读全文
摘要:
Bootstrap不支持IE的兼容模式。为了让IE浏览器运行最新的渲染模式,建议将此标签加入到你的页面中: 阅读全文