comp.lang.java.programmer http://groups-beta.google.com/group/comp.lang.java.programmer [EMAIL PROTECTED]
Today's topics: * Mars Rescue Mission Challenge - 7 messages, 4 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9531033f5615f411 * HttpUrlConnection => reading all packets - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5cae854ec3a36001 * Sr Java Developer/Team Lead needed - Dallas, TX - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/241de84d695f3666 * Looking for co-op, internship or volunteer java programmer. - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/392330321f8c5f4d * External packages - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bae8c29cb5e57bba * J2ME local files - 3 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2be2c515ec11905b * Using com.sun.tools.javac.Main() for compiling - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/894f2738d346f374 * clarification about login logic in a Webapp using Struts - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6107ee79d477edec * Writing to Word documents - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/63e6214e752428a * Filtering only punctuation and currency - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e10f354fb93fb6b7 * use com port as parallel port - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/43f0abc240232d51 * Grep - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/578f6f129d74dc98 * Need as much help as possible - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7c8e64b34d7154d8 * Viewing Excel files using JSP - 2 messages, 2 authors http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f16dea8279a55f05 * UnsupportedEncodingException - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f05a57f2fc1fbd14 * HashSet with complicated objects - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8a3977950dbd8f2c * Font selection dialog - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3828c43244e7a4b0 * JSP and PHP - 1 messages, 1 author http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dda5a65c2e34db8b ========================================================================== TOPIC: Mars Rescue Mission Challenge http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/9531033f5615f411 ========================================================================== == 1 of 7 == Date: Fri, Nov 19 2004 3:38 pm From: Frank Buss <[EMAIL PROTECTED]> "Howard" <[EMAIL PROTECTED]> wrote: > > "Frank Buss" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >>A new challenge: >> >> http://www.frank-buss.de/marsrescue/index.html >> >> Have fun! Now you can win real prices. > Would those be retail prices or wholesale prices? you are right, I meant prize, not price :-) -- Frank Buß, [EMAIL PROTECTED] http://www.frank-buss.de, http://www.it4-systems.de == 2 of 7 == Date: Fri, Nov 19 2004 3:46 pm From: "Tayssir John Gabbour" <[EMAIL PROTECTED]> Frank Buss wrote: > A new challenge: > > http://www.frank-buss.de/marsrescue/index.html I don't quite understand this sentence, perhaps I'm not thinking straight: "If a stone is hit, the speed vectors are devided by 2 (integer devision without fraction) as long as no stone is hit (which can result in a speed vector of (0, 0))." So, suppose when step 20 occurs: * You're 2 pixels left of a stone. * Your velocity-x will be 2 pixels/step on step 20 and (if possible) 21. * velocity-y will be arbitrary. What happens? Are you able to go partly through a stone? MfG, Tayssir == 3 of 7 == Date: Fri, Nov 19 2004 3:57 pm From: Neo-LISPer <[EMAIL PROTECTED]> Frank Buss wrote: > A new challenge: > > http://www.frank-buss.de/marsrescue/index.html > > Have fun! Now you can win real prices. Terribly similar to ICFP 2003. No 1 or 3-day time constraint. What's the fun in that? == 4 of 7 == Date: Fri, Nov 19 2004 4:16 pm From: Frank Buss <[EMAIL PROTECTED]> "Tayssir John Gabbour" <[EMAIL PROTECTED]> wrote: > I don't quite understand this sentence, perhaps I'm not thinking > straight: "If a stone is hit, the speed vectors are devided by 2 > (integer devision without fraction) as long as no stone is hit (which > can result in a speed vector of (0, 0))." the sentence before is important: | After this the speed vector is added to the coordinate, but only, if | the new coordinate does not hit a stone after adding the speed. > So, suppose when step 20 occurs: > * You're 2 pixels left of a stone. > * Your velocity-x will be 2 pixels/step on step 20 and (if possible) > 21. > * velocity-y will be arbitrary. > What happens? Are you able to go partly through a stone? no, the robot is always stone-free. If you are 2 pixels left of a stone and your velocity-x is 2, the next turn you are 0 pixels left of a stone. Then adding the velocity will result in hitting a stone, so the new velocity is (1, velocity-y/2) and because this will result in a hit, too, again the velocity is devided, which will result in a velocity-x of 0 and velocity-y devided by 2 again. -- Frank Buß, [EMAIL PROTECTED] http://www.frank-buss.de, http://www.it4-systems.de == 5 of 7 == Date: Fri, Nov 19 2004 4:38 pm From: Frank Buss <[EMAIL PROTECTED]> Neo-LISPer <[EMAIL PROTECTED]> wrote: > Terribly similar to ICFP 2003. No 1 or 3-day time constraint. What's > the fun in that? I know this challenge (to the other readers: you can see it at http://www.dtek.chalmers.se/groups/icfpcontest/ ) and I liked the idea, this is one of the reason for this challenge. There might be many people who don't know the ICFP challenge, and I hope they'll have fun with it. One difference in my challenge is that you don't need to simulate fixed- point arithmetic or complicated definitions of sin and cos. This helps to concentrate on a good algorithm. Another difference is the time limit. For my challenge you have much time, so you can think and test a lot and perhaps there will be some interesting ideas or variations of the challenge submitted. -- Frank Buß, [EMAIL PROTECTED] http://www.frank-buss.de, http://www.it4-systems.de == 6 of 7 == Date: Fri, Nov 19 2004 4:50 pm From: Neo-LISPer <[EMAIL PROTECTED]> Frank Buss wrote: > Neo-LISPer <[EMAIL PROTECTED]> wrote: > >> Terribly similar to ICFP 2003. No 1 or 3-day time constraint. What's >> the fun in that? > > I know this challenge (to the other readers: you can see it at > http://www.dtek.chalmers.se/groups/icfpcontest/ ) and I liked the idea, > this is one of the reason for this challenge. You might want to give proper credit then. Otherwise, some people might call it plagiarism (sponsored by DrDobbs ?) == 7 of 7 == Date: Fri, Nov 19 2004 5:12 pm From: Surendra Singhi <[EMAIL PROTECTED]> Frank Buss wrote: > A new challenge: > > http://www.frank-buss.de/marsrescue/index.html > > Have fun! Now you can win real prices. > Please correct the typos in the spelling of "devided" and "devision". It should be "divided" and "division". -- Surendra Singhi www.public.asu.edu/~sksinghi ========================================================================== TOPIC: HttpUrlConnection => reading all packets http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/5cae854ec3a36001 ========================================================================== == 1 of 1 == Date: Fri, Nov 19 2004 3:51 pm From: "shakah" <[EMAIL PROTECTED]> You have to keep reading the response until you get the amount of bytes specified in the response's Content-length header. Here's a code excerpt that does a POST and reads a response: java.net.URL url = new java.net.URL(sURL) ; java.net.URLConnection urlc = url.openConnection() ; urlc.setDoInput(true) ; urlc.setDoOutput(true) ; urlc.setUseCaches(false) ; urlc.setRequestProperty("Content-Type", "text/xml") ; urlc.setRequestProperty("Content-Length", ""+sPostData.length()) ; urlc.setRequestProperty("Connection", "close") ; // ...write the POST data java.io.OutputStream os = urlc.getOutputStream() ; os.write(sPostData.getBytes()) ; os.flush() ; // ...read the response java.io.InputStream is = urlc.getInputStream() ; int nContentLength = urlc.getContentLength() ; byte [] ab = new byte[nContentLength] ; int nRead=0 ; while(nRead < nContentLength) { nRead += is.read(ab, nRead, nContentLength - nRead) ; } sbResponse.append(new String(ab, "utf-8")) ; os.close() ; os = null ; is.close() ; is = null ; ((java.net.HttpURLConnection) urlc).disconnect() ; urlc = null ; ========================================================================== TOPIC: Sr Java Developer/Team Lead needed - Dallas, TX http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/241de84d695f3666 ========================================================================== == 1 of 1 == Date: Fri, Nov 19 2004 3:54 pm From: [EMAIL PROTECTED] (OSG) Object Systems Group, Inc has been providing IT consulting and outsourcing services to Fortune 500 clients in the U.S for the past 13 years. We specialize in architecture, software development, process mentoring and full life-cycle application development specifically with J2EE and distributed technologies. Because of our expertise in the areas mentioned, we have been contacted by Company in Addison, TX to assist them in locating a full-time Team Lead for a new development group with their company. The company is a large physician and laboratory company, providing diagnostic and healthcare information services to physicians, hospitals, national clinical laboratories and managed care organizations. They are building a new team of Java Developers IMMEDIATELY. This is an EXCELLENT opportunity to get in early and be a major contributor in building this team and taking on a Team Lead role within 6 month. Responsibilities include the design and development of new software applications using Java and SQL, XP methodology and writing technical specifications for a complete software product development cycle. Required Skills: · A minimum of 8 years experience programming in Java, OO software design and documentation with UML · XML Interface experience · Eclipse · JBoss and other open source technologies · SQL, JDBC and ODBC programming · LINUX or Unix related systems · Thorough knowledge of full application software development lifecycle is required Candidates with the following will be given highest priority: · Previous team leadership · Clinical applications or other healthcare related applications · HL7 Interface experience · Extreme Programming experience Salary: $75K - $85K Benefits: Health Insurance, Life Insurance, Dental Insurance, Disability Insurance, Paid Vacation, Paid Sick Leave, 401(k), Tuition Reimbursement Candidates MUST be US Citizens and able to pass background check and drug screening. NO THIRD PARTIES Forward resume to [EMAIL PROTECTED] ========================================================================== TOPIC: Looking for co-op, internship or volunteer java programmer. http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/392330321f8c5f4d ========================================================================== == 1 of 1 == Date: Fri, Nov 19 2004 4:02 pm From: Scott Ellsworth <[EMAIL PROTECTED]> In article <[EMAIL PROTECTED]>, "Rhino" <[EMAIL PROTECTED]> wrote: > "Chris Smith" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > xarax <[EMAIL PROTECTED]> wrote: > > > Let me get this straight. You want someone to donate > > > their skills (listed above) to benefit your company? > > > > The part that was most amusing to me was that, after all this, he asked > > for resumes to prove qualifications, and said he'd contact people to > > interview them. Ha! > > > There are some old sayings that come to mind when I read this 'ad': > > 1. "A workman is worthy of his hire." > > 2. "You get what you pay for." Clients of mine have occasionally brought in summer interns for rock bottom wages. The pay was damn close to nothing. On occasion, we have offered starbucks wages, because that was what we had left in the budget. Even $16 an hour for a ten week gig only brings you to $6400 - chump change for industry, and sometimes what we have left to offer. Will you get the best for this kind of money? Sometimes, if the experience is good and the project interesting. Other times, you need to offer real money to get good people. These are essentially 10 week job interviews. They do not pay that well, because we expect to burn a lot of our own developer hours keeping the interns busy, and looking over what they do. That said, real negotiating starts somewhere near the end of the gig, if we want them back. After all, the primary goal of a student must be to finish the degree and learn the material, not a summer job. On exit, though, priorities change, and so does what we need to pay to get them. Scott ========================================================================== TOPIC: External packages http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/bae8c29cb5e57bba ========================================================================== == 1 of 1 == Date: Fri, Nov 19 2004 4:59 pm From: "Tony Morris" <[EMAIL PROTECTED]> "I.L.B." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi , > > I got several source code Java files to compile... They import both standard > java class libraries as "java.awt... etc" but also another private ones > (included as external class files). When I try to compile with javac, it > gives a lot of error because it cannot import the "special" class libraries. > > I got those class libraries as class files in a folder, but I don't know how > to "install" them into my java in order that they're recognized when it > comes to compile java files into class files. > > Thanks !! > > Put the base directory of the classes on the classpath at compile-time using the -classpath switch. Also, http://java.sun.com/docs/books/tutorial/java/interpack/packages.html -- Tony Morris http://xdweb.net/~dibblego/ ========================================================================== TOPIC: J2ME local files http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/2be2c515ec11905b ========================================================================== == 1 of 3 == Date: Fri, Nov 19 2004 10:51 am From: Freeman <[EMAIL PROTECTED]> You may simply use InputStream to read a text file inside a jar. e.g. InputStream in = this.getClass().getResourcesAsStream("TextFileName"); I use this method to develop my j2me game. Http protocol is a standard for all Java phones. However, most phones do not support "file" protocol. Freeman www.mobilefunland.com Darryl L. Pierce wrote: > johnlittlepeap wrote: > >> Does anybody know if its possible to access the files in a phones >> memory from a Java App. For instance, instead of http://, is it >> possible to use file:/// as the location. > > > Only if the handset supports a protocol named "file". Most don't. > However, JSR-75 will provide APIs for accessing local files depending on > the MIDlet's security level. > > And, remember, MIDlets are normally limited to only access data within > the MIDlet suite and not just any data on the handset. > >> Specifically I'm talking about nokia phones (eg 3220). >> >> I've looked into the FileConnection API but that API doesn't seem to >> be on the 3220 phone. > > > That phone does not support JSR-75. > == 2 of 3 == Date: Fri, Nov 19 2004 10:45 am From: Freeman <[EMAIL PROTECTED]> You may simply use InputStream to read a text file inside a jar. e.g. InputStream in = this.getClass().getResourcesAsStream("TextFileName"); I use this method to develop my j2me game. Http protocol is a standard for all Java phones. However, most phones do not support "file" protocol. Freeman www.mobilefunland.com Darryl L. Pierce wrote: > johnlittlepeap wrote: > >> Does anybody know if its possible to access the files in a phones >> memory from a Java App. For instance, instead of http://, is it >> possible to use file:/// as the location. > > > Only if the handset supports a protocol named "file". Most don't. > However, JSR-75 will provide APIs for accessing local files depending on > the MIDlet's security level. > > And, remember, MIDlets are normally limited to only access data within > the MIDlet suite and not just any data on the handset. > >> Specifically I'm talking about nokia phones (eg 3220). >> >> I've looked into the FileConnection API but that API doesn't seem to >> be on the 3220 phone. > > > That phone does not support JSR-75. > == 3 of 3 == Date: Fri, Nov 19 2004 7:00 pm From: "Darryl L. Pierce" <[EMAIL PROTECTED]> Freeman wrote: > You may simply use InputStream to read a text file inside a jar. > e.g. InputStream in = this.getClass().getResourcesAsStream("TextFileName"); > I use this method to develop my j2me game. The OP indicated that he wanted access files on the phone, not files in the JAR. -- Darryl L. Pierce <[EMAIL PROTECTED]> Visit my webpage: <http://mcpierce.multiply.com> ========================================================================== TOPIC: Using com.sun.tools.javac.Main() for compiling http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/894f2738d346f374 ========================================================================== == 1 of 2 == Date: Fri, Nov 19 2004 5:07 pm From: Andrew Thompson <[EMAIL PROTECTED]> On 19 Nov 2004 09:29:44 -0800, Fahd Shariff wrote: > Or you can look at javac's source code ... Where exactly? It is not included in the distributed src.zip. -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane == 2 of 2 == Date: Fri, Nov 19 2004 6:37 pm From: [EMAIL PROTECTED] (hiwa) "Fahd Shariff" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > You could create a Temporary file which you can delete later on. > > Or you can look at javac's source code and see if there is any other > method that might do what you are looking for... Using temporary file is good because no hack is needed. We can't access javac's input stream by a standard way. ========================================================================== TOPIC: clarification about login logic in a Webapp using Struts http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/6107ee79d477edec ========================================================================== == 1 of 1 == Date: Fri, Nov 19 2004 5:16 pm From: Andrew Thompson <[EMAIL PROTECTED]> On 19 Nov 2004 06:36:57 -0800, [EMAIL PROTECTED] wrote: > Andrew Thompson <[EMAIL PROTECTED]> wrote in message news:<[EMAIL > PROTECTED]>... >> On 18 Nov 2004 10:05:44 -0800, Jean Lutrin wrote: >> >>> Imagine a Web site where you have to login before >>> you access, say, the "forums". >> >> NoooOOOOooooo! Not *another* one. .. > Don't worry, it made me laugh! (feeling guilty) But it seems to have stalled the thread, Jean! Now come on, all you server side Guru's. Ignore my diversion to Jean's question and muck in with a bit of guidance. (..Please?) [ To Jean. If you cannot get any interest in this thread within another 24 hours, I suggest you repost it as a new post and blame me for having to do so. I promise I'll hold my tongue. ;-) ] -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane ========================================================================== TOPIC: Writing to Word documents http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/63e6214e752428a ========================================================================== == 1 of 1 == Date: Fri, Nov 19 2004 5:16 pm From: steve <[EMAIL PROTECTED]> On Mon, 15 Nov 2004 07:14:53 +0800, Jonck van der Kogel wrote (in article <[EMAIL PROTECTED]>): > Hi everybody, > I have defined a Word template and set bookmarks at certain locations > in this document, to which I then want to write text gotten from a > database and save the file. In this way I could create standard > documents (for example an invoice) in an automated manner. > I have looked into the Jakarta POI project > (http://jakarta.apache.org/poi/index.html), but this project is mostly > aimed at Excel, Word support is still in its infancy. > Another solution that I've found > (http://www.must.de/en/default.html?../Javactpe.htm) seems to work > very well, but is Windows only. > Also there are a few commercial solutions, but these cost several > thousand dollars, which I can't afford. > > I figure such an automated creation of Word documents is probably > being done by a lot of people, so therefore I was wondering, does > anyone know of a (affordable) way to achieve what I described in a > platform independent manner? > > Thanks very much, Jonck don't bother screwing about, write the document directly to p.d.f format. there is itext , which you can find on sourceforge. tie that into jasperreports , for your layouts ========================================================================== TOPIC: Filtering only punctuation and currency http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/e10f354fb93fb6b7 ========================================================================== == 1 of 1 == Date: Fri, Nov 19 2004 5:45 pm From: "Murray" <[EMAIL PROTECTED]> "Ann" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Michael Borgwardt" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Glenn Meter wrote: > > > I've got a case where I want to build a MaskFormatter that only accepts > > > punctuation and currency symbols. > > > > > > In looking at the APIs, it seems easy to test if a character is a > > > punctuation or currency symbol. But I'm not finding APIs to get the list > > > of punctuation and currency symbols programatically. I just need > > > something that will return the characters as a String. It seems like > > > this should be easy. What stupid thing am I missing? > > > > That's just not how the characters and character classes are > > defined in Unicode or Java. > > > > But it's simple enough to loop over all the 2^16 Java chars, > > call the classification methods in java.lang.Character for > > each of them and build the String for yourself. > > > > Do that once and save the result in a file somewhere. > > Maybe you can subclass isISOControl() in Character.java Character is final, you can't subclass it. ========================================================================== TOPIC: use com port as parallel port http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/43f0abc240232d51 ========================================================================== == 1 of 1 == Date: Fri, Nov 19 2004 5:33 pm From: steve <[EMAIL PROTECTED]> On Sat, 20 Nov 2004 01:48:05 +0800, Graeme Hill wrote (in article <[EMAIL PROTECTED]>): > Please remember that according to the RS232 specification, a 1 (high bit) > is a NEGATIVE voltage with respect to ground - between perhaps -5 and -15 > volts. A 0 (low bit) is POSITIVE with respect to ground, again e.g. +5 to > +15 volts. > > Paralell ports, on the other end, will typically operate at TTL voltages > e.g. 0 V is 0(low) bit, +5V is 1(high) bit. > > If you don't know what you doing, you will almost certainly fry your RS232 > port. > > > More info e.g. http://www.sangoma.com/signal.htm > > On Fri, 19 Nov 2004, Babu Kalakrishnan wrote: > >> b3ny wrote: >>>> So while you cannot control the state of the TxD pin (or read that of >>>> the RxD pin) programmatically, all the remaining pins (DTR and RTS as >>>> outputs and DSR,CTS,DCD and RI as inputs) can be controlled / read >>>> asynchronously from the PC. >>> >>> >>> tell me how it works??? >>> how di i have to config the comm api? >>> maybe a little source code example? >>> >> >> Check out the API for the javax.comm.SerialPort class. You have the >> setDTR(), setRTS() methods to set the output bits and the >> isDSR(),isCTS(), isCD(), isRI() methods for reading the bits. >> >> BK >> > there is not enough wires, to cover all his options , unless he implements some external logic. he has a number of options. 1. give up 2. use the parallel port. 3. use the usb port with a couple of extra chips. 4. if he insists on using the serial port, he just needs a parallel to serial convertor chip. then feed his signals into the parallel side. he can use the chip to handle the RS232 interface Then use 2 other control lines 1 to reset the chip & 1 to act as a clock. ( unless the chip implements it own internal clock) first step , each time he wants to read. 1. issue a reset signal to the external chip ( puts the parallel chip in exactly a known state) 2. issue a clock signal to clock the data out, until 1 byte received. allow the api to assemble the byte. 3. read byte , decode bits. go to 1. he does not even need a voltage convertor. to get his +- supply. if he is smart he can leach off the RS232 port. ( set 1 line high , & 1 line low then use that to power the chip & circuit ( cmos)) ========================================================================== TOPIC: Grep http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/578f6f129d74dc98 ========================================================================== == 1 of 1 == Date: Fri, Nov 19 2004 5:52 pm From: David Zimmerman <[EMAIL PROTECTED]> Hans Bijvoet wrote: > Some time ago I was used to a very great tool, called Grep. This was a > dos-based utility to search for word(s) inside files. > What is nowadays the best tool for this? > Greetings, > Hans > > goto cygwin.com and get all kinds of Unix tools built for windows. I'm forced to live in a windows world, but cygwin keeps me sane ========================================================================== TOPIC: Need as much help as possible http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/7c8e64b34d7154d8 ========================================================================== == 1 of 1 == Date: Fri, Nov 19 2004 5:38 pm From: steve <[EMAIL PROTECTED]> On Sun, 14 Nov 2004 00:03:59 +0800, Thomas G. Marshall wrote (in article <[EMAIL PROTECTED]>): > steve coughed up: >> On Fri, 12 Nov 2004 03:04:49 +0800, WCU_Student3456 wrote >> (in article >> <[EMAIL PROTECTED]>): >> >>> hey i'm new to the java scene and i have a major assignment due for >>> class on the 12th of nov. I need help with a program that has a >>> point class...a driver and a circle class. the program is suppost to >>> display info about the circle...if anyone is interested or has >>> pitty...college students love pitty..please respond and i will try >>> to send the assignment to you...i have it scanned on adobe... >>> >>> thanks ever so much >>> >> >> I love you students. >> >> How the hell you guys think you are going to survive in the real >> world, is a complete mistery to me. >> >> However if you promise the following: >> >> 1. To go work at mac Donald's for the rest of your life. >> 2. Never to turn a computer on , other than for looking at porn or >> playing computer games. >> 3. Send me the email address of your tutor. >> >> Then i think we can work something out. >> >> Steve > > > Back when Things Were Rotten.... > > I cannot imagine how I managed to get so many things done before the > internet. Everything I ever was contracted to do had [maybe] a single > right-up in a technical journal somewhere deep in the bowels of the MIT > library (I didn't go to mit, but drove the hour into Cambridge more than > once to use it). Oi. > > And all the CS students clamoring to take a peak at the few knuth's that > existed in my university. No university ever bought enough of those things > for their libraries. > > I loved knuth , still got a volume or 2 hanging about some place. Now i spend most of my time Cut& Paste coding from the internet, no real skill anymore. steve ========================================================================== TOPIC: Viewing Excel files using JSP http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f16dea8279a55f05 ========================================================================== == 1 of 2 == Date: Fri, Nov 19 2004 5:56 pm From: [EMAIL PROTECTED] (BenJose) Iam using a simple webpage to view/download excel files. But for some reason I use the <a href> tag to point to the excel file and it shows up garbled. I tried altering the content type and also did some tweaks but nothing works... Any pointers in this regards ?? Iam using a Apache Tomcat server. This is the script itself: <html> <head> <meta http-equiv="Content-Language" content="application/vnd.ms-excel"> <meta http-equiv="Content-Type" content="application/vnd.ms-excel; charset=windows-1252"> <title>Maine Educational Assessment</title> <style type="text/css"> <!-- .style1 {font-size: 10px} --> </style> <!-- End of: /portal/sliverheader/sliverhead.html --> </head> <body marginheight="0" marginwidth="0"> <a href="tst.xls">Excel Tst</a> </body> </html> -Ben == 2 of 2 == Date: Fri, Nov 19 2004 6:01 pm From: "Tony Morris" <[EMAIL PROTECTED]> "BenJose" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Iam using a simple webpage to view/download excel files. But for some > reason I use the <a href> tag to point to the excel file and it shows > up garbled. I tried altering the content type and also did some tweaks > but nothing works... Any pointers in this regards ?? > > Iam using a Apache Tomcat server. > > This is the script itself: > <html> > > <head> > > <meta http-equiv="Content-Language" > content="application/vnd.ms-excel"> > <meta http-equiv="Content-Type" content="application/vnd.ms-excel; > charset=windows-1252"> > > <title>Maine Educational Assessment</title> > <style type="text/css"> > <!-- > .style1 {font-size: 10px} > --> > </style> > > <!-- End of: /portal/sliverheader/sliverhead.html --> > > </head> > <body marginheight="0" marginwidth="0"> > > <a href="tst.xls">Excel Tst</a> > > </body> > > </html> > > -Ben Which has what to do with Java? -- Tony Morris http://xdweb.net/~dibblego/ ========================================================================== TOPIC: UnsupportedEncodingException http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/f05a57f2fc1fbd14 ========================================================================== == 1 of 1 == Date: Fri, Nov 19 2004 6:19 pm From: Andrew Thompson <[EMAIL PROTECTED]> On Fri, 19 Nov 2004 22:38:44 GMT, Bill Lattery via JavaKB.com wrote: // as Ann mentioned, this statement will not compile.. // please copy/paste code. > String mac = "1.2.3.4" String mac = "1.2.3.4"; try { > byte[] bv = mac.getBytes("UTF-16"); } catch(UnsupportedEncodingException uee) { uee.printStackTrace(); } > Please help. Note that a better groups for people starting in Java is.. <http://www.physci.org/codes/javafaq.jsp#cljh> -- Andrew Thompson http://www.PhySci.org/codes/ Web & IT Help http://www.PhySci.org/ Open-source software suite http://www.1point1C.org/ Science & Technology http://www.LensEscapes.com/ Images that escape the mundane ========================================================================== TOPIC: HashSet with complicated objects http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/8a3977950dbd8f2c ========================================================================== == 1 of 1 == Date: Fri, Nov 19 2004 6:33 pm From: Mike <[EMAIL PROTECTED]> Hey! I'm new to Java and want to try to do things properly, so would be grateful for guidance on the following. I have a HashSet of fairly complicated objects, and don't want to instantiate a new one to use the "contains" method to see if the object exists in the HashSet. Nonetheless, I need to find out if the nascent object is in the Set (specifically, if I did create a new instance, would it be the same as one already there). So, my question is: 1. Is there an idiomatic way to do this, or 2. Has the entire fleet left with me standing on the dock? Many thanks. Regards, Mike ========================================================================== TOPIC: Font selection dialog http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/3828c43244e7a4b0 ========================================================================== == 1 of 1 == Date: Fri, Nov 19 2004 6:44 pm From: IchBin <[EMAIL PROTECTED]> Ike wrote: > Thanks! But what is fOwner? -Ike > > fOwner is of type private static DatabaseManagerSwing. I use this to make it a class var and visible to all of the methods in the class FontDialogSwing. Just happens that type DatabaseManagerSwing is the calling class name. I did not make this a model dialog. I then can get/set attributes of the calling class objects. This is not the standard way of way of coding it but it fit what I wanted do. This is so I have a reference to all of the object of type DatabaseManagerSwing. Thats why you see references to it later in the code. The important thing is that it has all the objects you need to build your own dialog, the way you want Thanks in Advance... IchBin __________________________________________________________________________ 'The meeting of two personalities is like the contact of two chemical substances: if there is any reaction, both are transformed.' - Carl Gustav Jung, (1875-1961), psychiatrist and psychologist ========================================================================== TOPIC: JSP and PHP http://groups-beta.google.com/group/comp.lang.java.programmer/browse_thread/thread/dda5a65c2e34db8b ========================================================================== == 1 of 1 == Date: Fri, Nov 19 2004 6:45 pm From: [EMAIL PROTECTED] (Mark) Please advise JSP advantage over PHP. I will be building alot of session management web sites and database driven web sites and want to know what JSP has over PHP? ======================================================================= You received this message because you are subscribed to the Google Groups "comp.lang.java.programmer". comp.lang.java.programmer [EMAIL PROTECTED] Change your subscription type & other preferences: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe Report abuse: * send email explaining the problem to [EMAIL PROTECTED] Unsubscribe: * click http://groups-beta.google.com/group/comp.lang.java.programmer/subscribe ======================================================================= Google Groups: http://groups-beta.google.com
