05.18.08
Posted in Debian, Linux, Miscellaneous, windows at 3:53 pm by Hedwig Lodrigo
GIT Version system
Git is a distributed file versioning system. It was initially created by Linus Torvalds. Linus is better known for the creation of linux.
This is some quick guide on getting started with GIT for people with a windows desktop and a linux server.
Download the windows GUI version of git from http://code.google.com/p/msysgit/downloads/list
Install it.
To create a new repository, only needed if you are starting a new project. If you are going to contribute to a existing project skip to the next section
Open a command line. navigate to the place where you want to start a new repository. Create a new directory for the repo.
sample:
md init_repo
cd init_repo
git init
cd ..
git clone –bare init_repo repo.git
Now upload the repo.git directory to your webserver. I do this with winscp, but you can use whatever way you like.
SSH into your server. Install git
example:
apt-get install git-core
To get a existing git repo.
Open a command line.
Navigate to the directory where you want to have the repo.
git clone ssh://username@host.com/path_to_git_repo
I’m using ssh instead of the daemon as I don’t really see an option to password protect the repo.
Permalink
04.01.08
Posted in Linux, Miscellaneous at 12:13 pm by Hedwig Lodrigo
Use this command
find . -name .svn -print0 | xargs -0 rm -rf
You could also use “svn export”…
Permalink
03.31.08
Posted in Miscellaneous, windows at 4:28 pm by Hedwig Lodrigo
You can check the current time on your domain by typing in the following
net time
This gives me: Current time at \\s-dc1.mydomain.local is 3/31/2008 1:56 PM
To setup Time synchroniziation type in:
>net time /SETSNTP:\\s-dc1.mydomain.local
s-dc1.mydomain.local Local should be replaced with the servername where your time service is running. Now to check check what time server your pc uses type:
net time /QUERYSNTP
Voila.
Permalink
Posted in Miscellaneous, windows at 3:38 pm by Hedwig Lodrigo
IIS 6 has by default parent paths disallowed. These settings are required to use relative paths in virtual includes.
Parent paths allow you to use ‘..’ when browsing directories and MapPaths etc enabling files in the parent directory to be used.
To enable parent paths:
• Start the Internet Services Manager (Start - Programs - Administrative Tools - Internet Services Manager)
• Right click on the web site and select properties
• Select the ‘Home Directory’ tab
• Click the ‘Configuration’ button under the Application Settings
• Select the ‘App Options’ tab
• Check the ‘Enable parent paths’ box and click Apply
You don’t need to restart the service for the change to take effect.
Permalink
07.10.07
Posted in Miscellaneous at 4:11 pm by Jonas De Vuyst
Since upgrading to iTunes 7.3, I got the following error when searching iTunes Store for songs: “We could not complete your Music Store request. An unknown error occurred (5002).”
This problem is related to the iTunes shopping cart. To fix, go to edit/preferences/store, activate one-click shopping and press OK. The problem should now be fixed. If you want, you may also now re-enable the shopping cart.
Permalink
06.17.07
Posted in Miscellaneous at 2:52 pm by links
Permalink
Enter your password to view comments
10.14.06
Posted in Linux, Miscellaneous at 9:58 pm by Hedwig Lodrigo
Search (Wraped around at end of file):
Search STRING forward : / STRING.
Search STRING backward: ? STRING.
Repeat search: n
Repeat search in opposite direction: N (SHIFT-n)
Replace: Same as with sed, Replace OLD with NEW:
First occurrence on current line: :s/OLD/NEW
Globally (all) on current line: :s/OLD/NEW/g
Between two lines #,#: :#,#s/OLD/NEW/g
Every occurrence in file: :%s/OLD/NEW/g
Permalink
10.10.06
Posted in Linux, Miscellaneous at 11:14 pm by Hedwig Lodrigo
Getting awstats running with geoip
GeoIp C API
To start you‘ll need to install GeoIP C API. Download it :
wget http://www.maxmind.com/download/geoip/api/c/GeoIP.tar.gz
Next thing is unzipping it and placing the directory where you want it.
I use midnight commander for this so just fire it up and copy it.
Starting midnight commander:
Mc
Go into the directory you just created by unzipping.
Do the following commands:
./configure
make
make check
make install
The GeoIP C API has been installed. Next we install the IP Perl Module.
When this fails and you are on a linux distro(debian taste) you might want to run:
apt-get update
apt-get upgrade
apt-get install gcc
apt-get install make
apt-get install texinfo
apt-get install libc6
apt-get install zlib1g-dev
Download Geo::IP Perl Module, use the command below but recplace THE_LAST_VERSION with the right tar.gz file
wget http://www.maxmind.com/download/geoip/api/perl/THE_LAST_VERSION
Next thing is unzipping it and placing the directory where you want it.
Go into the directory you just created by unzipping.
Now do the following commands. (if you have a problem with the make test see for instruction after the commands)
perl Makefile.PL
make
make test
make install
Only if you had problems
If you get a “libGeoIP.so.1: cannot open shared object No such file or
directory” error, add /usr/local/lib to /etc/ld.so.conf then run
/sbin/ldconfig /etc/ld.so.conf
Awstats
Now you need to go to the config file of your website and alter the Plugin: GeoIP part.
Change /pathto/GeoIP.dat to where this database acctually is. You can quicly find it by
Doing a locate. Well quickly you’ll have to do a locate –u first of course which will take some time.
locate –u
locate GeoIP.dat
On my system it returns:
/usr/local/share/GeoIP/GeoIP.dat
Now I replace # LoadPlugin=”geoip GEOIP_STANDARD /pathto/GeoIP.dat”
By
LoadPlugin=”geoip GEOIP_STANDARD /usr/local/share/GeoIP/GeoIP.dat”
This is the section where to do it
# Plugin: GeoIP
# Perl modules required: Geo::IP or Geo::IP::PurePerl (from Maxmind)
# Country chart is built from an Internet IP-Country database.
# This plugin is useless for intranet only log files.
# Note: You must choose between using this plugin (need Perl Geo::IP module
# from Maxmind, database more up to date) or the GeoIPfree plugin (need
# Perl Geo::IPfree module, database less up to date).
# This plugin reduces AWStats speed of 8% !
#
#LoadPlugin=”geoip GEOIP_STANDARD /pathto/GeoIP.dat”
Also make sure that DNSLookup look up is turned off.
DNSLookup=0
Congratulations you have now a awstats with a working geoip module.
Permalink
08.27.06
Posted in Miscellaneous at 8:02 pm by Jonas De Vuyst
GTalk, Google’s instant messaging client, uses the Jabber network protocol (also known as XMPP). Now although GTalk doesn’t expose it in its user interface, Jabber has a concept of transports that let you communicate with users on non-Jabber instant messaging networks. Using the small trick detailed below, it is possible to get these transports working in GTalk.
Adding Transports to your GTalk Account
First you need to set up GTalk to acknowledge other, non-Jabber/XMPP instant messaging networks. As this is not possible using the official GTalk client, you will need to install a more featureful Jabber client program. Pick any client that will work on your platform. For a list of Jabber clients and instructions on how to log into GTalk, see this page. (A comprehensive list of Jabber clients can be found here, but doesn’t come with instructions specific to GTalk.) Once installed you will need to start the program and log in to your GTalk account. After having logged in, only two more steps for registering a transport remain:
- Find a public Jabber/XMPP transport for the network you want to connect to. Try googling for it or use the popular jabber.anywise.com;
- Add this transport to your GTalk account.
Once you have decided on a transport to use, you’ll need to bring up your Jabber client’s Service Discovery dialog. If you don’t know where it is, look around in the menus a bit. In the Service Discovery dialog enter the name of the Jabber server that has the transport you need.

