Google Chrome Frame Plugin!

There is many of technologies that are not supported in IE 6,7,8 and even 9; such as rich text editing and faster Java script execution. some of these features supported on the new versions of IE but not supported in the older versions, like the curve edges for tables, buttons..etc (supported on IE 9 but not on IE 6)

Usually the end users would like to see the same UI over any browsers and the bad news is, there are some people working on the very old version of IE; IE 6 – I have no idea why they still using such browser.

on the other hand; the GOOD NEWS; There is plugin form Google Chrome, that you can install it on the old IE version and let Chrome handle rendering the websites just like if it is running under chrome. it will be look very good and execute the client side script in very efficient way. that would make the developer life much easier and get rid of having the headache of supporting multiple browsers with very old technologies like IE 6!

Installing this plugin will be very easy, it will be a matter of single click, to install this plugin, please use the below link to get into the downloadable area from Google Chrome!http://www.google.com/chromeframe?quickenable=true

Basically, this plugin will create a frame inside the IE and let Chrome rendering engine render the web page instead of the IE browser; that means whatever is supported on the LATEST chrome version will be there as well. it is like do a perfect union between IE and chrome to get the best of chrome inside the IE!

How to Install OneNote Printer to Simulate Printing Process

One of the components that I worked on recently is printing components and I got into a need to test how things going when I print out to the printer. It was a costly thing to keep printing out into a hard copy papers. one of the ultimate solutions for this is to simulate the printing process. so I start using OneNote printer (which is installed automatically once you install MS OneNote product). it was brilliant idea to use it and it worked just perfectly.

For some reasons the OneNote printer got deleted from my machine, and I got into a need to use it again; I look up for help and I found this article that helped me on reinstalling the printer again http://speedstug.com/node/85… This solved the issue that I faced.

Locate the Position of website user by IP Address

How can sites knows the country of users? a friend of mine asked me that question and that question drive us into long conversation about “Locating Positions of website’s user”. the idea is very simple behind how the sites locate users’ location. it is by IP address. these days there are many sites that can let you determine in which country a certain IP address, more over, it may give you a very accurate address. I’m usually using ip2location site but there are many websites that do the same job like geobytes and hostip.

Also there are some sites which selling database of IP addresses and locations but you need to keep updating your database every once awhile incase you decided to go with that

Go for Wireless Internet Connections

I had a discussion with a friend of mine about why to go with Wireless Internet connections rather than using the standard way for it; meaning over land phone lines. I have been using wireless internet connectivity for like 2 years by and I am super happy with it. the first concern that I have about it; is the stability for the connection over bad weather conditions. that was my only one concern that I have when I switch to the wireless internet connectivity. but after trying it; I found the wireless connections work very good in the bad weather condition (off course depending on your ISP)

After 2 years of using the wireless internet connection, I found it is more efficient than using land phone lines to connect to internet for many reasons. One of the main reason is I can go anywhere in my country and connect to internet easily as long as there is coverage in the area that I’m on it. This made my life much easier and I could do my work in more effective way.

Some companies having some sort of flexibility in their environment; I know couple of them for sure that implementing the flex-work-environment very effectively like integrant.com and O2; for me to be able to utilize this flexibility of work environment, I need to have flexible internet connection which will let me choose wireless internet connection over land-phone-internet to be able to get full benefits from the flexibility that I have in place.

While technologies emerging, the wireless internet speed are become very fast and competing the land-phone-internet’s speed of internet which is making this is the best choice to go with.

One of the good things that late emerge is Wireless Routers with USB Dongle; which will let you to get a USB dongle as an internet modem and connect this dongle into your wireless router to get a wireless network that is connected to internet thus you will not fin yourself in a situation where you need to pay good amount of money just to get a wireless router that is connecting to wireless internet.

at the end; I strongly recommending going with wireless internet connections over land-phone-internet and believe me you will touch the different in the first week. I would recommend also checking this link

Read and Write BLOB objects on SQL Server

I had faced couple of cases where I need to store files inside the SQL Server rather than storing these files on the file system. for the cases I faced, I compared the value of storing the files inside SQL server versus storing those files on the file system and start interact with the file system and I found going with storing these files in SQL server is much valuable for me which may be the same case for you as well.

To store the files on sql server do the followings:

SELECT TOP 1 *

