Browse by Tags

All Tags » C#

Using derivated Exception classes for better error handling

One defect that I’ve been finding once and again in the past doing .NET projects is a bad exception handling strategy. Too many times I’ve seen code that just places a generic try { … } catch(Exception ex) { … } code block to capture errors. And of course...
Posted by Kartones | 4 comment(s)

Obtaining Gravatar images

Gravatar is a website that, after registering and adding an email, allows you to set an avatar (image) associated to that email, so that sites that query them for gravatar images will return your same image to all of them. Although Community Server doesn...
Posted by Kartones | with no comments
Filed under: , , ,

Avoiding the break statement

Some coding guidelines and best practices advice against the use of continue and break statements. With continue the solution is easy, placing an if (or if it existed to call continue , negate it to execute the code). But with break , it is not always...
Posted by Kartones | 5 comment(s)

Working with PHP, six months later

Now that I’m back from a small vacations, time to get back to blogging too! A bit more than six months ago, I changed once again where I work , but this time it was not only a new company, but a new world, with PHP as the flagship. Six months later, I...

Kartones.Net CS2007 Addon Pack 1.3.2: Lightweight + Visual Tags

In my last release of this Community Server 2007 pack I added a lightweight list of all posts, but it wasn’t the only optimization I had in mind to do small speed increases on blog page loads. Two new controls I’ve just finished are a readonly tag list...

Introducing KartonesNet.APIs.GoogleAnalyticsAPI

This weekend, in my spare time, I’ve finally achieved one thing I wanted since some time: Fully automating the Site Stats of Kartones.Net . Previously, I had to manually update the page with the current data each month, plus exporting some Google Analytics...

KartonesNet CS2007 Addon Pack 1.2.1

I’ve just updated my Community Server 2007 addon pack to add support for Slideshare presentations. The name of the component has changed to from GDocsSlideshowAddon to SlideshowsAddon so remember to update your CommunityServer.config file reflecting the...
Posted by Kartones | with no comments

Kartones.Net: Implemented a Server-side CAPTCHA for Community Server 2007

After getting tired of still getting spam (having Brendan Tompkins CAPTCHA installed), I decided to dig into the problem, and found the big FAIL: The captcha is client-side only, relying on a Javascript validation of a cookie for sending or not the comments...

Community Server 2007: Building a Visits counter control

Since not much after I launched Kartones.Net I added an ASP.NET user control to make the typical visits counter for all bloggers that wanted it (including me :P). Apart from having no code-behind, it had the SQL access inside (using a stored procedure...
Posted by Kartones | with no comments

Arrays in PHP, or to be precise, Collections in PHP

PHP has some serious structural problems. It’s code is a mess of functions, function names are too similar to the old C functions (“ strstr ”, “ strlen ”, etcetera), but by far, the most confusing element of PHP (at first) are its Arrays . For any developer...
Posted by Kartones | 1 comment(s)
More Posts Next page »