• Member Avatar for rubberman
    rubberman

    Replied To a Post in PHP LANGUAGE SECURITY DOUBTS PLZ HELP ME in 24 HOURS

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in CAN ANYONE GIVE ME THE SCRIPT OF THIS FORUM

    Actually my suggestion only shows what runs on the browser. The PHP code runs on the server, and that, as mentioned by other posters here, is not easily accessible. That …
  • Member Avatar for rubberman
    rubberman

    Gave Reputation to dinad578 in finding largest integer in an array

    Try out the following code: #include<iostream.h> int main(void) { int arr[4]={23,38, 81,12}; int biggest = a[0]; for(i=1; i < 4; i++) { if(arr[i]>biggest) biggest = arr[i]; } cout << "largest …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in finding largest integer in an array

    Actually, dinad's change is legitimate since there can be negative numbers in the array, and if they all are, then my code would not provide the correct answer. :-)
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in logic problem

    Sorry, but I don't do your homework for you. I provided a pseudo-code algorithm to solve the problem. Write the code, and post it here with errors that you encounter. …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Yahoo Mail will not work properly

    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
    rubberman

    Replied To a Post in Please help! Error after August Update Patch

    I seem to recall there were some problems with that update. Have you tried updating with the current patches?
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Libre office not open .sdw files

    What error are you getting? FWIW, this is a Star Office file (most likely). LibreOffice or OpenOffice should be able to read this file unless it is corrupted or you …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in CAN ANYONE GIVE ME THE SCRIPT OF THIS FORUM

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in structures VS unions

    The main distinction, which decepticon was trying to get across, is that each member variable in a struct has its own memory within the structure, and the structure size is …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Storage class in C

    Glad to help. Sometimes basic C/C++ programming rules can be rather confusing, even to us "experts". :-)
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Understanding Sqlite3 c++.

    Show your code here, some explanation of your problems, and we may be able to help.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in besides ::malloc() what alternatives for Windows?

    Some years ago I wrote a bunch of code to generate any number of primes. I used the Sieve of Aristhostenes to generate all the primes up to 10K or …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in How can I fix this append function for this C++ MyProgrammingLab problem

    Try using strcpy() and strcat() instead, as in: if (buffer != 0) // test for a null buffer pointer. { ::strcpy(buffer, w); ::strcat(buffer, v); } Yes, these are C functions, …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in How can you find out which version of GCC/GNU compiler your are using?

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in besides ::malloc() what alternatives for Windows?

    Showing your code would be helpful also. The class you are trying to allocate an instance of, does it have a static new() method?
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in The Gmail 5 million password hack that (probably) wasn't

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in I'm a budding CS student about to do a Speech about algorithms for class

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Storage class in C

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in How to make my own library and use it for my programs?

    How you do this depends upon you compiler and operating system. Read the relevant documentation for you system on how to create a static or shared library.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Compound Interest

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

    Replied To a Post in Help with Java Math.max and Math.min

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

    Replied To a Post in How do you import a netbeans project into eclipse?

    Does it work? :-)
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Range of signed integers question

    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, …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Convert String to Integer using arguments from command line

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Need Help!!!

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

    Replied To a Post in xfs_repair

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

    Replied To a Post in Output decimal from binary output?

    More clear now. Iterate through the string and with each 2 characters, convert to decimal using the strtol function, specifiying the base option as 16 (hex). That will give you …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Why you don't want to mix PHP and HTML directly.

    @diafol Yeah. I've never met a deadline I couldn't exceed... :-)
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in how to show all data. Only one row showing

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Array

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in MemoryPool problem

    Please show the entire header and source for the CMObject class.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Bitshift Operations?

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in php upload image and edit image

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in EOF Exception at DataInputStream

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Array

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in string handling

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Output decimal from binary output?

    Please show an example of data and your expected (desired) output.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in finding largest integer in an array

    1. The loop `for(i=0;i<=4;i++)` should be `for(i=0;i<4;i++)` 2. You should set a 'largest' variable as found and then output that after the loop has terminated. Following is how to do …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in how to access usb drive in fedora while route password is there?

    Huh? Please explain more clearly/completely.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Internet Cutouts

    Don't know. My wife just upgraded to Mavericks. I'll repost here if she has similar issues. Myself, I don't use Apple cruft. My wife on the other hand is an …
  • Member Avatar for rubberman
    rubberman

    Gave Reputation to mike_2000_17 in MultiThreading

    There are a lot of tutorials out there on this topic. Here are a few: http://www.codeproject.com/Articles/598695/Cplusplus-threads-locks-and-condition-variables https://solarianprogrammer.com/2011/12/16/cpp-11-thread-tutorial/ http://www.bogotobogo.com/cplusplus/multithreaded4_cplusplus11.php Also, the standard C++11 threading library is almost entirely based on the …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in State Design Pattern - How to?

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Building Executable Problem

    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 …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in how to connect c program with mysql database

    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: …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in TrueCrypt Replacement

    There has been an ongoing in-depth analysis of TrueCrypt from the security perspective and so far it appears to be pretty clean. I think ongoing support will be re-established once …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in I need help writing a findLast function for this MyProgrammingLab exercise

    This is what you should use: `for (i = numwords-1; i >= 0; i--) {...}`
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in logic problem

    1. Convert number to string. 2. Create array of pairs in the string. 3. Convert array members to integers. 4. Iterate array to find largest member.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Why you don't want to mix PHP and HTML directly.

    @diafol I think both using classes as well as templates have their uses. I haven't yet delved much into templates, so the question is a good one, encouraging me to …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Why you don't want to mix PHP and HTML directly.

    I appreciate any and all comments that help expand upon what I wrote for this tutorial. Writing good web code is not simple or straightforward, and many sites are vulnerable …

The End.