moodle

课设记录-Day07

◇◆丶佛笑我妖孽 提交于 2019-11-28 13:39:55
今日工作: 今天主要任务是将Moodle从3.2升级到3.6.5+稳定版。 早上先是在宿舍远程访问院办的服务器,但是发现网络连接的一些问题,没法正常下载更新。 下午到院办来操作,找了一些官网的升级教程(PS.其实和重装没什么区别,就是覆盖安装后导入数据)。 升级完成后发现进入Moodle是空白页,找了解决方法,但是解决空白页后又出现PHP无法解析的问题,提示说是需要PHP7.1而本机是7.0。 在将PHP升级到7.1后,还是无法解析,反而问题跟严重了,后来发现可能是因为PHP7.1暂时未兼容Apache2导致的。 总之后来又重新安装了整个Moodle,这里有一个关键点,要先安装好iconv扩展,再装PHP7.0(Apache2兼容)。 最后遇到一个MySQLi的无法连接问题,一顿搜索后总算是解决了。 下午还和老师和其他助教商讨了评分的问题。 明日计划: 由于今天又临时加入其他计划,所以前天的计划没有完成,队友的室内室外连接以及完成,再不抓紧要拖进度了。 熟悉express框架的使用,以及和mongoDB的连接。 解决室内停车地图数据无法读取显示的bug。 每日小结: 今天完成了一个看似很简单的任务,但是竟然花了五六个小时,真是不可小觑。 现在对服务器怎么来怎么去的算是彻彻底底了解透彻了。 来源: https://www.cnblogs.com/lil-Xing/p/11409286

每日总结-Day7

与世无争的帅哥 提交于 2019-11-28 13:38:57
今日工作 1.升级moodle到3.6.5 首先进入官网,查看升级的相关教程; 教程中主要有两种方案,手动和自动,我们选择其中一种方式进行。 然后重启服务器,moodle竟“骗”我们安装php7.1,我们照做后却回到了当初乱码的情况... 无奈之下反复多次安装php不同版本,同时安装了相关的包。 最后得以完成。 再次特别感谢网络上某一篇博文,为我们提供了全面而详实php packet安装列表,没有它我们可能此时还没解决所有问题 明日工作 和两个队友一起,把项目里的服务器这块内容拿下。 好好看看express 把室内部分修改完成 今日总结 这几天操作Ubuntu实在太心累,总是遇到各种问题,正所谓一bug未平一bug又起~ Linux学习任重道远! 学会巧妙搜索问题很重要 有时用英文搜索也有奇效(如Stack Overflow) 来源: https://www.cnblogs.com/guofoo/p/11409272.html

Using MOODLE create users and enroll them in courses via SQL

做~自己de王妃 提交于 2019-11-28 08:50:56
I need to create an extern application that creates, modifies and enroll users of Moodle. I've been reading moodle documentation but its more for front administrators that for developers. How can I do to create a user? which tables hold obligatory information about them? and how do I enroll existing users to moodle? Aschab As answered here creating moodle users and register them on courses programatically by me =3. This works completely extern to moodle. $servername = 'localhost'; $username = 'username'; $password = 'password'; $dbname = 'moodle'; $u_moodle = 'theusernameyouwant'; $hp_moodle =

每日总结-Day1

限于喜欢 提交于 2019-11-27 21:59:05
小组名称 烤冷面加里脊 小组成员 李国富 李振星 杨珩诣 项目名称 智能交通综合平台 今日工作 从院办搬了一台服务器回宿舍,由于之前安装的Ubuntu18.04在安装gitlab-ce时不被清华镜像支持,所以重新安装了Ubuntu16.04,并进行了配置。 在其基础上完成了GitLab的本地部署、Moodle的本地配置。 同时注册墨刀用于原型设计。 明日计划 由于端口占用的问题,今天没有完全完成moodle的配置,明天将这块内容解决。 构建GitLab服务器实现外网访问、明确需求开始推进项目、构建自己的服务器并将内容迁移 每日小结 初次接触Ubuntu,对其使用还比较生疏,对比较简单的操作也常需要百度,这块部分需要进一步学习。 安装Ubuntu时没有考虑到GitLab的匹配版本,导致需要重新安装Ubuntu,也因此做了很多无用功。 因为gitlab先装,再装moodle时,在配置的时候发现localhost端口已经被GitLab占用,无法正常在浏 览器中访问。 来源: https://www.cnblogs.com/guofoo/p/11379489.html

