Monthly Archives: November 2010

Subversion + Lighttpd + Apache

 
 
yum install  -y subversion mod_dav_svn
 
 
groupadd svn
useradd svn
 
mkdir -pm700 /var/svn/projects
svnadmin create /var/svn/projects/test
chown -R svn:svn /var/svn/projects
 
mkdir -p /var/www/projects.example.com/httpdocs

edit httpd.conf

 
 
 
Listen 8080
 
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

Change the user and Group from apache:apache to svn:svn

 
 
 
User svn
Group svn

Add a virtual host.

152713183b2b1a4a600a530796bf1f2a004

Hide UI Keyboard, back to basics

in ViewDidLoad set the UITextfield delegate to self, and assign to the firstresponder like this

- (void)viewDidLoad {
	[textfield setDelegate:self];
	[textfield becomeFirstResponder];
}
- (BOOL)textFieldShouldReturn:(UITextField *)textfield
{
	[textfield resignFirstResponder];
 
}

iPad – How much memory can I use?

iPad

iPad

The iPad is shipped with 256mb of RAM, so we thought that programming for the iPad would allow more memory consumption than the iPhone 3G which had a paltry 32mb.

iPhone iPad

Code snippets coming soon.

UnixBenchmark 5.1.2 a study measuring performance across different spec VPS’s

Linode

Linode

The idea was pretty simple. See how my VPS benchmarked using the unixbench script.

Then I took the idea further by upgrading my VPS to different sizes to see how performance tracked against different classes of VPS.

YUM tricks of the trade

# make yum update all programs every night

chkconfig yum on

# make yum install program and answer YES to all queries.

yum -y install

How to setup your first VPS – linode – PART 2

So we’ve setup our server, it is up to date, and root login has been disabled. Now to setup our webserver:

152713183b2b1a4a600a530796bf1f2a021

How to setup your first VPS – linode – PART 1

linode

linode

For this example, we’ll be setting up a VPS with with awesome folks at Linode lets begin! Once we are past the account setup stuff, this guide will help you setup a VPS with any provider.