Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
7
Posts with Upvotes
7
Upvoting Members
6
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
~64.2K People Reached
Interests
Singing, Opera, OS X, Robotics
PC Specs
Al Powerbook G4 1.25Ghz (OS X) IBM Thinkpad T22 900Mhz (FreeBSD/WinXP) Dell Optiplex GX270 3.2Ghz (work)…
Favorite Tags

102 Posted Topics

Member Avatar for samaru

I see a wonderful mix of hard programs here. :) My hardest would have to be work on creating a low-level type-safe language similar in spirit, but more expressive and powerful than Microsoft's [URL=http://research.microsoft.com/vault/]Vault[/URL] Language. The key to this language was that you could annotate code with a set of …

Member Avatar for Fest3er
0
3K
Member Avatar for supra

Hey Supra, This would be a hot topic if you have the experience and the energy for it: Write a linux module that places some routines on the interrupt vector table for timers. Then you could have an accurate timer for which you can send on pulses for pulse width …

Member Avatar for stultuske
1
420
Member Avatar for i_me_roo

Well I'm sure that i_me_roo probably has a main and extra bracket at the end. The compiler complaint was about return statements. i_me_roo if you look at the code, you'll see that it is possible to go straight through the function without hitting the return statement. This is what the …

Member Avatar for jon.kiparsky
0
950
Member Avatar for RaySan

What's the point of downloading the source code? you aren't going to present an extension to the IDEs are you? The source code for any of those projects will be mammoths if you are new to Java and/or have no software engineering project experience. Ed [QUOTE=RaySan]I am a newbie on …

Member Avatar for masijade
0
474
Member Avatar for adityabakle

The best way to obtain IP address is via the JDK's InetAddress http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html#getLocalHost() This returns InetAddress which has many goodies you can play around with. For example, You can do things like reverse domain name loook ups on arbitrary ipaddresses... or ip addresses from hostnames. [url]http://www.cs.ucl.ac.uk/staff/sjiang/webpage/reverse-lookup-test.htm[/url] By the way Nice …

Member Avatar for peter_budo
0
350
Member Avatar for TimGerber

Hey Tim, Sorry about the homework. You should generally start the homework earlier! ;-) I can explain your program though I think that it is a bit convoluted. There is a much cleaner and clearer way to code the factorial program you wrote. How about I explain how this way …

Member Avatar for peter_budo
-1
187
Member Avatar for tadhg

This is absolutely not true! I haven't done bluetooth in C# before, but I've done it in C/C++ and am familiar with the bluetooth protocol. You need to just do a device inquiry over sdp (Service Discovery Protocol). This is not vendor specific---A Huge Nightmare if it was vendor specific!!! …

Member Avatar for kvprajapati
0
3K
Member Avatar for marceta

Actually you can do this programatically fairly easily... Using Windows API's SystemParametersInfo with SPI_SETDESKWALLPAPER. [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/systemparametersinfo.asp[/url] I don't program in Win32 anymore, so the if you get stuck try looking here: [url]http://www.c-sharpcorner.com/Code/2002/Sept/ChangeWallpaper.asp[/url] You should be able to figure out which constants correspond to the given values in the example. Have fun! …

Member Avatar for marco93
1
586
Member Avatar for jjohnson33

A JFrame can have a JApplet as content. Simply make the class a JApplet, and add the main function like what you see here: Hope this helps! Ed [code] // from http://www.devx.com/tips/Tip/16650 public class MyApplet extends JApplet { ... public static void main(String[] args) { Component applet = new MyApplet(); …

Member Avatar for umay
0
418
Member Avatar for cosi

I'm a RSS grubber that can't feed enough RSS into my RSS aggregator. If you don't know about RSS, RSS is a great way to get news/articles from multiple sources. Here is a link explaining RSS with many RSS programs you may use to view feeds: [url]http://reviews.cnet.com/4520-10088_7-5143656.html?tag=rss[/url] This comes especially …

Member Avatar for BestJewSinceJC
0
182
Member Avatar for Dani

Very cool Dani! Hopefully our competitive nature willl foster a more wholesome community. :cool:

Member Avatar for ithelp
0
446
Member Avatar for nanosani

