Sunday 29 March 2009

I got a new toy this weekend and this is the first output

I got a new toy this weekend. It was meant to be for my Birthday which is next week but Amazon were a bit too good at delivering to Ballygobackwards ;-).

The Gadget in question is a new Wacom Bamboo MTE450KEN Pen Tablet and of course it had to be de-boxed and tested ... just in case it was faulty and had to go back. I am relatively new to using pen/tablets as user input devices. Some of my chums who are way more into digital graphics than i am swear by Wacom products, having said that they use the WAY more expensive ones. This particular one is only £60.00 BUT from my point of view so far (3 days) it is really eye opening what you can do with it.

So this is my first finished thing I have done with it.. using GIMP 2 ...

Preparing for UKLUG in Edinburgh #2 - Don't use the Scottish version of Vista!

It has come to my attention that several people when they heard UKLUG is happening in Edinburgh may have downloaded the Microsoft Vista Haggis Fix and Language pack to immerse themselves in the "Scottish Geek Experience" prior to journeying to the Scottish capital in October. This was very far sighted of you, but may have come as a bit of a shock.

If you did download this you may need some help understanding the commands. The Scotland edition may be recognized by looking at the opening screen. It reads "WINDAES VISTA, Ye Ken!" It has a background picture of William Wallace superimposed on a St. Andrews Cross and is shipped with a Mel Gibson screen saver.

The Recycle Bin is called 'Thon Bucket.'
My Computer is called 'Thon Computer Thingie.'
Dialup Networking is called 'Phone the Bhoys.'
Control Panel is known as 'Daworkins'
Hard Drive is referred to as 'thon whizzy thing way maw porn onit.'
DVDs are referred to as 'thon wee plastic disc thingies.'

Other features:
- Instead of the standard error message you get a window covered with a picture of a turnips and the cheerful message "Aw fer feck's sake!"
- OK = 'ats fine'
- cancel = Get ti fuk ye baw bag
- reset = Och ye'd be as weel startin again
- yes = Och aye
- no = nae chunce mon
- find = if ye'd bothered to pit it in a safe place, ye widnae need to look for it noo
- go to = go'n ower 'ere
- back = back the wye
- help = geese a haun'
- stop = pack it in
- start = com on 'en
- settings = sittins
- programs = stuff whit daes stuff
- documents = stuff I hive done afore

Also note that Windaes Vista Haggis does not recognise capital letters or punctuation marks.

Some programs that are exclusive to Windaes Vista Haggis
- "Pincil an paper" is a word processor
- "Colurrinin book" is a Graphics program
- "Addinup" is the calculator
- "Andrex" is the notepad
- "Mawtoons" is the CD player
- "Pickies" is the graphics viewer
- "Tax records" is a program that creates an empty file

If you have problems please feel free to contact the UKLUG Etiquette and ferign baw bag's Liaison team.

Conditional reasoning - When if - then's get muddled

I was having a conversation the other day on conditional reasoning and how bad we IT people can be at using logic in our programming. I was reminded of an example that was put to me when I was at University. This is relatively famous in Maths geeks circles and was put forward by Wason and Johnson-Laird in 1972 to show how poor we really are at reasoning.

Four cards are laid out as below (UPDATE Letter on one side number on the other - Thanks Richard!)
EK47


The conditional statement is then given
If
a card has one vowel on one side
then
it has an even number on the other side.

The question is now to decide what is the minimum number of cards that need to be turned over to prove that the conditional statement is true, and what are those cards?


If you said "E" well done that is "affirming the antecedent", "E" is a vowel and thus should have an even number on the other side. If there was an odd number on the other side, the statement would be false, so E must always be turned over to check the validity of the "if - then"

But what other card(s) do you need to turn over?

If like many people you choose "E" and "4" then with "4" you are affirming the consequent. Even though 4 is even, it may have a vowel or consonant on the other side and the statement is not falsified by either so that was wrong

If you said E and 7. Then 7 could deny the consequent and hence must be checked. If there was a vowel on the other side, the statement would be false.

So if you said E and 7 well done! If you said E and 4 well be careful how you use your IF / THEN arguments you might get bitten on the bum!

** Update **
The E / 4 answer shows how easily we fall into what is known as confirmation bias.. When we attempt to confirm the claim, we can forget that it is also important to try and falsify it. Finding a pairing of vowel and even number does nothing to support the claim; it's the failure to find a vowel with an odd number that confirms it.

Saturday 28 March 2009

Preparing for UKLUG in Edinburgh - a guide for Sassenachs and non Teuchters

UKLUG is approaching, OK it is in October (on the 8th and 9th to be exact) so it is still a small dot on the horizon of the Yellowverse some 194 days away. If you are planning on going I would advise you to get your skates on and apply now, for rumour has it that the places are filling up fast and "wait-listing" is not that far away!!

So nip over to http://www.uklug.info now and get your name down as an attendee or for that matter if you feel the urge to share some of your knowledge submit a session abstract ... I have ... but more on that nearer the time.

Last year I tried to prepare our more distant Noterati Colleagues travelling to ILUG for the Irish Culture Shock Syndrome with a series of blog posts. As ILUG is taking a well earned rest in 2009 I might as well do the same for UKLUG.

Now UKLUG is happening in Edinburgh, capital of Scotland home of the kilt, haggis, deep fried mars bars, bagpipes, whisky and golf. Now there is a scurrilous slur, probably started by the English, that folk from Scotland are a bit miserly. In fact is has been said (usually from a safe distance across the border) that Scottish folk are that tight with their cash they squeak when they walk.

THIS IS NOT SO! They are just "careful"

For example you may have heard of this occurrence at LS09

