Answer to ‘What should I do to marry a rich guy?’ Tuesday, Nov 13 2007 

A friend send me this email, which is very interesting for me :)

———————————————————————

A young and pretty lady posted this on a popular forum:

Title: What should I do to marry a rich guy?

I’m going to be honest of what I’m going to say here. I’m 25 this year. I’m very pretty, have style and good taste. I wish to marry a guy with $500k annual salary or above. You might say that I’m greedy, but an annual salary of $1M is considered only as middle class in New York . My requirement is not high. Is there anyone in this forum who has an income of $500k annual salary? Are you all married? I wanted to ask: what should I do to marry rich persons like you? Among those I’ve dated, the richest is $250k annual income, and it seems that this is my upper limit. If someone is going to move into high cost residential area on the west of New York City Garden , $250k annual income is not enough.

I’m here humbly to ask a few questions:
1) Where do most rich bachelors hang out? (Please list down the names and addresses of bars, restaurant, gym)
2) Which age group should I target?
3) Why most wives of the riches is only average-looking? I’ve met a few girls who doesn’t have looks and are not interesting, but they are able to marry rich guys
4) How do you decide who can be your wife, and who can only be your girlfriend? (my target now is to get married)

Ms. Pretty

Here’s a reply from a Wall Street Financial guy:
Click Here For The Answer

Change junit & run file (main class) working directory at Netbeans 5.5 Web Project Tuesday, Nov 13 2007 

If you create a new project with Netbeans and select to create “web application”.
You’ll notice that at ‘project properties’ – ‘Run’ there’s no ‘Working Directory’ configuration, unlike General Java Project.

But what if you want to create some console application (with main method) in that project with Netbeans. You run it with Netbeans shortcut shift+F6 (run file) and realize that Netbeans set the working directory to project base path.
Then you also try to run your unit testing (junit) and realize the same thing.
You put some configuration file to specific directory in your source folder, and of course your console app & unit testing can’t find it.

I’m not very familiar with Netbeans, but after some googling I found out that Netbeans using ant : file build-impl.xml in nbproject folder. If we change the project properties configuration Netbeans will re-generate the build-impl.xml.
Netbeans also provider file build.xml in project base folder for customizing project build & run.

So i add at build.xml (copy from build-impl.xml and modify the tag ‘dir’ value)

 <target name=”-init-macrodef-junit”>
<macrodef name=”junit” uri=”http://www.netbeans.org/ns/web-project/2″&gt;
<attribute name=”includes” default=”**/*Test.java”/>
<sequential>
<junit showoutput=”true” fork=”true” dir=”${basedir}/build/web/WEB-INF/classes” failureproperty=”tests.failed” errorproperty=”tests.failed”>
<batchtest todir=”${build.test.results.dir}”>
<fileset dir=”${test.src.dir}” includes=”@{includes}”/>
</batchtest>
<classpath>
<path path=”${run.test.classpath}”/>
</classpath>
<syspropertyset>
<propertyref prefix=”test-sys-prop.”/>
<mapper type=”glob” from=”test-sys-prop.*” to=”*”/>
</syspropertyset>
<formatter type=”brief” usefile=”false”/>
<formatter type=”xml”/>
</junit>
</sequential>
</macrodef>
</target>

<target name=”-init-macrodef-java”>
<macrodef name=”java” uri=”http://www.netbeans.org/ns/web-project/1″&gt;
<attribute name=”classname” default=”${main.class}”/>
<element name=”customize” optional=”true”/>
<sequential>
<java fork=”true” classname=”@{classname}” dir=”${basedir}/build/web/WEB-INF/classes”>
<jvmarg line=”${runmain.jvmargs}”/>
<classpath>
<path path=”${build.classes.dir.real}:${javac.classpath}:${j2ee.platform.classpath}”/>
</classpath>
<syspropertyset>
<propertyref prefix=”run-sys-prop.”/>
<mapper type=”glob” from=”run-sys-prop.*” to=”*”/>
</syspropertyset>
<customize/>
</java>
</sequential>
</macrodef>
</target>

So every unit test & run-file at Netbeans will have working directory to {project basedir}/build/web/WEB-INF/classes

Follow

Get every new post delivered to your Inbox.