Adding system variable using cmd.exe

Note that this is not persistent! It will be gone when you restart.

set variableName=path
echo %variableName%
VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

Install java on ubuntu / switch verisons

I am a linux noob. So what?
Here is what I found searching the net how to switch java versions on Ubuntu:

It is so easy to install Java on Ubuntu now. On Ubuntu 7.04 (Feisty Fawn), follow these steps:

1) Make sure you have the right repositories on your sources.list file.

Edit your sources.list file the following way:

sudo gedit /etc/apt/sources.list

or if you are not using gnome (e.g. you are logged in through ssh):

sudo nano /etc/apt/sources.list

If the following lines are not already there, add them:

deb http://us.archive.ubuntu.com/ubuntu feisty main restricted
deb http://us.archive.ubuntu.com/ubuntu feisty universe multiverse

Save the file (in nano use Control-O to save and then Control-X to exit).
Now you need to tell the package manager to update it’s database:

sudo apt-get update

2) Install Java using apt-get

I currently have both Java 5 and Java 6 installed on my machine and
it’s very easy to switch between the two. Java 6 has some nice goodies such as
JSR-223 and better jconsole that I like to use.

For Java 5:

sudo apt-get install sun-java5-jre sun-java5-jdk sun-java5-plugin

For Java 6:

sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin

There are other packages that you might be interested in:

* sun-java6-demo
* sun-java6-doc
* sun-java6-source

3) Verify installation

Verify that you have the correct version of java running:

java -version

For example, on my machine (yes, I call it tiwouj):

Ubuntu Java Version

To see a list of the java versions that you have installed, you can use the following command
(it’s a letter L at the end of the command):

update-java-alternatives -l

Ubuntu Java List

This should show you a list of all the java alternatives you have installed. java-gcj is the free version of Java
from the GNU project and comes installed by default with Ubuntu so you should see it.
To switch to a different version, use the following command:

sudo update-java-alternatives -s

e.g:

sudo update-java-alternatives -s java-1.5.0-sun

Make sure it worked:

java -version

That’s it! How easy was that? You have to love apt-get.

(source)

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

Classpath entry will not be exported or published

Classpath entry will not be exported or published. Runtime ClassNotFoundExceptions may result.

This is an error I get when I use Eclipse 3.3.2 with WTP 2.0.6.
I added a few libraries to my BuildPath.

I found somebody having the same issues:

Hi,
I have an Eclipse project that I have converted over to be a dynamic web project.
Now I have 100s of warnings that were not there before (we have a "no warnings" policy).

The warning is of the form:

Classpath entry /XXX/xxx.jar will not be exported or published.
Runtime ClassNotFoundException may result.

I have googled for parts of that warning without finding any hits.
The problem seem to occur when I have a project that has a JAR file included in the project.

1. How can I get the included JAR files exported correctly
(without having to explode the JARs within their respective projects).

and

2. Is there any way to override these warnings and change them to "ignore"
as you can do with the Java or Javadoc compiler settings?
Does anyone have any suggestions?
Best wishes, Ivan

(source)

This has been the answer:

hi Ivan,

WTP 2.0 M6 includes a new feature that allows you to add "J2EE module"
dependencies to classpath entries (cp containers and libraries) so that the
resolved contributions from these entries will be included in
published/exported structure of the module (will be added to the root of the
EAR or the WEB-INF/lib directory of web modules, depending on the type of
dependency).

Management of these dependencies can all be handled through the standard
"J2EE Module Dependencies" UI (there is also a programmatic API).

Part of this support is a validator that adds errors for various conditions
as well as the warning you have encountered. The motivation behind that
warning is that you may have a potential runtime problem if there is
something on the project classpath which is not included in the published
structure of the module and is not part of the standard WTP cp containers
that expose classes available on the server (these "standard" cp containers
are not selectable within the "J2EE Module Dependencies" UI and do not
trigger the warning).

The answer to #1 is to select these cp entries as J2EE module dependencies
(this will also cause the warning to disappear).

I have recently made the following change in this area:

-An extension point has been added (will be in the next I-build) that allows
adopters to register additional cp containers that should not be considered
as potential dependencies (associated cp container entries will therefore
not be available for selection in the J2EE Module Dependencies UI and the
warning will not be generated).