Four noterati went for a drink after Lotusphere in Orlando.
They turned a corner on the Boardwalk and see a sign that says, 'Old Timers Bar - all drinks 10 cents'.
They look at each other, and then go in, thinking this is too good to be true. The barman says in a voice that carries across the room, 'Come on in and let me pour one for you! What'll it be, Gentlemen?'

There seemed to be a fully-stocked bar, so each of the men ordered a martini. In short order, the bartender serves up four iced martinis...shaken, not stirred, and says, 'That'll be 10 cents each, please.' The four men stare at the barman for a moment. Then look at each other...They can't believe their good luck. They pay the 40 cents, finish their martinis, and order another round.

Again, four excellent martinis are produced with the bartender again saying,"That's 40 cents, please.' They pay the 40 cents, but their curiosity is more than they can stand. They have each had two martinis and so far they have spent less than a dollar. Finally one of the men says, 'How can you afford to serve martinis as good as these for a dime a piece?'

I'm a retired tailor from Boston ,' the bartender said, and I always wanted to own a bar. Last year I won $125 million in a Lottery and decided to open this place. Every drink costs a dime......wine, liquor, beer, it's all the same.'

Wow!!!! That's quite a story, says one of the men.

The four of them sipped at their martinis and couldn't help but notice a group of other people at the end of the bar who didn't have drinks in front of them, and hadn't ordered anything the whole time they were there. One of the martini drinkers asks the bartender,

'What's with them?'

The bartender says, 'Oh, they are the Scottish Lotusscript developer caucus They're waiting for happy hour when drinks are half price.'


This is UNTRUE it was actually the English Home Counties C-API and Embroidery Group!


Appendix #1 Index to Scottish Words in this post

Teuchter - (pronounced Chew-ch-ter) a person from the north of Scotland

Sassenach - (pronounced Sass-en-ack) a person not from Scotland usually English

Tweetybird is 60!

Flex for Thick Gits #2 -MXML is not a Roman Date!

Right it is Saturday, there is no rugby worth the watching so what better way to spend the time - lets talk about MXML.

MXML is what you right FLEX apps in. (At this point i should mention that an AIR app is just a FLEX app that runs outside the browser using a runtime .. ok?) it is just ordinary common or garden XML that describes the application, once you have written the MXML you compile it and you have your FLEX application.

If you use FLEX BUILDER it takes a lot of the pain out of the "painting" of the application and I urge you to download it and try it, it will make your transistion into a FLEX developer so much easier that writing the MXML first hand.

OK lets look at some MXML



(Click Image to make bigger)

Since MXML is XML the first line of any application has to be
<?xml version="1.0"?>

This defines it as XML, you will note that it does not have a closing </xml> tag, this is fine so don't worry about it.

Next we have
<!-- DominoYesMayBe Is A Love God -->

This is a comment, you may want to make yours more meaningful, however if you feel you must extol my god like appearance to the world please feel free to do so ;-)

Next we have
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

This is the start of your MXML, everything to do with your application will happen between this opening tag and the corresponding closing tag </mx:Application>

Next we have
<mx:VBox>

This is the opening tag of a visual component called a vBox, it has to have a corresponding end tag of </mx:VBox> which you will see several lines further on.

Then there is
<mx:TextInput id="myText" text="Calypso Duck Snot" />

A TextInput is the visual equivalent of an HTML <input type='text'> input field. Note I have given it an ID of myText and some default text of "Capypso Duck Snot". Those eagled eyed folk will notice there is no closing tag for this item. Well the / before the > closes the tag so that you don't need a </mx:TextInput>

Also you will not that the vBox tags enclose the TextInput tag this means that visually the TextInput will be inside the vBox.

Both the vBox and the TextInput are neatly enclosed in the <mx:Application> tags. Thus placing them inside your application - This is as it should be for this is the Tao of XML :-)

OK.. in the next post we will create another little application and have a look at variables!

Friday 27 March 2009

Flex for Thick Gits - My version of a flex "hello world" first app - "Calypso Duck Snot"

Okey Dokey Peeps.

Flex what is it and how do I "do" it?
Good Question and hopefully this will be the first in a series of initially basic "how to" posts for the absolute beginner on how to do sexy things with flex.

So what is Flex? Flex is a highly productive FREE open source framework for building and maintaining sexy looking web applications that you can deploy on all major browsers (using the pervasive flash plugin) and desktops using the AIR runtime and like notes it can be deployed on most OS's

Now the first thing you can do is down load the Flex IDE called Flex builder currently at V3 this gives you a 60 day trial after which you have to buy it. So I hear you scream where is the FREE bit? Well you don't actually need Flex Builder as you can develop in a decent text editor, like Notepad++ .

I suggest you download Flex Builder and get all you can out of it during the Trial, as it will do all the boring bits for you and if you can't get the $$ for it you should have a decent grounding in the way the code is put together. The IDE is built around Eclipse so it should be familiar to devs who have moved up to the V8.5 designer client, but more on that in later posts.

So you have downloaded and installed your Trial of Flex Builder from the link above.. it is OK to do this even if you have the 8.5 DDE editor installed the two installs are separate and won't interfer with each other. You click on the chunky Flex Builder Icon on your desktop and voila it opens... (click on any of these piccies to make 'em BIG)



Now I will go into what does what in later posts for now lets just do the DominoYesMayBe version of a "Hello World" application. So Click FILE then NEW then FLEX PROJECT ...like this



and then you will get a nice dialog asking for a name and other things that will define the project.. for now just given it a name and click FINISH

... and your project will be created and ready for you to play with. The screen itself is a bit scary cos it comes up in script mode and that can be a bit intimidating because it starts ?XML which is enough to make some developers go pale and have palpitations :-)


