Archive for the ‘Uncategorized’ Category

Web Design Made Easy

July 5, 2007

Web Design Made Easy

PLink – Search Engine, Blogging, Content Management, and much more.

PLink API
PLink API

PLink Blogs can now be implemented on your website with three lines of code, using the new PLink API. This means portions of your website can be created and edited as the sections of a PLink document, with all of the fancy pants editing features that go along with this: including Textile markup support, tables, images, bibliography entries, etc. Edit your blog on plink-search.com and sections of your site implementing the API will be instantly updated — no need to sift through HTML to find what you want to update, and PLink documents can be edited from any computer! (with your PLink login and password). Sections of a PLink document integrate seamlessly with your new or already established site, as with this example of a PLink document imported into Marie Alighieri’s website.

Example on mariealighieri.com

Using the PLink API your PLink Blog is imported one section at a time. The library is currently available in PHP. Java™ and Ruby versions will soon follow. An example of the PHP library follows:


     <?php
         include("plinkapi.php");
	 $PL=new PLink();
	 $PL->plinkInclude("username","password","Section Title");
     ?> 

Where username and password are your Plink login information, and Section Title represents the name of one of the section in your Plink Blog.

You can use style sheets to modify the style of the imported section, please note that for your convenience images and tables are given the div class ‘figure’. Also the link to PLink at the bottom of the incoming document is wrapped in the div class ‘plink’.

Enjoy the update,

Ben.

Download
PLink API For PHP
PLink API For Ruby

Notes on Ruby

To use the Plink API with your Ruby on Rails application add the file plinkapi.rb to the lib/ directory of your application. To use the API within the application add the following to your application controller or the controller of your choice:

require "plinkapi" 

class ApplicationController < ActionController::Base
  include PlinkAPI
end 

To put the content of a Plink section onto your page add the following line to the Views you want the content to appear in:

<%= plinkInclude( "username", "password", "section" ) %>
  

DolphinNet – An OOP Server

June 29, 2007

DolphinNet – An OOP Server

DolphinNet™ is an easy to use server and distributed processing library for Java™. Like RMI, DolphinNet™ uses objects to communicate between a client and server. DolphinNet™, however, approaches this task using object serialization over a standard TCP/IP connection.

DolphinNet™ was designed by me for a 4 th year research course, and was originally intended for facilitating distributed processing tasks (document clustering to be exact), it has since been put to use in several different ways:

  • A chat server/statistics collection system for a marketing research study.
  • The back-end for an online applet based poker game.
  • The client server system for the partially complete Vulgate MMORPG.
  • A P2P web-browser and HTML renderer.
  • In conjunction with Tomcat, it provides PLink’s search functionality.
    • Including the website indexing, which is done by a client.

DolphinNet™ has been used by me and my peers for several years now, but I have never made it public. I’ve recently decided to make it available with a GPL license, and feel that it could be a useful tool to any Java™ programmers out there, who are looking to add some great OOP client/server software to their programming arsenal.

PLink Textile

June 29, 2007

Plink Textile

Several people have been asking for the ability to perform richer editing on the text in paragraph elements — don’t worry, I’m always open to new ideas. Rather than make a proprietary PLink markup, I have implemented the markup used by Dean Allen’s Textile™. Textile is easy to use, and quite powerful. This having been said, I wasn’t satisfied with the Java™ Textile libraries that already existed, so I have been busy programming my own parser for its specification.

Which brings us to PLextile™, a complete Java™ library for parsing Dean Allen’s Textile which has been implemented by the PLink team. Unlike other existing Java™ implementations of Textile, Plextile™ supports all of its major features.

A Techy Blog for the Techy Masses

June 29, 2007

A Techy Blog for the Techy Masses

What started as a CIS project for creating technical documents has – over a span of two years – become PLink. Several months ago a corporeal voice said to me – it might have been my own – “Ben, why don’t you apply some of the research you’ve been doing, and make a search engine?” The idea (essentially) was to make a search engine that relied on voting to rank search results.
To make a long story short, during the process of making this search engine, I realized that PLink would be a good venue to dust off some old code I had been working on for creating online technical documents – this became somewhat of an obsession. I began outlining the sorts of features that I would enjoy in blogging software, with an emphasis on the ability to create technical documents online.
The result? The PLink document software, I feel, does a good job of serving both the casual Blogger/Social-Networker, while also allowing for the creation of fairly robust online documents. Perhaps, an example would help illustrate this: