 |
 |
Index ‹ java-programmer
|
- Previous
- 4
- Eclipse Plugin- UML Toolbar removalRecently I have uninstalled some Eclipse plug-ins from Eclipse 3.1. These
are from Visual Paradigm and are related with UML Modeling. Though all the
applications have been properly uninstalled from the computer, the toolbars
associated with these plug-ins are still there in the IDE.
How to remove it? How to remove a toolbar from Eclipse?
- 4
- how to get total number of rows contained in a resultsetHi friends
how to get the number of rows contained in filteredrowset or a simple
resultset.
Thanx in advance
praveen
--
praveen homkar
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200508/1
- 4
- JDK 1.5 metadata feature docs?Hi all,
Has anyone come across documentation that thoroughly describes metadata
functionality that will be available in JDK 1.5? I only saw some brief
examples of what it's supposed to do, and I downloaded JDK, but I can't find
any docs. Any pointers?
- 7
- jsp page giving error on tomcat 5Hi
i have written a class for database connection. It has two public
functions connect() which return an object of class Connection and
function close which close the connection
I am using that class in a jsp page to connect to database, but I am
getting an error :
Generated servlet error:
[javac] Compiling 1 source file
/usr/tomcat/work/Catalina/localhost/tpr/org/apache/jsp/web/jsp/index_jsp.java:7:
package db does not exist
import db.*;
^
/usr/tomcat/work/Catalina/localhost/tpr/org/apache/jsp/web/jsp/index_jsp.java:51:
cannot resolve symbol
symbol : variable ibDriverTest
location: class org.apache.jsp.web.jsp.index_jsp
Connection con = ibDriverTest.connect();
......
The class is in the package db. Can you please tell why is import db.*
not working.
Thanks is advance
Lalit
- 8
- OT- interesting article in the NY TimesNew York Times
http://www.nytimes.com/2004/01/26/opinion/26HERB.html
----------------------------------------------------------------------
----------
January 26, 2004
OP-ED COLUMNIST
Education Is No Protection
By BOB HERBERT
The conference was held discreetly in the Westin New York hotel in
Times Square last week, and by most accounts it was a great success.
The main objections came from a handful of protesters who stood
outside in a brutally cold wind waving signs that said things
like "Stop Sending Jobs Overseas" and "Put America Back to Work." No
one paid them much attention.
The conference was titled "Offshore Outsourcing: Making the Journey
Work for Your Corporation." Its goal was to bring executives up to
speed on the hot new thing in corporate America, the shipment of
higher-paying white-collar jobs to countries with eager, well-
educated and much lower-paid workers.
"We basically help companies figure out how to offshore I.T.
[information technology] and B.P. [business process functions]," said
Atul Vashistha, the chief executive of NeoIT, a California consulting
firm that co-hosted the conference.
Several big-name corporations had representatives at the conference,
including Procter & Gamble, Motorola, Cisco Systems and Gateway.
Because the outsourcing of white-collar jobs is so controversial and
politically charged (especially in a presidential election year),
there was a marked reluctance among many of the participants to speak
publicly about it. But Mr. Vashistha showed no reluctance. He was
quick to proselytize.
"These companies understand very clearly that this is a very painful
process for their employees and for American jobs in the short term,"
he said. "But they also recognize that if they don't do this, they
will lose more jobs in the future and they won't have an ability to
grow in the future."
He said his firm had helped clients ship about a billion dollars'
worth of projects offshore last year.
Noting that he is an American citizen who was born in India, Mr.
Vashistha said he is convinced that outsourcing will prove to be a
long-term boon to the U.S. economy as well as the economies of the
countries acquiring the exported jobs.
Whether it becomes a boon to the U.S. economy or not, the trend
toward upscale outsourcing is a fact, and it is accelerating. In an
important interview with The San Jose Mercury News last month, the
chief executive of Intel, Craig Barrett, talked about the integration
of India, China and Russia ?with a combined population approaching
three billion ?into the world's economic infrastructure.
"I don't think this has been fully understood by the United States,"
said Mr. Barrett. "If you look at India, China and Russia, they all
have strong education heritages. Even if you discount 90 percent of
the people there as uneducated farmers, you still end up with about
300 million people who are educated. That's bigger than the U.S. work
force."
He said: "The big change today from what's happened over the last 30
years is that it's no longer just low-cost labor that you are looking
at. It's well-educated labor that can do effectively any job that can
be done in the United States."
In Mr. Barrett's view, "Unless you are a plumber, or perhaps a
newspaper reporter, or one of these jobs which is geographically
situated, you can be anywhere in the world and do just about any job."
You want a national security issue? Trust me, this threat to the long-
term U.S. economy is a big one. Why it's not a thunderous issue in
the presidential campaign is beyond me.
Intel has its headquarters in Silicon Valley. A Mercury News
interviewer asked Mr. Barrett what the Valley will look like in three
years. Mr. Barrett said the prospects for job growth were not
good. "Companies can still form in Silicon Valley and be competitive
around the world," he said. "It's just that they are not going to
create jobs in Silicon Valley."
He was then asked, "Aren't we talking about an entire generation of
lowered expectations in the United States for what an individual
entering the job market will be facing?"
"It's tough to come to another conclusion than that," said Mr.
Barrett. "If you see this increased competition for jobs, the
immediate response to competition is lower prices and that's lower
wage rates."
We can grapple with this problem now, and try to develop workable
solutions. Or we can ignore this fire in the basement of the national
economy until it rages out of our control.
E-mail: email***@***.com
- 10
- Third tapestry tutorial availableHi all,
Tapestry is a web app framework (Java) that allows
your web designers to create and edit web pages using
a WYSIWYG editor (DreamWeaver, FrontPage or etc),
while your programmers can still add dynamic contents
to the pages.
I've created my third Tapestry tutorial. You're welcome
to read it
at http://www2.cpttm.org.mo/cyberlab/softdev/tapestry/
Thanks!
- 10
- Simple Newbie Question? Is This kind of things possible with Java3DHi,
Firts of all, I hope that my English can be understood, I hope so...
I'm very new to Java3D and have been surfing a bit on the net after soms
examples of thing that are possible with Java3D
Now I would like to know if the following is possible.
I would like to know if I can - and how it could be done - to add two simple
beams (rectangles in 3D) to the screen. Can this be done with some simple
xyz-coordainates that I have to give? Because in my final application I
would have to build some model that exists out of multiple beams (not cubes
only, different width, height en depth). I could easyli have the coordinates
of those objects, but is this enough or do I have to knwo some about
clipping (or does Java do that automatically?).
Also, those independant objects could be next to each-other (in 3D). Give
this problems? The only example I have seen so far (that sounds like my
problem) is the colored cube. But my object would have only the frames, I
should be able to look through the objects (damn, don't know the word at the
time...)
So can this be done. Maybe some more experienced people can give me a litlle
bit of code where thera are 2 beams, so that I can see the result, and knwo
if it is possible or not. Ohterwise, I should look for some other
techniques... If the result is acceptable, then I would read a lot of books
of course...
thanks very much
Goethals Frederik
- 11
- need help with JTabbedPaneHello all
I have a JTabbedPane with 6 Tabs (each Tab contains a JPanel). I want to
separate them into two groups: put 3 Tabs at the top left and 3 Tabs at
the top right of the JTablePane.
If it is possible, please help
Many thanks
S.Hoa
- 12
- Why no compiler-warning at invalid array-initializing ?I was wondering, why doesn't the java-compiler warn
for incorrect initializing of arrays, for example :
int[] myArray = new int[2];
myArray[3] = 1; // Runtime-error : ArrayIndexOutOfBoundsException.
Isn't it very easy for the compiler to detect this
kind of invalid code ?
- 12
- wholesale LV shoes(paypal accept)(www.all-wholesaler.com)paypal"Pirce change, Quality not change", we have adjusted price, we have
the best price.
Please visit our website (www.all-wholesaler.com), there are over
10,000pcs products on it, please browse and select what you would like
to order.
All-wholesaler Co., Ltd. is a professional manufacturer and exporter
with Wholesale Styles:Jeans Apparel, Jackets, Coat, Sweater, Suits,
Shirts, Hoody, Jeans, Boot, Shoes, Handbags, Purse, Wallets,
Sunglasses, watches, Scarves, Underwear, Bikinis, Short, Hat, Belt,
Pen, Ipod and etc, our products are Good Price with Excellent
Quality.
Our market includes Southeast Asia, North and South America; Oceania
and European countries. We have been setted up stable and credit-
standing relationship with many customers all over the world, and we
also have many chinese customers such as Guandzhou/Quanzhou/putian
etc.
More choice and surprise, welcome to visit our website, most of
products are marked price, please down load an order form and fill in
it, send product lists (product no. color size quantity etc) to us, we
shall fill in price lists and compute shipping cost, check whether all
products you order are in stock now, reply your email in 24hours.
We accept large & mini small quantity order, mixed order and sample
order. We will give best price to begin business with you. High
quality, hot style and competitive price are the main features of our
products.
We often ship by EMS DHL TNT Fedex AAE UPSetc, EMS/TNT shipping time
is 5-9 working days, DHL/Fedex shipping time is 3-4 working days, We
ship the small order by carrier of EMS. we shall refer to safety/
quantity/weight/speed, then select the best shipping type, of course,
we should ship by that you demand. our terms of payment is paypal
western union or bank wire transfer(TT) before shipping,we prefer
paypal!I hope it is available for you.
Welcome to visit our website (www.all-wholesaler.com) to know more
information. thank you very much!If you have any questions, please
contact us (MSN/Yahoo Messager/Email) or visit “how to order” of our
website, thanks.
MSN: email***@***.com
Yahoo Messanger:email***@***.com
Home Website: www.all-wholesaler.com
Home Website: www.all-wholesaler.com
Home Website: www.all-wholesaler.com
Home Website: www.all-wholesaler.com
Home Website: www.all-wholesaler.com
Home Website: www.all-wholesaler.com
Home Website: www.all-wholesaler.com
Home Website: www.all-wholesaler.com
payment:paypal,western union,moneygram,china bank
we prefer paypal!
sneaker wholesaler(paypal accept)(www.all-wholesaler.com)
hoodie supplier(paypal accept)(www.all-wholesaler.com)
air jordan factory(paypal accept)(www.all-wholesaler.com)
nike seller(paypal accept)(www.all-wholesaler.com)
jeans wholesaler(paypal accept)(www.all-wholesaler.com)
jacket supplier(paypal accept)(www.all-wholesaler.com)
air max 87 wholesaler(paypal accept)(www.all-wholesaler.com)
jeans factory(paypal accept)(www.all-wholesaler.com)
nike wholesaler(paypal accept)(www.all-wholesaler.com)
sneaker supplier(paypal accept)(www.all-wholesaler.com)
gucci seller(paypal accept)(www.all-wholesaler.com)
dunk factory(paypal accept)(www.all-wholesaler.com)
hoody wholesaler(paypal accept)(www.all-wholesaler.com)
bag supplier(paypal accept)(www.all-wholesaler.com)
hat merchant(paypal accept)(www.all-wholesaler.com)
r3 wholesaler(paypal accept)(www.all-wholesaler.com)
r4 factory(paypal accept)(www.all-wholesaler.com)
china sneaker merchant(paypal accept)(www.all-wholesaler.com)
bape wholesaler(paypal accept)(www.all-wholesaler.com)
TN supplier(paypal accept)(www.all-wholesaler.com)
prada merchant(paypal accept)(www.all-wholesaler.com)
women jordan wholesaler(paypal accept)(www.all-wholesaler.com)
air max LTD wholesaler(paypal accept)(www.all-wholesaler.com)
adidas seller(paypal accept)(www.all-wholesaler.com)
shox supplier(paypal accept)(www.all-wholesaler.com)
belt wholesaler(paypal accept)(www.all-wholesaler.com)
air max 90 merchant(paypal accept)(www.all-wholesaler.com)
air max360 wholesaler(paypal accept)(www.all-wholesaler.com)
good quality sneaker(paypal accept)(www.all-wholesaler.com)
- 12
- problem with ListIteratorHello,
I've read about the listiterator. It allows me to traverse the list in
either direction and modify the list during iteration.
But I've tried to add list elements during the iteration and got the
error message.
-- java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:444)
at java.util.AbstractList$Itr.next(AbstractList.java:421)
Is it possible to add the new elements at the end of the list??
Thanks
Lucia
- 13
- java cannot call bat filehi all ,
i have a problem . i am trying to call a bat file from java. When i
test using a exe file. I can call the exe file, but when its a .bat. it
just doesnt seem to work. here is the code:-
File[] fdrives = File.listRoots();
Runtime run = Runtime.getRuntime();
try {
frame.dispose();
JOptionPane.showMessageDialog(null,"Start Installation");
Process
pp=run.exec("D:\\EAServer_v4_Developer\\SilentInstall_Win.bat");
JOptionPane.showMessageDialog(null,"Installation Complete");
}
catch (Exception e) {
JOptionPane.showMessageDialog(null,"Error occured");
}
the location of the bat file is correct. Its a silent installation for
EAServer. Does anyone have any idea how come this happen ? Please help
or advice.
@ could mail me at email***@***.com also. :)
Thanks.
marvin.
- 14
- 14
- status bar ticking forwardHi,
I am using a servlet application which when I call up a certain page,
the status bar just keeps on ticking forward, you know the progress
bar at the bottom of the screen.
This is happening only on one page. I am doing nothing differnt to
this page that I think would cause this. Any ideas?
Thanks.
TP
- 14
|
| Author |
Message |
asj

