Spent Friday investigating some freakish code problems. This one just blew my mind....
When assigning numbers to a data type what do you expect to happen when you assign a number to big to fit the assigned data type? Right, an overflow error.
Well explain this then....
Ok, yes I know, you can solve it by using "difference# = notesDateTime.TimeDifferenceDouble( notesDateTime )" method which will return a double. I just can't get my head around the fact that it didn't return an error when it overflowed on 2,147,483,647 and instead continued up from it's negative boundary (-2,147,483,648).
Or is this normal behavior for a Long data type?? I just hate it when I can't logically explain something...
Code I used to test the effect:
Sub Click(Source As Button) Dim todayD As New NotesDateTime(Today) Dim AlteredDate As New NotesDateTime(Today)
Set todayD = New NotesDateTime(Today) todayD.Localtime = todayD.Dateonly + " 00:00:00"
Set AlteredDate = New NotesDateTime(Today) AlteredDate.Localtime = AlteredDate.Dateonly + " 00:00:00"
For x = 24850 To 24860 Set AlteredDate = New NotesDateTime(Today) Call AlteredDate.AdjustDay(-x) If TodayD.Timedifference(AlteredDate)<0 Then 'EXPECTED OVERFLOW ERROR AT 24857 NOT HAPPENING
End If Print "TimeDifference between: " + TodayD.DateOnly + " and " +_ AlteredDate.DateOnly + " = " + Cstr(TodayD.Timedifference(AlteredDate)) +_ " ---- Days: " + Cstr(x) Next
IBM Connections Folders #2: Ownership of files and folders
Tue, Apr 15th 2014 1:14p Femke Goedhart This blog is follow up in a series of blogs on Folders in IBM Connections. For full understanding I would recommend reviewing #1: Community Folders first
Ownership is quite important in IBM Connection when it comes to data. Why? Well because ownership isn’t always straight forward and sometimes data shouldn’t be public.
Obvious! Why would you even need to say that?
Well… The premises of any social platform like IBM Connections is to share. That means that in theory the thinking [read] Keywords: connections
IBM Connections Folders #1: Community Folders
Mon, Apr 14th 2014 9:12a Femke Goedhart Last week CR4 for IBM Connections 4.5 came out. An intermediate update that had a few new options for file management in IBM Connections. One of which was the ability to add Communities folders. Until now the standard option to get a folder in a community Files section was to create one in your personal files and share that with the community. Control and ownership would however remain with the user, not the community. This has now been extended with the option to create a folder specifically [read] Keywords: connections
Shared folders – potential security issue
Sun, Apr 13th 2014 4:49p Femke Goedhart IBM Connections allows users to share personal folders with groups, communities and users. An ideal option to share sets of documents/files with multiple target audiences at the same time. There are however some caveats. Especially in situations where Shared Folders are used to share potentially sensitive information with Restricted (secured) communities. If your organization uses Shared Folders I would strongly advise looking at the below example to get an idea of the potential risks so you can [read] Keywords: admin
Engage user group – session slides
Wed, Mar 19th 2014 8:11a Femke Goedhart I had the honor of being able to present two sessions earlier this week at the Engage usergroup event in Breda, the Netherlands with two great co-speakers. The slides of both sessions have been published to Slideshare:
Getting to the core, requirements gathering in the wild
Sophie Lavignac-Le Madec & Femke Goedhart
The basis of any good project is good requirements. Knowing what it is you are going to build / get determines whether your project will be a success or a flat out failure. In [read] Keywords: connections
Connecting to Connect: Andrew Grill – shifting from Social Media to Social Business
Thu, Jan 30th 2014 11:12a Femke Goedhart Andrew Grill moved from social influencer statistics in the Social Media realm and being the CEO of KRED to focusing on adoption of Social Business in his new role at IBM Interactive. He made time on Wednesday between his sessions, meetings and panels to talk about social analytics, how Social Business is the next step after Social Media, his role within IBM and the conference at large.
Download link – MP3
Andrew Grill: Blog – Twitter
Social Business Engagement Center for IBM Co [read] Keywords: ibm
Connecting to Connect: Warren Elsmore about… LEGO!
Tue, Jan 28th 2014 2:11p Femke Goedhart “The IBM Champions in LEGO”
LEGO? Yes LEGO! It might be a tech conference but where there are nerds LEGO is soon to follow. No wonder that Warren Elsmore – who went from being a consultant to being a full time Lego professional and book author – is there to liven up the social cafe!
Download link – MP3
Warren Elsmore: Blog – Twitter
“Brick city – LEGO for Grown ups” (book)
The IBM Connect game leaderboard… in LEGO! [read] Keywords: ibm