Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

O I C.

Don't ask why I typed like that. O_o

Were you educated in the southern US? Perhaps you recall it from the reading test:

L.A. (Lower Alabama) 12th Grade Reading Test
Test 1                          Test 2
MR DUCKS                        MR SNAKES
MR KNOT                         MR KNOT.  MNO SNAKES.
SAR                             OSAR
CM WANGS?                       CM EDBD Iz ?
LIB                             OIC
MR DUCKS                        MR SNAKES

Test 3                          Test 4
MR FARMERS                      MR MICE
MR KNOT                         MR KNOT
SAR                             SAR
CMMT POCKETS?                   CM EDBD FEET?
LIB                             LIB
MR FARMERS                      MR MICE



-----ANSWERS TO L.A. READING TEST
        Test 1                          Test 2
'Em are ducks!                  'Em are snakes!
'Em are not!                    'Em are not!  'Em [ai]n['t] [n]o snakes.
[Y]es [th]ey are!               Oh, [y]es [th]ey are!
See 'em wings?                  See 'em itty-bitty eyes?
[We]ll, I'[ll] be!              Oh, I see.
'Em are ducks.                  'Em are snakes.
        Test 3                          Test 4
'Em are farmers.                'Em are mice.
'Em are not!                    'Em are not.
[Y]es [th]ey are!               [Y]es [th]ey are!
See 'em empty pockets?          See 'em itty-bitty feet?
[we]ll, I'[ll] be!              [We]ll, I'[ll] be!
'Em are farmers.                'Em are mice.
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

A distinguished in one of our National newspapers stated he did not know the answers. But he was convinced it could not happen by chance. He posed a scenario whereby if you follow the chance theory, if it were possible to throw up into the air sufficient quantities of all sorts of RAW materials, that if it was done often enough we would eventually end up with the Taj Mahal!

A gross over-simplification at best. Under what conditions are these "materials" being "thrown up"? One could argue that man and stone are "materials" and "throwing them up in the air in sufficient quantities" did yield the Taj Mahal.

When I was at school learning from our schoolmaster, he always stressed that mankind's brain was not big enough to understand all the mysteries of our religion, which was in this case Roman Catholicism. I think there was a lot of truth in what he said and even as we think we are becoming smarter we are finding the more we learn, the more questions remain unanswered.

Not knowing something isn't a valid reason to quit trying to understand. Throwing up your hands and claiming that it's too difficult to puzzle out doesn't substantiate mysticism. Learning anything usually does entail finding there is more to learn. Just because you stop at that point does not mean everything beyond it is unknowable.

joshSCH commented: I agree +12
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, that is one piece. You have to actually use that variable though

public class Student extends Person
{
  Year studentYear;

	public Student( String name, String address, String phone,
		String email, Year grade )
	{
		super( name, address, phone, email);
                this.studentYear = grade;
	}
	
	public enum Year
        {
	Year FIRST = new Year( "Freshmen"),
	Year SECOND = new Year("Sophmore"),
	Year THIRD = new Year("Junior"),
	Year FOURTH = new Year("Senior");

	public final String gradeLevel;
	
	Year( String grade )
	{
		gradeLevel = grade;
	}
	
	public String getGradeLevel()
	{
		return gradeLevel;
	}
	
    }
	
	public String toString()
	{
		return String.format( "%s\n%s: %s\n%s: %s\n%s: %s\n%s: %s\n%s: %s\n\n" ,
			"Student Object",
			"Name", getFullName(),
			"Address" , getHomeAddress(),
			"Phone #" , getPhoneNumber(),
			"E-mail Address" , getEmailAddress(),
			"Grade Level", studentYear.getGradeLevel() );
	}
}
DeadJustice commented: thanks +1
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Perhaps you should just go kill yourself because you obviously know nothing about physics at all. You are an idiot, and the world would be a much better place without you.

Jeez Josh, forget to take your meds? Do you really think this is warranted over a disagreement in a freaking forum? If you do feel that this vitriol is called for in the context, you probably need to get outside and away from the internet awhile.

joshSCH commented: Sorry.. I just hate stupid people.. +12
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

"Me-first" government at its worst.

Care to elaborate?

