• Member Avatar for rubberman
    rubberman

    Replied To a Post in how can i calculate the average value inside this linked list program?help

    Simple: sum all of the data values and divide by the number of nodes in the list. I am guessing that you did not write the functions to add/remove/size the …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in how to completely wipe mac drive

    There is a tool called dd that is on every Linux distribution. Boot from a Linux live CD/DVD and do this (assuming that the Apple drive is /dev/sda): dd if=/dev/zero …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Solutions to revenue loss from Adblocking - for publishers

    Ads suck up bandwidth and push data caps that are so ubiquitous these days. Ensure your publishers respect these facts by making their ads mostly static text with minimal graphics …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in How php frameworks provide reusability?

    You need to study object-oriented design and development a LOT more before you can deal with this. Consider PHP to be C++ for web programming. In any case, the answer …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Using ,net dlls

    @Suzie999 - you are definitely NOT a noob! In any case, the problem has a couple of components. One is the loading of the DLL in your code - for …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in facebook redirect URI problem

    Not sure - not my domain of expertise - but don't you need to oauth the facebook site on yours?
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Need better data structure implementation Java

    Final (hopefully) note. After re-reading your original post, you need to have associated meanings of a word or phrase. This isn't hard. I'm not giving you the answer, but propose …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Need better data structure implementation Java

    Also note, that forwhatever it's worth, sorted linked lists are incredibly inefficient. You basically have to navigate the entire array (doing a comparison at each node) to find the insertion …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Need better data structure implementation Java

    Note that bsearch/qsort use binary search algorithms (see Knuth Vol. 3 - Sorting and Searching Algorithms) which means that finding the insertion point for a 1 million element array is, …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Need better data structure implementation Java

    Write an insertion sort routine, based upon bsearch and qsort algorithms. Yes, they are C code, but are easily translated into Java. Basically you use an array - presize it …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Network Programming

    What operating system are you using? Also, are you using UDP packets, or TCP streams? TCP streams are simple - you connect a monitoring client to the address:port of the …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Integrating a class properly

    I could not have said it better @AleMonteiro! I too am giving you a "thumbs-up" for your response.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Need help correcting menus so they outpu

    Sorry Justin, but this is a repost of the same cruft that I commented on before... I am downposting this as a result.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in help

    No description of problem - no help. Also, either declare the functions before you use them, or put them above main() and each other as an alternative. You want us …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Migrating to Linux - Any Tips?

    Lesson #1 - never overreact. Lesson #2 - do a root-cause analysis of your problem(s). Lesson #3 - go to lesson #1... I use Windows when I absolutely have to. …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in what are the Best websites to learn SIP(Session Initiation Protocol) ?

    @Shantha_mh - good post. A thumbs up from me, and someone else as well. SIP - Session Initiated Protocol, used for VOIP (voice over internet phone) is very important these …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in user input from keyboard in php at run time

    As mentioned in the article posted by @ryantroop, fgets(stream) will also return the newline. If you don't want it, you will either have to trim it or use stream_get_line(). FWIW, …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in C and DLLS or API Calls or Examples of using DLLs

    What @rproffitt says, however in your case you do need the Windows API for this. What happens? Does it just hang, or does it give the negative answer? Also, what …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in how to count down from 30 seconds with a timer.

    Geeze - people are still using Pascal these days? Are you running a P-machine, or some version of Turbo Pascal? Ok. Better to use a timer interrupt instead of a …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in installing window

    1. Make sure you have a high performance USB drive. They are much faster to read than write. 2. Disable memory swapping in the OS and remove the swap file. …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Simulate “deleted Inode reference” error

    NEVER, NEVER, EVER try to manipulate directly the file system other than via normal means, unless you are a real professional and are ready to bork the system entirely!
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Simulate “deleted Inode reference” error

    DO NOT DO THAT!!! Assuming that /dev/sda1 is the root file system, then the problem is more difficult. If it isn't, then as root you will need to umount that …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Problem with a C code screen that uses the curses library

    There are a number of issues with this, besides the fact that it is a Windows program. You need to create your main window: `win = newwin(nlines, ncols, y0, x0);` …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Adjacency List Help

    Please post the contents of the node class.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Convert *.MP3 files to work with Audible

    Note that as I understand it, ffmpeg 2.8.1 and later is capable of streaming .aa and .aax files, as well as converting them I would assume. The Audible player only …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Convert *.MP3 files to work with Audible

    What is the machine/os you are running audible on? VLC runs on all of them (most likely) and can deal with mp3 files without problems, as can many other audio …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Problem with a C code screen that uses the curses library

    Line 15, your WINDOW pointer is never allocated, yet you are trying to manipulate it. I would expect that your application would dump core. It would if you initialized it …
  • Member Avatar for rubberman
    rubberman

    Gave Reputation to rproffitt in I need some technical support

    Remember it's been decades since I wrote Ada. I might be able to spot an error or why but off to tutorials and books for you? http://www.tutorialspoint.com/compile_ada_online.php seems nice.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in I need some technical support

    FWIW, the Oracle embedded PL/SQL software is a derivative of Ada. It (Ada) was developed by the US Government - our tax dollars at work! The Gnu Ada compiler is …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in table

    This is better: #include <stdio.h> typedef enum { anInt = 0, aFloat, aDouble, aString, end_of_symbol_types } symbol_types; typedef union { int intVal; double doubleVal; float floatVal; const char* stringVal; } …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in table

    There are some problems with the symbol examples above. I will repost later with corrections. The values were not being properly initialized. Sorry about that... :-)
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in table

    From the stype, you can determine how to output the value, and which element of the union where you will find it. Another example: for (i = 0; sarray[i].sname != …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in table

    As for the difference between a table like this and a symbol table is that a symbol table would contain symbols. You can use either an enum or #define statements …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in table

    This would be simple in C++ as you can create a number class that you can derive new types from and store a pointer to the base class in a …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Code says detailsmodal function is undefined

    Have the script defined in it's own page, and include that just once in anything that needs to use it.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Code says detailsmodal function is undefined

    Also, you are calling the `detailsmodal()` script before it is defined up in `index.php`.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Difference between Recursive proxy server and Non-Recursive proxy server

    Sorry, what? Doh! Clueless here.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Migrating to Linux - Any Tips?

    My personal systems are all running Linux. Windows stuff I can't run there (with Wine, etc) I run in a Windows VM (using VirtualBox). That has been good for me. …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in mysql object reading as bool

    Usually you flag the post for moderation (upper right of the post) and ask for it the be removed as it was a mistaken post.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Create offers section for products

    Show what you have done so far to deal with this - ie, your PHP and HTML code. As with most programming projects, there are multiple approaches to solving every …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in how to convert each integer to string in mysql query using IN

    What language are you calling this from? In any case, you should be able to use the cast(val,type) mysql function to do what you want. IE: `IN (cast(1001,varchar),cast(a/bb/001,varchar),...)`
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in mobile custom rom

    1. See my reply to your other post. 2. ROM's (usually the BIOS) are custom chips. Some are PROM's (Programmable Read-Only Memory), which must PC/Laptop BIOS chips are so they …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Custom rom

    A ROM (Read-Only Memory) is usually where your BIOS is kept. For PC's, a custom ROM would be an alternative BIOS. Why do you ask?
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Alternative to VLC?

    You can easily save multiple playlists as files with VLC. Then, you just open the file with the playlist that you want. I do that all the time.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in The page isn't redirecting properly - php wamp

    Have you checked if you have blocked cookies in your browser for your site?
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in getting fatal error

    When do you get that error? When you are trying to compile your code?
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in no video display

    The power supply (PSU) is a good candidate.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Array Length for C++

    And if you need wide chars in your C++ string use std::wstring instead of std::string. All that wchar_t is is a wide (2 byte) character that can contain unicode characters. …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Ordering system

    What exactly are you trying to accomplish with the array and ofstream?
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in fan randomly turns on, on my mac

    And thanks for your post @fallout4player. This may help others as well. I am giving you an upvote for your post.

The End.