Solid Hosting // Blog

This is not intended to be a typical company blog. Surely, we may occasionally post some materials related to our web hosting services;
but most of all, we'll try to turn this into a helpful online resource, covering various topics in different areas of IT.
Featured Articles

Migrating Team Foundation Server to another database

Originally, we installed TFS in an SQL Express database, to test it out. Please note that we only wanted Source Control, Workitem Tracking and Build services, so we went for the Basic Wizard setup. Then we decided to move TFS to an MS SQL 2008 server, so we could plan our maintenance and automate all backups. The process of moving Team Foundation Server (TFS) to another database is rather simple, but it comes with its own caveats. Here is how to do that in several easy steps:   1. Detach the available collections start the TFS Administration Console expand the...

Starting a process in any given Windows Terminal Session via C# and P/Invoke

(All code, presented here, is available at the end of the article as a ZIP file for download. As such, some definitions and declarations might be omitted, for brevity. This is why references to P/Invoke are NOT made, as all the definitions are already inserted in the code) An interesting problem came up one day, namely spawning a process in another user’s process space, and more specifically – his/her Terminal Session. Since we have one default active station and a desktop in a single session, the process would have been rather straightforward, if it weren’t for the .NET and P/Invoke...
Latest entries

CPanel tips and tricks

Since CPanel’s documentation is “perfect” and covers everything, I decided to post some tips and tricks here. Javascript: CPANEL.utils.toggle_more_less – function(toggle_el, text_el, state): toggle_el: couldn’t decipher at a glance what this is for, I use this, as per some CPanel pages’ code text_el: the id of the DIV to toggle state: either “more” – to...

Set file/folder permissions during an MSI installation in C#

Problem: a Windows Service is designed to run under the Local Service account with minimum privileges on the local computer. Suppose, however, that the service needs to write logs/what have you locally, so we must create a folder for it to write to (usually in its Application/installation folder), and set the appropriate permissions to it....

How to customize Opencart’s search

The default OpenCart search is rather simple and can only search in the products’ names and descriptions. This limits the user in finding the desired product, which is a bad thing trade-wise. And this is where this article will come in handy, since there is nothing on the internet that even comes close to a...

How to configure csf/lfd to work in a cluster

Having csf/lfd in a cluster greatly simplifies its administration, and possibly the load of the server, since any hackers, spammers and DOS-ers out there are automatically blocked on all participating servers. I am assuming the following simple configuration – two servers with, say, these IPs 10.0.0.1 and 192.168.1.1, respectively and both have csf/lfd installed. Follow...

Backing up/restoring csf/lfd configuration

This article will show you how to back up and restore the configuration of csf/lfd. The task is rather simple, since all one needs to do is copy the configuration files from the /etc/csf folder to the archive location, or vice versa. The files are all located in the /etc/csf folder, as already mentioned, and...

A simple way to update a Windows service (C#)

In a recent project of ours, the problem how to update a C# windows service arose.  We came up with a pretty simple way of doing it all. Here is how: There are three issues to tackle here: How to check whether a new version is available. How to download the new version How to install...

How to change an ASP Membership user’s password without knowing the old one

A project of ours required a user management interface to be implemented on top of the Membership framework, which required that the user in an “admin” role be able to change any user’s password to a new one (typed in by the admin). The ASP Membership framework offers the handy MembershipUser.ChangePassword(String, String) function – http://msdn.microsoft.com/en-us/library/9d5bh3ec.aspx...

How to cancel a postback/form submission via javascript

Sometimes one wishes to have a javascript, attached to a button/link/what have you, on a page that will, in some cases, cancel the postback/form submission. All one needs to do is simply set the control onClick (or OnClientClick, in the case of ASP.NET) to return SomeFunction(); and then return true or false in the function,...