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

Monthly Archives: December 2011

Norwegian TV pwned

Posted on December 29, 2011 by Karl-Henry Martinsson Posted in Old Blog Post Leave a comment

The news in the Norwegian TV channel NRK recently talked about testing the vision for elderly, the illustration for the test was picked from teh Internet. Obviously nobody looked closer at it before the broadcast…

NRK PWNED

I am sure most readers of this blog understand what's so funny… The news anchors did not.

 

Ben Langhinrichs does it again (for the 12th time): LS Session database

Posted on December 22, 2011 by Karl-Henry Martinsson Posted in Old Blog Post Leave a comment

For the 12th year, Ben Langhinrichs at Genii Software has created his brilliant Lotusphere Session database.

You can download it here. There are also mobile version in the works from Tim Davis at The Turtle Partnership.

 

Why my next phone will not be a Blackberry

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

I like my Blackberry. I currently have a Blackberry Bold 9700, and I am happy with many things. But it is almost 2 years old and it is time to look for a replacement. And after almost 4 years of being a Blackberry user, my next phone will probably be something else.

But why? The Bold has been praised multiple times by people like Vowe. The screen is excellent. It has a real keyboard, and most people (including me) think that is the best physical keyboard on the market. Well, there are several reasons.

I have upgraded the operating system from version 6 5 to version 7 6. However, the new version is not as good as the older one. Some functions are very nice, but at the same time, it uses more memory, and I suspect it got memory leaks left and right. I constantly run out of memory when loading webpages, and I see the clock/hourglass icon way too often. It also locks up frequently, sometimes just for a few seconds, sometimes so hard I have to pull the battery. Talking about pulling the battery, Blackberry users are used to do that in a nearly daily basis, especially if you want to clear the memory. But there is an app for that.

This brings us to another big issue with Blackberry. Apps. Or rather the lack of apps. Yes, there are a number of apps in the Blackberry App World. But if you look at different websites (everything from news to specialized services), chances are that they have an app for iPhone and one for Android. But very few places have an app for Blackberry. Next time you visit a website that offers apps, see what your options are. One app I use all the time is SocialScope, previously only available for Blackberry. But now there is an Android version available as well.

Other issues with Blackberry 7 6 is that the UI looks old. There were no big changes between version 6 5 and 7 6, the icons still looks boring. In BB5 there were a number of themes one could download, and also a tool that let you customize your screen/look (if you were a graphics designer). There are themes for BB6 as well, but my favourite themes did not work after the upgrade and have not been updated.

Then we have posts like this one by Darren Duke and this one by Vowe. The question is if RIM will still be around for the next two years, if I get a new phone from them now…

So it is a combination of all this, together with a wish to get a bigger screen and better performance that makes me consider a different smartphone platform. Personally I do not like being locked in to the Apple eco system. I don't have an iPod, but a MP3 player which can be connected as any other USB device, and my files (in many formats, like mp3, flac, wmv, avi, divx and mpg) can simply be dragged over. I want that for my phone too, to have the freedom to do what I want, use the files I already have.

So my next phone will most probably be an Android. I have been looking at (and reading about) the Google Nexus, but there are a few things that I don't like with it, most of all the lack of expansion (no DS-card support). Samsung Galaxy S II Skyrocket is interesting, as is the new LG Nitro. But I want the latest version of Android, Ice Cream Sandwich, which is still not available on very many phones. So it will be very interestingto see what the lineup looks like after New Years…

Update: I had the wrong OS numbers, it has now been corrected.

 

 

 

 

Script Library Issue

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

For a product that just turned 21, one would expect that all childhood issues were gone. Of course, I am (for now) stuck with a 17 year old slightly temperamental teenager… Anyway, I just ran into a strange issue, related to classes and code inherited from other templates.

Template A contains a script library with a class I wrote, called "AgentLog". It is used to log information about agents running in different databases. So obviously the script library need to reside in each database where I want to do the logging. Let’s say there are two, based on Template B and C. In an attempt to be clever, I simply copied the script library from Template A to Template B and C, and answered "yes" on the question if I wanted to inherit changes when the code in Template A is changed.

