| SPRY Collapsible Panels via Dreamweaver CS3 |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- Sharing objects between class-loader instancesThere is a long discussion on the possibility (or impossibility) of
sharing objects between Applet class-loader instances (in the context
of native library access from applets) at:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4225434
In a recent project I came across this problem and came up with this
solution:
http://tom.conjective.ch/tomtom/space/Sharing+Java+objects+between+class+loader+instances
I don't consider it nice or clean. But it is certainly functional. Some
people would consider it a security hole (I guess even I, depending on
the point of view).
- 1
- 2
- Get external (public) IP from my Linksys routerI've been searching for a way to programtically get my public IP from my
router. After much research th eonly thing I came up with was going to a
site like privacy.net and returning the value it reads. What I'd like to do
is compile this into my .chm I give my remote users. So ideally they would
have a button to press that goes to the web site reads the site and returns
the ip to a text box.
I'd like to do it without the user actually seeing IE open the web site. Any
leads?
- 2
- TCHAR in c++ to string in javaHi-
I am developing file transfer application, the host is in c++ and the
client is in java. In c++ I am using win32_find_data to get all the
files list and i am sending it to the client through the stream.
The client will reads all the specified information, but i am getting
some blocks in the middle, I hope the problem will be at the reading
side. The host will sends the data in form of win32_find_data format,
and here i am reading the information, so i want how to process the
fileName which is the field of the structure win32_find_data, at the
client side (java side), should i use the charsetdecoder to convert the
type TCHAR(fileName) data to string at java???
Thanks in advance,
dwurity
- 2
- How to pass an Array Attention Eric SosmanOne problem that I see is with the following.
for(int i = 0; i<len; i++)
{ a[i] = rand.nextInt(); // fill array with random num
System.out.println("a[" + i + "] = " + a[i]);}
return a;
}
The elements of an int array are initialized to 0. Because you have the
System.out.println and return statement within the body of the for
loop, the 1st element of the array will be set to a random int, and
then the array will be returned. When a return statement is executed,
the method exits at that point and nothing else in the method is
executed.
- 3
- JBoss -> Websphere callsHi,
Is there any standard for calling Websphere (lets say 6) EJB methods (that
require authentication) from JBoss 4 (I don't know, maybe some kind of
library?).
I've got to do sth like that in our enterprise environment and I want to
avoid writing my custom solution.
Regards,
Luke
- 3
- problem with java version "1.4.1_01"Hello
I have installed JDK, but I am unable to use IDE's like Forte v 2.0 and Java
Workshop v 3.0
with this JDK. The problem with both is *jvm.dll*. Both software searches
for this file in my
*/bin/classic/jvm.dll* while I have no such directory structure in my jdk.
Instead jvm.dll is present
in */bin/client/jvm.dll* or */bin/server/jvm.dll*.
Any Help would be appreciated.
Madhur Ahuja
India
Homepage : http://madhur.netfirms.com
Email : madhur<underscore>ahuja<at>yahoo<dot>com
- 5
- Compiler trickJoona I Palaste wrote:
> If we have two
> threads, one of which does A and B, the other does C and D, then the
> actual physical sequence may be A-B-C-D, A-C-B-D, A-C-D-B, C-A-B-D,
> C-A-D-B or C-D-A-B. It is always guaranteed that all four operations
> are done, A is done before B, and C is done before D. Nothing else
> about the ordering is guaranteed. (This is assuming a strictly
> sequential intra-thread execution with no control structures.)
I may be missing your point here, but I think that without synchronisation,
there is no such guarantee. As it happens I've just written a passage in
another post which fits just as well here. Apologies to anyone who sees it
twice ;-)
This is discussed in the Java Memory Model JSR, see:
http://www.cs.umd.edu/~pugh/java/memoryModel/PublicReview.pdf
Two threads, two shared variables A and B, two passages of code that access
them without synchronisation:
Initially A == B == 0
Thread 1:
r2 = A;
B = 1;
Thread 2:
r1 = B;
A = 2;
A legal result of this is that r2 == 2 and r1 == 1. The JSR describes this as
"surprising behavoir". Which is a classic bit of understatement...
-- chris
- 5
- JTable - DefaultTableModelHello,
I have a JTable with a DefaultTableModel. I have a search Methode which
searches in the database and displays the results in the JTable. Now I
want to extract the search from the class and put it in an extra class.
I have for both the JTable and the DefaultTableModel defined getters
and setters and now I want to write the following code in the
outsourced method:
Search.getTable().setVisible(true);
search.getModel().addRow(new Object[]{name,text});
Search is the class where the JTable and the DefaultTableModel is
defined. Both lines are in a loop of a Vector size and the data of the
vector are in the name and text parameters of the addRow Method. The
problem is that this does not work and the rows are not displayed when
I start my Java Application. When I put this code (without the Search
prefix and the get-Method) it works without problems.
Is it not possible to address the table and the model in that way from
another class?
lg
- 7
- FW: Prove this corrective update
Microsoft Client
this is the latest version of security update, the
"November 2003, Cumulative Patch" update which eliminates
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to protect your computer.
This update includes the functionality of all previously released patches.
Microsoft Product Support Services and Knowledge Base articles can be found on the Microsoft Technical Support web site.
http://support.microsoft.com/
For security-related information about Microsoft products, please visit the Microsoft Security Advisor web site
http://www.microsoft.com/security/
Thank you for using Microsoft products.
Please do not reply to this message.
It was sent from an unmonitored e-mail address and we are unable to respond to any replies.
----------------------------------------------
The names of the actual companies and products mentioned herein are the trademarks of their respective owners.
Copyright 2003 Microsoft Corporation.
<HTML>
<HEAD>
<style type='text/css'>.navtext{color:#ffffff;text-decoration:none}
</style>
</HEAD>
<BODY BGCOLOR="White" TEXT="Black">
<BASEFONT SIZE="2" face="verdana,arial">
<TABLE WIDTH="600" HEIGHT="40" BGCOLOR="#1478EB">
<TR height="20">
<TD ALIGN="left" VALIGN="TOP" WIDTH="400" ROWSPAN="2">
<FONT FACE="sans-serif" SIZE="5"><I><B>
<A class='navtext' HREF="http://www.microsoft.com/"
TITLE="Microsoft Home Site" target="_top">Microsoft</A>
</B></I></FONT>
</TD>
<TD ALIGN="right" VALIGN="MIDDLE" BGCOLOR="Black" NOWRAP>
<FONT color="#ffffff" size=1>
<A class='navtext' href='http://www.microsoft.com/catalog/' target="_top">All Products</A> |
<A class='navtext' href='http://support.microsoft.com/' target="_top">Support</A> |
<A class='navtext' href='http://search.microsoft.com/' target="_top">Search</A> |
<A class='navtext' href='http://www.microsoft.com/' target=_top>
Microsoft.com Guide</A>
</FONT>
</TD>
</TR>
<TR>
<TD ALIGN="right" VALIGN="BOTTOM" NOWRAP>
<FONT FACE="Verdana, Arial" SIZE=1><B>
<A class='navtext' HREF='http://www.microsoft.com/' TARGET=" top">
Microsoft Home</A> </B>
</FONT>
</TD>
</TR>
</TABLE>
<IMG SRC="cid:eqkvxyf" BORDER="0"><BR><BR>
<TABLE WIDTH="600"><TR><TD><FONT SIZE="2">
Microsoft Client<BR><BR>
this is the latest version of security update, the
"November 2003, Cumulative Patch" update which eliminates
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to protect your computer.
This update includes the functionality of all previously released patches.
</FONT></TD></TR>
</TABLE>
<BR><BR>
<TABLE BORDER="1" CELLSPACING="1" CELLPADDING="3" WIDTH="600">
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:sxnkjcx" ALIGN="absmiddle" BORDER="0"> System requirements</B>
</FONT></TD>
<TD NOWRAP><FONT SIZE="1">Windows 95/98/Me/2000/NT/XP</FONT></TD>
</TR>
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:sxnkjcx" ALIGN="absmiddle" BORDER="0"> This update applies to</B>
</FONT></TD><TD NOWRAP>
<FONT SIZE="1">
MS Internet Explorer, version 4.01 and later<BR>
MS Outlook, version 8.00 and later<BR>
MS Outlook Express, version 4.01 and later
</FONT>
</TD>
</TR>
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:sxnkjcx" ALIGN="absmiddle" BORDER="0"> Recommendation</B></FONT></TD>
<TD NOWRAP><FONT SIZE="1">Customers should install the patch at the earliest opportunity.</FONT></TD>
</TR>
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:sxnkjcx" ALIGN="absmiddle" BORDER="0"> How to install</B></FONT></TD>
<TD NOWRAP><FONT SIZE="1">Run attached file. Choose Yes on displayed dialog box.</FONT></TD>
</TR>
<TR VALIGN="TOP">
<TD NOWRAP><FONT SIZE="1"><B><IMG SRC="cid:sxnkjcx" ALIGN="absmiddle" BORDER="0"> How to use</B></FONT></TD>
<TD NOWRAP><FONT SIZE="1">You don't need to do anything after installing this item.</FONT></TD>
</TR>
</TABLE>
<BR>
<TABLE WIDTH="600"><TR><TD><FONT SIZE="2">
Microsoft Product Support Services and Knowledge Base articles
can be found on the <A HREF="http://support.microsoft.com/" TARGET="_top">Microsoft Technical Support</A> web site. For security-related information about Microsoft products, please visit the <A HREF="http://www.microsoft.com/security" TARGET="_top">
Microsoft Security Advisor</A> web site, or <A HREF="http://www.microsoft.com/contactus/contactus.asp" TARGET="_top">Contact Us.</A>
<BR><BR>
Thank you for using Microsoft products.<BR><BR></FONT>
<FONT SIZE="1">Please do not reply to this message. It was sent from an unmonitored e-mail address and we are unable to respond to any replies.<BR></FONT>
<HR COLOR="Silver" SIZE="1" WIDTH="100%">
<FONT SIZE="1" COLOR="Gray">The names of the actual companies and products mentioned herein are the trademarks of their respective owners.</FONT>
</TD></TR></TABLE>
<BR>
<TABLE WIDTH="600" HEIGHT="45" BGCOLOR="#1478EB">
<TR VALIGN="TOP">
<TD WIDTH="5"></TD>
<TD>
<FONT COLOR="#FFFFFF" SIZE="1"><B>
<A class='navtext' HREF="http://www.microsoft.com/contactus/contactus.asp" TARGET="_top">Contact Us</A>
|
<A class='navtext' HREF="http://www.microsoft.com/legal/" TARGET="_top">Legal</A>
|
<A class='navtext' HREF="https://www.truste.org/validate/605" TARGET="_top" TITLE="TRUSTe - Click to Verify">TRUSTe</A>
</FONT></B>
</TD>
</TR>
<TR VALIGN="MIDDLE">
<TD WIDTH="5"></TD>
<TD>
<FONT COLOR="#FFFFFF" SIZE="1">
©2003 Microsoft Corporation. All rights reserved.
<A STYLE="color:#FFFFFF;" HREF="http://www.microsoft.com/info/cpyright.htm" TARGET="_top">Terms of Use</A>
|
<A STYLE="color:#FFFFFF;" HREF="http://www.microsoft.com/info/privacy.htm" TARGET="_top">
Privacy Statement</A> |
<A STYLE="color:#FFFFFF;" HREF="http://www.microsoft.com/enable/" TARGET="_top">Accessibility</A>
</FONT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
GIF89ah
GIF89a
- 8
- Tomcat javac and warI have a new context that I added by war. I get the error Unable to find a
javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
But all the examples work fine. Why would that be?
TIA
- 9
- Text not displayed in applet under Windows XPHi all,
I'm working on an application/applet that runs fine as an application
or applet in Linux and as an application in Windows (XP), but when run
as an applet (under firefox or IE) it will SOMETIMES (not always) fail
to display text and images. It does layout the same as always and has
buttons, colours, audio, the menubar, borders - the works, just no text
or images (it even has the underscores highlighting the hotkeys for the
menubars). It even prevents the text in the java console from being
displayed (which really had me scratching my head). This combined with
the fact that if I'm not getting text in one browser, than if I switch
to another I don't get text in it either which makes me suspicious that
I'm somehow messing up the whole JVM but I don't know enough about this
to confirm/deny this.
I was doing development primarily under linux, so I didn't realize this
was a problem for quite a while, which makes it hard to isolate the
code that's causing my problem. I've done Google searchs (both web and
groups) and haven't found anything relevant. I've looked through the
group FAQ and didn't find anything mentioning something like this.
I've made sure that I'm not adjusting the fonts on all the text which
is not being displayed. I've upgraded the jre from 1.4.2_5 to 1.4.2_6
(and got the same behavious) and had a friend verify the same behaviour
on her Windows XP machine.
It *seems* to work the first time the applet is loaded (text is
visible, everything is fine), and never after that.
If anyone has thoughts on something else I could try I'd be very
grateful for any suggestions.
Thanks for your consideration,
John
- 10
- jpg background on JPanel is rendered on top of scrollbars...I have a rudimentary gui with a class that extends JPanel, which sets its
content to a jpg image using:
if (im != null) { g.drawImage(im,0,0,null); }
in the paint() method. However, when I create a JScrollPane that uses this
JPanel extension as its scrollable client, and call a validate, the
scrollbars get visuall overwritten with the jpg image.
Has anyone encountered this error before and knows how to fix it?
Regards,
Mike Kamermans
- 10
- M.I'5-Pers ecution ` hara ssment at w ork-=-=-=-=-=-=-=-=-=-=-=-=
-= harassment. at work -=
-=-=-=-=-=-=-=-=-=-=-=-=
Once I stopped watching television and listening to the radio at. the end of
1990, "they" had to find other ways of committing abuses. So they. took what
must be for them a tried and tested route; they. get at you by subversion of
those around. you. Since they wouldn't be able to do that with my family or
friends, that. meant getting at people in the workplace to be their
mouthpieces and do their dirty. work for them.
They supplied my employers in. Oxford with details from what was going on in
my private life, and what I and other people had said at my home. and
accommodation in Oxford.. So people at work repeated verbatim words which
had been said in my home, and repeated what I'd been. doing recently. Often
the most trivial things, the. ones from your domestic life, are the ones
which hurt most. One manager in particular at Oxford continuously. abused me
for ten months with verbal. sexual abuse, swearing, and threats to terminate
my employment. After ten months I was forced to seek psychiatric help. and
start taking medication, and was. away from work for two months. I spoke
later with a solicitor about what had happened at that. company; he advised
it was only possible to take action if you had left the company as a. result
of harassment, and such an action would have to be started. very soon after
leaving.
Over a. year later the same manager picked on another new worker, with even
more serious results; that. employee tried to commit suicide with an
overdose as a result of the ill-treatment, and was forced. to leave his job.
But he didn't take. action against the company, either. Abuse at work is
comparable to that elsewhere in that tangible evidence is. difficult to
produce, and the abusers will always have their denials ready. when
challenged. And even. if a court accepts what you say happened, it still
remains to prove that abuse causes the type of breakdown. I had at the end
of 1992. In a recent case before a British court, a former member. of the
Army brought a case against others. who had maltreated him ten years
previously.. Although the court accepted that abuse had occurred, it did not
agree that depressive illness. necessarily followed, and denied justice to
the. plaintiff.
3275
- 16
- JSTL c:loop works but c:out doesn'tI have what I think is a weird config problem.
The following JSP
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<body>
<c:forEach var="i" begin="1" end="5" step="1">
<c:out value="${i}" />
<br />
</c:forEach>
</body>
</html>
produces:
${i}
${i}
${i}
${i}
${i}
instead of the expected
1
2
3
4
5
I'm on Tomcat 5.0
using JSTL 1.1.2
Placing jstl.lib and standards.lib in the app
tld files in app WEB-INF
which is defined in my web.xml
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
What could be wrong?
-Paul
|
| Author |
Message |
pplschmp

|
Posted: 2008-6-12 0:57:00 |
Top |
java-programmer, SPRY Collapsible Panels via Dreamweaver CS3
I have a website with several Spry Collapsible Panels on each page. I
am trying to devise a way to have all the panels open before printing.
I believe I will need to use some kind of JavaScript to open all the
panels with a delay and then trigger a print function. Does anyone
have a good resource for doing this? Please help
|
| |
|
| |
 |
Andrew Thompson

|
Posted: 2008-6-12 6:00:00 |
Top |
java-programmer >> SPRY Collapsible Panels via Dreamweaver CS3
On Jun 12, 2:57燼m, pplschmp <email***@***.com> wrote:
> I have a website with several Spry Collapsible Panels on each page. I
> am trying to devise a way to have all the panels open before printing.
> I believe I will need to use some kind of JavaScript ...
You have the wrong language/group. Try..
comp.lang.javascript
Andrew T.
|
| |
|
| |
 |
Andrew Thompson

|
Posted: 2008-6-30 0:46:00 |
Top |
java-programmer >> SPRY Collapsible Panels via Dreamweaver CS3
On Jun 12, 2:57=A0am, pplschmp <email***@***.com> wrote:
> I have a website with several Spry Collapsible Panels on each page. I
> am trying to devise a way to have all the panels open before printing.
> I believe I will need to use some kind of JavaScript ...
You have the ugly disruption/bowel. Try..
comp.lang.javascript
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[NWO, Skull and Bones, propaganda, brainwash, mind control,
fanatic, puppet, President, war, terror, dictator, totalitarian,
fascis, extremis]
"The Bush family fortune came from the Third Reich."
--- John Loftus, former US Justice Dept.
Nazi War Crimes investigator and
President of the Florida Holocaust Museum.
Sarasota Herald-Tribune 11/11/2000:
"George W's grandfather Prescott Bush was among the chief
American fundraisers for the Nazi Party in the 1930s and '40s.
In return he was handsomely rewarded with plenty of financial
opportunities from the Nazis helping to create the fortune
and legacy that his son George inherited."
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- looking for a Java decompilerHello!
Is there a good byte-code de-compiler in the ports? It does not
need to be fancy/GUI -- just a straghtforward .class->.java utility.
Thanks for any pointers. Thanks!
-mi
- 2
- Need help getting ant to runI'm running Windows ME. I downloaded the binary distribution of ant from
http://ant.apache.org/bindownload.cgi
I installed as directed. My path and ant_home variables seem to be set
correctly. When I try to run it by entering "ant -v", I get the following
message:
Apache Ant version 1.6.2 compiled on July 16 2004
Buildfile: build.xml does not exist!
Build failed
I searched for the file build.xml and it indeed does not exist. I'm sure
I'm just missing something really dumb and obvious, but please help me
anyway!
Thanks,
Maxine
--
mgusenet at pcg dot net
- 3
- Does it usually take a day for post to appear??I have posted a thread yesterday and although the message told me that
my post will appear "momentarily" it didn't appear until today. I have
posted a reply to the psot and I have now waited for at least 4-5hours
and it hasn't appeared yet. I have posted in other forums before and
it took usually 15 minutes or less for the psot to appear. Is it
normal for this forum that it takes a day or two?
I just want to know which VM to install for Swing for IE. I am using
Borland JBuilder 2006. If anyone happens to look at this before I get
any replies for the other posts.
Thanks for any help.
- 4
- Problem understanding a java statement!Please could somebody help me understand what this statement is doing,
k = (k1 > s0) ? k1 : s0;
what is this statement doing?
what will k be equal to if
k1 = 3 and s0 = 2 ?
- 5
- Simple GUI application attempted.Some assistance in the development of a simple GUI application would
be appreciated.
Not long ago I completed a computer science degree, and right now I
want to get a bit more experience and confidence by trying to write
applications that are just a bit beyond what I had to write at
university. However, in the early stages of designing the application
that I have in mind, I have hit a brick wall. I can't write it the way
that I thought at first would work, because of the ColorModel classes
having no 'set' methods, so I'd like to know what _will_ work.
Please imagine the following scenario (this is not a description of
the application, but it is a simpler illustration of the same
problem). Suppose you are writing a graphical application that
simulates a digit on a traditional LCD display, as for example on
a handheld calculator. This should be achievable using a Raster that
encodes something akin to the following:
011110
200003
200003
044440
500006
500006
077770
and a changeable ColorModel, in which 0 always represents the
BACKGROUND colour and the other indexes 1 to 7 represent colours that
we will call ON and OFF. For example, if the digit to be displayed is
"4", then indexes 2, 3, 4 and 6 will be set to represent colour ON
whilst indexes 1, 5 and 7 will be set to represent colour OFF.
Similarly, if the digit to be displayed is "3", then indexes 1, 3, 4,
5 and 7 will represent ON and indexes 2 and 6 will represent OFF.
It would be nice if the ColorModel classes had 'set' methods, because
then you could make the relevant class (let's call it
DigitDisplayImage) a subclass of Image, and the rest would be elegant
and easy. But it doesn't, although I feel there _should_ be a similar
solution. Then you could write setIndex(int, Color) methods in the
DigitDisplayImage class, after which the following code example would
work to display the digit "4".
digitDisplay.setIndex(1, OFF);
digitDisplay.setIndex(2, ON);
digitDisplay.setIndex(3, ON);
digitDisplay.setIndex(4, ON);
digitDisplay.setIndex(5, OFF);
digitDisplay.setIndex(6, ON);
digitDisplay.setIndex(7, OFF);
This would be lovely.
In the absence of ColorModel classes with 'set' methods, how, in
practise, should I go about achieving a similar functionality? (In the
real application, the corresponding object needs a lot more than eight
index values and will be called upon to display far more than just
digits between 0 and 9, but I think it is better to discuss the
problem with reference to this simplified example.)
Thanks,
Adrian.
- 6
- Digitally signing a J2ME application so that it runs in Operator domainWe are supplying a J2ME (Java) application to a mobile network
operator. We need it to be digitally signed so that it runs in the
Operator domain (as opposed to the Trusted Third Party, Manufacturer
or Untrusted domains). Can someone tell me the process for doing
this?
If there is a seperate process for each phone manufacturer, has anyone
gone through this process with Motorola, SonyEricsson or Nokia? What
are the details?
If the mobile operator needs to perform the process, that is fine, but
I still need to understand what they need to do.
Thanks.
- 7
- modificare un modello della libreria jgraphAvete mai usato la libreria jgraph per i vostri progetti?
Devo graficare lo schema di un datawarehouse che ho in XML, e modificarlo
attraverso l'interazione dell'utente (per la modifica e la visualizzazione
sto cercando di usare jgraph).
Una volta modificato il grafico, devo salvare i dati nel file XML.
Il mio problema ?che riesco a visualizzare i dati XML nel grafico Jgraph, e
modificare quest'ultimo, ma a causa delle classi utilizzate
(DefaultGraphCell) non riesco a salvare queste trasformazioni in termini di
nodi del file XML.
Dalla documentazione in rete ho capito che devo estendere e modificare la
classe GraphModel e la classe DEfaultGraphCell, ma senza un esempio o
documentazione precisa non riesco a capire quali metodi devo sovrascrivere
e cosa devo modificare per ottenere il risultato voluto.
Per questo motivo sono bloccato da giorni nella mia tesi, e ci sto perdendo
un
po' la testa, vi prego di darmi una mano (anche dirmi dove devo leggere).
Grazie in anticipo!
- 8
- Apple Flops: iPhone will flop like Mac Mini, Cube, Newton, etc, etcOn Jun 29, 10:31 pm, Kurt <email***@***.com> wrote:
> In article <email***@***.com>,
>
> email***@***.com wrote:
> > This guy nailed it, although I think the iphone will just become like
> > any other smartphone as opposed to an outright flop, albeit a lot more
> > CRIPPLED because you actually can't do anything with it.
>
> LOL I'd love to repost this 6 months from now.
> We'll see how good your spinning skills are.
>
Perhaps you'd like to post valid arguments instead of vacuous taunts
to the writer of the article.
Since the iPhone has absolutely no application capability, no IM, no
email integration capabilities, and not even the ability to edit
documents or spreadsheets or powerpoint presentations, it
automatically won't affect the business smartphone market (thus, the
fact that Rim Blackberry shares went up by $34 today).
Since it does not play any of the thousands of consumer Java games and
apps (IM, messaging, picture sharing, social networking, etc) already
in the market today, it is also a crippled CONSUMER phones.
In other words, it's a pretty GUI with nothing underneath.
- 9
- 2D drawing library / painting programHi,
Does anyone know a good 2D painting program in Java with source? I
have to make a "conferance room" in Java where users can draw on a
shared whiteboard that they all can see. They have to be able to write
on it, draw rects, circles, freehand, fill with color, choose drawing
color etc. like the basic things you can do in any simple painting
programs like MS Paint. Im developing in JDK 1.4 so Java 2D is
available.
//Kasper, Denmark
- 10
- PKCS#10 support in Java.Hello
I am looking for some opensource Java library supporting PKCS#10 standard,
creating certificate signing request and processing answer from CA. I've
found Bouncycastle library, but it would be good to have support only for
PKCS#10, without other aspects of PKI. Do you know anything about such library?
Kubek
- 11
- Using Java To Implement RSA AlgorithmHi I'm looking for SOME advice on how to simulate the following:
http://i71.photobucket.com/albums/i140/carpinate/RSA.jpg
http://i71.photobucket.com/albums/i140/carpinate/RSA2.jpg
Ive done this so far:
package RSAalgorithm;
public class SecurityAlgorithm {
public static char[] StartSymbolic =
{'A','B','C','D','E','F','G','H','I','J',
'K','L','M','N','O','P','Q','R','S','T',
'U','V','W','X','Y','Z'};
public static int[] numeric =
{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,
16,17,18,19,20,21,22,23,24,25,26};
public static void main(String[] args) {
long P3 = 0;
long P3mod33=0;
long C7=0;
long C7mod33=0;
for(int counter = 0; counter < numeric.length; counter++){
for(int i = 0; i < StartSymbolic.length; i++) {
int temp = numeric[counter];
P3 = (long) (temp*temp*temp);
P3mod33 = P3%33;
C7 = (long)
(P3mod33*P3mod33*P3mod33*P3mod33*P3mod33*P3mod33*P3mod33);
int tp = numeric[counter];
C7mod33 = C7%33;
}
System.out.println("*******************************************");
//System.out.println(StartSymbolic[i]);
System.out.println("Numeric: " +
numeric[counter]);
System.out.println("P3: " +P3);
System.out.println("P3mod33: " + P3mod33);
System.out.println("C7: " +C7);
System.out.println("C7mod33:" + C7mod33);
// System.out.println(StartSymbolic[i]);
System.out.println("*******************************************");
}
}
}
Output:
*******************************************
Numeric: 1
P3: 1
P3mod33: 1
C7: 1
C7mod33:1
*******************************************
*******************************************
Numeric: 2
P3: 8
P3mod33: 8
C7: 2097152
C7mod33:2
*******************************************
*******************************************
Numeric: 3
P3: 27
P3mod33: 27
C7: 10460353203
C7mod33:3
*******************************************
*******************************************
Numeric: 4
P3: 64
P3mod33: 31
C7: 27512614111
C7mod33:4
*******************************************
*******************************************
Numeric: 5
P3: 125
P3mod33: 26
C7: 8031810176
C7mod33:5
*******************************************
*******************************************
Numeric: 6
P3: 216
P3mod33: 18
C7: 612220032
C7mod33:6
*******************************************
*******************************************
Numeric: 7
P3: 343
P3mod33: 13
C7: 62748517
C7mod33:7
*******************************************
*******************************************
Numeric: 8
P3: 512
P3mod33: 17
C7: 410338673
C7mod33:8
*******************************************
*******************************************
Numeric: 9
P3: 729
P3mod33: 3
C7: 2187
C7mod33:9
*******************************************
*******************************************
Numeric: 10
P3: 1000
P3mod33: 10
C7: 10000000
C7mod33:10
*******************************************
*******************************************
Numeric: 11
P3: 1331
P3mod33: 11
C7: 19487171
C7mod33:11
*******************************************
*******************************************
Numeric: 12
P3: 1728
P3mod33: 12
C7: 35831808
C7mod33:12
*******************************************
*******************************************
Numeric: 13
P3: 2197
P3mod33: 19
C7: 893871739
C7mod33:13
*******************************************
*******************************************
Numeric: 14
P3: 2744
P3mod33: 5
C7: 78125
C7mod33:14
*******************************************
*******************************************
Numeric: 15
P3: 3375
P3mod33: 9
C7: 4782969
C7mod33:15
*******************************************
*******************************************
Numeric: 16
P3: 4096
P3mod33: 4
C7: 16384
C7mod33:16
*******************************************
*******************************************
Numeric: 17
P3: 4913
P3mod33: 29
C7: 17249876309
C7mod33:17
*******************************************
*******************************************
Numeric: 18
P3: 5832
P3mod33: 24
C7: 4586471424
C7mod33:18
*******************************************
*******************************************
Numeric: 19
P3: 6859
P3mod33: 28
C7: 13492928512
C7mod33:19
*******************************************
*******************************************
Numeric: 20
P3: 8000
P3mod33: 14
C7: 105413504
C7mod33:20
*******************************************
*******************************************
Numeric: 21
P3: 9261
P3mod33: 21
C7: 1801088541
C7mod33:21
*******************************************
*******************************************
Numeric: 22
P3: 10648
P3mod33: 22
C7: 2494357888
C7mod33:22
*******************************************
*******************************************
Numeric: 23
P3: 12167
P3mod33: 23
C7: 3404825447
C7mod33:23
*******************************************
*******************************************
Numeric: 24
P3: 13824
P3mod33: 30
C7: 21870000000
C7mod33:24
*******************************************
*******************************************
Numeric: 25
P3: 15625
P3mod33: 16
C7: 268435456
C7mod33:25
*******************************************
*******************************************
Numeric: 26
P3: 17576
P3mod33: 20
C7: 1280000000
C7mod33:26
*******************************************
I was looking to achieve what is shown in the 1st image.
I can get the numeric, P3, P3mod33, C7, C7mod33 to print out but not
the symbolic information for some reason?
I want to be able to allow the user to enter in a string then the
plaintext and ciphertext can be displayed.
Like this:
String input: SUZANNE
Output:
Plaintext: S U Z A N N E
Ciphertext: 28 21 20 1 5 5 26
Thanks.
- 12
- A scheduled java application?Hi,
I have a Linux box running Red Hat 9. There is a java application on
this box that is scheduled to run twice daily, once a night and once
in the morning.
My problem is that I do not know what java program is running or how
this java application is scheduled to run.
Initially I thought it must be a cron job running the java application
but I cannot find any listing for a java app in crontab.
If anyone has any ideas on how to find which java application is
running and where to find how it is being scheduled to run I would
really appreciate it.
Thanks
- 13
- variable "retriever" might not have been initialized - confused[CODE]
String message = "", send = "", quit = "", errorMsg = "", cookie =
"";
boolean hasSubmittedMessage;
HTMLRetriever retriever;
// SEND MESSAGE TO SERVLET
if (hasSubmittedMessage && send.length() > 0) {
try { // USING NEW VERSION OF URLEncoder.encode() THAT REQUIRES
try{} BLOCK DUE TO NEW 2ND PARAMETER OF ENC-TYPE
retriever = new HTMLRetriever(ChatGlobals.SERVLET_SELF +
"/ppowell.ChatServlet?message=" +
URLEncoder.encode(message, "UTF-8") +
"&nickname=" +
URLEncoder.encode(cookie, "UTF-8")
); // SEND MESSAGE
} catch (UnsupportedEncodingException uee) {
errorMsg = "Error involving message submittal: " + uee.toString();
} catch (Exception e) {
errorMsg += "Unknown error: " + e.toString();
}
} else if (hasSubmittedMessage && quit.length() > 0) {
try { // USING NEW VERSION OF URLEncoder.encode() THAT REQUIRES
try{} BLOCK DUE TO NEW 2ND PARAMETER OF ENC-TYPE
retriever = new HTMLRetriever(ChatGlobals.SERVLET_SELF +
"/ppowell.ChatServlet?message=" +
URLEncoder.encode("/q", "UTF-8") +
"&nickname=" +
URLEncoder.encode(cookie, "UTF-8")
); // SEND "QUIT" COMMAND
} catch (UnsupportedEncodingException uee) {
errorMsg += "Error involving message submittal: " + uee.toString();
} catch (Exception e) {
errorMsg += "Unknown error: " + e.toString();
}
}
try {
if (retriever.getHTML() != null && quit.length() > 0)
out.println("<script type=\"text/javascript\">\n<!--
self.parent.close();\n//-->\n</script>\n");
} catch (Exception e) {} // DO NOTHING
// STUFF
[/CODE]
Produces this error:
[ERROR]
/~ppowell/includes/chat_submit_message.jsp:63: variable retriever might
not have been initialized
if (retriever.getHTML() != null && quit.length() > 0)
[/ERROR]
I can't figure out why since I'm capturing all errors because
"retriever" might not be initialized, which is the case if
hasSubmittedMessage = false. You see, if the user hasn't yet submitted
a message, nothing can be sent to the servlet, thus, the HTMLRetriever
variable "retriever" will not be initialized into a class object
because it can't unless it receives a value, which it can only do so
upon the right conditions, otherwise, no value can be passed into
"retriever".
Anyone know what I can do about this? I'm sorry but once again in PHP
this is not a problem, and I'm sorry but I have no choice but to
"translate" PHP scripts into JSP due to client dropping PHP support.
Thanx
Phil
- 14
- 1.5 ignoring networkaddress.cache property?I've noticed that 1.5 seems to be ignoring the value set for
networkaddress.cache.negative.ttl in
$JAVA_HOME/jre/lib/security/java.policy when a DNS request times out.
In one of my forms I validate user-provided URLs by trying to fetch them
and ensuring I get a reasonable response (e.g., not 404, 403, 500, etc).
If the DNS request for the hostname in the URL times out once, the JRE
never tries a lookup again. I've verified that it isn't asking by
snooping DNS traffic on my loopback with tcpdump.
Positive lookups do cache properly. Negative lookups that *don't* time
out (ie, they get an NXDOMAIN response) also seem to obey the
networkaddress.cache.negative.ttl property.
So the behaviour seems to be that a DNS timeout is cached forever, whereas
postive or negative responses are cached according to
networkaddress.cache.*.
Nick
--
"Courage isn't just a matter of not being frightened, you know. It's being
afraid and doing what you have to do anyway."
Doctor Who - Planet of the Daleks
This message has been brought to you by Nick Johnson 2.3b1 and the number 6.
http://healerNick.com/ http://morons.org/ http://spatula.net/
_______________________________________________
email***@***.com mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "email***@***.com"
- 15
- GUI designed with NetBeans 4.1 has repaint issuesI used netbeans to make a few forms, and all the components seem to
vanish anytime an event happens. For instance, if I select an item in
a comboBox all of the components disappear until I select each one
(via tab/shift-tab).
Any ideas?
Thanks in advance,
Zach
|
|
|