Take a moment to compose yourself and click on the Design Tab, the screen should look like this


The big grey bit is your canvas onto which you will drag components and do your designing of the UI. So I drag a Button component from the list panel on the left and drop it on the grey canvas.



Over on the right i change the LABEL text for the button to have something more edifying than BUTTON. In this case "Click me Now".. (the actual text on the button will not change until you move focus away from the property field)



OK next I drag a LABEL from the component panel onto the canvas.. I size it using the corner anchors so that it is relatively large, then change

A) The ID of the label to be MyWord
B) I cleared the LABEL text.. cos I dont want it to say LABEL when the project starts
C) the Font Size to be 30pt

it looks like this ...



and that is it for my design.. now lets make the button do something.. switch to the SOURCE tab. You will notice that the source has changed.. These are the components and their properties that you have added to the canvas... it will look like this ...


Go down to the line that reads
<mx:Button x="59" y="31" label="Click Me Now" width="136"/>

and before the /> type this:
click="MyWord.text='Calypso Duck Snot';"

It should now look like this...


(BTW if you typed all the source into a notepad and used the SDK to compile it it would result in the same application!)

Ok you are ready to test it, so press [ctrl]+[s] or File then Save to save your project and then on the tool bar click the RUN button.



Your browser will open and there will be your button in all its glory ... Click it go on you know you want to... and when you do up pops CALYPSO DUCK SNOT in the label.

Here is my Version live on the interwebthingie .. (oh BTW you find all the files you need to go live in the bin-release folder of your project directory)

So that's it.. your first Flex App, it wasn't hard was it. In the next post I will try and a bit sexy with some more components and more events... WHAT FUN!

Ando Hiroshige - a mediation for troubled times.

We are in the teeth of the fiscal year end, the credit crunch is biting deeper everyday, jobs are evaporating and the world is going to hell in a hand basket, or so we the media tell us endlessly.

Is at times like these I visit one of my favourite artists and just let my eyes suck in the marks and splodges they made on paper or canvas. Long ago I gave up trying to understand art, now I look for the meaning I can see and what it means to me at the time I am looking at it. Today was one of those days and I dug out a book of pictures by Japanese artist Ando Hiroshige. Probably not a name you are familiar with but you should recognise this picture for it is arguably his most famous.


We cannot control our lifes. If we are set upon doing so we have abdicated ourselves from the peace that balances what is desired with what is possible. As Hiroshige shows us the great wave is in waiting for any boat. The wave is unpredictable, as uncontrollable now as it was at the dawn of time. We wonder will the slender boats and the fishermen in them survive or will they be overwhelmed? Risk is a human constant, it has to be accepted, embraced and then laid aside.

What we can do, we do.

Beyond that, we endure, our endurance framed by a sense of what matters and what does not. The worst that can happen is not that we may be overwhelmed by disaster but to look back in that final moment and realise that we did not live life.

We are fallible and the real antithesis of achieving peace is to refuse to recognise failure, to learn by our mistakes and to pick ourselves up and start again.......

......Anyhows Hiroshige painted his pictures between 1811 and 1858.

Here are some of my favourites Enjoy :-)




Stockholm Syndrome - all the way up to 11!

Monday 23 March 2009

** Hot News** UKLUG is open for registration!

OK Folks in the Yellow Bubble (tm)

The UKLUG Website is up and running and looking for folk to sign up as both Attendee's and Speakers. Warren Elsmore blogged about it here and you can rush over to the new sparkly wonderous xPage driven and skillfully crafted by Ideajam's Matt White web site here

There is no ILUG this year so attendance places will be in great demand, so i wouldn't leave it to late to book your place!

It is all happening on the 8th and 9th of October in Edinburgh, Scotland. I have my place booked and hopefully will see you all there!

Friday 20 March 2009

Arch Harridan Iris Robinson gets off

Arch harridan, MLA and wife of the First Minister of the Northern Ireland Assembly who I have ranted long and hard about in the past got official notification from the cops that
"On receipt of the advice of the Public Prosecution Service and considering all of the matters raised, the police service is satisfied that on the occasions considered, Mrs Robinson did not commit an offence,"


Sorry but WTF??

see here
for the story and other links on the Beeb.

I don't protest her having the views she has, she can believe that little purple pixies live inside her clit and give her orgasms for all I care. What I get very very very cross about is that she as a representative in high public office when she expresses her opinions it can and is construed as coming from her position as the Chair of the Stormont health committee

In summary she said that Homosexuality could be "turned around" with the help of a psychiatrist. Would I be surprised if a lot of people end up believing that someone in her position she might actually know what she is talking about? No of course I wouldn't!

How DARE she make value judgements on air and in the press that compare a legal, accepted form of human sexuality to the crimes of murder and child molestation.
Let her keep such idea to herself and keep the airing of such statements to the times when she is in the company of fellow Xtian wannabe sybarites who all ache for the luxury of an afterlife free of Catholics, Gay People and Sinn Fein.

You may have got away with any form of censorship or sanction this time Mrs Robinson but there are those that disagree with you and will continue to disagree with you and some of us will be as offensive about you as you are about others!

Oh and if you like to indulge in a lobster thermidor once in a while... be afraid be VERY afraid.. you will be next on Iris's hit list. I am sure she has a nice wee psychiatrist in her offices that will be able to "turn you around" too!

In regards to the lobsters I am referring to Leviticus “Whatsoever hath no fins nor scales in the waters, that shall be an abomination unto you.” In regards to male homosexuality: “Thou shalt not lie with mankind, as with womankind: it is abomination.” Both abominations to the Lord and using Iris's reasoning both in the same scale as child molestation and murder. You have been warned!

Monday 16 March 2009

