Personalized floor Mats

May 10th, 2010 | vb_reader

Personalized car mats are usually designed to suit our taste or can be manufactured based on the given specifications. Personally I feel a good car mat will reduce your effort in keeping the car clean. It actually protects your car floor from getting damaged also

Types of floor mats

There are different kinds of mats available. Depends on the material used we can use them for various situations. Some of them are heavy duty, some of them are easily cleanable, and some of them are looks pretty. Few example Rubber mats, vinyl mats, carpet mats and coil mats.

How the Custom Car Mat done

Companies take orders by the car make, color and material. The car mat can be designed even though to your taste from the basic design templates for the respective car make.

Advantages of a custom Car Mat

Personalized car mats can be a very reasonable solution to the problem of wearing and tearing of your old factory fitted vehicle’s carpets.

You can make your personalized car mats to be done in a way that it will correct some problems you encounters with factory fitted mats.

You can choose the materials that can last long with usage without the problem of discoloration or tearing

Personalized car mats give more satisfaction because it is designed and set according to your taste. You can determine the color and arrangement for all seating rows and cargo areas and make them look as you want.

Personalized car mats will keep wetness from reaching your floors just by choosing the right materials that do not retain water or that run it off easily like vinyl and rubber.

With personalized car mats you also have the advantage of determine what to spend.

You can cut down cost by carefully planning and selecting what you want and still enjoy the qualities or special features that you desired
Original article is here (Personalized Car Mats)

MD5 hash and VB.Net for comparing files

March 18th, 2010 | vb_reader

MD5 hash to find Duplicate files

When you are receiving files from different sources but the content is same, there is a possibility of having a different filename for the same content. Hence finding a duplicate file just by file name may not be sufficient. To compare by file data, there are several ways.

Usage of Message Digest (MD5)

To find duplicate files even after renamed, the content/data has to be compared after the content of files fetched. Once the file content is in data format, the data can be encoded with MD5 hash algorithm. The string result after hash can be used for comparing. MD5 is a widely used cryptographic hash function with a 128-bit hash value, and is also commonly used to check the integrity of files

MD5 in .Net Framework

.NET Framework has very rich support for encrypting and decrypting. Computing hashes and encrypting data using a variety of algorithms is very easy. Use the ComputeHash() method to compute the MD5 Hash.

Computed Hash to compare

For the MD5 to work we should give which encoding it should follow, basically we are using ASCIIEncoding. This same function can be used in a recursive call to check all the duplicates. Once all
the files in the directory are scanned and compared it is much easier to delete the duplicate files found.

Read more with source code (Compare duplicate files using VB.Net)

reference

http://suggested.busythumbs.com/

http://vbreader.blog.co.uk/

http://vbreader.insanejournal.com/

http://vbreader.livejournal.com/

http://vbreader.xanga.com

http://suggested.blogetery.com/  

http://blogs.bigadda.com/vb5048741/

ASP.Net Substitution Control and Output Cache

March 2nd, 2010 | admin

Read Original Article here   ASP.Net Substitution Control and Output Cache

Substitution control to bypass cache

When OutputCache is used to cache the page, the page response will be cached and the cached pages will be shown till the cache expires. This allows the web page to be rendered quickly. Wait there is a possibility that a frequently updated data is not shown to the client because of the cache. If this is what we want to accomplish, then substitution control can actually bypass the cache and display the frequently updated content to the client even thought he entire page is cached.

Display Data Using Substitution Control

To display some data using this control we need to have a static method accessible from mark-up. This function should accept a parameter with the type HttpContext, So that the control can fetch the data using this method.

How to verify the Substitution Control works?

If the sample doesn’t have a Cache directive, it is hard / impossible to notice how the control is actually bypassing the cache, so please refer to the example for get hold of how I am going to test it.

So we need to compare the data rendered by the Substitution control and the normal data under the cache enabled pa…

WPF Menu Databinding

March 1st, 2010 | admin

Read Original Article here   WPF Menu Databinding

DataBinding WPF Menu with Dataset

For a complete working application Menu is a best known choice for navigation. Whatever other navigations such as toolbar, tabs etc… are optional and will add value for the application . It is a great control to display hierarchically organized data.  One of the basic thing to be noted is we need to use HierarchicalDataTemplate for loading hierarchical data.

