Heino – Junge

Junge, warum hast du nichts gelernt? Guck' dir den Dieter an, der hat sogar ein Auto Warum gehst du nicht zu Onkel Werner in die Werkstatt? Der gibt dir 'ne Festanstellung  (wenn du ihn darum bittest) Junge Und wie du wieder aussiehst Löcher in der Hose Und ständig dieser Lärm (Was sollen die Nachbarn sagen?)…

Read More

Advance ZIP example – Recursively

Advance ZIP example – Recursively Read all files from folder “C:\\testzip” and compress it into a zip file – “C:\\MyFile.zip“. It will recursively zip a directory as well. package com.mkyong.zip; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream; public class AppZip {     List<String> fileList;  …

Read More

FTP Upload

String ftpUrl = "ftp://%s:%s@%s/%s;type=i"; String host = "www.myserver.com"; String user = "tom"; String pass = "secret"; String filePath = "E:/Work/Project.zip"; String uploadPath = "/MyProjects/archive/Project.zip"; ftpUrl = String.format(ftpUrl, user, pass, host, uploadPath); System.out.println("Upload URL: " + ftpUrl); try { URL url = new URL(ftpUrl); URLConnection conn = url.openConnection(); OutputStream outputStream = conn.getOutputStream(); FileInputStream inputStream = new…

Read More

Slan Libh

SLEAN LIBH (Sean Barlow / Peadar Kearney)  Sisters and brothers, comrades all, who trod the olden road with me And answering a nation's call dear Mother Erin sworn to free To you who'll carry on the fight my share of deathless hope I give Before I pass into the night, Slean libh Slean libh! a…

Read More