Friday, March 23, 2018

Sex Trafficking and GDPR

The U.S. Congress passed a law to make organizations liable if they host sex trafficking content.

Craigslist said "Fine.  We are no longer hosting personal ads."

Some EU Organization (they truly have so many it is Orwellian) passed the GDPR in 2016 and it goes into full effect on May 28, 2018.
  • Companies are reacting by essentially telling their users to accept our terms and our marketing to you or else you can't be in our program or use our software.

Monday, January 22, 2018

Platform Decision: 3 Minutes

We've been running on XPages since 2010 and every year we consider switching development platforms and last Friday our decision conversation went something like this...

Russ: IBM Domino future is still very murky, is it time to think about using something else?

Paul: FP 10 is about to drop.  Every day as I support customers I think about switching to another platform but I can't think of any other platform or architecture that would allow us to do the kinds of things we have to do that Domino lets us do.

Russ: Right.  I think the same thing every day.  It takes a fair amount of upkeep and gymnastics to keep everything going but my sense tells me that any other platform would require the same effort.

Paul: Yup.  Warts and all it seems like Domino is still the best thing out there for us.

Russ: Yup.  There it is.  Executive Decision.  Stay on Domino for now.

Friday, December 15, 2017

As long as there’s another code snippet to try, there’s hope!

Some days it feels like I am the last XPager standing but in my mind I know the reality is far from that.  I mean, come on, Paul Calhoun is still doing XPages as well!  Ha ha ha.

Anyway our application has morphed into quite a best of functionality over the years so it is not often I need to go to the bit bucket to find new code but recently I had to do just that.

The task was actually very simple:  A user clicks a link, we copy some text to their clipboard for them.

That's it.

Alas...I found that was not as easy as it sounds.  The good news for us is we only support current browser releases and only IE11+ but still all of the existing code libraries I tried just did not want to work with XPages.

I looked around and found then I found clipboard-polyfill but in a rush those libraries just would not work inside an XPage.

In my typical Soviet-style coding paradigm (does not need to be pretty, it just has to work) I found and used the following code:
function copyToClipboard(str) {
function listener(e) {
e.clipboardData.setData("text/plain", str);

document.addEventListener("copy", listener);
document.removeEventListener("copy", listener);


Alas, it does not work in IE or Safari.  Dang.

Then I went back to trying to get the previously mentioned libraries to work.  I had more time so I figured I could code more in a Japanese-style paradigm (works + elegant).  Nope.  I could make those libraries work on a Domino server just fine, just not in an XPage or even a Notes DB (all on the web of course).

So then I found this on Stack Overflow...and Poof!

We have a solution!
function copyText(text){
function selectElementText(element) {
if (document.selection) {
var range = document.body.createTextRange();
} else if (window.getSelection) {
var range = document.createRange();
var element = document.createElement('DIV');
element.textContent = text;

All I had to do was remove the last line for IE ( it does not like it), add the line to set the display to none and for good measure I added an alert so the user knows "It worked!"

Saturday, October 28, 2017

I say it here, it happens there...

Love to know what the actual price was.  I'm guessing it was less than $100M.

I said...

IBM Says...

IBM Announces Investment in Notes Domino Version 10 and Beyond by announcing a "partnership" with HCL Technologies which is essentially HCL Technologies getting all of the hard work (and IBM Notes and Domino) and IBM just selling the product.

Monday, April 10, 2017

The Announcement United's CEO Should Make

Um yeah this...

Here is the press release/announcement that Oscar Munoz, CEO of United Airlines, should make immediately:

Response to United Express Flight 3411

April 10, 2017

“This is an upsetting event for all of our United customers.  I apologize for this incident.

We, all of us at United, were wrong in this situation.  We will be taking the following positive steps in order to win back the trust of our customers.

First, we will work with the appropriate authorities to ensure that no criminal or civil charges are brought against any passenger involved with this situation for any reason.

Second, we will work with the passenger who was forcibly removed when required to give up his seat to a United employee to ensure that he receives significant and just financial compensation for our wrongdoing.

Third, effective immediately, all United staff involved with this situation are being reassigned to new duties elsewhere in the company that does not involve interacting with customers.

Finally, effective immediately United will never again require any customer to give up their seat on any of our flights to a United employee or any other airlines' employees for any reason.

– Oscar Munoz, CEO, United Airlines