5,331 Posted Topics

Member Avatar for sabariN123

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 …

Member Avatar for rubberman
-3
250
Member Avatar for raaj_1

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 …

Member Avatar for rubberman
-6
132
Member Avatar for ingeborgdot@yah

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.

Member Avatar for rubberman
0
174
Member Avatar for anumash

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.

Member Avatar for rubberman
0
251
Member Avatar for Transcendent

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 …

Member Avatar for Transcendent
0
162
Member Avatar for mataiasi.yabakivou

We don't do your homework for you. Make an honest effort and post your code here when you hit a brick wall.

Member Avatar for swimincodes
0
142
Member Avatar for Curious Gorge

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 …

Member Avatar for Curious Gorge
0
243
Member Avatar for Jack_9

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 …

Member Avatar for Jack_9
0
189
Member Avatar for ItsMe5247

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

Member Avatar for ItsMe5247
0
156
Member Avatar for happygeek

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/

Member Avatar for Slavi
2
572
Member Avatar for christinetom
Member Avatar for christinetom
0
276
Member Avatar for GingerDontCare

So, what is your problem? Please be specific and show examples of why these methods aren't working for you.

Member Avatar for Slavi
0
983
Member Avatar for rayan22

Ok. And just what is your problem? You want us to analyze your code making untenable assumptions? Please get real...

Member Avatar for stultuske
0
99
Member Avatar for Jef1308

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 …

Member Avatar for Marine4life03
0
280
Member Avatar for hor3045

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 …

Member Avatar for hor3045
0
602
Member Avatar for anumash

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, …

Member Avatar for anumash
0
216
Member Avatar for Suzie999

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 …

Member Avatar for Suzie999
0
397
Member Avatar for EarhawkPH

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 …

Member Avatar for dinad578
0
778
Member Avatar for divyakrishnan

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 …

Member Avatar for Kelly Burby
0
264
Member Avatar for sahil_4

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.

Member Avatar for pritaeas
0
136
Member Avatar for sankubha

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.

Member Avatar for sankubha
0
394
Member Avatar for c1ockwerk

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.

Member Avatar for c1ockwerk
0
393
Member Avatar for MiketheBook

There were some related bugs in the original release of Mavericks. Have you installed the latest updates?

Member Avatar for MiketheBook
0
192
Member Avatar for Silfro
Member Avatar for rubberman
0
104
Member Avatar for christinetom

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 …

Member Avatar for rubberman
0
424
Member Avatar for infoitmanoj

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 …

Member Avatar for rubberman
0
238
Member Avatar for sahil_4

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 …

Member Avatar for rubberman
0
204
Member Avatar for Saboor880

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 …

Member Avatar for NathanOliver
0
152
Member Avatar for pj kps
Member Avatar for HuePig

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.

Member Avatar for rubberman
0
310
Member Avatar for mind_1

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/

Member Avatar for rubberman
0
94
Member Avatar for andrew mendonca
Member Avatar for Leo G

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?

Member Avatar for cgeier
0
342
Member Avatar for hydra.p

Myself, I like Wirth's "Algorithms + Data Structures = Programs". It's a bit dated, but it was the seminal treatise on the subject.

Member Avatar for Rashakil Fol
0
305
Member Avatar for HuePig

Put `#endif // !RoomOne_H` at the end of RoomOne.h and don't include RoomOne.h in StoneAdventure.h

Member Avatar for HuePig
0
205
Member Avatar for AleMonteiro

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 …

Member Avatar for AleMonteiro
0
142
Member Avatar for younusjavaid

I prefer Linux myself, but Windows 7 is a good option for learning systems used by many corporations.

Member Avatar for gerbil
0
257
Member Avatar for mkoamusan

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?

Member Avatar for laah.wrizz
0
237
Member Avatar for hemanshurpatel

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.

Member Avatar for hemanshurpatel
0
2K
Member Avatar for Arjun_4

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.

Member Avatar for rubberman
0
339
Member Avatar for faisal.qureshi.7121614_1

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 …

Member Avatar for faisal.qureshi.7121614_1
0
1K
Member Avatar for ShawnM9913
Member Avatar for m.a.u.

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 …

Member Avatar for umair4a1
0
169
Member Avatar for RikTelner

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 …

Member Avatar for Hiroshe
0
192
Member Avatar for justugas

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 …

Member Avatar for deceptikon
0
252
Member Avatar for sakshu

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!

Member Avatar for rubberman
0
52
Member Avatar for webecedarian

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 …

Member Avatar for rubberman
0
273
Member Avatar for bidhansigdel
Re: ocr

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...

Member Avatar for LaxLoafer
-1
126
Member Avatar for RikTelner

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 …

Member Avatar for Gribouillis
0
866
Member Avatar for Siberian

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 …

Member Avatar for gerbil
0
343

The End.