moaxcp
Home
[login] [register]
Home
Home
Project Info
Gallery
Stats

Applets
Ball Applet
Pong

Web Apps
Blogson
Bin Sixteenths
Ecomm Site
Gen Pic
Test Graphics

Old Sites
Auction
Cp Web
Old John Mercier
Site Model
Slide Shows

Misc
My Game
Linux Log
Workout Log
C++
Drums
Images
SQL
Links
Articles
Downloads

Links
Hosting Service
BrainJar.com
Junk Science
Objective Science
Terry Goodkind
Classical Values
Instapundit
TaxProf Blog

Objectivism
Objectivism Online
Ayn Rand
Intellectual Activist
Capitalism Magazine
Leonard Peikoff
...Of Philosophy

Objectivist Blogs
Cox & Forkum
The Rational Egoist
The Greedy Capitalist
Anger Management
Noumenalself.com
Minority of One
The Rule of Reason
EGO

Advertisements
Made with Notepad!
Hand Coded with Notepad
Web Statistics
Uploaded Using SmartFTP
Final Fantasy Player
Site uses a Postgresql Database
Created using Java Server Pages
check out my neighbors in meatspace
Blogwise
rss 2.0 feed
Rss Validated



Welcome to moaxcp.net

More on Michael Moore
There is a new DVD coming out called FahrenHYPE 9/11 that should be interesting since there are Fifty-nine Deceits in Fahrenheit 9/11 and Michael Moore Is A Big Fat Stupid White Man.




Posted 09/30/2004 - 00:55 by John in Politics Comments(0)

Installing and Using Ant
Installing ant...
  • First go to the website and download ant.
  • Unzip it to a directory.
  • Then add the bin directory to the path variable.
  • Create and set the ANT_HOME environment variable.
  • Make sure you have JAVA_HOME set to the jdk also.
Optional task for ant (ex. ftp) may have dependencies in which case you will have to download the library and set the classpath to it.


Here is an overview of a build.xml file I have made. There are many different ways to do basically the same thing but this is what I do. Here is a copy of it:
<project name="sample" default="run" basedir=".">



  <description>

    Build for sample program.

  </description>



  <!-- contains build number and other information -->

  <property file="sampleProgramInfo.properties" />



  <property name="src.dir" value="./src" />

  <property name="build.dir" value="./build" />

  <property name="dist.dir" value="./dist" />



  <!--

	cleans all directories except the source

  -->

  <target name="clean">



    <delete dir="${build.dir}" />

    <delete dir="${build.dir}/build_docs" />

    <delete dir="$  ist.dir " />

    <delete dir="$  ist.dir /src" />

    <delete dir="$  ist.dir /build" />



    <mkdir dir="${build.dir}" />

    <mkdir dir="${build.dir}/build_docs" />

    <mkdir dir="$  ist.dir " />

    <mkdir dir="$  ist.dir /src" />

    <mkdir dir="$  ist.dir /build" />

  </target>



  <!-- Compiles the source to the build -->

  <target name="compile">



    <!-- update or create build info -->

    <propertyfile file="sampleProgramInfo.properties"

	comment="Build Statistics for sample program">

      <entry key="programName" type="string"

	default="sample program" />

      <entry key="version" type="string" default="1.0" />

      <entry key="firstBuildDate" type="date"

	default="now" />

      <entry key="currentBuildDate" type="date"

	default="now" value="now" />

      <entry key="buildNumber" type="int" default="0"

	operation="+" />

    </propertyfile>



    <javac srcdir="${src.dir}" destdir="${build.dir}" />

  </target>



  <!-- move all non source code files to build this

	could be program resources -->

  <target name="move" depends="compile">

    <copy todir="${build.dir}">

      <fileset dir="${src.dir}">

	<exclude name="**/*.java" />

      </fileset>

    </copy>



    <copy todir="${build.dir}/build_docs"

	file="sampleProgramInfo.properties" />

    <copy todir="${build.dir}/resources"

	file="sampleProgramInfo.properties" />

    <copy todir="${build.dir}/build_docs"

	file="build.xml" />

  </target>



  <!-- create a distribution of the whole program

	including the source. One thing that can be

	done after this is creating a zip file and md5.

  -->

  <target name="dist" depends="move">



    <copy todir="$  ist.dir /src">

      <fileset dir="${src.dir}" />

    </copy>



    <copy todir="$  ist.dir /build">

      <fileset dir="${build.dir}" />

    </copy>



  </target>



  <!-- runs the program -->

  <target name="run" depends="dist">

    <exec dir="${build.dir}" executable="java">

      <arg line="-classpath '.' SampleProgram"/>

    </exec>

  </target>

