Archive for May, 2009

Yesterday, I came back from the Montreal’s codecamp, that was a nice event, well organized.
Today, I was walking on the street of Montreal and thinking about why we do not have that kind of community  in Belgium.  A lot of people are motivated and always want to learn new stuff, so why do not we [...]

Here a url helper, maybe it can interests you :

public static class UrlHelperExtension
{
public static string Image(this UrlHelper helper, string fileName)
{
return helper.Content(string.Format("~/Content/Images/{0}",fileName));
}

public static string Stylesheet(this UrlHelper helper, string fileName)
{
return helper.Content(string.Format("~/Content/Css/{0}.css",fileName));
}

public static string Javascript(this UrlHelper helper, string fileName)
{
return helper.Content(string.Format("~/Content/Scripts/{0}.js", fileName));
}
}

And here is how I use it :
For CSS :

<link rel="stylesheet" type="text/css" href="<%= Url.Stylesheet("reset") %>" media="all" />

For javascript

<script [...]

So, I work hard these days to  finish my data access. I would like to explain you how I see application’s design.
As I told you before, I want to separate my application in 3 parts. I know that architecture could be discussed but I would make this point clear, it should be “re-factored”. Anyway, for [...]

I received this error during a get method (retreive the posts in my Kiwi Application).
I strangled with this during an hour and finally, I remembered that I had changed a NOT NULL field in my db to a allow null number.
So, when you do that, you simply have to update your Linq to Sql (dbml). [...]

So, now that I have introduced TDD in my Agile Page. I will try to use it along all the development of Kiwi.

Bookmark It

Hide Sites

$$(’div.d233′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });

What my colleagues often say when they hear TDD is :  “It makes no sense”, “We do not need that”, “I am doing without TDD since ten years”.
Indeed, maybe, you do not need it. Indeed, you were doing without it but if you are a developer, you should be open to new technologies, curious and [...]

So, I decide to rebuild a new solution. I will carry on the membership layer later cause I want a system who could use Sql, Active Directory or OpenID for the login and only use Sql for the membership role. I have an idea to do that but as I told you in a previous [...]

Using dropdownlist is, for me, a good thing, It allows you to avoid input error or make some coherent choice compared with a previous input.
The deal in this post, is to make a coherent cascade dropdownlist. For example, you choose a country and you would like to auto-populate the dropdownlist States. It is a common [...]

using System.Reflection; //the library to use

Code to put in your method :

Type type = objectforloop.GetType();

PropertyInfo[] properties = type.GetProperties();

foreach (PropertyInfo property in properties)
{
if (property.GetValue(objectforloop, null) != null)
{
Console.WriteLine("Name: " + property.Name + ", Value: " + property.GetValue(objectforloop, null));
}
}

Bookmark It

Hide Sites

$$(’div.d163′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });

I am currently working for a project in my job where I have to write an application which manage the active directory by a website application. I know that is not the best way to manage users in Active Directory but, well,….
First, I decided to use the linq for Active Directory of Bart Desmet, I [...]


top