I then add some calls to the script library in template B and C, and push the changes out. Everything works great. A week or two later, I decide that I want to add some more info to the logging. I add one public string variable to the class, add a reference to it in one method called Terminate() and add a new method called AddMessage(). The new code is marked in red.

Class AgentLog
Private session As NotesSession
Private logdb As NotesDatabase
Private logdoc As NotesDocument
Private running As Integer
Private tstart As Long  ‘ Ticks at start
Private tend As Long  ‘ Ticks at end
Private tps As Long  ‘ Ticks per second (normally 1000)
Private message As String  ‘ Text to store in log entry, e.g. number of docs processed
 
 Public Sub AddMessage(txt As String)
  Me.message = Me.message + txt
End Sub

Public Sub Terminate()
  Dim seconds As Integer
  If logdoc Is Nothing Then
   Exit Sub
  End If
  tend = Getthreadinfo( THREAD_TICKS )
  seconds = (tend – tstart) / tps
  Call logdoc.ReplaceItemValue("EndTime", Now() )
  Call logdoc.ReplaceItemValue("Seconds", seconds )
  Call logdoc.ReplaceItemValue("Message", message )
  If running = True Then ‘ Check if not terminated gracefully
   Call logdoc.ReplaceItemValue("Terminated", "Yes" )   
  End If
  Call logdoc.Save(True,True)
End Sub

Nothing special, right? I did not even modify New() at all. All this was done in anticipation of adding the additional logging later in Application B and C (based on the templates B and C). The updated Template A was put in production, and the next night the update process refreshed the design of Template B and C with the new code, and they in turn updated Application B and C.

Now the users suddenly got an error message when code using the script library was launched: "Type mismatch on external name: AGENTLOG". I tested it and got the same error. I decided to turn on the debugger to see where exactly it happened. And of course then it worked! Debugger turned off, error again. I recompiled all Lotusscript in the application, and it worked with no debugger on. I then recompiled all code in Template A, refreshed design of Template B and C and recompiled all code in Template B and C. Despite this, the next day we had the same problem…

Finally I ended up not linking the script library from Template A to Template B and C. I will just have to copy it over again every time I make a change to every template where I use it. Anyone got any ideas what the problem might be?.

 

HCL Ambassador 2020

HCL Ambassador 2020

IBM Champion 2014-2020

Stack Exchange

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

Notes/Domino Links

  • Planet Lotus Planet Lotus
  • IBM dW Forums IBM dW Forums
  • StackOverflow StackOverflow

Recent Posts

  • Notes and Domino v12 is here!
  • NTF Needs Your Help
  • Helpful Tools – Ytria EZ Suite (part 2)
  • Busy, busy – But wait: There is help!
  • Semantic UI – An alternative to Bootstrap?

Recent Comments

  • 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!
  • Lynn He on About This Blog

My Pages

  • How to write better code in Notes

Archives

  • 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 (9)
  • 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 (175)
    • #Domino2025 (14)
    • #DominoForever (8)
    • #IBMChampion (46)
    • Administration (7)
    • Cloud (7)
    • CollabSphere (8)
    • Community (47)
    • Connect (33)
    • ConnectED (12)
    • Connections (3)
    • HCL (12)
    • HCL Master (1)
    • IBM Think (1)
    • Lotusphere (46)
    • MWLUG (25)
    • Notes/Domino (97)
      • Domino 11 (7)
    • Sametime (8)
    • Verse (14)
    • Volt (2)
    • Watson (6)
  • Life (8)
  • Microsoft (7)
    • .NET (2)
    • C# (1)
    • Visual Studio (1)
  • Movies (3)
  • Old Blog Post (259)
  • Personal (23)
  • Programming (83)
    • App Modernization (11)
    • Formula (4)
    • Lotusscript (46)
    • 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 (6)
    • Texas (2)
    • United States (1)
  • Uncategorized (15)
  • Web Development (50)
    • Frameworks (23)
      • Bootstrap (14)
    • HTML/CSS (12)
    • Javascript (32)
      • jQuery (23)

Administration

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

Tracking

Creeper
MediaCreeper
  • Family Pictures
© TexasSwede 2008-2014