</project>
One thing that should be notices is the directory structure.
-/SampleProgram

--+--/build.xml

--+--/src

--+--/build

--+--/dist
The ant command is executed in the Sample Program dirctory and it does all the task the build.xml files says to do. To clean the directories type "ant clean".
Posted 09/25/2004 - 21:44 by John in Programming Comments(0)

Why Ant?
Building and running programs in java is pretty easy (there are only two commands) but beyond that it can get tiresome (there is also the argument that you have to type these long commands at all). There are things like javadoc, keeping track of build numbers, creating a distribution, uploading via ftp, md5 sums... the list can go on. There are ways you can make your own programs to do this through batch files or even java programs but the more abstract you make them the closer you will come to making ant.

From the site:

Apache Ant is a Java-based build tool. In theory, it is kind of like Make, but without Make's wrinkles.

Why another build tool when there is already make, gnumake, nmake, jam, and others? Because all those tools have limitations that Ant's original author couldn't live with when developing software across multiple platforms. Make-like tools are inherently shell-based -- they evaluate a set of dependencies, then execute commands not unlike what you would issue in a shell. This means that you can easily extend these tools by using or writing any program for the OS that you are working on. However, this also means that you limit yourself to the OS, or at least the OS type such as Unix, that you are working on.

Makefiles are inherently evil as well. Anybody who has worked on them for any time has run into the dreaded tab problem. "Is my command not executing because I have a space in front of my tab!!!" said the original author of Ant way too many times. Tools like Jam took care of this to a great degree, but still have yet another format to use and remember.

Ant is different. Instead of a model where it is extended with shell-based commands, Ant is extended using Java classes. Instead of writing shell commands, the configuration files are XML-based, calling out a target tree where various tasks get executed. Each task is run by an object that implements a particular Task interface.

Granted, this removes some of the expressive power that is inherent by being able to construct a shell command such as `find . -name foo -exec rm {}`, but it gives you the ability to be cross platform -- to work anywhere and everywhere. And hey, if you really need to execute a shell command, Ant has an task that allows different commands to be executed based on the OS that it is executing on.


With ant you can reduce all of the commands you may have to type to creating an xml file once and typing the command "ant". There are even IDE's that use an ant plugin ant give ant an easy to use GUI. Which I may go over by the way...

In the next updates I will talk about installing and using ant from the command line.
Posted 09/24/2004 - 14:28 by John in Programming Comments(0)

Classes, Packages, and the Classpath
Classes are how Java implements object oriented programming. They contain the properties and methods that represent an object in in a computer program. Common classes are often put into a package. Packages not only allow classes to be organized in a hierarchy of common objects but also allow classes to have their own name within the package eventhough the same class name could be used in a seperate package. One or more packages can be placed in a library for distribution to other developers. These are often .jar files. Here is the main point of this entire post setting up the classpath.

The classpath is a path that tells the jvm where to find classes outside of it's own library. In other words where to find other libraries you want to use in your program. Some libraries I've used include: pircbot, moaxcpegaHal, and htmlparser. The best thing to do is set up a folder and put all of the extra packages into it and set up the classpath. Later on I may figure out a way to create a batch file (run on startup) that sets up the classpath with everything in this folder so adding packages is automatic. Until then the classpath has to be set up manually with each package.

In the next update I'm going to talk about building and running programs with ant.
Posted 09/24/2004 - 14:08 by John in Programming Comments(0)

Using Java
Java is not as complicated as some may think. Mostly there are two commands you will use. The first one to compile the program. The second one to run it. These are of course only for the development of a program there are many more commands for creating distributions and documentation but this is all most people need.

