Help coderanch get a
new server
by contributing to the fundraiser

Peter Tran

Bartender
+ Follow
since Jan 02, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Peter Tran

Originally posted by Gregg Bolinger:
1400x1050 Res at 24 Bits.


That's insane. Are you using a magnifying glass to look at the screen? Does the notebook resolution even support it?
21 years ago
http://www.business2.com/articles/mag/0,1640,47135,00.html


U.S. Department of Labor data suggests that in the decade ahead, software will add almost 2 million new jobs, making it the fastest-growing field in the economy.


[ February 19, 2003: Message edited by: Peter Tran ]
21 years ago
Hi Cindy,
Wow...These salaries are high for today's market. It's like showing the past highs for the US stock markets. We'll we ever see the NASDAQ hit 5000 again? Probably sometime in the far future, but not now.
IHMO, If you readjust the numbers above by -10K or -15K, you would probably come closer to what an employer would be willing to pay.
-Peter
[ February 17, 2003: Message edited by: Peter Tran ]
21 years ago
Not trying to be a troll, but it looks like it's an employer's market and now it's they're turn to give back what they have been forced to receive which is to pay the ridiculous salaries that were being paid when everything was "great".
Great for who? The employees or employers?
I remember new graduates (during interviews) expecting pays in the 60K with sign-on bonuses. The kind of salary expectation really skewed it for everyone, because it made it difficult for companies to set a fair salary scale. How can you justify paying an employee that has been with you for 10 years in the 60's or 70's, when you're forced to hire recent college graduates for a little less? IMO, we're reaping what we sow. BTW, when I say we I mean the entire IT industry.
Before the entire Internet bubble popped, I bet you CIOs were asking "Are these typical salaries for a Junior Java Developer?"
21 years ago
nehal,
It would be easier for everyone to help you out if you posted some sample code of what you're trying to accomplish. I haven't had any problems opening files regardless of where they reside, unless the file is currently being locked by some other process.
BTW, remember to put your code between the open and closing UBB code tags.
E.g.

-Peter
21 years ago
Walter,
My wife in an "independent contractor" with an s-corp. You definitely want the company to pay the corporation and not directly to you. The s-corp then turns around and pays you while holding out all the required taxes. The corporation has to fill out quarterly Form 941 and pays the tax withholding for you. You then have to pay your half of social security and medicare. Since the corporation belongs to you, you are essentially paying the full social security and medicare taxes. It's a real shock to see how much more in taxes you have to pay. *ugh*
BTW, do find a good and trustful CPA. A good CPA is worth his/her weight in gold, because the tax code is a real headache. I would advise getting a good business accounting software to keep track of everything for you.
Best of luck!
-Peter
21 years ago
Jim,
Leave it to you to catch my far-fetch idea. You're absolutely right regarding the Vector API guarantees to maintain the order.
Regarding the second point, I thought about this but this opens a slew of issues if your code is multi-threaded.
I knew I was missing the best reason for not using Fintan's solution which was so clearly explained by you.
Thanks,
-Peter
22 years ago
Mike,
Not that I know of. You can create your own class ReferenceNew {} which wraps and returns you an actual. Within this ReferenceNew class, you can maintain a count of objects you created with new. It's easy if you want to keep a count of objects allocated since your program started, but it gets more complicated if you want to keep an accurate count of what objects are still active and the number objects that have been collected. Then you'll have to do some fancy stuff with the finalize() method, which I don't recommend doing unless you really need it.
You can look at the various profilers for Java. They do a very good job of keeping reference counts.
-Peter
22 years ago
Fintan,
IMHO, as someone who has to maintian a lot of code, your design, as functional as it is, would be a nightmare to maintain.
1) Your switch statement is dependent on the order of the vector which means if someone as SUN changes the implementation and the order isn't maintain, then this will be one really hard bug to find.
2) You solution requires creating an extra Vector object which I don't think is needed.
3) You solution doesn't handle mix-cases in the comparision.
Why don't you just use a bunch of if ... else if statments? This might not be pretty, but it's straight forward and very clear. There's no order dependency. No extra object is created, and you can handle mix case by using equalsIgnoreCase() inside the comparision.
-Peter
22 years ago
The only way to do this is to use java.io.RandomAccessFile and use the "rw" mode.
22 years ago
Saj,
What ORACLE API are you calling? Does the method accept an PrintStream reference?
-Peter
22 years ago
Stephanie,
Let me first ask why are you creating nested zip? First, it only complicates thing and you're not going to get better compression. In fact, if you take a zip file and keep on nesting it, your zip file will eventually just grow, because the zip algorithm cannot compress the original content anymore, but it does have to add header information. So all your doing with each nesting is just zipping a little bit of header information.
-Peter
22 years ago
"dickster"
We would like to keep JR a professional JAVA exchange forum. To that degree, we would appreciate if you comply with a few simple rules. One being the Username policy. Please read and comply with the following policy.
Thanks,
-Peter
22 years ago
With that kind of salary for NYC and the quality of people you can afford, I would be surprised if www.macarthura.com is still around after a year.
-Peter
22 years ago