Wednesday, December 11, 2002


When to use Affect vs Effect

 

            I quick google search didn’t produce the answer so I thought I’d post it:

            Affect is a verb

e.g. What you eat affects how much you weigh.

 

            Effect is a noun

e.g. The effect of putting your hand through a window is your hand will be cut.

 

For the grammatically challenged, if you can replace the word with result and it still makes sense your using it as a noun so say effect.

What you eat result how much you weigh.        - use affect

            The result of putting your hand through a window is your hand will be cut.  - use effect

 

share and enjoy


11:52:30 AM    

  Thursday, October 03, 2002


We talked about search engines in CS211 today. Got me thinking about some other good things I should read:


7:12:02 PM    

  Wednesday, September 04, 2002


Some new things in Java 1.4 I need to look into:  using the split method in the String class instead of StringTokenizer or using regular expressions.
5:01:54 PM    

  Monday, September 02, 2002


As I posted before, I'm struggling to get CVS (concurrent version control) to work with Forte.  Forte is Sun's free integrated development enviorment.  Netbeans is Forte's open source cousin.  Here's an update and some info for anyone else whose stuck on a similar problem.

CVS Server
I have the CVS server running as a service under XP.  Here's the windows installer and step-by-step install docs(a big thank you to Bo Berglund for writting the docs)

Stand Alone CVS Client
While you can access CVS repositories from within Forte you should also download the standalone windows client WinCVS in case you need to do something fancy.  If you want to script WinCVS you also need to download Python .

Forte's Built-in CVS Support
For detailed directions on configuring Forte to talk to your CVS server read Jeff Skubick's excellent How-To: "The NetBeans/Forte CVS Tutorial", parts 1 & 2 (part 3 is about CVS and TagLibs and is optional).  You can supliment that by refering to "NetBeans: The Definitive Guide" which is a new book by O'Reilly, the draft version of which you can currently (9/2/02) read online for free.

Here are two places I got stuck while setting things up and the solutions:

1) when adding the CVS repository in Forte, I was using a different name than the "/cvs" used in the tutorial example and forgot to include the "/".  I was unable to login until I noticed the problem.

2) adding binary files: The tutorial talks about selecting Binary from the add dialog box but Forte 4 has the CVS Client Settings: User Interface Mode set to "Only Default Switches" by default and so I didn't see the option until I went into options and changed this setting to "GUI Style"  I found the directions in the draft PDF of "NetBeans: A definitive guide book"

CVS
Now I just need to read more about CVS itself:

I'm going to review the free CVS book at redbean. Still digging.


1:13:32 PM    

  Saturday, August 31, 2002


just in case you didn't know...
rm -r
is not your friend. Anyone know how to redefine cygwin so it just moves stuff to the Recycling Bin? Until I get CVS working I'm going to be REALLY careful.
7:28:42 PM    

expanding jar files

jar -xf foo.jar



creating jar files

You can create the hw0.jar file by using the following command:

prompt> jar cf hw0.jar Hello.java Exclamation.java

The "jar" program is a utility that creates and unpacks Java archive files. The "c" option indicates that we want to create a new Java archive. The "f" option specifies that we want the Java archive to be created into the file named "hw0.jar". The remaining arguments on the command line give the names of the source files to put into the archive.

One very common error is to do the following: Try typing in the following command (but don't do it if you haven't already created hw0.jar using the command above first):

prompt> jar cf Hello.java Exclamation.java

What has happened here is that the Java archive file has been created and put into a file named Hello.java. This effectively has deleted your Hello.java file!. As you can see, the first parameter to the jar command is the name of the jar file, and the remaining parameters are the files to put in it. You must be very very very careful when creating your Java archive file, because if you accidentally delete one of your java files, it's impossible to get it back.

Luckily, in this case we have already created a good archive in hw0.jar, so we can restore our Hello.java file simply by unpacking the archive:

prompt> jar xf hw0.jar

 

More Detailed notes on using JAR


6:13:08 PM    

  Friday, August 30, 2002


I'm showing my friend Kevin how radio userland works.


1:54:26 PM    

  Wednesday, August 28, 2002


"there are many reasons to view HelloWorld as the worst possible way to begin a course in object-oriented programming. At its core, an object-oriented program should consist of highly-cohesive objects sending and receiving messages to other objects."

 [onjava.com]


12:55:00 AM