Google+

Milwaukee .NET User Group Presentation - April 2014

Thanks to everyone who came out to my Milwaukee .NET User Group presentation on AngularJS this week (April 8, 2014). There was a nice turnout and some good interactions and questions. I even got a little stressed out and winded, with the screen being in the front of the room and my laptop with code demos in the back! Hopefully it wasn't too distracting for those of you in attendance.

You can find a copy of my slides here.

The code for my demo is available on GitHub at https://github.com/jptacek/Wi-Ineta-AngularJS

As always, feel free to reach out to me via email or on twitter.

To those of you who attended, thanks much!


By John Ptacek

 

 

Build 2014 - Day One Highlights

Today, April 2 2014, is the first day of Microsoft’s Build conference, a developer focused conference from Microsoft. The Build conference is usually a big day for Microsoft as they talk through their development stack, tools and strategy. Today’s keynote was no exception.

Skyline has a contingent of our team out in San Francisco and we thought we would provide a quick overview of some of the highlights. You are going to be able to find a lot more in depth information at various tech new sites, but we thought we would hit on high points for our customers before we hop to another session.

Build

First, this morning’s main focus was the announcement of Windows Phone 8.1 and some of its new features. Microsoft has worked hard at integrating in features that Enterprise users will find valuable, including the ability to automatically add users to an organization and set policies and controls around what users can do. This includes the ability to wipe a user’s phone after they leave the organization. There was also announcements of integration with VPN software, secure email, etc. Windows Phone 8.1 sows Microsoft has focused on strengthening their platform for Enterprises.

While that is of interest to enterprises, the biggest announcements were focused for end users. Microsoft had a couple of places they need to play catch up; specifically a notification center and speech enabled assistants.

Microsoft introduced their version of the notification center called Action Center. It allows users to set different area for display in the notification center such as VPN, Airplane mode, etc. It also enables developers to integrate their application into the notification. This is been long awaited feature for Windows Phone and Microsoft looks like they have a solid offering here.

Microsoft also introduced their version of Siri, called Cortana. The name comes from a character in their Halo series of games for the Xbox. It is refreshing, and Cortana even joked, to see the program wasn’t named Microsoft Speech Notification Center for Windows Phone 8.1 Update 3. During the keynote Microsoft really drove home how Cortana was the first “digital assistant” for mobile phones. Microsoft has really spent a good deal of time talking with personal assistants to see how they work with their customers. They have worked hard to bring personalization into the platform, such as your work and home locations, family members, etc. While it is difficult to say without actually using, it looks like Microsoft may have leapfrogged competitors like Siri and Google now with their speech assistant, especially with the ability to integrate with other applications like Facebook and Twitter.

Build Crowd

There was also a number of features announced that really improve the Windows Phone platform. An improved calendar, themes for the lock screen, better Skype integration, etc. All in all, Microsoft has made strides in making Windows Phone a more compelling platform for users. You can find out a LOT more information at the Windows Phone Blog.

There was also the introduction of Windows 8.1 Update 1 (yeah, I don’t know who names these things either). Update 1 enables more mouse functionality in desktop mode for users. The title bar now appears in Windows Store apps and the task bar will also display when running Windows metro apps. The search and power button are also more prominently displayed for desktop users. It appears a lot of the new features are to enable desktop users to be even more productive. We will all find out soon enough, downloads start on Tuesday April 8.

From a developer standpoint, the most interesting announcement of morning was Universal Applications. This will enable you write an application that will hit both Xbox One, Windows Phone and Windows. The functionality looks pretty interesting and will definitely be something to pay attention to. Microsoft demoed creating the Kahn Academy app by taking a single base of shared code, and then making UI updates to hit both the Windows phone and Xbox One. Users can even have a single UI without worrying about creating custom for each version. VERY COOL.

From a single platform standpoint, there is also integration of the Windows Phone and Windows store. If you buy Angry Birds Star Wars in the consolidated store, you also have the ability to download for Windows.

