Manish Pansiniya's Blog

.NET, C#, Javascript, ASP.NET and lots more…:)

Archive for the ‘Uncategorized’ Category

221 See you later with sendgrid.net

leave a comment »

We are using sendgrid to send the emails to customers. Just yesterday, got the issues and when analyzed log, we could see 221 and 421 error with sendgrid.

The issue was the slow connection with sendgrid and due to the same, it return the error. Checked ping and tracert to smtp.sendgrid.net and getting very slow response.

Advertisements

Written by Manish

June 29, 2016 at 3:46 pm

Posted in Uncategorized

Important features of MVC4

leave a comment »

A few important updates and features of MVC4.

  • Bundling and Minification, brought to ASP.NET 4.5 and now also integrated into ASP.NET MVC 4. This allows you to build faster applications by minimizing the number of requests to the server (bundling requests).
  • Web API integration into ASP.NET: new support for creating HTTP REST services, has built-in support for content negotiation with support for JSON, XML and Form URL-encoded formats
  • ASP.NET Mobile support through custom view engines for mobile sit.es and jQuery Mobile integration.
  • Async and WebSockets: when using ASP.NET MVC 4 with .NET 4.5 and VS 11 you’ll also be able to take advantage of the new async and WebSocket support built-into .NET 4.5.
  • Single Page Applications: new in the beta is support for building better end-to-end experience for building applications with client-side interactions using JavaScript (Upshot, History.js) and the MVVM pattern (knockout.js). On the server side the ASP.NET NET Web API is used, mainly an abstract class DataController. Note this is a new project template type in experimental phase.
    For more information on creating Single Page Applications with ASP.NET MVC 4 I recommend you watch the fantastic session Steve Sanderson did during TechDays: Building rich Single Page Applications (SPAs) for desktop, mobile, and tablet with ASP.NET MVC 4. Worth watching until the end where Steve even shows an offline capable implementation using HTML5 application cache and offline storage. These latter ones however are not yet part of the beta.

    source

Written by Manish

July 21, 2012 at 5:03 am

GTD Application Comparision

leave a comment »

Following are the GTD tasks list software comparison for android

 

Written by Manish

April 8, 2012 at 7:55 pm

Posted in Uncategorized

Tagged with ,

Variable XYZ is used before it has been assigned a value

leave a comment »

Sometimes you fall in the condition where you might require to put try and catch block after just declaring variable ad that creates warning that Variable XYZ is used before it has been assigned a value.

The simple solution is , assign Nothing to the variable and check on the catch side.:

Dim BookingTran As Common.DbTransaction = Nothing
Try
   Dim db As Database = DatabaseFactory.CreateDatabase(Config.BookingDBName)
   BookingConn = db.CreateConnection
   BookingConn.Open()
   BookingTran = BookingConn.BeginTransaction()
Catch
   If Not BookingTran Is Nothing Then
      BookingTran.Rollback()
   End If
End Try

Written by Manish

November 5, 2010 at 12:09 am

Posted in Uncategorized

IntelliPro .NET Training Website Updated

with 2 comments

IntelliPro Training Solutions is division of the IntelliPro IT Solutions. IntelliPro Solutions with its wide array of services stands apart as one of the leading software development and training company. With relevant industry knowledge, we offer you the best services to add signature to your business identity.

We are Ahmedabad, India based company that focuses on providing cost effective quality training and last semester projects. It helps you to take your knowledge and learning to professional levels. And thus you can achieve the desired results and achievements in your current position or it helps to build your career too.

We have redesigned the part of website and make it “One Page Website” with needed information.  You can visit : www.dotnet-tutor.com

If you are interested in taking .NET training or Last Semester live projects, you can visit us or drop an email @ contact AT dotnet-tutor.com

Written by Manish

April 27, 2010 at 9:59 pm

Google Vs. Microsoft – Basic User Needs

with 3 comments

I was using new Google Chrome browser and just wondering about its features. There are not lot more compared to other browser like Firefox and IE but for computer geeks like me there are some features which is very useful and those are the reason for using Google Chrome instead of IE.

We could not discuss all the features here as I just wanted to mention here that, I believe that as Google keeps basic user in mind and keep those feature as priority. My just one of the favourite feature in the latest Chrome is bookmark sync. I like that feature as in my previous company, I sometimes feel very irritated when I used to sit on office computer and wanted some bookmark at home, I need to mail or save in some of the online bookmarking service. But now, its good that we can use the Chrome to access our bookmark anywhere just using our Gmail account.

So I thought about all products which are widely used by users across globe from lot of company and find out that the products which are most popular has the ease and basic user needs in place. Microsoft has to improve on this 🙂

Written by Manish

February 13, 2010 at 10:55 pm

Posted in Uncategorized

Tagged with ,

Boxing & Unboxing in c# (.NET) – Why & What

leave a comment »

This post is just yet another explanation about boxing and unboxing. Before that let us look at just in one line that what is value type and reference type.

Value Type contains actual data and it is stored always on stack. This cannot be null anytime.

Reference Type contains reference/pointer to actual data. Data is stored on heap. This can be null.

Now, as per all the website, boxing is to convert value type to reference type and unboxing is to convert reference type to value type.

But I was thinking, why to convert it from one type to another. The reason I found is, sometimes, you require value type must be passed as reference type e.g. System.Object as parameter. So if you define System.Int32, it allocates 4 bytes to the stack. And if it is passed as System.Object, it is boxed as referenced type and passed to the method. Due to that, System.Int32 behaves exactly same as object. However, in reality, it is just a 4 bytes.

So because of boxing, everything appears as Object (Reference type).

In unboxing, the reference type is converted back to the Value type. But if you look at all the unboxing code, you can find out that explicit cast is required to do the same. That is because CTS need to know whether you are converting the reference type to valid value type due to strict rules.

🙂 Quite Interesting!!!

Written by Manish

April 20, 2009 at 12:13 am