A list of interesting content at this moment in time.
Author: Bojan Bjelić
-

Evolution Of The JavaScript Loop
Doing a bit of testing last week, I have found out that the source code for the Game Of Life JavaScript Implementation is not working with Internet Explorer 7 (IE7).
It turns out that IE7 doesn’t support the
(more…)forEachconstruct, and in while rewriting it, I noticed how the code becomes so much uglier and less readable, which led me to think about the programming language evolution. -

Game Of Life JavaScript Implementation
Recently I have come across my old implementation of Conway’s Game Of Life in JavaScript I have played with a few years ago, had a long look and I didn’t like it.
(more…)
At all. -
Ahau
In close collaboration with the client, a new breed of portal closely integrated with forum was created.
The integration with phpBB was a critical point of development, and the end product fully exploits this.
The content is on German, check it out.
-

Multiple Values For The Same GET or POST Parameter in ASP.NET MVC
There are situations where you need to pass multiple values for the same parameter to the server, here are some patterns.
- Multiple checkboxes to pick the values for the same purpose.
- Select columns to show in the table
- Select post categories
- User can add as much values as he/she likes.
- Add new tag
- Add language
- User can remove multiple items from a list.
- Remove items from shopping cart
This can be handled by passing many values in one parameter with a common delimiter, or by passing multiple values as the same parameter. Here are examples with the GET method, for the POST it works the same.
(more…) - Multiple checkboxes to pick the values for the same purpose.
-

Converting Word Document to HTML
Microsoft Word happens to be the text editing application of choice for many of my clients. And they would like to post the content to web, so I still find myself in a situation where I need to export a Word document to HTML.
There is an option to “Save document as Html” in Word that results in big, convoluted, HTML file full of errors. Also, there is a bit of inline formatting where I would like the format to concur to the website formatting instead.
So, a good result would have no or very little formatting, and as simple as possible markup.
-
Run NUnit for the current VisualStudio project
On a lot of projects, I use NUnit for unit testing, usually I create a separate project that contains only the tests.
There tools that integrate fully with the Visual Studio, like ReSharper or TestDriven.NET, but they cost money and you can’t run them on Express editions.
So I’ve made this useful shortcut to easily run it for the current (test) project. Screenshots are made on Microsoft Visual Studio 2010 Professional running on Windows 7.