-Rob

(source)

Yet adding my libs to J2EE module dependencies will result in an error:

org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:356)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

root cause

java.lang.NullPointerException
org.apache.jsp.chooseSemester_jsp._jspInit(chooseSemester_jsp.java:35)
org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

Ignoring the warning works just fine, yet the ugly yellow exclamation mark gets on my nerves.
I am on it, maybe I'll find a solution.

By the way, there's more to that conversation, but this was more or less what made me decide to ignore the warnings.

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

Animated Loading / Progress Gifs

http://www.ajaxload.info/

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

JSP/Servlet Tutorials

first edition of a online book:

http://pdf.moreservlets.com/

second edition:

http://pdf.coreservlets.com/

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

Install Ubuntu without GRUB using Vista Bootmanager

I am aware that this article is a mess! It's been created in a hurry.

Maybe with time I'll be able to format it correctly and order things a litlle.

This is the big Tutorial for it:
Link to the original tutorial.

Problem to solve: Install GRUB to Ubuntu partition:

Start Ubuntu Live CD, setup Network connection and mount certian things:
You have to mount your root partition using the livecd:

sudo mkdir /mnt/root
sudo mount -t ext3 /dev/sda6 /mnt/root

Then you have to mount the proc subsystem and udev inside /mnt/root also:

sudo mount -t proc none /mnt/root/proc
sudo mount -o bind /dev /mnt/root/dev

Doing this allows grub to discover your drives. Next you have to chroot:

sudo chroot /mnt/root /bin/bash

