Tue, 25 Nov 2008
Public part of the l4x.org setup
I've one server (mail.trixing.net) hosted on a DSL line with a static IP address (thanks manitu.net). It has a 1 mbit/s upload capability which is enough for the one or two visitors a day.
mail.trixing.net currently hosts
- Public:
- pyblosxom blog/web (l4x.org)
- static web page (trixing.de)
- gallery (l4x.org/pics/)
- Linux Kernel Compile Tests (l4x.org/k), dynamically generated
- Private:
- (private) scm repositories (l4x.org/svn/, svn.l4x.org, git.l4x.org)
- vdr tv server (l4x.org/tv/)
- munin service monitor (l4x.org/munin/)
- dsl connection (l4x.org/dsl/), reverse proxy
- Hosted on Google Apps
- mail (@trixing.{de,net,org,com,eu}, @l4x.org, @ppp0.net, @jandittmer.de, @familiedittmer.de,
@turnschuh-admin.de)
- Why external mail hosting you may ask. Some reasons:
- if the server or link goes down, while I've shared co-located backup-mx, I may lose mail
- requires time for maintenance
- spam filtering sucks
- I used to do it as a hobby while I was on the university but now with child, family and a real job I want to use my spare time more efficiently
ShowIP, google code, done 2008-02-12, http://code.google.com/p/firefox-showip/
posted at: 21:40 | path: /projects | permanent link to this entry
Imprint, places I lived
Rankestrasse 17
38102 Braunschweig
jdi@l4x.org
+49 - 531 - 3884123
+49 - 179 - 4570689
Address history
| Click on the addresses to reveal their location. |
posted at: 21:32 | path: / | permanent link to this entry
How to back date a subversion checkin
#!/bin/sh
# svn-ci-date.sh
# Jan Dittmer <jdi@l4x.org> 2008
# Use at your own risk
#
D=`ls -l "$1" | cut -f6-7 -d' ' | sed 's/ /T/'`
D="${D}:00.000000Z"
echo "Date: $D"
if ! svn add "$1"; then exit 1; fi
if ! svn ci -m "Date $D" "$1"; then exit 2; fi
R=`svn info "$1" | grep "^Revision: " | cut -f2 -d' '`
echo "Revision: $R"
if [ "$R" == "" ]; then exit 3; fi
if ! svn propset --revprop svn:date -r$R "$D"; then exit 4; fi
Please note, that subversion does not do any sanity checking on the
svn:date property. If svn log reports a 'Bogus Date' afterwards, make
sure your dates have the format 'YYYY-MM-DDThh:mm:ss.uuuuuuZ'.
posted at: 20:49 | path: /unix | permanent link to this entry
Sun, 06 Jul 2008
Controlling the fan speed of a Lenovo X300 under Linux
INTERVAL=10 FCTEMPS=hwmon0/device/pwm1=hwmon0/device/temp1_input FCFANS= hwmon0/device/pwm1=hwmon0/device/fan1_input MINTEMP=hwmon0/device/pwm1=60 MAXTEMP=hwmon0/device/pwm1=70 MINSTART=hwmon0/device/pwm1=32 MINSTOP=hwmon0/device/pwm1=32 MINPWM=hwmon0/device/pwm1=32 MAXPWM=hwmon0/device/pwm1=128This will give you 1800 rpm for CPU temperatures > 50C and 5500 rpm (the next level) for temperatures higher 70C. As the fan is barely noticeable at 1800 and 70C is only reached by running two processes with 100% CPU load for more then 5 minutes (even at 30C ambient temperature) this will give you a nearly totally silent laptop :-). A pwm value of 255 sounds like a jet starting (8000 rpm)...
posted at: 20:04 | path: /unix | permanent link to this entry
Thu, 19 Jun 2008
How to fix "A disk read error occurred" when using a Windows XP image in Virtualbox
to boot Windows XP off a raw disk image using Virtualbox (either directly by using
the write-through support or indirectly by booting a 1:1 copy) most
probably the BIOS of the original system reported an odd drive geometry
(C/H/S - Cylinders/Heads/Sectors).
To fix this boot the _physical_ system,
go to the grub command line, type 'c' to invoke the command prompt and then execute the command 'geometry (hd0)'. Write down the cylinders, heads and
sectors values reported. Back in your host system, open the .vmdk file using a normal text editor, scroll down to the end of the file and adjust the following lines
.
ddb.geometry.biosCylinders="1023"
ddb.geometry.biosHeads="240"
ddb.geometry.biosSectors="63"
(1023/240/63 are the values reported by the Lenovo X300 Notebook BIOS).
Now try to boot Windows in the virtualized environment. In my case it
worked right on the first try. There may also be a Windows tool to get
the original drive geometry.
The short explanation is, that the boot loader from Windows seems to have
hard coded values for the drive geometry <
posted at: 20:35 | path: /unix | permanent link to this entry
Wed, 09 Apr 2008
How to truncate a file the UNIX way
apart from hundreds of references to the ftruncate man page.
This is how I did it:
dd of=destfile bs=1 seek=newsize count=1 </dev/null
where newsize can be 1k, 400G, whatever and destfile is obviously the
destination filename.
posted at: 20:35 | path: /unix | permanent link to this entry
Mon, 03 Sep 2007
Opensync_and_Nokia_E60
posted at: 23:06 | path: /unix | permanent link to this entry
Wed, 07 Mar 2007
FrontRow
posted at: 22:42 | path: /macos | permanent link to this entry
Thu, 16 Nov 2006
Python_Gnuplot_PlotItems_Data_axis_vs._axes
gnuplot> plot sin(x) axis x1y1, \
sin(x)**2 axis x1y2
In the Python Gnuplot module you rather use
g.plot(Gnuplot.Data(x,y1,axes='x1y1'),
Gnuplot.Data(x,y1,axes='x1y2'))
See the little difference?
posted at: 22:42 | path: /unix | permanent link to this entry
Fri, 10 Nov 2006
Navicore_Personal_Europe_2006-1_DVD_installation_under_Debian_GNU-Linux_with_wine_(Nokia_E60_mobile_as_target)
posted at: 21:28 | path: /unix | permanent link to this entry
