TexasSwede
texasswede@gmail.com
  • About this blog
  • My Website
  • My Resume
  • XML Export Tool
  • Photos

SIUED – MyDefrag

Posted on November 21, 2010 by Karl-Henry Martinsson Posted in Old Blog Post Leave a comment

MyDefrag_LogoI may not use MyDefrag every day, but almost daily, so I place it in the category "Stuff I Use Every Day". I use it at work, at home and I also install this small and free program on every computer I build/rebuild for my friends.

As the name indicate, it is a harddisk defragmentation program. It is, like most other free and commercial defragmentation programs, using the Windows defragmentation API, so it should be quite safe.

The program is simple to you. It comes with a number of scripts that are sufficient for most users, but the advanced user can write his/her own scripts.The user interface is minimalistic as well. You select the kind of defragmentation you want and then select one or more drives to process:

MyDefrag_screen1 

The screen displaying the progress of the defragmentation is simple. You can hover over files and see their names and what part of the harddisk they occupy. You can also zoom in and out, making it easier to see the files.

MyDefrag_screen2 

In short, a very capable and easy to use free program.

 

My next server at home?

Posted on November 19, 2010 by Karl-Henry Martinsson Posted in Old Blog Post Leave a comment

The other day I went to my local Fry’s store (a chain similar to Best Buy, but with much fewer locations and many more products/components in stock), and I saw the case I want for my new server at home. Not only is it quiet (according to the reviews), but it also looks good:

GriffonCaseYellow 
It also is sale for $39.95 right now!

I have been thinking a while about building a new server at home, to host my personal Domino server and possibly a few other servers (Sametime? BES Express?), just so I can play around with new technology. The network admin here at work suggested that I use the free XenServer. So I might just do that. It is always fun to learn new things.

 

Free Application Template/Framework for Notes

Posted on November 18, 2010 by Karl-Henry Martinsson Posted in IBM/Lotus, Notes/Domino, Old Blog Post, Programming 2 Comments

Many of my Notes application have a similar/the same look, based on a generic application template I created a while back.

The standard look makes the users feel at home when I deploy a new application, and the template makes life easier for me. If I create a new application based on that template, I already have the frameset, navigator and a few design element done before I even start the development.

Below is a screenshot of what it looks like in the Notes 8.5.2 client:

GenericTemplateScreenshot

 

I want to share the template with the Lotus community, as a small way of giving back.
I may add more things to it later, I will post any modifications here as well.

Click here to download the file.

Update: Download link fixed now.Thanks Hynek for pointing it out!

 

I still learn new things…

Posted on November 17, 2010 by Karl-Henry Martinsson Posted in Old Blog Post Leave a comment

I have been writing Notes applications since late 1996/early 1997, and been a full time Notes developer since December 1997. But I still find out new things.
I have been using lists for several years now, and as you may know, the easiest way to loop though a list is to use the ForAll statement:

Dim mylist List As String 
mylist("1st") = "First list item" 

mylist("2nd") = "Second list item" 

ForAll

m In mylist 

Print ListTag(m) & " is " & m 

End ForAll 

 

Sometimes I have to loop through an array of unknown size, and in the past I would have done something like this:

Dim

myarray(1) As String 

Dim

i As integer 

myarray(0

) = "First array item"

myarray(1

) = "Second array item" 

For i = LBound(myarray) To UBound(myarray) 

Print i & " is " & myarray(i) 

Next 

 

But just a couple of weeks ago, I was wondering if perhaps I could use ForAll statement to koop through an array as well. I looked in the online help, and sure think, the help indicated that it was indeed possible:

Dim

myarray(1) As String 

myarray(0

) = "First array item" 

myarray(1

) = "Second array item" 

ForAll

m In myarray 

Print m 

End ForAll 

Shorter and you save a variable and a couple of function calls. I doubt it does much for actual code execution, but the code is cleaner and easier to read.

Hope this little tip can help someone!

 

Licensing that hurt everyone

Posted on November 17, 2010 by Karl-Henry Martinsson Posted in Old Blog Post Leave a comment

Recently I blogged about using N2PDF to create PDF documents in the background from Notes documents. I mentioned that Softvision does not have a developer license, forcing me to either pay 5,200 ($7,000) for another server license (which my employer will not do), or to download the demo version every 30 days and register with a new email account (which costs me time and aggravation).
It would have been so easy to create a special non-expiring version, but which still display the water mark that prevent you from using it in production. Or why could the water mark not display "N2PDF Developer License" and the company name instead of just "N2PDF Demo Version"? I think my company would even been willing to pay $500 for a developer license like that.

The second example of a bad license is from NotesMedic from Cassetica. It’s a good tool (if somewhat bloated in the latest version), and it is free for home users. If I would use it at work, I need a Enterprise license. There are no single license for corporate customers, I have to pay the full $15,999 (yes, almost 16 thousand dollar!) to be allowed to put it on my work computer. If we would install it for every single user at my work, that’s about $50/user, which is not too bad. But we only need it on a handful computers. Why not have an inexpensive license for corporate single users, without support, that can be purchased using a credit card or PayPal?

In both cases, the customer get hurt (can’t get the functionality needed) as well as the manufacturer (who is missing out on a sale). I just don’t get it.

 

Notes is just a tool – but very powerful, partially thanks to the community

Posted on November 17, 2010 by Karl-Henry Martinsson Posted in Old Blog Post Leave a comment

On several blogs there have been postings and discussions about Notes development and if someone not embracing Xpages is "Amish". I know there are some people in the Lotus community who work with several different technologies, and even some who have switched to other platforms for different reasons.

Personally I echo what Eric Mack said. Lotus Notes is just a tool. It is what you make of it. But from what I have seen, Notes is an extremely powerful tool in comparison with other development tools. The other evening I sat down with a good friend of mine. She is a web and graphics designer (working with Flash, PHP, MySQL, etc), and she have developed her fair share of websites. I pulled up Domino Designer and created a very quick and simple application. Just one form with a few fields, then three views, categorized on different fields in the documents. I added Save and Close buttons to the form, a New button in the view, and then created a couple of sample documents. I then showed her how I could modify the design of the form, and all existing documents now had that change. Fin ally I opened a web browser, navigated to the database and showed her how it worked in two different clients with no additional changes. Things that we Notes developers take for granted and use every day.

She was very impressed. It took me about 6-7 minutes to do everything above (I did it slow and explained all the steps to her, and answered some questions along the way). I then challenged her to do the same simple application using any tools of her choice in less than 60 minutes (ten times what I needed in Notes). She will make an attempt later this week, she said.

So Notes makes me very efficient as a developer. It is truly a RAD tool. Both as in "Rapid Application Development" and as in the slang expression.

But as Volker writes: "It’s all about the people, not the software". This is very true. Over the years I have met a large number of great people from the Lotus community, mostly at Lotusphere, but also at IamLUG. I consider many of them my friends, even if we just meet once a year in Orlando. During the year I keep up with them by reading their blogs, following them on twitter and Facebook and occasionally message them on Sametime if I have some question. Lotus Notes and Domino would simply not be the same thing without the community.

I am the only Notes developer in my organization, and it is hard. I don’t really have any peers to talk to, something I think is true for many Notes developers in small or medium size companies. Because we are so efficient at building applications using Domino Designer, there is not a need for huge staffs of Notes developers. So Lotusphere is the time of year I can talk shop with people who know the product, and where I can absorb ideas and new ways to approach development. Every year I come back to work with my head full of new ideas, things I can improve or add to existing applications and even brand new applications that would help our users. All thanks to the Lotus community. So I consider the community something that makes Notes an even more powerful tool.

Now to the bad news. I may not be able to go to Orlando in January. It is still up in the air, but I heard rumors that the $3,600 it would cost (conference fee, airfare and hotel) is considered too much by some people at my work. I guess we will see what happens.

 

Facebook going Vulcan?

Posted on November 16, 2010 by Karl-Henry Martinsson Posted in Old Blog Post Leave a comment

I just watched a video from CBS (see below) about Facebook Messages (formerly "Project Titan"), which was presented yesterday. From the description it sounds very much like what IBM said about "Project Vulcan" back in January at Lotusphere. One single stream where all your email, IM, SMS and other communication shows up. Perhaps they will support RSS feeds as well? Just hopeFarmville and all those other games and annoying tests can be filtered out…
What do you think? Sounds like Project Vulcan to you?

More links:

Mashable’s walkthrough with screenshots

Gizmondo article

 

80 Gigapixel London panorama

Posted on November 16, 2010 by Karl-Henry Martinsson Posted in Old Blog Post Leave a comment

This panorama of central London is most impressive. The amount of detail is astounding!

360cities.net have more panoramas like this, if not as big.

 

Creating PDF files from Notes documents

Posted on November 15, 2010 by Karl-Henry Martinsson Posted in Old Blog Post Leave a comment

For several years, we wanted to create PDF documents from documents stored in several Notes databases/applications. I created a solution using a PDF printer driver, but as Lotusscript can only print using the frontend classes, this required the printing agent to be launched manually by a user. Several of the agents also had to print to a physical printer in addition to creating a PDF, meaning that my agent had to switch printers. I was using Win32 API calls to do this, as the clients were on 5.0.12 initially, then 7.0.2. Specifying a printer in uidoc.Print() did not come until 7.0.3…

This system worked, but took a lot of time, and required some spare desktops to be setup just to process all those documents. For several years I had been researching products that could help us, and the only one I found that looked really promising was N2PDF from SoftVision in Germany. The only issue was the price, EUR 5,200 ($7,100) per server. We only needed this on one server, and eventually we were able to get approval for this, after I calculated that we would save about 80 hours of work/waiting each month by getting this product.

I downloaded the 30 day trial version of N2PDF and tested it, and I was amazed at how easy it was. Just a few lines of code added to my agents and the PDF files were created. The documentation shipped with the product (in PDF format, of course) is good. We purchased the software and I started rewriting a number of agents designed to run using frontend classes on the client to run using backend classes on the server.
I created a simple class as a wrapper around the N2PDF functionality I needed. I also added code in that class to print a PDF file directly to a physical printer. I will do a write-up of this here later today.

 

I ran into some issues with the product, though. N2PDF supposedly read the Notes document and convert it into RTF format (according to SoftVision tech support), and items that are invisible in the Notes client (e.g. the space before and after a table) are rendered by N2PDF. Also things like having a small centered table inside a table cell in another table will not work, the centering will not be honored. Therefore I had to modify several forms to produce identical results in N2PDF and in Notes.

SoftVision seems to have a very competent tech support, I talked to Marcus there, and he was on the issue, did his investigations and got back to me very quickly when he had to find something out.

 

I know there are other ways to create PDF files, but those involve writing your own code, using Java libraries, etc. But N2PDF was perfect for our purpose. The only issues were the rendering problems mentioned above, and that they do not have a developer license. In order to avoid having to purchase a full EUR 5,200 license for my development server, SoftVision suggested that I download the 30 day trial once a month (when it expires) and register for new demo keys. The demo version put a water mark on the files created, why could there not be a developer licence for say $250 or $500 that also put a water mark on each file. Basically a non-expiring demo version. I can’t be the only Notes developer working on a development and/or test server before putting code in production…

 

Disclaimer: Product purchased by work.

 

Fall in Texas

Posted on November 14, 2010 by Karl-Henry Martinsson Posted in Old Blog Post Leave a comment

Yesterday I took a walk along a nature trail close to where I live. I brought my camera, and here are a couple of the pictures.
The color as not as great as in New England or in my native Sweden, but it was still nice to see the bright yellow leaves.

 

Stack Exchange

profile for Karl-Henry Martinsson on Stack Exchange, a network of free, community-driven Q&A sites

Recent Posts

  • Domino 14 is now available
  • Domino 14 Early Access Program
  • Announced: Engage 2024
  • Integrate Node-RED with Notes and Domino
  • Notes and Domino v12 is here!

Recent Comments

  • Theo Heselmans on Announced: Engage 2024
  • Lotus Script Multi-thread Message Box [SOLVED] – Wanted Solution on ProgressBar class for Lotusscript
  • Viet Nguyen on Keep up with COVID-19 though Domino!
  • Viet Nguyen on Keep up with COVID-19 though Domino!
  • Mark Sullivan on Looking for a HP calculator? Look no further!

My Pages

  • How to write better code in Notes

