Quantcast
Channel: darkroastjava – Darkroastjava's Public Notebook
Browsing all 13 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Creating an excel-like grid for ASP.NET

I have been searching around for a while because I was in the need for an ASP.NET control similar to asp:GridView, but with following huge differences: All rows and their cells must be in edit mode all...

View Article



Image may be NSFW.
Clik here to view.

Calling an Oracle Stored Proc with CLOB from System.Data.OracleClient

You might have stumbled upon this and it might have made you tear your hair just as it did to me. When you try to call a stored procedure from .NET using System.Data.OracleClient, you won’t be able to...

View Article

Image may be NSFW.
Clik here to view.

Two Useful Classes When Using Excel COM Interop

There are two known problems when working with Excel Interop. After having used Excel and shut down your application, an Excel process still “hangs” in background. When your Excel installation is...

View Article

Image may be NSFW.
Clik here to view.

Using Eric Hynds’ multiselect with knockout

Eric Hynds has crafted an awesome enhanced multiselection dropdown as a jQuery UI widget which enhances a normal <select multiple> list. Unfortunately, as many jQuery UI widgets, it manipulates...

View Article

Image may be NSFW.
Clik here to view.

Major take-aways from ScrumMaster course

I took my ScrumMaster course three weeks ago and had the honour to take it with Jeff Sutherland as our teacher. This course was very insightful – a pity that it was so short! So I guess 90% of my...

View Article


Image may be NSFW.
Clik here to view.

Unit Tests: An AAA-conform way to expect exceptions

I like the way how NUnit supports expected exceptions in unit tests – as opposed to some other frameworks, where you have to misuse a try-catch block try { DoSomething(); Assert.Fail("exception...

View Article

Image may be NSFW.
Clik here to view.

Generic Types are prettier than Dictionaries

If you need to pass key-value-pairs to a method you can find many modern implementations prefer to take them as an “object” rather than a dictionary. This allows you to create a anonymous object which...

View Article

Image may be NSFW.
Clik here to view.

Do not fix code duplication – solve it

When you find two identical or near-identical pieces of code in your codebase this is identified as code duplication. There are many resources to learn why code duplication is an issue. When you find...

View Article


Image may be NSFW.
Clik here to view.

No more copy & paste in my IDE

This is day one of my new trial. I have removed the key shortcuts for copy & paste from Visual Studio. I have seen too much of code duplication, some of it bears my very own signature. More often...

View Article


Image may be NSFW.
Clik here to view.

Polymorph Razor Views

As an object-orientation-spoiled programmer, when you come to use an HTML rendering engine such as Razor you will soon start to wish for the same couple of design advantages that object orientation...

View Article

Image may be NSFW.
Clik here to view.

New Feature Request: [Rotten] attribute

This is an inoffical new feature request – I am floating between sarkasm and really considering to implement this. Here it is, I proudly present: The [Rotten] attribute* * Other candidate names are:...

View Article

Image may be NSFW.
Clik here to view.

Closures leading to “Type not marked as serializable” exception

Today I faced a SerializationException that refered to some anonymous inner class stating it was not serializable, when IIS tried to store the session in the ASP.NET State Service: Type...

View Article

Image may be NSFW.
Clik here to view.

Drive your Meetings with Google Maps

Google Maps is optimized to find your way from A to B. In your meetings you usually want to achieve the same. That’s why, suprisingly, Google Maps gives you perfect guidance on how to drive your...

View Article

Browsing all 13 articles
Browse latest View live




Latest Images