Home | Blog Roll | Link Roll | Colophon/About


Archive for the ‘Code’ Category

CCS & Ajax Links for March 24th

Wednesday, March 26th, 2008
Technorati Tags: , , , , , , ,

Microsoft Misleads on Copyright Reform

Monday, February 4th, 2008

Via Michael Geist comes word that an fable in “Hill Times (a weekly newspaper for Ottawa’s “savvy political and government insider”) written by Michael Eisen (Microsoft Canada’s Chief Legal Officer) misleads in the service of the “Prentice Canadian DMCA” act it wants to get passed so as justify the digital locks (that don’t work) to wants sell.

2 years ago we went through the Sarmite Bulte CopyRight for Sale un-election and yet this continues. Thankfully, opposition grows

Technorati Tags:

My 2008 extisp.icio.us

Sunday, February 3rd, 2008

extisp.icio.us 2008


extisp.icio.us 2008

generated by based on my bookmarks, and added to the flickr pool

This is the 4th year I’ve done this.

The Real Reason for no Increased productivity behind Scripting Languages, reveled.

Thursday, January 31st, 2008

In a lazyweb “fools seldom differ” moment, my post The Real Reason for Increased productivity behind Scripting Languages (commenting on a XKCD comic) has been riffed on by Bart of “Moves on Rails” : The new programmers excuse for slacking of:

compiling_new_style.png.

