Showing results 1 to 40 of 73
Search took 0.01 seconds.
Posts Made By: nanodano
Forum: Java Aug 3rd, 2007
Replies: 1
Views: 449
Posted By nanodano
Question 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
Posted By nanodano
Question 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
Posted By nanodano
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
Posted By nanodano
Question 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
Posted By nanodano
Question 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
Posted By nanodano
Question 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
Posted By nanodano
Forum: Posting Games Apr 5th, 2007
Replies: 3,341
Views: 130,081
Posted By nanodano
Forum: Posting Games Apr 5th, 2007
Replies: 3,341
Views: 130,081
Posted By nanodano
Forum: Perl Apr 5th, 2007
Replies: 3
Views: 1,816
Posted By nanodano
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
Posted By nanodano
Question 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
Posted By nanodano
Re: String replacement in a file

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: 130,081
Posted By nanodano
Forum: Perl Apr 4th, 2007
Replies: 3
Views: 2,649
Posted By nanodano
Help 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
Posted By nanodano
Question 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
Posted By nanodano
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
Posted By nanodano
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
Posted By nanodano
Help 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
Posted By nanodano
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
Posted By nanodano
Re: pthread

Thank you, I found out our mainframe does have it already.
Forum: C Nov 19th, 2006
Replies: 3
Views: 1,179
Posted By nanodano
Help 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
Posted By nanodano
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
Posted By nanodano
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
Posted By nanodano
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
Posted By nanodano
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
Posted By nanodano
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
Posted By nanodano
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
Posted By nanodano
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
Posted By nanodano
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
Posted By nanodano
I compiled your latter source code, and it worked...

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 / 2003 Nov 7th, 2006
Replies: 0
Views: 1,340
Posted By nanodano
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
Posted By nanodano
Re: Having trouble displaying an Arrays. Please help.

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: 3,829
Posted By nanodano
Re: Having trouble displaying an Arrays. Please help.

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,013
Posted By nanodano
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
Posted By nanodano
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
Posted By nanodano
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
Posted By nanodano
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
Posted By nanodano
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
Posted By nanodano
Re: Linking separate files

I did try it, but no luck :sad: same errors.
Forum: C++ Oct 31st, 2006
Replies: 11
Views: 1,981
Posted By nanodano
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.
Showing results 1 to 40 of 73

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:53 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC