A gameserver ping plugin for Munin

My personal server has been acting up lately, to be precise; the Call of Duty (1) gameserver that runs on it. I installed Munin for monitoring it, but really wanted something that would show the actual slowdown the players experienced.

So I did a Munin plugin. In PHP ofcourse. ;) It’s my first Munin plugin, and I wouldn’t be surprised if it turns out to be the only one written in PHP. It’s available for download at Munin Exchange, and the code is here for those that just want a quick look.

Update 27.04.10: Updated the plugin to v1.1.

Read the full post »

Bash.org script

I wanted a script to show a random quote from bash.org in every new terminal session. PHP is my language of choice. :) Save as “bashquote” and chmod 755 (rwxr-xr-x) to use (make sure the regexp looks exactly as below in preg_match_all()). The script only works in a Unix/Linux environment.
Read the full post »

A small RSS filter written in PHP

Nearly all news sources has some posts I’m not interested in. I can’t believe no RSS readers has implemented good enough filters yet. But I anyway I wrote my own. :) I don’t think my server can handle too much usage, so I’m just giving you the code as is.
Read the full post »

Hvordan få sider som ser bra ut, overalt

Veldig ofte ser jeg at forumer oversvømmes av nettsideproblemer som jeg finner ut av i løpet av sekunder på ren automatikk. Det slo meg at noen bør ta til orde for litt hjelp til selvhjelp på dette området. Så her har jeg samlet mine triks for problemfrie websider.

Read the full post »

The 28-hour work day!

I can’t help it, a 6-day week consisting of 28-hour days sounds wonderful! :) The only downside is that I have a family, and this kind of regime won’t work inside that setting. :p XKCD also has a take on the concept.

Is anyone actually thinking at all over at Microsoft?

Thomas Baekdal shows how clicking on a link that says “Download silverlight” still takes you through 7 pages before giving you the actual file! I know Microsofts websites are bad from a usability perspective, but this is truly horrible. Isn’t anyone actually thinking things through in Redmond?

Mac OS X tips

A couple of things got me stumped when migrating to Mac, so I thought I’d just do a small post on them. :)

Read the full post »

The essential Mac OS X freeware list

It’s now official – I’m a Mac user. After flirting with Ubuntu Linux for a year, watching Knut Sætre (my coworker) use his MacBook Pro and reading all the switch stories around the net I decided time had come for a change. So far, I’m definitely not regretting anything. OS X seems to me like Plug ‘n Play the way it was supposed to work. Everything integrates out of the box, and I’ve so far never even SEEN the word “driver”. :D I’ve always meant that my “work computer” should work without fiddling and never need tweaking. This was the reason I waited so long to try Linux, and this is exactly the reason I love OS X.

As those who know me might know, I love researching stuff on the net. In addition to that, I’ve also got a personal policy of always using freeware when it does the job – my own way of avoiding pirated software. It also helps freeware authors get a nice user mass, so I can’t say I feel sorry for NOT buying commercial alternatives.

So one of the first things I did (actually before I received my black new-model MacBook with 2GB ram) was researching for apps I needed. And now, after actually testing them I figured I might publish my findings, so others could benefit from it as well. :) So here it is, my list of Mac OS X “must have” freewares:

Read the full post »

So I made this MVC-framework in 27 lines of code…

It started as a generic include-script for the redesign of my commercial homepage, Pedersen Mediaconsult and suddenly I got an epiphany. ;)

Introducing… The OneFileFramework, a complete (well, sort of) web framework in PHP that consists of ONE single file (index.php) consisting of 27 actual code lines. :D

The webpage I set up for it (and the demo) pretty much explains it all (form validation, MVC-orientation and so on). I haven’t set up any way of providing feedback for it yet, though. So I’d like comments to be posted to this blog entry.

I’d especially like to hear if anyone can find a way to fool OFF into security attacks using the $p parameter.

Free design work

I found this through No-spec.com, the original author is unknown and the original posting was on CraigsList.

To those who are looking for someone to do work for free… please wake up and join the real world

Every day, there are more and more CL posts seeking “artists” for everything from auto graphics to comic books to corporate logo designs. More people are finding themselves in need of some form of illustrative service.

Read the full post »