Wednesday, July 18, 2012

Confessions: The Phone Number

Confessions: The Phone Number:
from The Daily WTF 
"One morning," wrote Justin Reese, "my client reported that was a strange bug on a certain page in an app I built for them. Where the contact information for a series of offices was being displayed, all the information was correct except for one piece: the phone number. For multiple locations, the phone number displayed was the same: 214-748-3647."
"I ran a quick query against the database to make sure that the phone number records were indeed correct, and in fact they were. Many of the phone numbers were 214-numbers (being that we're in Dallas and all), but there were only a handful of expected duplicates. Not nearly as many as were being displayed. More peculiarly, on my local machine, the phone numbers were displaying just fine. I tried them out on the test site, only to find they were working there as well.
"There was only one thing that could explain this discrepancy, and that was that someone mucked with the production code, perhaps doing a database misjoin somewhere or another. Perhaps it was the overzealous web designer, who had been itching to 'try some PHP instead of HTML'? Or maybe it was the boss, who once-upon-a-time was a programmer himself? The client swore up and down that no one touched the code, but I downloaded the source code anyway.
"And when I ran a quick diff on the files: yahtzee! The code files were totally differe—oh wait, no, I was just comparing the wrong set of files. Nope, the files were identical…. which meant that it was something else. It took a little while, but after much trying and testing and squinting, I finally got a clue.
  1. My PHP Class gets the data via an XML API
  2. It serializes the XML into SimpleXML objects
  3. In certain parts of the site, I turn those SimpleXML objects into even-simpler PHP arrays
  4. As part of that process, I run XML attributes through a very basic type-guesser I wrote
  5. That type-guesser says "if you're numeric and not float-like, you must be an int, so… I HEREBY DUB THEE SIR (int) $value
  6. Womp womp womp
"Figure it out yet? As it turns out, 2,147,483,647 is the highest integer value addressable on 32-bit systems. The production machine's IIS instance was switched to run in 32-mode, which exactly 32-bits short of the 64-bit test machine and my 64-bit local workstation. So, when passed a phone number like 9895551212, the 32-bit PHP was looking at it skeptically and saying, well pardner, that don't look like no number I've ever seen, here's the biggest one I got, and passing back 2147483647.
"I've since learned that most things called 'numbers' are not numbers at all, and that not all 10-digit 'numbers' starting with 214 are Dallas-area phone numbers.



Where is the Cisco CCNA 2012 Update?

Where is the Cisco CCNA 2012 Update?:
from Petri IT Knowledgebase 

Overview

It has been three years since Cisco updated their CCNA certification track. While Cisco has not formally introduced an update to their CCNA track for 2012, based on their previous schedule of certification revisions, it should not be that much longer before the CCNA 2012 update is announced. For many candidates, this uncertainty is unsettling because they do not want to prepare for an exam that will be changed right before they have to take it. This article addresses these concerns providing advice to aspiring CCNA candidates on whether they should take the current CCNA exam or wait for the new one.

Cisco's Certification Revision Process

One thing that history has taught veteran candidates is that Cisco rarely if ever leaves us in a scenario where test preparation is completed and then not able to be used for future testing. The typical process seems to be that Cisco will give candidates at least 4-6 months of time once a certification update has been announced to shift the focus of test preparation. This typically allows enough time for candidates to figure out which version of the exam is best to prepare for, based on both the test preparation schedule and the anticipated test date. As long as you take the time to learn the specific dates that Cisco is following, you won't run into any major issues.


Preparing for the CCNA in 2012

Another thing you should take into consideration is what is the best plan to follow when getting on the path to CCNA should an update be expected. This is precisely the situation we're in today, the CCNA will likely be updated this year, so how should you prepare?
One thing that every potential CCNA candidate has to understand is that the majority of the material from one version of the CCNA exam to another is the same with very minor changes. Much of the introductory level networking knowledge that is being tested at the CCNA level has been the same for the last 10+ years. What this translates to is that no major amount of study time will be wasted, should an update be announced this month or in December. The vast majority of the content that currently exists on the CCNA will also be tested on the next version of the CCNA exam. Any potential topics that make up the very small percentage of material that may be changed could potentially have just moved onto a next level test. This can be helpful should the candidate keep going up the Cisco certification ladder.
So what is the core message that is being stated here? Keep studying for your CCNA! Very little of your preparation time will be wasted should an update to the CCNA happen. Do not let the expectation of a change halt your progress and advancement of your career.


Summary

