rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@chrishea
Audacity is also the leading audio editor for Linux systems. I use it / love it. Open source rules! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. Use a GOOD surge suppressor - most commercial/consumer ones can only handle a limited number of surges before they become useless. They must be replaced at least yearly - more frequently in areas where there are frequent surges or lightning strikes.
  2. Get a UPS (uninterruptible power supply) that has positive (industrial grade) surge suppression capabilities. That's what I use, and never have had a problem in 10+ years.

In any case, the surge from the lightning strike has damaged your computer(s) and they need to be repaired or replaced. If you are lucky, the data on your discs is still intact, but no promises there without running some tests to verify the file system and data integrity.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Is your VM connected to your local network? What are the contents of its /etc/resolv.conf file (post the contents here)? What is the address of your LAN's router? Who is your ISP? Do you know what their DNS server addresses are? If not, go to the admin web page of your router and look there. Finally, if you know your local router address (such as 192.168.1.1 or 192.168.1.254, etc), can you ping it or access it from your VM?

Answer these questions and I may be able to help. Without this information, one can only guess, and that + $5 will get you a nice latte at Starbucks... :-)

And, for now, the last question: what is the virtual machine manager that you used to create/run/manage your VM?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The easy way (single line) is to use the char* strdup(const char* source) function.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Interesting that the poster of this thread is using the handle of one of the inventors of the C programming language... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try these Google (or better still, DuckDuckGo) search terms: javascript tree structures

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please show the code. Without that, it isn't possible to answer your question. The typical swap algorithm is this

swap(type& var1, type& var2)
{
    type tmp = var1;
    var1 = var2;
    var2 = tmp;
}
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The question is whether the images themselves have been compromised, or if some malware on the system is blocking access to them. I would suggest that you boot a live linux cd/dvd/usb drive, mount the windows partition, and then see if Linux can access the photos. If so, then it is the malware that is blocking access, and you can backup the data to a thumb drive. If not, then you are fubar'd... although a Linux or Windows A/V program may be able to fix the situation.

So, what have you tried so far?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I would strongly recommend that you install LibreOffice instead of OpenOffice. It is much more up to date, and compatible with all OO files and file types.