FROM OPENROWSET (BULK N’<FilePath>’, SINGLE_BLOB) TblName

the above statement will read the file contents and convert it into Binary format (which is the format of BLOB on DB). Make sure to replace <FilePath> with the correct path at your DB Server. meaning this path should be a valid path on DB Server.

after reading the file contents; you can push this content into your DB Tables using ordinary Insert Statement.

Insert into Tbl (FileContent)

SELECT TOP 1 *

FROM OPENROWSET (BULK N’<FilePath>’, SINGLE_BLOB) TblName

To Read file Contents from DB follow the following steps:
1. Open Command Prompt on SQL Server

2. Type the following Command:

 

C:>bcp “<SQL STATMENT>” queryout <OutputFilePath> -T –d <DBNAME>

make sure to replace the following placeholders:

  • <SQL STATEMENT> by your SQL Statement that retrieving the file contents
  • <OutputFilePath> the destination file path including filename
  • <DBNAME> your DB Name

3. There will be couple of questions , answer them as below
     Enter the file storage type of field Media [image]: <Enter>
        Enter prefix-length of field Media [4]: 0
        Enter length of field Media [0]: <Enter>
        Enter field terminator [none]: <Enter>
    Do you want to save this format information in a file? [Y/n] y

 

 

I hope you will find this article helpful… Please let me know what do you think by posting your comments

Motivational Video

A very wonderful video that I wanted to share with you.. It is a very true thing… It is a great motivator for me

 

Conditional Page Break in SRSS Reports

one of the cases that I faced recently is having conditional page break in SRSS report. this is not an out of the box feature in SRSS and I had to do a workaround in order to accomplish this feature. To do so, I followed these steps:

  1. Add a rectangle to your report
  2. Right click on the rectangle and select “rectangle properties “
  3. Check the checkbox related to “Add a page break after” or “Add a page break before”; depending on the location of the rectangle and where the page break is intended to be.
  4. The tricky point is to set a visibility condition that control when the rectangle. The point is if the rectangle is invisible; then there will be no page break.

Visual Studio Achievements Extension

I believe Visual Studio Achievement extension is a very nice plugin to have it on Visual Studio. It is running in the background while you are doing your daily tasks to analyzes your actions and according to the progress you are going to get an achievement badge(s).

Most often developer hard work and efforts will not be noticeable, till he/she achieved a huge thing in short time or discover a hidden bug within a very short period. But having VS achievement in place, this is will not the case again. The tool will analyze actions on Visual Studio and unlocked the deserved achievement to the developer according to actions. These unlocked achievements will be posted to Channel 9 profile for the developer (thus having profile on Channel 9 is a prerequisite ).

Once you have an achievement granted, a popup will appear on the right-bottom corner of your screen with your achievement badge and you can check your achievement on your channel 9 profile at any time.

This extension is live now and you can install it from extension manager at your Visual Studio 2010. after installing it, you will be asked to restart your Visual Studio, after the first run, you will be asked to login with your Channel 9 profile.

I believe this extension represent a new way for developers to highlight their skills in a common way. The same rules applied on everybody…

It should not be the judge on developer experience but I think it is very good extension that will create a very good atmosphere between developers for a fair competition

Sync Data Between SQL Server and SQL Azure

couple of weeks ago I had discussion with a friend of mine about cloud technologies form Microsoft. After we finished that discussion I start thinking of what scenarios that we maybe come over while developing a real enterprise application on cloud. One scenario came into mind about that; What if I get into a need to synchronize data between SQL Azure on the cloud and SQL server on-premises? is this will be an easy thing to be accomplished? Sudhesh through the below video illustrate how to setup data sync between a SQL Azure and SQL Server databases.

Java Script Curly Braces place

I got annoyed while writing some Java Script inside Visual studio, because Visual Studio keep placing the curly braces at the same line as the control statement which what is called K&R style. as I am coming form C# background I would like to have the braces at the new line just like how the C# code got formatted; this style called Allman style. I never thought that might has any effect of how the Java Script interpreter might interpret the code and thus affect the end result.

so I decided to do a research why Visual Studio formatting Java Script in K&R style rather than Allman style. I got into a very nice article by Dave Ward that explained to me why is that by an example. The article explained in details how it would matter the position for the curly braces in certain cases because of the nature of Java Script interpreter. Please follow this link to read the article