|
Posted: 2006-5-17 5:57:00 |
Top |
java-programmer, What's the point?
Here's some thoughts from a Java guy at JavaOne:
http://beust.com/weblog/archives/000388.html
As JavaOne 2006 opens its doors today, the age-old question is bound
to be asked again and again: will Sun open source Java?
I have a fairly straightforward answer: I don't care.
And I suppose that most of the Java developers out there don't care
either.
What exactly is not open source in the Java we use today? I had to
think hard to answer this question because, frankly, everything I need
on a daily
basis is already available in source form, with one exception: the
Java Virtual Machine.
Sun's JVM (and others) is admittedly very good and I'm sure a lot of
developers would be interested in knowing how it works, but let's face
it: the inner workings of a Java Virtual Machine are completely
irrelevant to
most Java developers and not having access to this resource will
probably
never get in the way of writing Java code.
With that in mind, why is the question of open sourcing coming back so
often?
One word: zealotry.
*Posted from the Opera Mini Java browser on my Nokia 9300.
|
| |
|
| |
 |
Free Java (TM)

|
Posted: 2006-5-17 16:38:00 |
Top |
java-programmer >> What's the point?
"asj" <email***@***.com>
> Here's some thoughts from a Java guy at JavaOne:
>
> http://beust.com/weblog/archives/000388.html
>
> As JavaOne 2006 opens its doors today, the age-old question is bound
> to be asked again and again: will Sun open source Java?
>
> I have a fairly straightforward answer: I don't care.
You may think harder.
The Harmony-project, an effort to create an open-source JVM, has Intel and
IBM on board. Many other projects have joined Harmony, especially projects
from universities and open groups. That's something that never happened
under Sun's (excuse me!) "semi-totalitarist reignship" over Java (TM).
Do you want to have companies like IBM, Intel, BEA, Redhat etc. develop a
JVM? Or do you want to see only Sun and only Sun-developers doing that? Well
I think seeing only Sun-developers "doing the thing" is a little bit like
incest, isn't it?
So do you want to have IBM, Intel, BEA, Redhat, Novell <add many others>
cooperating (with Sun?) to develop a JVM. Yes or no? Sun's JRE/JVM is
proprietary and you can't expect from those companies or other projects to
cooperate on proprietary software.
Open-sourcing means "cooperation and sharing developers, money and
resources. Did you look at Sun's shareholder-value after first day of
JavaOne. It has fallen again.
And why the heck are guys like you, Roedy or Jeroen so attached to Sun
Microsystems? Did you forget that Java is a community-thing? Do companies
like IBM, Redhat not count for you. I simply don't understand that
attachment to Sun as if Sun Microsystems would be the only important company
on planet earth.
You remind me the Microsoft-zealots sometimes. For those zealots there is
nothing else then Microsoft, Microsoft and Microsoft.... for you and other
Java developers there is nothing else then Sun, Sun and Sun...
Don't be idiots, folks.
|
| |
|
| |
 |