课设记录-Day01

时光怂恿深爱的人放手 提交于 2019-11-27 21:54:45
小组名称:烤冷面加里脊 小组成员:李振星 李国富 杨珩诣 项目名称:智能交通综合平台 今日工作:Ubuntu16的安装与配置、GitLab的本地部署、Moodle的本地配置、注册墨刀用于原型设计 明日计划:构建GitLab服务器实现外网访问、完善Moodle的安装配置、明确需求开始推进项目、构建自己的服务器并将内容迁移 每日小结:对于Ubuntu的使用还很生疏,特别是其中的Vim的操作,需要进一步学习。      安装Ubuntu时没有考虑到GitLab的匹配版本,导致需要重新安装Ubuntu,也因此做了很多无用功。      在配置Moodle的时候发现主机IP地址已经被GitLab占用,无法正常在浏览器中访问,这个问题有待明天解决。       来源: https://www.cnblogs.com/lil-Xing/p/11379347.html

Sending data through post method to an iframe

╄→尐↘猪︶ㄣ 提交于 2019-11-27 16:33:15
问题 I have an iframe which is pointing to a moodle site. I need to pass to it my username and password, so that when the iframe is loaded, I am automatically logged in on moodle. So I have something like this: <div id="iframe" style="width:787px; height:700px;"> <iframe id="iframeCon" src ="http://www.somesite.net/moodle/login/index.php" width="100%" height="100%" frameborder="0"> </iframe> </div> My question is how to send my username and password using POST method to this URL? 回答1: To POST to

intl extension php_intl.dll with wamp

孤者浪人 提交于 2019-11-27 01:37:38
I want to use Moodle, but I get an error during the installation process: php_extension->intl->should be installed and enabled for best results. Intl extension is used to improve internationalization support, such as locale aware sorting. When I click on the link, I get the error message above: http://docs.moodle.org/24/en/admin/environment/php_extension/intl I followed that link, but I still get the same error. If anyone has any ideas, please help me out. Athlan I had the same problem a few days ago. You have to copy all the files (all files starts with icu* ): icudt.dll icudt46.dll icuin.dll

Using MOODLE create users and enroll them in courses via SQL

空扰寡人 提交于 2019-11-26 23:05:53
问题 I need to create an extern application that creates, modifies and enroll users of Moodle. I've been reading moodle documentation but its more for front administrators that for developers. How can I do to create a user? which tables hold obligatory information about them? and how do I enroll existing users to moodle? 回答1: As answered here creating moodle users and register them on courses programatically by me =3. This works completely extern to moodle. $servername = 'localhost'; $username =

用python爬虫爬取moodle全部课件并下载到本地

一笑奈何 提交于 2019-11-26 10:29:33
用python爬虫爬取moodle课件 用python爬虫爬取moodle课件 1 介绍 2 code 引入模块 登录moodle 正则表达式提取 a 科目的提取 b 文件夹的提取 c 文件的提取 下载 其他 3 最后 1) 介绍 moodle(Modular Object-Oriented Dynamic Learning Environment) 是一个开源的课程管理系统, 笔者作为一名香港中文大学(深圳)的学生, 教授们会把课件以及作业等都发布在 moodle 上, 因此学生需要时常登录 moodle 下载课件以及完成作业. 本篇文章将简短地介绍使用 python 爬取 moodle 上的全部课件并下载到本地, 分类保存, 省去学生登录, 选择, 下载的时间, 也能更方便的在本地管理. 2) code 1. 引入模块 本篇文章将使用 requests 模块来进行爬虫的实现, 正则表达式模块 re 以及对本地文件进行操作 os import requests import re import os 2. 登录moodle requests.Session 能够跨请求地保持某些参数,自动帮助我们处理cookies,很方便的就能够处理登录问题. moodle没有设置反爬机制, 因此无需设置代理ip以及浏览器头部信息, 这给我们省去了不少麻烦. session = requests

intl extension php_intl.dll with wamp

荒凉一梦 提交于 2019-11-26 09:45:47
问题 I want to use Moodle, but I get an error during the installation process: php_extension->intl->should be installed and enabled for best results. Intl extension is used to improve internationalization support, such as locale aware sorting. When I click on the link, I get the error message above: http://docs.moodle.org/24/en/admin/environment/php_extension/intl I followed that link, but I still get the same error. If anyone has any ideas, please help me out. 回答1: I had the same problem a few