Will a new CCNA certification be announced in 2012? Historically the CCNA has been updated every three years, so 2012 looks like a prime candidate for a CCNA update. However, this should not discourage any potential CCNA candidates from not studying and preparing for the exam.
For one thing, Cisco will give you ample time once an update has been announced to figure out if the old or new exam is right for you. Typically, this phase takes 4-6 months, so you'll have plenty of time to either complete the current CCNA exam or study the new CCNA objectives in preparation for the updated CCNA. More importantly, the new exam will likely change only by 15-20% percent, so even if you decide to go with the updated CCNA certification, you won't be wasting time and effort studying for the current CCNA objectives. Cisco's networking fundamentals haven't changed drastically in the last decade and they're not expected to dramatically change now. When a CCNA update is finally announced you will see new content and changes to the objectives, but it won't be an entirely new exam, that's what you have to keep in mind.
Hopefully this article will allow those potential CCNA candidates who are worried about future changes to relax and just focus on the material. Anything that you'll learn about networking will be useful to you, and this is coming from someone who has run thin and thicknet Ethernet cabling.

How to Find the Right SharePoint Training: A Resource Guide for IT Pros

How to Find the Right SharePoint Training: A Resource Guide for IT Pros:
from Petri IT Knowledgebase 

Overview

One of those things that is always so important is for system engineers to quickly get up to speed on a new technology. If you’re getting ready to implement SharePoint, or you’ve been hearing your CITO talk about needing it and you want to help lead the project, there are a lot of resources available to help you get from “curious” to “awesome.”

Courses and Training Options for SharePoint 2010

You have some great training options that are available. There are both in-person and online classes and training videos that are dedicated to SharePoint 2010.


In-Person Training for SharePoint 2010

SharePoint 2010 Administration from SharePoint 911 – SharePoint 911 has a bunch of Microsoft MVPs working for them, and was founded by SharePoint MVP Shane Young. I’ve taken SharePoint training from Shane and he absolutely knows his stuff!

Online Courses for SharePoint 2010

Official Microsoft Instructor-Led SharePoint course – If you’re looking for something beyond what is available for free, this is one of the really great options. You can choose SharePoint training courses that are piecemeal (pick and choose the topics) or you can buy a collection which includes all of the training courses.
TrainSignal SharePoint Server courses – TrainSignal products are especially nice because they can be viewed online or you can use the DVDs they send to watch when you're offline. If that’s something that’s important because broadband connections aren’t available to you, TrainSignal may be the best option for you.

Online Do-It-Yourself Training for SharePoint 2010

If you are looking for some instructional videos, here are some great options – both free and some subscription-based services.

Free Online Videos

Free SharePoint 2010 courses from Office.com – There’s nothing like free training that you don’t have to leave your desk for. Microsoft is the ultimate source for how to use and implement their products. Most of these videos are from the end-user perspective, but many of the concepts, such as creating a site, are done by both end-users and administrators.

Subscription-Based access

IT Pro collection from Books 24x7: I’ve used the Books 24x7 library and it’s fantastic. Encourage your company to set up access for your IT department, and see which techies actually want to professionally develop. Their SharePoint collection has many more books than you’ll have time to read – and you can pick and choose from as many as you want.
Safari Books Online: Safari Books Online costs a little bit less than Books 24x7, and their collection is not from as many publishers. They do have all of the most important publishers: Microsoft Press, Sams, O’Reilly, and many more – plus they also are getting more videos all the time. A quick search for SharePoint on their site shows over 40 videos already dedicated to SharePoint 2010.

Books

Of course if what you really want is just information, and you just need to know which books are best, here are some recommendations:
Essential SharePoint 2010: Overview, Governance, and Planning

I love this book because it goes into much more detail about how to effectively plan your SharePoint implementation. It gives far less information about “how” to set up your SharePoint site – but there are so many books and trainings that cover that information. This book talks about the “why” for SharePoint. Once you can determine the “why” you’re doing SharePoint, the “how” becomes that much easier.
Managing and Implementing Microsoft SharePoint 2010 Projects

This book from Microsoft Press is used to help guide your project to completion. If you’re newly thrust into the position of getting SharePoint off the ground, and you’re wanting your SharePoint implementation to be a success, this book will really help with the planning and managing of your SharePoint project.
SharePoint 2010: Creating and Implementing Real-World Projects

This book is another one of my favorites because it goes beyond the nuts and bolts of SharePoint and really helps get things done. In some ways, handing somebody SharePoint is like turning them loose with a canvas and paints when they don’t know how to paint! In that same analogy, this book is teaching you how to paint. You can follow along with things that you will actually want to do with SharePoint - things like build a ticket tracking system for the helpdesk, or build a learning center complete with course registrations.
Microsoft SharePoint 2010 Administrator’s Companion

