Tuesday, April 06, 2010

APPLET ASSISTANCE ANYONE?

Just to add some features to DowneastBlog, I wanted to equip it with some Java applets. In practice these should look like applications in the side"bar" to the right. Now, when you scroll down you'll see there, at the bottom, a blank rectangle. That's supposed to be a Java applet. I named that applet simply "AppletDemo". Normally, the only thing it should do, since it is merely a test, is show a black rectangle and circle. The code I included in DB's web page is:


applet codebase="http://users.skynet.be/OUTLAWMIKESSITE/" height="200" width="200" code="AppletDemo.class"



... which I wrote of course between the appropriate brackets, and afterwards terminated with a closing applet-tag, and...

... wherein the argument "codebase" points to the absolute domain where I have stored the binary code of AppletDemo, and the file that contains it, AppletDemo.class. Since I cannot store the file AppletDemo.class on the same server as DowneastBlog, I have to place it somewhere else, and luckily I have this junkyard site of mine, http://users.skynet.be/OUTLAWMIKESSITE/, which I use mainly for storing pics. So that's why the codebase arg. As a sidenote, I might add that I wrote the sourcecode of AppletDemo using ECLIPSE (which I can recommend, btw), and that it compiled this sourcecode, AppletDemo.java, in AppletDemo.class. Also as a sidenote, the uploader software I used to get the AppletDemo.class file to OUTLAWMIKESSITE is "Classic FTP", which looks very much like Ipswitch software (which I used before) and is extremely easy to operate.

... and oh yeah, OUTLAWMIKESSITE is a bogus name for reasons of privacy...

Now, as for the code in AppletDemo.java, it's simply this:


package h02;


import javax.swing.*;
import java.awt.*;

public class AppletDemo extends JApplet
{

public void paint(Graphics g)
{
g.fillRect(50, 50, 25, 50);
g.fillOval(60, 30, 50, 50);
}

}



And, being poepsimpel it works of course just fine on the ECLIPSE platform.

Have I got you this far? You must be a geek. Okay.

So... the line of code in DB is okay, and if not I'll eat my shoes.
The sourcecode of AppletDemo is okay too, and so must be the binary code.
AppletDemo.class is in an appropriate location, and the codebase and code arguments point to its correct whereabouts.

On my web browser, Java is enabled.

SO WHY THE H*LL WON'T IT WORK?

If you have a hunch why not, please feel free to drop a line in the comments section. I'll get you a Nobel Prize for Numbnuts Assistance, I swear it.



MFBB.

Sunday, April 04, 2010

HAPPY EASTER!

Photobucket


Christus geeft de sleutels aan de Heilige Petrus, by Peter Paul Rubens
(Christ hands the keys to Saint Peter - painting is in the Staatliche Museen in Berlin)



An appropriate painting, I think, since Easter is when Christians commemmorate the Resurrection of Christ and this scene depicts an event shortly thereafter, when the resurrected Jesus hands the keys of the Kingdom of Heaven to Saint Peter. Peter was Jesus' first and most important apostle. Peter is actually his "surname" since Jesus told him that "he would be the rock upon which he would build his church" [Peter stems from the Greek "Petros", which means stone, rock, and indeed he became the Christian's first pope]. And his first name was Simon, the son of Jonah, and he was a humble fisher at the Lake Gennesaret. So it is rather more correct to refer to him as Simon Peter (or Simon Cephas, since "cephas" is aramaic, Jesus' language, for "rock").



MFBB.

Saturday, April 03, 2010

SATURDAY NIGHT JOE JACKSON, FAITH NO MORE, RUSH.

Reasonably good Joe Jackson hit, "Nineteen forever". What do I say? It's a brilliant song!




At some point in the mid-nineties these guys were real cool. Faith No More with Midlife Crisis. The cover is of Angel Dust, the album the hit was drawn off. I read somewhere sometime that singer Mike Patton used to drink one of his shoes full of urine on stage. Well, to each his own.




And because I am in such a good mood, Rush with Afterimage. That's one from the 1984 album Grace under Pressure.




Rush must be the biggest rock band that has forever eluded mainstream. No matter whether you like them, their craftmanship is undeniable. Geddy Lee is a wizard on the keyboards, Alex Lifeson I'd rate among the planet's five most proficient guitar players, and Neil Peart is the best drummer this side of Zeta Reticuli (period).


Good night. Tomorrow's Easter.



MFBB.

Thursday, April 01, 2010

RADICAL MUSLIMS DISRUPT ISLAM-CRITICAL SPEECH AT ANTWERP UNIVERSITY.

We've been talking about Benno Barnard here before. He is a leftist playwright who saw the light in 2009.

Now a speech he intended to give at the University of Antwerp was disrupted by radical muslim students. Police had to intervene. The speech was cancelled altogether, even before it begun.





A frustrated Barnard after the event:


"We are 2010 now, and if you say you don't want that islam and especially not in its extreme form, you need the police and a bodyguard."


Welcome to reality, Mr. Barnard.



MFBB.