Saturday, September 10, 2016

Typing Stats
Words Per Minute (WPM): 86
Characters Per Minute (CPM): 432
Fastest Finger: Left Index
Slowest Finger: Left Ring
Word Accuracy: 100%
Language: English
Letter Casing: Mixed
Keyboard Layout: QWERTY
Test Duration: 30 Seconds
Stats From PAT or JK's Typing Speed Test

Average Finger Response Time
Left Pinky: 138 Milliseconds
Left Ring: 343 Milliseconds
Left Middle: 122 Milliseconds
Left Index: 112 Milliseconds
Right Index: 144 Milliseconds
Right Middle: 118 Milliseconds
Right Ring: 154 Milliseconds
Right Pinky: 177 Milliseconds
Thumb(s): 114 Milliseconds
Stats From PAT or JK's Typing Speed Test

Wednesday, December 24, 2014

Cables are the fountain drinks of technology sales

I just took a trip to my local MicroCenter store to purchase a 6' USB 3.0 A Male to Micro B cable. I looked at BestBuy, Target and Walmart and not being able to find anything but overpriced USB 2.0 cables.  I knew that MicroCenter would have what I was looking for at a reasonable price.  I need the cable right away.

I did search on Amazon before I got in my car and found that Amazon's Basic brand had one for $5.99.  I expected to pay a little more at MicroCenter.

After finding the isle and staring at the USB cables for a while I found that the 6' cables were $27.99.  Yikes!  As I was standing in the isle, another couple looking at some other cables said loudly, "Wow, these are expensive!"

I found a sale associate and asked if they would price match online prices (as they are also an online retailer).  He said they would.  I showed him the item on Amazon and he said would have to be the exact brand.  I searched for the brand on my phone and matched the product number.  Bingo $5.50 + $1.10 shipping for the same exact cable at Amazon.  A 424% mark up!  He said we would need to speak to a manager.  I said, "Great, let's find one"

The manager says, "Is it sold my Amazon or a third party?".  Checking my phone I informed him that it was a third party.  He said that there is no guarantee that I would actually receive the item if I ordered from Amazon.  I shouldn't have to explain this to him (but I did) that Amazon does guarantee my purchase.  He would not go for the $5.50.

I ask if he would meet me half way at a reasonable price.  The answer was "No".

I dropped the item and turned and walked out.

So just remember, do not buy computer or AV cables in any retail stores. These items are marked up as much as 500%.  Just like how restaurants make a majority of their profits on fountain drinks.

Amazon

MicroCenter

Thursday, March 29, 2012

Slow Insert Hyperlink dialog in Office

When I am creating e-mails in Outlook or documents in Word and press Ctrl-K to insert a Hyperlink, the dialog would freeze for 5-10 seconds.  It was very annoying and I've been dealing with this for quite a while on my work laptop.

I turns out I had 8 shortcuts in the "My Documents" folder.  Once I deleted them, the Insert Hyperlink dialog opened with no delay.

Microsoft must have some issue with parsing shortcuts.  I hope this helps someone else if they encounter this issue.

Wednesday, October 05, 2011

Review your Event Logs

I was just browsing my event log and found the following entry in system:

Remote session from client name a exceeded the maximum allowed failed logon attempts. The session was forcibly terminated.

This normally would not be a concern except I've the message was logged every minute or so.  After further review I see that this has been going on for the last 3 months! (as far back as my event goes)

Clearly someone is trying to hack into my computer through the Remote Desktop Service.  I do have a forwarding rule in my ISP's router that forwards port 3389 to my desktop.  Being as 3389 is the default port for remote desktop, I guess I should not be surprised that this was happening.

So what did I do?  I changed the default RDP port.  Yes, that's right "Security by obscurity"  Not the preferred solution but it should slow down the attacks.

I updated the forwarding rule in the ISP router/firewall and updated my desktop RDP port using http://support.microsoft.com/kb/306759  The desktop computer firewall also had to modified to support the new port.  The firewall rule for RDP on port 3389 is locked  so I just created a new one for the new port.

