Skip to content

My First Serendipity Plugin

I've exploring the Serendipity API by writing an "event" plugin wrapper around GeSHi. GeSHi is an extremely cool php class that does color syntax highlighting for any computer language you want. Since I hop from language to language, this is exactly the type of capability I want. So without further ado, here's a test of my plugin, currently in alpha state:

First some PHP

    function generate_content(&$title) {
        $title = PLUGIN_EVENT_GESHI_NAME;
    }
 


Now some SQL

SELECT * FROM temptable WHERE USER= 10
 


and how about a hot cup-o...

Java
  1.  
  2. /**
  3.  * Java example for GeSHi
  4.  */
  5.  
  6. import javax.swing.JOptionPane;
  7.  
  8. public class Foo {
  9.         public static void main ( String[] args ) {
  10.                 JOptionPane.showMessageDialog(null, "hello, world!");
  11.                 int n = args[0];
  12.                 for ( int i = 0; i < n; i++ )
  13.                 {
  14.                         System.out.println(i);
  15.                 }
  16.         }
  17. }
  18.  


I have a lot to do (and learn about Serendipity) before I feel the plugin will be ready to release in beta state, but at least I thought I'd try it out and show a proof of general concept.


Defined tags for this entry: , , , , ,

PHP and Mysql graphing

I have had two hobby sites up for a while one here and the other here, both devoted to the Massive multiplayer online RPG Dark Ages of Camelot (DAoC). These games have guilds (similar to a team) and classes (which are the types of characters you can create). One site is for a Guild on the server I made my characters on, and the other site is devoted to one particular class (The Cabalist) which happens to be the one I initially picked when I started to play the game. The class site has been relatively popular, garnering around 200k page views in the month of August. Like Ultima Online and Everquest, DAoC boasts thousands of subscribers worldwide (they say 250k as of Sept, 2002).

I managed to find an excuse to experiment with some interesting technology for the sites, including PHP, Mysql, xml, phpBB2, phpWebsite and phpNuke among others. Several months back i wrote a script that began to pull the number of active users on a regular interval from an xml feed provide by the publisher of DAoC. I use this data to create a graph of daily user activity using a php graphing library called phplot that wraps support for GD a c language open source graphics display library. Although the program appears to be an image (as least that is what's returned to your browser) it's actually a php script that queries the database and returns the plotted information for that day. The program takes a few of paramaters (daocdate, width and height) in case you're interested in playing with it.
Defined tags for this entry: , , ,

The way we were

In all seriousness, I'm doing some java coding these days. Mostly JSP pages for a big medical system project. No I did not really join the military. Sheesh some folks are gullible.

Now for a short trip down defunct internet startup memory lane. In the early days of any internet startup company, there's many a late night programming session, or so the lore of the internet startup industry would have you believe. While combing through my vast archives, I found this image taken from the early days of Z, just after we moved into what was the Z.com building on Empire Ave. in burbank.

One such night, I snapped a photo of a couple of chaps working away on some project or other at around 2am. In the foreground you will notice the original edit station cluster with the cool flat lcd screen monitors, and a mini DV recorder visible. This corner of the building was known as the "tech area".

One can also see the super bright halogen lights, which eventually were enclosed in filtration screens to diffuse their iris burning intensity.

I'll forgo naming the subjects of the photo, but from what I hear they currently reside at a web design firm called www.digitalhaiku.com

I have it on good authority that quite a few ex-z folks have ended up at Sony Pictures Digital entertainment. You might want to consider it yourself. They still have numerous openings and I hear from a reliable "source" that things have stabilized there.

Listen to Alternapop.net Now!I've dedicated a machine to keeping my music cast going, although live365.com loses it's mind from time to time, so if this doesn't work, don't blame me :-) Since i listen to the stream myself, I reset it when it goes south. I upgraded the stream quality to 56k, which is easily as good as FM radio, if not better. Click on the Live365 image to access some free tunes.
Defined tags for this entry: , , ,

Wow the year has flown by

Z.com continues to grow. We successfully launched the new Zhomesite, code name Z2home, and it came out pretty well. We built a publishing system run on coldfusion, Win2k servers and Oracle database to support it, and I'm working on enhancing the ad serving piece of it. I need some sleep. Anyways, check it out at http://www.z.com
Defined tags for this entry: , , ,

God I'm busy.

I'm working on forum code for Z, and am about to embark on the Z Home engine version 2.0. All I have time for is this brief demo of some cool DHTML code. This is powering the scroller of sites at the top of the Latest News section. The scroller code came from a great DHTML, Javascript CSS exploration website called Brainjar.com. Check it out.
Defined tags for this entry: , ,

Z.com site debuts


  • Z.com is chugging along towards our official launch. We did a recent docu-site following Tommy Lee's band Method's of Mayhem. The site is at mayhem.z.com.

  • We also launched our first game show, Dare for Dollars. The show revolves around people who need cash and are willing to do outrageous things for it. If we like a Dare, we will offer to film you attempting it, and pay you an agreed fee if you pull it off.

  • We decided to offer people the opportunity to get their own z.com email address. These will go fast, so sign up now at our front page.

  • I've put up a new section with photos of our new house here.
Defined tags for this entry: , , ,