JitendraBhatt.com | Blog | My Albums | Web Samples Sunday May 20, 2012 
May 04
MCK Basketball 05022012
Category : MCK Videos
Hits : 285
Apr 13
MCK Basketball 04112012
Category : MCK Videos
Hits : 578
Feb 25

The link below will take you to a great post that helped me fix my broken glovebox in less than 30 minutes.

My glovebox would not stay shut and the handle wasn’t doing anything. I noticed that the pins that keep the glovebox locked in were not moving. So I researched this online and found this very useful post. Amazingly I had the exact same problem as shown in the post linked below (and I applied the the same fix). I will admit that the toughest thing was snapping the cover off. It is glued on and does not seem like it wanted to come off. It is very scary taking it off, because you will swear to yourself that something is wrong and that you are breaking it…but you are NOT!!!

Follow the link below and you should be good to go!

http://forums.vwvortex.com/zeropost?cmd=tshow&id=3836558

Jan 05

I decided to help my buddy out with a website he is working on. It has over 2000 pages all which are in html. In order to make it a bit more dynamic we are changing all of the pages to .php and updating the code to be more flexible and easier to update. We should incorporate a database and make the website data-driven however we’ll forget about that for now and focus on the topic at hand.

So while changing all the pages to .php I realized that most of the pages have anywhere from a few hundred to over a thousand other pages linking to them. Instead of constantly updating every page on the site and uploading it to the server I decided to use a redirect on the old .html pages in order to alleviate any concerns about missing or incorrect links. I do not want forget to change a single link, since we all know that will end up being the most important link of all!!!

Anyway, I decided to incorporate a simple HTML redirect.
<head><meta HTTP-EQUIV=”REFRESH” content=”0; url=http://www.yourdomain.com/index.html”></head>

The redirect solution is not ideal in many cases, but can be useful when absolutely needed. In this case, I no longer have to worry about a single incorrect link. Any page that linked to abc.html is now being redirected to abc.php. This is a very simple way to avoid major headaches and speed up the updating process. The main thing to keep in mind is to delete everything from the old HTML page except for the redirect code. This will help with the redirect speed. If you comment out all the code on the .html page, the server will still load it before redirecting to the new page!

Data Source: Web Source

Dec 08

nullFood, Inc. is a great eye opening documentary. Like many other documentaries it changes the way you look at certain things. For sure I will not renounce all fast food or quit going to restaurants simply because I love the taste. However, purchasing locally grown foods and paying attention to whom I am buying the food from is something I can incorporate into my daily routine without any hard work. Cutting down on the amount of times I eat out is something I am definitely open to. Not only will it help my health but my pockets as well. And let’s be honest – most of the people on this planet are driven by money. Before we do almost anything, the first question we ask is how much will it cost, and is the cost worth it.

Not to steer too far away from the point of this post…please check out Food, Inc. If nothing else, it makes a good movie! For me it’s not a life altering movie, but it definitely provided a lot of insight on a subject I was blind to. We never stop to think how buying food(something we do DAILY) or the type of food we buy affects us and the rest of the life on our planet.

If nothing else check out this link for Food, Inc. – Food, Inc.

Dec 03

For quite some time I have had a problem getting my Philips VOIP321 Phone to work with Skype on Windows 7.  Up to this point the only solution was using the phone with Windows XP.  However, recently I was successful in making the Skype Phone work successfully with WIN 7.  Below you will find steps to help you set up your Philips VOIP321 with WIN 7.

  1. Make sure you are starting from scratch!  If you have already installed the VOIP321 software, uninstall it and restart the computer.
  2. Download the updated Philips Driver for Windows Vista (voip3211g_37_dwv_eng)
  3. Install the downloaded software (voip3211g…)
  4. After Installation….
  5. Right-click on the VOIP321 icon on the desktop
  6. Select “Properties”
  7. Click on the “Compatibility” tab
  8. Check the “Run this program in compatibility mode for” box
  9. Select “Windows Vista (Service Pack 2)”
  10. Restart the computer

That’s it!

Data Source: Philips.com

Sep 10

How to install NVIDIA Drivers on your WIN 7

