I can't believe it's already christmas! (well, almost)
weeks ago I was pondering too much on how I'd fix stuff before I leave --do errands, settle bills, buy pasalubongs for bacolod, etc etc... now I'm left with just a few thoughts. like how I'd go to the airport tomorrow, plus the fact that I haven't packed my bags and that I'll go home late tonight coz of cie's wedding, blah blah blah... minor stuff (slash vacation dilemmas) you know, problems I'd gladly have 10 times! hehe.
I'm quite jittery as this will be my first parent-less christmas. Though I'm happy for them, I know they have so much to make up after 5 years of not seeing my sister. God's so good, He gave my parents that chance... then gave me the inventados, who can adopt me for the holidays :)
I'm also glad that work's over this year. hehe.
I have a wonderful christmas to look forward to... :)
Merry Christmas everyone! and have a safe new year! :*
Tuesday, December 23, 2008
Monday, December 15, 2008
Friday, December 05, 2008
I just have to keep this.
// Zipping a file using Java
import java.io.File;
import java.io.FileOutputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
...
File zipFile = new File("c:/myzippedfile.zip");
FileOutputStream fos = new FileOutputStream(zipFile);
ZipOutputStream zos = new ZipOutputStream(fos);
ZipEntry entry = new ZipEntry("mytextfile.txt");
zos.putNextEntry(entry);
// "item" here is my org.apache.commons.fileupload.FileItem
// object. replace "item.get()" with your file's byte array
zos.write(item.get());
zos.close();
Subscribe to:
Posts (Atom)