~s.o.s~ commented: He has no idea what he is talking about, so you are out of luck. :-) +21
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I actually did use Quote tags back to that post but for some reason it did not post with them properly.

Well appoligies from those of us who are not perfect like josh and have enough time to post in realtime like him.

Last time i checked a Forum was not an IM system and hence does get a little bit scew wiff like that. But hey if josh thinks otherwise then i guess i was wrong. If i had of known that it was to confusing for you josh i would never have posted it.

Shame on you for running afoul of Josh's infallible judgement of relevance and acceptable posting practices. Did you not take account of his High Inquisitor Of Relevance And Forum Mores badge? Dare you question the Order and sow chaos in the Pattern of asynchronous communication?! Instigator!

joshSCH commented: haha.. FU -2
lasher511 commented: Even Josh's negative rep out for you. +3
Rashakil Fol commented: Rep doesn't matter in the Geek's Lounge. +6
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That looks really cool (totally new concept)lol
I will definately try that tonight. Thanks If you don't mind tomorrow I will tell you if it worked.

You might want to check out this book sometime: Head First Java

From what I have heard, it covers a lot of these object-oriented design topics very well. It was listed in a semi-recent "Top Java Books" posting over in JavaLobby and seems to be well-regarded. I've not read that one myself, but I was very impressed with the "Head First Design Patterns" book, which shares a couple of authors and the same presentation style.

ceyesuma commented: outStanding! +1
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Okay, num_reasons_why_cpp_better_than_JAVA++; thanks anyway, Ezzaral.

Well, you are welcome to that opinion of course, but operator overloading isn't really all that special and probably causes more confusion than it's worth. It's syntactic sugar and might save you a couple characters typing, but you can achieve the exact same functionality with methods that perform the operations and no one has to wonder what "+" or "-" does in a given context.

iamthwee commented: excellent point +11
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, according to this http://hudzilla.org/phpwiki/index.php?title=Avoid_overusing_function_calls it is, and zend.com has the following to say on it

Function calls carry a high overhead. You can get a bump in performance if you eliminate a function. Compiled languages, such as C and Java, have the luxury of replacing function calls with inline code. You should avoid functions that you only call once. One technique for readable code is to use functions to hide details. This technique is expensive in PHP.

in this page about optimizing php http://www.zend.com/zend/trick/trick-optimizing-php.php

iamthwee commented: Interesting links +11
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You could use regex to extract all of those things, but really an XML parser would be a lot easier and more appropriate to the task. An XML DOM parser is what I would recommend you use. See the XML tutorial here:http://java.sun.com/xml/tutorial_intro.html and specifically this section XML and the Document Object Model (DOM).

masijade commented: They always insist on regex. +4
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

So any child class of Super is going to begin with a height of 1 and width of 2.
You could then add things such as area, volume and other attributes from that base.

Could you also change one of the original attributes? Say if I wanted to call Super, but make the newest object have a height of 2.

Yes, you can change the base class variables as long as their scope allows. With no scope modifier, the variable is package-protected, which means other classes in the same package can access it. Protected access will allow classes in the same package and also any subclasses to access it. Public allows anything to access it. If you declare it private though, not even the subclasses can access the variable.

no1zson commented: always helpful +1
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Ham sandwich? Here I thought you were jewish. Corned beef on rye sounds better!

I'm not Jewish in the least - atheist, in fact. What gave you the impression that I was Jewish?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

See bold red comments in the code:

I having a small problem with the output on the Your CD's side, they are only viewable if I double click inside the pane, then they show up, almost like the pane is on top. How can I fix, I have tried moving things around and changing the TextArea to a TextField, but to no avail.

