Pages

Saturday, November 15, 2014

A Full-Featured IDE - FREE : Visual Studio Community 2013

A Full-Featured IDE - FREE  : Everything you need, all in one place

Start coding the app of your dreams for Windows, Android, and iOS.

Download Here


Saturday, November 1, 2014

jQuery 3.0 and the future of Web development

In the eight years since its initial release, jQuery has become the foundation of the modern Web. The popular cross-platform library has become bundled and intertwined with countless websites, developer tools and with JavaScript itself.

The next step for the open-source platform is jQuery 3.0. In a recent blog post entitled “jQuery 3.0: The Next Generations”, jQuery development team core lead and jQuery Foundation president Dave Methvin previewed what developers can expect going forward in jQuery’s next release. SD Times spoke with Methvin about the rise of the JavaScript library over the past decade, how jQuery has changed and where the platform, and ultimately Web development, is headed.

See more at "Here"

Thursday, October 23, 2014

Inbox by Gmail : Hands-on and first impressions

Google this afternoon announced Inbox for Gmail, its all-new emailing solution that is intended to coexist with the regular Gmail platform (Think Paper for Facebook?). Inbox for Gmail is available on an invite only basis for Android, iOS and Chrome.


Thursday, October 9, 2014

ASP.NET MVC Question and Answer Part-4

Here are few ASP.NET MVC interview question and answer which are very useful to clear eLance test.

1- Which class would you return from a Controller action when performing partial page updates?

A- ActionResult
B- PartialViewResult
C- PartialResult
D- ViewResult

Answer-B

2- What is the core process of rolling up a number of distinct resources together into a single downloadable resource in ASP.NET MVC?

A- Joining
B- Bundling
C- Compacting
D- Hashing
E- Merging

Answer-B

3- In MVC, Which represents data that you want to have displayed on viewpage?

A-Domain Model
B-Json Model
C-Data Model
D-View Model

Answer-D

4- Which HTML Helper would you use to create a form element in a View?

A- FormBegin
B- FormGenerate
C- BeginForm
D- Form

Answer-C

5- A controller action can return:

A- All answers are correct.
B- ContentResult
C- JavascriptResult
D- ViewResult

Answer-A

6- Which Razor construct is used to indicate a view is strongly-typed

A- @entity
B- @context
C- @type
D- @model

Answer-D

7- Tempdata is used to:

A- pass data between two consecutive requests
B- pass data from the view to the controller action
C- pass data from controller action to the view

Answer-A

8- Which of these emulators are valid mobile emulators for MVC applications?

A- All of these
B- Opera Mobile Emulator
C- Apple Safari
D- Windows 7 Phone Emulator

Answer-A

9- What is OutputCacheAttribute used for?

A- To skip method execution until cached output expires.
B- None of the answers
C- To notify client browser that output shall be cached.
D- To mark an action method whose output will be cached.

Answer-D

10- If you want to setup custom configuration for a controller (formatters, model binders, etc.) which interface would you attribute need to implement?

A- IControllerConfiguration
B- IConfiguration
C- IControllerSettings
D- IController

Answer-A

11- You are developing an ASP.NET MVC application. The application is deployed in a web farm and is accessed by many users. The application must handle web server failures gracefully. The servers in the farm must share the short-term state information. You need to persist the application state during the session. What should you implement?

A- A local database
B- ASP.NET session state
C- A state server
D- Profile properties

Answer-C

ASP.NET MVC Question and Answer Part-3

Here are few ASP.NET MVC interview question and answer which are very useful to clear eLance test.

1-How do you prevent routing?

A- Use ignoreroute method
B- Use authentication flag in web.config
C- Use deleteroute method

Answer-A

2-You are developing an ASP.NET MVC application that displays stock market information. The stock market information updates frequently and must be displayed in real-time. You need to eliminate unnecessary header data, minimize latency, and transmit data over a full-duplex connection. What should you do?

A- Implement WebSockets protocol on the client and the server.
B- Implement long-running HTTP requests.
C- Configure polling from the browser.
D- instantiate a MessageChannel object on the client.

