jwenting 1,905 duckman Team Colleague

correct, and if API are really nasty, they not just strip your metadata but insert their own, then register it as their copyrighted work and sue you for infringing their copyright.

I've dealt with some theft of my work in the past, and even just going after infringers is hard and expensive. Add this dimension of the infringer being able to claim ownership of your work simply by stripping it of your metadata and then claiming it to be orphaned, and it becomes impossible unless you have very deep pockets and systems to register every single image, document, and indeed anything else that you upload anywhere with IP agencies in the UK (and no doubt soonish every other country, such laws tend to spread like wildfire), each of which registrations carries its fees (even if maybe only the cost of posting copies of the work to the agency in print or digital form).

jwenting 1,905 duckman Team Colleague

yes, the contains() method checks whether a Collection contains a specific item, not an item that's just of the same type.

It's like putting marbles in a jar, each marked with a number. You check the numbers when retrieving marbles, not whether you got a marble.

jwenting 1,905 duckman Team Colleague

I recall seeing a prominent job offer for a Java position requiring 10+ years of experience...in 2001. Clearly they were just using buzzwords and random numbers that sounded experienced.

Or the one for a junior Windows 2000 administrator with at least 10 years experience in a professional environment of Windows 2000 networks I saw in 1999. And oh, they wanted someone of about 25 years old, seeing as they were looking for someone to join their "young and dynamic team" in a "rapidly changing company" with "many recent graduates".

It is elitist if it's on the grounds that 'you don't/can't do what I do'.

so now it's elitist to demand that a programmer actually can program rather than write an html document?

jwenting 1,905 duckman Team Colleague

a-data does not carry the copyrights, it is only relevant in finding the person who has it. Removing that information doesn't make it legal to own or use the materi

meta-data does not carry the copyrights, it is only relevant in finding the person who has it. Removing that information doesn't make it legal to own or use the material,

That's not true at all, as I explained in my earlier post in reply to jwenting.

The law can be summed up in one sentence as: "Giving the power to legally use content of unknown origin".

indeed data does not carry copyright RIGHT NOW, but as I explained this law changes that, REQUIRING copyright information in data and, when this is not present, the data is automatically orphaned.
Any unscrupulous person or company can use this at their leasure, taking data, stripping copyright information (if present, data predating this law not carrying such information is fair game, as is any data published elsewhere where such requirements do not exist), adding their own copyright notices in its stead, and calling it their own.

THAT's the problem with this legislation, it twists what constitutes a copyrighted work into making it impossible to protect yourself against content theft.
It's dead easy to write a crawler that travels the net, downloads stuff it finds, "cleans" it of any copyright notices (in most file formats those are well defined fields), and send it to your servers where you can then file …

jwenting 1,905 duckman Team Colleague

do you want unique or random? The two are mutually incompatible, when taking random numbers by definition you can't guarantee uniqueness as that places a restriction on the randomness.

jwenting 1,905 duckman Team Colleague
private static class AccountID implements Comparable<AccountID>, HasClone<AccountID> {
    public AccountID(int iID) {
        ID = iID;
    }

    public int compareTo(AccountID N) {
        return ID-N.ID;
    }

    public AccountID Clone() {
        return new AccountID(this);
    }

    public int ID;
};

That's your code, cleaned up a bit for readability.
Your "return new AccountID(this)" will fail, as you no doubt experienced.
The reason is that you did not supply a copy constructor "public AccountID(AccountID a)".
You also have a rather weird construct here with that "HasClone<>" interface. Why not use the perfectly good "Cloneable" interface from the standard library instead?

Your code would then change to something like

private static class AccountID implements Comparable<AccountID>, Cloneable {
    public int ID;

    public AccountID(int iID) {
        ID = iID;
    }


    public int compareTo(AccountID N) {
        return ID-N.ID;
    }