To figure these commands out make an example program ex. HelloWorld lol

First make a text file called HelloWorld.java in your source directory.

Second type this stuff in it.

//File Name: HelloWorld.java



public class HelloWorld  {



	public static void main(String args[])  {



		System.out.println("Hello World!");

	}

}


If you have the cool Open Command Window Here menu option use it on the source folder and type:
javac HelloWorld.java
This will create a class file that you can run in the java virtual machine with:
java HelloWorld
It's that simple.

Next I will talk about classes, making and using packages, and the classpath environment variable.
Posted 09/24/2004 - 12:05 by John in Programming Comments(0)

This is funny
You have bad taste in music
Posted 09/23/2004 - 02:05 by John in Posts Comments(0)

Installing the Java JDK
First go to sun's website and download jdk 5.0. For some real installation instructions go to theseinstallation notes. After you download the jdk and install it all you really need to do is set the JAVA_HOME system variable to the install path and add %JAVA_HOME%/bin to the path variable.
Posted 09/16/2004 - 23:27 by John in Programming Comments(0)

The new Java JDK
As of now the newest JDK for Microsoft Windows is at version 5.0. For some reason there are two version numbers for it. 5.0 is the external but 1.5.0 is the internal. Version 5.0 has some crazy cool new features I've been reading about such as Generics, the for each loop, Autoboxing (good for collections of primitive types), enum objects, Varargs, Static Imports, and Metadata. Generics is kind of like c++ templates as far as the concept goes. The one thing that I don't see though is operator overloading with data types. Generics and operator overloading are two of the things I always wanted java to have. With these new features who needs c++. Of course there is the argument for pointers but I believe java fixes that with iterators anyway. Maybe operator overloading will be in a future update...
Posted 09/16/2004 - 22:21 by John in Programming Comments(0)

How to make a Java Application
I've learned about it in school but what is it that they didn't teach me? What tools are out there to make this whole java mess easier? Some of the things that I would like to start going over in my blog are how to set up a decent development environment, what tools are out there that can help, and some programming practices. No, I haven't learned all of these things and I'm not an expert on them but since I have all of this free time I would like to learn about them and start posting what I find. I'm going to start with setting up the JDK, finding a decent text editor, and making a place to install new libraries that I might find. Then I will go over installing ant and creating a decent build system that can be used in any java program. Expect the next update on this topic soon...
Posted 09/16/2004 - 20:34 by John in Programming Comments(0)

Fixed Email Pic
Blogson now includes email pics. The idea is to use an image to display your email instead of using text. This will save it from spamer programs that look for email addresses on the internet. ex:
Posted 09/16/2004 - 10:26 by John in Posts Comments(0)

Ready, Set, Die
I've posted earlier that I wanted to write something about the band I am in. The name of the band is Ready, Set, Die and the website should explain a bit about the band... As a side note: I don't know how we got the name (it was called Ready, Set, Die before I joined) but I'm sure it was picked in a drunken state. If I had to choose a new one it would not be so depressing (or nihilistic).

I joined the band in may of 2004 and we have been practicing two or three times a week since. The number of songs we play grew pretty quick and so have our fans. The only reason why we really even play (besides the fact that playing is fun) is for the fans. Every weekend we have played at the party house of 292 loomis street where fans not only enjoy our music but interesting conversation, shopping cart craziness, and beer. If you want to hear two of our songs go to PA Hardcore and listen. I don't play in the songs (they used a drum machine for my part) but it should give you a good idea of how we sound. Some interesting things have happened since I joined the band. I'm not sure if I'm good at telling these stories but here it goes.

When we first started we mostly practiced and played the loomis party on Fridays. I think after a few weeks Preston called the Cochranton Fair and entered Ready, Set, Die in the talent contest (I guess (s)he got the idea from a visit we made there with Lacey and Cassie). When we got there we weren't very sure that things would go very well. Here we are a punk band named Ready, Set, Die about to play in a talent contest in front of parents, little children and most of all Christians.

