Create GWT MySQLConn project under Netbeans

# HowTo
1. install Netbeans: http://www.panticz.de/install_netbeans
1.1 install http://www.panticz.de/install-GWT4NB
2. install GWT: http://www.panticz.de/install_gwt
3. install MySQL driver: http://www.panticz.de/install_mysql_driver
4.

Ubuntu MID USB boot

DEVICE=/dev/mmcblk0
IMG=ubuntu-8.10-mid-lpia.img
VOLUME=SDCARD_2GB
 
wget http://releases.ubuntu.com/8.10/${IMG} -P /tmp
 
mkfs.vfat -n ${VOLUME} ${DEVICE}p1
syslinux -f ${DEVICE}p1
 
install-mbr ${DEVICE}
 
mount ${IMG} /mnt/ -o loop
cp -a /mnt/* /media/${VOLUME}
cp -a /mnt/.disk/ /media/SDCARD_2GB
umount /mnt
 
sync
umount /media/${VOLUME}
 
 
 
# netboot
LABEL linux
   MENU LABEL Ubuntu MID 
   KERNEL ubuntu-8.10-mid/casper/vmlinuz
   APPEND initrd=ubuntu-8.10-mid/initrd.img boot=casper netboot=nfs nfsroot=192.168.1.2:/tftpboot/ubuntu-8.10-mid file=/cdrom/preseed/mid.seed p

Install rTorrent

#!/bin/bash
 
useradd -m rtorrent
passwd rtorrent
apt-get install -y rtorrent screen
 
su rtorrent
cd ${HOME}
 
wget http://de.archive.ubuntu.com/ubuntu-releases/intrepid/ubuntu-8.10-desktop-i386.iso.torrent
wget http://de.archive.ubuntu.com/ubuntu-releases/intrepid/ubuntu-8.10-desktop-amd64.iso.torrent
 
screen -S rtorrent
rtorrent *.torrent

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

Install MySQL Server

wget https://raw.githubusercontent.com/panticz/installit/master/install.mysql-server.sh -O - | bash -

#!/bin/bash

debconf-set-selections <<\EOF
mysql-server-5.5 mysql-server/root_password_again string root
mysql-server-5.5 mysql-server/root_password string root
EOF
 
# install
sudo apt-get -y install mysql-server

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 mr sts cd 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

mkHomeBackup.sh

#!/bin/bash
 
for i in $(ls /home/); do
	if [ -d /home/${i} ]; then	
		echo ${i}
		tar -cjf /home/${i}.$(date -I).tar.bz2 /home/${i}
	fi
done

gbrainy - a brain teaser game

#!/bin/bash
 
sudo apt-get install gbrainy
Syndicate content