    public clone(Object o) {
        if (!(o instanceof AccountID) {
        }
        return new AccountID(((AccountID)o).ID);        
    }
};

Similarly, your Customer class has no constructor taking an argument of type Customer, hence that too fails. Either make such a constructor, or change the calling code to use the existing constructor instead.

Your method to retrieve the customer name tries to return the Customer, not his name.

And the balance method will return the balance just fine, but you're running into the inherent problem with floating point numbers on computers, which is rounding errors.
These are the reason that no real program will use floating point numbers like this. Instead you'd either use integers for dollars …

jwenting 1,905 duckman Team Colleague

yes, the form tag is required. And it can not be nested.
Which is likely why the CMS you use replaces it with a div tag if you have forms inside your html that it wraps.
Which itself is nasty, as you might have multiple forms on a page, with the same form elements on each, being submitted under different names to the server, which would get broken by this system.

So be very careful what you do, as this CMS may well break your html.

jwenting 1,905 duckman Team Colleague

in fact IE supports the new stuff in v9 and in large part v8, but to prevent old websites written before strict standards enforcement was in place in browsers from breaking that strict enforcement is turned off in them by default, and as a side effect some things that rely on that may not work correctly.

jwenting 1,905 duckman Team Colleague

The ads I've seen start with "Software Developer" then go on to be more specific about language requirements.

and HR departments still get it wrong...

Years ago worked as a consultant programmer, we got a request for a Java programmer to write a web application, applied for the projectg and got through HR approval.
When meeting with the project leads, turned out they weren't looking for a Java programmer or a web application, but a VB programmer for a desktop application.
Comparing the texts we had gotten from their HR department with the one they'd submitted to that same HR department, the two were completely different.
Different skillset, project description, everything. Just about the only thing that was the same was the name and contact information for the company.

jwenting 1,905 duckman Team Colleague

They say the reserved funds are going back to the Crown. But what if the rights-holder shows up after that period?

that means that the intellectual property falls to the government once the original ownership expires. IOW there's no more expiring copyright, anything where the initial copyright period expires automatically is owned by the government now.

Before this law, orphan work was essentially protected forever and could never be used. Now, it seems, the work can be used (which is the aim), but is only protected for a few years after it was registered as orphan. It seems to me like the rights-holder should be able to show up at any time (between now and forever) and stake his claim.

if I read it right, the problem with the law is that anyone can himself orphan a work by removing prior ownership information, effectively legalising content piracy.
Find a movie, strip the copyright and trademark information, add your own, and it's now yours.
Probably unintentional, but you never know with politicians, especially those seeking ways to buy votes from the internet generation of kids who have no respect for anything or anyone and will pilfer and loot based on the general premise that everything they want is theirs by right.

jwenting 1,905 duckman Team Colleague

Excel IS a data entry worksheet :)

jwenting 1,905 duckman Team Colleague

and in many other countries it may even be negative as you have to pay to dispose of electronic junk.

jwenting 1,905 duckman Team Colleague

The programming language you should know is the one you need for your current job at hand...
I'm sick and tired of people telling me what I "should do", that I "am not a real programmer" because I don't use Scala, Smalltalk, or whatever.

jwenting 1,905 duckman Team Colleague

an alternative to the classic way to create singletons that some people promote is to create an enum with a single instance.

public enum Something {
  INSTANCE;

  public void doSomething() {
        System.out.println("something");
  }
}

bit contrived IMO, but it works.

jwenting 1,905 duckman Team Colleague

the error is clear, your xml is invalid because of a typo on line 4.
you typed 'hibrnate-mapping' where it should read 'hibernate-mapping'.

jwenting 1,905 duckman Team Colleague

he believes everything that comes from far left places that set out only to slag anyone who's not left of center (or less left of center than him, I've heard people call Carter a right wing radical...), typified by his consistent ad-hominem attacks on anyone he disagrees with, for he knows he has no real arguments, can only "win" by having people give up trying to talk some sense into him.

jwenting 1,905 duckman Team Colleague

easiest would be to get rid of the xml mapping and use JPA2 compatible annotation based mapping instead.

jwenting 1,905 duckman Team Colleague

just reset the position to where you started and reuse the instance :)

jwenting 1,905 duckman Team Colleague

You can easily create a String instance from an array of char, but not using the toString method (which exists on the array, but won't have the expected result unless you know what to expect which most people don't).

Search the API documentation, it's right there in the page relating to the String class.
If you don't have it yet, you can download it from http://www.oracle.com/technetwork/java/index.html just like the JDK itself (or browse it online, but you really want a local copy).
The documentation downloads are near the bottom of the page.

