marți, 16 septembrie 2008

Bonn dorms

Etichete Technorati: ,,

Today I visited Bonn in order to find out how my possible future dorm will look like. This one is placed in Bonn, Pariser Str. 54.

I had in my mind the dorm in which Loredana's friend lived in last year - clean white painted room whith nice furniture and big window.

Instead I looked at a white room with old furniture, a kitchinette with a grandma look - plastic was yellow instead of original color. The room is quite big, but the furniture was old. The tables were in a 60 style, the chair look bad, the closet was small and kind of yellow at corners. Since it was a random room, no 21, I have a little hope that my girlfriend's will be nicer. Maybe mine also.

IMG_2951 IMG_2952 IMG_2953 IMG_2954 IMG_2955 IMG_2956 IMG_2957 IMG_2958 IMG_2959

duminică, 14 septembrie 2008

svn: Your file or directory is probably out-of-date

One of the most tedious bugs in Subversion, ever, is this one. If you want to commit changes to your working copy, and the response of svn is :

svn: The version resource does not correspond to the resource within the transaction. Either the requested version resource is out of date (needs to be updated), or the requested version resource is newer than the transaction root (restart the commit).
If you stick with standard advice, trying to update your working copy you'll find out something interesting: Nothing is out of date! You just can't commit!!!

One solution that I found, but I don't know all the consequences of doing this so DON'T BLAME ME if you lose important local properties in your repository is the following :
1) Go to the directory in your working copy that contains the problem file.
2) Delete .svn/all-wcprops from there.

That's it. Commit and be happy. PS: All I can say is that this has not crashed any of my working copies yet.

joi, 5 iulie 2007

ASP .Net Page.Header with custom meta tags

One of this days a friend of mine shared with me some SEO techniques and one of them was to change the meta tags associated with a product page. So after a little research I found out a way to accomplish this : modify the Header property of ASP .Net page and add several HtmlMeta tags who can hold the data needed to be changed. Each ASP .Net page has a property called Header who is the “hidden” header code of each HTML page. It is available starting with .Net version 2.0 and exposes also the meta tags object collection. Actually, all elements in the header are available in Header.Controls

// Render: <meta name="keywords" content="pharmacy, online pharmacy, home delivery" />
HtmlMeta meta1 = new HtmlMeta();
meta1.Name = "keywords";
meta1.Content = "pharmacy, online pharmacy, home delivery";

// Render: <meta name="verify-v1" content="DmMArCJQq9KV45wvKMwrWASh3R8UWTd7NfBD" />

HtmlMeta meta2 = new HtmlMeta();
meta.Name = "verify-v1";
meta.Content = "DmMArCJQq9KV45wvKMwrWASh3R8UWTd7NfBD";

// Render: <meta name="revisit-after" content="2 days" />

HtmlMeta meta3 = new HtmlMeta();
meta.Name = "revisit-after";
meta.Content = "2 days";

Header.Controls.Add(meta1);
Header.Controls.Add(meta2);
Header.Controls.Add(meta3);