Forum: Java Aug 3rd, 2007 |
| Replies: 1 Views: 449 Version output 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 help... |
Forum: IT Professionals' Lounge Jul 27th, 2007 |
| Replies: 1 Views: 765 Detection of applications 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 version
... |
Forum: Ruby May 4th, 2007 |
| Replies: 13 Views: 6,568 Ruby and non-web development 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,030 Getting fired for looking at other jobs 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: 5,521 UNIX Socket read/write functions 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: 931 Using/Omitting pthread_join() 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: 130,081 |
Forum: Posting Games Apr 5th, 2007 |
| Replies: 3,341 Views: 130,081 |
Forum: Posting Games Apr 5th, 2007 |
| Replies: 3,341 Views: 130,081 |
Forum: Perl Apr 5th, 2007 |
| Replies: 3 Views: 1,816 Re: Multiple scripts in one file 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: 1,816 Multiple scripts in one file 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: 2,649 |
Forum: Posting Games Apr 4th, 2007 |
| Replies: 3,341 Views: 130,081 |
Forum: Perl Apr 4th, 2007 |
| Replies: 3 Views: 2,649 String replacement in a file 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: 551 iostreams and strstreams 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: 3,381 Difference between tr and s 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: 3,887 Re: Named Pipe (FIFO) 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
echo... |
Forum: C++ Feb 13th, 2007 |
| Replies: 4 Views: 3,887 Named Pipe (FIFO) 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 in my... |
Forum: C++ Nov 20th, 2006 |
| Replies: 10 Views: 3,484 Re: Connecting to a computer via sockets 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,179 Re: pthread Thank you, I found out our mainframe does have it already. |
Forum: C Nov 19th, 2006 |
| Replies: 3 Views: 1,179 pthread 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: 2,542 Re: setting permissions locally 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 is... |
Forum: IT Professionals' Lounge Nov 12th, 2006 |
| Replies: 1 Views: 1,375 mesa gl with x/gnome/kde 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,145 Re: If Else: Logic Jam? 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,145 Re: If Else: Logic Jam? 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,145 Re: If Else: Logic Jam? 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,145 Re: If Else: Logic Jam? 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,145 Re: If Else: Logic Jam? 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,145 Re: If Else: Logic Jam? 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,393 |
Forum: Windows NT / 2000 / XP / 2003 Nov 7th, 2006 |
| Replies: 0 Views: 1,340 global hot keys 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: 3,829 |
Forum: C Nov 7th, 2006 |
| Replies: 26 Views: 3,829 |
Forum: C++ Nov 7th, 2006 |
| Replies: 2 Views: 1,013 downloading a file 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 want... |
Forum: Geeks' Lounge Nov 4th, 2006 |
| Replies: 1 Views: 741 Topcoder Have any of you competed in the topcoder matches? Have you found them helpful? |
Forum: C++ Nov 4th, 2006 |
| Replies: 17 Views: 2,206 Re: So,everbody's using IDEs? 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: 1,981 Re: Linking separate files 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: 11 Views: 1,981 Re: Linking separate files 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... |
Forum: C++ Oct 31st, 2006 |
| Replies: 11 Views: 1,981 |
Forum: C++ Oct 31st, 2006 |
| Replies: 11 Views: 1,981 Re: Linking separate files Can I combine Queue.h and Queue.cpp into one file? I tried it, but I still get errors, so I'm not sure if that is allowed. |