Category Filter - (Java)

Java console error could not initialize class sun.awt.X11GraphicsEnvironment

Well this is another sanity post to save me next time I need to figure this problem out again, the issue is running a applet on a server in a Headless X11 environment. There are java program settings to force checking that a X11 display is present and similar command line options do the same, however this doesn't help when trying to run on your server console terminal in a Headless environment...

Filed under: Java  Tags: Applet

Java applet not running

Probably the most common cause of an applet not running is that your applet code is not located in the correct place relative to your web pages applet tag. This can catch you out especially when your running XHTML code within a PHP framework such as CakePHP...

Filed under: Java  Tags: Applet

The basic structure of a java applet

The following code outlines the basic structure of a java applet, this example displays a simple "Hello World" applet...

Filed under: Java  Tags: Applet
(default) 9 queries took 9 ms
NrQueryErrorAffectedNum. rowsTook (ms)
1DESCRIBE `posts`17171
2DESCRIBE `comments`11111
3DESCRIBE `tags`221
4DESCRIBE `categories`221
5DESCRIBE `posts_tags`221
6DESCRIBE `categories_posts`221
7SELECT Post.* FROM posts Post, categories_posts pc, categories c WHERE c.category = ('Java') AND c.id = pc.category_id AND pc.post_id = Post.id AND Post.status = 1 ORDER BY Post.created DESC331
8SELECT category, COUNT(*) AS cat_cnt FROM categories_posts c2p INNER JOIN categories Cat ON c2p.category_id = Cat.id GROUP BY category15151
9SELECT tag, COUNT(*) AS tag_cnt FROM posts_tags t2p INNER JOIN tags Tag ON t2p.tag_id = Tag.id GROUP BY tag49491