Monday, November 28, 2011

New HTML 5 input types in ASP.Net 4.5 Developer Preview

Microsoft has released developer previews for Visual Studio 2011 and .Net framework 4.5. There are lots of new features available in the developer preview. One of the most interested things for web developers is the support introduced for new HTML 5 form controls.
The following are the list of new controls available in HTML 5
  • email
  • url
  • number
  • range
  • Date pickers (date, month, week, time, datetime, datetime-local)
  • search
  • color
Describing the functionality for these controls is not in the scope of this article. If you want to know about these controls, refer the below URLs
http://msdn.microsoft.com/en-us/magazine/hh547102.aspx
http://www.w3schools.com/html5/html5_form_input_types.asp
ASP.Net 4.5 introduced more possible values to the Text Mode attribute to cater the above requirements. Let us evaluate these. I have created a project in Visual Studio 2011 developer preview, and created a page named “controls.aspx”. In the page I placed on Text box control from the toolbox
clip_image001[4]
Now select the control and go to the properties pane, look at the TextMode attribute.
clip_image002[4]
Now you can see more options are added here than prior versions of ASP.Net. I just selected Email as TextMode. I added one button to submit my page. The screen shot of the page in Visual Studio 2011 designer is as follows
clip_image003[4]
See the corresponding markup
<form id="form1" runat="server">
    <div>
        Enter your email:
        <asp:TextBox ID="TextBox1" runat="server" TextMode="Email"></asp:TextBox
    </div>
    <asp:Button ID="Button1" runat="server" Text="Submit" />
</form>
Now let me run this page, IE 9 do not have the support for new form fields. I browsed the page using Firefox and the page appears as below.
clip_image004[4]
From the source of the rendered page, I saw the below markup for my email textbox
<input name="TextBox1" type="email" id="TextBox1" />
Try to enter an invalid email and you will see the browser will ask you to enter a valid one by default.
clip_image005[4]
When rendered in non-supported browsers, these fields are behaving just as normal text boxes. So make sure you are using validation controls with these fields.
See the browser support compatability matrix with these controls with various browser vendors.
clip_image006[4]
ASP.Net 4.5 introduced the support for these new form controls. You can build interactive forms using the newly added controls, keeping in mind that you need to validate the data for non-supported browsers.


Updates:
Some more features in ASP.NET 4.5. Check out here.

Safety Tips For Phone Users

Safety Tips For Phone Users

Dial *#06# from your mobile. A unique 15 digit IMEI number will be displayed. Save the number anywhere except your mobile as it is this number which will help trace your mobile in case of loss/theft
.

If your mobile has been stolen, email the 15 digit IMEI number to cop@vsnl.net along with the following details: Name, address, phone model, its make, last used number, email for communication and date it went missing.

Saturday, November 26, 2011

How to Bid for Software Projects