HierarchicalDataTemplate in mapping data

For WPF Menu to understand the hierarchy of the data, we need to define releationships in the HierarchicalDataTemplate. It will work ONLY if the dataset given is the Relational Database with proper relationships added. And give a name that describes the relationships well (for readability). Add a TextBlock for displaying the header table information. In this article we refer categories as the Header. Remember to provide a unique Key for the object also.

ItemsSource in HierarchicalDataTemplate

The given relationship name can be specified here as {Binding RelationshipName}

ItemTemplate in HierarchicalDataTemplate

This is the child template reference. So the child template name which has to be created and referred here as {StaticResource CreatedChildTemplateName}.

Creating Templates for MenuItems

For displaying data in Menu I…

Mono Subwoofer Amplifier

February 24th, 2010 | admin

Read Original Article here   Mono Subwoofer Amplifier

Mono Amplifier

As the name says Mono amplifiers are single channel amps. Basically used for low-frequency applications. Since mono amplifiers are stable to 2-ohms, you can connect them safely to two 4-ohm woofers (wired in parallel). Or a DVC Subwoofer as mentioned in my earlier articles

In most car   applications, a mono amplifier is used to deliver power to a single channel subwoofer. The mono amplifier produces and as well configured to deliver low frequency at a single power signal which is ideally suited to a subwoofer. Since a mono amp is more stable in maintaining electrical current resistance when power demands increase based on impedance, two subwoofers can be wired together to a single mono amp for efficient performance

Types of Amplifiers

Several types of amplifiers available in the market based on the circuits, I am discussing few here these classifications are basically based on the circuits of the transistors used. And this article is about the Mono amplifier. Mono amplifiers are single channel amplifiers basically used to power a sub woofer.

Class A amplifiers

Class A amplifiers are basically known for its high quality. By design a pure class A amplifier is runs under load even there is no input signal and it makes this runs very hot. The output transistors always have current running through them. The current flowing through the output transistors (with no audio signal) causes the amp to heat up unnecessarily.

Class B amplifiers

Unlike Class A amplifiers Class B amplifiers also run under load even no input s…

Dual voice coil subwoofers

February 19th, 2010 | vb_reader

Sub Woofers

A subwoofer is a complete woofer typically between 8″ and 21″ in diameter and contained in a typical enclosure. Basically a subwoofer is used to reproduce a low frequency bass in the range of 20- 120  Hz. Subs are supplement to the main loudspeakers. Subwoofers are mostly made by mounting one or more woofers in a wooden container. 

There are two basic categories
1) Active Subwoofer- A subwoofer with inbuilt amplifier
2) Passive Subwoofer- A subwoofer without a inbuilt amplifier

Subwoofers comes in various enclosure designs
Bass reflex: With a port or tube in the enclosure
Infinite baffle: very large sealed enclosure
Band pass: is a two chamber enclosure, one is sealed another is with a port

Dual voice coil subwoofers

As we have seen, the integral part of a subwoofer is woofer. Normally woofers will be having a single voice coil attached to the apex of a loudspeaker cone. It provides the motive force to the cone by the reaction of a magnetic field to the current (from the amplifier output) passing through it.  Now this article is to discuss about the Dual Voice Coil Subwoofers. As the name says the sub woofer will be having two voice coils. And these two coils can be wired separately and running in different cylinders and attached to the same loudspeaker cone. We call this Dual voice coil subwoofers as DVC Sub further on.

Read More here DVC Subwoofer

DVC Subwoofer

February 17th, 2010 | admin

Read Original Article here   DVC Subwoofer

Sub Woofers

A subwoofer is a complete woofer typically between 8″ and 21″ in diameter and contained in a typical enclosure. Basically a subwoofer is used to reproduce a low frequency bass in the range of 20- 120  Hz. Subs are supplement to the main loudspeakers. Subwoofers are mostly made by mounting one or more woofers in a wooden container. 

There are two basic categories
1) Active Subwoofer- A subwoofer with inbuilt amplifier
2) Passive Subwoofer- A subwoofer without a inbuilt amplifier