RIA's xpages and Flex

I have of late being experimenting with Adobe Flex and xPages in V8.5.0 with a view to creating Rich Internet applications (RIAs). I started with both at roughly the same time and have spent roughly the same amount of effort on both. Now I have to stress I am not an expert in either so this is an opnion based on my experiences to date rather than an indepth exploration of the pros and cons of one or the other.

To be fair it is a bit of an "apples" and "oranges" comparison xpages is aimed (at the minute) fair and square at Domino Data and Domino apps where as Flex is data source agnostic, if you can get JSON or XML out of a data source Flex will be able to play with it.

Both Flex Builder 3 and xPages are based around Eclipse so the IDE is pretty much the same and there is no real difference when faced with developing in either. You can develope Flex apps in Notepad (or my favourite Notepad++) and use the Flex SDK to compile your project up but this is for REAL geeks!)

In Flex Builder you design your UI by dragging and dropping components from a palette onto the design area. there are 65 components and you can also create your own Custom Components. On an xPage same sort of idea except you only have a palette of 26 components.
and here comes my first whinge about xpages. It is a domino product, loads of apps have a requirement for a NAB lookups but no Name Picker in the components, you have to build your own using one or more of the databinding form components which isnt that hard but hey it would be nice to have a drag on one to save all the bother of doing that.

Flex has chart controls and OLAP grid control and two types of data grid and all sorts of interesting things xpages at the minute in 8.5.0 has either not got them or has them but you cant tweak them as much.

Which brings me to visual tweaking in xpages you have to play with the CSS and preview in all your target browsers to see what it looks like, in Flex you design on the screen and thats what it looks like for the user. Again some might say this is an unfair comparison as the two technologies are totally different and yes I accept that, but to drag and drop and tweak is easier and quciker than drag drop fiddle with CSS and preview.

I also have a fear that a lot of xpages are going to stay with the oneUI css and will suffer from the generic Xpage "look". This certainly makes development easier if you do that, but for me will start to wear thin as a look after a while. "themes" certainly sound like the answer but I have had all sort of bother getting a floating and fluid xpage to stick together and display on the browser with any sort of sucess.

Xpages bind to the back end domino data really well and with a minium of fuss and bother which is really sweet, and the new JS impliemented @commands are fantastic, needless to say Flex has none of these facilities nor ever will and xPages wins hands down in this respect as you have to build agents to serve the XML or JSON to the Flex App or take POSTED data and apply it, whilst not difficult it is time consuming and you don't have to do it in xPages.

There is a bit of learning curve for both Flex and xPages when adding the code that goes behind the buttons and switches etc and it is much of a muchness there in that they are equally difficult/easy to pick up the basics.

You need a V8.5 server and V8.5 Designer to create and run xpages, you can leverage Flex from any Domino server that serves up XML or JSON, which I believe is way back to 6.5 or before. I can hear some of you say "...but you MUST be on V8+ to be on anything less is just silly." well yes but there is and it seems has been an intertia in some if not all Domino sites to be one or two versions behind the cutting edge. At the minute those that have not upgraded could leverage Flex based UI's but can't leverage xPages. I would of course recommend all readers to upgrade :-) Version 8+ it is really very good.

Xpages of course is not dependant on the browser having any plugins flex needs Adobe Flash Player 9 or 10. However even allowing for Adobe's hyperbole the flash player does seem to be pervasive in the installed browsers attaching to the internet.

There doesn't appear to be any difference speed wise from a user perspective, although I would hazzard a guess that Flex is more bandwidth intensive when getting data from the server for views.

In conclusion having used both for around 3 months, I feel considerably less constrained in the way I design a RIA when I use Flex. Xpage development is locked in much closer to the domino data and is less flexible as a result. (or so it seems)

I am not giving up on Xpages ... as it matures, as I am sure it will, it will become much more of a lived in "environment" and better for it, however it would be foolish to overlook an environment that gives a better and more adaptable over all "finish" to a RIA.

This is of course my opnion, but I would suggest you have a look a Flex, particularly if you are stalled (for what ever reason) on version 7* or 6.5* with no immeadiate plans or budget to move up to Version 8*.

Some regex for the new to the Web programmer

I was asked today how on a web form you could check to see if an email address was correctly formatted before the form was submitted. Well with the advent of Xpages and the pervasiveness of AJAX frameworks, web pages in the Domino World, like any web faced back end are not exempt from the double requirement of being shiny sexy things that users love AND having functions that can stop users doing the stupid things they always do.

The question was posed by a RPG programmer new to the world of the web and when I said "och that's a piece of piss, use a RegEx" they looked at me like I had grown an extra head (which i do do on occasions for extra effect when I am being flash)

RegEx is short for Regular Expression
and is a string that describes a search pattern. *.txt is a RegEx that will be familiar to everyone. But proper RegEx is like that but on steroids, human growth hormone and crack cocaine.

There are loads of web sites that go into great detail about how to correctly form a RegEx and I will let you go find them yourself .. there is thing called Google and it is really useful ;-)

However how to use RegEx and a RegEx pattern to test an email address?

OK lets say you have this HTML on a form
Email Address <input type='text' name='email' value=''>
I am going to use this is a JS function that will return true or false if the email address entered is valid
function emailOK()
{
myRegEx = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/
if (document.forms[0].email.value.search(myRegEx) != -1)
{
return true;
else
return false;
}
}
You will notice that I do NOT use a string literal surrounded by a pair of ""s for the myRegExp. Why? Because in a string literal \ is special (as in new line \n) so the RegEx expression \w+ would become "\\w+" in a sting literal which makes something that is very hard to read even harder to read. JS allows you to delimit RegEx's like this /pattern/ which makes things much nicer!

