• Member Avatar for rubberman
    rubberman

    Replied To a Post in posix threads pthreads

    See my response to your previous post... :-(
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Writing a sequential programme with C

    Sorry, but we don't do your homework for you. Make an attempt to code it and we may help you through the knotty parts.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Writing A research paper

    First, make sure you are versant in predicate logic - all computer languages use that for decision making. Learn (master) C++. A lot of other languages are based upon it, …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Size Of Structure.

    It all depends upon the word size of the architecture. A 32-bit system will be 4 byte aligned. 64-bits will be 8 byte aligned. This is a definite case of …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in linux with windows

    Using a tool like Virtualbox will consume system resources (cores, RAM, etc) as L7Sqr mentioned, but it works very well. I use it daily for work and home use. I …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in How to create a separate file system for a individual process

    There are a number of methods to do this. One is to create a chroot environment for each process. You can restrict precisely what applications can be run there, and …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Adding drag&drop

    What deceptikon said. The window manager probably supports drag+drop, (pretty standard these days) but both source and destination applications have to handle the drag and drop events respectively, otherwise nothing …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Binary Search Confusion

    Glad we could help! :-)
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in can i able to learn Hibernate/Spring/Struts without learning JSP,Servlets

    Hibernate, spring, and struts are all pure Java. They have nothing to do with JSP, servlets, et al. RTFM - Google is your friend!
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in FIRST C++ ASSIGNMENT

    Suzie is being nice to you - we are not supposed to solve your homework assignments for you, though I think she just gave you a foot up to help …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in from c++ source code to pdfviewer

    Use a web-enabled pdf plugin? Why re-invent the wheel?
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in c++ & php proc_open() errors

    This isn't C++, it is php. since you are already in the php environment, why do you use the '<php print... ?>' construct in the fwrite function on line 14?
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Help with my homework (begginer)

    RTFM? Sorry, but it is elementary. Here is the Linux manpage for floor(): FLOOR(3) Linux Programmer’s Manual FLOOR(3) NAME floor, floorf, floorl - largest integral value not greater than argument …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Reset HDD with password?

    I'd boot from a live Linux DVD/CD, and then wipe the drive entirely with the dd command. Assuming that the drive is /dev/sdb, to this: dd of=/dev/sdb if=/dev/zero bs=1M That …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Help changing my code from an array to a circular linked list

    So, show what you would do. Then we can help you. The main thing is whether you want a doubly linked list (each node points to the previous and the …
  • Member Avatar for rubberman
    rubberman

    Gave Reputation to mike_2000_17 in template

    Are you talking about [template specialization](https://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8a.doc%2Flanguage%2Fref%2Fexplicit_specialization.htm), or are you talking about [overloading function templates](http://www.gotw.ca/gotw/049.htm)?
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Random number

    Myself, I like lagged-fibonacci sequences, salted with some really random variables such as the decay of some radioactive isotopes, the temperature at various locations on the earth, the current density …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Random number

    And what IS your problem. Most rand() functions are at best "pseudo-random" - ie, not so much. This is a good tutorial on the subject: http://www.phy.ornl.gov/csep/CSEP/RN/RN.html From the site: page …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Help with my homework (begginer)

    What AD said, and thanks for posting your code. We get a lot of people just asking for us to do their homework for them, without trying to solve the …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in error C4703: potentially uninitialized local pointer variable

    Since this is C++, use 0 to initialze these variables. IE: double* data_list = 0; double* filter_list = 0;
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Big Oh notation of two non nested loops

    I haven't analyzed Banfa's answer for correctness, but it looks good! IE, in n days, 2^(n-1) == really big number for medium sizes of n. Example, 2^(16-1) == 32768, 2^(32-1) …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Circular Queue Problem

    Circular queues confuse a lot of programmers since they are not generally supported directly by computer languages. Key points: head of queue, and tail of queue. Circular queues are generally …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in infix to postfix reading from Text File

    Have you read this? http://scriptasylum.com/tutorials/infix_postfix/algorithms/infix-postfix/
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in template

    Not much different from overloading any class/function. Please show an example of what you are trying to accomplish.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in how to Dynamically allocate the size of an array in c during Runtime

    For C++, there isn't much of a problem. With C, it is preferable to use malloc/realloc to resize arrays. The nice thing about realloc is that that data in the …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Which browser is your best for iphone?

    For an iPhone, if you want to reduce your data footprint, then try Opera's mini browser. It is a proxy browser. Their servers do the fetching and rendering, and only …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in SAS vs SATA SSD?

    For a system drive (read-mostly, write occasionally) then an SSD is a good choice (mirrored drives for reliability). For data storage (a lot of writing and over-writing, database, etc) then …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Lenovo G400 upgrade

    A lot depends upon whether this has the HM76 or HM86 chipset. The HM86 can support i3, i5, and i7 chips, but the socket may be a problem. As for …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Table

    Please note that we don't do your homework for you! Write the code, and we can critique it, but until you make a reasonable effort to solve the problem on …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in static variable in local class

    Deceptikon, I'm not sure your answer was apropros to the question. It was being unable to declare a static variable inside a class defined inside a function. Honestly, I have …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in inline function

    Actually, usually the temporary variables, arguments, call and return points are pushed onto the stack, for normal function calls. Inline code just gets converted into code as though you typed …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in MS in Computer Science and Communication

    What L7Sqr said, with emphasis! You are working for an advanced degree and have no idea what problems you are interested in solving? Good luck is all I can say! …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in converting an array of letter to an array of numbers

    N1GHTS has giving you a good hint. That said, we don't do your homework for you... :-(
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Guidance on implementing 3 different fast sorting algorithms

    Question. Is this on a Linux system, or is it Windows? The standard Linux/Posix C/C++ libraries have some common interval timer functions that can get you down to millisecond to …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Need help with binary search

    Ok. Explain yourself! :-) You obviously fixed it, but others may benefit from your "discovery"...
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Treated as a base class derived class

    Create public getter/setter methods for your class member variables and use those to get/set the member values. If you do that, you won't have to cast the child to parent …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Need server recommendation

    So Dani, have you found something suitable yet? Hope your project is going forward well.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in My Computer "Pauses" when not in use for a few seconds. HELP!!

    Also check the screensaver settings. Disable it, or set it to a long period when running this sort of application and/or movie. Either that, or move the mouse every once …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Cloud Computing

    We run thousands of servers in the Amazon "cloud". You can rent either virtual or physical servers. Physical ones are more expensive. They have a lot of options about storage, …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Paypal IPN php mysql question

    Sorry I haven't had time to review your code yet - too much stuff going on at work. Hopefully Gabriel's code will help you sort this out. I still intend …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Microsoft SkyDrive is dead and the hard of thinking killed it

    Good thread! Best laugh all day! :-) Thanks folks. My company has been purchased by MS (the deal hasn't cleared yet, but will soon), and WE are confused by the …
  • Member Avatar for rubberman
    rubberman

    Gave Reputation to Reverend Jim in Microsoft SkyDrive is dead and the hard of thinking killed it

    Seen it. Love it.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Overloading

    I up-voted ddanbe's post. That said, operator overloading can be very useful, especially output/input operators and such. As mentioned in ddanbe's post, date classes often overload the + operator. Example, …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in binary tree remove func

    Go read Donald Knuth's "The Art of Computer Programming" Volume 3 - Sorting and searching. He gets into this in quite a bit of detail. In fact, this is considered …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in [C++ 11] - my own properties code

    Also, since the function returns a reference to an object, returning 0 (null) is not valid! This function should ALWAYS return os.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Can't understand: type* var vs type *var

    NP. Glad to help clear your mind - I use a nice Scotch Whiskey to do that! :-)
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in I need help with Code::Blocks and wxWidgets

    First, build your code::blocks to be debuggable. There is probably a build option for that. Next, build wx to be debuggable as well. Finally, rebuild your project from scratch. More …
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in iPhone 4 screen flickering horizontally

    Contact Apple's iOS support team, or post this in their user forums.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in Cannot Send or Reply to email on my Hotmail Account, Can anyone help?

    Contact MS Hotmail support. This is not something we can help you with. It is an application-specific issue, no matter if someone else has had this problem.
  • Member Avatar for rubberman
    rubberman

    Replied To a Post in database server advice

    The open source MySQL database can handle this sort of load very easily. There is also PostgresSql which is more "Enterprise" capable. I use both, as well as Sybase and …

The End.