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
Session slides for our ICONUK session
Sun, Sep 14th 2014 10:12a Femke Goedhart Session as delivered by Sasja Beerendonk & me at ICONUK in London on September 12th 2014
Beyond theory: Trials & tribulations in becoming a successful social business
Abstract: There is lots of theory about how to become a social business but what really does or doesn’t work? We wanted to know and interviewed 32 companies in various stages of their journey to becoming a social business. Not just highlighting the big wins but also talking about the struggles and small successes th [read] Keywords:
Speaking at ICONUK 2014
Sun, Sep 7th 2014 3:16p Femke Goedhart Next week I will be flying out to London to join my coworker Sasja Beerendonk to deliver a session at ICONUK 2014 on the trials & tribulations of becoming a successful social business. I’m really looking forward to this session in more then one way:
First of all because it will be my first time presenting together with Sasja whom I’ve know for years as a specialist of social business adoption and who, I’m lucky to say, decided to join the great team we have at Silverside [read] Keywords: linkedin
Why? – Why not
Mon, Aug 18th 2014 10:10a Femke Goedhart Sometimes something inspires you, hits you or just speaks to you. Today I saw this fragment on a Dutch tv show and it hit a nerve.
I’m not in science but I am in IT and I still get asked sometimes “why?”. I’ve never really paused at that question, I knew when I started I was an exception in a sea of men (my then company employed 160 male and only 4 female IT consultants) but I never felt inhibited or held back in any way to become or do what I wanted. The ‘why?R [read] Keywords:
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