I pass this RegEx to the SEARCH method of the JS String object (which is what the .value of an input field is BTW) and it returns -1 is the pattern does not match or a positive integer if it does match. Which is all very simple BUT ... what does all that gooble-de-gook mean.. if you don't care .. then far enough, copy and paste the code and use it in your own app ;-) if you are curious here is what it means:

1. it begins with a / and the matching / is the very last character these act as the "" would in a normal string

2. The ^ symbol, means start matching at the absolute beginning of the string.

3. \w+ matches one or more alphanumeric characters.

4. This is where this gets interesting :-)
((-\w+)|(\.\w+))*
First, note that the whole thing is surrounded by (...)* which means that we want to match zero or more of whatever is inside.

Inside the ()* parentheses, we have (-\w+) and (\.\w+) separated by the | character This means it with match EITHER -\w+ OR \.\w+

The first one indicates that we should have a match if we find a hyphen followed immediately by a set of alphanumeric characters. The second part matches if we find a period followed immediately by a set of alphanumeric characters.

(NOTE . by itself is a special character so we must delimit it by placing a backslash in front of it.)

So far we have a pattern that will match [some alphanumerics]-[some alphanumerics] or [some aphanumerics].[some aphanumerics]

5. After this match, comes an \@ sign (once again i use \ to override any special meaning @ may have in RegEx

6. Immediately following the @ is [A-Za-z0-9]+ which matches a set of alphanumeric characters of either upper or lower case. I don't use \w+ because this would allow characters like _ and - ... OK?

7. next up is ((\.|-)[A-Za-z0-9]+)*

8. Note that the search is surround by ( ... )* this means we are matching one or none of a match to the pattern inside the ( ... )

9. So take them away and we are left with (\.|-)[A-Za-z0-9]+

10 First (\.|-) This is trying to match the first character as a . or a -

11. Then comes [A-Za-z0-9]+, the match only works if the period or hyphen is followed by a set of alphanumeric characters. This effectively represents an email address that contains a (possible) set of .something or -something sections. Because the * is used, the pattern works if they are present and also if they aren't.

12. Finally the \.[A-Za-z0-9]+ pattern matches a . followed by a set of alphanumerics. Because it is the last part of the regular expression, it represents the final part of the email address, which is the .com .co.uk bit.

13. The $ symbol ensures that the previous bit only matchs the END of the string.

14. The last character (the /) closes the first /

Simple .. init? ;-)

Tip of the Day- A JS way to create inline images to display from attachments in a Rich Text Field

Here is a wee Domino related JS tip.

Say you have a RT field into which users can attach files, these will in the natural schemem of things appear as a list of attachments with nice icons to click on. But what if you want to display them but couldn't be arsed coding in the domino bit of the form to get them to display as inline images.

01. Put a DIV tag around your RT field and give it an ID


<div id='imageRT'>[DominoRTField]</div>


03. Create an empty target [div] to display them in


<div id='imageDsp'></div>


04. Create a JS function in the form or page like this

function dspLinks()
{
target = document.getElementById("imageDsp");
imgLinks = document.getElementById("imageRT").getElementsByTagName("a")
for(t=0;t<imgLinks.length;t++)
{
imgLink = imgLinks[t].href;
img = document.createElement("img");
img.src = imgLink;
target.appendChild(img)
}
}


04. Put your dspLinks() function in the onload of the form and voila you have all the images in your RichText field displayed in the target div as well as the normal link icons you get from a RT Field's attachments.

Thursday 12 March 2009

Introducing the "Blue Skills" job site for IBMers

Okey Dokey.. here is a thing

Mr Mooney over at pmooney.net has just blogged a rather interesting prospect. He describes it way better than I will and with a lot less swear words. So take a trip over and have a look see both at Paul's post and at the beta site. Which Kevin Pettitt is currently trying to break.

To quote Paul
About a year ago, staff in Bluewave/BE Systems were discussing recruitment sites in general. Although mostly positive, the problems associated with them typically centred around inaccurate job specifications and vague applicant details. Also we noticed that there was a general inability to ask questions relevant to our specific areas of interest. We toyed with the idea of creating a dedicated careers site in the Big Blue field, focusing on finding the right people for the right jobs in our professional area.
Take a lookie see ;-)

Sunday 8 March 2009

I Love my job ! I love my job! I love my job!


It is March. The time for Fiscal Year End and Sarbanes Oxley Audits

Wednesday 4 March 2009

The latest Face Book Meme - The Which Mr Men are your friends (or how others see you)


This is doing the rounds on face book at the moment. You get it your mail box and each of the Mr & Miss folk has been tagged by one of your chums with a name they think "goes" with which Mr Man.

I have been "The one that gets up to no Good" twice now, and "The grumpy One" once!

Which i think is odd .. by inclination i would be "the geek", By appetite i am "the one thats always hungry", I would like to be "The Stylish one" or possibly "The Pimp".

But the one that is "Always up to no Good" ???

Posted by Picasa

Monday 2 March 2009

Introducing TiddlyWiki (well it was new to me!)

All .. i came across this a couple of weeks ago and it tweeked my inner geek. Anything that calls itself "a resuable non-linear personal web notebook" will make me cock an eyebrow and have a bit of an investigate.

Pop over to the tiddlywiki site and have a look see.
You can view TiddlyWiki files on all major desktop browsers on Windows, Macintosh and Linux and many mobile browsers such as the Apple iPhone and the Nokia 770/N800. You can save from all the major browsers (Sofaree and Oprah users need a wee plugin but IE and FF on winders saves changes after saying OK to an "are you sure message")

It is open source and really rather clever.

