361 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Last usage of a mail file - for all users
Fri, Nov 21st 2014 160
Providing user information in JSON
Thu, Nov 20th 2014 131
Building a shared approval frontend in XPages
Sun, Nov 16th 2014 208
Mustache Helper for Domino
Sun, Nov 16th 2014 204
Karma and Wealth
Sat, Nov 15th 2014 141
A peek in my JavaScript Toolbox
Fri, Nov 14th 2014 246
Custom experience for IBM Connections Cloud - Project Muse
Wed, Nov 12th 2014 134
Top 10
Domino Development - Back to Basics - Part 5: Finding data - Collections and Search
Thu, Jan 2nd 2014 346
A peek in my JavaScript Toolbox
Fri, Nov 14th 2014 246
Custom REST service in XPages using a service bean
Wed, Oct 22nd 2014 227
Building a shared approval frontend in XPages
Sun, Nov 16th 2014 208
Mustache Helper for Domino
Sun, Nov 16th 2014 204
Dear SingTel, please fix your routing performance!
Wed, Apr 24th 2013 168
Last usage of a mail file - for all users
Fri, Nov 21st 2014 160
Karma and Wealth
Sat, Nov 15th 2014 141
Custom experience for IBM Connections Cloud - Project Muse
Wed, Nov 12th 2014 134
Providing user information in JSON
Thu, Nov 20th 2014 131


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
16 hits



Recent Blog Posts
160


Last usage of a mail file - for all users
Fri, Nov 21st 2014 8:18a   Stephan H Wissel
My admin is getting a little rusty. When I was asked: "How can I indentify a dormant mailbox?" I couldn't name a place in admin where to look. Of course, there is the NotesDatabase.LastModified property, but that would get updated on a design refresh too. So I asked innocently: "dormant, how?" After an amusing 2 hour discussion between the stake holders (only the popcorn was missing) we concluded that it is either No document has been created for a while (including incoming) No email has [read] Keywords: admin ibm lotusscript notes email
131


Providing user information in JSON
Thu, Nov 20th 2014 5:12a   Stephan H Wissel
In the MUSE project we encountered the need to retrieve user information in JSON format. Easy done one would think. The trouble starts, when you have multiple directories and you need reasonable speed. Sometimes falling back to @Fomulas gives you what you need, fast and easy. @NameLookup knows where to look and you don't need any extra configuration. A simple call to an form will give you all you need: https://yourserver/somedb.nsf/namelookup?Readform for yourself or add &User=John Doe for [read] Keywords: domino dxl ibm email
208


Building a shared approval frontend in XPages
Sun, Nov 16th 2014 8:18p   Stephan H Wissel
The saying goes: "God would not have been able to create the world in 7 days, if there would have been an installed base to take care of". As much as we wish to have divine powers, we need to make with less and look after an installed base. Point in case: You have a set of approval applications in classic Notes client code, like: Travel, Leave, Expenses, Gifts, Training, BoM changes etc. You are challenged to provide a web and/or mobile interface for them. Considering your options you have to [read] Keywords: lotusscript notes notes client policies xpages application applications development interface java mobile wiki
204


Mustache Helper for Domino
Sun, Nov 16th 2014 10:18a   Stephan H Wissel
Previously we had a look, how to use Mustache with the CKEditor to have an editing environment for templates. I glossed over the part where to store and how to use these templates. Let me continue there. I'll store the template in Notes documents and use an application managed bean to transform a document (and later other things) using these templates. I have 2 use cases in mind: one is to allow the configuration of HTML notification messages in applications and the other to configure the dis [read] Keywords: agent domino ibm notes xpages application applications database java xml
141


Karma and Wealth
Sat, Nov 15th 2014 11:19p   Stephan H Wissel
Karma has gotten some attention lately, while I muse it for some time. The common short explanation is "What goes around comes around" or in other words: "Every action (or inaction) you take has consequences, you ultimately will be confronted with". We are reminded by various spiritual traditions , that nothing good can come from a bad deed and that good deeds will yield (in mysterious ways, somewhen) good results. This is where the trouble starts. Our and the mystic perceptions what is "g [read] Keywords: wiki
246


A peek in my JavaScript Toolbox
Fri, Nov 14th 2014 5:19a   Stephan H Wissel
Every craftsman has a toolbox, except developers: we have many. For every type of challenge we use a different box. Here's a peek into my web front-end programming collection. It works with any of your favorite backends. In no specific order: AngularJS one of the popular data binding frameworks, created by Google engineers. With a focus on extensibility, testability and clear seperation of concerns it allows to build clean MVC style applications Data Driven Documents short: D3JS. If anything n [read] Keywords: ibm application applications community database eclipse google integration javascript server twitter wiki
134


Custom experience for IBM Connections Cloud - Project Muse
Wed, Nov 12th 2014 8:19a   Stephan H Wissel
The old saying goes: "You can't have your cake and eat it too". When organisations move computing from servers they control into a SaaS (the artist formerly known as ASP) environment, they swap customisability for configurability and standardisation. The idea is, that a vendor controlled cloud environment benefits from both the economy of scale as well as the frequent updates the claimed DevOps model brings. But you can have both. One of IBM's best secret are the assets that the IBM Softwar [read] Keywords: atlas collaboration connections ibm lotus application linkedin twitter wiki xml




110


LifeBEAM helmet first impressions
Wed, Nov 5th 2014 10:12a   Stephan H Wissel
After quite a wait (they were sold out) my LifeBEAM helmet arrived today. The helmet is based on a Lazer design. Here are my unpacking impressions: There are no experiments on the box. Black always has been the new black. [read] Keywords:
121


Enterprise architecture - from Silos to Layers
Wed, Nov 5th 2014 9:11a   Stephan H Wissel
In a recent discussion with a client the approaches and merits of Enterprise Architecture took center stage. IBM for a very long time proposed SOA (service oriented architecture) which today mostly gets implemented in a cloud stack. While it looks easy from high enough above, the devils is in the details. Mostly in the details how to get there. The client had an application landscape that was segmented along a full stack development platform with little or no interaction between the segments or [read] Keywords: ibm notes application applications development enterprise sap soa wiki
227


Custom REST service in XPages using a service bean
Wed, Oct 22nd 2014 6:11a   Stephan H Wissel
Talking to your backend using JSON and REST is all the rage for contemporary development. Domino has supported, at least reading, this access for quite a while using ?ReadViewEntries[&OutputFormat=JSON]. Using Domino Access Services (DAS) this has been extended to read/write support for documents as well. However, as a result, your front-end application now needs to deal with the Domino way to present data, especially the odd use of @ in JSON keys (which e.g. jquery isn't fond of). [read] Keywords: domino ibm ldd lotus xpages application database development javascript openntf wiki xml




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