Fresh off the announcement and release of Office for the iPad, Microsoft showed off the Windows Store version of PowerPoint, with the same functionality running on both the Windows Phone and the Windows version of the application. Microsoft is promising full fidelity across the desktop, Windows Phone and Windows Store version. No release information was shared.

Microsoft also announced that they were open sourcing their WinJS platform. The library will be available on GitHub and enable developers to create applications that run not only on the Windows stack of devices, but also on Android and iOS.

AngularJS talk line

There was a host of other information in the nearly three hour keynote that is available across Internet news sites. At the end of the day though, I think the message Microsoft and their CEO Satya Nadala are saying are pretty obvious. Microsoft is moving beyond just Windows and they are simplifying their development platform to reach more devices. The new version of Windows Phone and Windows show they are listening to their customers and end users by simplifying and consolidating their Windows platforms while branching out to other vendors. They communicated a vision for enabling success for developers, enterprises and users using Microsoft tolls and languages.

Another big keynote tomorrow! On to the next session.

This post originally appeard at Skyline Technologies


By John Ptacek

 

 

A Modest Proposal For Time

Time, when you really think about it, is CRAZY. We expect it to be this constant in life, slowly, we hope, marching forward, but invariably going quicker than we want. However, the concept of time, as in “What time is it?” has changed over the centuries, with the pace escalating during the information age. If there is one thing Einstein taught us with the Theory of Relativity, it is that time is not constant.

Melting Time

There are really two ideas of time… The first, relates to the time on a clock that we all reference. The second, is the larger concept of time that is part of the theories that Einstein laid out in his Special and General Theories of Relativity. We will focus on the clock for most of this.

Einstein

When I interview people for jobs, or talk with young programmers, I will sometimes ask a variation of this question, "you are running a website and are taking orders for customers all over the world, how do you handle the date and time of an order?". This question is amazingly complex.

First, you get an idea if the person has a grasp of time zones and local geography beyond the one they are in, which is always a good first step. This leads to other discussions. Do they mention Daylight Saving Time? Do they mention what a pain Indiana and/or Arizona, which don't recognize Daylight Saving Time, is?

They make it this far, you are happy. Next however, you hope they mention there really isn’t a decent way to know where a user is when they place an order to determine what time they think it is when they placed the order. Unless they explicitly provides an address or a time zone, you are not guaranteed to know where they are. You can guess based on things like IP address, however, this costs money. You can ask the user if you will let them use their location based on their browser geolocation feature, but if they are like me, this is a sign to go to another site.

So, you say to yourself, the best thing I can do when a user places an order is to ask them to provide their username and address, this will surely solve the problem. No, it really won’t….. Do you save the time zone where they placed the order? If I am vacationing in sunny California and order the latest Marvel Blu-Ray to be shipped to my house, what is the proper order time from my perspective? The time back home or the time where I am?

This does not even get into the craziness of time zone names. I live in the Midwest, home of Central Standard Time (CST). However, there is also Cuba Standard Time, China Standard Time, and Central Standard Time in Australia, all claiming the acronym CST. Which one wins?

So it is a GREAT interview question because you get an idea of the breadth of experience of a candidate in dealing with large scale applications. However, I only tend to ask this question if I am trying to be a deliberate jerk. It is a difficult question.

If you work with large companies or companies with interests all over the world, you realize how much time you spend talking about time. Most people I talk to have no idea that when it is 8:00 AM in the United States Midwest, in India it is 6:30 PM. That is right, not only is the time many hours different than ours, it is staggered 30 minutes. Throw in the fact that countries all over the world have different ways of dealing with Daylight Savings Time and sometimes their governments will change it at the last minute and you have many, many opportunities for error. Time is a constant source of discussion when you work with people across the globe. That discussion of time costs the world money and effectiveness.

So, I propose a few things. First, let me start in the United States. Let us abolish Daylight Savings Time. There really is no need for this anymore. We are not at war, and the cost savings for going through this process twice a year have not been proven out. Every person in Illinois who has missed a meeting with a colleague in Indiana when we “spring forward” or “fall back” can verify this.

