HTTP (Internet)
Setting up a HTTP Gateway on Ubuntu 10.04
Wednesday, August 11th, 2010An HTTP gateway is one of the ways that one can host multiple sites using only one external IP. The way that it works is that the user requests the page from the gateway and specifies which host was requested. The gateway server then forwards the request to the appropriate web server, which then returns [...]
Setting up a Subversion server using Apache on Ubuntu
Monday, August 9th, 2010Subversion is an excellent open-source solution for keeping track of the different versions while developing software. Here, we will see how to set up a subversion server on an Ubuntu 10.04 LTS Server to provide programmers with the ability to use Subversion.
Prerequisities
Apache 2 should have already been installed and configured with SSL – if not, [...]
ASP.NET GridView All-In-One Quick Reference
Saturday, July 17th, 2010Here is a quick collection of snippets where one can quickly lookup the necessities of setting up a GridView for the purposes of displaying information to the viewer through a database (for example, MySQL):
Adding Columns of Data
DataTable dt = new DataTable("Tablename");
dt.Columns.Add("Column1");
dt.Columns.Add("Column2");
dt.Columns.Add("Column3");
// for every row
DataRow dr = dt.NewRow();
dr["Column1"] = "Testing";
dr["Column2"] = "Blah";
dr["Column3"] = "Big Blah";
dt.Rows.Add(dr);
Binding the [...]
Solving “The name … does not exist in the current context” in ASP.NET
Wednesday, July 7th, 2010A little-known fact is that in ASP.NET is that you cannot have two copies of the same ASP.NET web page in the same folder, or it will attempt to load elements (such as controls) from the (usually) wrong page, and end up confusing itself, resulting in the error “The name … does not exist in [...]
Free and open source XML beautifers to format XML
Saturday, December 26th, 2009XML is a great format for storing data, but an improperly-formatted XML file (e.g. whole file on one line, unusual breaking, improper line wrap, etc) can be just as difficult to read as a binary blob. In order to make “blob” XML readable, here are some tools you can use to format XML so it’s [...]
Windows Live and Bad Behaviour plugin incompatiblity
Monday, November 16th, 2009While the Bad Behaviour plugin is an excellent plugin for blocking annoying comment spam and other stuff, but there is a known incompatibility with the Bad Behaviour plugin with the Windows Live. You can go and read the full article, but here is a quick drill-down of what you need to know:
Bad Behaviour Logs
Basically, the [...]
New e-mail phishing alert – “It’s Easy, Secure and Free!” in big bold letters
Monday, November 2nd, 2009According to a recent news report, some 20,000 e-mail accounts have been hijacked from Internet phishing. This includes major e-mail providers such as Hotmail and Gmail. This results in spam being sent on behalf of the hijacked accounts and creates a major headache for both the hijacked and the non-hijacked caused by both spam and [...]
Disable WordPress conversion of double-dashes in posts
Friday, July 24th, 2009Update (2009-08-16): Updated for WordPress 2.8.3.
If you use WordPress (like this blog and many hundreds and thousands of blogs) for your blogging engine and you attempt to post code or programming related posts, you may find that WordPress will mess up your code. This was pointed out to us by a commenter on the aforementioned [...]
Solving “XAMPP: Couldn’t start MySQL!”
Saturday, May 30th, 2009XAMPP for Linux is a convenient package for installing the AMPP stack (Apache, MySQL, PHP, Perl) of web server software, but it also has its own share of problems. One such error is the generic and uninformative error of “XAMPP: Couldn’t start MySQL!“. This can confuse users because it does not say anything about [...]
Removing WordPress post revisions feature
Friday, March 13th, 2009WordPress 2.6 and above’s new feature of post revisions only slows WordPress down and makes it less usable. So here is how to disable post revisions:
Open wp-config.php in your wordpress installation directory with a text editor.
Add the line “define(‘WP_POST_REVISIONS’, false);” anywhere in the file in a new line after the <?php header.
Save it and upload [...]
