Jan 22, 2010

Working faster with Visual Studio 2008 website

I just wanted to share with you that you can actually start using the page and debug before all the actions that are known as a build are performed by Visual Studio 2008.

You can actually skip the "Validating WebSite" part.
Here is how I do it:

1. Hit Build button
2. View -> Output window
3. Watch the output window, when it says "Validating website", check out your Errors List (View -> Errors List).

Seems that Visual Studio will know the errors in your website / projects in the solution, before it finishes validating the website itself. It simply waits the validation to finish in order to popup this window.

If there are no errors - you can start debugging the site.
If there are - you can press CTRL + Break to stop validating the web site and fix the errors.

Jan 19, 2010

Unexpected fatal error -- Not enough storage is available to process this command. While building a project.

It is very strange error.
Anyway - if you experience it - deleting the events from the Application event log solved it for me should work for you to ...

Telerik is Red Herring Global 100 Winner

Just to let you know that telerik is Red Herring Global 100 Winner.

Telerik is Red Herring Global 100 Winner

I hope this is just the beginning ;)

See full list of Red Herring winners here:
Red Herring Global 100 Winners

Jan 18, 2010

Public Issue tracking system launched today!

If you haven't heard yet - we have a brand new Silverlight Public Issue tracking system.

It was built to help you track your issues and features and be instantly informed about the new things we are doing here.
You can also vote for your favourite feature, thus rising their priorities.



The PITS is still tagged beta but it is very usable, so you can start using it right away.

Are you still here?
Click here to be taken directly to PITS so you can start subscribing for the stuff you like ;).

http://www.telerik.com/support/pits.aspx#/home

Jan 16, 2010

Two-way binding is only supported for properties exception.

That was very strange. I used #Bind in the markup of a user control in order to set a property value and got this nasty exception.

It told me nothing. I couldn't figure out what was wrong with the property and what does it mean that the property is not valid.

I did what every one of you will probably do ;)
Google with the exception and found that if you convert the property from the type it has to string it should work.

Couldn't make it.
Probably my scenario is different.
I will write another blogpost as soon as I find the solution. For now I worked it around another way - using the code behind ;)

Jan 13, 2010

Do it worse!

Here is a very interesting blog post a collegue of mine accidently found and posted to me:

http://thedailywtf.com/Articles/The-Utlimate-State-Selector.aspx

It is PHP but a regular web developer (even being ASP.NET developer) would realise the problem and the great mind behind this code :).

Lesson learned - your code is great as there can always be a worse solution :).

Jan 7, 2010

The access to the path bin\ is forbidden exception while building - Visual Studio 2008 and TFS

I had this strange error yesterday and it took me some time to understand what is going on.
It appeared that the bin folder of the main project is under source control, so TFS was locking the folder, the subfolders and the files.
In order to resolve it - checkout the bin folder in Visual Studio and then build.
The build should be OK.
Then you can Undo Changes on the folder and everything should work as it was before.

Hope this helps someone ...

Jan 6, 2010

Have you tried the Windows 7 God mode?

I did and it really exists :D

In order to try it:

1. Create new folder under Windows 7
2. Name it : "GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}" (without the quotes).
3. The folder will change its icon, double click it ...


Source : CNet

Jan 5, 2010

My chapter in the C# book is almost done!

I am about 80% ready with the first chapter of the book "Introduction to programming with C#" (this one was assigned to me on the initial meeting).
Lot's of things borrowed from the Java version of the book, still lot of things are new.

In the first chapter I teach the reader what he / she needs in order to create a simple console application.

Both ways are shown - using simple text editor (notepad in our case) and csc and using Visual Studio 2010 Express Edition (as being free for students).

I will mention #Develop. How to debug is also mentioned in the book.
I will soon (probably today) include some information about the .NET Reflector.


Wish me luck!

Jan 4, 2010

2012 and some other stuff

I just couldn't resist to take a few minutes of my time and post this picture just to make you stop working for a minute or two :D

I accidently found this picture:

2012

It is kind of mix of Y2K problem but for the next "end of the world" :).



You can take a look at http://bizarrocomic.blogspot.com/, you may find some more funny pics.

Good night :)

Dec 3, 2009

Introduction to programming with C#

As Vesko Kolev stated in his blog - a new bulgarian book about C# programming is in progress.
I decided to take part because it seems very interesting. I haven't much experience in publishing so it will be very beneficial for me to work on this.
Actually I was author in a software magazine few years ago (as far as I remember I was about 17 years old so it must have been about 6 years ago). It should help me as I took the first chapter - introduction to programming where I will show the readers how to install Visual Studio 2010, how to start their first project and how to write their first program, some diagrams of the .NET framework 4.0 will also be included in this chapter.

