Jump to content
SubSpace Forum Network

Shtuff my evernote says...


Recommended Posts

Guest petalbreeze
Posted

8/21/11 - The World of Avast

 

The world of Avast is a world of shadow and lawlessness.

 
It is the world of ice dancing on men instead of men dancing on ice.
 
He speaks before he understands.
 
He wages wars of "righteousness" in favor of the lawbreaker.
 
It's a world where good is bad, and bad is good.
 
He's a mounted warrior who rides on a horse made of nothing;  who rides over shifting sand and faltering ground.
 
He takes up the cause of injustice and calls it truth.
 
His voice is the voice of folly and his power is in his tongue alone.
 
Give your ear to Avast and you will pay for it
 
Heed him and you become his slave, discipline him and he lashes against you
 
When he opens his mouth he is bold, he is not afraid of anyone, his boasting goes all the way to the heavens
 
O, Troll god, why do you set your eyes on peaceful men and cast your mouth against them?
Guest petalbreeze
Posted

I breathe

 
I know you don't have much to say when my eyes have been lingering your way
So I turn away, and pretend not to notice everything you do
So I sit and think about how little I know about you
And I wonder about what makes your heart sing
And I wait my chance and steal a glimpse when you can't see my eyes
 
There's a beauty showing in those locks of fire
Which I know is waiting in your heart like a dancer waiting for the song
 
I'm not going rush into you like a tidal wave
And overwhelm all your defenses
And see you run away
 
So I'll bide my time
Till I see your shine
Then I'll touch your shore
With a gentle roar
 
I'm not gonna take you off your feet
Just wash over them with a gentle sweep
 
I'll learn what makes you smile
and I'll learn what makes you shine
I'll learn what makes you bloom
 
And I'll bide my time
Till the wind is mine
Then I'll send my song
on the ocean breeze
Guest petalbreeze
Posted

  1. package com.spidernl.cnpluginbot.pluginsystem;

  2.  

import java.io.File;

import java.net.MalformedURLException;

import java.net.URL;

import java.net.URLClassLoader;

import java.util.ArrayList;

import java.util.HashMap;

import java.util.List;

 

import com.spidernl.cnpluginbot.core.ChatnetBot;

 

public class PluginHandler

{

        //Stored information on plugins

        private HashMap<String /*Class name*/, Plugin>                                  plugins;

        private HashMap<String /*Class name*/, String /*file path*/>    pluginPaths;

        private List<PluginEventHandler>                                                                eventHandlers; //Let these know whenever a Plugin is loaded or unloaded.

       

        private ClassLoader loader;

        private ChatnetBot bot;

       

        /**

         * Initializes a newly created PluginHandler object.

         * @param bot a reference to the bot that this PluginHandler

         * will pass to loaded plugins.

         */

        public PluginHandler(ChatnetBot bot)

        {

                plugins                 = new HashMap<String, Plugin>();

                pluginPaths     = new HashMap<String, String>();

                eventHandlers   = new ArrayList<PluginEventHandler>();

               

                this.bot = bot;

        }

       

        /**

         * Load a plugin from a specified file.

         * @param file the file the plugin is in

         * @param binaryName the binary name of the class to load

         * @return true if the plugin is loaded successfully, false if the plugin could not be loaded and none of the exceptions were thrown earlier

         * @throws MalformedURLException - See File.toURI().toURL()

         * @throws ClassNotFoundException - If the specified class was not found in the file

         * @throws IllegalAccessException - If the class or its nullary constructor is not accessible

         * @throws InstantiationException - If the class cannot be instantiated, for example if it is an interface

         */

        public boolean loadPlugin(File file, String binaryName) throws MalformedURLException,ClassNotFoundException, IllegalAccessException, InstantiationException

        {

                if (isLoaded(binaryName))

                        unloadPlugin(binaryName);

               

                URL[] url = { file.toURI().toURL() };

                loader = new URLClassLoader(url);

               

                Object classInstance = loader.loadClass(binaryName).newInstance();

                if (classInstance instanceof Plugin)

                {

                        Plugin plugin = (Plugin) classInstance;

                        plugins.put(binaryName, plugin);

                        pluginPaths.put(binaryName, file.getAbsolutePath());

                       

                        if (!plugin.initialize(bot))

                        {

                                plugins.remove(binaryName);

                                pluginPaths.remove(binaryName);

                                return false;

                        }

                       

                        pluginLoaded(binaryName, plugin);

                        return true;

                }

                return false;

        }

       

        /**

         * Unloads a plugin. Calls the unload() method for that plugin prior to unloading.

         * @param binaryName the binary name of the plugin to unload.

         * @return true if plugin was loaded and removed, false if it wasn't loaded when this method was called.

         */

        public boolean unloadPlugin(String binaryName)

        {

                if (isLoaded(binaryName))

                {

                        pluginPaths.remove(binaryName);

                        Plugin unloaded = plugins.remove(binaryName);

                        unloaded.unload();

                        pluginUnloaded(binaryName, unloaded);

                        return true;

                }

                return false;

        }

       

        /**

         * Whether or not a plugin is loaded.

         * @param binaryName the binary name of the plugin

         * @return true if loaded, false if not

         */

        public boolean isLoaded(String binaryName)

        {

                return plugins.containsKey(binaryName);

        }

 

