Sunday, October 17, 2010

Fixed my CD DVD drive Model ht-dt-st rw dvd gcc-4243n

Windows updates that came out on 10/14/2010 screwed up my Acer laptop and it refused to finish Setup repair and crushed repeatedly. I tried to reboot from CD and USB as well as load Ubuntu and they all failed. So after spending 1 1/2 days pulling my hair out trying to resuscitate it, I have just about given up on Windows and Acer in particular.

This post is about trying to make my old Toshiba laptop work again. I had paid some crazy amount for it in 2005 before laptops got incredibly cheap. I paid some $1200 for a 486 RAM and 60GB HD 15.4 screen including 3 year service warranty with Office Depot. Anyway, it was really messed up along the way. After reinstalling XP, the CD DVD drive failed and although it showed it was "enabled" under Device Manager, it stopped working.

The Acer mess that has plagued me for the last 48hrs means I had to rely on my old and rather slow Toshiba laptop (painful but I am grateful it was there). Despite being a relatively machine it at least let me get on the internet and research for solutions to my problems.

First I had to uninstall Java and re-installed, and finally the Java Runtime environment and Java plug in work.

The next step was to find the drive for the CD DVD (model: ht-dt-st rw dvd gcc-4243n) I found out it is quite a common used CD DVD player by many second tier laptop manufacturers, Toshiba, Acers and some HP machines. Toshiba website listed it as a plug and play that it does not provide support for (sigh...) and that Windows should have the right driver for it depending on your operating system. The problems seems common, with many complaining of it failing and unable to read or write on it. Few solutions were posted and none seemed to have solved the problem for anyone (the reason for my post, as I was able to fix mine).

One of the forum answers suggested perhaps going to Microsoft Support for Windows and use Windows's Troubleshooter program.

First I had to download and install the Microsoft Automated Troubleshooting Program, and ran it, it found the CD DVD, uninstalled it and then re-installed and could not believe it fixed it!!

Below is the link:

support.microsoft.com/gp/cd_dvd_drive_problems

It was a pretty easy program to use, and it was able to detect the problem and fixed it, so it is worth a try if anyone is interested.

I had given up on the dead CD DVD drive, was ready to order a cheap external drive from Amazon. Now it reads, and plays DVD, still have to test and see if it writes to it, may be not be without some CD writing program like Nero. I know Nero has a free version.

The next project is to update the RAM on this laptop, if it would let me go up to 2gb. Amazon has a great deal on a 2gb RAM.

It is useless to have max HDD to the tune of 500gb on one's laptop, as once your laptop is "kapuk", if you are not able to resuscitate your laptop through no fault of yours as in the case of my Acer, then everything is lost (or risked being stolen if you give your laptop away). It is better to have max RAM and just enough HDD for programs to run efficiently, then store everything outside the laptop on a external portable drive.

Thursday, January 28, 2010

First task accomplished - Adding Adsense to body of blog post

After spending two afternoons reading up on the web and numerous trials and errors editing my blogger template, I was finally able to get the Adsense code into the body of my blog successfully. I think it was my 20th attempt. Learned a great deal in the process; that blogger is written in xml and does not communicate with adsense javabscripts and that I need to parse the code so it can be understood when the url is served. Using a code parser found readily on many websites, I parsed the Adsense codes that I had generated and inserted where it should go. It did not work. First it would not let me save the changes, with error message saying that my xml is incomplete. I made some changes the best I could,closing xml tags and when I was finally able to save the changes (assuming my tags are all closed and correct), the ads did not appear and in its place another error message appeared "webpage cannot be found". Having spent 4 hours going through web resources and forums and getting nowhere, I decided enough time is spent and I should just take another look another day.

It was bugging me all night though, it seemed so straight forward and yet I am not able to fix it, what am I missing? I decided to parse my Adsense code using a different code parser from another website. At first, I had the same xml tag not closed error, I looked at it carefully and added <div> at the beginning and </div> at the end. Low and behold, it let me saved the changes. I am making progress!! The ad appears except it is at the top of my blog post, not with the body text around the code. The next thing I decided to do (which I learned a long time ago) is to study source codes of other sites (View -> Source) and see what the difference was between my codes and theirs. I found a webpage that had an Adsense code embedded (wrapped) within his post and I saw he had two additional lines. I added them to mine and that fixed it!!

So here they are:

I inserted the following after <div class='post-header-line-1'/>
</div>
<div class='post-body'>
<div style='float: left; padding: 3px; 3px; 3px; 3px;'>

PARSED ADSENSE CODES

</div>

A few things to do before you start making all these changes, download a copy of the template and save it in case you mess up and need to revert to the working template. Second, make all your changes on notepad until you are ready to copy paste to insert it in your blog template.

P.S In order for the html codes above to appear as they are in my blog post and not to be be confused as a xml code, I had to change first "<" to & and lt (without the space) and that did the trick.

Wednesday, January 27, 2010

The Prologue

I started this blog as a way to chronicle my own development as a programmer, as a complete novice knowing only the most basic html codes and ziltch on Java and C++. It is a challenge to myself to see if I can put my head to it during my spare time and design something useful that someone would use. I spent most of my working life working for others until I caught the dotcom fever late 90s and I quit my very well paying job to work for myself. I have not looked back since. I am not rich by any means, in fact, you could say I am poor but contended, that I get to call my own holidays and work as much or as little as I want, as long as I plan ahead and make sure my own finances are in order.

So here it is, the tech revolution has caught my imagination and I wanted to give myself a challenge, if I could learn something new that is Greek to me and build an interesting application.

I have three passionate pursuits, photography, art, wine. Conservation and reducing my own carbon footprint is important to me so I have some ideas where I could start.

First of all, I need to learn programming. After extensive research on the web, I came across a link that took me to itunes classes at Stanford U. Apple has decided to make the Apple IPhone programming course lectures available via itunes to the general public. In addition, there were also lectures on Programming Methodology and Programming Abstraction one could download and watch at your free time. So I sprang into action, downloaded all the lectures, about 50 of them in total.

I have watched both lectures 1 and 2 of the Apple IPhone Programming Course and have just finished watching my third Programming Methodology lecture by Prof Mehran Sahami. Now these are lecture notes from Fall 2008. (2009 lectures were not on itunes for some reason). I am not sure if Prof Mehran Sahami is still teaching that class, but you should take the class from him if he is. Prof Mehran is so funny and makes this beginning programming class interesting and yes not intimidating, can I say that.

A book I bought recently to read that I highly recommend:
The Hidden Language of Computer Hardware and Software by Charles Petzold, Microsoft Press, 2000. Here is a link to Amazon page