Hey sani, Have you used eclipse before? I wonder if you could leverage some of their plugin loading code. That would be awesome. You could write your own plugin loading code rather easily. Have a plugin directory that your app will scan for plugins. Plugins can essentially be packaged java …

Member Avatar for stultuske
0
181
Member Avatar for freesoft_2000

Definitely look into using Eclipse [URL=http://eclipse.org]http://eclipse.org[/URL] . I eschewed IDEs for a long time. I've tried all the commercial IDEs and disliked them. I was probably the only developer in my department who still used the console text editor vim exclusively. Finally Eclipse crept up on me; I felt like …

Member Avatar for sciwizeh
2
355
Member Avatar for chatt

What do you mean by quality? Quality can be a very subjective measure. Or do you mean most bang for your buck quality == most frames per second and large resolution per megabyte of compressed data? WMA is a Microsoft's format. It is not particularly great. If you wanted a …

Member Avatar for jessen
0
652
Member Avatar for i_me_roo

An alternative solution, I've used to as a cheap profiling trick in big programs: long startTime = System.currentTimeMillis(); // time at start in millisecs // //code // long stopTime = System.currentTimeMillis(); // time at end // time elapsed is stopTime-startTime See this link for details. http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#currentTimeMillis()

Member Avatar for Aldehyde81
0
160
Member Avatar for Rentro

Rentro, You it it right on. Java actually has a substring function. [code]String substring(int beginIndex, int endIndex) // Returns a new string that is a substring of this string.[/code] See the [URL=http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#substring(int,%20int)]jdocs for details[/URL]. Ed [QUOTE=Rentro]SUBSTRING :D That was the word I was looking for. Thanks a lot guys .[/QUOTE]

Member Avatar for Parsu7
0
210
Member Avatar for ili82

Why do you want to use JavaScript? You can use the Serial Port via Java using Sun's comm package. [url]http://java.sun.com/products/javacomm/javadocs/javax/comm/SerialPort.html[/url] Figuring out how to work a piece of hardware programmatically without document is not an easy task for the inexperienced! Ed

Member Avatar for raghusan
0
108
Member Avatar for rixius

Grrr... I had 6 Gmail invites. But I quit the browser after I clicked the link and now they're gone. I guess that's just the way it works. =\ Ed

Member Avatar for GreenDay2001
0
6K
Member Avatar for ZEEPLE

Tell me where your java installation is located on your hard drive. it should be a folder something like j2sdk-xxxxx. Also tell me if there is a folder called bin within j2sdk-xxxxx. Then tell me if there is a program called java.exe in there. You can also install netbeans or …

Member Avatar for sonidhanni
0
168
Member Avatar for bluzman32

Hey bluz, I'm curious. What is WHM? and cPanel? These are specific apps you are talking about? Thanks for clarifying. Ed [QUOTE=bluzman32]Would using subdomains instead of TLDs cause any errors in WHM? I've successfully used subdomains instead of TLD's but I just need to be sure. The subdomain would have …

Member Avatar for joelgreen
0
192
Member Avatar for Dani

DON'T READ Until you think about it :) Ok... here is what I think... 99 + 9/9 :) you never said you couldn't put the 9s together. hehee... Ed [QUOTE=cscgal]This is just a small lil math boggler I thought of :) I will PayPal $5 to the first person who …

Member Avatar for Fahmid
0
146
Member Avatar for greexican

Pop in a OS 9 or OS X install CD... Try for a OS 9 CD if you can; it'll be simpler. Hold down the 'C' key when the computer is booting up. As soon as you hear the CD drive kick in you can release the 'C'. The comptuer …

Member Avatar for John A
0
239
Member Avatar for shabosco

It would be nice of you to post something in the code snippets section if it is easy enough to just isolate the relevant code sections. I think many people would be interested in taking a look. Ed [QUOTE=shabosco]I just wrote a phonematic name search in C# using the Levenshtein …

Member Avatar for Numen
0
181
Member Avatar for Dani

I have a suggestion and an App idea. Perhaps you can just look at this mystery file and take note of that last accessed / last modified date. Take a look at it again in a week or few days or so. If it hasn't been updated, it's probably safe …

Member Avatar for Dani
0
241
Member Avatar for gkakkireni

