357 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
From XML to JSON and back
Fri, Jul 11th 2014 94
The folly of root cause analysis
Wed, Jul 9th 2014 136
Documents vs eMails
Fri, Jul 4th 2014 292
The taxi loyalty program isn't working and how to fix it
Mon, Jun 16th 2014 163
Let's ditch IBM Notes and Domino
Thu, May 29th 2014 650
Value, Features and Workflows
Mon, May 12th 2014 232
You want to move to Domino? You need a plan!
Thu, Apr 17th 2014 401
Top 10
Domino Development - Back to Basics - Part 5: Finding data - Collections and Search
Thu, Jan 2nd 2014 823
Let's ditch IBM Notes and Domino
Thu, May 29th 2014 650
Domino Development - Back to Basics - Part 7: Map Reduce Domino Style
Wed, Feb 12th 2014 476
Download Connect 2014 presentation files
Tue, Feb 4th 2014 449
Numbers are numbers, you have to see it! - Selenium edition
Sat, Feb 15th 2014 442
CRM > Sales Tracking
Sun, May 5th 2013 439
What is your investment in Notes applications - revisited
Tue, Feb 25th 2014 438
MongoDB to switch to IBM storage backend
Tue, Apr 1st 2014 433
Domino Development - Back to Basics - Part 6: Better save than sorry - Security
Tue, Feb 4th 2014 427
You want to move to Domino? You need a plan!
Thu, Apr 17th 2014 401


Preparing for a boring flight - XPages.tv offline (Extract media from a feed)
Stephan H Wissel    

David Leedy provides us with the incredible useful Notes in 9 (a.k.a XPages.tv) tutorials and insights about XPages and Notes. The feed with all the videos is hosted by feedburner. To enjoy them while off the grid you can subscribe to them using iTunes, but that's for Warmduscher .
I'll show you how to use curl and a shell script (easy to translate to a cmd file):
  1. First you download the feed: curl -G -L -o notesin9.xml http://feeds.feedburner.com/notesin9/iTunes
  2. Run the transformation: XSLT notesin9.xml feedburner2curl.xslt getXPagesTV.sh (on Windows you would use .cmd)
  3. Make the script executable: chmod +x getXPagesTV.sh
  4. Fetch the movies: ./getXPagesTV.sh
This technique works for any media RSS feed (ATOM wouldn need a different XSLT), so it is worth to be added to the toolbox. There are a few moving parts (which you should have anyway): You need to have curl and a XSLT shell script (that uses a little jar file) as well as the stylesheet to convert the feed into a command file. The XSLT command file looks like this:
#!/bin/bash
notify-send -t 500 -u low -i gtk-dialog-info "Transforming $1 with $2 into $3 ..."
java -jar /home/stw/bin/XSLTHelper.jar $*
notify-send -t 1000 -u low -i gtk-dialog-info "Extraction into $3 done!"
(where only the line with "java..." is relevant, the rest is eye candy). The XSLT stylesheet isn't much more complicated (the statements are in one line each, so check the download version to get them right):
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:media="http://search.yahoo.com/mrss/"
   version="2.0">
   
    <xsl:output indent="no" method="text"/>
   
    <xsl:template match="/">#!/bin/bash<xsl:apply-templates select="//media:content" /></xsl:template>
   
    <xsl:template match="media:content">
        curl -C - -G <xsl:value-of select="@url"/> -L -o <xsl:value-of select="reverse(tokenize(@url,'/'))[1]"/>
    </xsl:template>
   
</xsl:stylesheet>
The only interesting part is reverse(tokenize(@url,'/'))[1] which I use to get the file name - basically the String after the last /. "tokenize" and "reverse" need a XSLT 2.0 processor.
As usual YMMV

---------------------
http://feedproxy.google.com/~r/Wisselnet/~3/jlYcW3iq-M4/SHWL-8RZKH7
Mar 02, 2012
85 hits



Recent Blog Posts
94


From XML to JSON and back
Fri, Jul 11th 2014 8:12p   Stephan H Wissel
In the beginning there was csv and the world of application neutral (almost) human readable data formats was good. Then unrest grew and the demand for more structure and contextual information grew. This gave birth to SGML (1986), adopted only by a few initiated. Only more than a decade later (1998) SGML's offspring XML took centre stage. With broad support for schemas, transformation and tooling the de facto standard for application neutral (almost) human readable data formats was established [read] Keywords: application java javascript server wiki xml xslt
136