Roy Schestowitz

|
Posted: 2006-5-17 18:36:00 |
Top |
java-programmer >> What's the point?
__/ [ Free Java (TM) ] on Wednesday 17 May 2006 09:38 \__
> "asj" <email***@***.com>
>
>> Here's some thoughts from a Java guy at JavaOne:
>>
>> http://beust.com/weblog/archives/000388.html
>>
>> As JavaOne 2006 opens its doors today, the age-old question is bound
>> to be asked again and again: will Sun open source Java?
>>
>> I have a fairly straightforward answer: I don't care.
>
> You may think harder.
> The Harmony-project, an effort to create an open-source JVM, has Intel and
> IBM on board. Many other projects have joined Harmony, especially projects
> from universities and open groups. That's something that never happened
> under Sun's (excuse me!) "semi-totalitarist reignship" over Java (TM).
That's a very strong statement. Java's code was not locked in a safe, unlike
for example, some other (very popular) codebases which spring to mind.
> Do you want to have companies like IBM, Intel, BEA, Redhat etc. develop a
> JVM? Or do you want to see only Sun and only Sun-developers doing that?
> Well I think seeing only Sun-developers "doing the thing" is a little bit
> like incest, isn't it?
>
> So do you want to have IBM, Intel, BEA, Redhat, Novell <add many others>
> cooperating (with Sun?) to develop a JVM. Yes or no? Sun's JRE/JVM is
> proprietary and you can't expect from those companies or other projects to
> cooperate on proprietary software.
Good point. Many would be out there to benefit (at the expense of Sun MS
perhaps). Overall, I belive that many end users (developers alike) would
benefit, corporations aside.
> Open-sourcing means "cooperation and sharing developers, money and
> resources. Did you look at Sun's shareholder-value after first day of
> JavaOne. It has fallen again.
>
> And why the heck are guys like you, Roedy or Jeroen so attached to Sun
> Microsystems? Did you forget that Java is a community-thing? Do companies
> like IBM, Redhat not count for you. I simply don't understand that
> attachment to Sun as if Sun Microsystems would be the only important
> company on planet earth.
It's a matter of possessiveness. It's also a promise to shareholders.
> You remind me the Microsoft-zealots sometimes. For those zealots there is
> nothing else then Microsoft, Microsoft and Microsoft.... for you and other
> Java developers there is nothing else then Sun, Sun and Sun...
What about 'Macheads'? Any exception there? Of course not. There are Linux
zealots, as well.
> Don't be idiots, folks.
Tone it down, man. *smile*
Best wishes,
Roy
--
Hasta la Vista, MS Vista.
http://Schestowitz.com | Free as in Free Beer ? PGP-Key: 0x74572E8E
11:30am up 19 days 18:27, 8 users, load average: 0.79, 0.57, 0.41
http://iuron.com - semantic engine to gather information
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2006-5-17 22:30:00 |
Top |
java-programmer >> What's the point?
"Free Java (TM)" <email***@***.com> wrote in message
news:e4endm$6ma$01$email***@***.com...
>
> "asj" <email***@***.com>
>
>> Here's some thoughts from a Java guy at JavaOne:
>>
>> http://beust.com/weblog/archives/000388.html
>>
>> As JavaOne 2006 opens its doors today, the age-old question is bound
>> to be asked again and again: will Sun open source Java?
>>
>> I have a fairly straightforward answer: I don't care.
>
> You may think harder.
> The Harmony-project, an effort to create an open-source JVM, has Intel and
> IBM on board. Many other projects have joined Harmony, especially projects
> from universities and open groups. That's something that never happened
> under Sun's (excuse me!) "semi-totalitarist reignship" over Java (TM).
Your "arguments" here seem to be supporting the "don't care" conclusion.
If IBM, Intel and others, actually do make an open source JVM, then who
cares what Sun does? We'll just dump Sun and use harmony instead, right?
What Sun actually does or does not do is irrelevant at that point.
>
> Do you want to have companies like IBM, Intel, BEA, Redhat etc. develop a
> JVM? Or do you want to see only Sun and only Sun-developers doing that?
> Well
> I think seeing only Sun-developers "doing the thing" is a little bit like
> incest, isn't it?
The fact that the JVM is closed source does not in any way imply that
incest is occuring. You should probably formulate your arguments more
clearly.
>
> So do you want to have IBM, Intel, BEA, Redhat, Novell <add many others>
> cooperating (with Sun?) to develop a JVM. Yes or no? Sun's JRE/JVM is
> proprietary and you can't expect from those companies or other projects to
> cooperate on proprietary software.
I don't particularly care whether IBM, Intel, BEA, Redhat, Novel and
many others cooperate with Sun, or if they compete with Sun, or if they just
ignore Sun altogether.
I personally don't see a need for an open source JVM, so *I* don't
nescessarily want Sun to open source their JVM. Perhaps other people DO see
a need for an open source JVM. These people have two choices: Whine and beg
Sun to open source their JVM, or just implement one themselves.
[...]
>
> And why the heck are guys like you, Roedy or Jeroen so attached to Sun
> Microsystems? Did you forget that Java is a community-thing? Do companies
> like IBM, Redhat not count for you. I simply don't understand that
> attachment to Sun as if Sun Microsystems would be the only important
> company
> on planet earth.
I have not seen evidence of any attachment in the people you've named
(though admitedly I haven't seen many of Jeroen's postings).
- Oliver
|
| |
|
| |
 |
