This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: "leancloud项目部署文档" | |
date: 2015-07-06 11:02:07 | |
tags:leancloud | |
--- | |
#[leancloud自带文档](https://leancloud.cn/docs/leanengine_guide-python.html) | |
# 运行环境 | |
* [nodejs](http://nodejs.org/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: pomelo启用第三方rpc库---pomelo-rpc-ws | |
--- | |
> 使用pomelo本身自带的rpc库,进行rpc通讯,发现连续多个rpc请求之后,会有一个延时相当严重得请求出现,没有找到相关的解决办法,最后使用`pomelo-rpc-ws`第三方rpc库解决了这个问题 | |
# 运行环境 | |
* [nodejs](http://nodejs.org/) | |
* Linux 或 MacOS 操作系统 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title:项目结构 | |
--- | |
##项目结构 | |
###common文件夹 | |
> 项目常用的工具类,常量 | |
###configs文件夹 | |
> 项目配置文件夹:config.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title:在谷歌插件中使用nodejs模块 | |
---- | |
## 相关 | |
这次要介绍如何在谷歌插件中使用nodejs模块,演示的项目是 **一个后台定时提醒的插件** | |
## 运行环境 | |
* [nodejs](http://nodejs.org/) | |
* Windows、Linux 或 MacOS 操作系统 | |
* chrome浏览器 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 id="js异步流程控制">js异步流程控制</h1> | |
<h2 id="为什么会有异步流程控制">为什么会有异步流程控制</h2> | |
<h3 id="1使用callback">1.使用callback</h3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#js异步流程控制 | |
##为什么会有异步流程控制 | |
###1.使用callback | |
错误处理:传统的try/catch形式无法捕获到callback中的错误 | |
回调地狱:使用callback会造成回调地狱. | |
``` | |
doAsync1(function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#目的: 优化leancloud的api使用次数,使用redis进行缓存 | |
# 优化方案一: | |
对整个系统进行redis缓存,所有的数据操作都是直接操作redis数据 | |
优点:redis数据可视 | |
缺点:对当前代码改动太大(所有基础类操作都改成对redis的操作),数据管理难度较大,优化时间长 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: 如何在Windows下开发,Linux下运行程序 | |
date: 2015-12-31 16:07:43 | |
categories: [Windows, Linux] | |
tags: [Windows, Linux] | |
--- | |
``` | |
As we know, 服务端程序一般都是运行在Linux系统中,而Linux下的一些日常软件,却没办法做到像Windows下那样的精美,so,问题来了:有没有办法做到在Windows上进行代码的编写,而运行是在linux下呢??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#staticTool(静态文件生成工具) | |
基本功能:上传xls的zip压缩文件,通过xls文件与数据库表的映射关系,写入数据库数据,并生成相关的服务端静态文件,客户端静态文件 | |
# 运行环境 | |
python 2.7 | |
mysql | |
# 部署服务端 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: 小技巧系列--不修改mysql限制,连接远程内网数据库 | |
date: 2016-01-05 11:17:43 | |
categories: [mysql, ssh] | |
tags: [mysql, ssh] | |
--- | |
# 不修改mysql限制,连接远程内网数据库 |