/**
 * Write a description of class CD here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class CD
{
    //The purpose of this class is to create the object of the CD with a title, category,
    //rating, artist
    private String artist;
    private String title;
    private String category;
    private int rating;
    public CD()
    {
        //constructor
        artist = "";
        title = "";
        category = "";
        rating = 0;
    }
    public CD(String _title, String _category, int _rating, String _artist)
    {
        //for ease, allow a constructor that asks for 
        //all information at the beginning
        
        title = _title;
        category = _category;
        rating = _rating;
        artist = _artist;
    }
    //methods to retrieve information
    public String getArtist()
    {
        return artist;
    }
    public String getTitle()
    {
        return title;
    }
    public String getCategory()
    {
        return category;
    }
    public int getRating()
    {
        return rating;
    }
}

 
 
/**
 * Write a description of class CDTester here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.TitledBorder;
import javax.swing.border.EtchedBorder;
import java.io.*;
// The purpose of this class is to …
peter_budo commented: Great debuging machine ;) +6
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Ok, I think I know what is causing your issue. Check your db.conf file for the root_path property. If you left it set to the default 'jvm' then you need to change that to use "configuration" as below

# root_path - If this is set to 'jvm' then the root
#   path of all database files is the root path of the
#   JVM (Java virtual machine) running the database
#   engine.  If this property is set to 'configuration'
#   or if it is not present then the root path is the
#   path of this configuration file.
#   This property is useful if you are deploying a
#   database and need this configuration file to be the
#   root of the directory tree of the database files.

root_path=configuration
#root_path=jvm
iamthwee commented: spot on! +11
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Ok, think about the operations that need to be performed to add, modify, and delete:
Add: Create a new product object and place it in your array. Since your array is currently full, you will have to make it larger.
Modify: The easiest. Just replace the values of the current product object with the values from your fields.
Delete: Remove an object from your array. There are a couple of ways to handle this, but probably easiest to shift all objects in positions higher than current index down and make the empty position at the end = null. Deleting things in this way will leave nulls in your array, which your navigation operations will probably need to check for and skip over.

I don't know if your classes have gotten to collections yet, but the things you are doing are easier to implement with a List. Look at the javadocs for ArrayList (or Vector would work too) and this tutorial is a very basic example of using it: http://www.anyexample.com/programming/java/java_arraylist_example.xml

peter_budo commented: This one is a realy difficult case ;) +6
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You should be able to just setBorder(null)

ImageIcon cup = new ImageIcon("pics/pots.gif");
       JButton button1 = new JButton(cup);
  // button1.setBackground(false);
      [B]button1.setBorder(null);[/B]
      button1.setBorderPainted(false);
      button1.setPreferredSize(new Dimension(111,51));
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

or just add

throws IOException

underneath your main method declaration.

...
public static void main(String args[])
throws IOException {
String name;
...


that should work.

No, main really should not throw exceptions. How do you intend to handle an exception that is thrown beyond the scope of your execution?

The catch block should be placed within main() and handle the exception gracefully.

iamthwee commented: Non sugarcoated straight talking advice! +11
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

"Fade to Black" - Metallica

John A commented: Perhaps a bit too mushy and sentimental, but still a good song. :-) +12
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

reCAPTCHA works well for us and was extremely easy to integrate
http://recaptcha.net/

iamthwee commented: nice +11
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The MouseEvent getX() and getY() methods will return the coordinates relative to the source of the event. If your panel is not that source, you will have to compute the coordinates yourself by adding them to the coordinates of the source (which also has getX() and getY() methods) within that panel. It just depends on the layering of your components and which is the source of the mouse event. This tutorial has more info if you need it:
http://java.sun.com/docs/books/tutorial/uiswing/events/mousemotionlistener.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, a couple of things. This query makes little sense

executeQuery("select * from result where result='"+ b1 + "'");

The field name in the where clause is the same as the table name.

Second, after you run the query and call .next(), you need to retrieve the field value like so

String value = rest.getString("theFieldNameYouWant");
msg.setText(value);

If you have other errors, post them.

peter_budo commented: Nice job +5
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

So?

I learned Java just so I knew at least one, non-Smalltalk-based, OOP language.

I'm still making use of other classes within the program (javax.swing.JFrame, javax.swing.JButton, etc.). I don't see what the big deal is. And my take on that algorithm is *not* avoiding the "point" of OOP. I'm providing a clean, readable program that works.

At least you aren't touchy about a suggestion.:-O
Your program certainly does work, it just demonstrates a methodology that a beginner may learn some bad habits from. Making everything static and calling it directly from main() is not a good standard practice.

And thank you for clarifying what main()'s purpose is in this world - here I am thinking it's just some useless, needed function. *rolls eyes*

Well, evidently you do need some clarification, so roll your eyes all you wish - it doesn't make it correct. main() should not directly call state-dependent methods directly inside a class. It should generally be used in a manner like an external driver program to initialize the object and utilize the public methods of that object. The object itself should handle any necessary internal interaction.

I think it's stupid to instantiate a class from within itself.

The object has to come from somewhere. Java only runs .class files and objects don't just pop into being on their own. You shouldn't really think of main() as being part of a class, but rather an entry point to running that class. Use main to set it …

iamthwee commented: Spot on. +9
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

So are you hinting that I could possibly use currCD to set this value, with little change since it is already coded and working?

I thought about trying something like that, when I started looking at putting key++ in my add button code, but was worried about using the same counter for two different things. Thought that might create some kind of problems somewhere.

You are only using it to set an item number property on the object. That won't affect your usage of currCD as the pointer to the current list position at all.
listModel.add() adds the item to the end of the list, thus the index of the last items increases by one automatically. You are just capturing that value and saving it to the item id property. You could set it to (currCD+1) if you don't want zero based item ids.

Since you are not using that value to access anything anyway, it doesn't matter what the number is as long as it's unique in the list. A simple int itemCounter and a setItemId(++itemCounter) would work just as well.

peter_budo commented: Nice explanation +5
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I would like to secure file access, can you point me in the right direction? Thanks Dave

If you are using Apache then .htaccess will allow you to control that. Here are a couple of tutorials:
http://httpd.apache.org/docs/1.3/howto/htaccess.html

http://www.javascriptkit.com/howto/htaccess.shtml

http://articles.techrepublic.com.com/5100-6347_11-5034311.html

Dsiembab commented: thanks appreciate it +1
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

See comments in the code (prefixed Ez).
This should be a working version, but I just banged it out in a text editor real quick so any syntax errors are yours to enjoy. I also didn't bother changing a couple of things that would make it slightly more efficient (like holding on to the reference of the found CD instead of getting it again) because I didn't want to induce even more confusion over the mechanics.

//start at first cd
//currCD = 0;    // Ez: removed, this has nothing to do with the search

// compare
//JTextField f = searchField;  // Ez: also removed, superfluous
final String searchString = searchField.getText(); 

SwingUtilities.invokeLater( new Runnable() 
{ 
    public void run() 
    { 
        boolean matchFound=false;    // Ez: this is a simple boolean flag for whether match found
        for(int i = 0; i < listModel.getSize();  i++) 
        { 
            CdwArtist cdEntry = (CdwArtist)listModel.elementAt(i);
                    
            if(cdEntry.getName().equalsIgnoreCase(searchString))     // Ez: Yes, you were comparing the cdname field against the search field
            { 
                matchFound=true;
                currCD = i;
                break;
            }
        } 
        // Ez: All you have to do now is check the match flag
        if (matchFound) {
            Inventorylist.setSelectedIndex(i); 
            Inventorylist.scrollRectToVisible( Inventorylist.getCellBounds(i,i) );
        
            CdwArtist newCD = (CdwArtist) listModel.get( currCD );
    
            artistField.setText(newCD.getArtist());
            cdNameField.setText(newCD.getName());    
            itemField.setText(String.valueOf(newCD.getItemno()));
            nstockField.setText(String.valueOf(newCD.getNstock()));
            priceField.setText(formatter.format(newCD.getPrice()));
        }
        else
        {
             // Ez: No match
            JOptionPane.showMessageDialog(null,"No CD Match Found","TryAgain",JOptionPane.INFORMATION_MESSAGE); 
        } 
    } 
});
no1zson commented: Best poster out here. Paitence of 10 people. +1
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

One I had not even considered until you asked it. I want to go back one record at a time, when I hit the very first record I would like to just loop around to the last record and start the process over again. Any suggestions?

Well, think about your index in relation to the list. If the decrement puts it past 0 you know what you want the next value to be and listModel has a size() function to help you out.

no1zson commented: The most helpful guy on this board ... at least to me. :o) +1
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It looks like you are getting a lot closer to something that will work out. I don't see any way for a user to add a CD though and you have already filled your array to the hard-coded max of 5 items. I assume you have put that part in to test the workings of your first(), last(), etc. methods?

no1zson commented: Always has a suggestion +1
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That's possibly the most offending thing people can say.
Everyone bad rep this man for saying such crap.

He is already bad-repped into the ground. Just ignore him.

joshSCH commented: Yea, lemme spread some around real quick so I can -rep him more +18
jbennet commented: yeah i agree +22
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You are calling the method in a static context because you have used the class name rather than an object reference to call the getValue() function. You will need to use the current CD object for this call. Your method is almost correct though. You want to set the text of the value field to the result of cd.getValue().

valueField.setText( currentCd.getValue() );

The getValue() method will do the calculation for you, you just need the listeners to call that calculation at the right time and put the value into the field you want it displayed in.

TheGathering commented: You beat me to it :-\ +1
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

By starting on GUI programming, you are venturing a lot deeper into OO programming then you've ever been before. Java has some extremely flexible APIs for visual components but they come at a cost of complexity.

The no class found is because you have used a variable you haven't defined (you mispelled it). Also, this line:

GuicdInventory guiceInentory = new GuicdInventory;

will not compile - no parenthesis.

The button to add new will not go into another class. It has to remain in the JFrame class. You will need the action listener to perform whatever code is needed to add the new CD.

no1zson commented: friendly and helpful, makes you learn. +1
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Before you criticize someone, you should walk a mile in his shoes. In that way when you do, you would be a mile away and you would have his shoes.

That is very wise advice.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

thanks that worked perfectly.

Glad to hear it. Things like that can be very confusing with differences in runtime settings.

With register_globals turned on, all variables from GET and POST are automatically available as a global variable and can be accessed as $variableName. When register_globals is off, you must retrieve the variable from $_GET[] or $_POST[] yourself to use it. The code that you were using from the book obviously had register_globals turned on.

iamthwee commented: very helpful +11
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

As I mentioned above, the constructor for CdwArtist is different. You have defined a constructor with the artist name parameter, so you must construct the object with that information. See comments I have added in your code below:

// begin display method 
    System.out.print("Enter up to 99 CD Names or STOP to Exit: "); 
    String nameInput = input.nextLine(); //read cd name 
    
    maxlength ++; 
    
     for(int i = 1; i < cds.length && !nameInput.equalsIgnoreCase("STOP"); i++)
     {// begin main While
      [B]cds[i] = new CdwArtist();   // This class does not have an empty constructor like this anymore. You changed it.[/B]
      cds[i].setName(nameInput);
      
      System.out.print("Enter CD Artist Name: "); // prompt for artist name
      CdwArtist artist = new CdwArtist(input.nextLine());  [B]// here you create with the correct constructor, but you don't use the object anywhere else.[/B]
                  
      System.out.print("Enter Price of this CD: "); // prompt for price
      cds[i].setPrice(input.nextFloat()); // price input from user. 
      while (cds[i].getPrice()<= 0) 
         {// begin while 
           System.out.print("Price Must Be Greater Than Zero. Enter Price: ");
            cds[i].setPrice(input.nextFloat()); // cd price loop from user.
          } // End while

I would recommend going back to your original class definition:

import java.util.*;

public class CdwArtist extends Compactdisk
{
 private String artist; // artist performing on cd
 
 // Artist constructor
 public CdwAartist()
 {
 artist = "";
 }
 
 // set value
 public void setCdArtist(String cdArtist)
     { 
     artist = cdArtist;
    }
        
    // return value
    public String getCdArtist()
    {
    return (artist);
    }
    

} //End Class

Then your code is simply this

... <snipped top part>...
    // begin display method 
    System.out.print("Enter up to …
no1zson commented: never fails to be helpful +1
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> Well, except for that very last person - they would probably still have one eye...
You the overlook the possibility of simultaneous eye stabbing.

It is certainly possible :)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

"An eye for an eye makes the whole world blind."

Well, except for that very last person - they would probably still have one eye...

harinath_2007 commented: awesome logic... +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

"If trees could scream, would we be so cavalier about cutting them down?

We might, if they screamed all the time, for no good reason."

- Jack Handy

ChrisHunter commented: funny post +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

ppl i have no idea wut u ppl are talkin about but if it is smokin then i have to say that i love it i smoke pipe weed dont see me as a nerd the pc is my 2nd hobby my first is babes ;) and cause of babes i smoke :@ but i am loving it hahahha so no body talks trash about smokin yall understand u bit***s

Was that English?

christina>you commented: hahaha +20
EnderX commented: A variation on the English Slanguage, maybe. +4
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

lockfiles are extremely risky.
What if the running instance of the application crashes (or the computer it's running on crashes which has the same effect)?

The lockfile will still be there when you start it again, causing it to never start until the file is manually removed.

Yes, depending on how you implement it, that is a risk. My code opens a FileChannel and obtains a lock with tryLock(). If the app crashes, this lock is lost. It deletes the existing lock file if one is present, so it doesn't really care if a previous lock was already there. I haven't been able to break it so far, but that doesn't mean it's bulletproof :)

try {
    lockFile = new File( env , "transport.lock");
    if (lockFile.exists())
        lockFile.delete();
    FileOutputStream lockFileOS = new FileOutputStream(lockFile);
    lockFileOS.close();
    lockChannel = new RandomAccessFile(lockFile,"rw").getChannel();
    lock = lockChannel.tryLock();
    if (lock==null) throw new Exception("Unable to obtain lock");
} catch (Exception e) {
    JOptionPane.showMessageDialog(this,"An instance of Job Selector is already running.","Warning",JOptionPane.WARNING_MESSAGE);
    e.printStackTrace();
    System.exit(0);
}

And what if some smartass finds out where the file is and removes it while the application is running? Now he can run as many instances as he wants side by side.

The file can't be deleted due to the lock in this case.

It works for us, but then I never though about the socket binding thing, so that may be an even easier and more well-behaved way to go about it.:)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

There is a difference between acting in a responsible manner and zealotry. Unfortunately many "Environmental Groups" fail to make a distinction =\

Aia commented: A very responsible comment. +6
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Originally Posted by joshSCH http://www.daniweb.com/forums/myimages/buttons/viewpost.gif
Okay, perhaps you guys are taking this a little bit out of context. A little bit of anything is good. Ever heard of vaccines? Injecting a little bit of a virus into a human is enough to enable the human to build a sufficient immune response. If we look at things at such a microscopic level then just about EVERYTHING is good for you.

Finally.
Thank God for common sense.

Well of course not. It's a virus.

umm ....

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

heh... Well, I married a red-head, so no complaints about ginger here =)

christina>you commented: aww :) +20
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Nicotine rivals heroin in terms of addictive power. This in itself makes it difficult to just stop. The rest of equation comes from the psychological adaptations ingrained into the smoker - the "self-brainwashing" if you will. Until someone has smoked for a period of time, they cannot know the extent to which it can become ingrained into your life: your mundane daily routines, self-image, stress coping mechanisms, sense of satisfaction, and many other areas we don't usually consciously give a lot of thought to.

Do not discount the difficulty of giving up nicotine for most people. Many of us smokers keep smoking wishing we could quit; that one day we would just magically stop. We can quit of course, but it really screws with your head for a few weeks and is very stressful.

Personally, I've been "seriously going to quit" for about nine months now - and the quit date stays the same - "soon".

Keep in mind, every smoker eventually quits.

In the same vein that all bleeding stops - eventually...

~s.o.s~ commented: "all bleeding stops - eventually..." - That was deep :( +23
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Since you have an address that accepts the symbol as a request parameter, it should be trivial to scrape the quote from the HTML response. Take a look at this article I ran across in a quick search for "stock quote web service". The article is using C# but given the similarity to Java you shouldn't have any trouble with it:
http://dotnetjunkies.com/Article/A3E8CA89-9AA1-4C3B-BCC6-901C92A523E9.dcik

joshSCH commented: Thanks for helping me :) +12
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I know, right? In senior English we read like 3-4 sex books... I swear, they were all about sex, and had just about every curse word in the English language..

It's the only way to get high school seniors to read anything! :)

Rashakil Fol commented: Dun dun dun! On-topic. +6
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If we are talking about book sales ~ the bible wins.
nothing comes close to the amount of those that have been sold

I don't think we were talking about sales, but great books. Those are not necessarily congruent.

It looks like your flamebait worked though...

Rashakil Fol commented: Rerail! Yay. +6
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

>If someone has a strong opinion, it's impossible to change their mind with logic.

I agree with you in regards that when dealing with normal people, logic and science rarely are effective. What is usaully effective is raising peoples' misplaced emotions, that always works. But with scientists and other academics and highly intelligent people I do not believe this is the case. For example in Richard Dawkins's The God Delusion he briefly mentioned a scientist who for 15 years did not believe in Golgi Bodies. This all changed when a scientist delivered a presentation, essentially proving, beyond reasonable doubt, the existence of Golgi Bodies. After the presentation he stood up and said "I've been wrong for 15 years." Did he have a dogmatic and illogical opposition to Golgi Bodies? Was he indoctrinated at birth to believe in Golgi Bodies? No, he just felt that the evidence was not there. And when it was presented to him, he immediately changed his mind. There is nothing wrong with admitting you were wrong. This Richard Dawkins said "brought tears to his eyes."

I would agree. I could accept the existence of (a) God if there was conclusive evidence of such. As it stands, I've yet to find any. I do not count a collection of edited, translated, and subscripted writings of long dead men as compelling evidence at this point in time.
(No, this is not an invitation to discuss "what is evidence?", as it's a tired topic that I will not …

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Plus, they get all uppity when it comes to theological questions.

That depends entirely on the question, however it can be difficult to have a serious conversation about something you find to be utter nonsense.

I long ago learned that debating anything of a religious nature is futile and only leads to resentment on both sides. Neither side is going to convince or "win over" the other. Discussion is perfectly possible, but as soon as one party tries to disavow the validity of the other viewpoint and press their own as the only correct one the discussion is essentially moot.

If you wish to make generalities about atheists, then the best fitting is perhaps that they become exceedingly irritated when religious people take it upon themselves to try to foist their belief system upon others. Most atheists that I have ever been around, including myself, do not make it a mission to convert others to atheism and seldom really talk about it much.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Tolkein's original intention?

>The Hobbit was largely backstory for the LotR trilogy.

Thats why I said prequel

I hate stories with so much detail.. useless detail too.

About 20 years ago I received a box set of the LoTR paperback series as a gift. I read a lot of fantasy back then and started in on The Hobbit immediately. Six months later I still hadn't bothered getting past the first quarter (if that) of the book - mired in seemingly trivial detail page after page, I was bored to tears with it.

After The Fellowship of the Ring movie came out a few years ago, my wife picked up the Lord of the Rings trilogy (single volume) and convinced me to read it after going on and on about how good it was. It was really a great book (or three technically)!

I still haven't gone back and taken another go at The Hobbit to see if perhaps my perspective of it was different now, but if you stopped reading LoTR because The Hobbit bored you, you may want to start with The Fellowship of the Ring and see if that suits you better. It certainly did me.

Rashakil Fol commented: Another on-topic post. +6
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

> thats cuz they're retarded

I'm not a jehova's witness, but please don't insult them.

pity them, perhaps...

Rashakil Fol commented: When trains derail, you're supposed to push them back on, not flip out and kill people. Er, threads. -1
christina>you commented: Equalizer +18
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Ill try to answear the question there…
1. Are programmers the most frustrated lot among all the IT professional in the recent years?
Nope, because its just a some option for all off u to keep stay exist. in this case not only in IT’ers too but in every section that need ur brain to think some brand new in some section..
2. If yes, then what the reasons are?
For as mu assumption here… thas all because a depretion off some deadline. But i thing it will be paid by some feed back from the company (if works in office) by some bonus fee or some additional intensive money, let said like steve *see on the images at the top*. And it will be fine too if he have been sell some software / web in good price (if only work alone) and thats all

3. Many have been telling me that most of the graduate programmers leave the programming field for good just after 5 years on average. Is it any way true?
Its well come back in every steeps to see and term condition off the problem. Because theres nothing closed chance if he have some chance to changes a carrer in export import and will be a billioner in some times right ?
4. If yes, then what they do after leaving programming for good?
Like i have said before. Its will be back to the self off each …

iamthwee commented: Me too! +10