Archive for June, 2008
Thursday, June 26th, 2008
As a big fan of apt, I was happy to see this post by Dag Wieers on Using apt in an RPM world. Excellent stuff. Should setup some trial machine somewhere to check it out. O no, I was going to install Spacewalk to do all the sysadmin stuff. Hmm, ...
Posted in BrnDmp | No Comments »
Thursday, June 26th, 2008
We learn everyday. Just found out that there's a function in PHP to set the maximum execution time of script: set_time_limit(int $seconds).According to the docs: The default limit is 30 seconds or, if it exists, the max_execution_time value defined in the php.ini
Posted in BrnDmp | No Comments »
Thursday, June 26th, 2008
The eagle has landed. RedHat released their Satellite product to the upstream open source community under the name Spacewalk. I think Spacewalk can be a great addition to our companies infrastructure. I will include it in my structure improvement proposal. If using Spacewalk, nice things become possible like kickstart, software ...
Posted in BrnDmp | No Comments »
Wednesday, June 25th, 2008
while creating custom style for client, he requested Course title to be displayed: replaced the following in course/format/format.php:
print_heading_block(get_string('topicoutline'), 'outline');
to:
print_heading_block($course->fullname, 'outline');
pretty cool. point is to make a new course format so original code does not get messed up.
Posted in BrnDmp | No Comments »
Tuesday, June 24th, 2008
in the Moodle database you can check which role is assigned to which user in which context in the PREFIX_role_assignments table. Therefor you need the contextid
Posted in BrnDmp | No Comments »
Tuesday, June 24th, 2008
Hmm, digging my harddisk I found a pdf about PHP performance optimizing. Also lots of interesting stuff about tuning Apache and the filesystem.
Note to self: it's in the IT/Dev/php/ folder called phpPerformance.pdf
Posted in BrnDmp | No Comments »
Tuesday, June 24th, 2008
Tools for automated XSS and SQL injection vulnerability analysis:
wapiti
spikeproxy
Posted in BrnDmp | No Comments »
Monday, June 23rd, 2008
Client requested custom quiz report to include categories. I think that shouldn't be too hard as the category is in the same question category.
Maybe I should extent the report/analysis class to include categories. mod/quiz/report/analysis/report.php which is an extension of report/default.php.
More later.
Posted in BrnDmp | No Comments »
Friday, June 20th, 2008
a search and replace in a file where only items right of a seperator should be replaced:
awk '{FS = "=";OFS = "=";gsub("course", "module", $2); print}' moodle.php > moodle.php.new
Posted in BrnDmp | No Comments »
Friday, June 20th, 2008
Just thought of some nice side feature of our custom scorm report for Moodle. If there is a new release of a SCORM module or test, just add a new SCORM activity and hide the old one. The report will automatically pick up the new SCORM as not being scored ...
Posted in BrnDmp | No Comments »