Forum: Java Aug 3rd, 2007 |
| Replies: 1 Views: 796 I've been trying to find a function that returns the version number of the JVM. I found this website that does it, so I know it can be done:
http://www.javatester.org/version.html
Can anyone... |
Forum: IT Professionals' Lounge Jul 27th, 2007 |
| Replies: 1 Views: 1,000 I need to research ways to run a diagnostic check on a user's browser. This includes
Cookies enabled
Javascript available and version
Pop-up windows enabled
Javascript available and... |
Forum: Ruby May 4th, 2007 |
| Replies: 13 Views: 8,732 I think it is unfair to stick the Ruby discussion forum inside Web Development. Ruby on Rails is a really handy web framework, but Ruby has other capabilities. I think it should be put under Software... |
Forum: IT Professionals' Lounge Apr 20th, 2007 |
| Replies: 1 Views: 1,399 Do you think it is OK for a supervisor to fire an employee for getting a call from another company they applied for? Is it standard business practice to call someone's current employer to ask about... |
Forum: C++ Apr 9th, 2007 |
| Replies: 3 Views: 12,646 Is there any way to read or write to a socket besides using the read() and write() functions. Is there any way to treat it like a stream and use the insertion/extraction operators (<< and >>)? The... |
Forum: C Apr 6th, 2007 |
| Replies: 1 Views: 1,445 When programming with pthreads, you pass the thread a function to run when you create it. When this function is done, is the thread cleaned up automatically? Is it necessary to put pthread_join() in... |
Forum: Posting Games Apr 5th, 2007 |
| Replies: 3,341 Views: 179,013 |
Forum: Posting Games Apr 5th, 2007 |
| Replies: 3,341 Views: 179,013 |
Forum: Posting Games Apr 5th, 2007 |
| Replies: 3,341 Views: 179,013 |
Forum: Perl Apr 5th, 2007 |
| Replies: 3 Views: 2,607 I found a solution to my own problem now. =P
This works:
#!/bin/perl
use Shell;
$command = echo("parameters", "go", "here");
print $command; #performs echo |
Forum: Perl Apr 5th, 2007 |
| Replies: 3 Views: 2,607 Is it possible to have a perl script and a bash script in one file? Like:
#!/bin/perl
print "This is perl";
#exit perl
#!/bin/bash
echo "This is bash"
exit 0 |
Forum: Perl Apr 5th, 2007 |
| Replies: 3 Views: 3,876 I added an escape \ to $s1 like you did to $s2 and it worked great, thanks! |
Forum: Posting Games Apr 4th, 2007 |
| Replies: 3,341 Views: 179,013 |
Forum: Perl Apr 4th, 2007 |
| Replies: 3 Views: 3,876 I have a very specific problem.
Does s/// work with strings that are contained in single quotes? I've been debugging and I'm trying to replace a string that contains a $ in it. If I use double... |
Forum: C++ Apr 2nd, 2007 |
| Replies: 1 Views: 793 I'm trying to create a general buffer that I can use in my program. It will work with ints as well as strings. So far I've been using a strstream, and it works without a hitch, but I was wondering if... |
Forum: Perl Feb 22nd, 2007 |
| Replies: 1 Views: 7,237 I am working with form processing and text manipulation, and I found two useful functions; tr/// and s/// They do pretty much the same thing, but I was wondering if anyone could explain to me what... |
Forum: C++ Feb 14th, 2007 |
| Replies: 4 Views: 7,354 I found out the problem. It waits because it wants another program to handle the other end of the pipe.
I fixed my codes up and I wrote a script like this to fix the problem:
#!/bin/bash... |
Forum: C++ Feb 13th, 2007 |
| Replies: 4 Views: 7,354 Hi,
I'm trying to write a program using named pipes, and I'm having trouble opening it. In another program I call this line:
mkfifo("./fife", 0777);
So my named pipe exists and I see it... |
Forum: C++ Nov 20th, 2006 |
| Replies: 10 Views: 4,516 If you want to connect to your own network by going outside and coming back in you need to know your external IP address, and you need to tell your router to forward your port(1234) to your server... |
Forum: C Nov 20th, 2006 |
| Replies: 3 Views: 1,645 Thank you, I found out our mainframe does have it already. |
Forum: C Nov 19th, 2006 |
| Replies: 3 Views: 1,645 Does anyone know where I can find the pthread library for Linux? And I don't want any rude "go google it" responds. I tried that, and all I came up with was one download available for win32. |
Forum: Perl Nov 19th, 2006 |
| Replies: 8 Views: 3,072 depends what operating system you have. on linux type
chmod +x myscript.pl
in windows...i dont think it differentiates files that are executable and text files except by the extension, which... |
Forum: C++ Nov 18th, 2006 |
| Replies: 6 Views: 4,513 This code snippet actually contains a few nifty things. There are two functions, hasVisited() and main(). hasVisited() makes use of a very handy function for CGI programmers: getenv. You can see I... |
Forum: IT Professionals' Lounge Nov 12th, 2006 |
| Replies: 1 Views: 1,755 I'm trying to get into some practice with Mesa GL and I know it works for the X desktop. Will it work the same with Gnome or KDE? Are those based off of X? |
Forum: C++ Nov 11th, 2006 |
| Replies: 14 Views: 2,626 s.o.s.
Thanks for the clarification. I noticed that his was default initialized to 0 so i thought maybe it depended on the compiler. Now I know it only does that with global variables. |
Forum: C++ Nov 10th, 2006 |
| Replies: 14 Views: 2,626 Hey,
In your printshippos function, you declare checkFlag at the top of that cpp file. When you initialize it like that w/o any number, it is either an unknown number, or in most cases, 0. The... |
Forum: C++ Nov 10th, 2006 |
| Replies: 14 Views: 2,626 hey, would you mind posting your code of sending me your code? I'd like to see your working code just so I can study it. |
Forum: C++ Nov 9th, 2006 |
| Replies: 14 Views: 2,626 I noticed too that you declare shippos inside an if block { } and try to refer to it in the next if statement, which is in a different block of code. That is probably why it prints out as 0+228... |
Forum: C++ Nov 9th, 2006 |
| Replies: 14 Views: 2,626 Here is a link that might help you.
http://www.functionx.com/managedcpp/keywords/static.htm |
Forum: C++ Nov 9th, 2006 |
| Replies: 14 Views: 2,626 I think the problem is because when you declare a variable static it affects the lifetime of it. You declare it inside the If brackets { }, so it will be destroyed at the end of the if statement.... |
Forum: C++ Nov 9th, 2006 |
| Replies: 10 Views: 1,717 I compiled your latter source code, and it worked fine. I could input the four numbers and it would give me output. You say it quits before it outputs the text? If you are using Visual Studio, if you... |
Forum: Windows NT / 2000 / XP Nov 7th, 2006 |
| Replies: 0 Views: 1,908 Is there a way to set global hot keys? I want to be able to run a program using a hotkey like CTRL-F12 or something. Any ideas how to do that? |
Forum: C Nov 7th, 2006 |
| Replies: 26 Views: 4,619 You use list = names which assigns names to list in your code. You may mean to have that switched. Also, why not read directly into names? I am pretty sure your dispute between 1 and 2 dimensional... |
Forum: C Nov 7th, 2006 |
| Replies: 26 Views: 4,619 Acquire,
The first thing I noticed was this char names[99][28]= {" "};. If you get an error with that line, try using single quotes instead of double quotes. Double quotes are associated with... |
Forum: C++ Nov 7th, 2006 |
| Replies: 2 Views: 1,239 I have a question and I was hoping someone could point me in the right direction.
I know the IP address of a server I want to download a file from, and I know the path on the client hard disk I... |
Forum: Geeks' Lounge Nov 4th, 2006 |
| Replies: 1 Views: 955 Have any of you competed in the topcoder matches? Have you found them helpful? |
Forum: C++ Nov 4th, 2006 |
| Replies: 17 Views: 2,673 I am a college student right now and I do almost all of my school coding with JOE on linux systems and compile with g++. I've also had to use Visual Studio 2003, which did make it easy to debug. I... |
Forum: C++ Nov 1st, 2006 |
| Replies: 11 Views: 2,863 Ok, so I tried everything I could think of and tried everyone's suggestions. Finally, I just put it all into my main cpp file. It looks like this:
#include <iostream>
#include <vector>
class... |
Forum: C++ Nov 1st, 2006 |
| Replies: 7 Views: 5,868 I like this snippet. I always find this kind of C++ code very useful. |
Forum: C++ Nov 1st, 2006 |
| Replies: 11 Views: 2,863 Alright, I read the page a few times, and tested a few things and still I was frustrated. I decided to do away with the templates, because in my case I am only going to use it for int. I simplified... |