Answer-A

3- You are developing an ASP.NET MVC application. You need to authenticate clients by using NT LAN Manager (NTLM). Which authentication method should you implement?

1- Basic
2- Forms
3- Windows
4- Kerberos

Answer-C

4- The UIHint attribute is used to do what?

A- Used on the Mode to specify the Title attribute for a generated html control.
B- Used on the Controller to specify custom routes.
C- Placed on the Controller to specify which view to load.
D- Used on the Model to describe style attributes to change things like color and size.
E- Placed on the Model to specify the custom template to render for the property.

Answer-E

5- Which is true about ModelState?

A- It has the state of the model
B- It has the model properties and filters
C- It has the properties that have changed only

Answer-A

6- How is a model passed to a controller action validated?

A- StateModel.IsValid
B- State.IsValid
C- ModelState.IsValid
D- odel.IsValid
E- StateManager.IsValid

Answer-C

7- If you wish to include custom transformation logic in your Bundles, which interface could you implement?

A- Itransform
B- Ibundle
C- IBundleInvoker
D- IBundleTransform

Answer-D

8-If you wanted to use a partial view but also pass the same model object from the parent view, what HTML Helper would you use?

A- Html.Partial()
B- Html.Action()
C- Html.PartialWithModel()
D- Html.ActionWithModel()

Answer-A

9- Which namespace contains the attributes used to describe your model and it's properties?

A- System.ComponentModel.DataAnnotations
B- System.Annotations
C- System.Web.Mvc
D- System.Web

Answer-A

10- Which of the following protocols are not supported by WCF?

A- NAMED PIPES FOR ON MACHINE COMMUNICATIONS
B- HTTP
C- PEER TO PEER PROTOCOLS
D- All of these choices are supported by WCF
E- TCP /IP

Answer-D

11- Where is data validation done?

A- Controller
B- Model
C- View

Answer-B

12- If you have a _Layout.cshtml file in your shared views, which file can you create to have  custom layout for mobile platforms?

A- _Layout.device.cshtml
B- _Layout.mob.cshtml
C- _Layout.mobile.cshtml
D- _Layout_mobile.cshtml

Answer-C

13- What property could you set on the OutputCache attribute to indicate that you want it to instantiate new caches for different combinations of parameters to the Controller action method?

A- VaryByParam
B- VaryByAction
C- VaryByBinding
D- VaryByCustom

Answer-A

14- What attribute is used to handle an exception that is thrown by an action method?

A- IgnoreExceptionAttribute
B- IgnoreErrorAttribute
C- HandleErrorAttribute
D- CatchErrorAttribute
E- ValidateExceptionAttribute

Answer-C

Saturday, October 4, 2014

ASP.NET MVC Question and Answer Part-2

Here are few ASP.NET MVC interview question and answer which are very useful to clear eLance test.

1- Which attribute could you use if you had a property on your Model class that you wish to be hidden when using the EditorForModel HTML Helper method?

A- DisplayValue
B- Display
C- Hidden
D- HiddenInput

Answer-D

2-The advantage of using read-only attribute for session state is:

A- Scalability
B- Neither of these
C- Parallel access of session
D- Both of these

Answer-C

3-What type of filter should be used if you want to modify the result of an action method?

A- Action filter
B- Output filter
C- Result filter
D- Response filter

Answer-C

4- An MVC application can have a:

A- Both session and view state
B- Session
C- View state
D- Neither session nor view state

Answer-B

5- Which property can you set on the BundleCollection class to indicate that you wish to enable support for CDN scripts or styles?

A- Cdn
B- UseCdnServer
C- CdnEnabled
D- UseCdn

Answer-D

6-You are authoring unit tests. The unit tests must test code that consumes sealed classes. You need to create,maintain, and inject dependencies in the unit tests.

A- T4 text templates and code generation
B- Stub types
C- Shim types
D- Hard-coded implementation

Answer - C

7- Which class is used by the MVC pipeline to map data from a HTTP request to the parameters in a controller's action method?

A- DefaultModelBinder
B- ModelBinder
C- ParameterBinder
D- RouteBinder

