Archive for June, 2007

It’s Not a Bug, It’s a Feature… No, It Really Is. Microsoft vs. Linux

Make an HTML form with a text field and two submit buttons. Load Firefox and IE, bring the text field into view, and press the enter key.

When you have a form with one or more buttons, hitting enter under Firefox will POST the value of the 1st form button. On the other hand, with IE, unless a specific button was selected, no button values will POST.

At this point, I know a lot of people would start claiming that Microsoft is sloppy, IE is brain dead, Firefox is so much better, and more similar tripe… But think about it, how should the browser know which button is “first”? Should it be the 1st one in the HTML code? Should the “tabindex” value affect the situation? Could something be manipulating the button visibility or placement under CSS or JavaScript? Can the true human-interpreted layout even be determined by code?

And what about the question of whether the ‘enter’ key signifies “submit form”, or “submit form and the 1st button value”?

Windows has been deployed on hundreds of millions of systems, if not more. The user-base is very diverse: with different cultures, languages, and processes. If you want to cater to that user-base, you cannot make assumptions. IE is absolutely correct in not POSTing the value of an unselected form button on an ‘enter’ key press.

And this does not even touch on the fact that when you have 100s of millions of users, you also absolutely have to consider backward compatibility. Who knows how this used to work in the past, or what assumptions coders have made.

As is turns out, this really is a feature after all. And chances are, the rest of what the Linux fan-base complains about with Microsoft falls exactly along these lines. I’m all for GNU/Linux, just not mindless accusations and false claims.

submit.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
	"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>It's not a bug, it's a feature!</title>
</head>
<body>
<form action="submit.php" method="post" name="form" id="form">
 
<p><?php
if (isset($_POST['action'])) {
	if (isset($_POST['submit_1'])) echo $_POST['submit_1'] . '<br/>';
	if (isset($_POST['submit_2'])) echo $_POST['submit_2'] . '<br/>';
}
?></p>
 
<div>
	<input type="text" name="text" id="text" tabindex="1" value="" /><br/>
 
	<input type="submit" name="submit_1" id="submit_1" tabindex="2" value="Button 1 Clicked" />
	<input type="submit" name="submit_2" id="submit_2" tabindex="3" value="Button 2 Clicked" />
 
	<input type="hidden" name="action" value="submitted" />
</div>
</form>
</body>
</html>

Smartest Linux Move Ever? And Why Ubuntu will Fail

Linspire, Microsoft in Linux-related deal

Linspire Inc. has announced an agreement to license voice-enabled instant messaging, Windows Media 10 CODECs, and TrueType font technologies from Microsoft for its Linux distribution.

Shuttleworth Denies Ubuntu-Microsoft Deal

The head of Ubuntu says his company isn’t interested in forming a deal with Microsoft along the lines of those recently reached by Linspire, Xandros, and Novell.

I’ve always said that for Linux to have a chance on the desktop it must be turned into Windows. I know how that might sound to most, but that statement is completely true for one reason: people like what they know, familiarity is comfortable.

So what reason is there to switch away from Windows, something known and used, to Linux, a complete unknown?… Because it’s free and Microsoft is an evil monopoly!?… I think we have to do better than that. We have to give the people what they “want”, and not what we think they “need”, all while making the transition completely seamless.

The average desktop user just wants to power on, browse the internet, visit a few social sites, send email, do some IM, watch videos, and nothing more. And this task needs to function and look exactly like it does on Windows.

Yes, I know you can track down Codecs and TrueType fonts, and install them, but this is beyond what 95% of the desktop market is willing to do. It has to be already provided and look exactly like it does on Windows. If this task takes a single click, it’s already one click too many.

Every year since 2000 it was the year Linux was going to displace Windows. And every year it has failed miserably on the desktop. Linux is by the developer, for the developer. It works best server-side. The desktop/UI is horrible and always makes you do things differently, for no reason at all but “to be different.” And its type of “difference” is not the cool type, it’s downright scary.

Why learn from Microsoft’s mistakes and success, taking what works, when you can spend time and effort re-inventing the wheel. And until this gets fixed, Linux will alway turn away the desktop market.

Another huge problem I see is with providing the user with too many choices… You give someone multiple distributions, all with their own ways of doing things, with multiple applications that have the same function, with too many different options and ways of performing tasks, and the user becomes confused and disoriented. He begins to distrust the product. Time is waisted.

The majority of the desktop user-base want their hand held and told that everything is okay. And Linux slaps them right across the face. Very little is standardized or uniform. This type of “choice”, in this context, is not a strength, but rather a weakness.

While this move *is* the smartest move ever, it never the less is too little and too late — or to put it more correctly: completely and utterly pointless. Why you might ask? Because it’s not free, you pay $60 for Linspire. I can get Windows cheaper than that, even for free, and have no problems doing more with it as a Desktop.

Drupal, is it the Right CMS for You?

There are two CMS provided under the Web-Developer Server Suite: Drupal and Joomla. But which do you use? This is the question that has been asked on our forums since the inclusion of a CMS webapp group into the Suite.

My usual response goes along the lines of “Joomla is easier to use; Drupal is more powerful.”

While the above statement is completely true, it does no justice differentiating the provided choices in a real way. Especially if you require something a little more custom in nature.

How Drupal Will Save The World really drives it home. Though I’m not referring to the article itself, but rather the comment section.

Simply put: Drupal is more powerful, but the learning curve is quite steep considering that good documentation is almost non-existent. I’m sure in the future this will be corrected, but for the time being, you better know your PHP and have a good head on your shoulders if you want to get into the more advanced capabilities of this CMS.

For anyone starting out with Drupal I recommend getting a copy of Pro Drupal Development as the first step.

And for anyone that just wants something simple, consider CMS Made Simple.

HowTo: Change VMWare Player Guest OS Display Resolution

Here is one useful bit for anyone running, or thinking of running, a local test/development environment under VMWare Player version 2.0 with a guest OS Linux install.

I’ll assume you have installed VMWare Player and a VMWare Appliance similar to CentOS v5. After which, by default, the resolution will be limited to modes “800×600″ and “640×480″.

Here is how you fix that problem…

Step 1: Install X and GNOME, if not already present.
yum groupinstall "X Window System" "GNOME Desktop Environment"
[Note: to install KDE, substitute the “GNOME…” string with “KDE (K Desktop Environment)”]

Step 2: Edit /etc/X11/xorg.conf

You should already have…

Section "Device"
Identifier "Videocard0"
Driver "vmware"
EndSection

Add the following “monitor” section…

Section "Monitor"
Identifier "Monitor0"
HorizSync 1.0 - 10000.0
VertRefresh 1.0 - 10000.0
EndSection

Modify the existing “Screen” section…
Note to replace the following “1600×1200″ string with the highest resolution your monitor can handle.

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1600x1200" "800x600" "640x480"
EndSubSection
EndSection

Step 3: Start X
startx

Confessions of an Economic Hit Man

Another off-topic post, but a worthy one… Stories of greed and international corruption.

Confessions of an Economic Hit Man

A Game as Old as Empire: The Secret World of Economic Hit Men and the Web of Global Corruption




Close
E-mail It