We decided not to include any advanced features in this book, just core programming language, no extensions, no lambda expressions, no var, no automatic properties, no nothing.
This is because this book targets potential software developers and not software developers. It should show the developer how to code, how to think etc. We decided that if a man / lady without any software experience may think that auto property won't take memory after it doesn't involve variables (at least visualy :).
That is why we do only core things.

Wish us luck. We would really love to expand bulgarian software development community with few more people :). After all if even one guy / gal of all the people that will potentiall read the book becomes an expert - our mission would be completed (we are dreaming for more impact ofcourse :).

As Svetlin Nakov and Vesko Kolev said - telerik is sponsor for this book so it should be published easilly than their prеvious book - "Introduction to programming with Java" and would probably joy some more marketing efforts.

That was it about the book.
Now about my motivation to join the project no matter my personal engagements and all the work I have at telerik and at the university.
The first reason is that I am a self - taught (almost) developer.
I never had degree that will help me find my work, join some society of developers that will help me when I hit a difficult problem.
There wasn't even internet in my hometown. A friend of mine gave me a book on programming with Delphi (that Sams 21 days brick :).
The Delphi help also helped me and I also downloaded html files to read later when I was at school.

Then I applied for a job in the city where I was studying (Veliko Tyrnovo).
It was all my collegues that helped me improve my skills.
I don't feel as a worldwide recognised expert or something but getting to the intermediate level from nowhere is achievement to me.
So reason #1 to join this book is to give something back.

Another reason is that I would like to see how a book is written, are there different proccesses than in the software development. It has something to do with the blog posts I guess :)
So reason #2 is to steal some knowledge :)

And some kind of nostalgy would be the last reason to join :).As I said, I was an editor in a software magazine, it was very nice thing to do. The article, then the readers asking for some more information. I miss this a bit :)
Reason #3 - to feel the old days when I was an editor :)

The specified service has been marked for deletion error message when removing a service

If you receive this message while trying to delete a windows service - check if the Services.msc application is open.

You will need to restart in order to delete the service, but you will know to first close the Services.msc application the next time PRIOR uninstalling the service (using installutil /u service_exe_name).

Hope this helps someone outthere...

Edit : I found another scenario when this can happen and it seems to be more .NET specific and common to software developers - if your service creates some worker threads, Windows will attempt to kill the main thread, the main thread will attempt to kill the main thread but the worker threads if not marked as BackgroundThreads via the IsBackgroundThread property will remain. The GC will wait for them to reach a safe point so they can be terminated and the service will most probably be only marked for deletion, requiring you to restart windows.

Please note - if you are using the ThreadPool class you will probably not hit this problem as the ThreadPool internal threads are automatically marked as background threads.

Edit 2: Another case when you will receive The specified service has been marked for deletion error message is when you try to uninstall service which wasn't stopped first or it was marked as unstopable.
This is done if you have this.CanStop = false in your service code.
Windows knows this service shouldn't be stopped and it will only mark it for deletion but will not delete it right away.
Be careful with CanStop property.

Nov 24, 2009

Limiting your Internet connection speed with Fiddler.

In some cases you may need to limit your connection for testing purposes.
This is / should be extremely easy using Fiddler.
Here is a simple walkthrough on how to do this:

1. Go to Fiddler site and download Fiddler latest version (http://www.fiddler2.com/fiddler2/)
2. Install it and start it.
3. Click on Rules -> Customize Rules:

4. An instance of notepad should open. Find the line that says something like "oSession["request-trickle-delay"]":

This setting tells Fiddler how much milliseconds should halt the request. (not quite sure how a request halt will help you though)
5. Find the line that says "oSession["response-trickle-delay"]" and change it:


Save the file.
You should have a connection limitation.
Now, when you want your connections slowed down, you will need to check the following option:

6. Rules -> Performance -> Simulate Modem Speeds (should be checked):


Please do not forget to switch off fiddler when you don't need it as you may find yourself wondering why is your connection significantly slower than usual ;).
Hope it helps someone out there.

Sep 8, 2009

Telerik after few days of work

I wasn't blogging for a while but I was concentrated at my new work ;).

Actually I had forgotten that I have blog but few collegues were joking with me that I suddenly put my blog posts (especially those focussed on radControls) on hold. They also asked me if I am going to stop writing about telerik :).
So I decided to write about telerik ;). This time from other prospect.
I was thinking a lot about this post.
If I only praise the company the readers may think I have some interest to do so.
So here is the truth.