Archives

  • December 2023 (1)
  • October 2023 (2)
  • September 2023 (1)
  • June 2021 (1)
  • April 2021 (2)
  • March 2021 (1)
  • August 2020 (3)
  • July 2020 (2)
  • April 2020 (2)
  • March 2020 (1)
  • December 2019 (2)
  • September 2019 (1)
  • August 2019 (2)
  • July 2019 (2)
  • June 2019 (3)
  • April 2019 (2)
  • December 2018 (1)
  • November 2018 (1)
  • October 2018 (5)
  • August 2018 (2)
  • July 2018 (3)
  • June 2018 (2)
  • May 2018 (1)
  • April 2018 (2)
  • March 2018 (1)
  • February 2018 (2)
  • January 2018 (4)
  • December 2017 (3)
  • November 2017 (2)
  • October 2017 (2)
  • September 2017 (1)
  • August 2017 (2)
  • July 2017 (6)
  • May 2017 (4)
  • February 2017 (1)
  • January 2017 (2)
  • December 2016 (2)
  • October 2016 (3)
  • September 2016 (4)
  • August 2016 (1)
  • July 2016 (2)
  • June 2016 (2)
  • May 2016 (3)
  • April 2016 (1)
  • March 2016 (4)
  • February 2016 (2)
  • January 2016 (4)
  • December 2015 (3)
  • November 2015 (2)
  • October 2015 (1)
  • September 2015 (2)
  • August 2015 (1)
  • July 2015 (5)
  • June 2015 (2)
  • April 2015 (2)
  • March 2015 (3)
  • February 2015 (2)
  • January 2015 (10)
  • December 2014 (1)
  • November 2014 (3)
  • October 2014 (3)
  • September 2014 (13)
  • August 2014 (6)
  • July 2014 (5)
  • May 2014 (3)
  • March 2014 (2)
  • January 2014 (10)
  • December 2013 (5)
  • November 2013 (2)
  • October 2013 (5)
  • September 2013 (4)
  • August 2013 (7)
  • July 2013 (3)
  • June 2013 (1)
  • May 2013 (4)
  • April 2013 (7)
  • March 2013 (8)
  • February 2013 (9)
  • January 2013 (5)
  • December 2012 (7)
  • November 2012 (13)
  • October 2012 (10)
  • September 2012 (2)
  • August 2012 (1)
  • July 2012 (1)
  • June 2012 (3)
  • May 2012 (11)
  • April 2012 (3)
  • March 2012 (2)
  • February 2012 (5)
  • January 2012 (14)
  • December 2011 (4)
  • November 2011 (7)
  • October 2011 (8)
  • August 2011 (4)
  • July 2011 (1)
  • June 2011 (2)
  • May 2011 (4)
  • April 2011 (4)
  • March 2011 (7)
  • February 2011 (5)
  • January 2011 (17)
  • December 2010 (9)
  • November 2010 (21)
  • October 2010 (4)
  • September 2010 (2)
  • July 2010 (3)
  • June 2010 (2)
  • May 2010 (3)
  • April 2010 (8)
  • March 2010 (3)
  • January 2010 (5)
  • November 2009 (4)
  • October 2009 (7)
  • September 2009 (1)
  • August 2009 (7)
  • July 2009 (1)
  • June 2009 (4)
  • May 2009 (1)
  • April 2009 (1)
  • February 2009 (1)
  • January 2009 (3)
  • December 2008 (1)
  • November 2008 (1)
  • October 2008 (7)
  • September 2008 (7)
  • August 2008 (6)
  • July 2008 (5)
  • June 2008 (2)
  • May 2008 (5)
  • April 2008 (4)
  • March 2008 (11)
  • February 2008 (10)
  • January 2008 (8)

Categories

  • AppDev (10)
  • Blogging (11)
    • WordPress (5)
  • Design (5)
    • Graphics (1)
    • UI/UX (2)
  • Featured (5)
  • Financial (2)
  • Food (5)
    • Baking (3)
    • Cooking (3)
  • Generic (11)
  • History (5)
  • Hobbies (10)
    • LEGO (4)
    • Photography (4)
  • Humor (1)
  • IBM/Lotus (178)
    • #Domino2025 (14)
    • #DominoForever (8)
    • #IBMChampion (46)
    • Administration (7)
    • Cloud (7)
    • CollabSphere (9)
    • Community (49)
    • Connect (33)
    • ConnectED (12)
    • Connections (3)
    • HCL (15)
    • HCL Master (1)
    • IBM Think (1)
    • Lotusphere (46)
    • MWLUG (25)
    • Notes/Domino (99)
      • Domino 11 (7)
    • Sametime (8)
    • Verse (14)
    • Volt (3)
    • Watson (6)
  • Life (8)
  • Microsoft (7)
    • .NET (2)
    • C# (1)
    • Visual Studio (1)
  • Movies (3)
  • Old Blog Post (259)
  • Personal (23)
  • Programming (84)
    • App Modernization (11)
    • Formula (4)
    • Lotusscript (47)
    • NetSuite (4)
      • SuiteScript (3)
    • node.js (4)
    • XPages (4)
  • Reviews (9)
  • Sci-Fi (4)
  • Software (24)
    • Flight Simulator (2)
    • Games (4)
    • Open Source (2)
    • Utilities (6)
  • Technology (37)
    • Aviation (3)
    • Calculators (2)
    • Computers (6)
    • Gadgets (7)
    • Mobile Phones (7)
    • Science (3)
    • Tablets (2)
  • Travel (7)
    • Europe (1)
    • Texas (2)
    • United States (1)
  • Uncategorized (16)
  • Web Development (50)
    • Frameworks (23)
      • Bootstrap (14)
    • HTML/CSS (12)
    • Javascript (32)
      • jQuery (23)
  • Prev
  • 1
  • …
  • 38
  • 39
  • 40
  • 41
  • 42
  • …
  • 54
  • Next

Administration

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Tracking

Creeper
MediaCreeper
  • Family Pictures
© TexasSwede 2008-2014