(Source: http://ubuntuforums.org/showthread.php?t=224351 (see for MBR installation))

Maybe you will have to setup a nameserver to get Internet to install grub (too lazy to try now if so):

nano -w /etc/resolv.conf

Nun tragen Sie hier den Nameserver (oder mehrere) dem Beispiel folgend ein.
Dabei sollten Sie natürlich wieder ${NAMESERVER} durch die entsprechende
IP-Adresse ersetzen.

nameserver ${NAMESERVER1}
nameserver ${NAMESERVER2}

(Source: http://www.gentoo.de/doc/de/handbook/handbook-x86.xml?part=1&chap=3)

Maybe you also need to do this, before insatlling GRUB is possible:
Füge die 3 Zeilen mal in Deine Sources list ein.

sudo gedit /etc/apt/sources.list

deb http://ftp.inf.tu-dresden.de/os/linux/dists/ubuntu edgy main restricted universe multiverse
deb http://ftp.inf.tu-dresden.de/os/linux/dists/ubuntu edgy-security main restricted universe multiverse
deb http://ftp.inf.tu-dresden.de/os/linux/dists/ubuntu edgy-updates main restricted universe multiverse

then type:

sudo aptitude update
sudo aptitude upgrade

(Source: http://forum.ubuntuusers.de/topic/83506/)

To use sudo you may need to do this:

adding the line:

127.0.0.1 ubuntu

to /etc/hosts file (in my case the machine name is "ubuntu").

(Source: https://bugs.launchpad.net/ubuntu/+source/linux-meta/+bug/195308)

And finally do this:

grub-install /dev/sda4 (<- find out using fdisk -l)

if you get the error: Could not find device for /boot/boot: not found or not a block device, do this:

grep -v rootfs /proc/mounts > /etc/mtab

Then grub installation should work.

Here are parts of the main tutorial (there's somethingmore about bitlocker, but oh well):
How to use Windows Vista’s Boot Manager to boot Linux

 

The Web is full of explanations on how to dual boot Windows and Linux using a Linux boot manager like GRUB or LILO. If you want to dual boot Windows Vista and Linux using Windows Vista’s Boot Manager, please read on. I will assume that you already have installed Linux on your machine using GRUB as your boot loader.

 

Step 1 – Install GRUB on the Linux partition (outside of MBR)

As Windows Vista will replace the Master Boot Record (MBR) with its own, we need to relocate GRUB elsewhere by running grub-install with the Linux partition as a parameter.

• On Linux, launch a Terminal with root privileges

• Find the name of the partition Linux is installed on by running fdisk –l (the partition you’re looking for is the one whose system is Linux, can be something like /dev/sda1 or /dev/hda1. For the rest of this post, I’ll use /dev/sda1)

• Install GRUB on the Linux partition by running : grub-install /dev/sda1

 

Step 2 – Get a copy of Linux boot sector

We will need to instruct Windows Boot Manager how to boot correctly Linux using Linux boot sector, which we will extract using dd.

• On Linux, launch a Terminal with root privileges

• Take a copy of Linux boot sector : dd if=/dev/sda1 of=/tmp/linux.bin bs=512 count=1

• Copy linux.bin on a FAT formatted USB key or any storage accessible from Windows Vista

 

Step 3 – Install Windows Vista

 

Step 4 – Configure dual booting in Windows Vista

We will create an entry for GRUB in Windows Vista boot configuration data store using bcdedit.

• On Windows Vista, launch a command prompt with administrative privileges (by right clicking on cmd and choosing Run as Administrator)

• Copy Linux boot sector on the root of the Windows boot (active) partition, namely the one containing bootmgr. If you don’t know for sure you can use diskpart or diskmgmt.msc to find out which one it is.

• Create an entry for GRUB :

o bcdedit /create /d “GRUB” /application BOOTSECTOR

o Note: bcdedit will return an ID for this entry that we will call {LinuxID} below. You will need to replace {LinuxID} by the returned identifier in this step. An example of {LinuxID} is {81ed7925-47ee-11db-bd26-cbb4e160eb27}

• Specify which device hosts a copy of the Linux boot sector

o bcdedit /set {LinuxID} device boot

• Specify the path to a copy of the Linux boot sector

o bcdedit /set {LinuxID} PATH \linux.bin

• Add Linux entry to the displayed menu at boot time

o bcdedit /displayorder {LinuxID} /addlast

• Let the menu be displayed 10 seconds to allow for OS selection

o bcdedit /timeout 10

 

 

There is also a little program allowing to create linux.bin from windows:

A tutorial is here:

http://www.canerten.com/dual-boot-linux-and-windows-with-windows-boot-manager/

the program you can find here:

http://www.chrysocome.net/dd

ALSO you NEED to configure your GRUB (to be sure, do it BEFORE creating linux.bin!!)

Do this by creating a menu.lst in your /boot/grub folder and out in fitting config.

more Information can be found here:

http://wiki.ubuntuusers.de/menu.lst

As an example: my config looks like this:

# Windows Entry
title Windows Vista
root (hd0,0)
savedefault
chainloader +1

# Linux

title Ubuntu
root (hd0,3)
kernel /vmlinuz root=/dev/sda4
initrd /initrd.img
boot

test

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

Free MySQL

http://www.db4free.net

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

As400: Find out OS version

'GO LICPGM'

Choose option 10? (Display installed License programs)

Look for "Operating System/400"-Entry

(Hit F11 for version)

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

AS400 - Setting up a HTTP-Server

Here are some links solving all my problems, when I wanted to do the basic setup of a HTTP-Server on my AS400 System:

Setup of HTTP-Server

Quick config:

1) Start the Admin HTTP Server: STRTCPSVR SERVER(*HTTP) HTTPSVR(*ADMIN)

2) Access web configuration to create and start server instances: http://as400.ip:2001

When using a router, one has to direct port 80 to your as400 and configure it as a gateway on the as400:

Setup Gateway

Quick config:

1) 6. Datenfernverarbeitung ->5. Netzwerkverwaltung -> 10. TCP/IP-Verwaltung -> 1. TCP/IP konfigurieren

2) Set up of TCP/IP connection: 1. Mit TCP/IP-Schnittstellen arbeiten

3) Set up of standard gateway: 2. Mit TCP/IP-Leitwegen arbeiten (*DFTROUTE is the entry for standard gateway)

When creating up a gateway/route, remember setting up hops and priority. Hops will tell the system how many hops it has to do. For instance two, if there is a router to hop trough. Priority tells the system which gateway/route is to be tried first. 10 means high priority, 1 low.

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

Secret of Mouse

http://www.co-cooking.de/Article185.phtml (German)

VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)
Return top
 

Warning: array_filter() [function.array-filter]: The first argument should be an array in /var/www/web41/html/hp_fstyle/wordpress/wp-content/plugins/wordpress-tweaks/tweaks.php on line 650