Next generation's garbage RSS 2.0
# Monday, January 14, 2008

I got my hinge and got a couple of hours. Repair done. For anyone trying to do this let me say that it is not for the faint of heart and not really something you should start and continue on a different day. Give yourself plenty of uninterrupted time to complete the repair. Take pictures along the way -- if for no other reason than when you blog it you can include pictures. (Whoops.)

If you've got the bucks and are going to keep the laptop for a while, consider maxing the RAM, replacing both hinges, upgrading the hard drive and replacing the power plug. Thankfully, Sony had the foresight to not board mount the power plug. Get the service manual too. For this model, there was only a compatible model's service manual (SM VGNA-130/B/P/170 Part#: 987636707). Call/email the parts place for yours.

  1. First, leave it open at 90 degrees or so -- make sure you support the angle so you don't break the other hinge and possibly rip a display cable.
  2. Power off.
  3. Remove the battery.
  4. Remove the keyboard by unscrewing the two dotted arrow marked screws.
  5. Gently pry up the bottom edge of the left/right edge of the keyboard and lift up a little.
  6. Locate the keyboard ribbon connector and gently work it out of the socket.
  7. Under the keyboard there are two totally different screws that need to pulled out.
  8. Now unscrew the fifteen million other screws from under the machine. I think you only need to remove the arrow marked screws. Most are the same size, but two are long -- use your screwdriver to scratch the case or use tape to indicate where they go. I don't think you need to remove the flush screws from underneath, but I think you might need to remove the two screws from the back edge.
  9. Now the "palm rest" can be lifted with a little gentle wiggling.
  10. Look for the two ribbons (mouse, speakers/buttons) that need to be taken off.
  11. Remove the palm rest. Now you should be able to see the base parts (feet) of the two hinges.
  12. Now for the display bezel. Use a dull point to lift off the rubber covers off the screws in the four corners of the bezel. Unscrew them.
  13. Now you will have to use a little bit of force to pry the bezel off, but be careful not to slip and crack/scratch the display. (That's a $700 part!) Also watch out for the hinge area of the bezel.
  14. Lift off the plastic hinge cover.
  15. Be sure to support the display while you unscrew the screws holding the arm of the hinge.
  16. Then unscrew the foot and you should be able to slip the hinge part out without totally disassembling the display frame.
  17. Slip the new hinge arm in and screw it down, now angle the display so the hinge foot is against the base flat and screw it together.
  18. Now make sure that the display cable (both sides have some cabling) slips in the hinge without interference.
  19. If you are replacing both hinges, replace the broken one first and screw it in before unscrewing the other one.
Monday, January 14, 2008 10:29:19 AM (US Mountain Standard Time, UTC-07:00)  #    Comments [1] -
Hardware
# Friday, January 04, 2008

Happy New Year everybody!

Last night after some good surfing and channel9 (http://channel9.msdn.com/ShowPost.aspx?PostID=365911) video watching I went to close my laptop. Now anyone that knows me knows that I handle my laptop very gingerly and I did last night too. You see, my laptop (a Sony VAIO Vaio VGN-A190... yes, I know, mid 2004, how quaint) already has a hull breach or two. The display bezel is cracked in a couple of places and the display cover is cracked at the hinges and in the middle of the top and bottom edges, but these are cosmetic problems. Last night the right side display hinge snapped, which could have been really bad since that's the side that carries the display cable. [Update 2008-01-14: Only the power for the display runs on the right, the signal is on the left side hinge.]

The laptop buying advice: When buying a laptop, check the manufacturer's website for a way to order parts. They should have a good assortment of parts available for the model you are buying, but, more importantly, in-stock parts for a similar class from 3-4 years ago. Sony has DAPC (http://sony.com/dapc) which is pretty good. I quickly found the part and ordered it.

What I would like to see in the future is service manuals or at least a disasesmbly diagram available online.

This is the second time I've used Sony's DAPC. My wife also has a Sony Vaio VGN-A190 and I've replaced her keyboard and the power plug on it. For anyone who stumbles on this post trying to replace the keyboard or add RAM, the trick is to take out the two screws from underneath that have the dotted arrows on them and then gently pry up the bottom edge on the left and right side of the keyboard. Be careful not to rip the ribbon cable.

Some more advice on laptops:

Invest in the screen and processor but be cheap on the memory and hard drive - you can upgrade those later when you need to. Both our laptops are now maxed out for memory at 2GB. I suppose the more general rule is invest in the stuff you can't change later like the size for example. You can't buy a bigger or smaller screen really.

The A190s came with docking stations that have a tuner card and all that jazz. My advice is to skip that stuff. Docks are not really that useful, at least for me.

I figure I've got another year of life left in those laptops before I retire them and get another pair of laptops. I'm tempted to get a bigger drive for mine, but I think I'll just limp along with my stock 80GB. Hitachi just announced a 500GB 2.5" drive (http://www.hitachigst.com/portal/site/en/menuitem.045215966480a7127d807c90eac4f0a0/) which would be great except it's SATA only. John C. Dvorak called it (http://www.dvorak.org/blog/?p=15418) and I agree, this is another nail in the coffin for desktop machines.

Friday, January 04, 2008 11:13:55 AM (US Mountain Standard Time, UTC-07:00)  #    Comments [1] -
Hardware
# Wednesday, December 05, 2007

I was just listening to a podcast (Windows Weekly from twit.tv) about the latest drop of Windows Live (http://windowslive.com) and decide to try it out. I'm posting this blog entry from Windows Live Writer, which was crazy easy to setup. I'll be trying out some of the other stuff over the next few days and I'll report back on my experience.

Wednesday, December 05, 2007 1:13:57 PM (US Mountain Standard Time, UTC-07:00)  #    Comments [1] -
Windows Live
# Tuesday, November 20, 2007
I wanted to pass along some key new things to check out from Microsoft:
  • The big one is Visual Studio 2008. It has been released including Express Editions. You definitely want to check this out at msdn.com/express.
  • Also, for you math heads out there, check out the new Word 2007 add-in, "Microsoft Math". Get it at download.microsoft.com - search for officemath.
  • For all you who have lamented about having to fill the same forms over and over at the doctor's office, check out HealthVault (healthvault.com). It is a platform for holding personal information (like the usual stuff you fill out on those forms) and holding ongoing data (like blood glucose levels synced from compatible monitors). You can choose what data to share with whom, for example, you can share your heart rate data to your exercise group or family to show your progress.
  • For the bean counters, there's Office Accounting 2008, including an Express edition. This new version includes online banking service integration. If you're running or thinking about Intuit's Quikbooks, check this out at office.microsoft.com/accounting.
  • Search Server 2008 now includes an Express edition. This gives you web search of your web and disk content. The release candidate is available at microsoft.com/enterprisesearch
  • SQL Server 2008 November CTP - microsoft.com/sql

I normally scoff at blogs that are nothing but repeaters for Microsoft's marketing department, so I've tried to keep the descriptions unhyped. Additionally, these are all things I will be working with in the near future, so expect to see more information related to these soon.

Tuesday, November 20, 2007 12:16:01 PM (US Mountain Standard Time, UTC-07:00)  #    Comments [0] -
Office 12 | SharePoint
# Monday, November 12, 2007

Trying to weed out blogs that I shouldn't bother with. If you wanna survive my brutal weeding process, make your blog titles clever but meaningful. That is, make it so I can sucessfully predict what your blarticle will be about but keep it so I want to read it from just the title.

Monday, November 12, 2007 12:13:52 AM (US Mountain Standard Time, UTC-07:00)  #    Comments [0] -

# Sunday, November 11, 2007

Well, it's been a week with the iPhone. It really is pretty nice. I ended up with it primarily because for a smart phone it was the cheapest to run. AT&T would have charged my wife an I almost $200/mo to run a pair of Tilts or other WM6 based phones, but a pair of iPhones is just over $100/mo.

The iPhone is a first class phone. Way more than I can say for anything I've seen built on Windows Mobile. No WM phone I've seen passes the pocket test. The iPhone is surprisingly thin and small. It is very pocket compatible. The WiFi and EDGE web browsing/emailing is super addictive. I almost look forward to standing in line somewhere so I can catch up on stuff. I crave riding the bus so I can surf. I had started to neglect my email -- just never time to catch up, but I'm now jumping when my iPhone chimes. Maybe this will all wear off, but I don't think so. I find myself choosing to surf from my iPhone even when my laptop is right there next to it.

The big things that suck are:

  • no copy/paste -- this really sucks.
  • tethering (PC data connect through iPhone) costs extra -- I wish that I could EDGE connect via Bluetooth even at a throttled speed or limited amount. You can get a plan that includes this but it's pretty expensive.

Other annoyances include:

  • should be able to sync via Bluetooth (I couldn't get this to work)
  • more support for other video formats both synced and online
  • I wish I could speed control playback
  • The camera is pretty bad -- it doesn't have video either
  • The clock & weather apps should have been combined.
  • There needs to be a better todo list thingy than 'notes'.

I don't really care that there is no IM support - It just seems like a rude technology.

Overall, I recommend it highly.

Sunday, November 11, 2007 1:14:50 AM (US Mountain Standard Time, UTC-07:00)  #    Comments [0] -

# Saturday, November 10, 2007

Everyone knows exception handling is relatively expensive, but it is important to keep in mind where the cost lies. It is primarily in the throw action. The price of a try is nearly zero when no exceptions occur.

In the IL instruction stream the only difference between a wrapped block of code and plain is a LEAVE instruction that jumps around the catch block. The method has an exception table that marks the region of code protected. What happens when we actually time the difference? The result is extremely small -- and strangely enough, try/catch in the loop is slightly faster for C#! Because the numbers we are dealing with are so small, however, I would suggest that this is coincidental noise due to instruction alignment or something like that. I would guess that the cost of try is essentially crushed out by the JIT compiler optimizer.

The real expensive operation is throwing exceptions. How expensive? My tests show it's about 36 microseconds each. Slow by comparison, but maybe not as slow as you thought. As expected VB's exception handling was a little bit slower (~1%), due no doubt to SetProjectError calls that are inserted before throws/rethrows.

I always had an assumption that THROW (rethrow) was cheaper than THROW ex or THROW NEW. I reasoned that the stackframe would not have to be gathered during rethrow. Timing it shows rethrow is slightly slower.

I learned you have to be pretty careful about timing code. For example, a significant amount of time is burned JITing when a function is hit the first time, and that first exceptions are really expensive. Firsts should be burned off before timing begins.

Try out the code attached and post your results and please give environment.

Here's my numbers on a Dell Latitude D830 1.7GHz 64-bit laptop w/ 4GB RAM.

>CSharp.exe 10000000000 100000
trycount=10,000,000,000, throwcount=100,000
Loop without try/catch: 31132 milliseconds
Loop with try/catch: 21251 milliseconds
difference: -9881 milliseconds
throw new with 5 throw ex: 21448 milliseconds
throw new with 5 rethrows: 21370 milliseconds
difference: 78 milliseconds

>VB.exe 10000000000 100000
trycount=10,000,000,000, throwcount=100,000
Loop without try/catch: 23361 milliseconds
Loop with try/catch: 30739 milliseconds
difference: 7378 milliseconds
throw new with 5 throw ex: 21617 milliseconds
throw new with 5 rethrows: 21845 milliseconds
difference: -228 milliseconds

Attached: TestExceptionHandlingInLoop.rar (12.5 KB)
Saturday, November 10, 2007 1:59:25 PM (US Mountain Standard Time, UTC-07:00)  #    Comments [0] -
.NET Internals
# Sunday, November 04, 2007

blogging from my iPhone

Sunday, November 04, 2007 11:15:53 PM (US Mountain Standard Time, UTC-07:00)  #    Comments [1] -

Archive
<January 2008>
SunMonTueWedThuFriSat
303112345
6789101112
13141516171819
20212223242526
272829303112
3456789
All Content © 2009, Hafthor Stefansson - Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way. - Sign In