All over the internet all Lenovo users are having the same issue with the new WIN 7 OS. They cannot get the NVIDIA Drivers working on their laptop. If you are like me and use your laptop to connect to your HDTV, play games, or edit videos then of course this is a major problem. I have seen many people post bogus solutions with links that do not work or take you to a “This page does not exist” site, or simply post workarounds that do not “WORK”!

Well, I have the solution for you and it’s a simple fix that takes less than 1 minute.

NVIDIA Quadro NVS 140M Driver Instructions:
***Follow these instructions step by step, do not try steer away from the instructions or the install will not work!!!
1) Download the NVIDIA VISTA x64 bit driver from Lenovo.com (YES VISTA DRIVER FOR WIN 7)
2) Extract the files to C:\DRIVERS\WIN\VIDEO
3) Open up Command Prompt
4) Type in C:\DRIVERS\WIN\VIDEO\SETUP.EXE
5) Follow the NVIDIA prompts all the way through
6) Click Finish and restart your computer

That’s it! Please let me know if this does not work for you and I will do my best to help…

Aug 11

GM says their new Chevy Volt will get up to 230 miles per gallon in the city.

This would be the first vehicle to exceed the three digit gas mileage barrier.  The car has an electric motor and a small internal combustion engine inside.  The electric motor is rechargeable using your standard home outlet.

Set to hit the showrooms in 2010 this would be a huge jump from the current electric / hybrid cars that do not get more than 100 MPG.

I’m very excited to see what kind of response this car will get when it finally hits the streets.  I do have to mention that as of right now the car is estimated to cost about $40K which limits its consumer market.  However, I am sure that the pricing will be restructured in order to make the vehicle more affordable.

 Chevy_Volt
Image Source: http://www.ecoautoninja.com/wp-content/uploads/2009/04/chevy-volt1.jpg

Aug 10

This is a very simple Browser Compatibily Script using ASP to help you with basic cross-platform issues.

So what I was looking for is very simple. I have a page which uses CSS to display a New Products Bar on a website. I was using CSS along with JQuery and when all was said and done, in IE everything was working perfectly. However, as most developers know, one of the most common issues with different browsers is how they handle CSS. When I checked the same page in FireFox, my text, which was supposed to be in the middle of the screen, was showing up at the top left of the site (position:absolute). Therefore, instead of re-coding the whole page and figuring out how to make JQuery and CSS play nice with all browsers, I decided to simply implement a very basic browser-compatibility script to get around the problem.


<%
dim currentBrowser, browserHeight

currentbrowser = Request.ServerVariables("HTTP_USER_AGENT")

If InStr(1, Request.ServerVariables("HTTP_USER_AGENT"), "MSIE") then
browserHeight = "0"
Else
browserHeight = "-12"
End If
%>

Basically, I am checking to see if the browser that is calling this page is IE or not. If it is IE I am setting the browserHeight=0 and if it is any other browser then I am setting the browserHeight=”-12″.

browerHeight is serving as my top: value in CSS.

That’s it. Without spending too much time I solved my problem with this simple block of code. Of course, this is not meant for everyone, but it is a very useful script for anyone who needs a quick fix with browser-compatibility issues.

Aug 09

ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails

Here’s what happened and how I fixed the error:

I had two tables I was working on – CUST and MEDIA tables. I was looking to modify the cust table and make the MEDIA_ID (PK for MEDIA TABLE) a FOREIGN KEY in the CUST TABLE. However, after several attempts I kept getting the aforementioned error.

Here is my ALTER statement: ALTER TABLE CUST ADD FOREIGN KEY (MEDIA_ID) REFERENCES MEDIA (MEDIA_ID);

CUST table

MEDIA table

I researched this ERROR online and found many possible fixes however, none of them applied/worked for my problem. Therefore, I decided to start over and do a thorough inspection on both of these two tables…

In a matter of seconds I found the problem….If you will take a look at the two images above you will notice that the MEDIA_ID in the CUST table was defined as a decimal(1,0) while the MEDIA table defined MEDIA_ID as a decimal(10,0). Therefore, my REFERENCE clause was failing since the MEDIA_ID in the MEDIA table accepts different values opposed to the MEDIA_ID in the CUST table.