Subwoofers comes in various enclosure designs
Bass reflex: With a port or tube in the enclosure
Infinite baffle: very large sealed enclosure
Band pass: is a two chamber enclosure, one is sealed another is with a port

Dual voice coil subwoofers

As we have seen, the integral part of a subwoofer is woofer. Normally woofers will be having a single voice coil attached to the apex of a loudspeaker cone. It provides the motive force to the cone by the reaction of a magnetic field to the current (from the amplifier output) passing through it.  Now this article is to discuss about the Dual Voice Coil Subwoofers. A…

Double Din Navigation

February 13th, 2010 | admin

Read Original Article here   Double Din Navigation

In Dash Gps Navigation in Double Din

This article is not about how In Dash Gps Navigation works, however this article is to explain how to Integrate In Dash Gps Navigation functionality in CAR PC. Due to increasing popularity of Double Din Gadgets, all in one devices are expected to rule this niche. So a complete PC will be a right choice for In Car Entertainment i feel…

Double Din Navigation in a PC

I have used both external GPS Navigation device and my own Double din Car PC integrated with GPS receiver. I am very much inclined towards running a navigation along with other applications  in a PC.  The reason behind is
• You don’t need to obstruct your vision by putting it in the wind screen.
• Screen real estate is big and wide (7” wide screen ).
• It does not take any additional space in the dashboard.
• The GPS external receiver can be placed anywhere (I placed near in the rear window)
• Updating maps are really easy.
• GPS navigation software can be chosen as per your requirements (as long as it is running in your OS)
• You can install as many navigation softwares you like (make sure only one is running at any point of time)
• Cost effective(pay for software, maps, external receiver) remember you are going to view your maps in  7” screen

Maps for your region in

If you don’t have recently updated maps where you are driving to, it is not going to be that m…

VB DataTable Sort

February 10th, 2010 | admin

Read Original Article here   VB DataTable Sort

Sorting Data in a DataTable

When there is a need of sorting rows in a DataTable, there is no direct support available in DataTable. There is no direct way to get the sorted records into a DataTable out of the box.  There are few ways to sort the data in the DataTable but that needs a few lines of code that I would like to discuss here. We have already discused how to sort a records in Gridview using DataView.

Sorting using DataView

Basically I like the DataView to sort the records as there is a support natively available as a property DataView.Sort. And the sorted records can be forced to a DataTable using a ToTable () method in a DataView. Not only sorting available but also there are other useful functions like filter, and distinct etc… So we can filter and sort altogether.

Sorting using a select method in DataTable

Like I said earlier there are few ways to achieve sorting in the DataTable. The select method of the DataTable also offers the row filtering and sorting altogether. But the biggest drawback (at least to me) is the out put is a array of data rows.  This is not easier to be used as good as a DataView or DataTable. If that output as a DataTable with same structure, there will be a lot of places we don’t need to go to DataView.

However this is a very subjective view of usage, as I have seen developers working comfortably with arrays. S…

Asp.net GridView Calendar

February 8th, 2010 | admin

Read Original Article here   Asp.net GridView Calendar

Calendar in a GridView template

Unlike other controls, calendar is taking too much of space for its usage. In most of the applications calendar will be hidden just after selecting the date. Earlier days in classic asp, we used a popup to load it on demand (sometimes used inline as well).  Here in this sample we are going to use a calendar control inside a GridView’s TemplateField. To make it close to real time, I have added a Textbox and a button to pop the calendar.

Show Hide calendar

As already explained to reduce the space used by calendar, it is easier to toggle visibility using a JavaScript. Since the calendar control is going to be at each row, the respective control’s client ids have to be passed. Otherwise we can not access those controls from JavaScript.

Attach Client Events at RowDataBound

To pass the Client ID’s of all the required controls to JavaScript, the right place is the RowDataBound event. This event will be fired for every rows while binding data. So the client script can be prepared added to attributes of the control. Remember to return false at the end, otherwise there will be an unnecessary PostBack to server.

Handling Calendar OnSelectionChanged

Remember the calendar control is not available directly.  It is contained in the GridView control’s ItemTemplate. In order to handle this event, we can either use a RowCommand, or a specific event to handle this.

I have chosen the second model for this sample. In this specific event, the control which h…