I also changed the Local Security Policy's Account Lockout Policy to 3 attempts and 30 minutes to reset.    This should slow someone down as well.

Luckily I have a strong password according to http://www.passwordmeter.com/


Score:
79%
Complexity:
Strong


So I suggest you do take some time to review your event logs.  It's surprising what you might learn.

Sunday, February 20, 2011

Some important Google Chrome Add-Ons

Google Chrome has been released more than two years ago and it's the browser of choice for many people. Despite having won hearts for its speed and elegance, Google Chrome does have some minor flaws that you might want to fix. Here are some of them:

1. No confirmation when closing multiple tabs

Google Chrome does't show a warning when you close a window with multiple tabs. If you accidentally close Chrome windows, you can install Chrome Toolbox. The next time you close many tabs, you'll at least get a warning.
alt

2. Basic history page

Google Chrome's history page is pretty basic and you can't restrict the list to a certain time interval.
The History 2 extension comes to the rescue by allowing you to sort web pages based on the day/week you visited them. History

2 allows you to delete multiple items from your history page at the click of a button – something that's not possible by default.

alt

3. Missing image properties

There's no way to quickly examine an image when you're in Chrome. Fortunately, you can install Image Properties Context Menu, an extension that lets you right-click on an image and find information about the image size, location, dimensions and more.
alt

4. No support for feeds

Chrome simply doesn't recognize RSS feeds and all you get is a page with gibberish text. If you install the RSS Subscription extension developed by Google, you can quickly subscribe to any feed using Google Reader, iGoogle, Bloglines or My Yahoo.
alt

5. You can't send a web page by email

While other popular browsers allow you to quickly send any web page you're viewing by email, such an option is nowhere to be found in Google Chrome.
Worry not, because you can create a simple Javascript bookmarklet to open your default email program with the current URL. If Gmail is what you use, you can alternatively install the Send from Gmail extension to send the web page to Gmail.

6. No session manger

Closing Google Chrome and reopening it does not restore previously opened tabs. In order to do that, go to the Options dialog and enable Reopen tabs that were open last.
If you want advanced session saving options like the ability to create multiple sessions, try the Session Buddy addon for Google Chrome.

7. You can't switch to a tab from the Omnibox

Firefox 4 lets you switch to any open tab by typing relevant words into the address bar. If you'd like to see a similar feature in Chrome, install theSwitch To Tab extension.
The next time you have too many open tabs, just type sw followed by some words from the page. Hitting Enter switches to the tab that's listed as the first match.
alt

And as a bonus, on You Tube you can not set you’re preferred stream to HD.  Get the Auto HD for YouTube

Enjoy.

Saturday, February 12, 2011

Reviewing ReactiveUI

I am reviewing the ReactiveUI code now and I have to say it’s some of the coolest code I’ve seen in a while!

I really like the base ReactiveValidatedObject class for building ViewModels.  The view models become so much easier for validation and INotifyPropertyChanged:

string _Name;
[Required]
[StringLength(35, MinimumLength = 3, ErrorMessage = "Names have to be between 3 and 35 letters long")]
public string Name {
get { return _Name; }
set { _Name = this.RaiseAndSetIfChanged(x => x.Name, value); }
}


The MemoizingMRUCache class looks very handy and I also like how the logging is accomplished.



The sample that comes with it has great comments and I learned more about MEF in the process.



It has a Ruby feel to with with a rake build script.



I have so much more to review.

Friday, February 04, 2011

we hatez your browser or how not to design web sites in 2011!

While visiting the www.MVA.Maryland.gov website I discovered the following message:

The eMVA store is not available to Google Chrome users. Please use another browser.


In the words of Jar Jar... "how rude"

Monday, November 22, 2010

Cheating at Bejeweled Blitz on Facebook

My new bot is complete and is scoring greater than 800k.

Check it out at http://cheatatbejeweledblitz.com/

Thursday, October 21, 2010

Your Android may one day be infected at it's core

