use php5-xcache

if you run ordinary setups for php think about using the xcache opcode cache. it will make your TYPO3 backend and frontend faster.

while this knowledge is wide spread, i´d like to express my feelings about a very responsive t3 backend after giving more meat to the xcache size. put 80Ms there. xcache comes with a nice admin log which shows the cache hits and misses, here are the explanations.

the t3 backend (the newer the better) is lightning fast even on larger installations (hundreds of editors) due to high cache count of necessary php files. uhm, and before i forget: of course the database server must be cool, too — or you will wait for the queries to be finished and thus all the php engine speed would idle around.

connect to a webdav with windows 7

if you try to enable the webdav (web based distributed authoring and versioning) service with a linux server and apache2 it´s a piece of cake. the only thing you need to keep in mind is to make it ssl and auth_digest. this is so that windows clients can connect to the thing. theoretically. after all my unsuccessful attempts with the wizard ( i tried it like a hundred times with all different url formats ) a desperate try with net use made it work!

net use z: \\subdomain.domain.tld@SSL:443\webdavfoldername

will ask for a user and a password to gain access and to mount the webdavfoldername (your webdav alias in apache´s virtualhost conf) to drive letter z:

this is a hell of a lack that windows 7 has, but of course webdav seems to be an anathema to microsoft.

useful addendums to the command above are /persistent:yes and /User:user password and i hope it helps you save worthy hours.

IPv6 addrconf: prefix with wrong length

after i got up my ubuntu server i checked the syslog where the kernel kept griping about the following.

IPv6 addrconf: prefix with wrong length 48

To keep the syslog clean i searched for a way to suppress that message. it´s simple.

In /etc/sysctl.conf i add two lines

net.ipv6.conf.all.accept_ra = 0
net.ipv6.conf.all.autoconf = 0

There you go.

get user ip from behind reverse proxy setup

small problem, wide reach. if your TYPO3 is set up behind a reverse proxy (like pound) and you need the ip connection information of the visitors, T3´s userfunction method comes in handy.

fileadmin/scripts/fwdip.php


<?php
class user_fwdip {
 var $cObj;
 function main($content,$conf){
  $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
  return $ip;
 }
}
?>

This is the file you´d like to ask for the ip from within TYPO3.

To be able to use this file in a userfunc style you´ll need to include the file in TypoScript, i put it into an own TS template on one special page.


page.includeLibs.fwdip = fileadmin/scripts/fwdip.php

You now could put the stuff on the same TS template but i recommend this neat extension to generate the output to one special page in a content element. The extension wraps the TS in a COA.


20 = USER
20 {
 userFunc =user_fwdip->main
}

Now the page you put the element on should show your real ip address, instead of the proxy ip.

Simple, but fully worth a snippet.

how got my ethernet disk interface access back

fancy stuff to do with an lacie ethernet neil poulton disk 500gb item

network space

And i just wanted to reset the admin password of the lacie web interface due to froob-style loss. for those seeking a quick answer for that:

  • turn OFF your ethernet disk (if it’s running now). after the light stopped flashing…
  • turn it ON again for around 2-3 secs and…
  • turn if OFF again and prepare to…
  • turn it ON immediately. Now the blue light is flashing frenzy and you’re about to be able to log into the interface with admin/admin

You see, no need to be a geek to gain access to an ethernet disk standing around ^^

piwik in version 0.5.2 + update script

while waiting for an almost ten gigabytes large piwik database to be updated, i’m just writing down that piwik got a new release yesterday.

upgrading piwik is easy. i pushed all steps to upgrade it on a linux (debian) server in a small shell script you may find useful.

simple update script for piwik

#!/bin/bash
# auto-update piwik
# @author bigbabou <bigbabou@web.de>
#

# where my current piwik resides
installdir=/var/www/

# where the ugly stuff should be made
workingdir=/home/bigbabou/