jwenting 1,905 duckman Team Colleague
jwenting 1,905 duckman Team Colleague

you'll need to call an external program that can do that. Which would of course have to be operating system dependent.

And no, you're (on any server worth the effort invested in its security) won't have permission to execute that created executable file on the server.

jwenting 1,905 duckman Team Colleague

he'll need those anyway to deploy his thing after it's complete :)
And he can run one inside netbeans for debugging, or attach netbeans to one of them using the JVM remote debugging system.

jwenting 1,905 duckman Team Colleague

yes, and then there's the not closing the database resources when he's done with them and the lowercase classname.

jwenting 1,905 duckman Team Colleague

would have bought one years ago, if only they'd allow it to be set up with right hand button configuration for a left handed person.
At least the versions out back 3-4 years back didn't allow for that, making the thing useless for me.

jwenting 1,905 duckman Team Colleague

you can not connect from an applet to any resource hosted on a different host from the applet itself, that's for security reasons.
Best practice is to have the applet talk to a serverside resource (say a servlet or web service) and have that perform the database access.
That way the database username and password are also not downloaded to the client, reducing security risks greatly.

jwenting 1,905 duckman Team Colleague

Visual Studio and Eclipse (among others) provide some assist for writing CSS (like flyover help and autocompletion), and having a browser open with a page using the file you're editing can help a lot. Just press F5 on that browser after every save action to see it updated.

jwenting 1,905 duckman Team Colleague

Or just run the clients outside of Netbeans...

jwenting 1,905 duckman Team Colleague

increasing the amount of memory available to the JVM will not prevent a heap space error in this case, it will only delay it (you'll still run out of memory, it'll just take longer).

Restarting the application server is usually the best thing to do when redeploying applications, it's the only way to guarantee a clean situation at runtime (I've seen servers keeping things in memory they should have replaced during redeploy, causing weird runtime errors that take ages to debug, too often to still take the risk).

At development time, a light weight server usually takes only seconds to start, at production the installation should be scheduled for a time when there's no objection to downtime anyway.
The only exception would potentially be hotfixing, patching, something that should not have to be done except in dire emergencies.

jwenting 1,905 duckman Team Colleague

The closest we've seen so far in the US was the Occupy Wall Street movement and that died out when they started arresting people.

which was orchestrated by the government and died down when the negative press about it (the rampant rapes, looting, unsanitary conditions, etc. etc.) got worse than the propaganda value.

There's always some drones in a country, and the 0.01% or so making up the "occupy movement" are the US equivalent.

jwenting 1,905 duckman Team Colleague

you do somehow need to instill a sense of responsibility and reason into the general populace, and I don't know how that could possibly be achieved at this stage of the game.