Answer- A

8- Which class contains information about the HTTP request that is parsed and inspected by the MVC pipeline when determining which controller and action to invoke?

A- Request
B- RequestContext
C- HttpRequestObject
D- HttpContext

Answer- B

9- What is the most scalable way to share Session information in a web farm?

A- InProc storage
B- AppFabric caching
C- SQL Server storage
D- ASP.net State Server

Answer-B

10- What type would your Controller's action return if you wish to have an asynchronous action method that returns a View?

A- Task
B- AsyncActionResult
C- Task
D- ActionResult

Answer - C

11- You are developing an ASP.NET MVC application. The application must allow users to enter JavaScript in a feedback text box only. You need to disable request validation. What should you do?

A- Apply and set the CausesClientSideValidation attribute on the text box to FALSE.
B- Apply and set the ValidateInput attribute on the text box to FALSE.
C- Use the HttpRequest.Unvalidated property to read the unvalidated form value.
D- Use the HttpRequest.Form property to read the unvalidated form value.

Answer- C

12- ASP.NET MVC Framework implements a(n):

A- Front controller pattern
B- Page controller pattern
D- MVC pattern

Answer- A

Thursday, October 2, 2014

ASP.NET MVC Question and Answer Part-1

Here are few ASP.NET MVC interview question and answer which are very useful to clear eLance test.

1- Recipe is available in:

A- All answers are correct
B- MVC4
C- MVC3
D- MVC2

Answer : B

2- What is strongly typed?

A- Model
B- Only ViewData and Model
C- ViewBag
D- ViewData

Answer: B


3-What is the purpose of _ViewStart.cshtml?

A- To define the starting HTML code used by any view under its folder and subfolders.
B- To make it easy to apply the same logic to all the views under its folder and subfolders.
C- To register the ViewState mechanism and initialize the razor engine.

Answer: B

4- How do you catch  unhandled action exceptions in a controller?

A- In the exception filter attribute
B- In global.asax
C- In the overriden OnException method

Answer: C


5- Which static class could you use to enable OAuth support for clients such as Twitter & Facebook?

A-OAuthClients
B-OAuth
C-OAuthSecurity
D-OAuthWebSecurity

Answer: D


6-What class would you derive from if you wish to create a custom  type for Web API's HTTP Content Negotiation?

A-MediaTypeFormat
B-MediaFormatter
C-MediaTypeFormatter
D-TypeFormatter

Answer: C


7- True or False? It is best practice to use model binding instead of manually parsing the request.

A-True
B-False

Answer: A

8- If you wish for a ApiController action to be used for many different HTTP Verbs, which attribute would you set?

A- AcceptVerbs
B- HttpVerbs
C- HttpGet
D- ActionName

Answer: A

9- MVC Filters can only be applied to Actions

A - True
B - False

Answer:  False

10- If you wish to genrate links to related resources to add hypermedia to your REST service, what class could you use?

A-UrlGenerator
B-UrlHelper
C-Uri
D-UriContext

Answer:  B

11-If you wish to leverage the OData standards for querying your REST service, what attribute could you use on your ApiController action?

A- Query
B- Filterable
C- Queryable
D- OData

Answer: Queryable

12- ActionResult is:

A-An abstract class
B-None of these
C-A container class
D-An interface

Answer: A

13- If you wish to create a Web API controller, what class would you derive your controller from?

A-WebApiController
B-WebController
C-ApiController
D-Controller

Answer : C

14-What attribute is used to handle an exception that is thrown by an action method?

A-HandleErrorAttribute
B-ValidateExceptionAttribute
C-IgnoreErrorAttribute
D-CatchErrorAttribute
E-IgnoreExceptionAttribute

Answer :  A

15-What is OutputCacheAttribute used for?

A-None of the answers
B-To mark an action method whose output will be cached.
C-To skip method execution until cached output expires.
D-To notify client browser that output shall be cached.

Answer: B


16 -Which base class can be used for the return value of a MVC action method?

A-HttpResult
B-ActionResult
C-Result
D-ControllerResult

