Failure is not an option :: Feel Alive, Skydive

 

Current Articles | Categories | Search | Syndication

Articles from Programming

Div based columns made simple

 

For a long time me and some co-workers felt the need to use DIV element instead of the good-old TABLE element, since it is so DAMN easy to achieve the desirable results with TABLE elements. On a second note and for a while now we use our own CMS platform thus the need to create full W3C pages that maintain the defined layout whatever content it holds is a constant requirement. So I have been looking for a nice DIV-based alternative for column-based designs easy to implement.

Search content with jQuery in a live fashion

 

Recently I had to enhance the way how content is placed in web pages when using our CMS. A list of content modules is presented to be selected by the user but in some scenarios this list can be huge so a searching/filtering on the client functionality was required. The solution presented is based on word count and ranking and content is filtered in a lively manner as the search input box is changed.

Translate text using Google's Api

 

I've recently implemented for sharpNet a new translation service powered by Google's api. For example purposes I didn't included all the code for the wrapper I've built - only one method used to illustrate how to achieve such functionality.

Protecting Email Addresses Using Response Filters

 

In this article we will see how we can change the email addresses written on a website to images on the fly. The general opinion about this task is to revamp the form where we are asking user to input the email address and then generate an image which will display later instead of email address.

Simple use of SQL Cursors

 

Database Cursors have long been a favourite of mine. It allows you to take a subset of data and output the information in various ways. Here is a simple how-to describing the use of cursors.

sharpNet password strength meter

 

This is a simple password strength meter (Gmail style) using Css and JavaScript that I've built for sharpNet Web Application Framework. The basic idea before developing the script is to allow user to evaluate the strength of the password which he is entering at the time of registration.

SQL Injection Attacks - Parameterized Queries a simple solution

 

These are pretty basic security measures you need to add to all ASP.NET web applications, but nonetheless still worth talking about. This article exposes a simple technique about preventing SQL Injection Attacks attacks and it's based on ASP.NET Security Best Practices.

String Formatting in C#

 

String.Format is just so cool. It makes your code less spaghetti like and makes it easier to replace string values or add new values. It also allows you to see from a quick glance what your code does. It works similarly to the printf function in C++ that takes a string, and then is followed by parameters that specify what to plug into the string. I often need to access this info so I've made this post as a quick reference.

SharpCollect APIs - I. WMI for .Net

 

In this article I'm going to introduce a simple set of classes that can be used to aggregate property values for any of the hundreds of classes in the WMImajor namespace. I've built this for an asset management application for a electricity company which required retrieving WMI information from local and remote computers.