Time to upgrade that WinFX again

by Miha Markič 23. February 2006 01:25

New wave of WinFX downloads (Feb CTP):

http://msdn.microsoft.com/windowsvista/getthebeta/default.aspx



Exception: Stack empty.

Tags:

.net

World's largest windows error message

by Miha Markič 22. February 2006 12:29

This is funny, perhaps it might be entered in Guinness World Records :-)

http://www.networkworld.com/community/?q=node/4630



Exception: Stack empty.

Tags:

Windows

A way to nicely format code within Community Server blog (or any other)

by Miha Markič 20. February 2006 18:17
Oliver has a nice post on how to nicely format the code on your Community Server blog. Check it out here.

Exception: Stack empty.

Tags:

Building class constructors with ease using CodeRush

by Miha Markič 20. February 2006 18:01

Imagine a class with lot of fields.

 

 Now, you would want to build a constructor that initializes all or many of the fields by assigning arguments to coresponding fields so you don’t need to initialize all fields one by one, plus you have the guarantee that all fields are initialized. Makes sense, right. Now, how would you write such a constructor? You might just use all of your 20 fingers and type it. Pretty annoying, isn’t it. Afterall all the information is already there.

So, meet one of the CodeRush‘s feature I love: Smart Constructor. Just move the caret to the point where you want your constuctor created and type cc [SPACE] (assuming default CodeRush settings). A window like this will appear:

You can uncheck fields at will. After you are done just press [ENTER].

Isn’t this feature just lovely? CodeRush just sucks the metadata from the declaration and creates a constructor with all arguments you’ve selected. It certainly saves a lot of annoying typing for me and prevents me to type wrong assignments. And this is just one of the million CodeRush’s features.



Tags:

DevExpress | .net

Tst

by Miha Markič 20. February 2006 17:55

C Sharp



Tags:

Problems signing an assembly with a key stored in key container (VS2005)

by Miha Markič 11. February 2006 18:39

This is one of those problems you can’t understand how could it happen.

Some background: In the past Visual Stuidio versions you were able to sign an assembly using a key stored in a file (snk) or in a safe store named key container. There were two assembly scoped attributes named AssemblyKeyFile and AssemblyKeyName respectively. I prefered the later since I didn’t have to deal with file location and the data is stored in a safe place.

Now, here comes Visual Studio 2005 with a project property page for signing assemblies (Signing tab in Project Properties) which has a check box whether to sign assembly or not and a combo box that locates the file being used for signing. And if you wonder how can you sign the assembly using key container you are out of luck – no option there.
Now you say, no problem, I will sign it the old way using assembly scoped attribute. Actually you still can, but you’ll get a warning (AssemblyKey* attributes are deprecated):

Warning 1 Use command line option ‘/keycontainer’ or appropriate project settings instead of ‘AssemblyKeyName’ E:\Visual Studio 2005\Projects\MyProject\Properties\AssemblyInfo.cs 36 12 MyProject

Hmm. Ok, since I don’t like warnings, I will go passing that /keycontainer parameter through one of Project Properties page. But you can’t. Again, no option there.

Fortunately there is a simple workaround which involves modification of csproj file by hand. You should add this node right under the first node:

YourKeyName

(found via this thread).

Happy signing.



Tags:

.net

Presumably bigest Slovene MS Office forum

by Miha Markič 10. February 2006 14:43
Matjaz, a friend of mine, hosts huge MS Office forum (Slovene language) full of useful answers to common problems (who doesn’t have at least one problem with Office?). There is also Q&A section there and plenty of developer information plus some freeware applications.

Tags:

Windows | Slovenia

Delphi on eBay?

by Miha Markič 10. February 2006 14:38

Sad news for Delphi users. Or not - who knows what'll happen once the division is sold. Perhas we'll see it on eBay :-)

http://blogs.borland.com/davidi/archive/2006/02/08/23013.aspx



Exception: Stack empty.

Tags:

RightHand.DataSet.Visualizer refresh is available

by Miha Markič 6. February 2006 01:46
I've updated expiration date of RightHand.DataSet.Visualizer.
Download updated version here.

Exception: Stack empty.

Tags:

Caching of database schema in CodeSmith

by Miha Markič 5. February 2006 21:40

So you've build a template (or using one) for CodeSmith that uses SchemaExplorer.DatabaseSchema class - the one that enables you browsing through database schema with ease (through a nice API) and a killer feature when dealing with databases. There is one catch though:

The first time you run a template it takes a little longer to execute while the next time (if you didn't change it in between). The reasons for this behaviour are two:

  • CodeSmith Professional does template code caching (it compiles the template only once if not closed or changed). This is good for batching - it saves you time.
  • Perhaps less know is the fact that it does caching of database schema, too.

The later fact might be a problem. Imagine you run a template that does database modifications (creates a SQL that you run). Now, the second run will produce the exact same script not taking in account that database was meanwhile changed. Don't worry though as solution is simple. Just invoke this method somewhere at the beginning of the template code and you are fine:

[your instance of DatabaseSchema].Refresh();



Exception: Stack empty.

Tags:

.net

Miha Markič

About me
Righthand
 
Microsoft MVP
 
Developer Express' DXSquad
INETA Country Leader for Slovenia
INETA Country Leader for Slovenia

Slovene Developer Users Group Lead
Friends of Red-Gate
LLBLGenPro Partner

Miha currently works as a free lance consultant and software developer specialized in .net area.
He graduated in Computer and information science at the University of Ljubljana, Slovenia. He has accumulated experience in various programming languages such as Java, Visual Basic 3-6 (MCP), Visual C++, Delphi, C# and VB.Net through years.
He has experience in practically all (technical) stages of project development, including planning, framework development, user interface, business processes, as well as testing and documenting. He has worked on big and small projects in Slovenia and abroad (e.g. participated in completing level 3 IS for the Nucor steel plant, Hertford, USA).
Currently he enjoys programming in .net environment using C#. Since 2000 he has been active in Developer Express' DX Squad and has been ECDL trainer and tester. He also gives lectures on conferences and other events in Slovenia.

Shortcuts

Add to Technorati Favorites

Social networking

Most comments

Brandon Brandon
1 comments
us United States
Igor Brejc Igor Brejc
1 comments
si Slovenia
BV BV
1 comments
si Slovenia

Google friends

Recent Comments

Comment RSS