You may already find out that there is some mighty process in your task manager called TSVNCache.exe. This process is running in background to allow you see correct icon overlays of your working copy folders and files. It checks for file changes and caches their status in real time. It is necessary process because otherwise you won’t be able to see status recursively. Instead of getting status when you access the folders, it loads the status from this cache.
The problem here is that the process scans all file changes, so it may produce a lot of disk usage when you make a lot of file operations even outside of your working copies.
However in TortoiseSVN settings you can specify which folders you want to scan and which not. In the screen below I forced TortoiseSVN to scan only the two folders specified in the Include paths. Other folders won’t be scanned because disk C: is specified in the Exclude paths.
Fixing problem with ID3 tags on Windows 7 and Windows Media Player
Some of my music files in Windows Media Player did not show information about album, artist etc. I had them all in one section called Unknown album. I also found out that there are no meta tags displayed in the album’s folder.
To fix this I installed ID3-TagIT which was proposed on some forum.
After you install it. Open it and select a folder with corrupt files. then select all of the files which will appear. In the menu choose Extended Functions > Transfer/Convert TAGs or simply pres F7 key. In the dialog click on Convert TAG Ver. 2.4 to Ver. 2.3 and press OK. Finally save the changes. Missing information should appear in the music folder and tags should be OK also in the Windows Media Player.
Running UltraVNC repeater under Linux server
I am playing with remote support tools. There are a lot of good payed tools like TeamViewer, GoToMeeting and others but they are expensive. I found that UltraVNC has some tools like Single Click which can make it easy to provide remote support to your customers. Finally I ended by ChunkVNC which is basically UltraVNC but looking much more better.
There is a lot of tutorials on the Internet but they describe direct connection support. Which means at least one of the PC’s has to be accessible from the outside world. But I wanted to setup some server which I would connect to instead of connecting directly to customer’s PC. This server is called Repeater. UltraVNC has a repeater targeting Windows platform. But I have a Linux server and I wanted it to be running there. Fortunately a Linux port of the UltraVNC Repeater is also available. I have created a mirror of the latest version in case the original page won’t work.
The installation itself is not a big problem even though you have to compile the sources.
- Connect to the server using SSH
- Go to temp: cd /tmp/
- Download the sources: wget http://downloads.stefko.cz/uvncrepeater.tar.gz
- Extract them: tar zxvf uvncrepeater.tar.gz
- Go to the sources directory: cd uvncrepeater/
- Compile the sources: make
- Copy repeater to sbin: cp repeater /usr/sbin/repeater
- Run it: /usr/sbin/repeater
If you want to make it running as a service you can use the following piece of code:
#! /bin/sh
# vnc: start/stop/restart the VNC repeater server
# chkconfig: 3 20 80
# description: VNC repeater server
vnc_start() {
if [ ! -f /etc/uvncrepeater.ini ]; then
echo "File /etc/uvncrepeater.ini does not exist. Aborting."
exit
fi
/usr/sbin/repeater 2>>/var/log/vnc.log &
pgrep repeater >/var/run/vnc.pid
}
vnc_stop() {
killall repeater
rm /var/run/vnc.pid
}
vnc_restart() {
if [ -r /var/run/vnc.pid ]; then
kill `cat /var/run/vnc.pid`
else
echo "Killing repeater in the absence of /var/run/vnc.pid"
killall repeater
fi
sleep 1
vnc_start
}
case "$1" in
'start')
vnc_start
;;
'stop')
vnc_stop
;;
'restart')
vnc_restart
;;
*)
echo "usage $0 start|stop|restart"
esac
Take the code and save it into /etc/init.d/vnc file on the server. Then run the following commands to install it as a service:
- chmod +x /etc/init.d/vnc
- chkconfig –add vnc
- chkconfig –level 3 vnc on
iTunes music over internet
I have been playing with my Maxtor Shared Storage II drive recently. It is an external disk which can be shared over Ethernet without having some PC running. This drive can also be used as a media server allowing music players play music directly from it. It’s good because you can have one place for your music for whole family.
Maxtor is running a server which uses DAAP (Digital Audio Access Protocol). This protocol was first introduced by Apple.
What I wanted to do was access my home music also at work. The problem is that new versions of iTunes does not support DAAP over internet, just inside local networks. So I was looking for some alternative players and found those two, which allowed me to do that:
reCAPTCHA in Czech
If you are interested in displaying reCAPTCHA on web sites in Czech language, you can use the following code. I have created a translation for that.
Connection problem when stunnel is run on boot time in Ubuntu
If you are using stunnel in client mode you may experience connection problems when connecting to your stunnel services.
To avoid these problems make the following changes in your stunnel.conf file:
- Comment out the following line: chroot = /var/lib/stunnel4/
- Update pid file location with this: pid = /var/lib/stunnel4/stunnel4.pid
- Add delay = yes into the service configuration
In this case DNS lookup will be done when the service is needed for the first time.
Quick steps to configure stunnel4 for client mode
It is really simple to add POP3 SSL support to your existing e-mail client which does not support it, or whatever SSL support you want using stunnel. I just cannot remember all the steps to set up clean system. So I have created this small guide which will help me in future and may be will help somebody else too.
- Install stunnel if you don’t have it installed already: sudo apt-get install stunnel
- Allow stunnel to autostart by editing stunnel defaults file: sudo gedit /etc/default/stunnel4
- Finally perform the following task on the /etc/stunnel/stunnel.conf file:
- Comment the following line, so that we want have to generate certificate, because we don’t need it in client mode: ;cert = /etc/ssl/certs/stunnel.pem
- Change sslVersion to all if you need support for all SSL types
- Uncomment the following line: client = yes
- Add definition for client vs. server ports. In my case I was redirecting to FastMail:
[pop3]
accept = 1109
connect = mail.messagingengine.com:995
Setting correct encoding for gedit
In my case I needed gedit to use CP1250 encoding. To set this encoding you have to start gconf-editor on the following path:
/apps/gedit-2/preferences/encodings/auto_detected
and add the following value as an identification for new encoding:
WINDOWS-1250
Make suspend to RAM working on Joli OS
I am trying to find operating system which best suits to my Lenovo S10-3 netbook. It comes preinstalled with Windows Starter which is a lil bit unusable for the purpose netbooks has been created for. The lack of ability to logoff currently logged user when two or more people are using it is very frustrating. I don’t won’t to spend money by upgrading Windows to “better” edition, so I am looking for some Linux distribution which will just work and look nice.
So far I have tried Ubuntu and OpenSUSE with KDE or Gnome. But on both there were some missing functionality like non working fn keys or problem to restore netbook from suspend when netbook is closed and then opened again.
These days I have installed Joli OS version 1.2 which has been created especially for netbooks. It is based on Ubuntu Netbook Remix edition, but looks much more pretty. But still it has problems with suspend. Fortunately on the kernel version which is used by Joli OS it can be easily fixed by using additional boot option.
Press Alt+F1 and write down the following into the terminal
sudo gedit /etc/default/grub
Locate line with the following or similar text:
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
and change it to this:
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash intel_idle.max_cstate=0″
Finally run the following command and restart the computer:
sudo update-grub
Remove application from the Open With list in GNOME
After installing Windows Media Player under Wine, I got a lot of Windows Media Player file associations in GNOME. If you don’t want Windows Media Player to appear in the Open With Other Application… list just remove appropriate .desktop files in the ~/.local/share/applications location.