The folly of root cause analysis
Wed, Jul 9th 2014 6:12a   Stephan H Wissel
IT support's dealing with management is a funny business. Whenever something goes wrong, support teams engage in "defensive blaming" and the elusive quest for a root cause. I've seen this quest (and blaming god and country along the way if it doesn't appear) taking priority over problem resolution and prevention. The twisted thought is: "If I'm not sure about the (single) root cause, I can't neither fix nor prevent it from happening again". Why is that a folly? It paralyses: If a pe [read] Keywords: application database google wiki
292


Documents vs eMails
Fri, Jul 4th 2014 6:14a   Stephan H Wissel
With a public sector customer I had an interesting discussion on non-repudiation, messaging and regulatory control. We were discussing how to ensure awareness of information that has behavioural or legal consequences. While "I didn't know" is hardly a viable defence, relying on the other party to keep themselves updated is just asking for trouble. In a collaborative environment, where a regulator sees itself primarily as the facilitator of orderly conduct and only as policing the conduct as s [read] Keywords: domino database email microsoft server wiki xml
163


The taxi loyalty program isn't working and how to fix it
Mon, Jun 16th 2014 10:11a   Stephan H Wissel
Singapore is a little like New York: train and taxis are a mainstay of the daily commute. So the taxi market is highly regulated and fiercely competitive. As no surprise taxi companies try to bind customers before they loyalty switches to alternative bookings or the disruptors. So Comfort & CityCab started CabRewards. After all loyalty cards work well for their inventor. In a smart move, instead of creating a new piece of plastic, Comfort teamed up with ezLink Singapore's leading provider [read] Keywords: admin administration application mobile wiki
650


Let's ditch IBM Notes and Domino
Thu, May 29th 2014 7:11p   Stephan H Wissel
Finally you decided it is time to move on, legacy no longer means "tried and tested" but "we need to move one" to you. After all you never really liked Cher. Notes data is available via LotusScript, dotNet (through the COM bridge), in Java, Corba, C++, XML, REST, MIME, so how hard can it be? Actually not very hard, you just need to: Find sutiable replacement application platform(s) Rewrite the applications (don't dream: there is no such thing as "migrate an app") Migrate your users Migr [read] Keywords: domino ibm lei lotusscript notes richtext xpages application applications community database db2 enterprise google integration java linux mobile server wiki xml
232


Value, Features and Workflows
Mon, May 12th 2014 6:11a   Stephan H Wissel
In sales school we are taught to sell value. Initially that approach was designed to defang the threat of endless haggling over price, but it took an extra twist in the software industry. Since software companies rely on user's desire to "buy the next version" to secure revenue from maintenance and upgrade sales, a feature war was the consequence. As a result, buyers frequently request feature comparison tables, driving the proponents of "value & vision" up the wall. It also creates te [read] Keywords: ibm notes application archive email outlook server wiki




401


You want to move to Domino? You need a plan!
Thu, Apr 17th 2014 6:12a   Stephan H Wissel
Cloud services are all en vogue, the hot kid on the block and irressitible. So you decided to move there, but you decided your luggage has to come along. And suddenly your realize, that flipping a switch won't do the trick. Now you need to listen to the expert. The good folks at Amazon have compiled a table that gives you some idea how much it would take to transfer data: Available Internet Connection Theoretical Min. Number of Days to Transfer 1TB at 80% Network Utilization T1 [read] Keywords: domino ibm xpages database java microsoft network office wiki
347


Domino Design Pattern: Secret documents
Thu, Apr 17th 2014 6:12a   Stephan H Wissel
Domino's stronghold is security. However security is only as good as you design it. A frequent requirement in applications is to store a data set that is partially confidential and partially available for a wider audience. When you store these 2 data sets in one document, it isn't too hard to have the confidential information slip out: using the document properties in a Notes client using the document rest service the property control from openNTF In a nutshell: if you have 2 sets of data [read] Keywords: agent domino notes notes client xpages application applications openntf properties security
263


SmartCloud Notes little agent helper
Wed, Apr 16th 2014 9:11p   Stephan H Wissel
Now that we all drank the Cloud Computing CoolAid, we need to make it work. IBM's SmartCloud Notes looks enticing, since it offers 25G of eMail storage, way beyond what IT departments usually want to commit. SmartCloud Notes even allows you customisation albeit within clear limits. So before you upload your extension forms you need to plan well. One of the most unpleasant restrictions is: "No customer agents or scripts will be executed on server ", so no agent, no DOLS tasks. However you ca [read] Keywords: agent domino ibm inotes ldd lotus notes application eclipse email facebook interface java javascript server xml
230


Mustache and CKEditor - Round two
Mon, Apr 14th 2014 9:11a   Stephan H Wissel
ving just a few static values in the CK Editor drop down list really doesn't cut it. So we extend the bean today to have more flexible options. There are a few that spring to mind: List of all items in a given document List of all fields in a form (including subforms), eventually with or without the $ fields List of provided field names So here we go: Mustache and CKEdit demo The big change here is the replacement of the EL Expression mustache.sampleData wit [read] Keywords: ibm xpages database java javascript xml




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition