Archive for the ‘BrnDmp’ Category
Monday, January 19th, 2009
Since we have team blog now, it's no use posting some stuff I used to post here. So, why not change the style of this blog then?
Great idea Arjen!
Thanks.
From now on I will use this blog to reflect on my work as an open source consultant. Expect everything from business ...
Posted in BrnDmp | No Comments »
Friday, November 14th, 2008
Hacked Moodle theme, instead of echoing $menu I now echo user_login_string(). Then the navigation is never shown and users are not able to access other topics 'via the backdoor'.
Posted in BrnDmp | No Comments »
Friday, November 14th, 2008
updated some reporting routines:
created sql scripts in /path/to/transfermood/clientreport so I can run:
[bash]
mysql -u moodleuser -p moodle_help > course_month.sql | sed -e "s/\t/:/g" > output.txt
[/bash]
to list and sort files to creation time:
[bash]
ll -Rt --time-style=long-iso | grep -v ^d | grep - | awk '{print $6 , $8}'
[/bash]
Posted in BrnDmp | No Comments »
Thursday, November 13th, 2008
screen
ctrl-a d : detach
screen -r: retach
Posted in BrnDmp | No Comments »
Wednesday, November 12th, 2008
Client opened ports 161 and 199 TCP and UDP for Nagios monitoring.
Installed snmpd and nrpe on server:
apt-get install snmpd
apt-get install nagios-nrpe-server
Configured snmpd config in /etc/snmp/snmp.conf:
Cannot get into server. Scan of server from nagios server showed no open ports. Checked firewall status at Ubuntu server with:
[bash]
ufw status
[/bash]
Posted in BrnDmp | No Comments »
Wednesday, November 12th, 2008
downloaded wsdl2php from sourceforge
pear install wsdl2php-0.2.1-pear.tgz
Posted in BrnDmp | No Comments »
Tuesday, November 11th, 2008
Continued from this post.
Client requested reports I already created once.
Updated geocoded_ip table in moodle database with php script (geocodeMoodle.php)
updated mdl_log table to hold country info (query takes a long time) -> couldn't finish yet
ran queries on database
edited results in Excel
Sent to client
Posted in BrnDmp | No Comments »
Tuesday, November 11th, 2008
Installed Moodle 2.0 dev version to start testing eportfolios.
okiedokie for everything, except Moodle 2.0 needs php 5.2.x and CentOS 5.x does not yet support PHP 5.2.x in it's repositories.
There is a method to get PHP 5.2.x. Just add a new repository and upgrade php from there. Didn't want to do ...
Posted in BrnDmp | No Comments »
Tuesday, November 11th, 2008
About licensing costs for MS EE servers:
OS: 40 Euro
OS EE: 140 Euro
SQL: 80 Euro
SQL EE: 700 Euro
Damn, that's a lot of money; I think we have about 100 - 150 licenses. I hope the boss does the math.
Posted in BrnDmp | No Comments »
Thursday, November 6th, 2008
Created custom script in <moodleroot>/local/cron.php which enrolls users in a course and puts users in groups in depending on custom user profile fields set in Moodle.
To enrol participants in a course, I use the role_assign function from accesslib.php:
role_assign($roleid, $userid, $groupid, $contextid, $timestart=0, $timeend=0, $hidden=0, $enrol='manual',$timemodified='')
In this case ideal function because ...
Posted in BrnDmp | No Comments »