摘要: 配置虚拟主机: 从默认的模板文件中复制过来一份进行自己的配置: 将证书上传到自己的服务器上可以访问到的位置, 然后再这个文件里面填写自己的证书路径 编辑好规则以后检查自己编辑的规则是否有误: 检查无误以后启用规则: 重启apache: 阅读全文
posted @ 2019-03-15 15:43 ComputerPlayerJs 阅读(1359) 评论(0) 推荐(1) 编辑
摘要: 1.安装PHP 添加php安装源: 更新软件仓库: 查看可以安装的版本: 安装php: 在ubuntu系统里面安装php会自动安装apache2! 2.查看apache已经启用的扩展: 3.开启apache扩展: 列子:开启apache rewrite扩展。 4.安装composer: 下载comp 阅读全文
posted @ 2019-03-13 11:17 ComputerPlayerJs 阅读(388) 评论(0) 推荐(0) 编辑
摘要: 1. 添加远程仓库地址 git remote add origin xxxxxxxxxxxx 2.初始化仓库 git init 3.创建分支 git checkout -b xxxxxx 4. 查看当前分支 git branch 5. 查看远程分支 git branch -a 6.合并分支 git 阅读全文
posted @ 2019-03-12 19:23 ComputerPlayerJs 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1.效应器 Point Effector 2D: 点效应器。进入区域,吸引或排斥物体 Area Effector 2D: 区域效应器,可以用来做马里奥的管道移动效果 Surface Effector 2D :表面效应器。实现传送带效果 PlatForm Effector 2D:平台效应器。实现2D游 阅读全文
posted @ 2019-03-11 17:07 ComputerPlayerJs 阅读(1252) 评论(0) 推荐(0) 编辑
摘要: 1. 获取绘图上下文 var mycanvas = document.getElementById('mycanvas'); var context = mycanvas.getContext('2d'); 2. 绘图函数 注:x = positionX y= position Y w = widt 阅读全文
posted @ 2019-03-11 09:42 ComputerPlayerJs 阅读(454) 评论(0) 推荐(0) 编辑
摘要: OpenGL环境搭建步骤: Downloading OpenGL 根据官网的说法: In all three major desktop platforms (Linux, macOS, and Windows), OpenGL more or less comes with the system. 阅读全文
posted @ 2019-03-08 22:19 ComputerPlayerJs 阅读(722) 评论(0) 推荐(0) 编辑
摘要: ModelAdmin 作用:对后台数据表的显示做自定义的设置(如果对django默认的显示模式感到满意则不需要定义modeladmin)。我对默认的显示模式永远不满意! 定义modeladmin: 注册model,让model与后台的显示相关联: ModelAdmin.list_display 控制 阅读全文
posted @ 2019-03-08 21:57 ComputerPlayerJs 阅读(676) 评论(0) 推荐(0) 编辑