        /**

         * Used to retrieve a HashMap containing all the paths to

         * loaded Plugin files, mapped to their binary names.

         * @return a HashMap containing all the paths and classnames.

         */

        public HashMap<String,String> getPluginPaths()

        {

                return pluginPaths;

        }

       

        //Event handlers

        /**

         * Register a PluginEventHandler object to the JavaPluginHandler.

         * The event handler will receive callbacks whenever a plugin is

         * loaded or unloaded.

         * @param handler the event handler to register.

         * @return true if the handler was successfully registered, false

         * if the handler was already registered.

         * @throws IllegalArgumentException if handler is null.

         */

        public boolean addPluginEventHandler(PluginEventHandler handler) throws IllegalArgumentException

        {

                if (handler == null) throw new IllegalArgumentException();

                if (eventHandlers.contains(handler))

                {

                        return false;

                }

                eventHandlers.add(handler);

                return true;

        }

        /**

         * Removes a PluginEventHandler from the registered event handlers

         * for this JavaPluginHandler.

         * @param handler the event handler to remove.

         * @return true if the handler was register, false if not.

         * @throws IllegalArgumentException if handler is null.

         */

        public boolean removePluginEventHandler(PluginEventHandler handler) throwsIllegalArgumentException

        {

                if (handler == null) throw new IllegalArgumentException();

                return eventHandlers.remove(handler);

        }

       

        /**

         * Let the PluginEventHandlers registered to this

         * PluginHandler know a plugin was loaded. Can be

         * used by plugins to fake a plugin load (for

         * whatever reason).

         * @param binaryName the binary name of the plugin.

         * @param plugin the plugin object cast to the

         * Plugin class.

         */

        public void pluginLoaded(String binaryName, Plugin plugin)

        {

                for (PluginEventHandler handler : eventHandlers)

                {

                        handler.pluginLoaded(binaryName, plugin);

                }

        }

       

        /**

         * Let the PluginEventHandlers registered to this

         * PluginHandler know a plugin was unloaded. Can be

         * used by plugins to fake a plugin unload (for

         * whatever reason).

         * @param binaryName the binary name of the plugin.

         * @param plugin the plugin object cast to the

         * Plugin class.

         */

        public void pluginUnloaded(String binaryName, Plugin plugin)

        {

                for (PluginEventHandler handler : eventHandlers)

                {

                        handler.pluginUnloaded(binaryName, plugin);

                }

        }

}

Posted


I stand here accused of insensitivity

oh sure i tried to change my ways

i've cried, i hugged, i've been hugged

and you know what i discovered?

I'M AN OFFENSIVE PERSON!

but in a tolerant society is there no place for my kind?

Why must everyone like me?

Why can't we all, just not get along?

Conflict is necessary

throughout history, human beings have persecuted the great aggitators

Socrates, Galileo and Now me the Troll God

Where would you be without us? to provoke and enlighten you

To attach the electrodes of knowledge to the nipples of ignorance!

Throughout history all over the world

people have rightfully looked to subspace, for virtually nothing!

but maybe one day they will be able to say

that an unpopular battle was won there

for an ugly little thing called..

the truth..

And when they make a movie of this, and they will

I don't want to be played by woody harrelson.
 

Posted (edited)

I am far from self righteous, and i am considered an Anti-Hero, much like Batman.

 

 

Sadly i have just contributed to your education.. which is something i usually avoid doing. i prefer the people i troll to remain stupid.

Edited by Lone Outlaw
Guest petalbreeze
Posted

I think your response this time was highly upgraded (not that I have reached ultimate status, but simply as a friend).... I believe you have what it takes to break the mold of the anti-hero....... as Rob Schneider once said "YOU CAN DO EIT!!!! YOU CAN DO EIT AWL NIGHT LONGGG!!!!"

 

I was going to put down your original response, but I found a poem while sifting through that I think is more appropriate (please note, romantic love being applied can apply to heartfelt brotherly love too... don't trip on the word "lover"):

 

 

 

6/16/12 - How can I love you more when I don't understand you?

 

How can I love you more when I don't understand you?
How can I understand you more when I don't think of you?
 
Grand are all my cages
But your love I despise
 
Send me a song on the wind
That I may find my lover amidst all this death
 
set your sights on God
Don't look back
turn the engines to full
let your heart fly
The world says stop
but God says "come!"
Guest petalbreeze
Posted (edited)

A pre-emptive rerail of this topic:

 

JoWie> my most used extensions are noscript, firebug, https-everywhere, live http headers, adblock, downthemall
     JoWie> but noscript alone is enough reason for me to use firefox
     JoWie> i like the star in firefox
     JoWie> it's like a bookmark you do not bother categorizing
     JoWie> when you search for something later it pops up because of a keyword you entered
     JoWie> like when i type SS i get ssforum instead of sturmschutze


JoWie> you should try evernote :p
      Arry> aside from music... the only data on my computer is text files on my desktop
      Arry> everything else is programs
     JoWie> great thing about noscript is that
     JoWie> by default
     JoWie> no site may use javascript, flash, etc

 

EDIT: Just realized that 6/22/11 was the day I copied a lot of text files from my computer(s) to evernote thereby losing the initial date of writing.... this is another one of those files.

Edited by petalbreeze

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...