# used for copying the new piwik source
piwikdir=/home/bigbabou/piwik/*
logfile=updatepiwik.log

# where the new piwik can be downloaded
piwikurl=http://piwik.org/latest.zip

cd ${workingdir}

# check if update is necessary
wget -N -o${logfile} ${piwikurl}

# overwrite silently
unzip -q -o latest.zip

# tidy up old piwik dir
cd ${installdir}

rm -rf core js lang libs misc plugins tests themes tmp
rm index.php piwik.js piwik.php robots.txt README

# safe global.ini before updating
chown root config/global.ini.backup_by_script
chmod 770 config/global.ini.backup_by_script

echo 'copying new files'
cp -r ${piwikdir} .
chown -R www-data *
chgrp -R www-data *
ls --color=auto -lA ${installdir}

# make nightly precaching exectuable
chmod 770 ${installdir}'misc/cron/archive.sh'

# clean up stuff
cd ${workingdir}
rm latest.zip
rm How\ to\ install\ Piwik.html
rm -rf piwik

echo 'piwik update successful. have a nice day!'

## update db on shell
php ${installdir}index.php

echo ' - update script end -'
exit 0

two lines could be added for convenience

chmod 777 ${installdir}tmp/cache
chmod 777 ${installdir}tmp/templates_c

from brasero to gnomebaker

my ubuntu 9.10 held back a suprise for me to release it to me this sunday morning. brasero does not burn dvds anymore. it just gets stuck while ‘getting size’ and stays there in a loop. after almost an hour it had to be canceled. as brasero is a veeery simple burning tool, i’m sure i used all meaningful combinations of options i could set per gui.

Bildschirmfotosince it is weekend and i couldn’t find an appropriate solution for this problem, i installed gnomebaker which seems to do a good job right now. it looks way better than the ultra-simple brasero interface. funny thing is that i got the Brasero error log shown only after starting to burn with gnomebaker – quite odd but hey, now it’s here. and to make this post a bit bigger, and to bloat the internet with some information i don’t know somebody could make use of, and to just have it pasted somewhere… here it is:

Checking session consistency (brasero_burn_check_session_consistency brasero-burn.c:1848)
BraseroBurnURI called brasero_job_get_action
BraseroBurnURI called brasero_job_get_action
BraseroBurnURI called brasero_job_set_output_size_for_current_track
BraseroBurnURI stopping
BraseroBurnURI called brasero_job_get_action
BraseroBurnURI called brasero_job_get_session_output_size
BraseroBurnURI called brasero_job_get_action
BraseroBurnURI called brasero_job_get_current_track
BraseroBurnURI no burn:// URI found
BraseroBurnURI stopping
BraseroLocalTrack called brasero_job_get_action
BraseroLocalTrack called brasero_job_get_action
BraseroLocalTrack called brasero_job_set_output_size_for_current_track
BraseroLocalTrack stopping
BraseroLocalTrack called brasero_job_get_action
BraseroLocalTrack called brasero_job_get_session_output_size
BraseroLocalTrack called brasero_job_get_action
BraseroLocalTrack called brasero_job_get_current_track
BraseroLocalTrack no remote URIs
BraseroLocalTrack stopping
BraseroGrowisofs called brasero_job_get_action
BraseroGrowisofs getting varg
BraseroGrowisofs called brasero_job_get_action
BraseroGrowisofs called brasero_job_get_current_track
BraseroGrowisofs called brasero_job_get_flags
BraseroGrowisofs called brasero_job_get_speed
BraseroGrowisofs called brasero_job_get_device
BraseroGrowisofs called brasero_job_get_action
BraseroGrowisofs called brasero_job_get_session_output_size
BraseroGrowisofs called brasero_job_get_current_track
BraseroGrowisofs called brasero_job_get_fd_in
BraseroGrowisofs Using genisoimage
BraseroGrowisofs called brasero_job_get_current_track
BraseroGrowisofs called brasero_job_get_tmp_dir
BraseroGrowisofs called brasero_job_get_action
BraseroGrowisofs called brasero_job_set_current_action
BraseroGrowisofs got varg:
growisofs
-use-the-force-luke=notray
-use-the-force-luke=4gms
-dvd-compat
-speed=4
-use-the-force-luke=tty
-Z
/dev/sr0
-dry-run
-r
-J
-input-charset
utf8
-graft-points
-path-list
/tmp/brasero_tmp_6OU33U
-exclude-list
/tmp/brasero_tmp_S2T33U
-print-size
BraseroGrowisofs Launching command
BraseroGrowisofs called brasero_job_get_fd_out
BraseroGrowisofs stdout: Executing ‘genisoimage -r -J -input-charset utf8 -graft-points -path-list /tmp/brasero_tmp_6OU33U -exclude-list /tmp/brasero_tmp_S2T33U -print-size | builtin_dd of=/dev/sr0 obs=32k seek=0′
BraseroGrowisofs called brasero_job_set_dangerous
BraseroGrowisofs stderr: Total extents scheduled to be written = 2285751
BraseroGrowisofs called brasero_job_get_action
BraseroGrowisofs called brasero_job_set_output_size_for_current_track
BraseroGrowisofs Finished successfully session
BraseroGrowisofs stopping
BraseroGrowisofs got killed
BraseroGrowisofs called brasero_job_get_action
BraseroGrowisofs getting varg
BraseroGrowisofs called brasero_job_get_action
BraseroGrowisofs called brasero_job_get_flags
BraseroGrowisofs called brasero_job_get_speed
BraseroGrowisofs called brasero_job_get_device
BraseroGrowisofs called brasero_job_get_action
BraseroGrowisofs called brasero_job_get_session_output_size
BraseroGrowisofs called brasero_job_get_current_track
BraseroGrowisofs called brasero_job_get_fd_in
BraseroGrowisofs Using genisoimage
BraseroGrowisofs called brasero_job_get_current_track
BraseroGrowisofs called brasero_job_get_tmp_dir
BraseroGrowisofs called brasero_job_get_action
BraseroGrowisofs called brasero_job_get_data_label
BraseroGrowisofs called brasero_job_set_current_action
BraseroGrowisofs got varg:
growisofs
-use-the-force-luke=notray
-use-the-force-luke=4gms
-dvd-compat
-speed=4
-use-the-force-luke=tracksize:2285751
-use-the-force-luke=tty
-Z
/dev/sr0
-r
-J
-input-charset
utf8
-graft-points
-path-list
/tmp/brasero_tmp_AUQ23U
-exclude-list
/tmp/brasero_tmp_2PQ23U
-V
Data-CD/DVD (29 Nov 09)
-A
Brasero-2.28.2
-sysid
LINUX
-v
BraseroGrowisofs Launching command
BraseroGrowisofs called brasero_job_get_fd_out
BraseroGrowisofs stderr: :-( /dev/sr0: failed to grab associated sg device
BraseroGrowisofs stdout: HUP
BraseroGrowisofs stderr: HUP
BraseroGrowisofs process finished with status 144
BraseroGrowisofs called brasero_job_error
BraseroGrowisofs finished with an error
BraseroGrowisofs asked to stop because of an error
error        = 0
message    = “no message”
BraseroGrowisofs stopping
BraseroGrowisofs got killed
Session error : unknown (brasero_burn_record brasero-burn.c:2811)

Even though i switched to gnomebaker, i’m still interested what the problem is and how it can be solved. is it just the wrong type of media i’m using? For now, i’m off for the sunday… waiting for a patch :-)

UT3 for Linux?

after upgrading my pc hardware and adjusting my system to ubuntu 9.10 i remembered the good programming style of ut2004 which runs unter linux like a charme. when i bought ut3 i didn’t like playing it as much as playing ut2004. the movement and the whole gameplay had changed… but i think there enough reviews of that game in the collective memory of the web. i still want to be able to play ut3 under linux. it seems nobody is interested in that linux client anymore. how can that be? where is that linux movement…

it seems that two years are enough to make all demands to bring a linux client for this game disappear to /dev/null and this is a shame. no client available, no news.  i’m not going to play games under wine or so, can’t i demand a good software planning like it worked for ut2004?

Unreal_Tournament_3_Splash_Fix_by_coreperMaybe, now as the unreal engine 3 has been opened, there could be a little chance that some geeky linux programmer team could adapt enough lines to produce a buggy alpha version ;) but afaik the udev kit is also only for windows platforms. not so good, if you ask me. my knowledge about first person shooter development ended at designing multiplayer maps in the early days of being student (no evidence left hehe). but i still can try to understand how good those developers for ut2004 worked the system out. maybe you get my point, i really adore that game and it’s technique.

left to say: i’ll keep playing unreal tournament 2004 on linux, my in-game nickname is b1gbabou. i think, you can get the game for 10 € in every big electronics or games shop. unreal tournament 3 for linux is not provided on the purchaseable dvd and there’s also no steam client for linux.

if you have news on the ut3 on linux issue… feel free to drop a comment!