Last night's BaltoMSDN presentation by Mike Wolf was on Windows Phone 7 development.  When I heard that all apps would need to be certified by Microsoft, I thought, "Oh, No.  Here we go with the oppressive oversight".  But after a little surfing this morning regarding mobile OS's and security I came across this white paper describing how the entire Android OS could be infected with Ad/Malware.

http://appanalysis.org/tdroid10.pdf

Let's hope Microsoft get's security right on the WP7 but is not as oppressive as Apple in app certification.

Sunday, October 10, 2010

HTML5 Canvas

I thought it was time to start learning some HTML5 so I dove into the Canvas element.

View it here

Friday, August 13, 2010

Node.js can't use multiple CPU/Cores

I just install Ubuntu 10.04 and got Node.js up and running.

It's scary how easy it is to create a highly scalable web / socket application.

Don't get too excited yet. The gurus at Yahoo had this to say:

But all is not sunshine and lollipops in NodeJS land. While single-process performance is quite good, eventually one CPU is not going to be enough; the platform provides no ability to scale out to take advantage of the multiple cores commonly present in today's server-class hardware. With current NodeJS builds, the practical limits of a single CPU acting as an HTTP proxy are around 2100 reqs/s for a 2.5GHz Intel Xeon.

While Node is relatively solid, it does still crash occasionally, adversely impacting availability if you're running only a single NodeJS process. Such problems can be particularly common when using a buggy compiled add-on that can suffer from the usual cornucopia of C++ goodies such as segfaults and memory scribbling. When handling requests with multiple processes, one processing going down will simply result in incoming requests being directed at the other processes.


And lastly, Alex Payne sums up what large scalability and why node.js might just remain the realm of the less than skilled programmers.

http://al3x.net/2010/07/27/node.html

Threads are not dead!

This looks interesting for javascript : http://documentcloud.github.com/underscore/

Saturday, May 01, 2010

CQRS and User Interface Design

I am beginning to have a shift in thinking about user interface design as I study the CQRS architectural pattern. The pattern really forces you to think about design UI’s around tasks.

You have to ask yourself, “Why would a user want to change the state of the system?”

Why would the user want to change the address of a customer?  Was it a mistake?  Did they move?  These might be important to know.  If they made a mistake and they have pending orders about to ship it might imply very different business rules.

It also forces you to think about the experience from the user’s perspective.

Udi Dahan said it perfectly during one of his talks: "User Interface design is as much a part of architecture as anything else that you do"

Wednesday, July 22, 2009

Google Hates Internet Explorer


Just went to look something up and was using IE. Google is advertising Chrome in IE but not FireFox.

Saturday, August 30, 2008

Open Source Code Review - A choice to name a method "Inscrutable"?

I've been reviewing various open source projects related to Amazon S3 and discovered the excellent Resourceful library and the related project SpaceBlock.  The following code is a utility class in the SpaceBlock project. 
 
The method I found offensive was named "Inscrutable" and is located in the class named F.  The definition of "Inscrutable" from dictionary.com is "incapable of being investigated, analyzed, or scrutinized; impenetrable."  This reminds me of a quote I heard 25 years ago from an old mainframe programmer at Westinghouse.  I was complaining about the understandability of his VMS code and he said "If it was hard to write, it should be hard to understand".  I couldn't have disagreed with him more.  I believe in intellectual manageability of the code you write.  You don't write code for yourself or the compiler.  You write it for other people.  By naming a function "Inscrutable" you are flipping me and everyone else the bird! 
 
I guarantee this will happen to you one day (if it has not already).  You will be reviewing your own code for a bug fix and discover a particularly tricky piece of code that you didn't comment or name your function properly.  If you were so arrogant as to name your method "YouAreTooStupidToUnderstandHowThisWorksSoDontEvenTry" you will be essentially flipping yourself the bird!  You will then end up spending way too much time figuring out and reflecting on exactly you were thinking when you wrote that code.
 
Now, I'm not saying I'm not guilty of doing similar complexities with my code.  In fact, I can hear my co-workers now shouting over the cubical walls "Hey, isn't that the pot calling the kettle black".  I'm posting this as a reminder to myself and all developers to never do something this blatant and egotistic as this in our code.
 
