Search:
Type: Posts; User: JoeLinkous
Search:
Search took 0.03 seconds.
-
September 23rd, 2010, 02:04 PM
You have a method without a return type. (Hint: static isn't a valid return type.)
Don't fall into the same trap as 90% of other people who try to learn to program: they get a loose idea of some...
-
September 21st, 2010, 02:11 PM
Hello all!
Visual Studio 2010, targetting the .NET 4 framework.
I'm working with ADO.NET and need some assistance. Currently, I'm working with a rather sizeable Access database, so I'm caching...
-
That's a really good idea. That ties back with your start() and next() idea, where there's a single object that directs the execution of many smaller workers to complete a larger task. I'll play...
-
Is there a way to put a Runnable object to sleep so that it gets put back in the queue and doesn't continue processing until it's flagged as awake? I could have Client worker objects that...
-
...
8: String CurLine = "";
...
11: InputStreamReader converter = new InputStreamReader(System.in);
12: BufferedReader in = new BufferedReader(converter);
......
-
An alternative to BufferedReader? Blasphemy!
Off-topic, but my current project requires me to tokenize inbound strings to determine which commands clients are trying to execute, so using this will...
-
The Console object returned by System.console() is null, so when you try to readLine() from it, you get a NullPointerException.
Try reading from System.in (an inputStream). A quick Googling found...
-
Don't just copy your homework assignment here and have us do it for you. Have you started it but got stuck somewhere? Have you finished it but it doesn't work quite right? Please ask specific...
-
Bump. I've always been interested in learning how this is done in professional software. The following link is something I found after a quick search. It seems like too simple of an algorithm, but...
-
It's still polling the connections, just less often. There's a lot of overhead involved in thread scheduling, plus you're adding unnecessary delay to the response time, so this doesn't feel like a...
-
Don't use global variables. It's a design decision in Java, not a weakness. Global variables are for people still using procedural languages and is counter-OOP.
One improvement I see is to combine...
-
Thanks, keang! That article is pretty good.
I think we may have to go with non-blocking sockets. Your idea about constantly polling for input would work for small numbers of clients, but if you...
-
Destructive testing is key to unit testing a single class. For instance, lets say we have a Calculator class, and one of its methods is divide(int dividend, int divisor). One of your unit tests...
-
edit: Didn't see that this was resolved.
-
Hello all!
We're working on a MUD. Runnable worker objects are created for each Socket accepted, and then they are executed by a fixed thread pool. The Runnable objects stop running after a client...
-
March 8th, 2009, 05:27 PM
Alright, I solved the problem. I needed to execute it like this:
"g++ main.cpp -o main -lboost_thread -lboost_system"
My first problem was using "-llibboost_thread" instead of "-lboost_thread"....
-
March 7th, 2009, 11:47 PM
I'm using Ubuntu 8.10, and gcc 4.3, and have installed all of the Boost 1.35 libraries available in the package manager.
What I want to use is Boost's Asio. I've copied the example code from the...
-
March 5th, 2009, 10:29 PM
Thanks!
I also found the following page after doing a little digging.
http://www.codeguru.com/cpp/cpp/cpp_mfc/stl/article.php/c15303__2/
I had a hell of a time finding anything useful using...
-
March 5th, 2009, 09:56 PM
So I finally installed Ubuntu Desktop 8.10 on my laptop and moved from C# to C++, but I'm having a pretty crippling issue. I can't figure out how to use a hash map in gcc 4.3.1.
I've found three...
-
March 4th, 2009, 12:52 PM
So I was skimming through my software engineering book, and I came upon a small section saying that we should try to develop or use standardized components for use in our programs so we spend less...
-
February 24th, 2009, 09:38 AM
Thanks for the answers, guys!
laserlight: I didn't know C# was even available outside of the .NET Framework in Windows. That's really good to know.
Red Squirrel: It never crossed my mind to use...
-
February 23rd, 2009, 09:13 PM
My original language of choice was C++, but I really started learning once I got into Java then C#. I've started programming a MUD in C#, and I've got most of the framework in place (network support,...
-
February 6th, 2009, 04:27 PM
I'm trying to write a translator program that converts one file format to another. The original format has null characters scattered everywhere, so it's keeping me from reading much of it. The null...
-
Wow guys, excellent discussion! For this particular project, .Net seems to be the best way to go. What about the version of VS? VS2005 seems to contain most of the stuff I need and is relatively...
-
June 26th, 2008, 02:48 PM
The advice from experienced programmers is needed and would be greatly appreciated. For the last few years, I've been focusing mainly on console-based C++ programming. Unfortunately, I've been having...
|
Click Here to Expand Forum to Full Width
|