Free Java (TM)

|
Posted: 2006-5-18 14:47:00 |
Top |
java-programmer >> What's the point?
"Oliver Wong" <email***@***.com>
> I have not seen evidence of any attachment in the people you've named
> (though admitedly I haven't seen many of Jeroen's postings).
But I've seen it. There is a common thinking that Sun and only Sun
represents Java (TM). And only Sun should be responsible for the JVM.
There is something called "the Java-community-process".
Java is a technology supported by a broad and big community of companies and
organizations. So the "brain" or the "core" of Java say the JVM MUST be
developed and financed by the whole JCP say by all companies representing
the Java-community.
And why?
Because the big and broad Java-community has much more resources and
developers to offer then Sun has. That's the whole point. What's wrong with
that opinion?
Do you think that Sun and only Sun should be resonsible developing the JVM
and only Sun decides about Java EE?. That's exactly what happens. All new
technologies representing Dolphin are Sun-only technologies. Sun doesn't
even care to ask other companies what they want to have . Sun ignores all
technological progresses i.e. made by eclipse.org.
Do you think BEA, Redhat, Novell, IBM, Intel, SAP, Nokia and all the other
companies have no qualified and talented software-departments? Tell me one
reason why the development of the JVM should be a Sun-only thing.
And what happens when Sun goes out of business? That never happens?
Shit happens and SCO happened.
What happens when <insert-other-company> buys Sun's JVM?
Keep in mind that Sun's JVM is proprietary. I don't want to risk that so
there must be a free and independent Open-Source JVM financed,
developed and controlled by the whole Java-community.
Sun posts one quarterly loss after the other. According to some analysts Sun
Microsystems should be restructurized what means that at least 8000
Sun-employess will be laied off. I guess it is a very bad idea to trust Sun.
btw I didn't intend to be offensive. The term "Idiots" that I used in my
former posting is offensive. So I apologize for using a wrong term. What I
intended to say was "think harder" so it was a (very bad) rhetorical phrase.
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2006-5-18 22:40:00 |
Top |
java-programmer >> What's the point?
"Free Java (TM)" <email***@***.com> wrote in message
news:e4h598$4ug$02$email***@***.com...
>
> There is a common thinking that Sun and only Sun
> represents Java (TM).
Depending on your definition of "represents", this common thinking is
mandated by law. Java is a trademarked term, as you've noted, and Sun owns
the trademark.
> And only Sun should be responsible for the JVM.
This seems to imply that there is only one JVM. There's more than one
JVM, so the premise of the statement doesn't hold.
>
> There is something called "the Java-community-process".
> Java is a technology supported by a broad and big community of companies
> and
> organizations. So the "brain" or the "core" of Java say the JVM MUST be
> developed and financed by the whole JCP say by all companies representing
> the Java-community.
I don't understand this paragraph. Who or what is the "brain" or "core"
of Java which is saying the JVM must be financed in such a matter? Is this a
reference to Sun? Do you have a citation for the core making these demands?
>
> And why?
> Because the big and broad Java-community has much more resources and
> developers to offer then Sun has. That's the whole point. What's wrong
> with
> that opinion?
I won't address "what's wrong" with an opinion I don't understand. =)
When you clarify, I might say more on this.
>
> Do you think that Sun and only Sun should be resonsible developing the JVM
> and only Sun decides about Java EE?.
What *should* or *should not* happen is known in meta-ethics and
philosophy as the "Is-Ought" problem. See
http://en.wikipedia.org/wiki/Is-Ought_Problem
In short, it's meaningless in this context to say what Sun *should* be
doing. If instead one wishes to look at what Sun has the rights (legally,
morally, ethically, or in any other sense you wish), I think it's fully
within Sun's right to maintain ownership of the JVM and Java EE, should they
wish to do so. It's also fully within their right to release it to the
public domain. Or anything in between. They own the technologies. They've
developped them from scratch. They didn't acquire those technology
maliciously or through subterfuge. They can do whatever they want with it.
> That's exactly what happens. All new
> technologies representing Dolphin are Sun-only technologies. Sun doesn't
> even care to ask other companies what they want to have . Sun ignores all
> technological progresses i.e. made by eclipse.org.
I strongly doubt that Sun "ignores" the work of the Eclipse development
team. But I guess at this point, it's just your word against mine.
>
> Do you think BEA, Redhat, Novell, IBM, Intel, SAP, Nokia and all the other
> companies have no qualified and talented software-departments?
I never made that claim. And no, I don't think that the above people
have no qualified or talented software departments.
> Tell me one
> reason why the development of the JVM should be a Sun-only thing.
I'm not going to. Instead, I'd like to point out to you that the
development of JVMs (plural) is NOT a Sun-only thing. The Sable group, for
example, is not affiliated with Sun, and they've developped a JVM called
SableVM. See http://sablevm.org/
>
> And what happens when Sun goes out of business? That never happens?
> Shit happens and SCO happened.
I'm not a lawyer, but I suspect 50 years or so after Sun goes out of
business (might be 70, might be 150, I don't know), all the intellectual
property that wasn't sold off to other companies becomes public domain and
you can do whatever you want with it.
>
> What happens when <insert-other-company> buys Sun's JVM?
Then they get to do whatever they want with it. But that doesn't mean
they get to do whatever they want with, for example, SableVM, which they
haven't bought in the above theoretical situation.
> Keep in mind that Sun's JVM is proprietary. I don't want to risk that so
> there must be a free and independent Open-Source JVM financed,
> developed and controlled by the whole Java-community.
And there IS an open source JVM. In fact, there are several.
As for it being developed and controlled by the whole Java-community,
that'll never happen. Why? Because there will always be someone, somewhere,
who is part of the Java-community, and who isn't developing that JVM. Think
1st year university students who are just learning how to write "Hello
World" in Java. They're part of this community, and they're not helping with
the development of this JVM.
>
> Sun posts one quarterly loss after the other. According to some analysts
> Sun
> Microsystems should be restructurized what means that at least 8000
> Sun-employess will be laied off. I guess it is a very bad idea to trust
> Sun.
I don't see how the first few sentences lead to the last sentence. I
don't see how the last sentence has anything to do with the rest of this
post. Why do you need to trust Sun?
- Oliver
|
| |
|
| |
 |
Tor Iver Wilhelmsen

|
Posted: 2006-5-18 23:13:00 |
Top |
java-programmer >> What's the point?
"Free Java \(TM\)" <email***@***.com> writes:
> But I've seen it. There is a common thinking that Sun and only Sun
> represents Java (TM). And only Sun should be responsible for the JVM.
Java (TM) is Sun yes - it's their trademark, like Linux is the
trademark of Linux Mark Institute.
> Keep in mind that Sun's JVM is proprietary.
Do a search on "Sun Community Source License". Anyone can get a look
at Sun's source. How do you define proprietary? Sun do not have
exclusive legal rights to it, they have a license that let others use
it. And it sure isn't profit-making, what with beeing given away free
(as in beer).
> I don't want to risk that so there must be a free and independent
> Open-Source JVM financed, developed and controlled by the whole
> Java-community.
And there are multiple attempts, mostly failing because users are
comfortable with the VMs from Sun, IBM etc.
> Sun posts one quarterly loss after the other. According to some
> analysts Sun Microsystems should be restructurized what means that
> at least 8000 Sun-employess will be laied off. I guess it is a very
> bad idea to trust Sun.
Why? I mean for every open-source project X, do you make sure you know
the financial health of the maintainer(s) before using it? If Sun goes
down, there are alternatives even though you do not know of them.
|
| |
|
| |
 |
Roedy Green

|
Posted: 2006-5-19 2:17:00 |
Top |
java-programmer >> What's the point?
On Thu, 18 May 2006 08:47:06 +0200, "Free Java \(TM\)" <email***@***.com>
wrote, quoted or indirectly quoted someone who said :
>Tell me one
>reason why the development of the JVM should be a Sun-only thing.
The smaller the team the better the quality of the code and the faster
the development. You better off to use a small crack team.
You want community input on priorities where the JVM should go next
but not to implement it.
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
asj

|
Posted: 2006-5-19 13:08:00 |
Top |
java-programmer >> What's the point?
Free Java (TM) wrote:
> Do you want to have companies like IBM, Intel, BEA, Redhat etc. develop a
> JVM?
Dude, so long as my apps run the same way in their JVM, I don't
actually care who owns the JVM.
>
> So do you want to have IBM, Intel, BEA, Redhat, Novell <add many others>
> cooperating (with Sun?) to develop a JVM. Yes or no?
isn't this a case of "waste of time"? Why not use your energy to
contribute to enriching the current JVM rather than creating competing
ones? - and btw, IBM's J9 VM is pretty widely-used.
> Open-sourcing means "cooperation and sharing developers, money and
> resources. Did you look at Sun's shareholder-value after first day of
> JavaOne. It has fallen again.
Did you look at the shares of other companies? Dude, the entire STOCK
MARKET fell 200+ points in 1 day!
>
> And why the heck are guys like you, Roedy or Jeroen so attached to Sun
> Microsystems? Did you forget that Java is a community-thing?
I'm grateful to Sun for introducing Java, but other than that I'm not
anymore Sun-centric than IBM-centric.
> You remind me the Microsoft-zealots sometimes. For those zealots there is
> nothing else then Microsoft, Microsoft and Microsoft.... for you and other
> Java developers there is nothing else then Sun, Sun and Sun...
Uh, ok.
>
> Don't be idiots, folks.
Thanks. I'll try. Try harder.
|
| |
|
| |
 |
asj

|
Posted: 2006-5-19 13:51:00 |
Top |
java-programmer >> What's the point?
Free Java (TM) wrote:
> But I've seen it. There is a common thinking that Sun and only Sun
> represents Java (TM). And only Sun should be responsible for the JVM.
Big Foot. UFOs. Sun's JVM.
>
> There is something called "the Java-community-process".
> Java is a technology supported by a broad and big community of companies and
> organizations. So the "brain" or the "core" of Java say the JVM MUST be
> developed and financed by the whole JCP say by all companies representing
> the Java-community.
Well, IBM spends more on Java research than Sun does. Is that what
you're looking for?
>
> Do you think that Sun and only Sun should be resonsible developing the JVM
> and only Sun decides about Java EE?. That's exactly what happens. All new
> technologies representing Dolphin are Sun-only technologies. Sun doesn't
> even care to ask other companies what they want to have . Sun ignores all
> technological progresses i.e. made by eclipse.org.
Personally, I use Netbeans because their new mobility pack rocks (drag
and drop midlets, baby!). But I think Eclipse is great too, since it
attracts a lot of non-Java developers to the fold.
>
> Do you think BEA, Redhat, Novell, IBM, Intel, SAP, Nokia and all the other
> companies have no qualified and talented software-departments? Tell me one
> reason why the development of the JVM should be a Sun-only thing.
It's called the capitalist system. Sun decided to go the middle route -
not as closed and proprietary as Microsoft, but at the same time not as
free as, say, linux.
I think this may be cause Sun learned its lesson when UNIX broke into
factions...they don't want that happening to Java.
Then again, Sun seems to indicate in JavaOne that the JVM will be open
sourced soon, when they can figure out how to make sure it doesn't
create competing factions. That make you happy?
>
> And what happens when Sun goes out of business? That never happens?
IBM will take it over. But then again, I don't expect Sun to go this
route - I expect it'll merge to form a larger conglomerate company that
is not so exposed to the commoditization of severs.
> What happens when <insert-other-company> buys Sun's JVM?
What? What happens?
> Keep in mind that Sun's JVM is proprietary. I don't want to risk that so
> there must be a free and independent Open-Source JVM financed,
> developed and controlled by the whole Java-community.
hey, if there was one, I'd support it....but honestly, most developers
don't care so long as they can run their apps.
>
> Sun posts one quarterly loss after the other. According to some analysts Sun
> Microsystems should be restructurized what means that at least 8000
> Sun-employess will be laied off. I guess it is a very bad idea to trust Sun.
Why? They've resisted the urgings of Wall Street to lay off large
numbers of people for years now - in my book, that's stupid, but you
gotta admire their persistence anyways.
> btw I didn't intend to be offensive. The term "Idiots" that I used in my
> former posting is offensive. So I apologize for using a wrong term. What I
> intended to say was "think harder" so it was a (very bad) rhetorical phrase.
So, what's your plan? There's no one stopping you or anyone else from
writing your own JVM.
|
| |
|
| |
 |
Otis Bricker

|
Posted: 2006-5-19 20:55:00 |
Top |
java-programmer >> What's the point?
"asj" <email***@***.com> wrote in news:1148015253.310154.252890@
38g2000cwa.googlegroups.com:
>> Open-sourcing means "cooperation and sharing developers, money and
>> resources. Did you look at Sun's shareholder-value after first day of
>> JavaOne. It has fallen again.
>
>
> Did you look at the shares of other companies? Dude, the entire STOCK
> MARKET fell 200+ points in 1 day!
>
>
>
Obviously this just shows how costly Sun's failure to go OpenSource(tm) has
been.
I now threatens the entire US economy! Possibly the WORLD.
Help RMS. Your our only hope.
OB
"That's a joke son, a joke"
|
| |
|
| |
 |
Free Java (TM)

|
Posted: 2006-5-22 13:46:00 |
Top |
java-programmer >> What's the point?
"asj" <email***@***.com>
>> btw I didn't intend to be offensive. The term "Idiots" that I used in my
>> former posting is offensive. So I apologize for using a wrong term. What
>> I
>> intended to say was "think harder" so it was a (very bad) rhetorical
>> phrase.
>
>
> So, what's your plan? There's no one stopping you or anyone else from
> writing your own JVM.
[ Sorry I was absent the last 4 days ]
Sun's JVM is developed by let's say 50 developers. (I don't know it)
What's about a JVM being developed by:
50 developers from Sun
+ another 50 developers from IBM
+ another 50 developers from Intel
+ another 30 developers from Redhat and Novell
+ another 30 developers from universities
+ <insert more>
Currently we have only the "let's say" 50 developers from Sun.
That's all, folks. I do not advocate world-communism.
Btw Jonathan Schwatz just announced "we will open-source Java".
I hope he will announce " we try to cooperate with IBM, Intel, Redhat and so
on and we will host JVM-development on apache.org "
|
| |
|
| |
 |
Oliver Wong

|
Posted: 2006-5-23 22:03:00 |
Top |
java-programmer >> What's the point?
"Free Java (TM)" <email***@***.com> wrote in message
news:e4rj5v$7vi$02$email***@***.com...
> "asj" <email***@***.com>
>>
>> So, what's your plan? There's no one stopping you or anyone else from
>> writing your own JVM.
>
> [ Sorry I was absent the last 4 days ]
>
> Sun's JVM is developed by let's say 50 developers. (I don't know it)
>
> What's about a JVM being developed by:
>
> 50 developers from Sun
> + another 50 developers from IBM
> + another 50 developers from Intel
> + another 30 developers from Redhat and Novell
> + another 30 developers from universities
> + <insert more>
Interesting plan. How are you gonna get Sun to commit 50 of their
developers to your JVM project?
- Oliver
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- WaitForMultipleObject feature in JavaCurrent, I have a method, which will perform lock on
void MyWait()
{
CountDownLatch.aWait
// We can have access to the Stop lock.
}
void MyStop()
{
// Signal Stop lock.
}
This works fine until we need to stop the thread from keep waiting on
CountDownLatch, when there is a stop signal. (The method who send stop
signal doesn't have access to CountDownLatch, else, the stop method
can just directly signal the CountDownLatch)
We would like to have something, "if either CountDownLatch is signaled
or Stop lock is signaled", unblock the thread.
Perhaps something like
WaitForMultipleObject(CountDownLatch, StopLock) in method void
MyWait()
either one of the object being signaled, the thread will continue
execution.
May I know how can I do that in Java?
One of the solution is that I can interrupt the Thread which is halted
at line CountDownLatch.aWait. However, I have no access to the Thread
which halted at line CountDownLatch.aWait
- 2
- What to use as HashMap Key?Hi. I'm looking for advice on using keys for a HashMap.
Is it typical to just use a string as a key, e.g., "Item A", "Item B",
etc.? Or are other approaches better? Since the key is just an
Object, I thought there might be some other approach commonly used
that is more efficient/effective.
Thanks for any advice!
Ken
- 3
- More on exceptionsHi,
I am looking at the following code. If an UnsupportedEncodingException
is thrown in getDD() how will that be handled by the code. Am I
missing something? what is good practice?
cheers,
//mike
public void myMethod {
try {
incomingDialog.sendStatus(dialog.getDD());
} catch (IOException e) {
logger.severe(e.getMessage());
throw new ScenarioException(Reason.NETWORKERROR, e);
}
}
The code above will call this code:
protected Object getDD() {
if (dd == null) {
try {
this.dd = invite.getContent();
} catch (UnsupportedEncodingException e) {
logger.severe(e.getMessage());
throw new ScenarioException(Reason.MIMEERROR, e);
} catch (IOException e) {
logger.severe(e.getMessage());
throw new ScenarioException(Reason.NETWORKERROR, e);
}
}
return dd;
}
- 4
- 5
- [Advanced Java/Gurus] JNI/Win32 hWnd JDK 1.4.2_05 freeze on Javascript CallbackDear Colleagues,
An advanced Java (i.e.: SUN Java Plugin 1.4.2_05) issue would require
your expertise. Inside a "JRE/1.4.2_05" environment (i.e.: version
prior to that latest installment are performing with an adequate
satisfaction) the execution of an "Applet", acquiring native methods
through a "JNI/Win32" interface and returning data using the
"jaws.jar", (i.e.: JSObject callback to "Javascript") hangs on the
"callback" invocation. (i.e.: it is happening in a "single threaded"
environment)
Please note that the invoked "Java" routine is not returning (i.e.:
the "JavaScript/Jdirect" call happens just before), as well as the
"JavaScript" callback is not being entered.
As remarkable as it could be, to unblock the "Java" runtime main
thread, one would right click on the "Internet Explorer" window (i.e.:
right in the task bar). Consequently the execution of the process
continues.
I have explored numerous options including "Thread" notifications,
garbage collections and method finalizations without success. Finally,
the option of duplication the "hWnd"
based "Win32" messaging flow stood as my ultimate option. I have
finally managed to retrieve the top level "hWnd" handle from my
"JDK1.4.2_05/Win32" environment, not to say easily? and declared
method such as "SendMessage", "SetFocus", "SetEnabled" (i.e.: and so
on) to replicate the behavior of my "right click". Through the "Spy++"
delivered messaged I, unfortunately, had no chance to discover the
message (i.e.: or the sequence) that had unblocked my process.
Please note that these "JNI/Win32" calls are executed inside a
separate thread, which is not blocked by the "main/thread" freeze.
Finally, I am relying on your wisdom and experience to win that quite
complicated case, unless an upcoming release of the "SUN/JRE" would
correct that damned state of things.
Thank you for your time; and please do not hesitate to come back for
details.
- 6
- va_list in JNICan anyone tell me if it is possible to call a C function which
contains a va_list parameter from java code. I have a existing library
that I wish to use by creating a Java wrapper around the code.
- 7
- tomcat error 500...Hello all, i am trying to load a class file into a JSP page and getting
a few errors...what ive got is a simple form, that reads a username,
password, and submits it to a login.jsp file. my login.jsp looks
like:
<%@ page import="IMASOS.UserInterface" %>
<html><head> ... <body>
<%
String uname=request.getParameter("username");
String passw=request.getParameter("password");
UserInterface ui = new UserInterface();
boolean success = ui.login(uname,passw);
if (success) out.println("<h2>User logged in</h2>");
else out.println("<h2>Login Failure</h2>");
%>
</body>
and the error im getting is...
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
IMASOS.UserInterface.login(UserInterface.java:92)
org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:50)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
- 8
- 3D surface plot
timothy ma and constance lee wrote:
> Anyone know anysite teaching 3D mesh plot? Like z = x^2 + y^2
>
<http://www.developer.com/java/other/article.php/3508706>
- 9
- Unusual Error Message
I have some Java classes that accept parameters, perform login then
update MYSQL tables. The code runs fine when executed from IDE
(JBuilder). When I try to run it from a JSP I get the following
message. Can't make heads or tails out of it. Does anyone see the
problem? What does the first line mean?
Thanks
javax.servlet.ServletException: Name index 59136 in LocalVariableTable
has bad constant type in class file
com_xyz_practice/CrunchBracketSchedule
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.brackets20B.bracket_005fauto_005fsch_005fbrks_jsp._jspService(org.apache.jsp.brackets20B.bracket_005fauto_005fsch_005fbrks_jsp:118)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.ClassFormatError: Name index 59136 in LocalVariableTable has
bad constant type in class file com_xyz_practice/CrunchBracketSchedule
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
com_xyz_practice.ScheduleBrackets.Schedule(ScheduleBrackets.java:59)
org.apache.jsp.brackets20B.bracket_005fauto_005fsch_005fbrks_jsp._jspService(org.apache.jsp.brackets20B.bracket_005fauto_005fsch_005fbrks_jsp:92)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
- 10
- XML Processing Approaches with JavaWhen I want to manipulate and retrieve data from XML file,
I used to use DOM or SAX, and this is JAXP API from Sun.
Some people told me I should use XPath instead, since it's easier for coding.
But we need to use apache's xalan library.
What do u think? please advise. thanks!!
- 11
- Problems to calculate sinI must create a program that use trigonometry function.
I know sin(30)=0.5 but when I use Math.sin() I can't get it
Math.sin(30*Math.PI/180)=0.49999999999999994
What's the problem?
Thank you
Stefano Buscherini
- 12
- finding total number of bytes an object takes upGiven an object of a Java class, is there some straightforward way to
find out how many bytes of memory it takes up?
In C there exists a <sizeof()> operator, but even if it had a counter-
part in Java (which doesn't appear to be the case) that wouldn't be
exactly what I want because the objects I want to know the sizes of
contain references to objects of other classes, and I need to know the
_total_ bytes taken up by that object, its components, its components'
components, and so on. Can anybody point me to how I can find this
out? Any information would be greatly appreciated.
---Kevin Simonson
"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_
- 13
- how change from down to up to up to downHello
sorry for my englisch :-(
Who kan help my.
This is a java bubbles from te bottem tot go's high.
I want to make snow, so the must go from high tot te bottem.
what can i change in the java
thanks for help :-)
<html>
<head>
<meta http-equiv="Content-Language" content="nl">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title></title>
<meta name="Microsoft Theme" content="arcs 111, default">
<meta name="Microsoft Border" content="tl, default">
</head>
<body background= bgcolor="#FFFFCC" text="#000000" link="#3399FF"
vlink="#999933" alink="#FF9900">
<!--mstheme--><font face="Verdana, Arial, Helvetica">
<p>
<script language="JavaScript"><!--
MSFPhover =
(((navigator.appName == "Netscape") &&
(parseInt(navigator.appVersion) >= 3 )) ||
((navigator.appName == "Microsoft Internet Explorer") &&
(parseInt(navigator.appVersion) >= 4 )));
function MSFPpreload(img)
{
var a=new Image(); a.src=img; return a;
}
// --></script><script language="JavaScript">
<!--
if(MSFPhover) { MSFPnav1n=MSFPpreload; MSFPnav1h=MSFPpreload; }
// --></script>
<script language="JavaScript1.2">
<!-- Begin
var no = 12; // image number or falling rate
var speed = 2; // the lower the number the faster the image moves
var snow = new Array();
snow[0] = "bubbel.gif"
snow[1] = "bubbel2.gif"
snow[2] = "bubbel3.gif"
var ns4up = (document.layers) ? 1 : 0; // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
var dx, xp, yp; // coordinate and position variables
var am, stx, sty; // amplitude and step variables
var i, doc_width = 800, doc_height = 1800;
if (ns4up||ns6up) {
doc_width = self.innerWidth;
doc_height = self.innerHeight;
} else if (ie4up) {
doc_width = document.body.clientWidth;
doc_height = document.body.clientHeight;
}
dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
j = 0;
for (i = 0; i < no; ++ i) {
dx[i] = 0; // set coordinate variables
xp[i] = Math.random()*(doc_width-50); // set position variables
yp[i] = Math.random()*doc_height;
am[i] = Math.random()*20; // set amplitude variables
stx[i] = 0.02 + Math.random()/10; // set step variables
sty[i] = 0.7 + Math.random(); // set step variables
if (ns4up) { // set layers
if (i == 0) {
document.write("<layer name=\"dot"+ i +"\"
left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\"
border=\"0\"></layer>");
} else {
document.write("<layer name=\"dot"+ i +"\"
left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\"
border=\"0\"></layer>");
} } else if (ie4up||ns6up) { if (i ==
0)
{
document.write("<div id=\"dot"+ i +"\"
style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px;
LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
} else {
document.write("<div id=\"dot"+ i +"\"
style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px;
LEFT: 15px; width:1;\"><img src=\"" + snow[j] + "\" border=\"0\"></div>");
}
}
if (j == (snow.length-1)) { j = 0; } else { j += 1; }
}
function snowNS() { // Netscape main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] -= sty[i]; if (yp[i] < -50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = doc_height;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width = self.innerWidth;
doc_height = self.innerHeight; }
dx[i] += stx[i];
document.layers["dot"+i].top = yp[i]+pageYOffset;
document.layers["dot"+i].left = xp[i] +
am[i]*Math.sin(dx[i]);
}
setTimeout("snowNS()", speed);
}
function snowIE_NS6() { // IE main animation function
for (i = 0; i < no; ++ i) { // iterate for every dot
yp[i] -= sty[i];
if (yp[i] < -50) {
xp[i] = Math.random()*(doc_width-am[i]-30);
yp[i] = doc_height;
stx[i] = 0.02 + Math.random()/10;
sty[i] = 0.7 + Math.random();
doc_width =
ns6up?window.innerWidth-5:document.body.clientWidth;
doc_height =
ns6up?window.innerHeight-5:document.body.clientHeight;
}
dx[i] += stx[i];
if (ie4up){
document.all["dot"+i].style.pixelTop =
yp[i]+document.body.scrollTop;
document.all["dot"+i].style.pixelLeft = xp[i] +
am[i]*Math.sin(dx[i]);
}
else if (ns6up){
document.getElementById("dot"+i).style.top=yp[i]+pageYOffset;
document.getElementById("dot"+i).style.left=xp[i] +
am[i]*Math.sin(dx[i]);
}
}
setTimeout("snowIE_NS6()", speed);
}
if (ns4up) {
snowNS();
} else if (ie4up||ns6up) {
snowIE_NS6();
}
// End -->
</script>
<!--mstheme--></font>
</html>
- 14
- Capital PunishmentIn the past I had made posts on these programming forums with
references to my website. I have stopped doing that since it is
labelled spamming.
The other day, on one of these forums, an individual threatend to wipe
out my site from the internet because he did't find use for the post.
Which one is a bigger offence. To post a message or to terminate
someone's site.
Asad
- 15
- Let thread wait till memory is availablehi all,
a basic question:
i have a memory consuming encoding process which runs in its own
thread.
To preseve OutOfMemory errors when a lot of those treads are running,
i want this thread to check the current memory heap, and maybe wait as
long as there's some available.
Is that possible ?
I think this must be a very common problem in thread programming?
Greets,
chris
|
|
|