Search Results

Showing results 1 to 40 of 70
Search took 0.01 seconds.
Search: Posts Made By: orwell84
Forum: Perl Sep 25th, 2009
Replies: 1
Views: 601
Posted By orwell84
Well, I want to have a program make a graph from the data that it has, so I looked up how to do that in Perl. The GD::Graph module came up. The problem is, that I tried installing GD previously and...
Forum: Perl Jul 31st, 2009
Replies: 1
Views: 508
Posted By orwell84
I have been using this code:

while (($key, $value) = each (%hash))

To iterate through a hash. However, the order of the keys that it retrieves are exactly the same each time i run the script. I...
Forum: Domains and DNS Jul 23rd, 2009
Replies: 4
Views: 648
Posted By orwell84
GAH THREAD BUMPING

Anyway, I have a few answers. One thing you need to do is (in most cases) run this command

sudo tasksel install lamp-server

That will install the lamp server. (Linux,...
Forum: C Jun 15th, 2009
Replies: 8
Views: 407
Posted By orwell84
Thanks for the other error catch. Like I said, I'm going to wait to come back to this problem when I know about memory allocation. If I have to limit the amount of primes that I can find, why make it...
Forum: C Jun 14th, 2009
Replies: 8
Views: 407
Posted By orwell84
I get a floating point exception now. I'll revisit this when I learn about memory allocation...by the way, I'm using the massive book called the Internet
Forum: C Jun 13th, 2009
Replies: 8
Views: 407
Posted By orwell84
Thanks for the solution, but now it won't compile. Doesn't int *primes have to be an array?
Forum: C Jun 13th, 2009
Replies: 8
Views: 407
Posted By orwell84
okay, so I wrote a program in Perl to find prime numbers and, when learning C, I decided to translate it into C. The thing is that...well...it doesn't work. No matter what I do, I get the same...
Forum: Domains and DNS May 25th, 2009
Replies: 4
Views: 648
Posted By orwell84
Okay, so for the past week or so, I've been trying to set up a web server to...well...host a website. So I figured out how to install a LAMP server under Ubuntu and I got a free DNS hostname from...
Forum: Networking Hardware Configuration May 19th, 2009
Replies: 2
Views: 1,034
Posted By orwell84
It realizes that it's connected to something and tries to connect, but it always says it's disconnected in the end. The problem is that I don't know where the flash chip is
Forum: Networking Hardware Configuration May 19th, 2009
Replies: 2
Views: 1,034
Posted By orwell84
I have a Linksys WRT54G router for my home wireless network. However, I tried to flash it, but it bricked. How do I unbrick it? I searched Google and found a good tutorial to do this for the "WRT54G"...
Forum: Assembly May 12th, 2009
Replies: 12
Views: 1,336
Posted By orwell84
Not compilers. Assemblers, you said it yourself. But the concept is the same.
Forum: Assembly Apr 25th, 2009
Replies: 2
Views: 325
Posted By orwell84
Narue's tutorial is good, but this (http://tinyurl.com/d8dzp6) should help too.
Forum: Perl Apr 25th, 2009
Replies: 2
Solved: substr problem
Views: 824
Posted By orwell84
Thanks, that worked. I was making a binary to decimal converter. Here's the code if anyone's interested:

#!usr/bin/perl -w

print "Binary number: \n";
$bin = <STDIN>;
chomp $bin;
$dec = 0;...
Forum: Perl Apr 18th, 2009
Replies: 2
Solved: substr problem
Views: 824
Posted By orwell84
I'm having a problem with the substr function. I want it to be dynamic in a for loop as follows:

for ($i = substr $bin, $sub, 1 ; $sub < $len2 ; $sub++){

You can probably guess what this code...
Forum: Assembly Apr 16th, 2009
Replies: 12
Views: 1,336
Posted By orwell84
Yeah, but that's a Microsoft product. And god forbid anything from Microsoft should be free
Forum: Troubleshooting Dead Machines Apr 14th, 2009
Replies: 33
Views: 1,587
Posted By orwell84
Was your computer on during the storm? If it was on and not connected to a surge protector or power strip, then it's pretty much gone. I don't think this is the case, though, because your power...
Forum: Assembly Apr 10th, 2009
Replies: 12
Views: 1,336
Posted By orwell84
Here's another helpful tutorial on daniweb:
http://www.daniweb.com/forums/thread41309.html
Forum: Assembly Apr 10th, 2009
Replies: 12
Views: 1,336
Posted By orwell84
I already had it on my list of websites for Assembly learning. Looks good to me.
Forum: Assembly Apr 10th, 2009
Replies: 12
Views: 1,336
Posted By orwell84
Yeah, well, the compiler that it uses will be different, unless it's just gcc with an IDE...
Forum: Assembly Apr 10th, 2009
Replies: 12
Views: 1,336
Posted By orwell84
Most CPU's in computers use x86. NASM and MASM and A86 are just different assemblers. If you've ever programmed in C, C++, Pascal, etc. before, it's like a compiler. There will be standard things on...
Forum: Networking Hardware Configuration Apr 9th, 2009
Replies: 1
Views: 376
Posted By orwell84
Okay, so I'm thinking of getting a simple wired router by Linksys or something just to practice some cisco networking things that I plan on learning a bit over the summer. You know, just some IOS...
Forum: C++ Apr 6th, 2009
Replies: 5
Views: 330
Posted By orwell84
Okay, so I've done a few of the things I mentioned:

#include <iomanip>
#include <iostream>
#include <cmath>
using namespace std;

double roundIt(double x, double n) {
x = floor( x *...
Forum: C++ Apr 6th, 2009
Replies: 5
Views: 330
Posted By orwell84
First of all, you're not using any brackets ({ and }) with your loops. Note that the code for a while loop is

while (condition) {
code goes here
}

The same goes for any conditional...
Forum: C++ Apr 5th, 2009
Replies: 1
Views: 202
Posted By orwell84
Daniweb is pretty good with helping people write code, actually. You just need to do some work. Anyway, I don't know if this will help a ton, but here's an article...
Forum: Perl Apr 5th, 2009
Replies: 2
Views: 1,744
Posted By orwell84
Here's the answer (http://tinyurl.com/c2qn3f)
Forum: C++ Mar 24th, 2009
Replies: 8
Views: 584
Posted By orwell84
These are sort of simple, but here's what I've done (and a few things I want to do):
1. a command-line calculator
2. find the factorial of a number
3. Fibonacci sequence (# of iterations or max...
Forum: Perl Mar 23rd, 2009
Replies: 3
Views: 544
Posted By orwell84
Thanks. I was looking through the Perl documentation on regex, and I guess I missed that somewhere.
Forum: Perl Mar 23rd, 2009
Replies: 3
Views: 544
Posted By orwell84
Hello, I'm just wondering how you would go about exporting the matches that regex finds. For example, if I were to have the following code, which matches all the digits in a string and (supposedly)...
Forum: C++ Mar 23rd, 2009
Replies: 9
Views: 788
Posted By orwell84
New problem though...(i guess it's not really a problem, just something weird) When i put in 20 to find the factorial, I get -2102132736...now I know it's not a negative number. Is this just an...
Forum: C++ Mar 23rd, 2009
Replies: 9
Views: 788
Posted By orwell84
I finally got this one! YES!!! Thanks everyone, I'm so ecstatic now. This thread is finally solved, I finally understand recursion, etc. etc. Hooray! And I was just beating myself up five minutes ago...
Forum: C++ Feb 28th, 2009
Replies: 2
Views: 287
Posted By orwell84
Why are you taking a programming/computer science class if you don't want to put any effort into it?
Forum: C++ Feb 28th, 2009
Replies: 3
Views: 609
Posted By orwell84
I had something before where it was:

for ((i = 2; i < num; i++){
if (num % i == 0){
primecheck = 1;
}
if (num %i != 0){
primecheck...
Forum: C++ Feb 28th, 2009
Replies: 3
Views: 609
Posted By orwell84
I am writing a program that will take input and find whether or not the number you put in is prime. The program works fine, save for one small problem:


#include <iostream>
using namespace std;...
Forum: Perl Jan 24th, 2009
Replies: 4
Views: 840
Posted By orwell84
Forum: Perl Jan 23rd, 2009
Replies: 4
Views: 840
Posted By orwell84
Thanks very much. The only question I have is as to why it says that it took a negative number of wallclock seconds. The longer it takes, the lower the number, essentially. Do you know why this is?
Forum: Perl Jan 22nd, 2009
Replies: 4
Views: 840
Posted By orwell84
Is there any way that I can get PERL to give me the elapsed time that it took to calculate something? I'm trying to make my algorithm for finding prime numbers more efficient, and obviously I can't...
Forum: Shell Scripting Jan 20th, 2009
Replies: 4
Views: 1,415
Posted By orwell84
The problem is that the file doesn't have any commands in it. It just says this:

#########################################################################
# .bash_profile: Personal...
Forum: Shell Scripting Jan 20th, 2009
Replies: 4
Views: 1,415
Posted By orwell84
I'm getting into bash shell scripting with Ubuntu 8.10, and the tutorial I'm using is telling me to open the file .bash_profile which is allegedly in the home directory. However, I cannot find this...
Forum: Perl Jan 20th, 2009
Replies: 8
Views: 929
Posted By orwell84
Thanks KevinADC, I just have two questions.
1) What is the +1 for after the int(rand 10)? I tried to see what happened if I got rid of it, and nothing was different.
2) Why is 1 the condition for...
Forum: Perl Jan 19th, 2009
Replies: 8
Views: 929
Posted By orwell84
You mean like this?

if ($guess < $thinkingof){
print "You guessed higher than $thinkingof.\n";
}

I tried that, and the randomness is working; each time, it's a different number.
Showing results 1 to 40 of 70

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC