Changing the DocType in XPages

I’ve been looking into HTML5 development
lately for a couple of different reasons, it is an important new technology
for any web developer to learn and, as we saw at Lotusphere, HTML5 is mentioned
as being part of the back-end technology for Project Vulcan.

When you start looking at HTML5 the
first thing you learn is that you need to change the DOCTYPE to <!DOCTYPE
html>. Here’s what the draft HTML5 specification has to say about the
DOCTYPE

The HTML syntax
of HTML5 requires a DOCTYPE to be specified to ensure that the browser
renders the page in standards mode. The DOCTYPE has no other purpose and
is therefore optional for XML. Documents with an XML media type are always
handled in standards mode.

The DOCTYPE declaration is
 &lt;!DOCTYPE html&gt; and is case-insensitive in the HTML
syntax. DOCTYPEs from earlier versions of HTML were longer because the
HTML language was SGML-based and therefore required a reference to a DTD.
With HTML5 this is no longer the case and the DOCTYPE is only needed to
enable standards mode for documents written using the HTML syntax. Browsers
already do this for &lt;!DOCTYPE html&gt;.

By default any Xpages application you
build will automatically include a doctype for you and it would appear
that there is no way to change it, however, hidden away and documented
only in a sample file xPages , starting in version 8.5.1, allows you to
change the DOCTYPE very easily.

Open the ‘Package Explorer’ eclipse
view as described in this
blog entry
and then open the ‘WebContent -> WEB-INF ->
xsp.properties’ file.

A picture named M2

Now all you have to do is add one additional
line

A picture named M3

Save the file and that is it. Now when
you view this xPage application in a web browser it will have the DOCTYPE
that you have specified as you can see in this ‘View Source’ screenshot.

A picture named M4

Of course you can use this trick to
set any doctype that you want but remember that it will effect all the
pages rendered from the application. As of yet there is now way to set
the doctype on a single xPages unless you use the xPage Agent method.

Tagged with: ,
Posted in None

Where Are All The Open Source Developers Gone?

I’ve been thinking about this topic for
a while and had been hesitant to blog about it, but a sentence in Ben
Poole’s
recent blog post asking if there is value in using
Domino as a blogging platform
caught my eye…

the Domino open-source
community is somewhat lacking in committers at the moment, beyond each
individual

Tagged with:
Posted in Uncategorized

Lotus Knows That This Is My Lotusphere 2010 Recap

Day -1 : Saturday

Lotus Knows it was painful watching
all the tweets from people who got there before us.


Lotus Knows that we were not arriving
till late.


Lotus Knows our flight was delayed by
about 40 minutes.


Lotus Knows our pilot flew extra fast
and we only arrived 5 minutes late.


Lotus Knows a faster route the Disney
Magical Express bus can take.


Lotus Knows that we made it to the ESPN
bar to party with Turtle and everybody else


Lotus Knows that we were the last people
out of the ESPN tonight.


Lotus Knows that Picabu’s in the Dolphin
makes great 24hr pizza.


Lotus Knows we weren’t the only people
at Picabu’s.

Day 0 : Sunday

Lotus Knows my head is a little sore
this morning.


Lotus Knows I still have to unpack and
get over to register.


Lotus Knows that the backpack is pretty
much the same as last years.


Lotus Knows where the speaker room is
this year ( I never found it ).


Lotus Knows that I need to practice
my session with David Leedy.


Lotus Knows that the practice session
went well.


Lotus Knows that it’s a long walk from
the Beachclub Villas back to the Dolphin.


Lotus Knows that TURT101 is a must see
session for the laughs.


Lotus Knows the welcome party has started.

Lotus Knows the theme for the party
( my guess was 70s/80s )


Lotus Knows I owned quite a lot of the
old computer equipment being used as props for the party.


Lotus Knows the staff at the Dolphin
bar remembered what we drink from the last few years.


Lotus Knows that Jager/Redbull is about
$4 cheaper this year for some reason.


Lotus Knows that some people are heading
to bed early


Lotus Knows we’re not as young as we
used to be.

Day 1 : Monday

Lotus Knows the OGS is at 8AM

Lotus Knows the WiFi sucked again this
year, I couldn’t get a connection.


Lotus Knows the bloggers got wired network
connections.


Lotus Knows I’m not a blogger.

Lotus Knows that William Shatner was
a great speaker at the OGS


Lotus Knows that it’s going to be very
hard to top Shatner next year.


Lotus Knows the actual OGS was a little
flat in places.


Lotus Knows that xTalk was briefly on
screen at the OGS but without a mention.


Lotus Knows that everybody started searching
their backpack for things to smoke.


Lotus Knows you should NOT smoke the
silica gel pack in the backpack.


Lotus Knows that xTalk did not win the
Lotus Award for best individual OpenSource contribution.


Lotus Knows that it came second.

Lotus Knows the ‘Worst Practices’ session
was very popular.


Lotus Knows I need coffee but there
is none to be found.


Lotus Knows the product showcase seems
very empty this year.


Lotus Knows that Rock Band is NOT JamFest

Lotus Knows that the UKLUG/ILUG party
is packed.


Lotus Knows that Shulas lost out on
the deal to host that party.


Lotus Knows I’m tired already and it’s
only Monday.

Day 2 : Tuesday

Lotus Knows I’ll never make a 7am BOF

Lotus Knows I’ll also never make the
breakfast meals.


Lotus Knows it’s time to go to a few
sessions.


Lotus Knows that I just heard my name
called out on stage at a mini keynote