Hi. I'm not quite sure what you mean. Could you post a code snippet of what you have? Also post the input you expect to receive and what you wish to do with that input. Ed [QUOTE=gkakkireni]Hi to all i have requirment like this the field length is 15 digits …

Member Avatar for vimal_parakhiya
0
85
Member Avatar for smithag261

Start out simple. Write a function that iterates through numbers between 0 and 500, and does the sum the cubes test. Usually we just call this type of algorithm a search over parameter space. For all sorts of problems for which we have no answers, we simply search for it. …

Member Avatar for Dave Sinkula
1
215
Member Avatar for hexstar

gmail swapping? what do you mean by that? people are hoping accounts?

Member Avatar for Catweazle
0
254
Member Avatar for heaney37
Member Avatar for Progmet

Which XML Parser are you using? Please post a code snip. [QUOTE=Progmet]I'm trying to read a xml file which contains two xml files in one file with java from a specific directory and then writing a response file with also two xml into one file which contains variables from the …

Member Avatar for lixf
0
165
Member Avatar for Tekmaven

I find the Mac to be a convenient way to separate home and work. Yes I may not be able to do everything with programming .NET on my Mac, but that's ok. I don't need to do work on my personal machine; I want a system that I love to …

Member Avatar for jwenting
0
501
Member Avatar for freesoft_2000

About the original topic: Languages are long lived and possibly immortal beings. There will always be C++ somewhere. Don't forget our Y2K fears about that ancient dino Cobol.

Member Avatar for alc6379
2
2K
Member Avatar for rupeshpradhan

Hi, Your program seems very sequential. In Any programming language it is generally bad form to have an extremely long function, so we can do better by dividing the task here into many functions executed sequentially. You don't need to have object oriented code in Java. Something like this: [code] …

Member Avatar for Egsal
0
182
Member Avatar for cosi

I don't use Safari much, so I took it out of my dock soon after getting my machine. However, the safari dock icon still manages to make it back onto my dock every now and then. Has anyone else experienced this? Any ideas how to keep it from reappearing on …

Member Avatar for yellow
0
140
Member Avatar for kumar25

Hi Kumar, Attempt to do your homework yourself, and then we can help you along the way. We do not do homework for you here. Ed [QUOTE=kumar25]hi all, i am a beginner in java programming.Could anyone please provide source code for the following program. A program that reads a integer …

Member Avatar for alc6379
0
198
Member Avatar for conmuacuoi

Hi, Sun's tutorial about WindowListeners might be helpful: [url]http://java.sun.com/docs/books/tutorial/uiswing/events/windowlistener.html[/url] Another good source of examples is the Java Almanac: [url]http://javaalmanac.com/egs/java.awt/frame_FrameCls.html[/url] Hope this helps! Ed [QUOTE=conmuacuoi]I don't understand how to used [B]Interfaces[/B] WindowListener and [B]Methods[/B] of it. Please for give me example. Thanks![/QUOTE]

Member Avatar for conmuacuoi
0
108
Member Avatar for sunsol

