GWT + MySQL + Netbeans Demo

# INFO
url : jdbc:mysql://localhost:3306/Bible
user: gwt-examples
pass: password

# create database and user
mysql -u root -p
create database Bible;
CREATE USER 'gwt-examples' IDENTIFIED BY 'password';
grant all on Bible.* to 'gwt-examples'@'%' identified by "password";
#grant all on Bible.* to 'gwt-examples'@'192.168.1.10' identified by "password";
#grant all on Bible.* to 'gwt-examples'@'localhost' identified by "password";
commit;
quit;

# get gwt examples
cd ${HOME}
svn checkout http://gwt-examples.googlecode.com/svn/trunk/ gwt-examples

# fill database
wget http://ken

mkBackup.sh

#!/bin/bash

# todo
# backup desktop (check for to big files)
# backup thunderbird
# backup firefox
# backup usb pen if connected
# add state function

DIRS="privat OpenVPN"
EXCLUDE="cd/neue_hp"
DATE=$(date -I)
TARGET="${HOME}/backup/${DATE}"
STATE=0

function state() {
EXIT_CODE=$1
FILE=$2
if [ ! -z ${FILE} ]; then
FILE_SIZE=$(du -sh ${FILE} | cut -f1)
fi

if [ $EXIT_CODE == 0 ]; then
printf "%5s %5s\n" "[OK]" ${FILE_SIZE}
else
printf "%5s\n" "[ERROR]"
STATE=$(($STATE + 1))
fi
}

# create today backup directory
[ !

formatCamcard.sh

#!/bin/bash

DEVICE=/dev/sdc
LABEL=CAMCARD

# create partition
sudo umount ${DEVICE}1
sudo fdisk ${DEVICE} << EOF
o
n
p
1

a
1
t
6
w
EOF

# create filesystem
sudo umount ${DEVICE}1
sudo mkfs.vfat -F 16 -n ${LABEL} ${DEVICE}1

# sync changes
sudo sync

# create directory structure
#sudo mount ${DEVICE}1 /mnt
#mkdir -p /mnt/DCIM/100NIKON
#sudo umount ${DEVICE}1

Google Web Toolkit with Netbeans

# install gwt plugin in netbeans
NETBEANS > Tools > Plugins > Available plugins > GWT4NB > Install

# test, create new projects
export GWT_HOME=/opt/gwt-linux
cd $GWT_HOME
./applicationCreator -out $HOME/GWT-Sample org.kamal.hello.client.HelloWorld
/opt/gwt-linux/applicationCreator -eclipse MyProject com.mycompany.client.MyApplication

# rpc service demo
public void onModuleLoad() {
RootPanel.get().add(new DBQueryUsageExample());
}

# LINKS
http://www.netbeans.org/kb/60/web/quickstart-webapps-gwt.html
http://www.gwt-ext.com/demo/ - GWT-Ext Showcase
http://gwt.google.com/sam

syslinux.cfg

# create usb disk
cp /usr/lib/syslinux/vesamenu.c32 /mnt
cp /usr/lib/syslinux/memdisk /mnt

# tinycorelinux
wget ftp://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/release/tinycore_2.1.iso -P /tmp
mount /tmp/tinycore_2.1.iso /mnt/ -o loop
cp /mnt/boot/bzImage /mnt/boot/tinycore.gz /media/USB_MINI/boot/tinycore/

# netinstall
mount mini.iso /mnt/ -o loop
cp /mnt/initrd.gz /mnt/linux /media/USB_MINI/boot/netinstall/

# syslinux.cfg
default boot/vesamenu.c32
timeout 100
menu title Multi Boot USB

LABEL Localboot
localboot 0x80

LABEL Ubuntu
KERNEL /c

OpenOffice Macros with Basic

Create new Macro
Extras > Makros > Makros verwalten > Makro...
Meine Makros > Standard > Neu

# open a external application (v1)
Sub Main
item = ThisComponent.getCurrentSelection.String

If len(item) > 0 then
rem msgbox "Selection: " & item

item = UCase(item)
oService = createUnoService("com.sun.star.system.SystemShellExecute")
oService.execute("/media/programme/starter/scripts/Lager.sh", "item_id=" & item, 0)
EndIf
End Sub

# open a external application (v2)
Sub Main
selectedRow = ThisComponent.CurrentSelection.getRangeAddress.StartRow
itemId = ThisComp