Gl.ib.ly

(glibly); Just another techie blog.

Gantt charts in Microsoft Excel

Posted by Tariq • Tuesday, December 16. 2008 • Category: Computers, Rants
As mentioned in other articles I sometimes like to output data in CSV format and redirect to a file and then open that file with my favourite spread sheet application to create pretty charts instead of using awk to create command line graphs or gnuplot. However I recently found out that Microsoft Excel doesn't do Gantt charts by default, so what follows is an explanation of what I was trying to do and how I simulated a Gantt chart in Excel.

Continue reading "Gantt charts in Microsoft Excel"

Defined tags for this entry: , , , , , , ,

All configuration variables in Moodle code?

Posted by Tariq • Monday, December 15. 2008 • Category: Moodle, One liners
Sometimes Moodle introduces some nice new configuration variables and I like to make sure that I know what they are and where they are. So to begin my investigation without heading off to the web I use the following command to get me a sorted list of the $CFG variables.

Continue reading "All configuration variables in Moodle code?"

Defined tags for this entry: , , , , , , ,

Adding a malicious system call to the Linux kernel

Posted by Tariq • Thursday, December 11. 2008 • Category: Security
Today I am adding a malicious system call to the Linux kernel which will allow the caller to do something they cannot normally do in user mode. When attacking a Linux box our goal is usually to become root; as root we can do anything we like, so the system call I will add to the Linux kernel gives the caller real and effective user ids of zero.

There are relatively few tutorials out there on how to do this, unfortunately there a little differences between versions of Linux that can easily stump beginners, so this tutorial tries to give you an environment which you can easily replicate using a virtual machine and go through the tutorial.

Continue reading "Adding a malicious system call to the Linux kernel"

Creating an HTML file with white space traces

Posted by Tariq • Tuesday, December 9. 2008 • Category: One liners
Once upon a time I was comparing some Java files. Now one way to find plagiarism among students who share program code is to look at the white space traces in a file. Students typically try and edit the source code: changing variable names and function names; however, they usually fail to conceal the original author's white space patterns. White space consists of characters which don't appear on screen such as spaces, tabs, and new line characters. Anyway you can catch lots of cheaters by looking at the white space patterns in files ... maybe that's another blog entry, so back to this one.


Continue reading "Creating an HTML file with white space traces"

Defined tags for this entry: , , , ,

Skype: And the crappy browser addon

Posted by Tariq • Wednesday, December 3. 2008 • Category: Rants
I generally hate to update things which work just fine. There is usually very little reason to: the application is in use because the stability and feature set of the current version are good. Now I have used Skype for years (probably only using 20% of the available feature set) and I always loathed upgrading because it'll try and install a bunch of stuff I don't need. Which is bad, but installing utter crap now that's just not on. Take a look at what Skype's FireFox addon does to my links below.

Continue reading "Skype: And the crappy browser addon"

Defined tags for this entry: , , , , ,

Getting logins per day in Moodle

Posted by Tariq • Tuesday, December 2. 2008 • Category: Moodle, One liners
Today I got the urge to see how many logins we had on some of our Apache servers in November. We host more than one moodle site on one server and so I wanted the total number of logins we handled. As usual this ended up becoming an awkward but useful one liner.

Continue reading "Getting logins per day in Moodle"

Defined tags for this entry: , , , , , , ,

What to expect

Posted by Tariq • Monday, December 1. 2008 • Category: Tidbits
Hello and welcome to my blog. I'll post on about pretty much everything, but mainly you can expect a raft of posts about Moodle, MySQL. Postgres, Debian, SLES 10 (probably rants), high performance stuff and a peppering of security related goodness. If you've just stumbled across this blog come back soon and I might have something worthwhile for you to read.
Defined tags for this entry: , , ,