Erik Zaadi

The tales of a developer with passion for dad jokes

Recent Posts

Using Mvc user controls from another controller I needed to use a user control from a different controllers folder in a view. Should be easy I thought, there’s probably an overload for the Html.RenderPartial that with the controller name. Unfortunately, that’s not the case. If you look at the solution layout below: I needed to user the OtherControl.ascx from the Home controllers views. Passing only the user control name to the Html.RenderPartial won’t work, and you’ll end up with an error like this:
The beauty of the desert A bit off topic perhaps, but I have to admit, I love the desert.. Cheers, Erik
Asp.Net MVC Exception Handling with jQuery I stumbled upon this excellent post by Sumit : http://2leggedspider.wordpress.com/2009/12/22/handling-exceptions-using-jquery-and-asp-net-mvc/ I thought the idea was great, but the fact that you need to parse it as JSON bothered me. Since the information needed is only the status code, stack trace and error message, it seemed more appropriate for me to use the existing http response parts that are designed to pass those values. For the impatient: Demo | Source [Update] Altered the code with @Neal, and @Colin’s feedback.
Blog Migration – Part – 4 – Connecting Windows Live Writer to the AtomSite blog Previous Posts : 1 | 2 | 3 This post took me a while to get together, it’s actually the first blog post I’m writing from Windows Live Writer on this blog.. To be able to write and manage posts efficiently, you need to connect with a good desktop program, with offline capabilities such as preview, saving drafts etc. Windows Live Writer is the perfect application for me, as unfortunately I don’t get to spend much time on the Mac side of life.
Blog Migration - Part 3 - Exporting Posts From Blogger To Atomsite Previous Parts : 1, 2 Blogger are awesome in many ways, but if there’s one feature missing, it’s a way to import/export to other blog engines. BlogML is a standard that several other blog engines are starting to support. AtomSite supports BlogML integration from version 1.3 (Note: This is not the version shipped in the web platform installer). I used a superb tool called BlogExporter, which exported all of my posts, comments and tags from my Blogger account to a nice little XML file.
Blog Migration - Part 2 - Temporary Pages Previously : Part 1 - Setting up After getting my self my little virtual corner on the webospere, it was time to get some content up before getting all the final sites up. Steps: “No 404 for me” A small "Under construction" [page](http://demos.erikzaadi.com/misc/firstRoot/) ,with a typical 90's under construction gif look Linking my existing (sub)sites: I added two CNAME records: Blogger Account : http://blogger.erikzaadi.com => http://erikzaadi.
Blog Migration - Part 1 - Setting Up Domain and Hosting Server Part 2 This is the first part in a series I’ll be doing, describing the process I went through while migrating my blogger blog to a hosted blog with the atomsite blog engine. Why migrate my blog you ask? Well, although Google offers blogger as one of their great free services, I wanted more control, and to have the blog engine in a programming language that I’m a bit more fluent with.
Google Analytics.NET Prelude [skip] I’ve been using Google Analytics for a while now, both for this blog and my projects site, and as many others I think the service is great. While creating my project site, I wanted to make sure that the site had graceful degradation, especially that the site would be accessible without javascript. This introduced a new problem for me, even though visitors with javascript disabled where able to see the site rendered, their visits where not tracked in Google Analytics.
jQuery Console Plug-in Prelude A typical scenario for me when I start a new web site, is to include JavaScript snippets from previous sites. I usually get to a stage where need to solve problem that think I’ve solved before. Then, after a dark era for about 5 minutes of trying to actually remember when and where the solution is, I copy it to the new site. Each time I keep telling myself that I need to create some kind of template for those typical snippets I always end up adding.
Update - jQuery Print Element Plugin version 1.0 Released Thanks to John and David for their contribution and valuable input. Version 1.0 has no new groundbreaking features, mostly bug fixes (see changelog). There’s a new documentation page explaining the available options, and a new sample page as well. As always, any feedback will be much appreciated, either as comments here at the blog, as an issue at the issues section, or a bug report at the official jQuery plugin page.