Archive for the ‘Uncategorized’ Category
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.
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.
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.
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
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
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 🙂
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!!!