Håvard Pedersen

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

Category: Webutvikling

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 »

Why Flash websites are a really, really bad idea

Just to state some basic facts…

  1. Flash doesn’t work _everywhere_, unlike normal HTML. My computer runs a 64-bit OS without 32bit emulation, and Adobe has yet to provide a Flash player for any 64-bit platform.
  2. Flash requires a proprietary plugin.
  3. Flash does not let users change font sizes or contrast settings using personalized stylesheets.
  4. A lot of screenreaders and other accessibility tools does not work with Flash (some screenreaders does using a Windows-specific API).
  5. Flash is not indexable by all search engines. Some does index text in Flash files, but since there is no way to link to the subpage your query was found in, people can’t be redirected to the result, making the result useless for users.
  6. If a browser doesn’t support Flash, you get nothing unless the entire website is also saved in a standard compliant (also know as HTML) way. If a browser doesn’t support CSS, you will still get a readable website.
  7. Flash doesn’t not present my usual OS widgets (textfields, submit buttons and such) or use my OS settings for these (larger fontsizes, higher contrast and such).
  8. Flash is owned by a commercial entity and even though the format specification is open, it is not licensed for free use.
  9. Flash sites breaks the back button, a fundamental function that users are used to.
  10. There is no way to bookmark a subpage of most Flash-only sites.
  11. Flash doesn’t work in most alternative browser devices, like PDAs or Smart phones.
  12. Printing content from a Flash site is extremely difficult and most of the time comes out weird on paper, if at all.
  13. Flash doesn’t provide a standard way of navigating without the mouse (tab navigation is possible by default).

Note: I’m not saying Flash should be banned from the net, I think there are numerous valid reasons to use Flash. But my opinion is that it should only be used for interactive multimedia which cannot be represented in HTML/CSS/JS in an easy way. Stuff like games, ads and (because of terrible object tag support in browsers) video playback. If you need to use Flash to have graphical menu buttons with mouseovers or display a logo in the header of your site you really should reconsider your profession. :)

Edit: Item 5 moderated, item 13 refuted.

Sidenote: Tadeusz Szewczyk at Fadtastic talks about the demise of Flash.

Edit: Item 4 moderated.

Why tables for layout is bad

Since I’m tired of Googling it up every time I need the link, I thought I’d just post it here. Seybold tells you why tables for layout is stupid.