博客园 - cnshen
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=166617
2021-11-08T09:23:26Z
cnshen
https://www.cnblogs.com/cnshen/
feed.cnblogs.com
https://www.cnblogs.com/cnshen/p/15525153.html
nodejs 环境配置 - cnshen
1.下载安装nodejs,https://nodejs.org/zh-cn/ 安装长期维护版, 安装node模块调用 npm install 2.安装开发版环境 npm install -g node-dev 3.安装淘宝npm镜像 npm install -g cnpm --registry=ht
2021-11-08T09:23:00Z
2021-11-08T09:23:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】1.下载安装nodejs,https://nodejs.org/zh-cn/ 安装长期维护版, 安装node模块调用 npm install 2.安装开发版环境 npm install -g node-dev 3.安装淘宝npm镜像 npm install -g cnpm --registry=ht <a href="https://www.cnblogs.com/cnshen/p/15525153.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/10774558.html
Ubuntu 18.04上搭建FTP服务器 - cnshen
1、准备工作需要安装并运行的Ubuntu Server 18.04系统。当然还需要一个具有sudo权限的账号。 2、安装VSFTPVSFTP程序位于标准存储库中,因此可以使用单个命令删除安装。打开终端窗口并使用以下命令: sudo apt-get install vsftpd 使用以下命令启动并启用
2019-04-26T07:33:00Z
2019-04-26T07:33:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】1、准备工作需要安装并运行的Ubuntu Server 18.04系统。当然还需要一个具有sudo权限的账号。 2、安装VSFTPVSFTP程序位于标准存储库中,因此可以使用单个命令删除安装。打开终端窗口并使用以下命令: sudo apt-get install vsftpd 使用以下命令启动并启用 <a href="https://www.cnblogs.com/cnshen/p/10774558.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/10773771.html
修改linux系统用户、PostgreSQL用户的密码 - cnshen
1. 修改linux系统postgres用户的密码 PostgreSQL会创建一个默认的linux用户postgres,修改该用户密码的方法如下: 步骤一:删除用户postgres的密码 sudo passwd -d postgre 步骤二:设置用户postgres的密码 sudo -u postg
2019-04-26T05:22:00Z
2019-04-26T05:22:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】1. 修改linux系统postgres用户的密码 PostgreSQL会创建一个默认的linux用户postgres,修改该用户密码的方法如下: 步骤一:删除用户postgres的密码 sudo passwd -d postgre 步骤二:设置用户postgres的密码 sudo -u postg <a href="https://www.cnblogs.com/cnshen/p/10773771.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/10773730.html
Ubuntu 18.04 安装 odoo12 源码版 - cnshen
更新和升级 在我们进入安装过程之前,你应该更新和升级Ubuntu。打开终端窗口,发出以下命令: sudo apt-get updatesudo apt-get upgrade 注意:如果内核升级,则必须重新启动服务器。 因此,请确保在重新启动可接受时运行update / upgrade命令。 依赖安
2019-04-26T05:11:00Z
2019-04-26T05:11:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】更新和升级 在我们进入安装过程之前,你应该更新和升级Ubuntu。打开终端窗口,发出以下命令: sudo apt-get updatesudo apt-get upgrade 注意:如果内核升级,则必须重新启动服务器。 因此,请确保在重新启动可接受时运行update / upgrade命令。 依赖安 <a href="https://www.cnblogs.com/cnshen/p/10773730.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/9837576.html
IONIC 打包安卓apk详细过程 - cnshen
参照以下链接: https://blog.csdn.net/qq_20264891/article/details/79319408 当 cordova 项目安装的 android 平台版本 与 系统安装的 Android SDK 版本不一致时,打包失败!!! 解决方案: 增加显示、删除、添加 an
2018-10-23T08:45:00Z
2018-10-23T08:45:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】参照以下链接: https://blog.csdn.net/qq_20264891/article/details/79319408 当 cordova 项目安装的 android 平台版本 与 系统安装的 Android SDK 版本不一致时,打包失败!!! 解决方案: 增加显示、删除、添加 an <a href="https://www.cnblogs.com/cnshen/p/9837576.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/6541550.html
linux(ubuntu-16.1) 下安装 odoo10 新版 - cnshen
1.虚拟机(VMware)中安装 ubuntu-16.1(网络适配器选择桥接模式)。 安装成功后,运行 ubuntu 提示 "CPU已被客户机操作系统禁用" 时,需要修改配置文件解决,问题解决地址 http://www.linuxdiyf.com/linux/26254.html 目前的解决方式:
2017-03-13T02:35:00Z
2017-03-13T02:35:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】1.虚拟机(VMware)中安装 ubuntu-16.1(网络适配器选择桥接模式)。 安装成功后,运行 ubuntu 提示 "CPU已被客户机操作系统禁用" 时,需要修改配置文件解决,问题解决地址 http://www.linuxdiyf.com/linux/26254.html 目前的解决方式: <a href="https://www.cnblogs.com/cnshen/p/6541550.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/6273299.html
nodejs 并发控制 - cnshen
1.用 eventproxy 实现控制并发: 2.使用 async.mapLimit 控制并发 3.async.queue 非常合适用来控制并发
2017-01-11T05:36:00Z
2017-01-11T05:36:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】1.用 eventproxy 实现控制并发: 2.使用 async.mapLimit 控制并发 3.async.queue 非常合适用来控制并发 <a href="https://www.cnblogs.com/cnshen/p/6273299.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/6272541.html
nodejs 常用模块 - cnshen
推荐的入门教程: 《七天学会NodeJS》 https://github.com/nqdeng/7-days-nodejs 《Node.js 包教不包会》 https://github.com/alsotang/node-lessons 常用内置模块: fs 提供对文件的操作。http://node
2017-01-11T02:10:00Z
2017-01-11T02:10:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】推荐的入门教程: 《七天学会NodeJS》 https://github.com/nqdeng/7-days-nodejs 《Node.js 包教不包会》 https://github.com/alsotang/node-lessons 常用内置模块: fs 提供对文件的操作。http://node <a href="https://www.cnblogs.com/cnshen/p/6272541.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/4128120.html
浅谈Cordova优缺点与环境部署(转载) - cnshen
浅谈Cordova优缺点与环境部署作者:苏华杰简介Cordova是一个用基于HTML、CSS和JavaScript的,用于创建跨平台移动应用程序的快速开发平台。它使开发者能够利用iPhone、Android、Palm、Symbian、WP7、Bada和Blackberry等智能手机的核心功能——包括...
2014-11-28T03:33:00Z
2014-11-28T03:33:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】浅谈Cordova优缺点与环境部署作者:苏华杰简介Cordova是一个用基于HTML、CSS和JavaScript的,用于创建跨平台移动应用程序的快速开发平台。它使开发者能够利用iPhone、Android、Palm、Symbian、WP7、Bada和Blackberry等智能手机的核心功能——包括... <a href="https://www.cnblogs.com/cnshen/p/4128120.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/3944434.html
jQuery 学习笔记(jQuery: The Return Flight) - cnshen
第一课.ajax:$.ajax(url[, settings])练习代码:$(document).ready(function() { $("#tour").on("click", "button", function() { $.ajax('/photos.html', { su...
2014-08-29T13:35:00Z
2014-08-29T13:35:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】第一课.ajax:$.ajax(url[, settings])练习代码:$(document).ready(function() { $("#tour").on("click", "button", function() { $.ajax('/photos.html', { su... <a href="https://www.cnblogs.com/cnshen/p/3944434.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/3940037.html
jQuery 学习笔记(TryjQuery) - cnshen
第一集.页面加载完成后执行 js 代码:$(document).ready(function(){ $("h1").text("Where to?");});第二集.jQuery选择器:$("h1") //使用标签获取网页元素$("#ID") //使用标签ID获取网页元素$(".ClassName...
2014-08-27T09:53:00Z
2014-08-27T09:53:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】第一集.页面加载完成后执行 js 代码:$(document).ready(function(){ $("h1").text("Where to?");});第二集.jQuery选择器:$("h1") //使用标签获取网页元素$("#ID") //使用标签ID获取网页元素$(".ClassName... <a href="https://www.cnblogs.com/cnshen/p/3940037.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/3727094.html
Django 配置访问静态文件 - cnshen
1.settings.py首先在 settings 文件中,引用 os 模块:import os定义根目录:BASE_DIR = os.path.dirname(os.path.dirname(__file__))启用静态文件模块:INSTALLED_APPS = ( 'django.cont...
2014-05-18T06:49:00Z
2014-05-18T06:49:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】1.settings.py首先在 settings 文件中,引用 os 模块:import os定义根目录:BASE_DIR = os.path.dirname(os.path.dirname(__file__))启用静态文件模块:INSTALLED_APPS = ( 'django.cont... <a href="https://www.cnblogs.com/cnshen/p/3727094.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/3722858.html
windows 下创建 sqlite 数据库 - cnshen
说明:windows 下执行创建 sqlite 数据库命令后数据库文件不会马上生成,需要创建表以后才会生成。1.将 sqlite3.exe 文件放在任何位置(如放在 d:\tools )2.在 CMD 下进入到 d:\tools 下3.在 CMD 命令提示符下输入 sqlite3 test.db (...
2014-05-13T00:30:00Z
2014-05-13T00:30:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】说明:windows 下执行创建 sqlite 数据库命令后数据库文件不会马上生成,需要创建表以后才会生成。1.将 sqlite3.exe 文件放在任何位置(如放在 d:\tools )2.在 CMD 下进入到 d:\tools 下3.在 CMD 命令提示符下输入 sqlite3 test.db (... <a href="https://www.cnblogs.com/cnshen/p/3722858.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/3701266.html
linux 下安装 mysql 并配置 python 开发环境 - cnshen
1.安装 mysql ,安装过程中将提示设置 root 用户的密码,默认可以设置为 rootadmin 。$ sudo apt-get install mysql-server2.安装 mysql 开发工具(不安装时,安装 MySQL-python 提示错误"mysql_config not fou...
2014-04-30T06:25:00Z
2014-04-30T06:25:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】1.安装 mysql ,安装过程中将提示设置 root 用户的密码,默认可以设置为 rootadmin 。$ sudo apt-get install mysql-server2.安装 mysql 开发工具(不安装时,安装 MySQL-python 提示错误"mysql_config not fou... <a href="https://www.cnblogs.com/cnshen/p/3701266.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/3223202.html
python 自动安装工具 setuptools(easy_install) 的使用 - cnshen
1.下载安装 python 安装工具,下载地址:http://pypi.python.org/pypi/setuptools ,可以找到正确的版本进行下载。2.解压缩后双击 ez_setup.py 进行安装,相关文件将自动安装至当前 python 版本的 scripts 目录下,如:C:\Python27\Scripts 。(或在 cmd 下执行 python ez_setup.py ,即可自动安装 setuptools )。3.安装 python 模块时,首先 cmd 进入 C:\Python27\Scripts 目录,执行安装命令,如安装 phonenumbers 模块时执行 "
2013-07-29T15:37:00Z
2013-07-29T15:37:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】1.下载安装 python 安装工具,下载地址:http://pypi.python.org/pypi/setuptools ,可以找到正确的版本进行下载。2.解压缩后双击 ez_setup.py 进行安装,相关文件将自动安装至当前 python 版本的 scripts 目录下,如:C:\Python27\Scripts 。(或在 cmd 下执行 python ez_setup.py ,即可自动安装 setuptools )。3.安装 python 模块时,首先 cmd 进入 C:\Python27\Scripts 目录,执行安装命令,如安装 phonenumbers 模块时执行 " <a href="https://www.cnblogs.com/cnshen/p/3223202.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/3205405.html
openerp学习笔记 错误、警告、提示、确认信息显示 - cnshen
1.检查业务逻辑中的错误,终止代码执行,显示错误或警告信息: raise osv.except_osv(_('Error!'), _('Error Message.'))示例代码: #删除当前销售单,需要验证销售单的状态 def unlink(self, cr, uid, ids, context=None): for rec in self.browse(cr, uid, ids, context=context): if rec.state not in ['draft']: raise osv.except_o...
2013-07-22T13:46:00Z
2013-07-22T13:46:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】1.检查业务逻辑中的错误,终止代码执行,显示错误或警告信息: raise osv.except_osv(_('Error!'), _('Error Message.'))示例代码: #删除当前销售单,需要验证销售单的状态 def unlink(self, cr, uid, ids, context=None): for rec in self.browse(cr, uid, ids, context=context): if rec.state not in ['draft']: raise osv.except_o... <a href="https://www.cnblogs.com/cnshen/p/3205405.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/3164741.html
openerp学习笔记 对象间关系【多对一(一对一)、一对多(主细结构)、多对多关系、自关联关系(树状结构)】 - cnshen
1.多对一(一对一)关系:采购单与供应商之间的关系 'partner_id':fields.many2one('res.partner', 'Supplier', required=True, states={'confirmed':[('readonly',True)], 'approved':[('readonly',True)],'done':[('readonly',True)]}, change_default=True, track_vis
2013-07-16T15:26:00Z
2013-07-16T15:26:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】1.多对一(一对一)关系:采购单与供应商之间的关系 'partner_id':fields.many2one('res.partner', 'Supplier', required=True, states={'confirmed':[('readonly',True)], 'approved':[('readonly',True)],'done':[('readonly',True)]}, change_default=True, track_vis <a href="https://www.cnblogs.com/cnshen/p/3164741.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/3158865.html
openerp学习笔记 webkit 打印 - cnshen
1.webkit 打印需要安装的支持模块 请首先安装 Webkit 报表引擎(report_webkit),再安装 Webkit 报表的支持库(report_webkit_lib),该模块讲自动安装和设置 wkhtml2pdf 的路径。 另外,安装 oecn_base_fonts 模块可解决打印中文
2013-07-16T14:24:00Z
2013-07-16T14:24:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】1.webkit 打印需要安装的支持模块 请首先安装 Webkit 报表引擎(report_webkit),再安装 Webkit 报表的支持库(report_webkit_lib),该模块讲自动安装和设置 wkhtml2pdf 的路径。 另外,安装 oecn_base_fonts 模块可解决打印中文 <a href="https://www.cnblogs.com/cnshen/p/3158865.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/3189816.html
openerp学习笔记 context 的应用 - cnshen
1.在Action中定义,context用于传递搜索条件和分组条件,在搜索视图中默认显示:示例代码: Leaves Summary hr.holidays form tree,form {'search_default_group_type': 1, 'search_default_validated': 1} [('holiday_type','=','employee')] View...
2013-07-14T11:58:00Z
2013-07-14T11:58:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】1.在Action中定义,context用于传递搜索条件和分组条件,在搜索视图中默认显示:示例代码: Leaves Summary hr.holidays form tree,form {'search_default_group_type': 1, 'search_default_validated': 1} [('holiday_type','=','employee')] View... <a href="https://www.cnblogs.com/cnshen/p/3189816.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/cnshen/p/3189306.html
openerp学习笔记 domain 的应用 - cnshen
1.在Action中定义,domain用于对象默认的搜索条件:示例: Sales Orders ir.actions.act_window sale.order form tree,form,calendar,graph {} [('state','not in',('draft','sent','cancel'))] C...
2013-07-14T04:43:00Z
2013-07-14T04:43:00Z
cnshen
https://www.cnblogs.com/cnshen/
【摘要】1.在Action中定义,domain用于对象默认的搜索条件:示例: Sales Orders ir.actions.act_window sale.order form tree,form,calendar,graph {} [('state','not in',('draft','sent','cancel'))] C... <a href="https://www.cnblogs.com/cnshen/p/3189306.html" target="_blank">阅读全文</a>