Archive for June, 2012

Tortoise SVN – High IO

Posted in Technical on June 27th, 2012 by iyoung – Be the first to comment

Tortoise subversion control can sometimes get a bit carried away with it’s caching, so change the folowing to calm it down.

  • Open the settings, click “Icon Overlays”
  • In the exclude paths type C:\*
  • In the include paths type the path to your code workspace

That is all, then kill the Tortoise SVN cache process, when it restarts it will be less crazed.


JQuery Date Picker Z-Index

Posted in Technical on June 25th, 2012 by iyoung – Be the first to comment

Just a quick little geeky post in case it helps someone. I spent quite a few minutes if not an hour this morning trying to figure out why some J-Query calendars I was using were appearing under some of the other form elements. Apparently the default Z-Index of the calendar’s parent DIV boxes are set to -10.

I know the maximum z-index of the elements on my page so I was able to increase the Z-index in the CSS for the calendars, but one thing that vexed me was the !important keyword. Apparently if you don’t use it it is just ignored.

Here’s an example you could use to make the standard JQuery Date Picker calendars look more acceptable: -

#ui-datepicker-div
{
    font-size: 62.5%;
    width: 17em; 
    padding: .2em .2em 0; 
    z-index:20 !important;
}

Open Office 3.x

Posted in Technical on June 18th, 2012 by iyoung – Be the first to comment

If you have a problem loading Open Office after performing an update or installing after following http://www.openoffice.org/download/common/instructions.html move the user profile from ~/.openoffice.org to another name and then try re-loading. This worked for me after upgrading to 3.4 my copy was freezing on the splash screen in RHEL 6.


Corporate VPN – CentOS – RHEL

Posted in Technical on June 6th, 2012 by iyoung – Be the first to comment

If you want to connect to your corporations VPN and they have given you a PCF file, which is usually used to connect using Cisco’s VPN client, you can convert it for use on Linux without needing to install the Cisco client.

I use “vpnc” I followed the following steps in order to convert the PCF files I was given into conf files which can be used with vpnc.

yum install vpnc
yum install libgpg-error-devel
yum install libgcrypt-devel
yum install gcc

wget http://svn.unix-ag.uni-kl.de/vpnc/trunk/pcf2vpnc
wget http://www.unix-ag.uni-kl.de/~massar/soft/cisco-decrypt.c

chmod u+x pcf2vpnc
gcc -Wall -o cisco-decrypt cisco-decrypt.c $(libgcrypt-config --libs --cflags)

mv cisco-decrypt /usr/local/bin
mv pcf2vpnc /usr/local/bin/

Once you have completed these steps, move to the directory where you have downloaded your PCF file and execute the following.

pcf2vpnc mycompany.pcf > mycompany.conf

Then copy the new conf file into /etc/vpnc/ and remember what you called it.

It’s likely you will need to open the conf file and change your username which will be a line beginning with Xauth username.

When you are ready you can run the following to launch the VPN connection

vpnc --dpd-idle 0 mycompany

Note the network to connect to is denoted by the name of the conf file. The –dpd-idle 0 directive ensures that the client doesn’t auto disconnect after x minutes of inactivity (which it seems to incorrectly detect). When you are finished run the following to disconnect.

vpnc-disconnect

Cron – Emails

Posted in Technical on June 6th, 2012 by iyoung – Be the first to comment

A rather short and nerdy posting, but if you have a Linux server and you have a number of tasks scheduled to run using Crond and you want to send error emails to one or more email addresses you can edit: -

/etc/aliases
/etc/email/aliases

If you ensure that you cron all the processes to run under a particular user, then you can add your email address to the user and / or numerous other email addresses for example: -

workflow: this.user@monkeyfaced.com