CodeIgniter 1.6.3 TextMate / E-TextEditor Bundle

Sunday July 6thCodeIgniter Category

Well those guys at Ellis Labs EllisLab are really cranking out the versions of CodeIgniter, two versions in the space of about six weeks that amazing. Their decision to have ExpressionEngine running of the CodeIgniter code base is really benefiting the development cycle which seems like it’s screaming along at full pace, nice work guys!!.

I’ve updated the the new functions and also corrected a few oversights, I’ve also removed the old style active record from the menu (ciar +  tab) the function calls are still the same they’re just hidden.  I’ve also updated all active record method names to use the new naming convention as a couple had slipped through the net. The major changes are listed below:

DBForge Library (cidbf):

  • Added create_table
  • Added drop_table
  • Added rename_table

Input Library (ciinput):

  • Added get_post
  • Added get
  • Modified post to set XSS filtering param

ActiveRecord Library (ciar & ciar*):

  • Removed old active record library from menu (ciar still works but is now hidden)
  • All depreciated functions now use new function names
  • Fixed get, get_where snippets
  • Added start_cache (ciar & ciarc)
  • Added stop_cache (ciar & ciarc)
  • Added flush_cache (ciar & ciarc)

And thats about it, the download is on the usual page. If you want to be informed of any new updates drop me an email at luci3n[at]sellersrank.com and I’ll notify you when I release.  E-TextEditor users the download is normally added a few days later because I don’t have windows and if anyone is looking to be a test user I’ll happily send you a copy before I put it on the download list.

Download Textmate / E-TextEditor CodeIgniter Bundle

CodeIgniter Textmate Bundle 1.6.1 Update

Saturday May 3rdCodeIgniter Category

As CodeIgniter 1.6.1 is released I thought is was a good time to update the Textmate bundle and release it ready to keep it inline with the latest release.I’ve been adding the extra funtionality as it was added to the framework and would appreciate any feedback from users.  The main difference between this version and the previous are the major changes to the database function especially the active record which has so many functions it is now practically useless to type ciar and tab and easily get the function you want so I left the old funtionality and added the earlier method of ciar and the ciarw lists all the functions.  This makes it easier to quickly locate the desired funtion.

textmate screen capture

I’ve also created a version which can be imported into E-TextEditor for windows users after a number of requests which can both be found on the download page.

Please leave you feedback in the comments or alternatively you can contact me at luci3n (at) sellersrank.com.

Apache Subversion SSL & Virtual Hosts on Ubuntu

Friday September 28thUbuntu Category

Subversion - Version Control System
Configuring Subversion and Apache on Ubuntu for virtual hosts with (SSL) Secure Socket Layer is fairly straight forward but if you’ve installed Apache 2 with synaptic you will find that some of the tools have different names or are completely missing, here I will walk through each step of the installation and configuration of each part explaining what does what and the various options that you can put in place to limit access. This way we will have access to the subversion repository at https://svn.domain.com.

Once you have followed the tutorial I would recommend using RapidSvn and Meld or KDiff as they are two of the tool I regularly use with my repositories. RapidSvn is a GUI subversion tools so you can commit etc. It doesn’t have a visual diff tool which is unfortunate but Meld is the best visual tool I have found for Gnome, these in the Ubuntu repositories or if you are using Kbuntu you can use KDiff, you can install these two tools easily using synaptic or apt-get.In this tutorial we will cover installing Apache2, Subversion and configuring the SSL creation of the required certificate using the apache tools and the configuration of the Virtual Host so you can access the repository via a subdomain. Finally we will set the access so you can controll who will have acces to your repositories.With 11 steps you will have a subversion respository up an running with SSL and Virtual hosts and each step explains what is happening so you can easily understand the full process

1. Install Apache
In the terminal type:


sudo apt-get install apache2 apache2.2-common apache2-utils

		

This installs the apache 2 server common modules and utilities

2. Install Subversion
In the terminal type:


sudo apt-get install subversion subversion-tools

		

3. Install Apache Subversion Modules
In the terminal :


sudo apt-get install libapache2-svn

		

4. Restart Apache
In the terminal type:


sudo apache2ctl restart

		

5. Enable SSL Apache Module
In the terminal type:


sudo a2enmod ssl

		

6. Enable Apache to listen to the correct port for ssl (443)
In the terminal type:


sudo gedit /etc/apache2/ports.conf

		

Add the line: Listen 443

7. Create a certificate for SSL use.
Unfortunately apache is missing the tool (apache2-ssl-certificate) required to create the certificate but this can be easily downloaded from apache2-ssl.tar.gz , download this file and extract the package. There are two files ssleay.cnf and apache2-ssl-certificate. In the terminal navigate to the directory two files have been extracted and type:


sudo mkdir /etc/apache2/sslsudo cp ./ssleany.cnf  /etc/apache2/ssl/sudo cp ./apache2-ssl-certificate /usr/sbin/

		

Now create your certificate with and follow the instructions


sudo apache2-ssl-certificate

		

8. Create a Subversion repository

Here make a directory where you want to store one or more subversion repositories, in this example I’m using /srv/svn/repos/


sudo mkdir  /srv
sudo mkdir  /srv/svn
sudo mkdir  /srv/svn/repos

		

Now make the repository directory accessible to apache (www-data)


chown www-data:www-data /srv/svn/repos

		

Now we will make the first repository using the super user www-data


cd /srv/svn/repos
su -u www-data -s
svnadmin create projectname

We now have our first subversion repository remember when creating other repositories always use the su www-data to ensure apache can access the repository.

9. Creating the virtual host

Create the virtul host file for Apache


sudo cp /etc/apache2/sites-available/default  /etc/apache2/sites-available/svn.domain.comsudo gedit  /etc/apache2/sites-available/svn.domain.com

Copy and paste the following code edit the domain name and repository path if different:


NameVirtualHost *:443
<VirtualHost *:443>
  ServerAdmin yourname@domain.com
  ServerName svn.domain.com
  SSLEngine On
  SSLCertificateFile /etc/apache2/ssl/apache.pem
  SSLProtocol all
  SSLCipherSuite HIGH:MEDIUM
  <Location />
    Order allow,deny
    Allow from all
    DAV svn
    SVNPath /srv/svn/repos/projectname
    AuthType Basic
    AuthName "domain.com Subversion Repository"
    AuthUserFile /etc/apache2/dav_svn.passwd
    Require valid-user
  </Location>
  ErrorLog /var/log/apache2/error.log

  # Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
  LogLevel warn CustomLog /var/log/apache2/access.log combined
</VirtualHost>

If you have many projects that you will be using the repository change


SVNPath /srv/svn/repos/project

to


SVNParentPath /srv/svn/repos

10. Create user(s) to access subversion repository


sudo htpasswd -c /etc/apache2/dav_svn.passwd username

to add more users use -m (the -c creates a new file)


sudo htpasswd -m /etc/apache2/dav_svn.passwd username2

11. Restart Apache and test


sudo /etc/init.d/apache2 restart

Now test your repostory with https://svn.domain.com and enjoy, if I’ve missed steps out please let me know in the comments.

Size

Colors