This is your nuts and bolts, standard book that should be on your Kindle. In this book, you’re going to find your basic reference material, and answers for your questions are easy to find. Another great thing about this book is that if you’ve gone digital, you won’t be missing out on the DVD content that comes with the print version; the digital version of this book comes with access to download the extra material.

Blogs

Here are some of the best blogs on SharePoint. Be careful! Reading these blogs may prove dangerously addictive! These are from some absolutely great SharePoint people, and they always have great information. Even when you’re up to speed on SharePoint, you will get great information from these resources.
SharePoint 911 Team Blogs

The SharePoint 911 staff is like a who’s who of SharePoint superstars. They are the authors of many of the SharePoint books we read, and the trainers for many of the classes we take. There are Microsoft MVPs all over their staff, and their blogs are awesome. The link here is to an aggregate of all of their individual blogs.
Official Microsoft SharePoint Team Blog

The latest news, and the first to announce advancements, free training, and best practices is often right at Microsoft’s own SharePoint Team Blog. Add it to your RSS reader, and you’ll be happy you did.


There are many more blogs worth mentioning, and I’ll mention two more that are just great:

Conclusion

Being new to SharePoint shouldn’t hold you back for long. Whether you can arrange full training sessions in an instructor-led course, a collection of online courses, or a few books to get you going, you can be up and running very quickly. And to continue your ongoing education, you can always get a few more books, and be sure to add some great SharePoint educators and leaders’ blogs to your RSS reader.
Want to compare screen sizes or know if it will fit your cabinet?
Here is a chart showing the width and height of different screens, monitors, LCDs, tablets, or eReaders.

https://plus.google.com/105257134551136576650/posts/UGRHamVX5NC

Tuesday, July 17, 2012

Your Uncle Wants Tech Support? Give Him This USB Stick

Your Uncle Wants Tech Support? Give Him This USB Stick: Two former Hewlett-Packard geeks have dreamed up a way to offload tech support work to a $35 USB stick that?s loaded with a lightweight version of Linux and some nifty disk-clean-up tools.

Use Regular Expressions to Find Anything in your Gmail Mailbox

Use Regular Expressions to Find Anything in your Gmail Mailbox:
Gmail offers some very useful search commands to help you quickly find messages that could be buried deep in your mailbox. For instance, a query like from:(John OR David) has:attachment after:2012/01/15 will locate all emails received in the past six month that have attachments and the send is either John or David. →
The built-in Gmail search is powerful but there are some scenarios where it will not work. For instance, you cannot perform a wildcard search inside Gmail (like apples * red). Or how do you locate all emails that have a phone number mentioned in the message body? It is also not possible to perform case-sensitive searches inside Gmail.
You can however do all this  in Gmail with the help of regular expressions (or regex).
Gmail Search with Regular Expressions

Advanced Gmail Search with Regular Expressions

Regular expressions allow you to perform complex search operations in most popular programming languages and the same can be used with Gmail as well using Google Docs. Let’s start with a simple example.
Say you are looking for email messages that contain any variation of the string “gray color”. There could be one or more spaces between the two words, the words may use either British or American spelling and the first letters may or may not be capitalized. The regular expression thus will be:
[Gg]r(a|e)y\s.*[Cc]olou?r
Where do you put this search expression? The search box in Gmail doesn’t support regular expressions directly but with Google Docs, it can. Here’s how:
  1. Click here to make a copy of the Gmail RegEx sheet into your Google Docs account.
  2. Wait for 10-15 seconds and a new Gmail RegEx menu will appear in your new Google sheet. Choose Initialize from the menu and grant the necessary permissions as requested by the program.
  3. The program will search your entire mailbox by default but if you would like to limit the search to any particular lable (say Inbox or Spam), just put that label name in cell F3.
  4. Now enter any regular expression in the cell F4 and choose “Search Mailbox” from the Gmail RegEx menu to begin searching.
Any messages that match your search criteria will be listed in the initial columns of the same sheet. If you would like to perform a new search, simply change the regex in cell F4 and choose Search from RegEx menu again. Please do note that Google Apps Script allows you to perform 10,000 read operations in Gmail per day.
And if you are curious to know how the program works, here’s the annotated source code.
Tweet this Share on Facebook

Digital Inspiration @labnolThis story, Use Regular Expressions to Find Anything in your Gmail Mailbox, was originally published at Digital Inspiration on 13/07/2012 under GMail, Internet.

A Piece of Paper That Boosts Your iPhone's Beats

A Piece of Paper That Boosts Your iPhone's Beats: Frustrated by your iPhone's itsy speaker? (We are.) Jonesing for the sense of accomplishment that comes with building something? (Always.) It'll take you 30 seconds at most to fold up and stick together eco-made's eco-amp, a fully recycled paper horn that passively amplifies the sound coming from that underpowered speaker.