Håvard Pedersen

En blogg om vår digitale hverdag og andre pretensiøse temaer :)

Category: Utvikling

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 »

Hvordan Google News kan redde avisbransjen

I forbindelse med dagens debatt i Aftenposten kalt “stenger ute leserne” (funnet via IAllEnkelhet.no) som jeg anbefaler alle å lese, tar jeg opp noen argumenter om hvorfor f.eks Google News er den beste oppfinnelsen for internettmedier siden Apache! :-P Resten av denne artikkelen baserer seg på en intern utblåsning jeg hadde for et halvt år siden, men den er like aktuell i dag.

Read the full post »

Web 2.0 – hvor ble du av?

Det er nå over 3 år siden begrepet "Web 2.0" ble brukt for første gang. Og meningene både om hva dette var, og hvor det kom til å ende var mange.

Read the full post »

Hvorfor vi ikke hjelper deg

This is a norwegian translation of Why we won’t help you by Mark Pilgrim. Read the full post »

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?

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 »