Next register the transport you need. You should be prompted for your username and password. You will need to enter a username and password for the instant messaging network you want to connect to. I.e., if you wish to install an MSN transport, you will need to enter the username and password you normally use to connect to MSN. If you don’t have an account yet, create one now using the standard procedure for the instant messaging network you want to connect to (if you need an account for MSN, check passport.net).

Once you have registered your transport, subscription requests may pop up for the people on your MSN/ICQ/AIM/Yahoo contact list. Approve these.

Adding MSN/ICQ/AIM/Yahoo Buddies to your GTalk Contact List
Once you have registered a relevant transport, you can add users from other instant messaging networks to your contact list. One way to go about that is to add them via the Jabber client that you installed. This client should allow you to select the transport or protocol through which the user can be reached.

Alternatively you can add a friend to your contact list from GTalk (even using the web based GTalk in GMail). To do this add “username@transport” to your contact list, where username is the name of the user on whatever network he is using, and where transport is the name of the transport to contact him through. For instance, if you’re using the jabber.anywise.com MSN transport, you’ll want to enter “msn.jabber.anywise.com” for transport. To find out the name of a transport, look at other users on your contact list that use the same instant messaging network. The part of after the “@” in their GTalk username, is the name of the transport. If you don’t have any such people on your contact list, you might also look for the transport name in your contact list, although it might be burried beneath a Show All link (this is the case in the web based GTalk as of August 2006). Sometimes it will also be necessary to mangle usernames a bit when adding them. Thus it may happen that to add MSN user “jdv@foobar.be”, you have to tell GTalk to add “jdv%foobar.be@msn.jabber.anywise.com”. Take a peak at the other users’ GTalk usernames for finding your way around such obstacles.
Permalink