tech
Sub-Categories
- No categories
Category Posts
script to clean a mysql database without dropping it - 06 Dec 2011
if you dont want to give a certain user create database permissions, he can run this script
#!/bin/bash
MUSER=”$1″
MPASS=”$2″
MDB=”$3″
# Detect paths
MYSQL=$(which mysql)
AWK=$(which awk)
GREP=$(which grep)
if [ $# -ne 3 ]
then
echo “Usage: $0 {MySQL-User-Name} {MySQL-User-Password} {MySQL-Database-Name}”
echo “Drops all tables from a MySQL”
exit 1
fi
mysql –user=$MUSER –password=$MPASS -BNe “show tables” $MDB | tr ‘\n’ ‘,’ | sed -e ’s/,$//’ | awk [...]
new citrix client for linux - 22 Oct 2011
maybe it’s not too new anymore, but it’s nice nevertheless: citrix releases version 12 of the citrix receiver for linux. they have seperate versions for x86 and x64 and i could install the deb without having problems with dependencies on my ubuntu 11.10
one problem they have has still not been fixed though: the client brings [...]
java class helping to understand floats - 14 Mar 2011
i tried to better understand how float values are stored on a computer so i decided to write a little class that should help me with this.
IMPORTANT NOTE: i can’t be held responsible for anything that this class does or does not, you’ve been warned :p
list of know issues:
the methods floatUnderstandingFromLongValue() and floatUnderstandingFromDoubleValue() return WRONG [...]
Read Full Post »remember this? - 05 Dec 2010
just love it
Read Full Post »nice ssh option for tunneling - 07 Jun 2010
didn’t know about this so i always used a little http proxy (tinyproxy) on my server, but this is not needed as i just learned;
see here: http://dltj.org/article/ssh-as-socks-proxy/
strange n900 pricing - 10 Apr 2010
i’ll probably buy a nokia n900 to (finally!) replace my nice htc touch hd which is broken because of windows mobile (how could htc do this, after all?!).
i was quite surprised about the price differences between digitec.ch and mobilezone and swisscom-shop;
price with extending my contract another year at swisscom shop: about chf 750.-
price with extending [...]
updating windows 7 rc to final - 24 Jan 2010
just wanted to create a little post about the possibility and my experiences with the upgrade;
to allow the update, steps as described on this howtogeek post are needed.
the upgrade must be run from your running windows 7 rc installation, not from the cd or usb-stick
it will take around 30 minutes to complete
there were only a [...]
Read Full Post »getting hp w2216 to work with ubuntu 9.10 beta on ibm z60m (radeon x600mobility) - 05 Oct 2009
this was strange;
usually, when xrandr outputs the following:
Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 1680 x 1680
VGA-0 connected 1680×1050+0+0 (normal left inverted right x axis y axis) 465mm x 291mm
1680×1050 60.0*+
1600×1000 60.0
1280×1024 75.0 60.0
1440×900 [...]
Read Full Post »vmware workstation on ubuntu 9.10 beta - 03 Oct 2009
just installed the new ubuntu beta ond my notebook which i use for work. i need vmware on it for the xp vm that i have to use at work.
as always with new kernels and x-servers, vmware doesn’t just work even when using the newest version (6.5.3). in order to get it to work more [...]
compression using fifo’s - 28 Aug 2009
little problem, smart solution;
i’m backing up my citrix xenserver vm’s using the command
xe template-export
i write the backup directly to a cifs-mounted share on the network. however, i need to compress those images, ideally before i send them over the network. the problem is that the template-export command doesn’t support writing to stdout, which would allow [...]
Read Full Post »problems with enigmail after update/reinstallation of ubuntu - 15 Aug 2009
just had a little problem to fix;
when i opened an encrypted or signed message in thunderbird, the error “the enigmime service is not available” was shown. however, enigmail and thunderbird were installed and even setting the path to the gpg binary manually doesn’t fix the problem.
however, it’s not too difficult to fix;
apt-get remove –purge enigmail
this [...]
Read Full Post »System Administrators Day - 31 Jul 2009
well, not much to say, just read it.
Read Full Post »HP Universal Print Driver with Citrix on Windows 2008 x64 - 15 Jul 2009
seems like there is a quite bad problem with HP Universal Print Driver 4.7 (and older) when used on a Citrix Server. According to some forum threads, the issues were resolved in version 4.7.2, however, this version is not available for public download, one needs to contact HP support to get it.
as I did this, [...]
new computer - 31 May 2009
hi everyone!
i’m still there, and of course, from time to time, i need a new pc =)
this time i replaced my core2duo e6600 (2.4ghz) on a msi p965 neo-f with 2gb memory on it with my new:
core i7 920 (2.66ghz)
gigabyte ga-ex58-ud5 (with heatpipes, onboard power button, debug leds and everything…)
3x 2gb kingston ddr3 hyper-x
and a [...]
something about not having a central package-management system - 03 Dec 2008
http://secunia.com/blog/37/ …. i thought it was a terrible situation, however i still was shocked.
would be interesting how the situation looks with various linux distributions which have a central update mechanism for software.
