Friday, October 15, 2010

Technical Interviews

In my career I've done numerous in-person interviews, phone screens, technical evaluations, skill tests etc both from the employer and employee side and it amazes me the number of people who seem to bomb job interviews.  Normally, a person decides if they want to hire you within the first few minutes of an interview.  So you literally have only a couple of minutes to sell yourself to a potential employer.

Here are some common mistakes I've seen in interview and how to avoid them:

1. Being too general.  If an interviewer asks you about your experience the likely answer is to give a high level overview (C#, ASP.NET, SQL) which doesn't tell the much.  Likely since you're being interviewed they already know this information.  Instead, talk about what do you with the technologies you use.

I've heard countless interviews where the interviewee will describe their experience by merely listing out keywords: "C#, SQL, ASP.NET, Web Service, SQL, Oracle..."

A better example, "I primarily build ASP.NET sites using C# and ASMX web service.  On my sites I use the AJAX toolkit to communicate to the server to get combo box values and dynamically load content based on user selections.  I also use JavaScript for client-side validation of user input."

You might also throw in any applicable controls you've used that employer might be looking for.  Example (continuing from the fist example): "In my most recent project at ABC I've been using the RAD controls for data grids that display accounting information that the user can edit which is 2-way data bound to my Entity Framework business objects."

2. Overstating your qualifications.  Generally, questions like "What is your experience with x?" is a setup question.  If you answer "Yes" then you'll probably get 3-4 more follow-up questions.  Be honest about your experience with a technology and what you have done with it.  If you don't have any experience then a good answer is "No but I'd like to learn more about it and work with it."  Additionally, try and take a positive spin if possible and talk about a similar technology or approach you've used in the past.  Example: "I don't have experience with Biz Talk but I have used Windows Workflow before to create processes and tie business processes together."

3. Being an interview killer.  Killing an interview is where you say something (or several things) that will automatically disqualify you to an employer.  Listening is key to getting a job.  Listen to what the interviewers say.  If they have a different lingo for something; use their lingo.  For example if they call XML returned from a web service a "payload" then call it a payload when you talk about it instead of an "XML string" if that's your word for it.  This tells them you are listening and helps show that you can fit in and adapt to the team.

Additionally, don't contradict the position you are interviewing for.  For example, many times I will tell someone the position is a UI or back-end job and they'll later state their preference is the opposite (or something different) of what we're looking for.  If the job is not one you want; don't interview for it.

Last, don't be absolute about how you do things.  For example, "I would never hard code SQL into my application."  This can make for tense moments and give a bad impression if this is a habit or approach your potential employer is taking.  You might say instead, "Normally, I don't hard code SQL into my application I keep it in the stored procedure but there are circumstances I would do things differently."

In review, always talk about what you've don with the technology (not what technologies you know), be honest about your qualifications and turn negative into positives by talking about similar technologies or approaches taken in the past, and don't kill the interview; listen, use their terms, and don't be absolute.

Tuesday, October 12, 2010

XBox 360 Data Migration Cable Warning

I recently purchased a 250gb XBox 360 drive through EBay and ordered a data migration cable for the Xbox 360 through another seller.

Visually, the cable I received looks like the Microsoft cable but it doesn't have Microsoft stamped on the side.  The included software was also not Microsoft and when I inserted the disk the label of the CD was in Chinese!

After scouring the internet I found that the real data migration cable works by inserting the new drive into the XBox 360 slot and attaching the old drive using the cable.  When you power on your XBox it recognizes the old and new drive and offers to migrate your data automatically.  No CD required!  However, since this wasn't a real Microsoft cable... it didn't recognize my old drive when I tried this.

Additionally, the software that was included with my knock-off kit had very poor instructions an didn't recognize the drive when connected to my laptop either... so I couldn't even attempt to copy my data over via that mechanism.

I'm a little skeptical now that the Ebay seller, despite a very high ranking, didn't but a hard drive case and cram a compatible drive into it.  This could violate the XBox TOS (terms of service) and cause me to get banned on XBox Live!  I'm going to throughly investigate the drive before using it!

Thursday, October 7, 2010

Google Chrome - very good with some minor flaws.

I have to say that since using Chrome since April I've been very impressed with it.  For the most part it is visibly faster when browsing the overwhelming majority of sites when compared to IE.

Typically I browse on a Dual 1GHz machine or a Netbook running a 1.7Ghz Atom processor and reserve games for my XBox 360 or heavy duty processing (database and programming) to a dedicated machine.  So in these slower CPU environments you can really tell a difference when a browser is working well vs. a higher end machine brute forcing its way through inefficient coding.

That said, there is one time I find Chrome lacking and switch over to IE which is e-Commerce.  I've noticed on several sites when I attempt to purchase something and SSL is involved that I get session timeouts, errors, or the domain mismatch warning messages.  Even if I click "Proceed Anyway" I have issues.  I switch over to IE and have no problems.  So, I'd say its probably 5% IE (online purchases and some rare cases where Chrome doesn't render a site properly but IE does) and 95% Chrome in terms of my browsing usage.

As an aside some websites to try when comparing Chrome to IE:
Realtor.com
FoxSports Fantasty Football site  (which is horrid, see my random blog entry)

Increasing Computer Performance

I haven't really had any blog worthy tech stuff recently so I thought I'd relay some information about Overclocking in computing for those who might be interested to know more.

Basically with overclocking you are increasing the number of instructions the CPU can process in a given clock cycle by changing some basic BIOS settings.  Typically at the expense of stability (tho this can be nominal) and power consumption you can see major speed improvements over your stock CPU settings.  Conversely, many laptops use underclocking which saves power and wear on the CPU by decreasing the number of clock cycles.

Overclocking has two components the clock cycles on the CPU (called the multiplier typically) and clock rate on the FSB (Front-Side Bus).  The CPU multiplier is the instruction speed internally to the CPU while the FSB is how quickly information is sent to the other components.  Quick note: The FSB is the communication pipline from the CPU to the Northbridge which is what communicates to many of the other Motherboard components like the RAM and installed cards.  Contrastingly, the Southbridge communicates with the "slower" devices like drives and other I/O devices.  For newer chips the FSB is now being called the QPI (Quick Path Interconnect) but its the same concept.

By switching the multiplier settings and clock rate you can increase the performance of your machine if done correctly.  You'd also change the timing on your RAM as well to get an increase in performance since any slow point in the chain is going to cause bottlenecks.  You'll notice many GPUs will have similar settings like the motherboard to overclock.

One thing you'll also need to factor in is cooling and your power supply's ability to handle the increased draw for overclocking.  This is why many overclocked machines use water or other non-air cooling solutions in addition to high wattage power supplies.

There is no real formula on which settings to use to overclock your machine... its a process of trail and error but there are sites that might help you in this area.

One last thing to talk about is unlocking vs overclocking.  Overclocking is increasing hardware performance by increasing power consumption while unlocking is enabling existing hardware functionality that was intentionally disabled by the manufacturer.  When unlocking is applicable is scenarios where a piece of hardware is the same across product models but high-end features are disabled.  An unlocked card would a cheaper end of that line that has been flashed (firmware updated) to allow all the features that are normally reserved for the higher-end card.   The drawback to this method of performance tuning is that some cards are not tested to work at their max settings if they're a lower end card so it might not work OR the manufacturer has modified the hardware in such a way that the features don't work on the lower end card like severing the pathways on the board.

Thursday, September 23, 2010

Learning from the Mistakes of Others

I read an article recently about the now infamous BP oil spill and what went wrong.  Much of the focus was on the mechanism in place, called the Blow Out Preventer or BOP, that failed to seal the oil pipe after the Deep Horizon rig exploded.

The Popular Science article I read paints quite a different picture.  Weeks, days, hours, and minutes leading up to the explosion processes were not followed, bad practices employed, and warning signs avoided.  All these failures made a preventable situation transform into a global disaster.

A lesson to be learned here is that in our IT roles we have the power here and now to prevent catastrophic failures for our organizations by following process, establishing and implementing best practices, and paying attention to signs of a potenial problem.

I'll give a few examples of some situations I've seen, what went wrong, and how it could have been prevented.

1. Virus and Database failure.  An employee receives an email with a virus that propogates through his machine and into other computers on the network.  The virus gets into a SQL Server and causes the database to be corrupted.  On site backups fail, offsite backups brought in fail, and luckily a production copy was moved to a testing database server and used to restore production.

What went wrong and how to prevent it?  The employee whose computer was infected had the virus scan disabled (employee felt it was slowing everything down), Outlook was allow to run scripts automatically (IE, wasn't locked down properly), and when the employee noticed his machine was out of space and a mysterious file was all over his computer... he didn't notify anyone and left his machine connected to the network.  As you can see a series of failures.  Next, the database backups were assumed to be good but the backup process was never tested.  Doing daily backups and shipping backups offsite is a great idea, but only if the backups work.  A restore to a test server should be done periodically to ensure backups are working.  Also, there was no log shipping or other routine in place to capture data between backups.  Luckily, not much data was lost but some surely was because the "restore" data was a one off copy of production data to a test database.

2. A power outage occurs in an office building.  The server room backup power kicks on but the outage is expected to last a while so generator power is started up.  After all the IT staff has gone home for the day but employees are still working to meet a deadline all IT services are lost.  It takes several calls and several hours to resolve.

What happened and how to prevent it?  IT did not have a clear procedure or process for running their server room on battery backup and/or generator power.  Ironically, they had just completed a Disaster Recovery Plan and didn't contemplate this scenario.  An outside consultant handled the server room maintenance and their procedure for using generator power included unplugging the main power line for the servers.  When power was restored and the generator taken offline the servers were running soley on battery power.  Several hours later after everyone left, the battery backups died.   As mentioned, process played a part here.  Someone should have known and ensured the servers were running on the right power source.  No tools or notifications were setup to notify IT when servers started running on batteries and what the status of the batteries were.   Obviously, once all the servers went out there was no way to remotely access them and a further delay was caused trying to locate the right people, figure out the problem, and physically get someone to the building to correct the problem.  Further compounding the issue was that scheduled tasks did not get completed and some processes were stopped midprocess so it took a full day of the programming team's time to assess anything in process that might have failed.

3. This last scenario involves ignoring warning signs.  These events happened at several different places but the results were the same.  In both cases the server room started getting progressively warmer and warmer and nobody bothered to investigate.  The problem culminated in a number of servers shutting down due to overheating.  The IT staff had no plan on how to handle A/C failures and by not investigating didn't realize the dedicated a/c units to those server rooms were not working.  The servers would be restarted only to die a few minutes later again, overheating.  In both cases, someone had to scramble to find some type of large fan to cycle cool air into the server room.  In both cases after the a/c was fixed several machines weeks later experienced drive failures and other quirks likely due to overheating.

What went wrong?  Someone noticed a problem and failed to investigate.  A server room is normally small with a dedicated a/c unit and without that cold air the room can quickly get very hot causing the servers to overheat.  As mentioned in Scenario 2, while this office has a Disaster Plan it didn't include environmental failures like this.  While some servers were turned on others were left off (stopping work for some departments) to keep the heat down.  There was no plan for priority and duration for various departments to keep operating.  Additionally, this business had a "hot" backup site but no mechanism was in place to switch over.

Sunday, September 19, 2010

Uses for Power Line network plugs

Many people complain the top speed of the "Power Line" style network adapters are slow but I've found a few ways and places that these can be useful.

If you don't know the Power Line adapters plug into the wall and use your existing wiring to transmit data.  This works because the current going through the lines is a wave an if you remember back to high school science waves have periods where they are at "0".  During these "0" times, the adapter can send information.

1. I've used one of the newer NetGear Power Lines to access internet content on my Xbox 360.  I normally use it to download patches, updates, and watch NetFlix (I'm normally able to get full picture quality with no lag).  I'm not sure how good this would be for gaming but for my purposes it works great.

2. I keep one always connected to my router and the wall so that I can have a floating hard-wired connection in the house as needed.  Sometimes my household wireless has trouble in some spots and the speed is not good enough for what I'm trying to do (like watching a streaming video on Netflix on my Netbook) so having the ability to plug in a connection anywhere is ideal.

3. Network printing.  I couldn't find a spot in my office for the printer so I put it in a closet and used a Power Line for connectivity to it.

4. WAPs.  Another solution to problem 2 is to use a Power Line plug to provide a Wireless Access Point a connection to the router.  This way you can go wireless but have extended range or test your WAP's range and performance before running CAT5.

5. IP Phones.  Allows a connection for IP phones virtually anywhere in your house or your VoIP router.

Monday, September 13, 2010

ClearCase ... not a fan

So one of my clients is switching to ClearCase for source management.  Not a fan!

With say Visual SourceSafe the install is as simple as running the install, maybe specifying a few simple options, and waiting for the install to run.

With ClearCase I've had literally 30 steps to perform and its still not installed and integrated with Visual Studio.

Some steps:
1. To check the version I had to run a batch file and email it to someone.  Ironically, the utility runs and the output message is "take this text file and email it to the person who sent you this utility."

2. I've had to search the HDD for files so I could update the registry with the correct path.  (Why couldn't the install figure this out and update the registry?)

3. I've had to run additional command line utilities to attempt to register ClearCase with Visual Studio.

Really?  I feel like we've back in the 90s running EMM386 and changing Config.sys files to make enough Virtual and Extended Memory to play a MS DOS game!

People who complain Windows is too complex/buggy need to try installing ClearCase!