Hello World

Practical programming... and stuff...

Subscribe to RSS feed

Posts tagged with "web"

Localize your site in 3 easy steps

, ,

Internationalization and localization means making your site usable in more than one languages. Well, to be honest, you could call a site that's only in english localized to english visitors too, but in any case...

These two are also known as I18N and L10N. Can you guess where these acronyms come from? The first and last letter from each word and then the number of letters between... Someone's been feeling really creative wink

While PHP has an extension for GNU Gettext, which can be used for localization, it isn't the easiest thing to use. Additionally, PHP can also do number and money formatting based on the locale, but this depends on the server: You must have the locale installed on it. On Shared Hosting accounts, some locales may be unavailable and you may not be able to install them. Not to mention that gettext can be a bit of a hassle to get working.

So, rather than using PHP's native support, why not use Zend Framework's Zend_Locale and Zend_Translate?


Read the rest of the post at codeutopia.net

The mythical HTTP protocol

,

The HTTP protocol is what powers todays web. While not useful for most people, knowing how HTTP works is important for those who work with dynamic web sites.

Still, it seems that the protocol is mostly a mystery to a lot of developers and some features of the protocol, such as the accept-language header, aren't really used.


Read the rest of the post at codeutopia.net

Mozilla Prism: A fancy name for a technology as old as the browser

,

Mozilla recently introduced Prism, which takes Widgetize to a whole new level.

Opera's Widgetize will turn your blog or RSS feed into a widget with some custom skins and stuff.
What Prism does is, it takes any website and turns that into a self-contained little browser.

While having GMail or such as a "stand-alone" application might sound nice, doesn't this remind you of something? Browsing without tabs.

You don't need a stand-alone application for this either. You could just use Opera to achieve a very very similar experience.

Read more...

Simple and efficient spam prevention techniques

I've previously outlined some alternative methods for CAPTCHA/spambot prevention in Different kinds of CAPTCHA.

Josh Clark recently posted Seven Habits of Highly Effective Spambot Hunters which gives even more good methods for preventing spam.

But with spambots gaining more and more features, what can we do to effectively prevent them, while still keeping our methods usable by most people and easy to code for us?

Read more...

Lively Kernel - Another waste of time?

, , ,

Sun Labs recently introduced Lively Kernel, which is an attempt to treat web applications in a similar way as desktop applications are programming-wise.

The Lively Kernel places a special emphasis on treating web applications as real applications, as opposed to the document-oriented nature of most web applications today. In general, we want to put programming into web development, as opposed to the current weaving of HTML, XML and CSS documents that is also sometimes referred to as programming.

Says it the best. Despite sounding interesting, this may all be a big waste of time.

Read more...

Blocking ads on websites is bad behavior

A lot of people really dislike any ads on a website. This shows in browsers too: Opera added a content blocker and Firefox has AdBlock and probably at least two other plugins for getting rid of ads. Some people even use separate ad blocking proxy tools such as Proxomitron and IP address blocks for servers known as ad servers.

I think people who block ads are wrong.

Read more...

Preventing cross-site scripting attacks

,

Cross-site scripting attacks, also known as XSS attacks, are a type of vulnerability found in some web sites.

For example, if your blog comment box allows users to write JavaScript snippets that aren't escaped in any way by the server and are ran, it's most likely vulnerable to an XSS attack.

It's not just a problem with small, less known sites - Recently, even Google had an XSS vulnerability.


XSS attacks are, however, quite easy to prevent if you know how.

Read more...

About Flash and RIA's

, ,

I've been working with Flash lately, or more precisely, Flex 2. Flex is like Flash for programmers (more on that later in this post)

Not so long ago, I also tried Flash Lite, which is a lightweight version of Flash for mobile devices.

What started as a tool to create annoying animations and unusable interfaces has gone a long way, and is now a quite serious contender for creating content.

Read more...

Web bugs

Nope, it's not a bug in the internet, it's something else.

A web bug is something on a web page (or in HTML email or such) that performs some task when the user's browser loads it. They are usually invisible to the user, perhaps a transparent 1x1 image or an iframe.

Read more...

Website design for non-designers

,

Here's something related to web design for once in a while.

So I've probably spammed my new site, CodeUtopia a bit already, so I won't need to introduce it (as if there was something to tell about it at this point rolleyes )


Anyway, the design for the site had three different designs before I ended up liking one enough to start using it for real. There was also a slightly modified revision of design #2, but I ended up liking it the least of all revisions.

Let's see those and some useful pointers related to design.

Read more...