When the adults section started (the talent show went by age groups) there were only three acts and we played last. We had previously seen little girls (12-16 years old) dancing like whores so by this time our fears of getting booed off the stager where gone. There were two adults that we were competing against. The first played acoustic guitar and sang a song (probably about god) but the crowd couldn't really hear it that well because there was feedback in the PA system and the mics were to far away from the guitar. The next person was a Christian puppeteer with a skit that was probably similar to Veggie Tales and just as annoying. Then it was our turn.

We ran onto the stage and moved everything into position as the announcer was introducing us. She said "Ready, Set, Die" with the "Die" part in a low and scary tone which she didn't seem to intend since after she said it her face made some pretty strange shapes (lol we have it on video). Preston with his mohawk and guitar introduced the Mike (bass) and I (drums) with a brief explanation of the band and the name of the song (which was Seasick and you can listen to it). The song went really well and to our surprise the crowed seemed to like it. When they annouced the adult prizes we were surprised to win first place. We didn't get blue ribbons until later (in the mail) though because they ran out. At the next party they got Blue Ribbon Beer to celebrate. Since then we've called the song our blue ribbon song and have even used the story in our shows.

One thing that I have noticed are the number of fans we got in such a short time. This is more than likely due to the fact that we play at 292 every weekend. The word of mouth thing is definitely working for us. Just a few days ago we were at the skate park (this was also the first time I tried to skate) and someone said that we were playing at Shawn's birthday party. We didn't even know but with a few quick calls the show was all set. Another example would be the last party (which I didn't go to) where I guess a lot people showed up to hear us and they had to play it accustic since I wasn't there. Besides word of mouth I can think of two other reason why our fans are growning in number and will probably continue (besides our music being good).

One reason is definitly the Ready, Set, Die radio show run by Mike and Preston. It's an Allegheny show that is on from nine to twelve. I don't know how long this show has been on or how many people listen to it but I'm sure the number is at least in the 10s. One reason why our fans will grow in number is because of the upcoming shows. Jamnest 2004 is coming to Allegheny with Waiting for Never and Scorch the Sky (Scorch the Sky has the best drummer ever) on Saturday October 16th and we are headlining the show. Another major show is at the Allegheny College Campus Center where the Death of a Dayjob tour is going and we are playing in it. I should also mention that there is this mysterious guy named Cowboy that has been taking pictures of the band and might be making a video soon.

So far things are looking pretty good for the band. Since I am leaving for the Navy in December there is a question of what will happen after that. The plan is that Shawn will become the drummer and things will continue to grow. Since we found Shawn early he has pleanty of time to make his own drum parts and get everything down before I leave.

I've really enjoyed being in this band. Even though I didn't really know style of music and I disagree with a lot of the politics and such I still enjoy it. There are two things that make it enjoyable. The fact that I'm learning and writing parts for a new style of music and the fact that that's all that matters. Thanks for reading. More updates to come in a music store near you...

Note: all spelling and grammar mistakes are Prestons fault.
Posted 09/13/2004 - 23:04 by John in Drums Comments(0)

Drum Part: Alone Down There
Alone Down There (Modest mouse) has an interesting 6/8 drum part that took me a while to figure out on paper. The first thing I wrote down was the cymbals playing on the beat.

|x-x-x-x-x-x-|

The next part was the snare. The confusing thing about it is the off beat of the second hit and the fact that the whole part starts with a snare hit.

|o--o--o---o-|

So the drum part looks like this and it can be practice before bringing in the bass drum part.

|x-x-x-x-x-x-|

|o--o--o---o-|

The bass drum part is kind of hard to pick out since I can't turn up the bass on my computer right now so it may change in a future post. It can also be confusing since it is off beat with the snare and cymbal.

|o----o---o--|

In conclusion this is the entire part which is one of the coolest 6/8 drum parts I've ever heard.

|x-x-x-x-x-x-|

|o--o--o---o-|

|o----o---o--|

Update: I've also realized that this is the same thing played in Teeth Like God's Shoeshine but with a different and even cooler bass part.

|x-x-x-x-x-x-|

|o--o--o---o-|

|o-oo-o--oo--|

Of course Teeth Like God's Shoeshine has a lot of sequential variations but the basic part is similar.

Update: Also the cymbal part can be anything but it sounds really cool when it is an open hi-hat or crash.
Posted 09/13/2004 - 16:28 by John in Drums Comments(0)

Bush in the National Guard
I found an interesting article through instapundit that explains Bush's service in the National Guard.
After training, Bush kept flying, racking up hundreds of hours in F-102 jets. As he did, he accumulated points toward his National Guard service requirements. At the time, guardsmen were required to accumulate a minimum of 50 points to meet their yearly obligation.

[...]

...Bush earned 253 points in his first year, May 1968 to May 1969

Bush earned 340 points in 1969-1970. He earned 137 points in 1970-1971. And he earned 112 points in 1971-1972...
Read the whole thing. It mentions why Bush got out early and the evaluations he received durring his service.

While these are nice things to know about our President I would like to know why Kerry has not released his Military records since he is the one pushing this issue. The same goes for Medical records which Bush has released.
Posted 09/10/2004 - 09:57 by John in Politics Comments(0)

Ideas
Here is a list of topics I would like to post about in the future:
  • copying music
  • marijauana (legal or not, good or bad)
  • kerry or bush
  • sacrifice
  • new links from rss feeds I like
  • html basics (give good sites for learning html)
  • reason to join the Navy
  • Why I'm in a band
Posted 09/09/2004 - 23:39 by John in Posts Comments(0)

Kerry vs. Kerry
Kerry vs. Kerry. Kerry contradicts himself.
Posted 09/08/2004 - 16:01 by John in Politics Comments(0)

A bad month for Kerry
August has been a bad month for Kerry.
Posted 09/06/2004 - 14:43 by John in Politics Comments(0)

Long Time
The site is still running, but needs updated badly. It has been a month since Ive had a chance to work on this site so I have a lot to work on during the upcomming week. I plan to add more band sites, change the background, add some pictures, and some other things I can come up with for all of you. Their are a lot of things I want to add to this site, I ju8st need to find the time to work on it. Right now I am in the process of finding a room mate and moving out of my parents house. I just might end up moving on my own. I hope that things work out in the end. well my birthday is tomarrow and I plan on working on the site some more after work.
Posted 08/30/2004 - 20:13 by Renee in Posts Comments(0)

Fifty-nine Deceits in Fahrenheit 9/11
Michael Moore is at it again with Fifty-nine Deceits in Fahrenheit 9/11. Also Michael Moore Is A Big Fat Stupid White Man.
Posted 08/29/2004 - 14:45 by John in Posts Comments(0)

Starting New Version of Site
I started working on a new version of the site. All the plans for this upgrade are not complete but I would like to turn the main site into a wiki and integrate my blogson project into the wiki. I would also like to use struts along with my own data model and velocity templates. I also want to make all the web apps in a seperate context with their own ant builds. Once the web apps are build I will run sort of a meta build which will create the entire directory structure for my site. Then all I will have to do is upload everything in that directory. I actually have this done but I haven't uploaded everything yet.
Posted 08/27/2004 - 16:49 by John in Posts Comments(1)

Scorch the Sky
Scorch the Sky has the best drummer I have ever heard in my life.
Posted 08/27/2004 - 03:18 by John in Posts Comments(0)

Previous     Showing 176 through 196 of 196
Categories
Drums  (9)
Pictures  (3)
Shows  (2)
Posts  (105)
Programming  (16)
Site News  (37)
Lyrics  (4)
Politics  (9)
Philosophy  (8)
Show Reviews  (3)

News Archive
08/2003  (20)
09/2003  (10)
10/2003  (7)
11/2003  (11)
12/2003  (6)
01/2004  (14)
02/2004  (17)
03/2004  (20)
04/2004  (28)
05/2004  (13)
06/2004  (8)
07/2004  (12)
08/2004  (14)
09/2004  (16)

Stats
Categories: 10
Posts: 196
Comments: 49
Members: 9
Guestbook: 27

Hits:1563
Average Time:105
Since:06/24/2005

ToDo List
Find articles
sacrifice
marijauana
copying music

About Me
Drummer
Programmer