Tuesday, October 16, 2012
Convert phrase from english alphabet in to your native language using Google Transliteration
Sunday, September 9, 2012
Visual Studio Achievements - Software engineer's glory won't be unnoticed now
Tuesday, July 17, 2012
Get your website online in Just 4 steps using Site44 & Dropbox
Wednesday, May 23, 2012
Register your blog for Indian Blogger Listing
He is maintain Indian blogger listing on http://indianbloggers.org and right now he is in process for 2nd version to listing more blogs.If you would like to see your blog there then look at this post for more detail http://www.labnol.org/india/calling-indian-bloggers/21306/
Friday, April 27, 2012
Introduction to GitHub (version control system) and how to use as window user
Generally following version control system are used by industry.
- Visual Source safe by Microsoft with Visual Studio
- SVN
- Github
Thursday, April 26, 2012
"Add Deployable Dependencies" option in Visual Studio 2010 When you want to deploy ASP.NET MVC application
Could not load file or assembly 'System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified
Wednesday, April 18, 2012
Press shift + ? and look at shortcuts on web
Tuesday, April 17, 2012
Copy your code as HTML In Visual Studio (WYSIWYG)
If yes then this blog post is going to share about good add-on of Visual studio called "Copy As HTML"
Thursday, April 12, 2012
How you can make online purchase more safe way with HDFC credit card
Sunday, April 8, 2012
Got New Samsung Galaxy Y - First time purchased from Ebay India
Why Samsung?
Samsung has created best and successful galaxy series with comfortable price as compare to Apple IPhone, In India for majority people Samsung galaxy series is best one as it provides comfortable price as well good touch experience like apple IPhone anyway Apple is unbeatable technology. .
Why online?
Many people told me that why you have purchased online in spite of so many retail store available here but most important thing is TIME, because we need to go there and we need select only from whatever available with them, on other side online store can you give you vast listing of products to select as per your choise and different payment option (EMI is better for salaried employee like me)
I have searched lots of sellers on ebay and searched on another online store like FilpKart, Infibeam as well and after that i have selected one power seller on Ebay India (power seller is recommended on Ebay)
The funniest thing is actually i was trying to buy laptop but there were so many models and confused and still confused as per price,features and brand (You can give me suggestion if you want to help me) in between came across Samsung galaxy and read about Androids and it's features and finally bought Mobile :) Now internet is in my hand and i can write and post on this blog at anytime using this android apps.
Anyway I recommended Ebay to purchase online beacuse it will give following benefits
1) You can search same product with different sellers and can compare price between them.
2) You can choose reliable seller by their feedback and ratings.
3) Ebay gives facility to select various options for pyament including EMI (I have buy it thorugh 6 months EMI) so you will pay it in installments.
4) Ebay will give gurentee on each product and systematic process to deliver product to end user.
5) Ebay will create deadlines for shipment and delivery for product which you have purchased from any seller,if sellere will fail to do that then you will get your money back.
In india FilpKart is also very good store to buy items online mostly for books.
Now Arun Rana's Lab with power of Samsung Galaxy and Android :)
Friday, March 30, 2012
Microsoft announced ASP.NET MVC,web API and Razor as Open Source
Now you can download source code from codeplex and if you want contribute in that then you can do it there.
Hope that making it open source will improve ASP.NET MVC, Web API, and Razor to better level because now it is open to every people. (Power of Open Source!)
Read more about this
- ScottHanselman : ASP.NET MVC 4, ASP.NET Web API and ASP.NET Web Pages v2 (Razor) now all open source with contributions
- http://aspnetwebstack.codeplex.com
- http://asp.net/open-source
Wednesday, March 14, 2012
Have you checked Meta Tags of your website or blog?
Meta Tags provide information of your website/blog to search engine like google, bing, yahoo for how to display your website or blog to their search engine.
look at this link what is Meta tags? by W3schools.
Let's take case study of my blog, before putting meta data my blog display in google search result as per below.
then i came across google webmaster link about meta data they are using for crawling and add some of Meta tags for my blog and after one day google has change descrption as per my meta data as per below. (you can type my name "arun rana" to google to see in live)
You can also control of your web pages from displaying in google search by below meta tag.
<META NAME="robots" CONTENT="noindex,nofollow">
After putting Meta data if you want to test your site/blog for meta data then there is very good tool available online called Meta Tag Analyzer which will give you very deep research and review of meta data.
Useful Reading about Meta Tags
Wednesday, March 7, 2012
Google can tell you that what the world want? Really!
Just open Google try to type following queries
Sunday, March 4, 2012
Microsoft has released Visual-Studio 2011 beta and Window 8 Consumer preview
Visual Studio 2011 Beta
Jason Zander has first announced regarding release of Visual Studio 11 Beta & .NET 4.5 Beta on his blog post.
Download it from here + Download Visual Studio 2011 Beta
This time Visual Studio lunched with totally new look combine with many new feathers as below.
- Project Compatibility
- IDE Productivity Improvements
- Search Everywhere
- Toolbar Improvements
- Additional Tooling
- Multiple-Monitor Support
- Performance Enhancements
- New Project Types
- Extensibility
You can read each & every fether on Visual studio magazine's post about "Inside Visual Studio 11: A Guided Tour".
Scott Hanselman has also written about overview of features available with Visual Studio 2011 beta in his blog post.
Window-8 Consumer Preview
Steven Sinofsky has first made announcement on his blog post of "Windows 8 – The Consumer Preview" availability for download.if you are in hurry to look inside it then visit this and starting now at http://preview.windows.com.
Read this guidelines before installation
- How To Guide to Installing and Booting Windows 8 Consumer Preview off a VHD by Scott Hanselman
- Windows 8 Installation Guides by Amit Agrawal.
There are lots of post (i think many people rushed out to write about that to be a first blogger to write on this topic!) available on internet about Window 8 features so i don't want to talk about it here.
just google it - Window 8 features :)
Saturday, March 3, 2012
ASP.NET Web API - Great collection of learning resources
I was also searching for that and found good links here with all tutorials, videos and samples.
Tugberk Ugurlu lists a bunch of great resources for getting started with ASP.NET Web API in his blog post, follow below link.
Thursday, March 1, 2012
REST call using json in asp.net with Basic authentication
Today many service provided as restful web service which can easily accessed by any browser on any system with any language.
I would like to give you Example with code here to make post call using json data in asp.net.
we need to add below namespcae for that
- using System.Net;
- using System.IO;
WebResponse: Responsible to provide response from URI
WebRequest: Responsible to make request to URI
In above code i made request with basic authentication (In my words: if you'll request service URI with browser and if it will prompt with login box then that service requires basic authentication to access resources ) and try to get response.
you can test your rest call using Fiddler as well before implementation of code to test that web service working is as per expectation.
Important Note :
As per stackoverflow's answer take care about this header Expect: 100-Continue.
"By default, .NET will tag outgoing POST requests with the header Expect: 100-Continue. If the server doesn't support this, it will fail with a 417 error.
To get .NET to not do this, execute the following before creating your WebRequest object:
System.Net.ServicePointManager.Expect100Continue = false;
"
Hope it will be helpful to you!
Extend the built-in ASP.NET DataAnnotations using DataAnnotations Extensions
DataAnnotations contains mostly Required, Range, RegularExpression and StringLength and to see full list of attributes it contains visit this msdn link "Using Data Annotations to Customize Data Classes" .
In my mvc application there is person class (Model) and validation for email as per below (by regular expression)
Scott Kirkland has extended this and created excellent DataAnnotations Extensions pacakge for .net to allow more validation attributes, also he has explained about this in his blog post with examples.
so after installing DataAnnotations Extensions Nuget package i can write email validation as per below
Following are list of more validation attributes available in DataAnnotations Extensions
- CreditCardAttribute
- CuitAttribute
- DateAttribute
- DigitsAttribute
- EmailAttribute
- EqualToAttribute
- FileExtensionsAttribute
- IntegerAttribute
- MaxAttribute
- MinAttribute
- NumericAttribute
- UrlAttribute
- YearAttribute
Monday, February 27, 2012
Auto detect user's timezone through javascript
First of all get system timezone info and bind it to dropdown list.(In my case i am using mvc application that's why IEnumerable<SelectListItem> return type of object )
Now to to auto select timezone as per user's location there is very simple solution is read offset value using date object using javacript as per below
This offset will be in minutes and you need to store it somewhere (cookie is one option)
Now in above code in GetTimezone() function you need to read that value and set it selected value as per below.
Here i haven't consider daylight savings time (DST), you can refer his link for more detail about that
HTML5 target schema for visual studio
An output of an ASP.NET server control can be the result of many HTML tags that combine together to produce that control and its events.
If you want to read more about difference between HTML controls and ASP.NET server control then visit this link.
When you are designing aspx/html/cshtml page inside visual studio you need to specify target schema for validation as per below (By default it is selected so some people don't aware of this!)
Today HTML5 is in demand and it is supported by most of browsers, some people says that HTML5 will remove flash from web!
Anyway if you want to know more about HTML5 and it's features then following are good links.
If you want to take benefit of Intelisense and validation of html5 controls in visual studio then you need to install target schema for html5 from here first,then you can see it in that list and select that schema for your application as per below.
Sunday, February 26, 2012
Look at Cloud Storage available on internet
Amazon Cloud Drive
Free storage : 5 GB
Max File Upload size : 2 GB
Sync to desktop : No
Pricing details : https://www.amazon.com/clouddrive/learnmore
Google Docs
Free storage : 1 GB
Max File Upload size : 1 GB
Sync to desktop : Yes (Windows only)
Pricing details :http://support.google.com/docs/bin/answer.py?hl=en&answer=37371
Free storage : 25 GB
Max File Upload size : 50 MB
Sync to desktop : Yes (Windows and Mac)
Pricing details : http://explore.live.com/skydrive
Free storage : 2 GB
Max File Upload size : 300mb via web, unlimited using client:www.dropbox.com/install
Sync to desktop : Yes http://www.dropbox.com/help/4
Box.net
Free storage : 50 GB
Max File Upload size : 25 MB to 1 GB
Sync to desktop : http://www.box.com/business/features/box-sync/
Pricing details : http://www.box.com/pricing/
Friday, February 24, 2012
My blog reached to 1000 unique visitors
Today i am happy that flag counter display 1000 unique visit to my blog and 59 country visited this blog!
Also Google has approved my blog's authorship so user can see my google+ profile pics in Google search result as per below.
Also till now more successful posts as per below
Paypal Integration in MVC and razor collected great comments
why Mark zukerberg is great IT leader got appreciation from Mark Zukerberg himself
I hope that my blog is contributing in technology field very well and hope that it will be!
Welcome your comments on this! Have a nice day!
Thursday, February 23, 2012
Knol will be moving to Annotum on May 1, 2012
Now as per Google announcement of shutting down some of it's products, knol is part of that.
What will be the alternative of knol?
As per google's official blog they will replace this service with Annotum (opern source wordpress based product)
"Knol—We launched Knol in 2007 to help improve web content by enabling experts to collaborate on in-depth articles. In order to continue this work, we’ve been working with Solvitor and Crowd Favorite to create Annotum, an open-source scholarly authoring and publishing platform based on WordPress. Knol will work as usual until April 30, 2012, and you can download your knols to a file and/or migrate them to WordPress.com. From May 1 through October 1, 2012, knols will no longer be viewable, but can be downloaded and exported. After that time, Knol content will no longer be accessible."
So transfer our knol content to Annotum today.
Google is in process of shutting number of it's products
"we’re in the process of shutting a number of products which haven’t had the impact we’d hoped for, integrating others as features into our broader product efforts, and ending several which have shown us a different path forward. Overall, our aim is to build a simpler, more intuitive, truly beautiful Google user experience." said on their blog.
- Google Bookmarks Lists
- Google Friend Connect
- Google Gears
- Google Search Timeline
- Google Wave
- Knol
- Renewable Energy Cheaper than Coal (RE<C)
Wednesday, February 22, 2012
Bundling and Minification in ASP.NET 4.5 and MVC4
Bundling: As per name suggest it bundle or combine multiple javascript, css requests to fewer Http request means bundle by type of file
Minifying: will remove white space form css and javascript which cause to reduce download size of that files
Let's if we have project with 3 javascript and 3 css files
Bundling and minifying the .css files
If you want to add css file as per listed above in fig then you need to add refernce of all 3 files as per below which will result in to 3 separate http requests but this feature allow you to bundle and minify in to styles folder and call it in only one http request as per below.
Same way it will apply to javascript files as well
This is simple overview of this feature you can read about it in more details on scottgu's blog.
Tuesday, February 21, 2012
Integrate Bing Searchbox in MVC3 with razor application
1) Add Microsoft Web Helpers
In your MVC application just add this helper's reference using Nuget Command
2) Add below code to cshtml Page
and output of this will look like as per below
You can also add Twitter Feeds, Facebook Feeds using this helper, to read about how to do this refer this link.
To read more about Microsoft.Web.Helpers refere msdn link.
Add Elamh to ASP.NET MVC application
Alexander Beletsky has developed Elmah.Mvc for asp.net mvc application it is also available through Nuget package.
You can add it by GUI tool as per below
Go to Reference> Manage Nuget Pacakge > Search Elamh.MVC
OR By Package Manager console as per below
Now Hit admin/elmah with your app's URL,you will get elmah page. That's it!
Please refer Author's blog post about what are the changes in this MVC version of Elmah.
Monday, February 20, 2012
Paging sorting with WebGrid in MVC3 and razor
it will create cshtml code with foreach loop which will cause to render data in Grid Format as per shown in below fig.
Now if you want Paging and sorting to this data then manually you need to make lots of efforts to achieve desired result.
But Microsoft has already built very good helpers called WebGrid, to achieve this so you do not need to do that manually.
So it will look like as per below after replacing above code.
If you notice URL in above fig then you can see that it WebGrid will automatically make sorting request with proper parameter you can also change parameter
name to customize URL,e.g.
var grid = new WebGrid(Model, canSort: true, canPage: true, rowsPerPage: 2,sortFieldName:"S", sortDirectionFieldName:"SD");
You can apply style to particular column by style: attribute. http://stackoverflow.com/questions/9357786/apply-specific-width-in-column-of-webgrid-in-mvc3
Look at
- Complete List of Properties
- Apply styles and customize WebGrid
- Details of Webgrid's Properties and how it works
- Inside WebGrid
Saturday, February 18, 2012
Look at ASP.NET MVC4 Beta!
Top Most Features
- ASP.NET Web API
- Refreshed and modernized default project templates
- New mobile project template
- Many new features to support mobile apps
- Recipes to customize code generation
- Enhanced support for asynchronous methods
For more details and installation tips look at http://www.asp.net/mvc/mvc4
Thursday, February 16, 2012
Swap VIP in Window Azure
What is SWAP VIP ?
There are 2 type of environment on which you can deploy on window azure application.
Staging
In other word you can say testing environment, having similar configuration as per production. Before deploying to production (where actual user will use your application) you can deploy to staging to fix bugs, test security issues, configuration problem etc.
Production
It is actual environment where you can move tested staging application which will be used by real users. (you can directly deploy your application if you are confident on your testing!!)
In sort Swap VIP is azure feather to move application from staging to production by just one click!
How to use Swap VIP?
After testing your application just click on Swap VIP as per shown in above fig.and click ok and it will transfer from staging to production with zero downtime of your original application!
What will happen while swapping?
If you have notice DNS when you have created staging would be as per below.
ID + Cloudapp.net
When you going to swap azure will just transfer this DNS entry.
Reference Links
- More info on SWAP VIP on msdn
- Swap VIP with screenshots
- Step by Step: Publishing your application and Swap VIP
- Make sure about your configuration setting when you will swap VIP
- Deploying application using azure management portal