Second, and I assume much more controversially, let us abandon time zones in the United States. We live in a time and place where we ALL need to be on the same time as a country. In our agrarian past, it may have made sense for 12:00 PM to represent when the sun was at its apex. However, for the most part, we are NOT an agrarian society currently. Our economy is an information and finance based economy. I can guarantee you, stock brokers living in California, don’t wake up at 9:30 AM PST for the opening bell on Wall Street, they wake and are ready to serve their customers every day at 6:30 AM PST to match the 9:30 EST opening bell. Our economy already is driven by the time when business happens, not when we want it to happen.

Many folks may think the idea of a single time zone in the states is crazy talk, and it probably is. As a country, we tend to be obstinate to change and prefer to cling to the way things have been done (I am looking at you Metric System conversion). However, time marches and on, and more importantly, our economy marches on. It wasn’t until commerce became widespread, that the concept of time (or more exactly, time keeping) became prevalent. Our economy though has moved past local time, it has moved global. The reality is that countries like China are already ahead of us here, with a single time that spans five time zones. One needs to only look at the image of the differing morass of time zones from WikiPedia to realize there is a huge opportunity for improvement.

WikiPedia time zones

So then, let us take it to the logical conclusion. We should wipe out time zones everywhere in the world. They are no longer needed. ALL business should act on the same time. The first benefit of this is that the mental energy the world spends each day to just set up a meeting with colleagues disappears. Instead of everyone doing a little math determining their GMT offset, they just say what time. Everyone has the same reference. It all gets done much quicker. We loose the concept of 12:00 PM being when the sun is brightest, but the benefits are huge.

The second benefit is that computer systems are MUCH more efficient. While we will never get past the scourge of developers checking if an item is NULL, the second thing they spend their time on is dealing with dates and times in their programming language of choice. By consolidating on a single global time, that problem disappears. That is pretty cool. You may think this is superfluous, but it is analogous to the metric and British system of units. One need only look at the loss of the Mars Climate Orbiter because of unit conversions to realize there are real reasons for simplicity and very high costs for ignoring it!

So then, what time is it? Well, the answer is easy. We already have it and it is Coordinated Universal Time (UTC). The interesting thing is, from a programming standpoint, we are all moving there. If you do multi time zone or country work, you are most likely already saving time as UTC. If you aren’t, you soon will be as you move to a cloud infrastructure. Amazon Web Services (AWS) and Azure already default to UTC since their servers are geographically dispersed and they need to standardize on tme. This is so prevalent, that for me personally, on my development PCs I have two times displayed, one for local time and one for UTC time. When I code, I spend more time in UTC than my local time zone.

It is time for the geeks of the world to lead the charge on this. We need to encourage businesses to focus on driving costs down for doing business globally. We need to challenge politicians to take up the banner and make the world more connected and consolidated by having a single global time.

In the news lately has been the disappearance of Malaysian Flight 370. Take for instance this article at the New York Times that discusses the timeline of the plane radar reading. It says the last contact happened at 2:15 am local time. First, I assume they mean local time in Malaysia and not New York. If it is Malaysia, I have no idea without a little Internet searching what time that is for me. I think a good way to begin the journey is to whenever we display time to also display the UTC time. So 2:15 am local time in Malaysia becomes 2:15 am/Saturday 18:15 U, where the U designation indicates Universal time.

How hard can it be?!?!? Probably hard, the reality is it is coming sooner or later, with sooner being better. However, amazing things happen every day. Let us start. I am posting this article at 6 AM in the morning, but 11:00 U wherever you are.


By John Ptacek

 

 

John Ptacek I'm John Ptacek, a software developer for Skyline Technologies. This blog is my contains my content and opinions, which are not those of my employer.

Currently, I am reading Freedom by Jonathan Franzen

@jptacekGitHubLinkedInStack OverflowGoogle+