Lotus Knows that its a long walk from
the Dolphin Dining tent to Swan 7-10


Lotus Knows that it’s time to present
BP207 with David Leedy


Lotus Knows that it went really well
( thanks for filling the evals )


Lotus Knows its time for more sessions

Lotus Knows that XPages in 8.5.2 has
some great stuff coming.


Lotus Knows I’ve just seen Ed Brill
for the first time this week.


Lotus Knows that the OpenNTF AGM was
at a bad place/time and not a lot of people showed up


Lotus Knows that OpenNTF has a lot to
do to re-engage the community.


Lotus Knows that the Yaughtsman Steakhouse
was wonderful.


Lotus Knows I’m stuffed.

Lotus Knows it’s time for the engineering
party.


Lotus Knows I’ve just seen Ed Brill
for the second time this week.


Lotus Knows what that smell was outside
the Y&B conference center. ( fresh mulch on the flower beds )


Lotus Knows it’s time to hit the bar
at the Dolphin again.


Lotus Knows they put extra Jager in
our drinks ( Dolphin bar staff are great )


Lotus Knows it’s time to head to bed.

Lotus Knows we’re all getting older.

Day 3 : Wednesday

Lotus Knows I’ll never make a 7am BOF

Lotus Knows I’ll also never make the
breakfast meals.


Lotus Knows it’s time to go to a few
sessions.


Lotus Knows that I’m really looking
forward to working with XPages in 8.5.2


Lotus Knows that 8.5.2 Xpages is really
going to change the game.


Lotus Knows that lunch today was actually
pretty good.


Lotus Knows it’s time to give the repeat
of BP207 with David Leedy


Lotus Knows it was silly scheduling
it against another XPages session in the next room.


Lotus Knows it still went pretty well
( thanks for filling in the evals )


Lotus Knows who’s eval said our demos
were too long and complex ( there were no demos )


Lotus Knows it’s time for more sessions.

Lotus Knows that you can walk from Swan/Dolphin
to Hollywood Studios


Lotus Knows that a LOT of people walked
over


Lotus Knows that they wanted people
to take the busses


Lotus Knows there were still disney
guests in the parks at 8pm


Lotus Knows it was a bit of a screwup
on Disney’s part for not having the park cleared.


Lotus Knows it’s still a great park.

Lotus Knows I’m tired.

Day 4 : Thursday

Lotus Knows I’ll never make a 7am BOF

Lotus Knows I’ll also never make the
breakfast meals.


Lotus Knows it’s time to go to a few
sessions.


Lotus Knows that Thursday is a bit of
a slack day for many


Lotus Knows that I need to get on stage
for the Gurupoluza session.


Lotus Knows I actually got to answer
a question onstage.


Lotus Knows it’s a long walk back to
Dolphin to pickup a box lunch


Lotus Knows the really nice cookie is
back in the box lunch this year ( yum )


Lotus Knows it’s a long walk back to
the swan for Ask the Developers.


Lotus Knows I asked them a question
on XPages documentation


Lotus Knows that the answer is that
it’s coming in a future release.


Lotus Knows it’s a long walk back to
the Dolphin for the Closing Session.


Lotus Knows my legs are tired, my feet
are tired, etc.


Lotus Knows why they don’t just hold
the last three sessions in the Dolphin.


Lotus Knows the closing session was
only ok this year.


Lotus Knows the guest speaker was interesting
but not very engaging.


Lotus Knows it’s time to get on the
main stage for the blogger photo


Lotus Knows it’s over for another year.

Lotus Knows I need a vacation after
a busy week.

Lotus Knows I’m going on a cruise in
a few days.

Lotus Knows I’ll be back again next
year…..

Tagged with:
Posted in Uncategorized

New OpenNTF project now available : fileSendr

We’ve all seen it happen, a user tries
to send a 100MB file to somebody via email, probably to a customer or client
that needs to get the file today and what happens… well the file gets
bounced back because the customer/client has a restriction on their mail
gateway against attachments that are bigger then a prescribed size.

Normally this results in a frantic call
to the IT department telling you to fix the problem because the customer
needs the file 10 minutes ago or we lose a whole load of business revenue,
of course the person calling you doesn’t care about the fact that the problem
is actually on the customer’s email system, they just want it done now.

There are a couple of solutions, you
could put the file up on an FTP site and then send the customer details
about how to log in. This assumes that the customer knows what FTP is,
or you could upload the file to an external service like YouSendIt or SendThisFile,
the customer then gets an email with a link that they can click to download
the file.

Have you looked at YouSendIt or SendThisFile?
It sounds like a great idea until you see how much they charge for enterprise
plans and branding, and then you also have the security conscience person
who asks how safe it is to have company files sitting on a server in ‘the
cloud’ where they could be hacked etc.

That’s where fileSendr comes in. It
is an XPages based Domino application that duplicates the functionality
of the YouSendIt/SendThisFile type systems, but because it is running on
your own servers you have a little more control over who can put files
onto it and even control how long files will stay on the system.

The initial release of fileSendr on
OpenNTF is a very basic version of the service. You have the ability to
upload files, send the notifications and then have the notified person
download the files. Future versions will introduce a number of extra features,
like the ability to see if the files have been downloaded, track to see
if the recipient even opened the email notification and so on. It is a
work in progress and best of all it is Open Source, licensed under the
Apache Public License V2 and FREE.

Check it out… fileSendr on OpenNTF

Tagged with:
Posted in None
Archives