Config it in seconds bookmark it and you have a wiki style notebook that you can use on all of your tin to store your thoughts links and other stuff. I have it on my trusty ILUG08 memory stick, for those moments that server connectivity is just not possible.

It works .. I like it .. i am going to introduce it at work to see who likes it! Oh and have a look at the GTD variants like this one ...

Wednesday 25 February 2009

Some thoughts and a riposte to Brent Peters latest post

I was directed to Mr Peters' post by it's arrival on PlanetLotus and feeling the need to not let his post pass without comment but not wanting to have one of my rambling responses clogging up his comment section I am going to reply here.

Blog Terrorism - I find i have to disagree with Mr Peter's concept that terrorism has at it's core a need to "..cause an establishment to overreact". As most of my teenage years and a large proportion of my adult life have been on the receiving end of terrorism and the effects of terrorism this idea is entirely alien. The fundamental aim of "the terror" was to instil a fear so great in the population that it would force a change (or maintain) the status quo. (I would point my readers at UN resolution 1566 which basically says the same thing) When Mr Peters uses the word it comes replete with an arsenal of politically and emotionally charged emotions. It would appear that in his use of "terrorism" this is an argument from pure Pathos

[Some of you may not be familiar with the term and assume that I mean it is in some way pathetic. This is not my aim for Pathos is a rhetorical mode of persuasion that appeals to emotions rather than logic or ethics]

I also disagree with the statement that "...Step 2 in logic would say, what is this persons fundamental purpose in using this method?.. " Logic has nothing to say about fundamental purpose, Ethics does.... Logic would only ask is the premise on which the purpose is built follow logically from premise to conclusion?

I feel that that Mr Peters' post is falling (hopefully accidentally) into the trap of "Affirming the Consequent-" or the "Fallacy of False Dichotomy", for example the statement "If a person runs barefoot, then his feet hurt. Socrates' feet hurt. Therefore, Socrates ran barefoot." ... Other things can cause sore feet. In the same way, Terrorism (i would prefer to use the word "dissent") can be and is used for other reasons other than the need to provoke overreaction or for that matter to direct kudos to the Terrorist to satisfy their need for attention.

Mr Peters asks the reader to accept that ".. Now what I love even more is when people believe data from Ethos/Pathos, and toss out Logos" when previously he has used something very similar not a paragraph or so above when he uses a argument from emotion (pathos) that ascribes an ethical value (Terrorism is bad) without recognising that there may be other potentially ethically good or ethically neutral reasons for the terrorism .. (I really do prefer the word dissent).

I would posit this in response. We are in uncertain times and uncertain times have a habit of amplifying the fear of the unknown. Since the future is un-knowable there can be no logic, no reason applied to it. When things happen that appear to rock the boat, unreasoned and uninformed questions will be asked. It is the nature of the beast. In a way these questions have to be asked for how else can answers be given and unanimity reached? I accept the fact that on occasions there will be an element of self aggrandisement in the motives of the questioner, but this does not invalidate the need for the question, the question itself or for that matter the necessity for an answer. Demonising the questioner as a Terrorist or dismissing the question as uninformed or illadvised does not answer the question they asked and will as a direct consequence increase the level of unease.

Dissent can be very creative, I would put forward that the dissent for authority that characterised the Renaissance in the 14th century, the departure from "the accepted wisdom" that was prevalent in "the age of enlightenment" and even the ideas and principals of the American founding fathers as examples of dissent being beneficial. Whilst I would not argue all dissent is useful, I would strongly argue that dissent, even misplaced dissent, if stifled or dismissed can be very counter-productive.

I agree wholeheartedly with the last couple of paragraphs and had Mr Peters started with these I would not have felt the need to respond. I am reassured in these paragraphs that he IS the man for the job in these worrying times and is doing his damnedest to make things work. His sentiments that IBM managers are making the decisions they have to make to ensure they continue doing what they do are just what I needed to hear and whilst not overjoyed I am more upbeat about the future.

To echo Ben Poole's post .. to all the YellowBubbleNauts currently "resting" I wish you all the best and if we can be of help, just ask.

Sunday 22 February 2009

One of our number needs a wee hand

Draw near and open your ears Dominoista's and Noterati for one of our number needs a wee hand with something in her community.

Francie Tanner of Udder Chaos and lately of Anguilla, which for those not in the know is a "not very big" island in the Caribbean. Whilst a paradise for goats, cats and transient Notes Bods on their holidays being "not very big" comes with it's own set of problems, not least being a chronic shortage of bananas.

The great Anhuillan Banana Shortage is not the problem on this occasion it is rather more serious and it is a real worry for Francie and the other Angulliotes and it concerns the continued status of one of their schools ... The Teacher Gloria Omololu Institute

Now I am very keen on the idea that our children are our future and it really doesn't matter where the children are, collectively they are the world that is to come and the more educated they are the less likely they are to make a big a pigs ear of the whole sheebang as we seem to be doing.

In the world just now there are lots of demands on our cash but if you can spare even a couple of bucks and sponsor a brick or buy a raffle ticket which it has to be said has a really whizz bang super duper cracker of a prize, take a moment to click on the school's site link and put your credit card to good use. ;-)

The wee folk of Anguilla will be very grateful if you do

Saturday 21 February 2009

Fun things to do with Javascript

OK picture this.. you are having an argument with a chum and you suddenly need to convince your colleague that in fact the top news stories on the BBC are all about the creme egg crisis...

Pieces of piss

Go to the BEEB

Paste the line below into your browser Address bar

javascript:document.body.contentEditable='true'; document.designMode='on'; void 0

et Voila you can tweak all the content the way you want.. like this

Friday 20 February 2009

Awesome Creme Egg machines

You do have to hand it to this chap.. What an awesome machine!

Creative profanity (very NSFW)

I feel compelled to scribble a few notes in the back wash from the recent brouhaha over at Mr Bynkii's site (I wont link to it, I am sure you have all seen it)

Others can and will comment on the whether the sentiments expressed have value or not and I am not joining that particular debate, however having read Mr Bynkii's missive I am left with a feeling of dissatisfaction at the style and particulary poor use of expletive gymnastics he and his fellow travellers used in this post .... where has creative profanity gone?

Now as my more astute readers will be aware I do like a string of well formed, creative profanity. You may argue that profanity of any sort is not big and is not clever and yes that argument does hold some water in polite society. However an expletive in the hands of an artist can be used to create word pictures that clean and sturdy metaphor or muscular but inoffensive similie can never hope to achieve.

Profanity, like salt improving a under seasoned soup, improves the flow of the text. The Bard himself, old Billy Shakespeare was not above slipping in the odd expletive into his plays, although he did it with style and finesse. His audience's picked up on these at once and no doubt tittered and guffawed in equal measure. For example Malvolio slipped this line into one of his speeches
"These be her very c's, her u's, and her t's, and thus she makes her great p"
or when Hamlet makes reference to "Country matters" as he pointedly lays his head in Ophelia's lap it is fairly obvious what he is getting at and on what syllables the emphasis should be laid!

Mr Bynkii has his fellow travellers have fallen into the trap of believing that simply sprinkling "fuck" into a sentence shifts the energy of the sentiment they are expressing to level where we gasp at his prowess. But no! He lacks the panache and verve of one who is truly profane. Alas, his writing style appears to be driven by a pair of shite encrusted underpants lurking in the linen basket of his imagination. What makes matters worse it appears they were worn by a doubly incontinent syphilitic fuck wit who has all the inventive skills of a scatological sybarite licking the puckered arsehole of mediocrity .... and his goatee makes his face look like a baboon's arse.

Creme Eggs - the scandal!

Dearest assembled geeks, geekettes and nerds of the associated and allied trades!

I am DISGUSTED and outraged at the scandal of the shrinking Creme Egg. As a callow youth I remember creme eggs as being much more substantially sized and only cost 3d (thats 1.5p to you young whipper snappers).

This is the situation the world finds itself in yellow and white centred microcosm, the men with Ex-Hell spreadsheets and their pencils neatly arranged on a tidy desk have gradually over the years scrimped and nipped and tucked the majestic creme egg from it's once majestic glory into the modern shadow of it's former self.

Yes J'accuse those second cousins of bankers, accountants, for tis with them that this crime lies!


Above a creme egg being delivered circa 1965 cost thruppence weight 14 hundredweight

The creme egg today a shadow of it's former self you can fit 2 on your hand for goodness sake!

BAH HUMBUG is say.. nay THRICE BAH HUMBUG!

Dr Xavier Pages and Tiddles Install Sametime



Hmmm this looks oddly like Mr.Benn on acid.

Tuesday 17 February 2009

Sunday 15 February 2009

Thoughts on 8.5 with 2 Months under the belt

[~Off topic~ just noticed this is the 400th blog posting since I started this one. That has to be a milestone and a surprising low one given the levels of gobshitery I aspire too]

Back on topic again ... OK I upgraded my development server and home boxes to V8.5 almost as soon as it was available and I could actually get attached to the Passport Adv download site and to date I have been impressed. Which in itself is odd because I am starting to hear people get quite cross with DDE in particular both on their blogs and twitter. It is odd because I have very little negative news to report.

Well apart that is from a couple of occasions when I got a "Platform Command processor has encountered an error" when trying to open the designer client. The extra details on the error were abbreviated to a parallax of brevity in that they comprised of the single word "error" and it was not even capitalised! Sort of the error equivalent of the Gallic shrug so beloved of my French colleagues.. "it is fubar, c'est la vie ~shrug~"

Must ferkling and swearing later, DDE would not arise from the grim depths of whatever the "error" was. I would get the splash screen, the sign on and then 10 mins of the status bar moving really slowly and then .. the status screen disappeared and .... nothing.

The problem is something to do with something in the /data/workspace dir which shoots from a normal 50-80mb to 770mb during the problem. The more you try to open DDE the bigger the DIR gets and oddly it is not the /log/ dir? On the first occasion I eventually gave up looking for the problem and just renamed and deleted the directory it had reached 1.9Gb! There is obviously something amiss there.

However it has only happened three times(twice on Vista and once on XP) and I have been using it daily. I now have a .bat file that renames the /workspace/ dir and then deletes it. Hmm I wonder do DOS skills date me?

Those 3 occasions have been my only major problems to date.

The only other thing of note is a problem that I had in V7 and earlier V8 DDE and that is with the JS complier which remains ... hmmmm ... very like a grounded teenager on a Saturday night ... it sulks a lot when there is a problem, doesn't give you any idea of what the problem actually is by saying "Error compiling script" and then hides the cursor to spite you. The only way out is to close the element you are editing without saving and then re-open it.. and then 9 times out of 10 the change you made HAS been saved and there is no problem.

I have yet to see the problems of the load times in DDE, it remains satisfying brisk on local and on servers in VMs, on local LANs and even on remote access over a VPN is fine, well within workable limits but then I have over the years taken to doing a full re-compile on an NSF when I open it in a different version of the designer than it was designed in. I got caught badly in the V4.5 -> V5 world by not doing this, so I may have inadvertently missed the problem John Roling had here and that John Head describes here in point 3.

All in all I like 8.5 both client and DDE better than I liked 8.0.*. (Which is not to say I disliked 8.0*) every seems smoother, faster and more managable.

