- Strength to Increase Rep
- +5
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Junior System Developer
- PC Specs
- 15" Macbook Pro running Windows 7 Ultimate
Re: Everything looks good, but just to make sure that you can access your data globally you might want to do something like this. <?php //this is config.php //inclusion of this file will give you access to an array called $userInfo //you can get information about the user by accessing this … | |
Re: This would be a good place to start. http://php.net/manual/en/function.scandir.php This function will let you scan a directory, but you have to create your own methods for determining the difference between files and folders. Those are also PHP standard functions, so please look through the documentation. | |
I have an interesting problem and have searched the internet, but haven't yet found an answer. Consider the following function: function get_setting_values_from_file( $parameter ) { exec("/usr/var/binary --options $parameter", $output, $return); $settings = file( $output[0] ); } I need to unit test a similar function. I am currently using phpUnit for … | |
My network card doesn't have any UNIX drivers, but it does have windows drivers, so I'm trying to install ndiswrapper. It seems like the default installation of Ubuntu server doesn't have python installed, so I can't dpkg niswrapper in. Is there any resource to help me learn how to hunt … | |
I'm having a small problem with a variable in one of my PHP scripts. The variable is `$isSubMenu`. It gets set using a function that runs recursively called createNavigationMenu. However, even though I have set it, the interpreter keeps telling me that the variable is undefined. I really don't know … | |
Before I post my problem I would like you in advance for taking the time to read this. I've been using simpletest to help me develop and test my php scripts. I'm currently working on a session class and when I go to test it I get the following exception … | |
I'd like to start by thanking whoever reads this for their help. I've been trying to learn Test Driven Development (TDD) in a php environment. I've read a lot about it and stumbled upon both PHPUnit and simpletest. I've spent the past 8 hours searching the internet for tutorials and … | |
How do I represent a use case that has no actor? I'm doing the preliminary work for an IT system. I'm trying to list up all the actors so that I can create all the use cases that I need; however, there are things like background processes that must run … | |
Re: Could you post the code for your structs by any chance? | |
Re: Before we can solve that problem there are a few questions that you may need to answer. 1. What exactly to do mean by "when the gui isn't doing anything?" do you mean "when the user hasn't put input anything for 30 seconds" or "when there hasn't been any mouse … | |
Re: Could you post the code for the declaration of RacingCar? | |
Re: Yeah, you probably should have posted this in job offers. I'm on top of it though. | |
Re: From what I'm seeing here your problem maybe with this. [CODE=VB]If EnterDestination.ToUpper = Destinations(index) Then[/CODE] Using the ToUpper method makes the whole string uppercase. So if the user entered "hello" the string would become "HELLO" after calling ToUpper. Take a look at the MSDN explaination of ToUpper function [url]http://msdn.microsoft.com/en-us/library/system.string.toupper(VS.71).aspx[/url] One … | |
Re: I don't quite understand your question. Do you mean, you have 3 radio buttons. For example Rdbut1 Rdbut2 Rdbut3 When a user selects Rdbut1, the value 1 is displayed in a text box? | |
Re: Could you post the command you are using to compile your program when it is in the jdk\bin folder? | |
Re: First things first, you might want to clean things up by moving your struct and function declarations to a header file. Next if you change the function prototype [CODE=C]int insert(struct queue * the_Queue, int item)[/CODE] to [CODE=C]int insert(struct queue * the_Queue, struct product * item)[/CODE] the function declaration from [CODE=C]int … | |
Re: What you might want to do is use two loops. One loop for storing each number, and another for printing each number. [CODE=C]#include <iostream> using namespace std; int main() { int y, s[100]; for ( y = 0 ; y < sizeof(s); y++ ) { cout << "Enter a Number: … | |
Re: I assume that when you ran the code after you set the text with setText it ran just fine? A really quick way to debug this code would be to use a try catch block to find out what is going on when you parse your string. [CODE=JAVA]public double getLatEntered() … | |
Re: Like you said, if you pass it a real value then you have no problems, so the problem would be in these two lines. Did you check the value that's coming back from Mid(RichTextBox1.Text, 1, 800) ? If this isn't returning a value then that's the problem. Otherwise check the … | |
Re: For the first part of your question you can use sscanf(). [url]http://www.cplusplus.com/reference/clibrary/cstdio/sscanf/[/url] I'll back to you on the second part in just a second. | |
Re: A lot of times when you have a linker error, it means that one of your functions is looking for a function prototype ( the things that you usually put in a header file so that other functions can call each other ). That's what we use #include for. In … | |
Re: Would it be possible for you to post the code for your class declaration, the function for getEngineIds(), and your main? | |
Re: I don't quite understand your question. Could you rephrase it once again in a little more detail? | |
Re: When you use "%s" specifier for fscanf it reads until a white space character is found. White space characters would be a space, newline character, or a tab. You can check out details on fscanf here. [url]http://www.cplusplus.com/reference/clibrary/cstdio/fscanf/[/url] I also took a quick look at your structs. Since you're a linking … | |
Re: Are you talking about an exe file that made to install a program? In which case the thing that you would be talking about doing is making an installer? | |
Re: The solution to your problem isn't that difficult... well not for someone with some programming experience. If you are looking to program a solution to this problem the steps that I would take would be the following. 1. Generate a list of numbers from 1 - 999999 because you want … | |
Re: I just glanced through this really quick, but on line 148 you have [CODE=C]if((temp->pri>pr)&&(temp->state!=2)) { pr=temp->pri; }[/CODE] You also have the declaration [CODE=C]int pr = -1;[/CODE]. Does temp->pri ever get set to -1? From what I saw it doesn't, so might that be part or your problem? | |
Re: Would it be possible for you to post the code for the class in question and the function that should be getting the value of the resources? | |
This i the background to my problem, which is stated in bold text. I am currently working with a SAFEARRAY. I've declared a two dimensional array in VB6 and I'm trying to store data from a C++ dll in it. I have used the resources listed below to learn how … | |
Before I state my problem, which is in bold text, I need to give you a little bit of background. I'm working with 3 binary log files of about 35mb each. Each one holds approximately 65000 records. Each record, which is about 400 bytes, holds information containing the date, transmission … |