that's got nothing to do with guns though... In my experience dealing with Americans however, gun owners tend to be overall more responsible and sensible individuals than those that don't own them (or even decry that they're evil).
Maybe the mandatory safety training many counties require prior to issue of a carry license has something to do with it, combined with the knowledge that they are now responsible for a tool that can easily be used to take a life in a way that posession of a kitchen cleaver does not.

It will be like the civil war all over, only instead of north versus south, it'll be more guns versus less guns.

rather, it will be about the right to defend oneself against state opression, triggered by attempted state oppression.
If it's those who have guns that can fight that fight, that will show clearly that indeed guns are needed to defend oneself against state oppression.

jwenting 1,905 duckman Team Colleague

which is exactly the same BS people spewed about the move from Windows 3.x to Windows 95, NT4 to Win2K, Vista to W7, ad nauseum.
And then a few months later complain when the new game they want doesn't run on their now outdated operating system.

Using that logic, you'd still be using CPM 1.0 (if not something even more ancient) because everything that came after can only have been worse.

jwenting 1,905 duckman Team Colleague
And the Republicans, after gerrymandering their way into a congressional majority have proposed changing the rules for the Electoral College to get a lock on that as well.

The Dems are doing it all the time, and much more effectively...
You're as are all your leftist friends projecting your own wrongdoings on your opponents, blaming them for what you're doing yourself.

The last US census was rigged to create a massive bias towards left leaning states for example, in order to get those to have a higher than actual population, leading to them getting more influence in the electoral college.
To achieve this illegal aliens were counted as citizens, among other things, in several states.

Of course the ultimate "success" of the "progressive movement" always means disaster. Economic collapse, massive bloodshed, large spread famine and poverty, oppression, government based on fear and the large scale murder of those who're not in line with "the program".

Vietnam, North Korea, China, USSR, Zimbadwe, Somalia, Yemen, the list goes on and on.

Lady Thatcher saved the UK from going the same way for a generation, maybe two, giving millions a chance to lead a life of freedom before their children and grandchildren are now squandering it all away in exchange for "free" iPhones and designer jeans.

jwenting 1,905 duckman Team Colleague
    <bean id="entityManagerFactory"
          class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"
          p:packagesToScan="jpatest.engine">
        <property name="dataSource">
            <bean class="org.springframework.jdbc.datasource.DriverManagerDataSource">
                <property name="driverClassName" value="org.firebirdsql.jdbc.FBDriver" />
                <property name="url"
                          value="jdbc:firebirdsql://localhost:3050/testdb" />
                <property name="username" value="xxxxxxxx" />
                <property name="password" value="yyyyyy" />
            </bean>
        </property>
        <property name="jpaVendorAdapter">
            <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
                <property name="database" value="DEFAULT" />
                <property name="showSql" value="true" />
                <property name="databasePlatform" value="org.hibernate.dialect.FirebirdDialect" />
            </bean>
        </property>
        <property name="loadTimeWeaver">
            <bean
                    class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver" />
        </property>
        <property name="jpaProperties">
            <props>
                <prop key="hibernate.hbm2ddl.auto">update</prop>
            </props>
        </property>
    </bean>

I have the following bean definition in my Spring application context, this gets loaded nicely and runs well.
Now, I may have the requirement to rewire this on the fly to point to a different database.
Is there any way to achieve this without stopping the application, modifying the application context xml, and starting it all up again?
I know you can inject properties from the runtime environment into the application context at startup, but this doesn't seem to work at changing the bean at runtime.

        HibernateJpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();
        vendorAdapter.setDatabase(Database.DEFAULT);
        vendorAdapter.setShowSql(false);
        vendorAdapter.setDatabasePlatform("org.hibernate.dialect.FirebirdDialect");
        DriverManagerDataSource dataSource = new DriverManagerDataSource();
        dataSource.setDriverClassName("org.firebirdsql.jdbc.FBDriver");
        dataSource.setUsername("aaaaaaa");
        dataSource.setPassword("bbbbbbb");
        dataSource.setUrl("jdbc:firebirdsql://localhost:3050/testdb");
        Properties jpaProperties = new Properties();
        jpaProperties.put("hibernate.hbm2ddl.auto", "update");
        LocalContainerEntityManagerFactoryBean e = new LocalContainerEntityManagerFactoryBean();
        e.setPackagesToScan("jpatest.engine");
        e.setDataSource(dataSource);
        e.setJpaVendorAdapter(vendorAdapter);
        e.setLoadTimeWeaver(new InstrumentationLoadTimeWeaver());
        e.setJpaProperties(jpaProperties);
        context.getAutowireCapableBeanFactory().configureBean(eb, "entityManagerFactory");
        context.getAutowireCapableBeanFactory().initializeBean(b, "entityManagerFactory");
        context.getAutowireCapableBeanFactory().applyBeanPropertyValues(eb, "entityManagerFactory");

does not have the desired effect. After this the application still writes to the initially configured database when requesting the EntityManagerFactory again from the application context (I would have expected Spring to replace the bean with the new one, but apparently it doesn't).

jwenting 1,905 duckman Team Colleague

still waiting for that random project idea generator...
Or "porject topic generator" to use your idiom.

Come on kids, it's a brilliant idea, you can save millions of kids like yourself the trouble of thinking up their own project ideas by making that.

jwenting 1,905 duckman Team Colleague

let's say instead that as a nation the USA has achieved a situation where the government won't be able to turn its citizens into mindless, obedient, drones of the state and you have the reality.
That's what the second amendment set out to achieve, and that is what it has hopefully achieved by this time, as I see the time coming quickly when the US government will indeed try to outlaw the posession of weapons and go on the confiscation route.

jwenting 1,905 duckman Team Colleague

Linux shot itself in the foot by declaring being "anti-Microsoft" to be a religious dictat, and deliberately doing everything different from the way it's done in Windows for no other reason than to do things differently from Windows.
They also shot themselves in the foot (in part because of that) by not standardising on a lot of things, from mouse and keyboard handling to copy-paste features to look and feel, effectively causing every single application to be incapable of communicating with every other application at a level that's required for end users, and presenting an utter mess of different user experiences between them as well.
And let's not even get started on the configuration nightmares. When I was running a Linux desktop I spent at least 2-3 hours digging through configuration files for every hour of productive work I got done.
The operating system should sit quietly in the background most of the time, not require the user to fiddle with it constantly to even start his applications...

jwenting 1,905 duckman Team Colleague

ah. and there's grimjack with his inevitable ad hominem attacks on those who don't share his left wing ideology of stealing from the workers to buy the votes of illegal aliens and lazy hippies.

jwenting 1,905 duckman Team Colleague

So what? Maybe that person on social security wanted intil he/she was 65+ years old in order to afford taking that vacation. Don't you think he/she disserved it? I'm on social security and I resent your impression that we old people have not worked for 50+ years to get where we are today.

no, not all of them are lazy no-gooders. But that doesn't mean people who work hard all their lives should be denied the fruits of their labour just so others can have a good time!

"social services" here decided a few years ago that "large screen plasma televisions are a human right", and by now have extended that to cable internet, just so they can play Santa from our tax money.
When that was decided I was using a small 20 year old CRT television and using dialup because I couldn't afford that stuff, yet the taxes I was paying that caused me to not be able to afford it were used to provide that to others for free...

That's fair according to you?

jwenting 1,905 duckman Team Colleague

And what is wrong with fair distribution of wealth (the key word being fair)?

It's be definition not fair to steal from someone who works hard for what he has and give it to some lazy SOB who can't be bothered.
It's now got to the point where less than 50% of the population pays more than half their income in taxes in order to pay for the largesse that keeps the other 50% in their designer clothes and large screen televisions, while they themselves can no longer afford those.
Yet the unproductive 50%+ scream they're not getting enough, that it's "not fair" that anyone has a higher income than them.

That's your "fair redistribution", leeching the lifeblood out of society to buy the votes of lazy buggers.
Is it fair that my father paid so much in taxes that we as a family could not afford to go on vacation some years, while a family on social security flew out to Spain or Italy 3 times a year for a 2-3 week stay in a luxury resort?
Is it fair that I as a kid was wearing clothes my mom made herself out of whatever scraps of material she could get cheap from stores, while kids from parents on minimum wages could afford designer jeans from all the subsidies they got for child support?
That's "fair redistribution of wealth" at work.

Fairness would have people decide where to spend their money, not …

jwenting 1,905 duckman Team Colleague

there is no "best" operating system, at most there might be one that's best suited to specific requirements.

Reverend Jim commented: Of course. +0
stultuske commented: as about always :) +0
jwenting 1,905 duckman Team Colleague

Even if the number were correct (and it isn't, not just the Twitter source data is suspect, the Slate motives are even more so) most would be criminals taking potshots at each other. Can't have enough of those. Much cheaper than putting them all through trials and keeping them in prison.
And of course more laws aren't going to stop criminals using guns, they're not allowed to use them according to dozens of laws already yet don't seem to mind all that much...

Over here in Europe there's a lot of violent crime as well, including gun crime, all using weapons that are illegal.
Only difference is, criminals can do whatever they like here because they're the only ones who have weapons, so they target little old ladies and families with small children, knowing they will have an easy go at it and their victims will be unable to defend themselves before they're killed to prevent them from identifying the criminals to the police.

jwenting 1,905 duckman Team Colleague

hmm, 2 days suspension for hitting a bully in the face once, leaving him with a bloody nose, who was beating up a friend.
The bully of course wasn't punished at all, but afterwards did leave both of us alone...

Ketsuekiame commented: Best way to beat them! I'm sure the teachers would have been sdympathetic and given you a relaxed punishment :) +0
jwenting 1,905 duckman Team Colleague

indeed, the armchair socialists who've never had to work a day in their pittiful existences to earn a living yet spit on those who do the actual work that allows them their life of laziness because they "are not giving their fair share", scream for "fair redistribution of wealth" from those who actually keep the world running to themselves so they can live in luxury while those who create what the lazers consume can't afford the products they themselves produce.
The people who decide that plasma televisions are a "human right" for the unemployed, yet fail to realise (or realise but couldn't care less) that those who work in the factories where those televisions are manufactured are incapable of feeding their children, let alone buy those same televisions.

jwenting 1,905 duckman Team Colleague

read... It's much better as it punishes the homework kiddo for his laziness.

jwenting 1,905 duckman Team Colleague

if your main objective is to pass it to a stored procedure, pass it as is (meaning, as a string) and write the stored procedure in such a way that it does the conversion.
Much more efficient, as it eliminates the implicit conversion of a Java Date to a database date, and pushes the conversion to the database server, which typically is much better at such tasks (faster...) than the application server.

jwenting 1,905 duckman Team Colleague

well said, happy. You never forget those you loved, you do learn to celebrate the good times you had together rather than dwell on the loss in misery.
It's a far better way to remember them, keep their memory alive.

jwenting 1,905 duckman Team Colleague

hard to tell.
Professionals hardly work alone on something, and I've indeed worked on some very large, very complex systems.
Things like the customer care and billing software for a mobile phone network, or a message broker and workflow engine for inter application communication, a major HRM system handling not just employee records but payslip generation and payment, an online rental system for hospital equipment, a warehouse system for a brewery that managed the complete materials flow through the entire system from intake of ingredients at one end to the loading of pellets and boxes into trucks for delivery to customers at the other end AND handled the billing as well. The list goes on :)

jwenting 1,905 duckman Team Colleague

Windows Blue is the internal codename for Windows 8.1, which will effectively be an update to Windows 8 based on large scale user feedback on the user interface.

Windows 8 OF COURSE will not run everything ever made in the past. No version ever has, especially games.
While Microsoft tries to maintain backwards compatibility for several releases, they can't test every piece of software under the sun written for Windows (not only is there way too much out there, there's loads and loads out there they don't have access to).
Major resellers like IBM and Adobe work WITH them to ensure compatibility and where needed will have updated versions of their own products at or before release time of a new Windows version.
Most of all game manufacturers don't do that, their margins are too slim, their products typically throw away releases that don't get updated past the first several weeks after release, they simply don't care and don't have the resources for it if they did care.

The main complaints people seem to have about W7 seem related to 1) the unfamiliar user interface and 2) performance on and compatibility with old hardware
SUCK IT UP GUYS! New software ALWAYS means a learning curve, and ALWAYS will require more up to date hardware than that 10 year old netbook running Windows XP.
If engineers had listened to you over the years we'd all still be using wooden sledges to drag scavenged food to our …

