Archive for the ‘Code’ Category

Data Types in C#

Sunday, January 10th, 2010

C# is a language in which every variable and object should have a declared type.In this article we are going to discuss about datatypes in C#. Many dataypes in C# are from C and C++.

There are different ways of defining data types in C# let us see each of them in brief:-
(more…)

Create a restricted area on your website

Thursday, September 4th, 2008

If your website is running on an Apache server, its very easy to restrict access to a folder to only yourself or a select few people. This is very useful if parts of your site are not yet fully operational, or if you want to run a small “beta”. (more…)

How to ban people from your site by IP address

Thursday, September 4th, 2008

I found this neat trick the other day… If you notice someone is trying to hack your website, or just would rather a certain individual not stop by anymore, its very easy to ban the offender if you’re using Apache as your webserver. (more…)

A chat with a professional developer

Sunday, January 13th, 2008

Recently I sat down and chatted with Ben Johnson, a developer friend of mine, about the workflows we have as developers. It was a very interesting chat, and he graciously agreed to let me post it here.

(more…)

New updates to iswapyou.com

Tuesday, December 11th, 2007

Theres been a lot of new functional changes made to iswapyou in the last two weeks. Summary is listed below.

(more…)

How to add Google Adsense to your WordPress blog posts

Sunday, December 2nd, 2007

Theres a few ways to add Google Adsense to your WordPress blog posts. One of the easiest ways is to simply switch to the “Code” tab when writing a post, and then post your adsense code from Google Adsense. See the images below for if you’re not sure where either of these is.

(more…)

Why should my site use a database? Dynamic Data for Web 2.0

Saturday, December 1st, 2007

Databases run just about everything on the web, from ebay to the latest social networking site. Any site that generates a lot of content and updates on a daily, weekly, or monthly basis should use some sort of online database. There is a reason that most blogs use either a “flat file” database (i.e. MoveableType), or a commercial or open source database application (i.e. WordPress – which this blog uses). Databases store your data so you can output and shape it based on the function that your sites user wishes to perform. This is the meaning of “dynamic data”, the benefits of which i will describe below.

(more…)

How to make your wordpress banner navigate to your blogs homepage

Thursday, November 29th, 2007

The default wordpress template leaves much to be desired in the way of user navigation. For instance, when you navigate from the index of a blog to an article, you have no easy way to get back to the homepage! To fix this, I decided to make my banner navigate to my homepage – a very easy mod that took ~5 minutes worth of template editing.

(more…)

Create the next Youtube clone

Monday, August 20th, 2007

Howtoforge.com posted a great article yesterday on creating a Youtube-like streaming video site using Debian linux running lighttpd as the web server and FlowPlayer to play the flash-encoded videos…

(more…)

Finally – updates to iswapyou.com!!

Thursday, August 9th, 2007

I completed a lot of updates that were in the works on iswapyou.com today. The site search was updated to make it easier to use – instead of having multiple options on it, it now searches and gives results for everything. I changed it on the advice of a few usability experts.

(more…)