5,331 Posted Topics
Re: The only question I will answer is #3. SQL injection is when someone alters an SQL query predicate to do something other than what the web site developers intended. How do you avoid it? You don't allow SQL queries or query predicates directly in HTTP GET/POST messages. You take the … | |
Re: You want the code for that web page? Most browsers should allow you to display the code. I just did with Firefox. It's about 1000 lines of HTML with form calls to various PHP pages, most of which are recursive calls to the same page except the login script which … | |
![]() | Re: It sounds like your Firefox proxy settings are incorrect. Go to Edit->Preferences->Advanced->Network and verify if you have clicked on "Use system proxy settings" or something else. |
Re: Another term for this is "scoping", in that the scope of the variable is until the block it is defined within terminates. That particular variable will take precidence over others of the same name that are defined outside of the block, including global variables. | |
Re: What Moschops said, but you can have multiple versions of gcc installed on your system. The command shown will be the default version installed on your system. I have both 4.4.7 (default) as well as 4.7.2 installed. At Fermi National Laboratory, they are running 4.9.1 by default as I understand … | |
Re: We don't do your homework for you. Make an honest effort and post your code here when you hit a brick wall. | |
Re: Fibonacci algorithms can be made interesting especially if you discuss some of the history. The algorithm for computing the Fibonacci sequence is simple enough, has tonnes of applications, and has copious examples in nature. Here are two wikipedia articles that may help: http://en.wikipedia.org/wiki/Fibonacci and http://en.wikipedia.org/wiki/Fibonacci_number FWIW, I found that joining … | |
Re: Most old keyboards are what were PS2 boards and plugged into a round port in the back of the computer. If your computer doesn't have such a port, then you can get a PS2 to USB adapter for a few $$ from most online computer gear suppliers such as Rakuten … | |
Re: This is why you need to read my tutorial about using PHP properly as an object-oriented language. Don't do this stuff inline. Build your data strings dynamically in a class method or a function first, then output it. https://www.daniweb.com/web-development/php/tutorials/484310/why-you-dont-want-to-mix-php-and-html-directly | |
Re: Google analyzed the list and found that less than 2% of the entries were legitmate current gmail credentials (that's still about 100,000), and have informed those account that they need to update their password on next login. Here is the relevant article: http://arstechnica.com/security/2014/09/google-no-compromise-likely-massive-phishing-database/ | |
Re: Please show an example of data and your expected (desired) output. | |
Re: So, what is your problem? Please be specific and show examples of why these methods aren't working for you. | |
Re: Ok. And just what is your problem? You want us to analyze your code making untenable assumptions? Please get real... | |
Re: If your laptop is showing no connections (ssid's) active at all, then there is either a hardware or software problem with the laptop. First, shut it down completely. Then, after a couple of minutes try rebooting. If it works then, it is probably a software issue, which can happen if … | |
Re: First, arguments on the command line are presented to the main() function via the argv string array. Next, process each argument (argc 0 is the command name, argc 1 is the first argument, etc) and convert each to an integer. IE: `cmdname 1 2 3 999` will pass 5 arguments … | |
Re: This is why we have such system defined macros as INT_MIN and INT_MAX, etc. Those will be set appropriately for the architecture of your system, 2's complement or otherwise. FWIW, for an 8 bit integer (char) value, you would use the SCHAR_MIN and SCHAR_MAX macros. Also, for Intel class processors, … | |
Re: I'm not familiar with this tool, but since it is generating binary executables my experience shows that when it works in debug mode but not production mode (segfaults, etc), it is due to the fact that debug mode pads arrays and such with extra memory. As a result, you might … | |
Re: What Moschops said. In the first case, you would have some code like this (not suitable for class or production): switch (selection) { case 1: system(program1); break; case 2: system(program2); break; . . . default: fprintf(stderr, "Invalid selection made (%d)\n", selection); break; } This should give you an idea to … | |
Re: Load testing is very different from functional and regression testing. The issue is one of being able to access system performance data, such as CPU usage, network saturation and latencies, disc (SD card) I/O rates and latencies, etc. This requires access to the OS, and in some cases may only … | |
Re: You have posted this twice. Please DO NOT do that! I answered the question already... :-( If the double posting was in error, then I understand that this happens occasionally (fat fingers on the keyboard), but don't make it a habit. | |
Re: IE, please show what is setting the 'ss' variable that you are checking. The loop you show doesn't explicitly set it. That said, unless ss is a global variable, this could result in an endless loop. | |
Re: You might also try /sbin/fsck.xfs, though I would suspect that it converts that into a call to xfs_repair. It may be worth a try, however. | |
Re: There were some related bugs in the original release of Mavericks. Have you installed the latest updates? | |
![]() | Re: Please show the entire header and source for the CMObject class. |
Re: There is no rule. This issue is processor-dependent. Some will drop data when the shift results in an integer wrap-around event, and others will push the left-most bit to the right-most (or vice-versa depending if the operator is << or >>). IE, what happens on an x86 processor may be … | |
Re: Ever hear of Google? Have you looked at the PHP documentation? Have you ever edited an image file before? Don't ask us to do your homework (or work-work) for you if you haven't made an effort to solve the problem. I had a work task assigned to me to build … | |
Re: Also, use instances of the std::vector class, and use the push_back() method to put the data into the correct vector (odd vs. even). Then, when done with the input, you can use a loop with an iterator to output the data from each vector. If you know the size of … | |
Re: This is as expected. The atoi() function stops at the first non-numeric character in the string, which would be the space. You can use the strtol() (string-to-long) function which allows you to pass the address of a char pointer which will be set with the location of the space in … | |
Re: Huh? Please explain more clearly/completely. | |
Re: state -> event -> transition -> new state. This is the short version of how FSM (Finite State Machines) work. The system starts in some state, gets an event, evaluates what state to transition to, possibly doing some work during the transition. | |
Re: There are a number of methods to do this. There are native MySQL API's for C, ODBC, etc. Go to the MySQL web site for all the information you need: http://dev.mysql.com/ | |
Re: This is what you should use: `for (i = numwords-1; i >= 0; i--) {...}` | |
Re: If the MBR was borked, then it is likely the disc is fried and your attempts at recovery will be for naught. You need to run a sector scan on the drive to see if there are too many bad sectors. Is this a hard drive, or an SSD? | |
Re: Myself, I like Wirth's "Algorithms + Data Structures = Programs". It's a bit dated, but it was the seminal treatise on the subject. | |
Re: Put `#endif // !RoomOne_H` at the end of RoomOne.h and don't include RoomOne.h in StoneAdventure.h | |
Re: The question is whether it has really stopped charging, or if just the charging icon is not being properly updated. With the battery fully charged, try running the game long enough that if it isn't charging when you stop running the game (shut it down completely), you will see that … | |
Re: I prefer Linux myself, but Windows 7 is a good option for learning systems used by many corporations. | |
Re: Please be more specific about what your problem is. Does the WiFi work with Linux? How are you tring to connect to your Windows 7 system? | |
Re: My guess is that there is a hidden file in the directory which the shell is not able to expand, resulting in the error. Check for that. | |
Re: 1. Properly indent your code so it is easier to read. 2. You probably didn't check for a NULL value, resulting in the crash. 3. Item 2 above (null value) is not uncommon in binary trees. | |
Re: When something like this happens, the first thing you do is a full system reset - usually by shutting down the system cold, removing the battery (and no wall-plug connection), and then holding the power button down for some period of time (10 seconds to 1 minute). If after reinstallation … | |
| |
![]() | Re: Until you are comfortable with Ubuntu installation and configuration then I would recommend that you install Windows 7 as the host operating system, and install Ubuntu in a virtual machine such as VirtualBox (free). At least with a virtual machine you can remove/reinstall and reconfigure the OS as many times … |
Re: The main point of LFS is to teach people the inner secrets of configuring and building Linux systems from scratch (so to speak). If you want a light-weight apache server, then it would be better to get a light-weight Linux distribution and install apache and necessary other components there. Gentoo … | |
Re: Just remember, that inserting already sorted data into a pure binary tree (b-tree) will result in what is effectively a linked list, with unoptimal search characteristics. Once you are able to build a b-tree, then consider building a balanced binary tree. The insert algorithm is more complex as it has … | |
Re: Class assignment? Sorry, but we don't do your homework for you. What kinds of classes do YOU think you need? Yes, I could give you a list (I was a shop foreman at a dealership once upon a time), but that would deprive you of the fun! | |
Re: What is the inteface that it uses? Is it a standard floppy controller interface (not often found on current computers), USB, RS-232, what? That is the question. The cable is probibly the easy part. How it connects to the system something else entirely. There are a number of after-market floppy … | |
Re: OCR in 50 words or less. 1. Scan input 2. Extract each item (character) from the input 3. Apply pattern matching algorithm to each item 4. Generate output 5. Validate output Have fun... | |
Re: Windows usually uses the entire disc, so even if you think your Windows system uses only 75GB of the disc, that is likely only the amount currently in use. Also, current Windows systems use the EFI boot format, and depending upon your SUSE version, it may be looking at the … | |
Re: You didn't perform a system image backup first, did you? This is the god of computing's lesson for you - NEVER mung with system disc formatting issues without doing a bit-image backup first to an external drive, so you can restore the system as it was if you or your … |
The End.