netz
hamburg 01-04
—-
with roger, david, richie, a monchichi and many more
system
Guten Tag,
ich heiße ws6.lebenshilfe-herford.de und bin ein Bildschirmarbeitsplatz und Teil einer Domäne. Auf mir läuft Windows 7. Ich bin mit einer High-Tech-Druckermaschine verbunden. Ein Office-System und ein Java-Software-Development-Kit sind auf mir installiert. LAN-seitig besitze ich eine statische IP. Leider ist mein Browser ein Internet-Explorer. Zur Mailbearbeitung benutzt man auf mir am besten Webmailer. Mein Spaßfaktor ist relativ gering. Zur Arbeit benutzt man auf mir die Serienbrieffunktionen von Word und Excel. Ein Webserver gehört nicht zu meinem Portfolio. Ich werde geteilt.
Thank you and stay tuned.
countwords_app.java
import java.io.*;
public class countwords_app {
public static void main (String[] args) {
String[] zeilenarray = new String[1000];
int i = 0;
int max = 0;
int j = 0;
int start = 0;
String[] hit = new String[1000];
int[][] liste = new int[1000][1000];
int zmax = 0;
int k = 0;
int[] help = new int[1000];
int l = 0;
int m = 0;
try {
BufferedReader in = new BufferedReader(new FileReader(“text.txt”));
String zeile = null;
while ((zeile = in.readLine()) != null) {
zeilenarray[i] = zeile;
i++;
}
} catch (IOException e) {
e.printStackTrace();
}
max = i;
for (i=0;i<max;i++) {
System.out.println(i+":"+zeilenarray[i]);
}
for (i=0;izmax) { zmax = zeilenarray[i].length(); }
for (j=0;j<zeilenarray[i].length();j++) {
if ((zeilenarray[i].substring(j,j+1).equals(" ")) ||
(zeilenarray[i].substring(j,j+1).equals("-")) ||
(zeilenarray[i].substring(j,j+1).equals("!")) ||
(zeilenarray[i].substring(j,j+1).equals(".")) ||
(zeilenarray[i].substring(j,j+1).equals(",")) ||
(zeilenarray[i].substring(j,j+1).equals(";")) ||
(zeilenarray[i].substring(j,j+1).equals("'")) ||
(zeilenarray[i].substring(j,j+1).equals('"')) ||
(zeilenarray[i].substring(j,j+1).equals(":")) ||
(zeilenarray[i].substring(j,j+1).equals("”)) ||
(zeilenarray[i].substring(j,j+1).equals(“=”)) ||
(zeilenarray[i].substring(j,j+1).equals(“?”))) {
hit[l] = zeilenarray[i].substring(start,j);
liste[i][l] = hit[l].length();
l++;
start = j+1;
}
if ((j == zeilenarray[i].length()-1)&
(!((zeilenarray[i].substring(j,j+1).equals(” “))|
(zeilenarray[i].substring(j,j+1).equals(“-“))|
(zeilenarray[i].substring(j,j+1).equals(“!”))|
(zeilenarray[i].substring(j,j+1).equals(“.”))|
(zeilenarray[i].substring(j,j+1).equals(“,”))|
(zeilenarray[i].substring(j,j+1).equals(“;”))|
(zeilenarray[i].substring(j,j+1).equals(“‘”))|
(zeilenarray[i].substring(j,j+1).equals(‘”‘))|
(zeilenarray[i].substring(j,j+1).equals(“:”))|
(zeilenarray[i].substring(j,j+1).equals(“”))|
(zeilenarray[i].substring(j,j+1).equals(“=”))|
(zeilenarray[i].substring(j,j+1).equals(“?”)))))
{
hit[l] = zeilenarray[i].substring(start,j+1);
liste[i][l] = hit[l].length();
l++;
}
}
}
for (k=1;k<(zmax*max);k++) {
for (i=0;i<max;i++) {
for (j=0;j<zeilenarray[i].length();j++) {
if (liste[i][j] == k) { help[k] = help[k] + 1; m++;}
}
}
}
for (k=1;k<(zmax*max);k++) {
if (help[k] != 0) { System.out.println("Length "+k+" , Sum "+help[k]); }
}
System.out.println("total sum "+m);
}
}
mini-cc
0. Studieren Sie die verschiedenen Datentypen
1. Schreiben Sie eine Eingabeklasse für int, double, String und char
[Zur Ausgabe genügt System.out.println()]
2. Machen Sie sich mit den Methoden der Zeichenkettenmanipulation vertraut
3. Verwenden Sie ein- und zweidimensionale Felder (Arrays)
4. Implementieren Sie verschiedene Datumsfunktionen
5. if/then/else, switch/case
6. Machen Sie sich mit den verschiedenen Arten von Schleifen vertraut
7. Üben Sie algorithmisches Denken
8. Gehen Sie schrittweise vor, beginnen Sie mit Pseudocode und/oder Struktogrammen
9. OOP
two more secondary projects
from work
traceroute to serverproject.de (80.237.133.74), from 213.182.103.230 30 hops max, 60 byte packets
1 static.121.168.4.46.clients.your-server.de 46.4.168.121 de 1.212 ms 1.324 ms 1.324 ms
2 hos-tr1.juniper1.rz13.hetzner.de 213.239.224.1 de 0.286 ms
hos-tr4.juniper2.rz13.hetzner.de 213.239.224.97 de 0.151 ms
hos-tr2.juniper1.rz13.hetzner.de 213.239.224.33 de 0.292 ms
3 core21.hetzner.de 213.239.245.81 de 0.306 ms
core22.hetzner.de 213.239.245.121 de 0.286 ms
core21.hetzner.de 213.239.245.81 de 0.306 ms
4 core4.hetzner.de 213.239.245.14 de 4.780 ms
core1.hetzner.de 213.239.245.218 de 5.788 ms
core1.hetzner.de 213.239.245.177 de 4.891 ms
5 juniper1.ffm.hetzner.de 213.239.245.5 de 4.900 ms 4.887 ms 4.893 ms
6 ae0.cr-polaris.fra1.he-core.de 80.81.192.239 de 5.001 ms 4.868 ms 5.024 ms
7 xe-2-3-0.cr-nashira.cgn4.he-core.de 80.237.129.165 de 7.565 ms
xe-2-2-0.cr-pollux.cgn3.he-core.de 80.237.129.169 de 8.873 ms
xe-2-3-0.cr-nashira.cgn4.he-core.de 80.237.129.165 de 7.565 ms
8 xe-0-2-0.dr-slave.r2.cgn3.he-core.de 176.28.4.82 de 8.401 ms
xe-0-1-0.dr-master.r2.cgn3.he-core.de 176.28.4.46 de 8.289 ms 8.272 ms
9 * * *
10 * * *
11 * * *
No reply for 3 hops. Assuming we reached firewall.
memory alpha
home again
insgesamt 100
drwxr-xr-x 23 root root 4096 Sep 23 22:44 .
drwxr-xr-x 23 root root 4096 Sep 23 22:44 ..
-rw-r–r– 1 root root 0 Sep 23 22:44 balance_disruption
drwxr-xr-x 2 root root 4096 Aug 22 15:31 bin
drwxr-xr-x 3 root root 4096 Aug 22 15:43 boot
drwxr-xr-x 15 root root 3320 Sep 23 22:24 dev
drwxr-xr-x 141 root root 12288 Sep 23 22:34 etc
drwxr-xr-x 4 root root 4096 Aug 22 15:44 home
lrwxrwxrwx 1 root root 32 Aug 22 14:47 initrd.img -> /boot/initrd.img-3.2.0-4-686-pae
drwxr-xr-x 16 root root 4096 Aug 31 13:23 lib
drwx—— 2 root root 16384 Aug 22 14:42 lost+found
drwxr-xr-x 4 root root 4096 Sep 18 20:26 media
drwxr-xr-x 2 root root 4096 Dez 14 2012 mnt
drwxr-xr-x 3 root root 4096 Sep 23 17:20 opt
dr-xr-xr-x 153 root root 0 Sep 24 2014 proc
drwx—— 2 root root 4096 Sep 23 22:23 .pulse
-rw——- 1 root root 256 Aug 22 15:45 .pulse-cookie
drwx—— 5 root root 4096 Sep 12 13:49 root
drwxr-xr-x 24 root root 940 Sep 23 22:34 run
drwxr-xr-x 2 root root 4096 Aug 31 13:23 sbin
drwxr-xr-x 2 root root 4096 Jun 10 2012 selinux
drwxr-xr-x 2 root root 4096 Aug 22 14:43 srv
drwxr-xr-x 13 root root 0 Sep 24 2014 sys
drwxrwxrwt 10 root root 4096 Sep 23 22:43 tmp
drwxr-xr-x 10 root root 4096 Aug 22 14:43 usr
drwxr-xr-x 13 root root 4096 Aug 22 15:37 var
lrwxrwxrwx 1 root root 28 Aug 22 14:47 vmlinuz -> boot/vmlinuz-3.2.0-4-686-pae
from home
traceroute to serverproject.de (80.237.133.74), 30 hops max, 60 byte packets
1 easy.box (192.168.x.y) 0.285 ms 0.517 ms 0.738 ms
2 dslb-092-073-160-001.092.073.pools.vodafone-ip.de (92.73.160.1) 19.045 ms 20.171 ms 22.065 ms
3 88.79.23.29 (88.79.23.29) 27.926 ms 28.093 ms 29.306 ms
4 * 188.111.189.65 (188.111.189.65) 34.666 ms *
5 92.79.212.141 (92.79.212.141) 42.284 ms 92.79.209.137 (92.79.209.137) 44.714 ms 44.900 ms
6 92.79.213.178 (92.79.213.178) 52.308 ms 33.117 ms 26.235 ms
7 ae0.cr-polaris.fra1.he-core.de (80.81.192.239) 25.673 ms 27.598 ms 24.294 ms
8 xe-2-3-0.cr-nashira.cgn4.he-core.de (80.237.129.165) 29.671 ms 31.830 ms 33.511 ms
9 xe-0-1-0.dr-slave.r2.cgn3.he-core.de (176.28.4.78) 32.997 ms 34.958 ms 36.474 ms
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *
