Month: October 2005

  • The Misfits!

    The Misfits

    The Misfits show was awesome! Well- let me rephrase. When the Misfits played, it was incredible! However, there was 6 hours of opening bands. door opened at 6, the ‘Fits came on a little after 12. When they came on it was crazy though. Great Halloween set, and they opened with Halloween. They played for about hour- songs included Last Caress, Helena (Phil’s favorite song), Teenagers from Mars and American Psycho. Every song was at a really fast tempo. Like songs on speed. They came out for an encore, played Die Die my Darling, Rise Above, and ended on We are 138. It was some High Octane fun, plus, Jerry Only came right off the stage and started signing shit. Great night! Later!

    Get Cuts From the Crypt Greatest Hits 1996-2001 ||| View Flickr Pics

  • Google Print

    Google Print

    Google has a new service out called Google Print. Well apparently, Google is being sued over it for copyright infringement. After reading a letter Kottke posted on his site, I’m going to have to agree with the writer and most of the people on the internet.

    When you go to the library to take out a book, you are reading it for free. When you go to Amazon.com and look inside the book, you are reading it for free. When you go to Borders, Barnes and Noble, or any other book store, and read the book, you are reading it for free. If the book is interesting enough, you will purchase the book. Google Print is simply saving us the trip to the book store by allowing us to read the book online, and if we like it, buy the book online. My last trip to Borders resulted in me going back home and buying a book I read there at Amazon.Com. To take it one step further, the author who wrote Kottke asked her publisher to put her book on Google Print so people would read it.

    In my experience, people like to know what they are buying before they buy it. And if anyone is like me, they like to display the books they read. It makes me feel smarter, and it impresses people. If I have the chance to read a book before I buy it, and I like it enough, I will most definitely buy the book. Later.

  • Types of classes, part 2

    Today I will continue my series on classes in Java. To review where we are, you can read this post.

    First of all, we need to add a couple of methods to our class. There are two other types of methods in classes: reporters and mutators. A reporter does exactly that. As you might notice, our instance variables are private, meaning that only that class can see it. So if we want to know certain information about the student, we must write a method that looks at the variable in question and reports it. A mutator method changes the object in some way. So, that being said, lets write a couple of these methods.

    ………..

    public String tellName(){
    return name;
    }

    public void computeGPA(float newAvg){
    float oldAvg= gpa;
    gpa= (oldAvg+newAvg)/2;
    }

    Here, we have added two methods to our class- a reporter and a mutator. Our reporter, tellName, looks at the current value of String name and returns it. Since we are returning a value, the method must be of the type we are returning. It is public so it can be accessed from outside our class. Now, here I just wrote one for name, but to get the other values (age, gpa, status), you must write a reporter method for each variable, as it’s respective type (an age reporter would be of type int).

    Our next method is a mutator that figures out a new gpa. This is a simple one that accepts a new GPA from the client and averages the new and old one together. This method is not returning anything, just doing a calculation, so it is a void method. It is accepting a variable of type float, which we declare in the parentheses before the do work in the method. Then we perform the calculation. We declare a new variable called oldAvg that gets the value of gpa, and then we assign the new value to gpa.

    That is all there is to other types of methods. They can be as simple or as complicated as you see fit. Next time, I will talk about inheritance and extensions. Later!

  • Free iPod Video

    iPod Video

    Hello All, I’m doing that thing that I sometimes do to try to win free stuff. This time- An iPod Video. I know what you are probably thinking. I bash this thing all the time, why would I want one. Well, the fact of the matter is the video isn’t like the other iPod. So before bashing this one, I’d like to try it out. But only for free. I only need 4 people for this one, and then you can post your link in the comments if you’d like.

    As a side note, I still think Rio makes the best music players, and that will not change. But until Rio makes a “Video Carbon”, I will have to submit to this iPod. Also, my friend Mekosh mentioned to me that after 7 years he is switching from WinAmp to iTunes. I suppose if I get the iPod Video, I will have to too. It makes me mad that they don’t have .wma support, but apparently iTunes now converts to mp3. Later

  • Wait a minute…

    I’m not usually one to complain about the officials, but the Umps in game 5 of Yanks/Angels really screwed the Yankees over. The call of Cano came out of no where, and made us give up loaded bases. The second call of “safe” at first should have been out, and cost us a run. When Torre goes out to argue, you know there is a problem.

    I will concede that Santana pitched a good game.

  • Waiting…

    waiting

    I’m going to start by saying this: The critics didn’t like it. They thought it was a putrid pile of steaming shit. But guess what. I’m not a critic. I simply have an opinion. My Opinion: I thought it was funny. I laughed. That’s what the entire theater did. It’s getting ridiculed for it’s toilet humor and cliche jokes- but you know what- it’s still funny. And if you work in a restaurant, you will see a lot of it is true too. They say no characters were formed. But I saw characters- they were the stereotypes- but they were pretty accurate. The most value you found in this movie was in the banter. It was friends/co-workers having normal everyday talks, complaining about their shitty job. They all tried to make the shitty job fun, and they accomplished it- it’s what you have to do to stay sane.

    Any college student could probably relate to Dean, who doesn’t know what he wants, except he doesn’t want to work there for the rest of his life. And everyone could probably identify with one of the characters or knows someone like them. And there were definitely parts in the movie where you could say “Yes, I know what they are talking about!” It’s funny because it’s true. The thing you hate most when working in a restaurant is when it’s 5 mins to close, and some asshole comes in to sit down. Wherever you work, you have to deal with that person who is out to make everyone feel like shit because they have issues.

    The best part of the movie, I think, is that nothing was really resolved. It was just a day in the life of. Nothing was happily ever after, and while you look for that in a chick flick, you don’t really care in a comedy. It made the characters more real i think- you feel closer to them because they are easy to relate to.

    So, let people say what they want, but this was a funny movie- and something real. Too many movies now are concerned with how cool they can make a movie look, and while it’s cool to see extraordinary stuff, sometimes things go overboard. This is a down to earth movie that people might not like because of the toilet humor, but it’s hard not to watch it and say “This is so true.” Later!

  • Types of classes

    Today and over the last couple of days we have been talking about classes in Java. I’m fairly certain I understand them enough to now talk about them here. Tonight I will introduce them and continue the discussion later.

    Basically, a class “consists of a collection of types of encapsulated instance variables and types of methods, possibly with implementation of those types together with a constructor function that can be used to create objects of the class. A class is a cohesive package that consists of a particular kind of compile-time metadata. A Class describes the rules by which objects behave; these objects are referred to as “instances” of that class. …” In basic terms, it is the blue prints of an object. Inside of a class, you will find instance varibles with values, methods to manipulate these variables, and constructors of those objects. If we were to make a class called Student , it might look something like this:

    public class Student{

    private String name;
    private int age;
    private float gpa;
    private char status;

    public Student (String stuName, int stuAge, float stuGpa, char stuStat){
    name= stuName;
    age= stuAge;
    gpa= stuGPA
    status= stuStat

    }
    public Student(){
    name= “”;
    age= 0;
    gpa= 0.0;
    status= null;
    }

    }

    This class has 2 methods- both constructors- and 4 instance variables in it. The variables are initialized, but have no values. This is where the constructors come in. The first constructor for Student has 4 arguments sent to it. One for name, age, gpa and status. The constructor takes these 4 values sent by the client (NOT necessarily a user) and applies them to our 4 instance variables. The second constructor, which has no arguments, simply creates an object where all of them variables are set to nothing values.

    For right now we only have constructors in our class. Next time, I will talk about other possible methods for our Student class, and subclasses that might inherit out Student class. Later

    PS- to read ahead, and check out the counter class we have been working on in class, you can find it here
    I know this was a little rushed, so if you have any questions, feel free to comment them or email me.