Category Archive: Technology

Technology

IBM Connect with PSC and LDC

IBM Connect 2017 is just a week away.  I’ll be there and look forward to learning new stuff and meeting new people.  In addition to attending sessions and networking events, John Head and I will available to meet with YOU to discuss your collaboration roadmap.  And thanks to our partnership with LDC, we will also be the onsite representatives for LDC Via.

If you’d like to meet with us, then go check out what we’re offering and sign up here, connect17.psclistens.com!

(Not So) Super Secret Discount Code for IBM Connect 2017

Okay, it’s a secret in that I’m not blogging it, but it’s not so secret, in that all you have to do is reach out to me ( @IamKathyBrown on most social media ) or any other IBM Champion of your choice, for a $100 discount to attend IBM Connect 2017.

If you read this in time, you can also listen to the ICS Community call this morning at 10AM ET (link), where they will discuss “What To Expect at IBM Connect”.  If you miss it, they usually record it.

Getting the Correct Syntax for JavaScript in XPages

I was recently working on a project where my code was injecting XPage elements onto the page at runtime.  To do that, you need to know a lot of syntax.  Syntax that isn’t in the help file, or blogged about, or easily findable.  Sure, there’s this, but that isn’t exactly reader-friendly, nor are there examples of how to use the elements.  Just because you know you’re using “XspInputText”, doesn’t mean you know how to use it.  What’s the syntax for adding an attribute, for example?  Or maybe you know the syntax structure, but need to know what the parameter looks like in the code.

Designer Data Panel for Date Field For example, you want to add a Date field with certain parameters set.  You know how to set them in Designer in the data panel, but how do you set those parameters programmatically in JavaScript?

Thankfully, Toby Samples showed me a cheat to find out.  Create a dummy XPage, add your element and do whatever it is you want to do, i.e. set the parameters for your date field.  Save the page.  In Designer, go to Package Explorer and your nsf.  Expand the Local folder and then the xsp folder.  There you’ll see all of your custom controls and XPages with a .java extension.  Double-click on the XPage.java file.  It will open and there you’ll see the Java code used to generate that XPage, including your element and how the parameters were set programmatically.  This can be really useful when you’re adding something like an attribute via JavaScript and you can’t find any examples of HOW to add an attribute (or class or value binding or any other property).

Example, if you set the above “display format” to “Date and Time” in the picker, how is that set programmatically?

converter.setType(“both”);

With the parameter “both”.  Good luck figuring that out on your own.

File under: “Things you may have already known, but I didn’t, and I share it just in case you didn’t either” AND “Blog post titles I struggled with actually explaining what the post was about without actually typing the post in the title”

Some Experiments in Running and Technology

Okay, technically it was one experiment testing several hypotheses, but anyway.

Background for the experiment:

I used to run.  I had a Garmin Forerunner for a very long time that I loved very much and then I had a Garmin 220, which I also loved very much.  These both served me well before there were phones with GPS and apps and watches, oh my.  I also used to upload the data from these watches to the very awesome RunningAhead website.  I love the site, and especially the training log.   All my running data is on that site.

I now have an iPhone and an Apple Watch.  I haven’t been running, but I have become addicted to the “Activity/Move/Stand” stats on my watch and also some of the health stats like steps per day.

I also like to take walks and play Pokemon Go.

What I wanted to have happen:

I wanted to go for a run and NOT wear two watches (aka my Apple Watch AND my Garmin).  I wanted a way of tracking my steps taken during the run and have my run and steps count toward the Apple Watch activity/move stats.  I wanted a way to record all the great running stats that my Garmin normally tracks AND be able to upload it to RunningAhead.  AND, I wanted to play Pokemon Go during my run (gotta hatch those eggs!).  Oh!  And I also wanted training programs on the watch, like Couch to 5k or similar so I have cues to start/stop running.  No big deal, right?

Pre-experiment trial and research:

I tried a few apps with the watch to see what I could get out of the above requirements and had a really difficult time getting in all of my objectives.  If you open too many apps on the watch, they cancel each other out.  If I started Runkeeper and then the Workout app, Runkeeper stopped.  I tried different apps, same problem.  Then I found this awesome reddit thread, where someone experimented with several variations on recording a run and realized I needed to do.  Further research showed I could upload Runkeeper’s export to RunningAhead.  AND Runkeeper has several free training programs on the app.  Runtastic was in the running (pun intended) for a while, but their training programs all cost quite a bit of money.

Final experiment:

I loaded Runkeeper on my phone, which automatically loads it on my watch.  I made sure both were fully charged.  I started Runkeeper on my watch (but didn’t start a run).  I started Runkeeper on my phone in order to cue up today’s run per the training plan.  I tapped start.  I checked my watch to see that my watch was running Runkeeper, it was.  I went back to the phone and started up Pokemon Go.  I walked/ran for 34 minutes.  I ended the run on my watch.  Saved the run on my watch.  Sat down at my laptop, opened up Runkeeper.com, exported my run.  Went to RunningAhead.com and uploaded the file.

Experiment results:

Phone battery went from 94% to 55$ on a 34 minute run with Runkeeper running and Pokemon Go.  Obviously, this isn’t something I’ll want to do on long runs, but it worked and I’m happy.  My training run worked perfectly from the training plan on Runkeeper.  It “counted” on the Apple Health/Activity apps (and I’ll incidentally get two new badges this week since my run was included!).  Everything exported and imported beautifully to RunningAhead.  ALL OBJECTIVES ACHIEVED.

All in all, I’m very pleased with the results.  On longer runs, I’ll have to ditch Pokemon Go just for battery reasons, but I’m okay with that.  Extra super bonus that I’d love would be if Runkeeper could figure out how to get the running cues to use the haptic on the watch.  In a separate experiment I tried several apps to see if any of them would do that and none did.

Anyway, I’m back to running and hoping that all this technology keeps me motivated to stick with it.  Happy running!

MWLUG 2016 Wrap Up

Last week I was in Austin, TX for MWLUG 2016.  This was my second time speaking at this event, and once again, it was a great experience.

I have been to Texas several times, but had never been to Austin.  I’m still not sure I can say I’ve been to Austin, I feel like I only got to see a small slice of it.  Between humidity that felt like I was drowning (it IS August in Austin) and pouring rain, I didn’t get to get out and about as much as I would have liked (and I even stayed a couple of extra days).  Side note, I’m a giant taco snob and I finally found a good taco.  I don’t just mean in Austin, I mean ever since I moved out of California when I was 17 years old.  So that was exciting.

I attended several sessions (though never as many as I’d like).  How we all still come up with new and interesting content is amazing to me, yet we all still seem to do it.  Lots of Champions were speakers.  You couldn’t go in the hotel lounge area without tripping over a Champion.  If you wanted to talk to a Champ, this was the place to do it.

I talked to a lot of people.  That still feels new to me, and isn’t always something I feel I do well, but this week I had a lot of great conversations with clients, and sponsors, and Champions, and attendees, and speakers, and even taught one of the waitstaff how to play Pokemon Go.

Shean McManus and I gave our session, which was well attended, and I think went very well.  Here’s a link to the slide deck.

They’ve announced that next year will be in Washington DC “or environs”.  I hope to see you there!

Older posts «