JasonHippy commented: I second that motion! +9
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You would fail my class... :-( DO NOT fail to use curly-braces to delimit ALL conditional statements and loops. This is one of the biggest causes of system logic issues...

Fix that, and I'll take another look at your code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. You don't show what the problem is.
  2. This would be better done with a do {...} while (condition) loop instead of your while() {...} loop. Example: (eliminating the priming read)

    do
    {
    System.out.print( "Enter an integer, or -1 to stop > " );
    number = scan.nextInt( );

    // processing
    if (number != SENTINEL)
    {
        System.out.println( number );
    }
    

    }
    while (number != SENTINEL );

Normally, we don't recomment do...while loops, but there are times when they are called for. This may be an instance of such.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but we don't do your homework for you. Make an effort, post the code, and we might help you figure out why it doesn't work... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you know Java? Android Dalvik is just Java, but with a different compiler and virtual machine. If you don't know how to write Java code, then you have some learning to do. If you already know C++ or PHP, then it will not be difficult.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Use a comm program like minicom, open a file on the remote system, and upload the file. If you just want to write it to the comm port, you can copy it directly to the port from a command line (cmd.exe): copy file com1:

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Right... Sorry. How long did you leave the device in a drawer until you needed it again? Or is it REALLY yours? Forgetting your phone unlock code (a 4-digit PIN) is something like forgetting to put your pants on before leaving for work - not really likely, popular jokes notwithstanding... :-(

faroukmuhammad commented: You are right mate +5
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not sufficient information. When does it show this? When running? Or on boot-up POST (Power-On Self Test)? What specifically does it say? Have you recently tried to update the BIOS?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I run a LOT of systems in virtual machines (thousands in the Amazon cloud for example), and we use ssh to connect to these systems. Note that the sshd service on the systems you want to connect with may either limit connections from known hosts, and/or require a private key certificate to connect. We do that to keep unauthorized people from connecting to our servers.

So, read the ssh man page and ask the server admins for the machine(s) you want to connect with what you need to do to get into them.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but we don't do your homework for you. Give it your best shot and post the code here with questions about problems you are still having. FWIW, I do this stuff for a living. Why should I help you cheat on your homework when I have had to learn this stuff the hard way, by doing it?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Good luck! You are going to need it! There is a reason why they are called "dead"lines - if you miss them, you are dead... I think you have some serious grovelling to do at your professor's feet.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Since it is FOSS (free, open source) it is doubtful any one acquired it. According to DistroWatch, it has been discontinued. It was a French fork of Ubuntu. My guess is that there was just not enough community behind it to keep it going.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Is your subscription up to date? If not, then you will need to install a free version such as CentOS, or update your support subscription.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This appears to be a system configuration problem. The file /mnt/repodata/repmod.xml is either not available, not readable, or not writeable. In any case, normally, it would not be in /mnt, so I expect that you did something to alter the configuration of yum that caused this.

Since I don't find anything like this on my RHEL systems, I suspect that you may want to create the directory /mnt and try again. FWIW, what version of RHEL are you running?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Have you posted this to either the Adobe user forums or asked Adobe support about this? Those would be my first two steps to resolve this, or at least figure out what is going on.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Here is a great article and video from the Free Software Foundation (FSF) about using FOSS (Free and Open Source Software) to do complex audio/video editing tasks: http://www.fsf.org/blogs/community/how-i-made-a-video-for-libreplanet-using-all-free-software

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not asking much, are you? :rolleyes: How well do you know php anyway? From the question, not much or well. First, describe what YOU mean by "virtual learning class room", and what you expect to do with it. Student/teacher profiles are simple classes in php/java/c++/whatever. The virtual class room is more an entire application, and will require many classes and a lot of code. You aren't going to get that here, but if you post code or designs here, we can help you by pointing out errors or critiquing your designs.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are a gazillion X11/postscript fonts, including arial. for Linux. You just need to install them. Look at your package manager to find them. Just because they aren't installed by default doesn't mean they aren't there or available to be downloaded as needed. There are also bitstream fonts as well. Time to do some internet searching...

FWIW, arial is a poor rendition of the classic Helvetica font, which would be preferable to use.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And your question is what? You are showing the assignment, but not your work... :-(

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It is simple enough to write your own function to do this. Pass in the password to the function, and have it generate a string of '*' characters of the same length that it returns. Call this function string obfuscatePswd(const string& pswd). Then your code becomes this: cout << obfuscatePswd(password) << " :";

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Computer networking? Social networking? Professional networking? What are you talking about? :-)

dennis.ritchie commented: LOL +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You can change the power profile. It may be set on whatever serves for conserving battery. You can change that to a "balanced" profile, so that when the computer needs more CPU to run applications such as your games, it will speed up the processor. I think you can change the power profile by right-clicking on the battery icon in the dock.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

DO NOT give your variables numeric names! Instead of '2', use 'two', etc. Also, your code is not valid for the variable initialization. Please provide the EXACT code you used. If this is it, then you need to go back to the book...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

How do you determine the end of the input for vector a?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Time to do some web searching I think. These are well-known subjects and there is a lot of information out there, but in any case, you need to understand at least three subjects quite well.

  1. Image processing.
  2. Cryptography
  3. Steganography.

The last could be considered a branch of image processing (#1), but there are nuances that must be considered as a separate subject.

So, I think that this is not the forum you need for real help with this subject, although I'm sure there are folks here who know quite a bit about these subjects. Myself, I know quite a bit about cryptography, a fair bit about image processing, and steganography only in theory.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

$200 USD / hour - that's what I charge to write embedded software programs... Also, I don't do your home (or other) work for you unless you make some effort to do it yourself first. Then, I may help you figure out where you have run off of the tracks.

FYI, I have been writing embedded real-time system software for 30+ years, starting with Intel 8-bit 8048 systems in assembler.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not much, is it? First, go to Wikipedia and read the article on prime numbers and the Sieve of Aristhostenes. We don't do your homework for you, and generating the prime numbers as specified in the SOW (statement of work) is the biggest part of this exercise.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Please post the configure log file here.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

How was the image created? Did you use a dvd ripper that would remove the DRM and region codes? If not, then the image will remain unplayable since DVD DRM does weird stuff that is not translatable to an image file without code to remove the DVDCSS (DVD Content Scramble System) DRM that commercial discs use.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Make an effort and post your code here. We don't do your homework for you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Yes. No. You decide what interests you, design it, write it, get graded honestly on it...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you can write C++ code, you can learn and code in python well enough in a day or two to convert this program. The logic will not change - only the program syntax. IE, if you started to learn it when you first posted, you would be done about now, or this time tomorrow at the latest.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is a simple program, and converting it to another programming language should not be a major effort. I think it is time you RTFM regarding Python programming documentation... Python programming is a skill in demand these days, so it will do you well to learn it.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

An audio CD uses .WAV files and is of a specific format. You are basically creating a data CD with mp3 files I think. Get something like Alcohol 52% or Alcohol 120%. Alcohol 52 is free. Alcohol 120 is not. That is the best CD burner that I have found for Windows. Myself, I use Linux, and it has a lot of good tools to convert and burn MP3 files to a real audio CD - all free, of course! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I assume you are not using an external power supply, but are depending upon the USB port to provide adequate power for the device? If so, that is not a good idea. On most computers only 1 or 2 ports have enough power for a hard drive. Try it with the external power supply.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Consider Java as C++ with training wheels. Multiple inheritance - no. Interfaces - yes (consider them as pure virtual classes without any method implementation or constructor/destructor methods). The best way to learn Java if you already know C++ pretty well is to study existing code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And your question is what? Sorry, but we don't do your homework for you. Just FYI:

  1. There are 24 hours in a day.
  2. There are 60 minutes in an hour.
  3. There are 60 seconds in a minute.

You get to do the math! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@Mike2K
Yes, my GC was deterministic. It also dealt with circular references. I have made a serious study of GC methods in the past. It is a subject I am "somewhat" familiar with. :-) However, I understand your point that being deterministic it isn't "garbage collection" in a classical sense, but I would argue the point with you if we ever have a face-to-face... Current versions of PHP use a deterministic reference-counted GC - at least they call it a GC. You say tomato, I say tomato (with a softer 'a'). Still the same fruit. Of course, now we can argue whether a tomato is a fruit or vegetable! ;-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry, but we don't do your homework for you. Please post your code that tries to solve the problem/exercise and we might be able to help point out your errors.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, what pattern does your code generate?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is not an exercise for a newbie! I have experience writing trading programs as a professional (options trading with automatic portfolio balancing - a lot of Black-Scholes and similar algorithms to compute risk factors - the Greeks). You need a feed from the exchange(s) to get real-time quotes. Since this is a school exercise, you could simulate the price changes (quotes), but you probably need a good Monte-Carlo routine to do that effectively, and for that you need to start with a good RNG (random number generator). Over your head yet? :-)

All that aside, you need a good foundational understanding of the trading situation and underlying algorithms. Being a newbie to C++ is not the problem. That we can help you with once you start generating some code. However, if you don't know the trading stuff, then you have a lot of catch-up to do...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

:-) Good point! This would be more appropriate:

    size_t sz = 10 * sizeof(int);
    int *array = (int*)malloc(sz);
    memset((void*)array, 0, sz);

    /* This does the same thing. */
    int *array = (int*)calloc(10, sizeof(int));

Modern compilers will at least flag the lack of a cast with a warning. Better safe than sorry I think!