(no, I’m not doings a “Zed”, now please excuse us while we hide from the //mobs…. ;)

Weird Wonderful Web Links for January 27th

Sunday, January 27th, 2008

This is what is Weird Wonderful Web for January 26th through January 27th:

Rules For Startups & Evaluating a New Idea

Monday, December 17th, 2007

First up we have TechCunch’s Loic Le Meur’s Ten Rules For Startup Success (which I had written up but not posted) which had a number of points (10 actually) :

● 1 Don’t wait for a revolutionary idea.● 2 Share your idea. ● 3 Build a community.● 4 Listen to your community.● 5 Gather a great team.● 6 Be the first to recognize a problem.● 7 Don’t spend time on market research.● 8 Don’t obsess over spreadsheet business plans. ● 9 Don’t plan a big marketing effort.● 10 Focus on your users.

I would lump 2, 3, 4, and 6 under one item aka the ClueTrain Manifesto “Markets are conversations” rule. i.e. talk and listen. Items 1, 7, 8 and 9 are really all the same thing : make it good / different enough ; make your mistakes early (and cheap) ; adjust according to what works; Item 10 is gold.

Loic’s new startup is Seesmic (closed Beta) and there Community is a Loic TV, and his own blog.

So, now we have Loren Feldman ripping them a hole as only he can (via Tech Crunch), in his funny accent. Loren makes some valid comments in his usual funny and very colourful style.

Nobody said that all the “conversations” where going to be happy ones.


We also have “Will it fly? How to Evaluate a New Product Idea” from Evan Williams (of Blogger, Odeo and Twitter fame) making some very good points : Tractability; Obviousness ; Deepness; Wideness; Discoverability; Monetizability; Personally Compelling.Be prepare to address these points in your gut and figure how your going to resolve them. You need to scoring high, for at least a well defined niche, for >50% of these. (Otherwise, without a huge possible “Monetizabilty”, or even with, the opportunity is not -yet- ripe. Wait a cycle to re-evaluate.)

Evan’s “Personally Compelling” is a key point in that if your not obsessed (and or passionate about ) about the product area you are not going to hang in there the first time someone makes fun of you (see above, Loren), or do the hard work. Being “obsessed” can be a good substitute for more traditional “market research”. “Discoverability” can replace a big (expensive) marketing effort. Deepness & Wideness addresses the question “is this a product or a feature”. Tractability is about “how long do I live on Ramen” (or KD or pb&j sandwiches - pick your poison). Obviousness is about can your sell it in an elevator pitch to your target users?

It is also worth re-reading Tim Bray’s Message From the Web (Centralization is a bug; Good-enough today beats complete next year; Getting started should be free. Convince the developers. Management will go along. Try to lock them in and they’ll walk away ·Some popular tools will be Open Source ·To make money, give things away (”Monetization at the point of value.”), and the reaction, in light of the above.

So use Evan’s taste test, Listen to the web’s Message, and get that Startup out and ruling (and then show it at DemoCamp!).

Links for December 5th

Thursday, December 6th, 2007
  • 9 CSS Ethics Every Designer Should Have - Writing a CSS Stylesheet That is Easy to Maintain is really easy, just by following these 9 “ethics”: Indent descendant ;Grouping and commenting;Break into sheets; Reset;color scheme refrence; Keep a library of helpful CSS classes.    just do it.
  • - css

SnTT: Notes Document Structured Text Export for Multilingual (UTF-8)

Thursday, November 15th, 2007

This Lotus Notes Domino “Show and Tell Thursday” was promoted by Paul Harrison’s new blog and his sntt post on (Welcome Paul, and thank you!) My current nightmare involves a lot of Multilingual madness. Within Notes/Domino is not a big deal (it’s all auto-magical) , but getting it in and out can be tough.

So a couple of observations to Paul’s posting (if only to remind my future self) :

  • Under (for R7) “File”, “Preferences”, User Preferences” , there is a Tab for “International” and a setting for “”Import/Export characters.” I’m using “Unicode ()”.
  • Microsoft Excel (2000) CSV imports and “Save as..” does not handle UTF-8, although there is a “Save as..” “Unicode Text”. (there maybe a option to respect UTF-8 in there, and it maybe handled by Excel 2003 or Excel 2007, but that’s what I have!)
  • Open Office’s (2.3) Calc asks me what Character set to Import the csv file with. Calc also asks me the character set to use in the creation of CSV files.

It’s also worth highlighting Kevin Pettitt’s recent post : and the (new to me, and free) tool from AGE Computer Consultancy. Very nicely done.

The code in my previously written post can easily be modified to (in particular the “Open” statement for the CSV export) to allow for a “UTF-8″ character set.

Update :  For importing text into Notes, what I’ve found works best for me is: “save as” CVS from Open Office Calc, and make sure your saving as UTF-8, no double quotes (”) for the text delimiter, and a ~ rather than a coma (,) for field delimiter (because the text can content coma’s); create a .COL file; Import in the Notes Client as Tabular Text (rename the .csv file to a .txt file).

Links for Tech and the Culture of Tech for late October

Wednesday, October 24th, 2007

JavaScript for a single element radio button list

Tuesday, October 16th, 2007

The Problem here is if your list of data generated radio button html yields only one value. All the standard solutions / samples that a google yields assume the there are 2 or more choices.

This is not unreasonable for radio buttons, but if your list of choices is not hand built then you may not have control over that.

Code is not reasonable and neither is Life.

And in that unreasonable use case those solutions fail, because if you have one one element in the radio button list then “f.choiceview.length = undefined” (assuming the html input tag name=”choiceview” ). Then the real fun begins…

How to fix this? The solution is simple if not obvious : the single element becomes a ordinary input tag type of element and you use the .checked and .value methods, as below….


function getSelected () {
var Selected = "";
var f = document.forms[0];
if(f.choiceview.checked) { // one element to fetch
Selected = f.view.value;
}
else {
for (var i = 0; i < f.choiceview.length; i ++) { //loop thur array
if (f.view[i].checked) { // test to see if checked
Selected = f.view[i].value;
}
}
}
if (Selected == "") {
alert("Nothing selected");
}
else {
alert(Selected + ' Selected'); // report back
}
}

Where would you use this? Mostly for form validation, or to grab user choices to drive other processing.

The same issue and solution applies to html CheckBox elements.


Close
  • Social Web
  • E-mail
E-mail It