Entries from March 2008

Ajax with ASP.NET MVC Framework Preview 2

Date March 31, 2008

This is the updated version of the Nikhil’s excellent example on how to use Ajax with ASP.net MVC.
I commented all the changes made in the code and prefixed them with //emad. So just search for //emad and you will see all the changes I made… Here is a quick list of the changes […]

My Elevator Pitch

Date March 30, 2008

I found this cool site that has a free wizard which helps you build your elevator (15 second) pitch. Here are some of my pitches:
Consultant
My name is Emad Ibrahim and I am a consultant specializing in .net development. I architect, design and create software. I can do it faster and better than the competition. […]

Hacker News

Date March 28, 2008

I am not really a fan of talking on the phone or chatting on IM or texting or being active in a social network or a forum. I check my Facebook account once a month and adamantly refuse to accept any application requests. “JoeBlah sent you a vampire bite” seriously?!?
I would rather have […]

Downsizing My Budget

Date March 26, 2008

It is unbelievable how much shit I have been subscribed to and paying for. Even worse, how much of it, I don’t really need.

photo credit: Keith Bacongco
I went through all my accounts and canceled all the non-essential stuff.

Cable TV is gone - interestingly enough my media center croaked recently, it must have been […]

Laser-Sharp Focus

Date March 24, 2008

Now that I have no income and very soon I will start feeling the heat, I need to develop a laser-sharp focus super-power.

photo credit: Stephen Jefferson
Here are the steps I am taking to reduce distractions and stay focused and productive:

I unsubscribed from 95% of the feeds - my Google reader is lean and mean […]

I quit

Date March 20, 2008

I am was working for a very good company and making a good paycheck. The economy is slowing down (aka recession), the housing market sucks, I am losing money on my rental properties, my ARM loans will go up in a year or 2, what should I do? What would a rational person do? What […]

Cross Domain Error Fix for Silverlight

Date March 18, 2008

The easiest/quickest way to fix a cross domain error is to create a test website to host your Silverlight application.

When you hit F5 to debug the application, it will run the development server and the address bar will say http://localhost:xxx/blahblah.  This will prevent a cross-domain error.
If you try to run it using an test html […]

Set a Clip in Code-Behind

Date March 17, 2008

You can use the Clip property on any item to clip its display area. For example if you have this two items rectBlue and rectRed like this

And you want to animate rectRed by sliding it out from the right side, without clipping it would look like this

But if you set the Clip property on […]

Silverlight: TemplateBinding Throwing an Error

Date March 14, 2008

This drove me crazy for about half an hour… 
I attached this style to a button
<Style x:Key=”NavButtonStyle” TargetType=”Button”>
<Setter Property=”Opacity” Value=”0.8″></Setter>
<Setter Property=”Template”>
<Setter.Value>
<ControlTemplate>
[…]

Silverlight Tip: Stretch Canvas to Fill the Screen

Date March 13, 2008

I am not sure if this is a bug or by-design but Canvases don’t stretch the way I expect them to - the Grid control seems to resize better.
If you want your Canvas to stretch and Fill its parent, there is an easy way to do this.
1. On initialization, set the Canvas width and height […]

Close
E-mail It