I am not slamming these projects. I think they are well written and have a great coding style. I plan to use them in the future.
 

C# 4.0: Meet the Design Team

Anders and crew meet in the room where C# was birthed and talk about the future.


C# 4.0: Meet the Design Team

Wednesday, May 07, 2008

Edward Tufte One Day Seminar

Yesterday I attended a one day seminar in Arlington, VA presented by Edward Tufte.

It was a great presentation and I picked up all four of his books.

quotes and general notes:

Great designs are transparent

Never segregate data by the mode of production.

Show all the data, it provides credibility.

We should be concerned with the quality of thought.

Don't use lowest common denominator design or you will have an intellectual disaster.

Tables out perform graphs for data less than 1000 points.

Screens should be 95% content and 5% administrative debris (scrollbars, toolbars, etc.).  Measure it.

Design the surface first.  Outside-In design.  iPhone designed the hardware platform before the software.  iPhone has one of the highest DPI of any consumer device.

Don't provide an application solution.

Leave the UI alone once it's done.

There is no relationship between the amount of information and the ability to process.  The human eye can process 10mbit/sec.

Don't be an original.  Steal a good design.

Consider a "super graph".  It unifies and relates the audience to the data or theme.

Increase information throughput

Examine how newspapers report data and clone it. Examine "Nature" magazine.

Multivariant problems are the only interesting problems.

Progress in technology is measured in resolution

Don't use legends on graphs.  Put the text on the line.

Maximize content reasoning and minimize decoding

"We want to be approximately right rather than absolutely wrong"

Use Gill Sans Font

Annotate everything

about presentations

  • Show up early for your own presentation to meet people, to show a gracious gesture, and to hand out materials early.
  • Use presentations as a review of the material distributed prior to the meeting.  Maybe simply ask "Are there any questions?" and end the meeting.
  • Use Power Point as a projector operating system
  • Give out handouts before meeting - people can read 2x-4x times faster than you can talk.
  • What is the problem?
  • Who cares? the relevance
  • The solution
  • Have a summary
  • Say you will answer questions when they are done reading
  • Use sentences.  No laundry lists of nouns.  Sentences for you to think causally.
  • Don't use bullet reveals.
  • Practice in front of a friend or a video camera
  • Turn off the video and listen to the audio
  • Ask a trusted friend for criticisim
  • Never begin with an all purpose joke
  • Never apologize at the start of the presentation
  • Stay out of the first person during the introduction
  • Stay on content
  • Finish early

Wednesday, March 26, 2008

Quote of the day

Wednesday, January 30, 2008

Playing with the .NET FCL symbols and source code

I’m playing with the debug symbols for the .NET framework and came across some interesting things in code.

Dropping back to memory manipulation for performance from the String class

// Returns the entire string as an array of characters.

unsafe public char[] ToCharArray() {

// huge performance improvement for short strings by doing this

int length = Length;

char[] chars = new char[length];

if (length > 0)

{

fixed (char* src = &this.m_firstChar)

fixed (char* dest = chars)

wstrcpyPtrAligned(dest, src, length);

}

return chars;

}

AMD Specific code!

#if AMD64

// for AMD64 bit platform we unroll by 12 and

// check 3 qword at a time. This is less code

// than the 32 bit case and is shorter

// pathlength

while (length >= 12)

{

if (*(long*)a != *(long*)b) break;

if (*(long*)(a+4) != *(long*)(b+4)) break;

if (*(long*)(a+8) != *(long*)(b+8)) break;

a += 12; b += 12; length -= 12;

}

#else

while (length >= 10)

{

if (*(int*)a != *(int*)b) break;

if (*(int*)(a+2) != *(int*)(b+2)) break;

if (*(int*)(a+4) != *(int*)(b+4)) break;

if (*(int*)(a+6) != *(int*)(b+6)) break;

if (*(int*)(a+8) != *(int*)(b+8)) break;

a += 10; b += 10; length -= 10;

}

#endif