I could kiss the person that put CSS as a direct edit in DDE, that alone was worth the wait. The number of times I fecking forgot to refresh CSS files after edits in V7 and V8!

I do not seem to have been affected by the DDE slow loads reported by other colleagues, but then I am not dev'ing on a mac in a windows VM which does seem to be a common thread in the reports of sluggish load times. My Windoze boxes are either XP64 (4gb with IMAGE_FILE_LARGE_ADDRESS_AWARE set) and on VISTA HP64 with 16gb.

I have run up XP SP2 in a VirtualBox VM on Ubuntu with 1gb of ram and a 4gb virtual disk and DDE can be a bit chuggy on the initial load of a new NSF, but the waits are not of the "go away and make a coffee, smoke a cigar and arrange a romantic assignation with Sandra from Quality Control" variety.

All in all, I am happy with 8.5 so far it is a 8.5 outa 10

Now it is getting near supper time and the McDonagh Horde is getting restless and hungry so I had better be off

Domino.Doc what IS the way forward?

Hmmmmm.. there have been a few post LS posts about Domino.Doc and Version 8.*
and to be honest I am confused. Domino.Doc obviously had a limited life as can be seen by the purchase of the Aprix CMS by IBM, which was Domino Based but now appears to have been sucked into Portal.

So wither Domino CMS? Ah Ha! you might exclaim , that's where Quickr comes in. Indeed so , but the basic Quickr toolset is not quite as feature full as the old Domino.Doc was particularly in the workflow engine. You may counter with well there are Quickr connectors to Filenet and IBM Content Manager ... yes indeed there are but again they are in Websphere not Domino..

I notice I am not alone in my concern.... Patrick Picard mentions a slightly different and for him more pressing problem.

I have had a look see on IBM.com and for the life of me I cannot find anything that defines where Domino.Doc users go now, other than in the broadest of terms and I am left wondering where does all the Domino.Doc data silo'ed in domino servers go now? Do we keep the Domino.Doc server @ V7 whilst the rest of the organisation skips gayly into Version 8 and beyond?

Perhaps someone out there in the blogsphere knows?

Painting and thinking about depression.

My chum and fellow blogger Rob McDonagh has just posted a very good post on Depression and while I am not a fellow sufferer someone very close to me is, and his post describes almost perfectly what I saw (or possibly what i thought i saw) as the carer for someone suffering the trials and tribulations of an acute depressive episode.

I recommend you nip over to his blog and read it.

I have never had a depressive episode like the way he describes or like the one I experienced second hand and I hope I never do. I have been down yes, everyone has those days but I have never had that seemingly all encompassing black cloud descends and sucks the joy out of life.

Rob, my friend , I salute you .. a very brave and incredibly well written post!

I was sitting as you do on a Saturday evening re-reading Rob's post and remembering my own experiences and I remembered some paintings I did partly as catharsis and partly to expose my own demons. There are no answers in what follows, just thoughts and some brush strokes on paper.


A solitary figure poised cruciform above a swirling void, a red point of dull light at the base. Fingers of cold blue reach out. The symbolism is fairly brutal and simple, but that is the way that it appeared to me when my loved one was in the throes of her depression.

I felt that I was an observer, forced to watch this dive into the void and unable to help, as the hell I could only guess at was completely internal to someone else.




This next one came along when the anxiety and anguish kicked in. The mood swings that went from normal functioning human to one where every limb was contracted and twisted, every wrinkle was a fissure of deepest despair. It was around this time I started to understand what "anguish" really meant.








This one started as a homage to several nudes by several artists but as I painted it became a much more personal experience. It went from one colour to another and eventually settled on red, a warm colour but also the colour of rage, pain and danger.

A turned back is a sign of dismissal, a refusal to engage,the bald head a ancient sign of grieving In this instance as a symbol of the partial death of the self in the sufferer.





Lastly this one... a much stranger painting ... an open window inviting the figure to exit the dark room into a summer day. The figure with dropped head facing away from the outside, but yet may have opened the window in preparation for leaving.

The figure is facing a falling leaf, in nature a sign of the transition from one season to another, here a symbol for the demise of the depression
when the leaf hits the floor, the figure may well leave the room and enter the sunlight.

Who knows....

Painting these pictures helped me get through a difficult time, looking at them now, having dug them out from under my study table is an odd mixture of remembering the way I felt watching a loved one implode and relief that while there are still echoes from time to time, the dark visitor that made her life a misery has not come back to stay.

Cuz Rob .. and the rest of your family.. You are in the thoughts of the McDonaghs on the other side of the pond and we are send as many "Feel Better" vides as it takes to make a difference. :-)

Monday 9 February 2009

Twestival - Twitter's doing something good for the world

Ok geeks and non-geeks, twitters and non twitters here is a chance to part of a world wide event,meet the faces you follow, have a bit for craic and raise some cash for a good cause.

The TWESTIVAL is on the evening of Thursday the 12th Feb and in 175+ cities around the world, twitteres and their friends are getting together all in the name of charity:water a organisation who recognise that 1.1 billion of our fellow human beings do not have access to clean safe water.. That is around 1 in 6 of us!! Which is appauling!!

So i implore you visit TWESTIVAL look up your city and come and join the 100,000's of twitters from around the world doing something good and having some fun.

The Northern Ireland one is in Belfast in Lavery's Bunker .. so if you want a bit of craic in the big smoke that will raise some cash for a good causesee see here for details

For my NI readers if you live along the A26 and need a lift in I will driving down from Coleraine
after work.. drop me an email mcdonaghs at utvinternet dot com and I will see if I can squeeze you in!

For the rest of you.. check out your nearest city and go along!!!

Disqus for Domi-No-Yes-Maybe