My Mac cache the DNS informations. Here little trick to clear your DNS cache.
Open your Terminal Application and type following command:
lookupd -flushcache
It’s so easy :-)
My Mac cache the DNS informations. Here little trick to clear your DNS cache.
Open your Terminal Application and type following command:
lookupd -flushcache
It’s so easy :-)
It’s so easy, i’ve only searched a day long for that easy result:-P
[drscream@havanna] ~ % tclsh % puts $tcl_version 8.4
I don’t like mail.app … but what i really hate are HTML Emails. So we can turn it off!
Execute the following command in the console and all your email will now appear in plain text:
defaults write com.apple.mail PreferPlainText -bool TRUE
Hi there,
i have written a small client for sau and frupic, it’s only a small bash script. Have a look at it:
#!/bin/bash
#--------------------------------------------------------------------
# $Id: frucln,v 1.7 2007/10/08 18:01:09 drscream Exp $
# Copyright 2007 Frubar Network (drscream@frubar.net)
#--------------------------------------------------------------------
# FUNCTIONS
function pause() {
i=0;
echo -n "- pause: "
while [ $i -le $count ]; do
echo -n "."
sleep 1
i=$[$i+1]
done
echo
}
# MAIN
echo "[ frucln - creative coding ]"
# $1: sau
# frupic
case $1 in
"sau")
if [[ $2 > 0 ]]; then
count=$2
pause $count
fi
osys=$(uname)
if [[ ${osys} == "Linux" ]]; then
$(import -window root -pause 0 -quality 100 /tmp/sau.tmp.png)
elif [[ ${osys} == "Darwin" ]]; then
$(screencapture -m /tmp/sau.tmp.png)
else
echo "- Error: Operating System not found"
exit
fi
if [[ -f /tmp/sau.tmp.png ]]; then
id=$(curl -s -F userfile=@/tmp/sau.tmp.png -F "shooter=$(whoami)" "http://sau.frubar.net/")
if [[ $id > 0 ]]; then
echo "- Successfull: SaU"
echo " http://sau.frubar.net/${id}"
else
echo "- Error: Upload failed"
fi
$(rm /tmp/sau.tmp.png)
else
echo "- Error: SaU file doesn't exists"
fi
;;
"frupic")
all=$(echo $2 | grep \*)
if [[ $all ]]; then
for f in $all; do
id=$(curl -s -F userfile=@$f -F "shooter=$(whoami)" "http://frupic.frubar.net/")
if [[ $id > 0 ]]; then
echo "- Successfull: frupic"
echo " http://frupic.frubar.net/${id}"
else
echo "- Error: Upload failed ($f)"
fi
done
exit
elif [[ $2 ]]; then
id=$(curl -s -F userfile=@$2 -F "shooter=$(whoami)" "http://frupic.frubar.net/")
if [[ $id < 0 ]]; then
echo "- Successfull: frupic"
echo " http://frupic.frubar.net/${id}"
else
echo "- Error: Upload failed"
fi
exit
else
echo "- Error: No Parameter given"
fi
;;
*)
echo "frucln:"
echo " - use: frucln "
;;
esac
echo $args
#curl -s -F userfile=@CIMG0885.JPG -F "shooter=`whoami`" "http://frupic.frubar.net/"
I was having problems by using irssi in the iTerm, because using the alt/option key to swap between tabs doesn’t work. So i found a way to use another command to swap between the tabs.
To switch between irssi windows (normally alt+1 etc.) – use:
Press Esc, let go – then press number, 1, 2 whatever…
Beim Import einer 500 MB SQL-Datei in eine MySQL Datenbank ist der folgende Fehler aufgetreten:
ERROR 1114 (HY000) at line 582: The table 'company' is full
Das bedeutet, dass die InnoDB Daten-Dateien voll sind und nicht automatisch, bzw. nur bis zu einem bestimmten Wert erweitert werden (autoextend).
Loesung: In der MySQL-Config-Datei “my.cnf” befindet sich die folgende Einstellung fuer InnoDB Daten-Dateien:
innodb_data_file_path = ibdata1:10M:autoextend:max:128M
Es bedeutet, dass eine Daten-Datei 10MB gross ist und die Tabelle / Datenbank bis maximal 128MB erweitert wird. Das kann man aendern in:
innodb_data_file_path = ibdata1:100M:autoextend
Jetzt ist eine Daten-Datei 100MB gross und es gibt keine Beschraenkung beim automatischen Erweitern.