Technological Guide.

Create your own mobile Ringtones for free

Tuesday, June 30th, 2009
If you got mobile phone which can play songs and music, then must use different ring tones of your own desired songs. In order to distinguish between different callers you can use different ring tones for fun or to identify easily. Nt all mobile phones support same format of ring tones. So be sure to find out the suitable format your mobile phone supports.

Here are few websites using which allows you to create your own ring tones for free.

1. Zedge: You can upload your own mp3 music file and create your own ring tone besides you can download readily available ringtones for free.
2. Audiko: It allows to upload your music file and create ring tone as mp3 or .amr or iphone format. You can crop to the portion of the music you wish. You can even share the ring tones on your blog.
3. Mp3mer: Mp3mer enables you to change the sound quality and filters also besides which it provides a marker tool to set range and ring tone duration. And provides other effects also to add to the ring tone like fade in/out, bass, treble, chorus, echo etc.
4. Mobicious: Choose any 20 seconds of your MP3 file to make it into a ringtone and send it to your mobile.
5. MakeOwnRingtone: This website allows you to upload wide range of music formats MMF, AAC, MP3, MP4, QCP, OGG. The created ring tone can be mailed or downloadable.
6. CellSea: You can upload the music file and can set start / end time, sound quality and the length of the movie to make it as a ringtone. The supported music file formats are mp3, mp4, m4A, flv, midi, aac, ogg, wav, aiff, wma etc.

ASP.Net connect to database via AJAX using JQUERY

Tuesday, June 30th, 2009
One of the ways to connect to database in ASP.Net is via AJAX using JQUERY by giving an example below which connects to the Northwind database and shows the available customers in dropdownlist of an aspx web page. Upon selecting each customer the Customer details will be displayed. Inorder to make AJAX calls, the latest version of the jQuery library should be referenced which can be downloaded from here.
The design code of Customers.aspx

The codebehind in which data is retrieved from customers table of Northwind database and bound to a dropdownlist showing company name and having CustomerID as value field.

Now create another file “FetchCustomer.aspx” with code behind option deselected. The entire FetchCustomer.aspx which generates a response to the Ajax call and creates output onto the caller page itself using Response object from the data retrieved to DataReader object which is from Customer table related to the particular CustomerID passed as Request.QueryString Parameter.

There are a number of ways jQuery can request the FetchCustomer.aspx page and handle the response. The first way we are going to illustrate is the load() function, which loads html from FetchCustomer.aspx The below code will be added in the head section of the Customers.aspx which will reference the lattest version of the JQuery library and as the page loads, $(document).ready( ) function will be applied to onchange event of the dropdownlist control. This functions gets the id of the div “CustomerDetails” of the page (”Customers.aspx”) within which it resides to load the html returned from the FetchCustomer.aspx page and passes the currently selected dropdownlist value in the querystring.

Another way alternative to $.load( ) funtion is the $.get( ) function which does exactly the same except the callback argument specifies what is to be done with the response from the Ajax request. Place this script in the head section of Customers.aspx. In $.get( ) function the query string value is passed along with the querystring name in { } brackets along with the query string name & value seperated by a colon(:). jQuery takes these values and constructs a querystring as part of the HTTP request, so that the page called is FetchCustomer.aspx?CustomerID=strCustomerID.

The other alternative method is $.ajax(). This is a more feature rich method in that it allows a range of options to be applied to manage different types of call, and error handling. Just place the below script in the head section of the FetchCustomer.aspx page.

Free Open Source Applications for Windows

Saturday, June 27th, 2009
Open source is a development method for software that harnesses the power of distributed peer review and transparency of process. The promise of open source is better quality, higher reliability, more flexibility, lower cost, and an end to predatory vendor lock-in. The Open Source Initiative (OSI) is a non-profit corporation formed to educate about and advocate for the benefits of open source and to build bridges among different constituencies in the open-source community.  
 
1. Mozilla Firefox: Mozilla Firefox is considered to be the most popular open source application and browser today. According to a statistics by W3School, Firefox is used by 47.1% of internet users while Internet Explorer 28%. Firefox holds a Guinness World Record for the most software downloaded in 24 hours. From 18:16 UTC on June 17, 2008 to 18:16 UTC on June 18, 2008 – 8,002,530 people downloaded Firefox 3.
 
2. Mozilla Thunderbird: is another Open Source application from Mozilla. Thunderbird is a desktop email client with lots of features and strong spam filtering.
 
3. Open Office: Open Office is an Open Source package which is alternative for Microsoft Office. Open office has great features including support for DOC and XLS files. Open office contains applications for word processing, spreadsheets, presentations, graphics, databases etc. We can save all our Open Office work files in International Open Standard Format which can also read & write files from other standard office software packages.
 
4. GIMP: GIMP or GNU Image Manipulation Program is another open source alternative for Adobe Photoshop which is the professional graphics application. GIMP also provides lots of features for graphics which can work with PSD files generated by Adobe Photoshop.
 
5. Pidgin: Pidgin (Previously called as GAIM) is an Open Source application for instant messenger which can support other IMs like MSN Messenger, Yahoo Messenger, AIM, Google Talk, ICQ etc. for chatting with our friends.
 
6. VLC Media Player: VLC player is an open source media player and server which is well known which can support huge range of audio and video formats like MPEG1, MPEG2, MPEG4, DivX, MP3, OGG, AAC, DVDs, Audio CDs, VCD and many more. VLC has support for streaming media protocol as well.
 
7. ClamWIN: ClamWIN is an Open Source GPL virus scanner for Windows. ClamWIN can detect viruses and spyware at high rates, can schedule scanning for viruses, can update virus definition file regularly. And ClamWIN can be integrated with Microsoft Windows Explorer just by right clicking it. And ClamWIN can be integrated with Outlook as an Add-on to scan emails and attachments.
 
8. 7-Zip: 7-ZIP is an Open Source compression utility which can support for all popular compression formats besides 7-Zip compression has the best compression ratio compared to other popular applications.
 
9. Media Coder: Media Coder is an Open Source batch media transcoder for almost all popular media formats which can convert both audio and video formats.
 
10. FileZilla: FileZilla is another Open Source application for Windows which is a multi-platform full featured GUI Based FTP, FTPS and SFTP client. FileZilla is considered as the best available FTP client for windows.
 
11. Drupal: Drupal is highly flexible content management framework powering celebrity sites like MTV and Yahoo developer. Drupal bridges difference between a content management system like Joomla and a PHP based web framework like say Symfony.
&nsbp;
12. Torrent: Torrent is almost all other BitTorrent clients like uTorrent, Azureus etc are open source so the list will be incomplete without inclusion of one from torrent family.
 
13. Eclipse: One of the most powerful and versatile IDE for developers of any language which has numerous plugins and can be extended.
 
14. Python: Python is the programming language which had come a long way in the past 8 years and is now preferred web development language too along with frameworks like Django.

Download Internet Explorer 8

Saturday, June 27th, 2009
Download Internet Explorer 8 from Browser for the Better website which will donate the financial equivalent of 8 meals to Feeding Americ’s network of 206 local food banks. These food banks supply food to more than 25 million Americans each year.
 
The Features of Internet Explorer 8

  1. Accelerators: Everyday online experience has increased by reducing the maximum time taken by what you do on the webpage - like copy/paste a word into a new search webpage, open the email to send a link which can be done in 2 clicks & without moving away from the existing page.
  2. Web Slices: Instead of checking for updates to e-mail, weather reports, sports scores, stock quotes, auction items email and so on, can just take a slice of favorite content on the web with no matter what web sites we browse, which will become a part of IE8. whenever the content of the favorite section refreshes, web slice feature will get highlighted to notify you.
  3. InPrivate Browsing: InPrivate browsing allows you to surf the web anonymousbly allowing you to avoid browsing history, cookies, and other identifying information from being stored on the pc where ever you browse when you turn on the InPrivate browsing.
  4. Crash Recovery: Automatic crash Recovery works when the browser freezes to recover the previously lost work like edited mail which was not saved due to Internet Explorer crash due to unexpected error.
 