jwenting 1,905 duckman Team Colleague

and the leftist vile hatred of anyone who doesn't agree with their repulsive hate based ideology shows once again...

She didn't start a war with Argentina, she ended it by kicking a dictatorial regime that had invaded her country out of that country.
She kicked ass when she kicked the labour unions out of the stranglehold they'd had on British industry for decades, a stranglehold which had turned that same industry into the laughingstock of Europe, turning out overpriced products which were so poor in quality that people even preferred the Italian and Yugoslavian cars, proverbial for rotting even in the sales brochure, over Rover and Triumph.

She cleaned up crime ridden cities where leftist "governance" had created a drug fueled free for all where law abiding citizens were afraid of their life (a situation since returned by her leftist successors).

She helped bring about the demise of the Soviet Union and communist repression in eastern Europe.

All of course things leftists don't like, because leftists like crime, corruption, and the oppression of anyone who doesn't agree with them.

She wasn't perfect, nobody is, but she was a lot better than anything else produced by British politics (or indeed European politics as a whole) since Churchill or anyone who came after her.

jwenting 1,905 duckman Team Colleague

he actually did better than you, but can do even better.
The best thing to do with homework kiddos is to give them code that's utterly incomprehensible to them (and likely their teachers) and does something completely different from what they want to achieve, but seems to do just about what they want, so they spend a lot of time banging their head on it trying to get it to work (or better yet, turn it in as is and get a failing grade for it).