Answer-B

Sunday, September 21, 2014

Microsoft Dev Center Benefits for Store developers

The Dev Center Benefits program is designed to accelerate your success on the Microsoft platform by helping you develop, improve and market your apps with a variety of offers and tools and is available to all registered developers worldwide of all experience levels and platforms.

There are 3 levels in the program:

Explorer, gets you started quickly with design and architecture guidance and consulting help from a Microsoft expert, Gift Cards, and Dev Center registration fee.
Expert, helps you reach more users faster with advertising offers, a publishing contract, and more.
Master, unlocks VIP access to developer marketing and support, SDK early access and more.

Register now for free:

https://devcenterbenefits.windows.com/

Know More

Monday, February 10, 2014

Factory Method Pattern vs. Abstract Factory Pattern

Design patterns are reusable and documented solutions for commonly occurring problems in software programming or development. n one of my previous article about Factory Pattern I spoke about what are different flavors of Factory pattern and how to choose between them. But I think there are some confusion with regards to Factory Method Pattern and Abstract Factory. So we will work on it.

Wednesday, January 22, 2014

My New Blog about holy city Varanasi

Just Started new blog about holy city varanasi.   visit www.varanasicitylife.com


Monday, September 16, 2013

Microsoft passes 9 million Windows Phone transactions daily, promises carrier payouts to developers after 30 days

Microsoft today announced the Windows Phone platform has surpassed 9 million transactions, which encompasses both app and in-app purchases, per day. At the same time, the company revealed a policy change for developers: it will no longer wait to receive app sales proceeds from carriers before issuing payment to developers

Know More

Thursday, September 12, 2013

Design Patterns for JavaScript Applications

Now a days, developers are writing increasingly larger and more complex JavaScript applications using the latest frameworks and libraries.Patterns provide a clear approach to writing structured, scalable and maintainable code, concepts which all are extremely important when developing large JavaScript applications.

Here are the following patterns:

Module pattern
Revealing Module pattern
Singleton pattern
Observer pattern
Mediator pattern
Prototype pattern
Facade pattern

For each of the patterns Carl describes the purpose and main use cases together with advantages and disadvantages.

Wednesday, September 11, 2013

Announcing the Visual Studio 2013 Release Candidate

New announce about Release Candidate of Visual Studio 2013, .NET Framework 4.5.1 and Team Foundation Server 2013!  The release is available for download now on the Visual Studio product website and is a "go-live" release.  Starting today, developers can also download Windows 8.1 RTM via their MSDN and TechNet subscriptions.

New features announced by Somasegar:

Improved XAML Editor
Cloud Business App
Improvement in C++
TypeScript
CodeLens
Work Item Charting

Know More

Monday, August 19, 2013

What’s new in Internet Explorer 11 Preview

A few areas of interest include:

    Compatibility:   Sites just work better in IE11 Preview. You get improved compatibility with web standards, other browsers, and websites. You can also update your sites to match the latest flexbox standard to simplify cross-browser code.

    F12 developer tools:   With a new UI, the F12 Tools offer a more intuitive way to debug code, solve display issues, and increase performance and stability of your webpages.

    Touch:   IE11 Preview offers more default and custom touch support for your websites and Windows Store apps. Consumers experience this support with default handling for touch-based drag and drop and hover, and the msZoomTo method enables animated scrolling effects and better control of the panning and zooming experience.

    Pinned sites:   Support for Live Tiles helps make your sites more visually interesting when you pin them, save them as favorites, or display them as frequently used sites. You can customize pinned sites using metadata values. Pin your sites to the Start screen, name your pinned site, set up notifications, and more.

    WebGL:   WebGL powers dynamic 2D and 3D graphics for games and interactive media content. You get new methods for implementing WebGL in your websites. The WebGL APIs give a powerful set of objects, methods, and properties that let you create 3D content for browsers using JavaScript. WebGL programs run directly on your computer's graphics processing unit (GPU), so they run very fast. Watch Frank Olivier's presentation from //Build to learn how to use WebGL to write content that works across browsers.

    Video:   HTML5 video in IE 11 Preview supports standards-based features for adaptive streaming, content protection, and captioning. You can change closed-caption TextTrack objects and TextTrackCue objects for your HTML5 videos, without having to create a separate Timed Text Markup Language (TTML) or Web Video Text Track (WebVTT) file.