I will first start with the interview.
It was held in telerik HQ here in Sofia (my position is also here), the people who was responsible for the interview did their job in a very professional way. The interview was very easy to handle and more like a chat with friends. No stress at all.

The technical questions were handcrafted in a way so the interviewers can get an idea of my technical skills without bothering me with a questions like : "Do you know what is the method in the System.x.y.z.Class which should be used to do access NASA space shuttle chip N1A2322AH". I mean I can remember some of them but I can't know each method in the .NET framework, all the commands in the TFS, all the things in jQuery etc.
No such questions. But real technical questions instead. I will not disclose more on that.

Some processes which I will also skip took place in a matter of week.

The first day
It was a day to get familiar with the company, the collegues etc. telerik HR manager introduced me to all the teams, I met all the people, got some other technical orientation meetings and was ready to go.

The task
I had a challenging task (challenging to me at least, it may be easy to do for other people). Anyway it kept my interest all the time until it was finished. Offcourse I will not disclose more details on this. Just to let you know that I was happy with it.

The meetings
Everything is discussed, each collegue is helpful, there are meeting rooms which are available for longer meetings and you can also go to your collegue desk for shorter discussions.

The people
As I said the people are quite friendly.
Lots of smart guys there. You can learn and teach. Also I have a lot of friends who were collegues of mine from previous companies. They really helped a lot to integrate.

So will I continue to write about radControls
Probably not. At least not that often. When I was at my previous work I had found some problems with the controls because I needed to implement some uncommon scenarios. As I stated in my posts - some of them was because of lack of knowledge in rad products. Now if I have problem I can internally ask someone from the team to help me out or if I find an issue we can discuss if we can address it or find a workaround. That wasn't quite possible before. So I may write a post on how the issue was resolved instead just pointing it out.

Disclaimer :)
The above is my personal opinion based on about a week work.
May or may not change in time. Hope it will not :).

Aug 31, 2009

First day at Telerik

Just to update you that tomorrow is my first day at Telerik.
Wish me luck!

Aug 27, 2009

A nice sentence I read recently

This one is from the asp.net forums:
"Where there is a will, there is a way. And where there is a team there is more then one way."

Aug 25, 2009

Determine if your site is running under IIS or Casini

For the people who don't know - Casini is the built in Visual Studio server which is by default running when you debug ASP.NET project.
You can use the following to check if the site is running under IIS:

bool isUnderIIS = this.Request.ServerVariables["SERVER_SOFTWARE"].IndexOf("IIS") > -1;

Not the most clever thing I've ever done but seems to be the only way at the moment.
If you know a better way - let us know...

To clarify - IIS will return something like : "Microsoft-IIS/5.1", while Casini will let you bump your head with
string.Empty.
Anyway, this covers my scenarios 100% so I can use it.

Aug 10, 2009

A nice DOM property I bet most of you have missed ...

In my previous post on this topic I mentioned the properties you can use to detect changes in HTML input controls:
http://donchevp.blogspot.com/2009/08/nice-dom-property-i-bet-most-of-you.html

Now I want to inform you that I have found an article which has all the controls included with the property you can use to track for changes:

http://www.codestore.net/store.nsf/unid/DOMM-4UTKE6

The first thing I noticed is that it is kind of inconvenient for the SELECT DOM object for example.
You should iterate through all the items and check their selected property with their defaultSelected property ...

Aug 5, 2009

A nice DOM property I bet most of you have missed ...

Have you ever heard about the defaultValue and the defaultChecked properties?
They seems to be a standard DOM properties so the major browsers seem to support them.
What they do?
The defaultValue property is about textboxes (input type="text") and it will contain the value which the textbox has at the time it was rendered on the page.
The defaultChecked property is almost the same, it is about a checkbox and it tells you whether the checkbox was rendered checked or not.

So doing something like:

function hasTextBoxChanged(textBox) {
return textBox.defaultValue == textBox.value;
}

would tell you whether the textbox passed as an argument has changed its value since it was rendered on the page.

Same function for checkbox would be something like:

function hasCheckBoxChanged(checkbox) {
return checkbox.defaultChecked == checkbox.checked;
}

I find those properties very helpful. If you play a bit with jQuery you can find a real life application of them.
I am however wondering if there are such properties for dropdowns and some other controls.
If I find - I'll definatelly post again.

Hope it helps someone outthere ...


P.S. if the control is a part of update panel and it was udpated in the code behind it will not be counted as a change as the defaultValue / defaultChecked properties will be set again (those properties are taken to be the value of the control when it was rendered).