People who work as a software freelancers need to bid on projects as requested by the client. People bid on projects to show their abilities to get the software project done in time in an effective and professional manner. But winning a software project is difficult, as there can be hundreds of bids placed on a single software project. You need to create a bid that stands out from the rest.



  • 1
    Write a profile about you as a software developer. This is where you sell yourself as a qualified and well-educated software worker. Include technical degrees, designing diplomas, programming certifications, software relevant work experience, a full resume outlining your software experience and any other major achievements you have completed within the software industry. Include industry and field lingo, such as HTML, CSS and XHTML.



  • 2
    Collect your best software work in a portfolio. You need to supply your portfolio when you bid on a software project, so the client can see your abilities and previous work. Examples of software work to include in your portfolio are programming projects, website designs, software reporting and software troubleshooting. Show different aspects of your abilities, so the client does not get the impression you can only do one or two things.



  • 3
    Include any letters of recommendations and achievements that have come with the projects used in the portfolio. If possible, ask previous clients to place emphasis on specific software abilities, such as troubleshooting, programming or overall designing.


  • 4
    Make a realistic bid for the given software project. While some clients already have an hourly price set, others ask for the software freelancer to set the price. If the price is set, you are asked to choose the amount of hours you can do the project. Make a realistic guess, but do not undersell yourself.


  • 5
    If the client asks bidders to set the price, Make an estimate of how many hours it will take you, how much it will cost you and how much of a profit you would want. If in doubt, give yourself approximately 15 percent in profits. You need to include hours of planning, designing, programming and testing, if applicable. Outline your list of duties when suggesting the price for the client, so he is aware of how the money and time is spent.


  • 6
    Create a sample software project for this particular project to show what you can do. For example, if the project is for a website design with HTML and CSS programming, show various examples of the overall website design and include screen prints of the coding to show the client how you have completed the look.



  • 7
    Submit your bid for the software project and await an answer. When submitting, include all of the relevant information gathered in the previous steps and include a list of places or methods that the client can reach you, should you be chosen for an interview. This can be email, instant messenger, chat, phone number or other types of messengers. Provide the client with several options.


    Thanks  all the readers to visit my blog regularly,
    @VHNG
  • Wednesday, November 23, 2011

    Sabeer Bhatia launches free SMS app Jaxtr

    Sabeer Bhatia, the founder of Hotmail.com, on Tuesday launched JaxtrSMS, a mobile application that lets users send unlimited free text messages to any other phone anywhere in the world.
    He claimed JaxtrSMS is the world's first mobile-based application for sending SMS that is completely open as the recipients do not need to have the app installed.

    http://timesofindia.indiatimes.com/tech/personal-tech/computing/sabeer-bhatia-launches-free-sms-app-jaxtr/sabeer-jpg/thumb/10833076/sabeer-jpg.jpg?width=300&resizemode=4It is already available as a free download for all major mobile operating systems - iOS, Android, Blackberry and J2ME. In fact, users in 197 countries have already downloaded the app within a few weeks since the soft launch, said Bhatia, who is CEO & co-founded Jaxtr with Yogesh Patel in US.

    JaxtrSMS is unique in that a mobile user can send a text SMS to any mobile phone in the world without requiring the receiver to have the JaxtrSMS application installed on her phone. This "open" facet of JaxtrSMS distinguishes it from other free mobile messaging applications such as Whatsapp where messages can only be sent within a closed network to people who also have the same app installed. JaxtrSMS retains the number of the user and no new number is required while signing up for the JaxtrSMS service.

    "15 years ago, we gave you Hotmail.com, the world's first webmail service that freed up e-mail from the confines of the desktop and aided the creation of a global communications network which was completely open and free for users. Today, we present JaxtrSMS which does to SMS what Hotmail did for e-mail.
    Now, mobile users can leverage our free and open application to send messages to their contacts anywhere across the world without having to pay anything," said Bhatia.

    "JaxtrSMS was completely developed in India. I am proud to showcase this as an example of Indian innovation and ingenuity," said Yogesh Patel, president & co-founder.

    Tuesday, November 22, 2011

    SQL Server 2012 RC0 - SQL Server 2012 Programmability and Cloud Enabled

    Programmability

    Microsoft SQL Server 2012 enables developers to be more productive and easily create the next generation of robust database solutions using the powerful SQL Server T-SQL programming language and rich data types that manage virtually any type of data all through a new unified developer experience that enables build once, deploy anywhere across on-premises and cloud.
    Key Capabilities
    • New unified development experience across database, BI and web.
    • Choice in data storage with FileTable and Remote Blog Storage.
    • Improvements for blazing-fast Full-Text Search.
    • Expanded spatial support.

    Powerful Tools

    Create next generation database applications that support the most demanding end-user requirements.
    New Unified Development Experience
    • SQL Server Data Tools unifies the development experience for database development.
    • A single integrated environment for database development across database, BI, and web for any SQL Server platform on and off premises within Visual Studio.
    New Frameworks
    • Support for the Data-Tier Application Framework dramatically simplifies the development, deployment and management of database applications across on-premises and cloud.
    SQL Language Improvements
    • SQL Server 2012 supports new Transact-SQL language improvements.
    • Simplify complex programming tasks and ease database migrations with improved support for ANSI SQL standards.

     

    Rich Support for Content


    Leverage SQL Server’s built-in data type support to easily manage relational and non-relational data as part of the database.
    Choice in Data Storage
    • FileTable permits organizations to store unstructured files directly in the database table.
    • Remote Blog Storage allows management simplicity or externally on separate hardware for scalability.
    Expanded Spatial Support
    • Spatial enhancements include:
    • Circular arcs on the ellipsoid (an industry first for relational database systems).
    • Support for full globe spatial objects.
    • Functional parity of geography and geometry data types.
    • Added spatial indexing performance.
    FILESTREAM Improvements
    • Manages files and documents efficiently while leveraging SQL Server security and transaction support.
    • Improvements in SQL Server 2012 yield improved performance, manageability and availability.
    New Statistical Semantic Search
    • Enables T-SQL developers to bring deep insight to the organization within non-structured data files stored in the SQL Server database.
    • Reveal previously undiscovered relationships across stored data.

     

    New Delivery Options

    Choose from an array of delivery options that best suits customer needs.
    New Support For Desktops
    • SQL Server 2012 Express offers a new Local Database Runtime (LocalDb) deployment option.
    • Ideal for developers who need to redistribute an embedded database within their desktop application or tool.
    Cloud On Your Terms
    • Build applications exclusively for the cloud, or hybrid applications that consume both on-premise and cloud services.
    • Windows Azure Platform offers powerful database and BI functionality delivered as a service.
    New SQL Server Appliances
    • Microsoft is partnering with some of the industry’s most well-known and respected hardware OEM’s to offer a line of SQL Server appliances.
    • Targeting a variety of enterprise scenarios.
    Better with Windows Server
    • SQL Server 2012 is designed to be the best database server for Windows Server.
    • Offering several points where capabilities are tightly woven.
    For More Info Visit Here..

    The Cloud-Ready Information and Intelligence Platform

    SQL Server 2012 is a cloud-ready information platform that will offer organizations the agility to create and scale solutions quickly from server to private or public cloud.
    Key Capabilities
    • Reduces complexity and accelerates time to solution through appliance and private or public cloud offerings.
    • Flexible deployment options on your terms – server to cloud.
    • Optimize IT and developer productivity across server and cloud with common tools.
    • Extend Data Anywhere across server and/or cloud with expansive developer technologies.

    Developer Productivity

    Take database development to the next level with SQL Server Data Tools.
    Developer Productivity
    • An integrated development experience for developers building next-generation web, enterprise and data-aware mobile applications across on-premises and public cloud.
    • Provides both graphical and text-based experiences for designing databases, tables, stored procedures, entities, models, and schemas.
    • Learn more here.

    Simplify Deployment

    Simplify Database development and deployment across on-premises and the cloud. Allowing developers to build once; deploy and manage anywhere.
    Data-tier Application Component Enhancements
    • Introduced in SQL Server 2008 R2, Data-tier Application (DAC) support across SQL Server and Visual Studio.
    • Helps IT and developers to more easily define and contain the schemas.
    • Supports applications, then deploys, imports, and exports DACs more easily across on-premises and public cloud.
    Data-tier Application Component (DAC) Parity with SQL Azure
    • SQL Server 2012 and SQL Azure offer ‘anywhere support’ for moving a DAC database between SQL Server databases across server, private cloud or SQL Azure.
    • Enables customers to build once; deploy and manage anywhere.
    • Unprecedented flexibility across IT and developers.
    • Import and export services in the DAC framework enables archiving and migration scenarios between on-premise and cloud database servers.
    • Extract database schema as well as data and serialize it into a new logical and open archive format – a .bacpac file.
    • Import the .bacpac archive into another database server.

    Extend Data Anywhere

    Extend the reach of data beyond on premises applications to new devices and locations in the cloud.
    OData
    • Provides a consistent and open data-feed to power multiple user experiences across the web, devices and desktop with Odata, an open protocol built on widely used web standards.
    Data Sync
    • Enables new scenarios with SQL Azure DataSync, a cloud service which provides bi-directional data synchronization between databases across datacenter and cloud.
    Data Market
    • Monetize accumulated data through SQL Azure DataMarket that allows organizations to publish data for purchase and consumption by other entities.

    For More Info Visit Here..


    SQL Server 2012 RC0

    Sunday, November 20, 2011

    Automatic Properties, Collection Initializers, and Implicit Line Continuation support with VB 2010


    [In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/vihangshah_it]
     
    Today I’m going to post about a few of my favorite new features being added to VB with VS 2010: Auto-Implemented Properties, Collection Initializers, and Implicit Line Continuation support.

    Auto-Implemented Properties

    Prior to VB 2010, implementing properties within a class using VB required you to explicitly declare the property as well as implement a backing field variable to store its value. 
    For example, the code below demonstrates how to implement a “Person” class using VB 2008 that exposes two public properties - “Name” and “Age”:
    image
    While explicitly declaring properties like above provides maximum flexibility, I’ve always found writing this type of boiler-plate get/set code tedious when you are simply storing/retrieving the value from a field.  You can use VS code snippets to help automate the generation of it – but it still generates a lot of code that feels redundant.  C# 2008 introduced a cool new feature called automatic properties that helps cut down the code quite a bit for the common case where properties are simply backed by a field.  VB 2010 also now supports this same feature. 
    Using the auto-implemented properties feature of VB 2010 we can now implement our Person class using just the code below:
    image
    When you declare an auto-implemented property, the VB compiler automatically creates a private field to store the property value as well as generates the associated Get/Set methods for you.  As you can see above – the code is much more concise and easier to read.
    The syntax supports optionally initializing the properties with default values as well if you want to:
    image
    You can learn more about VB 2010’s automatic property support from this MSDN page.

    Collection Initializers

    VB 2010 also now supports using collection initializers to easily create a collection and populate it with an initial set of values.  You identify a collection initializer by declaring a collection variable and then use the From keyword followed by braces { } that contain the list of initial values to add to the collection. 
    Below is a code example where I am using the new collection initializer feature to populate a “Friends” list of Person objects with two people, and then bind it to a GridView control to display on a page:
    image
    You can learn more about VB 2010’s collection initializer support from this MSDN page.

    Implicit Line Continuation Support

    Traditionally, when a statement in VB has been split up across multiple lines, you had to use a line-continuation underscore character (_) to indicate that the statement wasn’t complete. 
    For example, with VB 2008 the below LINQ query needs to append a “_” at the end of each line to indicate that the query is not complete yet:
    image
    The VB 2010 compiler and code editor now adds support for what is called “implicit line continuation support” – which means that it is smarter about auto-detecting line continuation scenarios, and as a result no longer needs you to explicitly indicate that the statement continues in many, many scenarios.  This means that with VB 2010 we can now write the above code with no “_” at all:
    image
    The implicit line continuation feature also works well when editing XML Literals within VB (which is pretty cool).
    You can learn more about VB 2010’s Implicit Line Continuation support and many of the scenarios it supports from this MSDN page (scroll down to the “Implicit Line Continuation” section to find details).

    Summary

    The above three VB language features are but a few of the new language and code editor features coming with VB 2010.  Visit this site to learn more about some of the other VB language features coming with the release. 
    Also subscribe to the VB team’s blog to learn more and stay up-to-date with the posts they the team regularly publishes.

    Hope this helps,
    @VHNG

    Thursday, November 17, 2011

    Roll back (Undo) revisions in the repository with TortoiseSVN

    Learn how to revert (rollback / Undo) to a previous revision in the repository with TortoiseSVN ......


    Use the revision log dialog

    The easiest way to revert the changes from a single revision, or from a range of revisions, is to use the revision log dialog. This is also the method to use of you want to discard recent changes and make an earlier revision the new HEAD.
    1. Select the file or folder in which you need to revert the changes. If you want to revert all changes, this should be the top level folder.
    2. Select TortoiseSVNShow Log to display a list of revisions. You may need to use Show All or Next 100 to show the revision(s) you are interested in.
    3. Select the revision you wish to revert. If you want to undo a range of revisions, select the first one and hold the Shift key while selecting the last one. Note that for multiple revisions, the range must be unbroken with no gaps. Right click on the selected revision(s), then select Context MenuRevert changes from this revision.
    4. Or if you want to make an earlier revision the new HEAD revision, right click on the selected revision, then select Context MenuRevert to this revision. This will discard all changes after the selected revision.
    You have reverted the changes within your working copy. Check the results, then commit the changes.

    Use the merge dialog

    To undo a larger range of revisions, you can use the Merge dialog. The previous method uses merging behind the scenes; this method uses it explicitly.
    1. In your working copy select TortoiseSVNMerge.
    2. In the From: field enter the full folder URL of the branch or tag containing the changes you want to revert in your working copy. This should come up as the default URL.
    3. In the From Revision field enter the revision number that you are currently at. If you are sure there is no-one else making changes, you can use the HEAD revision.
    4. make sure the Use "From:" URL checkbox is checked.
    5. In the To Revision field enter the revision number that you want to revert to, namely the one before the first revision to be reverted.
    6. Click OK to complete the merge.
    You have reverted the changes within your working copy. Check the results, then commit the changes.

    Use svndumpfilter

    Since TortoiseSVN never loses data, your rolled back revisions still exist as intermediate revisions in the repository. Only the HEAD revision was changed to a previous state. If you want to make revisions disappear completely from your repository, erasing all trace that they ever existed, you have to use more extreme measures. Unless there is a really good reason to do this, it is not recommended. One possible reason would be that someone committed a confidential document to a public repository.
    The only way to remove data from the repository is to use the Subversion command line tool svnadmin. You can find a description of how this works in the Repository Maintenance .

    Saturday, November 12, 2011

    What's up with SQL Server 2008 Express editions

     Microsoft has announced the release of SQL Server 2008 and that means it time for another post about SQL Server Express.
    The press release indicated that SQL Express is already available, but those of you who have followed the link have found that it is not actually there. Nothing to worry about, has a dependency on the .NET Framework 3.5 SP1 and we need to coordinate the release to the web for both of these which will take a few more days. I'll blog about it when we release it and you can watch the Express web site for updates; when we release it, it will be available from that site.
    There will be three editions of SQL Express, each one adding to the functionality of the previous one; you simply pick the edition that includes the set of functionality you need and install it. The information I posted about SQL Express RC0 is still valid, but I'm reproducing the feature comparison table here to include the third edition:
    Feature
    SQL Server 2008 Express
    SQL Server 2008 Express with Tools
    SQL Server 2008 Express with Advanced Services
    Management



    PowerShell Integration
    Y (Separate installation)*
    Y
    Y
    Policy Based Management
    Y (manual only)**
    Y (manual only)*
    Y (manual only)**
    Management Studio Basic
    N
    Y
    Y
    SQL Engine



    Integrated Full Text Search
    N
    N
    Y
    Merge & Upsert
    Y
    Y
    Y
    New Data type support



    Filestream support
    Y
    Y
    Y
    New Date & Time data types
    Y
    Y
    Y
    Geodetic data types
    Y
    Y
    Y
    Advanced Spatial Libraries
    Y
    Y
    Y
    Support for Spatial Standards
    Y
    Y
    Y
    New Tools



    Import/Export Wizard
    Y
    Y
    Y
    Replication



    Change Tracking
    Y
    Y
    Y
    Synchronization Services
    Y (Separate installation)***
    Y (Separate installation)***
    Y
    Reporting Services



    Increase RS Memory Limit
    N
    N
    Y
    RS Word/Rich Text Export
    N
    N
    Y
    IIS Agnostic Report Deployment
    N
    N
    Y
    Enhanced Gauges & Charting
    N
    N
    Y
    Business Intelligence Developer's Studio
    N
    N
    Y
    * The SqlPS command line tool can be enabled in SQL Express by installing Windows PowerShell 1.0 before installing SQL Express.
    ** Policies can be created in SQL Express and run manually. There is no support for automated policy based management.
    *** Synchronization Services support in SQL Express requires that you install the component separately from the SQL Server 2008 Feature Pack.
    As you can see, SQL Express with Tools includes the core database engine and the basic version of Management Studio; this is the ideal edition for people who want the right tools for developing relational database applications. The advanced features such as Integrated Full Text Search, Reporting Services and BIDS are available in SQL Express Advanced. SQL Express with Tools will be delivered in the same architectures and with the same prerequisites as SQL Express Advanced, which are as follows:
    SQL Express with Tools architecture

    32-bit only installation package (x86 platforms only)
    64-bit native installation packages (x64 platforms only)



    SQL Express with Tools Prerequisites
    .NET Framework 3.5 SP1
    Windows Installer 4.5
    Windows PowerShell 1.0
    As with previous releases (SQL Server 2005) we will be releasing SQL Express 2008 in stages. SQL Express core will be released first, along with Visual Studio 2008 SP1, and the other two editions will follow about a month later. As I said, watch the Express web site and this blog for information about the release of these two additional editions.

    - Vihang

    Find a cool free stuff everyday

    Giveaway of the Day

    Hiren Bharadwa's Posts

    DotNetJalps