Archive for February, 2010

27
Feb

ZOMG it still does artsy stuff!!!!

Posted by Bernadet

Thaaat`s right, I was supposed to make homework this weekend but instead I decided to waste my time watching Dragonball Z again and drawing stuff! After several hours of watching DBZ and squealing over the cuteness of first-season-Gohan I made a scribble of him:

30 web20 320x240 gohan ZOMG it still does artsy stuff!!!!

After my parents got home again and I couldn`t find my earplugs I had to stop watching DBZ as watching it without sound is rather un-entertaining. So instead of making homework, I decided to do useless stuff on lotrplaza.com (where I`m getting awfully close to 10.000 points!) and got inspired to draw the ultimate hottie!

(yeah that`s Legolas!)

It evolved from this:

29  320x240 leg1 ZOMG it still does artsy stuff!!!!

Into this:

31  320x240 leg5 ZOMG it still does artsy stuff!!!!

19
Feb

Echo Echo Echo…

Posted by Bernadet

This blog item has no other purpose than terrifying Lauren, as she will be switching to doing computer stuff in uni soon…just like me. She is now officially doomed. Here is my latest homework assignment, a multithreaded binary echo server using java (it doesn`t look very fancy because WP doesn`t indent):

MultiEchoServer.java

import java.net.*;
import java.io.*;
public class MultiEchoServer
{
ServerSocket socket;
public MultiEchoServer()
{
//Try to open a socket
try
{
socket = new ServerSocket(1337);
}
//Close the program if it fails
catch(IOException ioe)
{
System.out.println(“Server error, program terminating…”);
System.err.println(“Exception:  ” + ioe);
System.exit(1);
}
System.out.println(“Server started and listening…”);
while (true)
{
//Make a connection and start a thread
try
{
Socket client = socket.accept();
Thread t1 = new Thread(new ClientHandler(client));
t1.start();
}
//error handling
catch (IOException ioe)
{
System.err.println(“Exception:  ” + ioe);
}
}
}
public static void main (String[] args)
{
//make the server
new MultiEchoServer();
}
}
ClientHandler.java
import java.io.*;
import java.net.*;
//The class echothread is the actual thread, and is pretty much equal to the server class of the non multithreaded project.
class ClientHandler implements Runnable
{
Socket sock;
//initializing the socket
public ClientHandler(Socket s)
{
sock = s;
}
public void run()
{
try
{
//make the input and output stream
InputStream input = sock.getInputStream();
OutputStream output = sock.getOutputStream();
while (true)
{
//execute code while i does not equal -1
do
{
byte b;
while((b = (byte) input.read()) != -1)
{
output.write(b);
}
System.out.println(“system will now be terminated..”);
output.close();
input.close();
sock.close();
}while (true);
}
}
catch (IOException ioe)
{
System.err.println(“Exception:  ” + ioe);
}
}
}
MultiEchoClient.java
import java.net.*;
import java.io.*;
public class MultiEchoClient
{
public static void main(String[] args)
{
try
{
//make connection to server socket
Socket socket = new Socket(“127.0.0.1″, 1337);
OutputStream output = socket.getOutputStream();
InputStream input = socket.getInputStream();
//introduction message
System.out.println(“Hallo!”);
//execute code while i does not equal -1
do
{
byte b;
while ((b = (byte) System.in.read()) != -1)
{
output.write(b);
b = (byte) input.read();
String str = “”;
str += (char) b;
System.out.print(str);
}
System.out.println(“system will now be terminated..”);
output.close();
input.close();
socket.close();
}while (true);
}
//Error Handling
catch (IOException ioe)
{
System.err.println(“Exception:  ” + ioe);
}
}
}
Want to know what this does? Nothing but echo back to you what you type in the console. That`s right…you need all this code to make a computer say hi back to you after you said hi to him. BE AFRAID LAUREN, BE VERY AFRAID!!!!!
-Bernadet
17
Feb

HAI WORLD

Posted by Alinda

So…I dragged Lauren into this mess which we call a blog site. Somehow she agreed. Maybe it`ll help us to actually keep this site active. That is, if she doesn`t demolish the site. There`s really not many boxes you need, to make posts you use the add new post link and to add a page you use the add new page link. If you want to mess with the layout just ask me and I`ll show you how…maybe *grins*

I`m working with java at school now, which sucks a lot. I hate java, but that`s mainly because I`m rather bad at it and it`s boring. I`d much rather learn lolcode, I mean…how awesome is this?:

HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
-Bernadet
(Edit: somehow WP messes up and puts my sister as the author,
but it`s really me!)
16
Feb

ohai

Posted by Lauren

*Invades*

*Breaks things*

*DESTROY DESTROY DESTROY*

This thing is confusing. How many boxes of things do you actually need?! But at least Berna let me in… Now she will never get rid of me… *cackle*

16
Feb

I`m so so so so sorry

Posted by Bernadet

As you all might have noticed….I disappeared. I`m sorry for that, uni has been attempting to kill me several times. But I`m back now! Or at least, I`m trying my hardest to be back *grins*

As you`ve probably seen, I`m messing with the layout of the site. Right now it`s all very basic but I plan on changing stuff once I got some input on colours and all ^_^

I actually considered giving up this domain for a while since I didn`t know what to do with it anymore. But I have a new use! I will be moving to England for 6 months from September and will use this site to keep my family updated while I`m there. I just wish I could change the domain name, since that`s still bothering me. No one knows what it means and it`s like 4 years old by now *grins*

-Bernadet