FOMS - Fear of Missing Something
 

SHYNESS – Sharing heavily yet not enough sharing still

How to create Pdf file in ASP.Net

Wednesday, June 24th, 2009

Creating Pdf files in Asp.Net may not be a requirement but many of us being developers always wish to create pdf files to deliver some information instead of always going for crystal reports or others. The Microsoft .Net Framework didn’t provide any native way to work with PDF files, to serve our purpose we need to rely on third party components that are available. The best open-source free component available is iTextSharp. iText# (iTextSharp) is a port of the iText open source java library written entirely in C# for the .NET platform. iText# is a library that allows you to generate PDF files on the fly. It is implemented as an assembly. You can download iTextSharp dll from here.

 

Here we’ll see a simple web application to make use of iTextsharp to create pdf file with our own text. Create a web application and Add reference to the iTextShar.dll file which is extracted from the zip file downloaded from the above link. Create a folder inside your application called “PDF” to store our created pdf files. Design the Default.aspx with a multilined TextBox (to let user or we to enter our preferred text in paragraphs to appear in the pdf file) and a Button to trigger the code for pdf file creation as shown in the picture.

In code behind file we’ve to add 2 namespaces inorder to use iTextSharp Classes and Methods.

 

Code Behind File

Run the application, enter the information in multilined Textbox which must be displayed in pdf and click the button Create Pdf. An alert message will prompt you saying Pdf file has been successfully created. Now close the application and check the PDF folder inside the application which will contain a Pdf file created whcih looks as follows.

Color Selector

Wednesday, June 24th, 2009
Color Selector is a small application developed in Visual C# which displays all named color along with a small strip of the color. Upon selecting the color the below panel will be updated with the selected color. As shown in the 2 images.

The DrawItem event of the combo box control has to be implemented in the code and DrawMode property for the combo box control must be set to OwnerDrawFixed in design time in order to let the DrawItem event work.

Design & Coding Application:

Create a Visual C# Windows Forms project in either Visual Studio 2005 / 2008 with Single Form which contains a button (btnLoadColorList), combo box(cmbColorList) and panel (pnlColorTester). Set the DrawMode property of cmbColorList to OwnerDrawFixed and DropDown height property of cmbColorList to 80.

Code for the Form will be as follows.

You can download the sample application developed in Visual Studio 2008 from here.

The Open Source Development Environment for .Net

Monday, June 22nd, 2009

“#Develop” (SharpDevelop) is a free open source IDE for C#, Vb.Net and Boo projects on Microsoft .Net platform. “#Develop” offers many features, few are listed below

Features of SharDevelop
SharpReport ported (including SharpQuery)
Code Coverage support based on NCover
PInvoke addin reported
Support for Web references
Right-to-left support

SharpDevelop is available for all versions of Microsoft .Net framework from below link.

http://www.icsharpcode.net/OpenSource/SD/Download/

CSS based horizontal menu for HTML

Monday, June 22nd, 2009

Websites with static webpages and with CSS menu look beautiful. Its easy to develop such menu system  using JavaScript kit. The menu will be horizontal with main level & sub level. Sub menu items will be displayed upon mouse hover on the related main menu item.

css code for the above styles: Copy the below css code and paste into a file named menu.css

JavaScript Code: Copy the below JavaScript Code and paste into a file named menu.js

HTML code: Copy the below html code and paste into a file named TestMenu.html

Date Formatting in ASP.Net

Tuesday, June 16th, 2009

We need to format date values in our application often. We can format date value as shown below.

The output for the above two methods will be shown as follows.
16-Jun-2009
16-Jun-2009
We can even format a date value retrieved from database in the above method.

We can format the datetime value either module specific or page specific or application specific method using Globalization.

The output for the above 3 methods are as follows…
16-06-2009
16 June 2009
16-06-2009 15:24:42
We can apply a specific culture for globalization in module level as shown above, or in page level in page declaration or in web.config file as shown below in