358 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Latest 7 Posts
Mail Merge with XPages
Fri, Dec 12th 2014 199
Command line mail merge
Fri, Dec 12th 2014 139
Application Migration vs. XPage enablement
Mon, Dec 1st 2014 297
Poking around the iNotes HTTP API (Part 3) - retrieve a message
Sun, Nov 30th 2014 148
Poking around the iNotes HTTP API (Part 2) - Fun with Rhino
Thu, Nov 27th 2014 191
Poking around the iNotes HTTP API (Part 1)
Mon, Nov 24th 2014 295
Flashcards - German Version: Die Lernkartei
Sun, Nov 23rd 2014 181
Top 10
Domino Development - Back to Basics - Part 5: Finding data - Collections and Search
Thu, Jan 2nd 2014 690
A peek in my JavaScript Toolbox
Fri, Nov 14th 2014 311
Last usage of a mail file - for all users
Fri, Nov 21st 2014 308
Application Migration vs. XPage enablement
Mon, Dec 1st 2014 297
Poking around the iNotes HTTP API (Part 1)
Mon, Nov 24th 2014 295
Custom REST service in XPages using a service bean
Wed, Oct 22nd 2014 286
Building a shared approval frontend in XPages
Sun, Nov 16th 2014 280
Mustache Helper for Domino
Sun, Nov 16th 2014 275
Dear SingTel, please fix your routing performance!
Wed, Apr 24th 2013 255
Providing user information in JSON
Thu, Nov 20th 2014 223


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



Recent Blog Posts
199


Mail Merge with XPages
Fri, Dec 12th 2014 7:11p   Stephan H Wissel
Being able to have individualized letters based on a template was one of the drivers to make Word processors popular. In the age of mass-communication of one. This tasks falls no longer to the printer, but your eMail processor. For a complete solution, check out Chris Toohey's excellent Mailer application, that is yours for USD 5.00 only. I was wondering what it would take to build something similar, minus the address management, in XPages. I defined a few constraints: I don't want to store [read] Keywords: domino ibm richtext xpages application email java openntf wiki
139


Command line mail merge
Fri, Dec 12th 2014 7:11p   Stephan H Wissel
As shown before mail merging with Notes and {{mustache}} is simple and easy to code. To be able to run merging on the command line, I modified the bean and removed the XPages dependency and added a static main function. Now you can run it off the command line easily. It requires 5 parameters: the database name the CSV file a file with a HTML message including {{mustache}} tags a file with a Text message including {{mustache}} tags The senders eMail [read] Keywords: ibm notes xpages database email
297


Application Migration vs. XPage enablement
Mon, Dec 1st 2014 5:12a   Stephan H Wissel
In a recent customer discussion a claim was made: "If Notes client application don't automagically can be converted into XPages applications, then we very well can migrate to another platform, it is just the same". An interesting claim, I'll subject it to a reality check. In any case it is a good idea to revisit your investment in your existing applications first. XPages Enablement A reasonable estimate for the required effort is up to 30% of the initial effort. It very much depends on the [read] Keywords: domino ibm lotus notes notes client xpages application applications bug mobile security
148


Poking around the iNotes HTTP API (Part 3) - retrieve a message
Sun, Nov 30th 2014 9:15p   Stephan H Wissel
So far we learned about the URLs, how to retrieve the Outline that contains folders and views and how to utilize JavaScript to deal with an API tha hadn't been designed for language neutral access. This part will deal with the retrieval of messages. There are quite some formats, strategies and tweaks to consider: A message consists of headers (fields), and message parts that can be plain text, HTML, embedded images, attachments or other stuff (like the JSON used for embedded experiences). When [read] Keywords: ibm inotes notes css java javascript network
191


Poking around the iNotes HTTP API (Part 2) - Fun with Rhino
Thu, Nov 27th 2014 10:15a   Stephan H Wissel
The iNotes HTTP API wasn't designed for consumption outside the iNotes web client. This becomes apparent when looking at Form=l_GetOutline_JSON or Form=l_JSVars that return JavaScript and not JSON! The difference? JSON contains data only, while JavaScript contains function definitions too. To make use of data included in the JavaScript there are 2 possibilities: do some elaborate String operation actually run JavaScript Since Java 6, the JDK contains a JavaScript engine, that originally was de [read] Keywords: ibm inotes notes java javascript
295


Poking around the iNotes HTTP API (Part 1)
Mon, Nov 24th 2014 11:12a   Stephan H Wissel
With the rise of web applications, something interesting happened: applications gained an observable API. Delivered over HTTP(s) with a few commands (GET, POST etc.) it became easier to find out "what is going on". Tools like Wireshark, Fiddler, Charlesproxy or TCPMon sit between your HTTP consuming client and the HTTP generating server. In browser applications the build in developer tools (Ctrl-Shift-I) provide the same level of access. So anything flowing over HTTP is effectively an API. Th [read] Keywords: ibm inotes ldd lotus notes applications google server twitter
181


Flashcards - German Version: Die Lernkartei
Sun, Nov 23rd 2014 6:12a   Stephan H Wissel
The offspring and SWMBO had an argument about the need for Chinese tuition when attending Singapore's oldest school. You can guess who had what position. Disecting the positions and looking at interest (you remember your basic negotiation skills, do you?) it boiled down to the wish of self directed learning vs. fear of failure. Having gone through both (I remember my Latin tuition teacher well. I loathed him and in return he pushed me within 6 month from F to A), I concluded: self direction ne [read] Keywords: application google wiki




308


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
223


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
280


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




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