You can download the Windows 8.1 Preview and Internet Explorer 11 Preview to start playing with the new release. And we’ve got some great testing resources, as well. Testing your sites for IE just got easier!

Make your way to modern.IE and enter your site’s URL to launch a new set of tools to help you support modern and older versions of Internet Explorer. Use the Compact Inspector to determine if any IE 11 Preview changes affect your site.

You can find a lot more about what’s new in IE11 Preview and which features work with Windows 7, Windows 8, or both, by visiting the Internet Explorer Dev Center. Dig in there, and please use the feedback link to tell us what you think!

Know More

Tuesday, February 26, 2013

Microsoft launches Internet Explorer 10 browser

Microsoft has finally released Internet Explorer 10 for users who haven't upgraded to Windows 8 just yet. Though developers were given access to Internet Explorer 10 for Windows 7 for over a month now, Microsoft has decided to make the final release available to consumers and businesses Tuesday

Downlaod IE10


Wednesday, December 26, 2012

HTML5 offline web applications using ASP.NET MVC

One of the major constraints of web applications has always been connectivity. We imagined leveraging the browser to bring fully competent web applications to the desktop, but failed due to the lack of decent browser support. Although there were some caching techniques available before, they were never really designed with the intention of making web applications run completely offline, making them fragile and complex to set up. HTML5 tries to make up for this missing browser capability by introducing the offline application cache; a more reliable way to make web applications truly available even offline.


Why should my web application run offline?

To be honest, a lot of desktop web applications would hardly yield any return on investment of being able to run completely offline. Desktops are almost always connected, I especially see mobile web applications reaping the benefits of this new feature.

Mobile phone coverage continues to be flaky or even non-existent in many areas. Being able to fluently close that disconnectivity gap would significantly improve the user-friendliness of mobile applications running in the browser.

In more specific scenarios, being able to take the whole application offline could mean the difference between having to build multiple native applications or having the luxury of building one cross-platform browser solution.

Imagine a sales person who wants an interactive catalogue on her tablet to show to her customers in the field. She could use almost any device she wanted, simply browse to the catalogue when connected, then take it into the field offline.

You don't necessarily have to be offline to take advantage of the application cache though. One could use the application cache as a super cache, storing resources offline, so they don't slow down application startup. Updated resources will be downloaded in the background, and swapped with the older ones when the update can be committed. This scenario makes a lot of sense for heavy desktop web applications.


                                                                                                                              Know More....

Friday, November 23, 2012

50 Tricks for Faster Web Applications


Jatinder Mann , an Internet Explorer PM at Microsoft, held the session 50 performance tricks to make your HTML5 apps and sites faster at BUILD 2012, providing many tips for creating faster web applications.

The advice provided by Mann was organized around six principles outlined below.

1. Quickly Respond to Network Requests.

2. Minimize Bytes Downloaded. Minimize the amount of data downloaded when a web page is loaded.

3. Efficiently Structure Markup. For IE use the latest markup standardization since it is the fastest. Earlier IE6-IE9 markup styles are recognized by IE 10 but they are not as fast as the latest one.

4. Optimize Media Usage. Images are the most utilized resource, on average a website downloading 58 images.

5. Write Fast JavaScript.

6. Know What Your Application is Doing

Mann recommended using Windows Performance Tools to measure the performance of web pages in IE and optimizing pages for less CPU time and increasing parallelism.

Read Full Article


50 performance tricks to make your HTML5 apps and sites faster

Creating high performance web apps is crucial for every web developer. Learn directly from the Internet Explorer Performance team about what actually drives performance across the web and how you can make your sites faster. This is the same team that brought you GPU accelerated graphics and compiled JavaScript, and they will share their favorite 50 best practices for web developers.

Know More and Watch Video

Shared Button