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
Dander4Dosh – Break(ing) in the foot
Sun, May 25th 2014 4:11p Femke Goedhart Ok, so people who know me might know that I broke my foot last November. I was training for a 15k race (running) and missed a curb…. Stupid, stupid, stupid….
Seven weeks of a cast, a wheelchair and crutches on I was more then ready to restart my live and decided that I had to get back in the swing of exercising. As running still felt a bit daunting so soon after the break and as I had already kind of committed myself to walk the Dander4Dosh I figured it would be the perfect way to fo [read] Keywords: facebook
IBM Connections Folders #4: Some final recommendations
Fri, Apr 18th 2014 9:10a Femke Goedhart This blog is follow up in a series of blogs on Folders in IBM Connections. For full understanding I would recommend reviewing the previous blogs: #1: Community Folders, #2: Ownership of files and folders and #3 working with folders first.
So in the previous three post I explained a bit about the ins and outs of IBM Connections folders, the different flavours you have and how they work and differ from each other. But the question now is how do you use them…?
I’m not going to tell you.
[read] Keywords: connections
IBM Connections Folders #3: working with folders
Fri, Apr 18th 2014 12:11a Femke Goedhart This blog is follow up in a series of blogs on Folders in IBM Connections. For full understanding I would recommend reviewing the previous blogs: #1: Community Folders and #2: Ownership of files and folders first.
When I was starting this series of blogs on the different options of sharing files & folders within IBM Connections it was mostly influenced by my own interest in how it all worked. As a Business Consultant specializing in both Document Management as well as Social Business anyth [read] Keywords: connections
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