Check the Java Almanac entry for [url=http://javaalmanac.com/egs/java.util/ParseString.html]StringTokenizer[/url]---it is very useful! [code] String aString = "555-555-55555"; StringTokenizer parser = new StringTokenizer(aString, '-'); if (aString.countTokens() != 3) { // error input is invalid } String areaCode = parser.nextToken(); // area code String exchange = parser.nextToken(); String extension = parser.nextToken(); [/code] Ed [QUOTE=sunsol]I …

Member Avatar for Phaelax
0
188
Member Avatar for Junior89

What kind of hard drive is this? SCSI? ATA? SATA? [QUOTE=Junior89]Hi i have just orderd all the parts for my computer and was all excited when someone told me that i need a part that connects my motherboard and my hard drive. I have the wires is there a "Scuddy" …

Member Avatar for ReDuX
0
151
Member Avatar for javaLearner

To implement an interface (in this case ActionListener or ItemListener), you must write all the functions that the interface provides. One such function you're missing is actionPerformed(ActionEvent). If you put this function into your ChatClientApplication class, it will stop complaining. Put this in your class: [code] public void actionPerformed(java.awt.event.ActionEvent e) …

Member Avatar for javaLearner
0
245
Member Avatar for ray96

Hi Ray, it looks like your caculator is in RPN (a.k.a. Reverse Polish Notation) mode. In order to relect the same sequence of operations in C, you should convert to standard notation: asin (0.39777 * sin (292.797)) If you then wanted to convert the answer into Degrees instead of radians, …

Member Avatar for vegaseat
0
337
Member Avatar for dooda man

You have to turn terminal local echo off. This is often specific to what kind of terminal you are using. Are you using the windows command prompt? Ed [QUOTE=dooda man]how can i make the program display * in password entery i tried [B] while(getch()) { cout<<"*"; } [/B] but it …

Member Avatar for FireNet
0
134
Member Avatar for dianathomas

Hi, You don't have to modify the classpath if you put those jar files in your JAVA_JRE_DIRECTORY/ lib/ext. What Servlet server are you running? There are also standard locations in servlet servers to put .jar files in. Ed [QUOTE=dianathomas]Hi there. My name is Diana Thomas. I am a junior Java …

Member Avatar for dianathomas
0
174
Member Avatar for freesoft_2000

Whoa... long convoluted question ;-). I hope I understand what you are asking. You simply want to copy the array of files to a particular directory? If you simply want to move the file, try [RenameTo](http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#renameTo(java.io.File)). If you want to copy the file, see [here](http://java.sun.com/docs/books/tutorial/essential/io/filestreams.html) Hope this helps. Ed

Member Avatar for cosi
0
170
Member Avatar for KCC1982

It looks like you renamed the class. Either change all references to DataSet to DataSet3 -OR- change all DataSet3 to DataSet [code]//Make it like this: class DataSet { public DataSet() ..... } [/code] [QUOTE=KCC1982] class DataSet3 { public DataSet3() ..... } [/QUOTE]

Member Avatar for cosi
0
198
Member Avatar for Joel914

Use a progress bar. The problem with simply telling the user "please wait" is that sometimes the user gets impatient and just thinks that the process failed. Most of the time the user will simply hit "Stop" then "Reload Page", then "Submit again" Here is a very nice progress bar …

Member Avatar for cosi
0
174
Member Avatar for NJR

What error are you getting? I strongly recommend you to reorganize the StringToken section of code I've attached below because it is easy to make a logical error the way you have coded it. It is better to take this form instead: // See the [URL=http://javaalmanac.com/egs/java.util/ParseString.html]Java Almanac entry here[/URL] [code] …

Member Avatar for cosi
0
163
Member Avatar for OurNation

Hey OurNation, Yes it is possible. The straightforward way to find the difference in time is to simply use [URL=http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html#getTime()]Date().getTime()[/URL] for time in milliseconds. Just subtract the current date in millisecs from the future date in millisecs. It may also possible to use [url=http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html#add(int,%20int)]Calendar.add()[/URL] to find the difference in time. …

Member Avatar for cosi
0
184
Member Avatar for Dani

Can you tell me which listings you're looking at? The trailers seems to work for all the movies I look up. Ed

Member Avatar for grclassics
0
159
Member Avatar for sharmrkf

I don't quite understand what you are asking. If you could clarify, I can give you a better answer. There is an excellent tutorial on opening and reading/writting files [URL=http://www.cprogramming.com/tutorial/print/lesson10.html]here[/URL]. Hope this helps! Ed [QUOTE=sharmrkf]Hi, everyone, i am newbie to c++, but good in java, is there a way to …

Member Avatar for Narue
0
144
Member Avatar for ninthwondernj

Trace the execution of your code. [code] // here let's say that hours = 23 calculate(hours, minutes); void calculate(int& h, double& m) ... if(h>12 && h<=24) { h=h-12; // Now hours = 11 m=m-0; } } // hours = 11 display(hours, minutes); void display(int h, double m) { if(h<=12) // …

Member Avatar for cosi
0
3K
Member Avatar for rishiraj_bayerd

Hey Rishi, Yes do look at the [URL=http://java.sun.com/docs/books/vmspec/]JVM specs[/URL]. Sun provides the book for download in html form for free. :) How much of an engineer are you? If you are really gun-ho on this project, you can obtain one of the open source JVM implementations ([URL=http://www.kaffe.org/]Kaffe[/URL])to see their implementation. …

Member Avatar for cosi
0
160

The End.